skuse-ui 0.1.0
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/LICENSE +21 -0
- package/README.md +63 -0
- package/dist/SkuseDocumentation.d.ts +10 -0
- package/dist/components/Skeletons/EndpointSkeleton.d.ts +2 -0
- package/dist/components/Skeletons/HomeSkeleton.d.ts +2 -0
- package/dist/components/Skeletons/LayoutSkeleton.d.ts +2 -0
- package/dist/components/Skeletons/SidebarSkeleton.d.ts +1 -0
- package/dist/components/layouts/MinimifiedInfo.d.ts +6 -0
- package/dist/components/layouts/Sidebar.d.ts +3 -0
- package/dist/components/openapi/Auth/AuthButton.d.ts +11 -0
- package/dist/components/openapi/Auth/AuthCard.d.ts +7 -0
- package/dist/components/openapi/Auth/AuthDialog.d.ts +8 -0
- package/dist/components/openapi/Auth/AuthMethods.d.ts +14 -0
- package/dist/components/openapi/Endpoint/CallbackViewer.d.ts +6 -0
- package/dist/components/openapi/Endpoint/CodeExamples.d.ts +16 -0
- package/dist/components/openapi/Endpoint/EndpointDetails.d.ts +3 -0
- package/dist/components/openapi/Endpoint/ExternalDocsLink.d.ts +6 -0
- package/dist/components/openapi/Endpoint/ParametersViewer.d.ts +7 -0
- package/dist/components/openapi/Endpoint/PlaygroundForm.d.ts +23 -0
- package/dist/components/openapi/Endpoint/PlaygroundResponse.d.ts +13 -0
- package/dist/components/openapi/Endpoint/RequestBodyViewer.d.ts +8 -0
- package/dist/components/openapi/Endpoint/ResponseViewer.d.ts +9 -0
- package/dist/components/openapi/Endpoint/SchemaBadges.d.ts +8 -0
- package/dist/components/openapi/Endpoint/SchemaExpandContext.d.ts +6 -0
- package/dist/components/openapi/Endpoint/SchemaProperty.d.ts +11 -0
- package/dist/components/openapi/Endpoint/SchemaViewer.d.ts +13 -0
- package/dist/components/openapi/FormattedMarkdown.d.ts +12 -0
- package/dist/components/openapi/Information.d.ts +3 -0
- package/dist/components/openapi/Models.d.ts +3 -0
- package/dist/components/openapi/Servers.d.ts +7 -0
- package/dist/components/openapi/TagsOverview.d.ts +3 -0
- package/dist/components/openapi/WebhookDetails.d.ts +3 -0
- package/dist/components/theme-provider.d.ts +13 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/alert.d.ts +8 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/card.d.ts +8 -0
- package/dist/components/ui/carousel.d.ts +18 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/collapsible.d.ts +5 -0
- package/dist/components/ui/command.d.ts +80 -0
- package/dist/components/ui/dialog.d.ts +19 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/label.d.ts +5 -0
- package/dist/components/ui/popover.d.ts +6 -0
- package/dist/components/ui/select.d.ts +13 -0
- package/dist/components/ui/sheet.d.ts +25 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/tooltip.d.ts +7 -0
- package/dist/hooks/OpenAPIContext.d.ts +24 -0
- package/dist/hooks/usePlayground.d.ts +40 -0
- package/dist/hooks/useSpec.d.ts +10 -0
- package/dist/index.d.ts +2 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/main.d.ts +0 -0
- package/dist/router/routes.d.ts +2 -0
- package/dist/skuse-ui.cjs.js +459 -0
- package/dist/skuse-ui.es.js +61257 -0
- package/dist/style.css +1 -0
- package/dist/test-spec.json +779 -0
- package/dist/types/openapi.d.ts +2 -0
- package/dist/types/unified-openapi-types.d.ts +402 -0
- package/dist/utils/openapi.d.ts +18 -0
- package/dist/utils/pkce.d.ts +2 -0
- package/package.json +94 -0
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),R=require("react"),hr=require("react-dom");function iT(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const x=iT(R),Xr=iT(hr),oT="skuse_auth_credentials",y0="skuse_preferred_content_type",IN=()=>{try{const e=localStorage.getItem(oT);return e?JSON.parse(e):{}}catch{return{}}},sT={info:{title:"API Documentation",version:"1.0.0"},paths:{}},lT=R.createContext({spec:sT,setSpec:()=>{},computedUrl:"",setComputedUrl:()=>{},serverVariables:{},setServerVariables:()=>{},loading:!1,setLoading:()=>{},error:null,setError:()=>{},credentials:{},setCredential:()=>{},clearCredential:()=>{},preferredContentType:null,setPreferredContentType:()=>{}}),RN=({children:e})=>{const[t,n]=R.useState(sT),[r,a]=R.useState(""),[i,o]=R.useState({}),[s,l]=R.useState(!0),[u,d]=R.useState(null),[c,f]=R.useState(IN),[m,h]=R.useState(()=>localStorage.getItem(y0));R.useEffect(()=>{localStorage.setItem(oT,JSON.stringify(c))},[c]);const g=(E,T)=>{f(v=>({...v,[E]:T}))},b=E=>{f(T=>{const v={...T};return delete v[E],v})};return p.jsx(lT.Provider,{value:{spec:t,setSpec:n,computedUrl:r,setComputedUrl:a,serverVariables:i,setServerVariables:o,loading:s,setLoading:l,error:u,setError:d,credentials:c,setCredential:g,clearCredential:b,preferredContentType:m,setPreferredContentType:E=>{localStorage.setItem(y0,E),h(E)}},children:e})},lt=()=>{const e=R.useContext(lT);if(!e)throw new Error("useOpenAPIContext must be used within an OpenAPIProvider");return e},ON=e=>!!e&&typeof e=="object"&&"$ref"in e,Ii=(e,t)=>{if(!e||typeof e!="object")return t;if(!t||typeof t!="object")return e;const n={...e};for(const[r,a]of Object.entries(t)){const i=n[r];r==="required"&&Array.isArray(a)&&Array.isArray(i)?n[r]=Array.from(new Set([...i,...a])):r==="properties"&&typeof a=="object"&&typeof i=="object"?n[r]=Ii(i,a):r==="items"&&typeof a=="object"?n[r]=i&&Object.keys(i).length>0?Ii(i,a):a:Array.isArray(a)?n[r]=Array.isArray(i)?[...i,...a]:a:typeof a=="object"?n[r]=r in n?Ii(i,a):a:n[r]=a}return n},DN=(e,t)=>{const n=e.split("/").slice(1);let r=t;for(const i of n)if(r&&typeof r=="object"&&i in r)r=r[i];else throw new Error(`Invalid reference: ${e}`);const a=typeof r=="object"?{...r}:{};if(a.ref=e,a.refName=n[n.length-1],!a.type){const i=a.properties;i&&typeof i=="object"&&Object.keys(i).length>0?a.type="object":a.items?a.type="array":(a.type="object",a.properties={})}return a},LN=(e,t,n)=>{if(!e.allOf||!Array.isArray(e.allOf))return e;const a=e.allOf.map(s=>ir(s,t,n)).reduce((s,l)=>Ii(s,l),{}),{allOf:i,...o}=e;return Ii(a,o)},ir=(e,t,n=new Set)=>{if(!e||typeof e!="object")return e;if(ON(e)&&!n.has(e.$ref))return n.add(e.$ref),ir(DN(e.$ref,t),t,n);if("allOf"in e)return LN(e,t,n);if(Array.isArray(e))return e.map(a=>ir(a,t,new Set(n)));const r={};for(const[a,i]of Object.entries(e))r[a]=ir(i,t,new Set(n));return r},PN=e=>{const t=JSON.parse(JSON.stringify(e));return t.$defs&&(t.$defs=ir(t.$defs,e)),t.paths&&(t.paths=ir(t.paths,e)),t.components&&(t.components=ir(t.components,e)),t.webhooks&&(t.webhooks=ir(t.webhooks,e)),t},FN=new Set(["GET","PUT","POST","DELETE","OPTIONS","HEAD","PATCH","TRACE"]),uT=e=>e===null?"null":typeof e=="string"?"string":typeof e=="number"?"number":typeof e=="boolean"?"boolean":"object",wc=e=>{const t=e==null?void 0:e[0];return t===void 0?null:typeof t=="string"?"string":typeof t=="number"?"number":typeof t=="boolean"?"boolean":null},bs=e=>e.type==="null"?!0:e.type==="array"||e.prefixItems||e.items||e.contains||e.if||e.not?!1:!e.type&&!e.properties&&!e.oneOf&&!e.anyOf&&!e.allOf,x0=e=>{var t;if(Array.isArray(e.type))return e.type.join(" | ");if(e.type==="object"||e.properties)return e.title??"object";if(Array.isArray(e.prefixItems)&&e.prefixItems.length>0)return`[${e.prefixItems.map(r=>Array.isArray(r.type)?r.type.join(" | "):r.type??r.title??"any").join(", ")}]`;if(e.type==="array"){const n=e.items;if(!n)return"array";if(Array.isArray(n.type))return`array<${n.type.join(" | ")}>`;const r=n.type??wc(n.enum)??void 0;return`array[${n.title??r??"any"}]`}return e.if?"conditional":!e.type&&((t=e.enum)!=null&&t.length)?wc(e.enum)??"unknown":e.const!==void 0&&!e.type?uT(e.const):e.type??e.title??"unknown"},tl=e=>{var n;if(Array.isArray(e.type))return e.type.join(" | ");if(e.oneOf)return"oneOf";if(e.anyOf){const r=e.anyOf.filter(bs),a=e.anyOf.filter(s=>!bs(s)),i=a[0];return r.length>0&&a.length===1&&i?`${x0(i)} | null`:`anyOf<${e.anyOf.map(s=>bs(s)?"null":x0(s)).join(" | ")}>`}if(e.allOf)return"object";if((e.type==="array"||e.prefixItems)&&e.prefixItems&&e.prefixItems.length>0)return`[${e.prefixItems.map(a=>Array.isArray(a.type)?a.type.join(" | "):a.type??a.title??"any").join(", ")}]`;if(e.type==="array"){if(!e.items)return"array";const r=e.items;return Array.isArray(r.type)?`array<${r.type.join(" | ")}>`:`array[${r.title??r.type??"any"}]`}if(e.if)return"conditional";if(e.type==="object"||!e.type&&e.properties){const r=e.title??"object";return e.nullable?`${r} | null`:r}if(!e.type&&e.items)return"array";if(!e.type&&((n=e.enum)!=null&&n.length)){const r=wc(e.enum);if(r)return e.nullable?`${r} | null`:r}if(e.const!==void 0&&!e.type){const r=uT(e.const);return e.nullable?`${r} | null`:r}const t=e.type??e.title??"unknown";return e.nullable?`${t} | null`:t},Yt=e=>{if(!e)return null;const t=Pa(e);if(t.example!==void 0)return t.example;if(Array.isArray(t.examples)&&t.examples.length>0)return t.examples[0];if(t.const!==void 0)return t.const;if(Array.isArray(t.prefixItems)&&t.prefixItems.length>0)return t.prefixItems.map(n=>Yt(n));if(t.type==="array")return t.items?[Yt(t.items)]:[];if(t.anyOf){const n=t.anyOf.find(r=>!bs(r));return n?Yt(n):null}if(t.oneOf)return Yt(t.oneOf[0]);if(t.if){const n=t.then??t.else,r=t.properties?cu(t.properties):{},a=n!=null&&n.properties?cu(n.properties):{};return{...r,...a}}if(t.type==="object"||t.properties)return cu(t.properties||{});if(Array.isArray(t.type)){const n=t.type.find(r=>r!=="null");return Yt({...t,type:n??t.type[0]})}return MN(t)},cu=e=>Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Yt(n)])),MN=e=>{var r;if(e.default!==void 0)return e.default;const t={string:()=>{var a;return(a=e.enum)!=null&&a.length?e.enum[0]??null:e.format==="date-time"?"2024-02-19T14:30:00Z":e.format==="date"?"2024-02-19":e.format==="email"?"user@example.com":e.format==="uri"?"https://example.com":e.format==="uuid"?"123e4567-e89b-12d3-a456-426614174000":e.pattern?`pattern:${e.pattern}`:e.minLength?"a".repeat(e.minLength):"string"},number:()=>e.minimum!==void 0?e.minimum:e.maximum!==void 0?e.maximum:0,integer:()=>e.minimum!==void 0?Math.ceil(e.minimum):e.maximum!==void 0?Math.floor(e.maximum):0,boolean:()=>e.default??!0,object:()=>({})},n=e.type;return((r=t[n])==null?void 0:r.call(t))??null};function cT(e){return FN.has(e.toUpperCase())}function nl(e){const t={};return Object.entries(e).forEach(([n,r])=>{if(!r)return;const a=r.parameters||[];Object.entries(r).forEach(([i,o])=>{if(!cT(i))return;const s=o,l=s.tags||["default"],u={...s};if(a.length>0){const c=u.parameters||[],f=new Set(c.map(m=>`${m.name}:${m.in}`));u.parameters=[...c,...a.filter(m=>!f.has(`${m.name}:${m.in}`))]}const d={...u,path:n,method:i.toUpperCase(),pathSummary:r.summary,pathDescription:r.description};l.forEach(c=>{const f=c||"default";t[f]||(t[f]=[]),t[f].push(d)})})}),t}function BN(e,t,n){if(!e)return null;const a=nl(e)[n];return a&&a.find(i=>Wa(i)===t)||null}function dT(e){const t={};return Object.entries(e).forEach(([n,r])=>{r&&Object.entries(r).forEach(([a,i])=>{if(!cT(a))return;const s={...i,path:n,method:a.toUpperCase()};t[n]||(t[n]=[]),t[n].push(s)})}),t}function UN(e,t,n){var a;return((a=dT(e)[t])==null?void 0:a.find(i=>Wa(i)===n))??null}function Wa(e){if(!e.operationId){const t=e.path.replace(/\//g,"_");return`${e.method.toLowerCase()}${t}`}return e.operationId}function Zr(e){return{GET:"bg-blue-500",POST:"bg-green-500",PUT:"bg-yellow-500",PATCH:"bg-teal-500",DELETE:"bg-red-500",OPTIONS:"bg-purple-500",HEAD:"bg-gray-500",TRACE:"bg-pink-500"}[e.toUpperCase()]||"bg-gray-500"}const Pa=e=>{if(!e.allOf||e.allOf.length===0)return e;const t={};let n={};const r=[];for(const a of e.allOf)a.properties&&(n={...n,...a.properties}),a.required&&r.push(...a.required),Object.assign(t,a);for(const[a,i]of Object.entries(e))a!=="allOf"&&a!=="properties"&&a!=="required"&&i!==void 0&&(t[a]=i);return e.properties&&(n={...n,...e.properties}),Object.keys(n).length>0&&(t.properties=n),e.required&&r.push(...e.required),r.length>0&&(t.required=r.filter((a,i,o)=>o.indexOf(a)===i)),t.allOf=void 0,Pa(t)},$N=e=>{const t=Pa(e);return!t.type&&!t.properties&&!t.items&&!t.oneOf&&!t.anyOf&&!t.allOf&&!t.enum&&!t.title},jN=(e,t)=>{if(!e.servers||e.servers.length===0)return new URL("/",t).origin;const n=e.servers[0];let r=n.url;return n.variables&&Object.entries(n.variables).forEach(([a,i])=>{r=r.replace(`{${a}}`,i.default||"")}),!r.startsWith("http://")&&!r.startsWith("https://")?new URL(r,t).href.replace(/\/$/,""):r};function HN({openApiUrl:e,updateTitle:t=!1}){const{spec:n,setSpec:r,loading:a,setLoading:i,error:o,setError:s,setComputedUrl:l,setServerVariables:u}=lt(),[d,c]=R.useState(0),f=()=>{s(null),c(m=>m+1)};return R.useEffect(()=>{async function m(){var h,g,b;try{i(!0);const E=await fetch(e);if(!E.ok)throw new Error(`HTTP error ! Status: ${E.status}`);const T=await E.json(),v=PN(T);t&&(document.title=(h=v==null?void 0:v.info)!=null&&h.title?`${v.info.title} - Skuse UI`:"API Docs - Skuse UI");const S=jN(v,e);if(l(S),(b=(g=v.servers)==null?void 0:g[0])!=null&&b.variables){const w={};Object.entries(v.servers[0].variables).forEach(([A,_])=>{w[A]=_.default||""}),u(w)}r(v)}catch(E){s(E instanceof Error?E:new Error("An error occurred while fetching the Swagger documentation"))}finally{i(!1)}}m()},[e,d,r,i,s,l,u]),{spec:n,loading:a,error:o,retry:f}}function Je(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function zN(e,t){const n=x.createContext(t),r=i=>{const{children:o,...s}=i,l=x.useMemo(()=>s,Object.values(s));return p.jsx(n.Provider,{value:l,children:o})};r.displayName=e+"Provider";function a(i){const o=x.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,a]}function gr(e,t=[]){let n=[];function r(i,o){const s=x.createContext(o),l=n.length;n=[...n,o];const u=c=>{var E;const{scope:f,children:m,...h}=c,g=((E=f==null?void 0:f[e])==null?void 0:E[l])||s,b=x.useMemo(()=>h,Object.values(h));return p.jsx(g.Provider,{value:b,children:m})};u.displayName=i+"Provider";function d(c,f){var g;const m=((g=f==null?void 0:f[e])==null?void 0:g[l])||s,h=x.useContext(m);if(h)return h;if(o!==void 0)return o;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,d]}const a=()=>{const i=n.map(o=>x.createContext(o));return function(s){const l=(s==null?void 0:s[e])||i;return x.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return a.scopeName=e,[r,GN(a,...t)]}function GN(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=r.reduce((s,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...s,...c}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function Mt(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function cr({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=VN({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:r,s=Mt(n),l=x.useCallback(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&s(c)}else a(u)},[i,e,a,s]);return[o,l]}function VN({defaultProp:e,onChange:t}){const n=x.useState(e),[r]=n,a=x.useRef(r),i=Mt(t);return x.useEffect(()=>{a.current!==r&&(i(r),a.current=r)},[r,a,i]),n}var ht=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{};function WN(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function pT(...e){return t=>e.forEach(n=>WN(n,t))}function Bt(...e){return x.useCallback(pT(...e),e)}var Br=x.forwardRef((e,t)=>{const{children:n,...r}=e,a=x.Children.toArray(n),i=a.find(YN);if(i){const o=i.props.children,s=a.map(l=>l===i?x.Children.count(o)>1?x.Children.only(null):x.isValidElement(o)?o.props.children:null:l);return p.jsx(_c,{...r,ref:t,children:x.isValidElement(o)?x.cloneElement(o,void 0,s):null})}return p.jsx(_c,{...r,ref:t,children:n})});Br.displayName="Slot";var _c=x.forwardRef((e,t)=>{const{children:n,...r}=e;if(x.isValidElement(n)){const a=XN(n);return x.cloneElement(n,{...KN(r,n.props),ref:t?pT(t,a):a})}return x.Children.count(n)>1?x.Children.only(null):null});_c.displayName="SlotClone";var qN=({children:e})=>p.jsx(p.Fragment,{children:e});function YN(e){return x.isValidElement(e)&&e.type===qN}function KN(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...s)=>{i(...s),a(...s)}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function XN(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ZN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],et=ZN.reduce((e,t)=>{const n=x.forwardRef((r,a)=>{const{asChild:i,...o}=r,s=i?Br:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(s,{...o,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function QN(e,t){e&&Xr.flushSync(()=>e.dispatchEvent(t))}function JN(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var br=e=>{const{present:t,children:n}=e,r=eC(t),a=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),i=Bt(r.ref,tC(a));return typeof n=="function"||r.isPresent?x.cloneElement(a,{ref:i}):null};br.displayName="Presence";function eC(e){const[t,n]=x.useState(),r=x.useRef({}),a=x.useRef(e),i=x.useRef("none"),o=e?"mounted":"unmounted",[s,l]=JN(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=zo(r.current);i.current=s==="mounted"?u:"none"},[s]),ht(()=>{const u=r.current,d=a.current;if(d!==e){const f=i.current,m=zo(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&f!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,l]),ht(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,c=m=>{const g=zo(r.current).includes(m.animationName);if(m.target===t&&g&&(l("ANIMATION_END"),!a.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=m=>{m.target===t&&(i.current=zo(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:x.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function zo(e){return(e==null?void 0:e.animationName)||"none"}function tC(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var nC=x.useId||(()=>{}),rC=0;function Cn(e){const[t,n]=x.useState(nC());return ht(()=>{e||n(r=>r??String(rC++))},[e]),e||(t?`radix-${t}`:"")}var Pd="Collapsible",[aC,RW]=gr(Pd),[iC,Fd]=aC(Pd),fT=x.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:a,disabled:i,onOpenChange:o,...s}=e,[l=!1,u]=cr({prop:r,defaultProp:a,onChange:o});return p.jsx(iC,{scope:n,disabled:i,contentId:Cn(),open:l,onOpenToggle:x.useCallback(()=>u(d=>!d),[u]),children:p.jsx(et.div,{"data-state":Bd(l),"data-disabled":i?"":void 0,...s,ref:t})})});fT.displayName=Pd;var mT="CollapsibleTrigger",hT=x.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,a=Fd(mT,n);return p.jsx(et.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":Bd(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...r,ref:t,onClick:Je(e.onClick,a.onOpenToggle)})});hT.displayName=mT;var Md="CollapsibleContent",gT=x.forwardRef((e,t)=>{const{forceMount:n,...r}=e,a=Fd(Md,e.__scopeCollapsible);return p.jsx(br,{present:n||a.open,children:({present:i})=>p.jsx(oC,{...r,ref:t,present:i})})});gT.displayName=Md;var oC=x.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:a,...i}=e,o=Fd(Md,n),[s,l]=x.useState(r),u=x.useRef(null),d=Bt(t,u),c=x.useRef(0),f=c.current,m=x.useRef(0),h=m.current,g=o.open||s,b=x.useRef(g),E=x.useRef();return x.useEffect(()=>{const T=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(T)},[]),ht(()=>{const T=u.current;if(T){E.current=E.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const v=T.getBoundingClientRect();c.current=v.height,m.current=v.width,b.current||(T.style.transitionDuration=E.current.transitionDuration,T.style.animationName=E.current.animationName),l(r)}},[o.open,r]),p.jsx(et.div,{"data-state":Bd(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!g,...i,ref:d,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":h?`${h}px`:void 0,...e.style},children:g&&a})});function Bd(e){return e?"open":"closed"}var sC=fT;const Hn=sC,zn=hT,Gn=gT;/**
|
|
2
|
+
* @license lucide-react v0.461.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const lC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),bT=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
7
|
+
* @license lucide-react v0.461.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/var uC={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
12
|
+
* @license lucide-react v0.461.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const cC=R.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:o,...s},l)=>R.createElement("svg",{ref:l,...uC,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:bT("lucide",a),...s},[...o.map(([u,d])=>R.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
|
|
17
|
+
* @license lucide-react v0.461.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const we=(e,t)=>{const n=R.forwardRef(({className:r,...a},i)=>R.createElement(cC,{ref:i,iconNode:t,className:bT(`lucide-${lC(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
|
|
22
|
+
* @license lucide-react v0.461.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/const dC=we("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
27
|
+
* @license lucide-react v0.461.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/const ET=we("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
32
|
+
* @license lucide-react v0.461.0 - ISC
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the ISC license.
|
|
35
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/const T0=we("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
|
37
|
+
* @license lucide-react v0.461.0 - ISC
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the ISC license.
|
|
40
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/const Er=we("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
42
|
+
* @license lucide-react v0.461.0 - ISC
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the ISC license.
|
|
45
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/const Fa=we("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
47
|
+
* @license lucide-react v0.461.0 - ISC
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the ISC license.
|
|
50
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/const Yi=we("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
52
|
+
* @license lucide-react v0.461.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const pC=we("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
57
|
+
* @license lucide-react v0.461.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const Ud=we("ChevronsDownUp",[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]]);/**
|
|
62
|
+
* @license lucide-react v0.461.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const qa=we("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
|
|
67
|
+
* @license lucide-react v0.461.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const fC=we("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
72
|
+
* @license lucide-react v0.461.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const yT=we("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
77
|
+
* @license lucide-react v0.461.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const xT=we("Copy",[["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"}]]);/**
|
|
82
|
+
* @license lucide-react v0.461.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const $d=we("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
87
|
+
* @license lucide-react v0.461.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const mC=we("Earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
92
|
+
* @license lucide-react v0.461.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const dr=we("ExternalLink",[["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"}]]);/**
|
|
97
|
+
* @license lucide-react v0.461.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const hC=we("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
|
|
102
|
+
* @license lucide-react v0.461.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const TT=we("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
107
|
+
* @license lucide-react v0.461.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const gC=we("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
|
|
112
|
+
* @license lucide-react v0.461.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const vT=we("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
|
|
117
|
+
* @license lucide-react v0.461.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const Ya=we("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
122
|
+
* @license lucide-react v0.461.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const bC=we("LockKeyholeOpen",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{width:"18",height:"12",x:"3",y:"10",rx:"2",key:"l0tzu3"}],["path",{d:"M7 10V7a5 5 0 0 1 9.33-2.5",key:"car5b7"}]]);/**
|
|
127
|
+
* @license lucide-react v0.461.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const ho=we("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
|
|
132
|
+
* @license lucide-react v0.461.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const v0=we("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
|
|
137
|
+
* @license lucide-react v0.461.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const ST=we("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
|
142
|
+
* @license lucide-react v0.461.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const EC=we("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
147
|
+
* @license lucide-react v0.461.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const yC=we("OctagonX",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 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-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
152
|
+
* @license lucide-react v0.461.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const S0=we("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
157
|
+
* @license lucide-react v0.461.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const AT=we("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
162
|
+
* @license lucide-react v0.461.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const A0=we("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/**
|
|
167
|
+
* @license lucide-react v0.461.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const wT=we("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
172
|
+
* @license lucide-react v0.461.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const xC=we("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
177
|
+
* @license lucide-react v0.461.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const TC=we("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
|
182
|
+
* @license lucide-react v0.461.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const jd=we("ShieldCheck",[["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"}]]);/**
|
|
187
|
+
* @license lucide-react v0.461.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const vC=we("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
|
|
192
|
+
* @license lucide-react v0.461.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const SC=we("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
197
|
+
* @license lucide-react v0.461.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const AC=we("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
|
|
202
|
+
* @license lucide-react v0.461.0 - ISC
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the ISC license.
|
|
205
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
+
*/const wC=we("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
207
|
+
* @license lucide-react v0.461.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const _T=we("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
212
|
+
* @license lucide-react v0.461.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the ISC license.
|
|
215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
+
*/const _C=we("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/**
|
|
217
|
+
* @license lucide-react v0.461.0 - ISC
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the ISC license.
|
|
220
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
+
*/const NT=we("Webhook",[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]]);/**
|
|
222
|
+
* @license lucide-react v0.461.0 - ISC
|
|
223
|
+
*
|
|
224
|
+
* This source code is licensed under the ISC license.
|
|
225
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
+
*/const NC=we("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
227
|
+
* @license lucide-react v0.461.0 - ISC
|
|
228
|
+
*
|
|
229
|
+
* This source code is licensed under the ISC license.
|
|
230
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
+
*/const CC=we("WrapText",[["line",{x1:"3",x2:"21",y1:"6",y2:"6",key:"4m8b97"}],["path",{d:"M3 12h15a3 3 0 1 1 0 6h-4",key:"1cl7v7"}],["polyline",{points:"16 16 14 18 16 20",key:"1jznyi"}],["line",{x1:"3",x2:"10",y1:"18",y2:"18",key:"1h33wv"}]]);/**
|
|
232
|
+
* @license lucide-react v0.461.0 - ISC
|
|
233
|
+
*
|
|
234
|
+
* This source code is licensed under the ISC license.
|
|
235
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
+
*/const Hd=we("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function CT(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=CT(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function kT(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=CT(e))&&(r&&(r+=" "),r+=t);return r}const w0=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,_0=kT,zd=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return _0(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:i}=t,o=Object.keys(a).map(u=>{const d=n==null?void 0:n[u],c=i==null?void 0:i[u];if(d===null)return null;const f=w0(d)||w0(c);return a[u][f]}),s=n&&Object.entries(n).reduce((u,d)=>{let[c,f]=d;return f===void 0||(u[c]=f),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:c,className:f,...m}=d;return Object.entries(m).every(h=>{let[g,b]=h;return Array.isArray(b)?b.includes({...i,...s}[g]):{...i,...s}[g]===b})?[...u,c,f]:u},[]);return _0(e,o,l,n==null?void 0:n.class,n==null?void 0:n.className)},Gd="-",kC=e=>{const t=RC(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const s=o.split(Gd);return s[0]===""&&s.length!==1&&s.shift(),IT(s,t)||IC(o)},getConflictingClassGroupIds:(o,s)=>{const l=n[o]||[];return s&&r[o]?[...l,...r[o]]:l}}},IT=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?IT(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const i=e.join(Gd);return(o=t.validators.find(({validator:s})=>s(i)))==null?void 0:o.classGroupId},N0=/^\[(.+)\]$/,IC=e=>{if(N0.test(e)){const t=N0.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},RC=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return DC(Object.entries(e.classGroups),n).forEach(([i,o])=>{Nc(o,r,i,t)}),r},Nc=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const i=a===""?t:C0(t,a);i.classGroupId=n;return}if(typeof a=="function"){if(OC(a)){Nc(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([i,o])=>{Nc(o,C0(t,i),n,r)})})},C0=(e,t)=>{let n=e;return t.split(Gd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},OC=e=>e.isThemeGetter,DC=(e,t)=>t?e.map(([n,r])=>{const a=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,s])=>[t+o,s])):i);return[n,a]}):e,LC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return a(i,o),o},set(i,o){n.has(i)?n.set(i,o):a(i,o)}}},RT="!",PC=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,a=t[0],i=t.length,o=s=>{const l=[];let u=0,d=0,c;for(let b=0;b<s.length;b++){let E=s[b];if(u===0){if(E===a&&(r||s.slice(b,b+i)===t)){l.push(s.slice(d,b)),d=b+i;continue}if(E==="/"){c=b;continue}}E==="["?u++:E==="]"&&u--}const f=l.length===0?s:s.substring(d),m=f.startsWith(RT),h=m?f.substring(1):f,g=c&&c>d?c-d:void 0;return{modifiers:l,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:g}};return n?s=>n({className:s,parseClassName:o}):o},FC=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},MC=e=>({cache:LC(e.cacheSize),parseClassName:PC(e),...kC(e)}),BC=/\s+/,UC=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,i=[],o=e.trim().split(BC);let s="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:d,hasImportantModifier:c,baseClassName:f,maybePostfixModifierPosition:m}=n(u);let h=!!m,g=r(h?f.substring(0,m):f);if(!g){if(!h){s=u+(s.length>0?" "+s:s);continue}if(g=r(f),!g){s=u+(s.length>0?" "+s:s);continue}h=!1}const b=FC(d).join(":"),E=c?b+RT:b,T=E+g;if(i.includes(T))continue;i.push(T);const v=a(g,h);for(let S=0;S<v.length;++S){const w=v[S];i.push(E+w)}s=u+(s.length>0?" "+s:s)}return s};function $C(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=OT(t))&&(r&&(r+=" "),r+=n);return r}const OT=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=OT(e[r]))&&(n&&(n+=" "),n+=t);return n};function jC(e,...t){let n,r,a,i=o;function o(l){const u=t.reduce((d,c)=>c(d),e());return n=MC(u),r=n.cache.get,a=n.cache.set,i=s,s(l)}function s(l){const u=r(l);if(u)return u;const d=UC(l,n);return a(l,d),d}return function(){return i($C.apply(null,arguments))}}const We=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},DT=/^\[(?:([a-z-]+):)?(.+)\]$/i,HC=/^\d+\/\d+$/,zC=new Set(["px","full","screen"]),GC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,VC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,WC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,qC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,YC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Fn=e=>_a(e)||zC.has(e)||HC.test(e),Xn=e=>Ka(e,"length",nk),_a=e=>!!e&&!Number.isNaN(Number(e)),du=e=>Ka(e,"number",_a),fi=e=>!!e&&Number.isInteger(Number(e)),KC=e=>e.endsWith("%")&&_a(e.slice(0,-1)),Ne=e=>DT.test(e),Zn=e=>GC.test(e),XC=new Set(["length","size","percentage"]),ZC=e=>Ka(e,XC,LT),QC=e=>Ka(e,"position",LT),JC=new Set(["image","url"]),ek=e=>Ka(e,JC,ak),tk=e=>Ka(e,"",rk),mi=()=>!0,Ka=(e,t,n)=>{const r=DT.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},nk=e=>VC.test(e)&&!WC.test(e),LT=()=>!1,rk=e=>qC.test(e),ak=e=>YC.test(e),ik=()=>{const e=We("colors"),t=We("spacing"),n=We("blur"),r=We("brightness"),a=We("borderColor"),i=We("borderRadius"),o=We("borderSpacing"),s=We("borderWidth"),l=We("contrast"),u=We("grayscale"),d=We("hueRotate"),c=We("invert"),f=We("gap"),m=We("gradientColorStops"),h=We("gradientColorStopPositions"),g=We("inset"),b=We("margin"),E=We("opacity"),T=We("padding"),v=We("saturate"),S=We("scale"),w=We("sepia"),A=We("skew"),_=We("space"),D=We("translate"),I=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",Ne,t],P=()=>[Ne,t],j=()=>["",Fn,Xn],z=()=>["auto",_a,Ne],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>["start","end","center","between","around","evenly","stretch"],G=()=>["","0",Ne],k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ae=()=>[_a,Ne];return{cacheSize:500,separator:":",theme:{colors:[mi],spacing:[Fn,Xn],blur:["none","",Zn,Ne],brightness:ae(),borderColor:[e],borderRadius:["none","","full",Zn,Ne],borderSpacing:P(),borderWidth:j(),contrast:ae(),grayscale:G(),hueRotate:ae(),invert:G(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[KC,Xn],inset:M(),margin:M(),opacity:ae(),padding:P(),saturate:ae(),scale:ae(),sepia:G(),skew:ae(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",Ne]}],container:["container"],columns:[{columns:[Zn]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...W(),Ne]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",fi,Ne]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ne]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",fi,Ne]}],"grid-cols":[{"grid-cols":[mi]}],"col-start-end":[{col:["auto",{span:["full",fi,Ne]},Ne]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[mi]}],"row-start-end":[{row:["auto",{span:[fi,Ne]},Ne]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ne]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ne]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...Z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ne,t]}],"min-w":[{"min-w":[Ne,t,"min","max","fit"]}],"max-w":[{"max-w":[Ne,t,"none","full","min","max","fit","prose",{screen:[Zn]},Zn]}],h:[{h:[Ne,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ne,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ne,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ne,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Zn,Xn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",du]}],"font-family":[{font:[mi]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Ne]}],"line-clamp":[{"line-clamp":["none",_a,du]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Fn,Ne]}],"list-image":[{"list-image":["none",Ne]}],"list-style-type":[{list:["none","disc","decimal",Ne]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Fn,Xn]}],"underline-offset":[{"underline-offset":["auto",Fn,Ne]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),QC]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ZC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ek]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:H()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[Fn,Ne]}],"outline-w":[{outline:[Fn,Xn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[Fn,Xn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Zn,tk]}],"shadow-color":[{shadow:[mi]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Zn,Ne]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[v]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Ne]}],duration:[{duration:ae()}],ease:[{ease:["linear","in","out","in-out",Ne]}],delay:[{delay:ae()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ne]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[fi,Ne]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ne]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ne]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ne]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Fn,Xn,du]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},ok=jC(ik);function Ee(...e){return ok(kT(e))}const sk=zd("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ge({className:e,variant:t,...n}){return p.jsx("div",{className:Ee(sk({variant:t}),e),...n})}const lk=zd("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Qe=x.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...a},i)=>{const o=r?Br:"button";return p.jsx(o,{className:Ee(lk({variant:t,size:n,className:e})),ref:i,...a})});Qe.displayName="Button";const Pt=x.forwardRef(({className:e,type:t,...n},r)=>p.jsx("input",{type:t,className:Ee("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Pt.displayName="Input";const k0="popstate",I0="beforeunload";function PT(e){let t=e.getLocation();const n=new Set,r=o=>{t=e.getLocation(),n.forEach(s=>s({location:t,action:o}))},a=()=>{t=e.getLocation(),n.forEach(o=>o({location:t,action:{type:"ROLLBACK"}}))},i=async({task:o,navigateOpts:s,...l})=>{var u,d;if((s==null?void 0:s.ignoreBlocker)??!1){o();return}const f=((u=e.getBlockers)==null?void 0:u.call(e))??[],m=l.type==="PUSH"||l.type==="REPLACE";if(typeof document<"u"&&f.length&&m)for(const h of f){const g=Ki(l.path,l.state);if(await h.blockerFn({currentLocation:t,nextLocation:g,action:l.type})){(d=e.onBlocked)==null||d.call(e,a);return}}o()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:o=>(n.add(o),()=>{n.delete(o)}),push:(o,s,l)=>{s=R0(s),i({task:()=>{e.pushState(o,s),r({type:"PUSH"})},navigateOpts:l,type:"PUSH",path:o,state:s})},replace:(o,s,l)=>{s=R0(s),i({task:()=>{e.replaceState(o,s),r({type:"REPLACE"})},navigateOpts:l,type:"REPLACE",path:o,state:s})},go:(o,s)=>{i({task:()=>{e.go(o),r({type:"GO",index:o})},navigateOpts:s,type:"GO"})},back:o=>{i({task:()=>{e.back((o==null?void 0:o.ignoreBlocker)??!1),r({type:"BACK"})},navigateOpts:o,type:"BACK"})},forward:o=>{i({task:()=>{e.forward((o==null?void 0:o.ignoreBlocker)??!1),r({type:"FORWARD"})},navigateOpts:o,type:"FORWARD"})},createHref:o=>e.createHref(o),block:o=>{var s;if(!e.setBlockers)return()=>{};const l=((s=e.getBlockers)==null?void 0:s.call(e))??[];return e.setBlockers([...l,o]),()=>{var u,d;const c=((u=e.getBlockers)==null?void 0:u.call(e))??[];(d=e.setBlockers)==null||d.call(e,c.filter(f=>f!==o))}},flush:()=>{var o;return(o=e.flush)==null?void 0:o.call(e)},destroy:()=>{var o;return(o=e.destroy)==null?void 0:o.call(e)},notify:r}}function R0(e){return e||(e={}),{...e,key:dk()}}function uk(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState;let a=[];const i=()=>a,o=_=>a=_,s=_=>_,l=()=>Ki(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state);let u=l(),d,c=!1,f=!1,m=!1;const h=()=>u;let g,b;const E=()=>{g&&(A._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,"",g.href),A._ignoreSubscribers=!1,g=void 0,b=void 0,d=void 0)},T=(_,D,I)=>{const O=s(D);b||(d=u),u=Ki(D,I),g={href:O,state:I,isPush:(g==null?void 0:g.isPush)||_==="push"},b||(b=Promise.resolve().then(()=>E()))},v=()=>{u=l(),A.notify({type:"POP"})},S=async()=>{if(c){c=!1;return}if(f)f=!1;else{const _=i();if(typeof document<"u"&&_.length)for(const D of _){const I=l();if(await D.blockerFn({currentLocation:u,nextLocation:I,action:"POP"})){c=!0,t.history.go(1),A.notify({type:"POP"});return}}}u=l(),A.notify({type:"POP"})},w=_=>{if(m){m=!1;return}let D=!1;const I=i();if(typeof document<"u"&&I.length)for(const O of I){const M=O.enableBeforeUnload??!0;if(M===!0){D=!0;break}if(typeof M=="function"&&M()===!0){D=!0;break}}if(D)return _.preventDefault(),_.returnValue=""},A=PT({getLocation:h,getLength:()=>t.history.length,pushState:(_,D)=>T("push",_,D),replaceState:(_,D)=>T("replace",_,D),back:_=>(_&&(f=!0),m=!0,t.history.back()),forward:_=>{_&&(f=!0),m=!0,t.history.forward()},go:_=>t.history.go(_),createHref:_=>s(_),flush:E,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(I0,w,{capture:!0}),t.removeEventListener(k0,S)},onBlocked:_=>{d&&u!==d&&(u=d,_())},getBlockers:i,setBlockers:o});return t.addEventListener(I0,w,{capture:!0}),t.addEventListener(k0,S),t.history.pushState=function(..._){const D=n.apply(t.history,_);return A._ignoreSubscribers||v(),D},t.history.replaceState=function(..._){const D=r.apply(t.history,_);return A._ignoreSubscribers||v(),D},A}function ck(e={initialEntries:["/"]}){const t=e.initialEntries;let n=e.initialIndex??t.length-1;const r=t.map(()=>({}));return PT({getLocation:()=>Ki(t[n],r[n]),getLength:()=>t.length,pushState:(i,o)=>{n<t.length-1&&(t.splice(n+1),r.splice(n+1)),r.push(o),t.push(i),n=Math.max(t.length-1,0)},replaceState:(i,o)=>{r[n]=o,t[n]=i},back:()=>{n=Math.max(n-1,0)},forward:()=>{n=Math.min(n+1,t.length-1)},go:i=>{n=Math.min(Math.max(n+i,0),t.length-1)},createHref:i=>i})}function Ki(e,t){const n=e.indexOf("#"),r=e.indexOf("?");return{href:e,pathname:e.substring(0,n>0?r>0?Math.min(n,r):n:r>0?r:e.length),hash:n>-1?e.substring(n):"",search:r>-1?e.slice(r,n===-1?void 0:n):"",state:t||{}}}function dk(){return(Math.random()+1).toString(36).substring(7)}var pk={},fk=pk.NODE_ENV==="production",pu="Invariant failed";function Wt(e,t){if(!e){if(fk)throw new Error(pu);var n=typeof t=="function"?t():t,r=n?"".concat(pu,": ").concat(n):pu;throw new Error(r)}}var mk={},hk=mk.NODE_ENV==="production";function Ma(e,t){if(!hk){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}const fu=x.createContext(null);function FT(){return typeof document>"u"?fu:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=fu,fu)}function yr(e){const t=x.useContext(FT());return Ma(!(((e==null?void 0:e.warn)??!0)&&!t),"useRouter must be used inside a <RouterProvider> component!"),t}var O0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function rl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cc={exports:{}},mu={},Go={exports:{}},hu={};/**
|
|
237
|
+
* @license React
|
|
238
|
+
* use-sync-external-store-shim.production.js
|
|
239
|
+
*
|
|
240
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
241
|
+
*
|
|
242
|
+
* This source code is licensed under the MIT license found in the
|
|
243
|
+
* LICENSE file in the root directory of this source tree.
|
|
244
|
+
*/var D0;function gk(){if(D0)return hu;D0=1;var e=R;function t(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function s(c,f){var m=f(),h=r({inst:{value:m,getSnapshot:f}}),g=h[0].inst,b=h[1];return i(function(){g.value=m,g.getSnapshot=f,l(g)&&b({inst:g})},[c,m,f]),a(function(){return l(g)&&b({inst:g}),c(function(){l(g)&&b({inst:g})})},[c]),o(m),m}function l(c){var f=c.getSnapshot;c=c.value;try{var m=f();return!n(c,m)}catch{return!0}}function u(c,f){return f()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return hu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,hu}var gu={},L0;function bk(){if(L0)return gu;L0=1;var e={};/**
|
|
245
|
+
* @license React
|
|
246
|
+
* use-sync-external-store-shim.development.js
|
|
247
|
+
*
|
|
248
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
249
|
+
*
|
|
250
|
+
* This source code is licensed under the MIT license found in the
|
|
251
|
+
* LICENSE file in the root directory of this source tree.
|
|
252
|
+
*/return e.NODE_ENV!=="production"&&function(){function t(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}function n(h,g){c||i.startTransition===void 0||(c=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var b=g();if(!f){var E=g();o(b,E)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}E=s({inst:{value:b,getSnapshot:g}});var T=E[0].inst,v=E[1];return u(function(){T.value=b,T.getSnapshot=g,r(T)&&v({inst:T})},[h,b,g]),l(function(){return r(T)&&v({inst:T}),h(function(){r(T)&&v({inst:T})})},[h]),d(b),b}function r(h){var g=h.getSnapshot;h=h.value;try{var b=g();return!o(h,b)}catch{return!0}}function a(h,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=R,o=typeof Object.is=="function"?Object.is:t,s=i.useState,l=i.useEffect,u=i.useLayoutEffect,d=i.useDebugValue,c=!1,f=!1,m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?a:n;gu.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:m,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),gu}var P0;function MT(){if(P0)return Go.exports;P0=1;var e={};return e.NODE_ENV==="production"?Go.exports=gk():Go.exports=bk(),Go.exports}/**
|
|
253
|
+
* @license React
|
|
254
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
255
|
+
*
|
|
256
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
257
|
+
*
|
|
258
|
+
* This source code is licensed under the MIT license found in the
|
|
259
|
+
* LICENSE file in the root directory of this source tree.
|
|
260
|
+
*/var F0;function Ek(){if(F0)return mu;F0=1;var e=R,t=MT();function n(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,s=e.useMemo,l=e.useDebugValue;return mu.useSyncExternalStoreWithSelector=function(u,d,c,f,m){var h=i(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=s(function(){function E(A){if(!T){if(T=!0,v=A,A=f(A),m!==void 0&&g.hasValue){var _=g.value;if(m(_,A))return S=_}return S=A}if(_=S,r(v,A))return _;var D=f(A);return m!==void 0&&m(_,D)?(v=A,_):(v=A,S=D)}var T=!1,v,S,w=c===void 0?null:c;return[function(){return E(d())},w===null?void 0:function(){return E(w())}]},[d,c,f,m]);var b=a(u,h[0],h[1]);return o(function(){g.hasValue=!0,g.value=b},[b]),l(b),b},mu}var bu={},M0;function yk(){if(M0)return bu;M0=1;var e={};/**
|
|
261
|
+
* @license React
|
|
262
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
263
|
+
*
|
|
264
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
265
|
+
*
|
|
266
|
+
* This source code is licensed under the MIT license found in the
|
|
267
|
+
* LICENSE file in the root directory of this source tree.
|
|
268
|
+
*/return e.NODE_ENV!=="production"&&function(){function t(d,c){return d===c&&(d!==0||1/d===1/c)||d!==d&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=R,r=MT(),a=typeof Object.is=="function"?Object.is:t,i=r.useSyncExternalStore,o=n.useRef,s=n.useEffect,l=n.useMemo,u=n.useDebugValue;bu.useSyncExternalStoreWithSelector=function(d,c,f,m,h){var g=o(null);if(g.current===null){var b={hasValue:!1,value:null};g.current=b}else b=g.current;g=l(function(){function T(_){if(!v){if(v=!0,S=_,_=m(_),h!==void 0&&b.hasValue){var D=b.value;if(h(D,_))return w=D}return w=_}if(D=w,a(S,_))return D;var I=m(_);return h!==void 0&&h(D,I)?(S=_,D):(S=_,w=I)}var v=!1,S,w,A=f===void 0?null:f;return[function(){return T(c())},A===null?void 0:function(){return T(A())}]},[c,f,m,h]);var E=i(d,g[0],g[1]);return s(function(){b.hasValue=!0,b.value=E},[E]),u(E),E},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}(),bu}var xk={};xk.NODE_ENV==="production"?Cc.exports=Ek():Cc.exports=yk();var Tk=Cc.exports;const Na=new WeakMap,Es=new WeakMap,Ds={current:[]};let Eu=!1,Ri=0;const Si=new Set,Vo=new Map;function BT(e){const t=Array.from(e).sort((n,r)=>n instanceof Ca&&n.options.deps.includes(r)?1:r instanceof Ca&&r.options.deps.includes(n)?-1:0);for(const n of t){if(Ds.current.includes(n))continue;Ds.current.push(n),n.recompute();const r=Es.get(n);if(r)for(const a of r){const i=Na.get(a);i&&BT(i)}}}function vk(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function Sk(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function UT(e){if(Ri>0&&!Vo.has(e)&&Vo.set(e,e.prevState),Si.add(e),!(Ri>0)&&!Eu)try{for(Eu=!0;Si.size>0;){const t=Array.from(Si);Si.clear();for(const n of t){const r=Vo.get(n)??n.prevState;n.prevState=r,vk(n)}for(const n of t){const r=Na.get(n);r&&(Ds.current.push(n),BT(r))}for(const n of t){const r=Na.get(n);if(r)for(const a of r)Sk(a)}}}finally{Eu=!1,Ds.current=[],Vo.clear()}}function yu(e){Ri++;try{e()}finally{if(Ri--,Ri===0){const t=Array.from(Si)[0];t&&UT(t)}}}class kc{constructor(t,n){this.listeners=new Set,this.subscribe=r=>{var a,i;this.listeners.add(r);const o=(i=(a=this.options)==null?void 0:a.onSubscribe)==null?void 0:i.call(a,r,this);return()=>{this.listeners.delete(r),o==null||o()}},this.setState=r=>{var a,i,o;this.prevState=this.state,this.state=(a=this.options)!=null&&a.updateFn?this.options.updateFn(this.prevState)(r):r(this.prevState),(o=(i=this.options)==null?void 0:i.onUpdate)==null||o.call(i),UT(this)},this.prevState=t,this.state=t,this.options=n}}class Ca{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const n=[],r=[];for(const a of this.options.deps)n.push(a.prevState),r.push(a.state);return this.lastSeenDepValues=r,{prevDepVals:n,currDepVals:r,prevVal:this.prevState??void 0}},this.recompute=()=>{var n,r;this.prevState=this.state;const{prevDepVals:a,currDepVals:i,prevVal:o}=this.getDepVals();this.state=this.options.fn({prevDepVals:a,currDepVals:i,prevVal:o}),(r=(n=this.options).onUpdate)==null||r.call(n)},this.checkIfRecalculationNeededDeeply=()=>{for(const i of this.options.deps)i instanceof Ca&&i.checkIfRecalculationNeededDeeply();let n=!1;const r=this.lastSeenDepValues,{currDepVals:a}=this.getDepVals();for(let i=0;i<a.length;i++)if(a[i]!==r[i]){n=!0;break}n&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const n of this._subscriptions)n()}),this.subscribe=n=>{var r,a;this.listeners.add(n);const i=(a=(r=this.options).onSubscribe)==null?void 0:a.call(r,n,this);return()=>{this.listeners.delete(n),i==null||i()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const n of t)if(n instanceof Ca)n.registerOnGraph(),this.registerOnGraph(n.options.deps);else if(n instanceof kc){let r=Na.get(n);r||(r=new Set,Na.set(n,r)),r.add(this);let a=Es.get(this);a||(a=new Set,Es.set(this,a)),a.add(n)}}unregisterFromGraph(t=this.options.deps){for(const n of t)if(n instanceof Ca)this.unregisterFromGraph(n.options.deps);else if(n instanceof kc){const r=Na.get(n);r&&r.delete(this);const a=Es.get(this);a&&a.delete(n)}}}function Ak(e,t=n=>n){return Tk.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,wk)}function wk(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,a]of e)if(!t.has(r)||!Object.is(a,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}const Vt="__root__";function _k(e,t){let n,r,a,i="";for(n in e)if((a=e[n])!==void 0)if(Array.isArray(a))for(r=0;r<a.length;r++)i&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(a[r]);else i&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(a);return""+i}function B0(e){if(!e)return"";const t=decodeURIComponent(e);return t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t}function Nk(e,t){let n,r;const a={},i=e.split("&");for(;n=i.shift();){const o=n.indexOf("=");if(o!==-1){r=n.slice(0,o),r=decodeURIComponent(r);const s=n.slice(o+1);a[r]!==void 0?a[r]=[].concat(a[r],B0(s)):a[r]=B0(s)}else r=n,r=decodeURIComponent(r),a[r]=""}return a}const Ck=Ik(JSON.parse),kk=Rk(JSON.stringify,JSON.parse);function Ik(e){return t=>{t.substring(0,1)==="?"&&(t=t.substring(1));const n=Nk(t);for(const r in n){const a=n[r];if(typeof a=="string")try{n[r]=e(a)}catch{}}return n}}function Rk(e,t){function n(r){if(typeof r=="object"&&r!==null)try{return e(r)}catch{}else if(typeof r=="string"&&typeof t=="function")try{return t(r),e(r)}catch{}return r}return r=>{r={...r},Object.keys(r).forEach(i=>{const o=r[i];typeof o>"u"||o===void 0?delete r[i]:r[i]=n(o)});const a=_k(r).toString();return a?`?${a}`:""}}function Oi(e){return e[e.length-1]}function Ok(e){return typeof e=="function"}function va(e,t){return Ok(e)?e(t):e}function ys(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function Qt(e,t){if(e===t)return e;const n=t,r=$0(e)&&$0(n);if(r||or(e)&&or(n)){const a=r?e:Object.keys(e),i=a.length,o=r?n:Object.keys(n),s=o.length,l=r?[]:{};let u=0;for(let d=0;d<s;d++){const c=r?d:o[d];(!r&&a.includes(c)||r)&&e[c]===void 0&&n[c]===void 0?(l[c]=void 0,u++):(l[c]=Qt(e[c],n[c]),l[c]===e[c]&&e[c]!==void 0&&u++)}return i===s&&u===i?e:l}return n}function or(e){if(!U0(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!U0(n)||!n.hasOwnProperty("isPrototypeOf"))}function U0(e){return Object.prototype.toString.call(e)==="[object Object]"}function $0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function j0(e,t){let n=Object.keys(e);return t&&(n=n.filter(r=>e[r]!==void 0)),n}function ka(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(or(e)&&or(t)){const r=(n==null?void 0:n.ignoreUndefined)??!0,a=j0(e,r),i=j0(t,r);return!(n!=null&&n.partial)&&a.length!==i.length?!1:i.every(o=>ka(e[o],t[o],n))}return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:!e.some((r,a)=>!ka(r,t[a],n)):!1}const Ai=typeof window<"u"?x.useLayoutEffect:x.useEffect;function ya(e){let t,n;const r=new Promise((a,i)=>{t=a,n=i});return r.status="pending",r.resolve=a=>{r.status="resolved",r.value=a,t(a),e==null||e(a)},r.reject=a=>{r.status="rejected",n(a)},r}function xu(e){const t=x.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function Dk(e,t,n={},r={}){const a=x.useRef(typeof IntersectionObserver=="function"),i=x.useRef(null);return x.useEffect(()=>{if(!(!e.current||!a.current||r.disabled))return i.current=new IntersectionObserver(([o])=>{t(o)},n),i.current.observe(e.current),()=>{var o;(o=i.current)==null||o.disconnect()}},[t,n,r.disabled,e]),i.current}function Lk(e){const t=x.useRef(null);return x.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function $n(e){return al(e.filter(t=>t!==void 0).join("/"))}function al(e){return e.replace(/\/{2,}/g,"/")}function Vd(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Lr(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function Pk(e){return Lr(Vd(e))}function Ls(e,t){return e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function Fk(e,t,n){return Ls(e,n)===Ls(t,n)}function Mk({basepath:e,base:t,to:n,trailingSlash:r="never",caseSensitive:a}){var i,o;t=Ps(e,t,a),n=Ps(e,n,a);let s=Ba(t);const l=Ba(n);s.length>1&&((i=Oi(s))==null?void 0:i.value)==="/"&&s.pop(),l.forEach((d,c)=>{d.value==="/"?c?c===l.length-1&&s.push(d):s=[d]:d.value===".."?s.pop():d.value==="."||s.push(d)}),s.length>1&&(((o=Oi(s))==null?void 0:o.value)==="/"?r==="never"&&s.pop():r==="always"&&s.push({type:"pathname",value:"/"}));const u=$n([e,...s.map(d=>d.value)]);return al(u)}function Ba(e){if(!e)return[];e=al(e);const t=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),!e)return t;const n=e.split("/").filter(Boolean);return t.push(...n.map(r=>r==="$"||r==="*"?{type:"wildcard",value:r}:r.charAt(0)==="$"?{type:"param",value:r}:{type:"pathname",value:decodeURI(r)})),e.slice(-1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),t}function Wo({path:e,params:t,leaveWildcards:n,leaveParams:r,decodeCharMap:a}){const i=Ba(e),o={};for(const[s,l]of Object.entries(t)){const u=typeof l=="string";["*","_splat"].includes(s)?o[s]=u?encodeURI(l):l:o[s]=u?Bk(l,a):l}return $n(i.map(s=>{if(s.type==="wildcard"){const l=o._splat;return n?`${s.value}${l??""}`:l}if(s.type==="param"){if(r){const l=o[s.value];return`${s.value}${l??""}`}return o[s.value.substring(1)]??"undefined"}return s.value}))}function Bk(e,t){let n=encodeURIComponent(e);if(t)for(const[r,a]of t)n=n.replaceAll(r,a);return n}function qo(e,t,n){const r=Uk(e,t,n);if(!(n.to&&!r))return r??{}}function Ps(e,t,n=!1){const r=n?e:e.toLowerCase(),a=n?t:t.toLowerCase();switch(!0){case r==="/":return t;case a===r:return"";case t.length<e.length:return t;case a[r.length]!=="/":return t;case a.startsWith(r):return t.slice(e.length);default:return t}}function Uk(e,t,n){if(e!=="/"&&!t.startsWith(e))return;t=Ps(e,t,n.caseSensitive);const r=Ps(e,`${n.to??"$"}`,n.caseSensitive),a=Ba(t),i=Ba(r);t.startsWith("/")||a.unshift({type:"pathname",value:"/"}),r.startsWith("/")||i.unshift({type:"pathname",value:"/"});const o={};return(()=>{for(let l=0;l<Math.max(a.length,i.length);l++){const u=a[l],d=i[l],c=l>=a.length-1,f=l>=i.length-1;if(d){if(d.type==="wildcard"){const m=decodeURI($n(a.slice(l).map(h=>h.value)));return o["*"]=m,o._splat=m,!0}if(d.type==="pathname"){if(d.value==="/"&&!(u!=null&&u.value))return!0;if(u){if(n.caseSensitive){if(d.value!==u.value)return!1}else if(d.value.toLowerCase()!==u.value.toLowerCase())return!1}}if(!u)return!1;if(d.type==="param"){if(u.value==="/")return!1;u.value.charAt(0)!=="$"&&(o[d.value.substring(1)]=decodeURIComponent(u.value))}}if(!c&&f)return o["**"]=$n(a.slice(l+1).map(m=>m.value)),!!n.fuzzy&&(d==null?void 0:d.value)!=="/"}return!0})()?o:void 0}function Ir(e){return!!(e!=null&&e.isRedirect)}function Tu(e){return!!(e!=null&&e.isRedirect)&&e.href}var $k={};function Wd(e){const t=e.errorComponent??il;return p.jsx(jk,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?x.createElement(t,{error:n,reset:r}):e.children})}class jk extends x.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function il({error:e}){const[t,n]=x.useState($k.NODE_ENV!=="production");return p.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[p.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[p.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),p.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),p.jsx("div",{style:{height:".25rem"}}),t?p.jsx("div",{children:p.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?p.jsx("code",{children:e.message}):null})}):null]})}function Ft(e){const t=yr({warn:(e==null?void 0:e.router)===void 0}),n=(e==null?void 0:e.router)||t,r=R.useRef();return Ak(n.__store,a=>{if(e!=null&&e.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const i=Qt(r.current,e.select(a));return r.current=i,i}return e.select(a)}return a})}function dn(e){return!!(e!=null&&e.isNotFound)}function Hk(e){const t=Ft({select:n=>`not-found-${n.location.pathname}-${n.status}`});return p.jsx(Wd,{getResetKey:()=>t,onCatch:(n,r)=>{var a;if(dn(n))(a=e.onCatch)==null||a.call(e,n,r);else throw n},errorComponent:({error:n})=>{var r;if(dn(n))return(r=e.fallback)==null?void 0:r.call(e,n);throw n},children:e.children})}function zk(){return p.jsx("p",{children:"Not Found"})}const wi={stringify:e=>JSON.stringify(e,function(n,r){const a=this[n],i=Yo.find(o=>o.stringifyCondition(a));return i?i.stringify(a):r}),parse:e=>JSON.parse(e,function(n,r){const a=this[n];if(or(a)){const i=Yo.find(o=>o.parseCondition(a));if(i)return i.parse(a)}return r}),encode:e=>{if(Array.isArray(e))return e.map(n=>wi.encode(n));if(or(e))return Object.fromEntries(Object.entries(e).map(([n,r])=>[n,wi.encode(r)]));const t=Yo.find(n=>n.stringifyCondition(e));return t?t.stringify(e):e},decode:e=>{if(or(e)){const t=Yo.find(n=>n.parseCondition(e));if(t)return t.parse(e)}return Array.isArray(e)?e.map(t=>wi.decode(t)):or(e)?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,wi.decode(n)])):e}},vu=(e,t,n=a=>a,r=a=>a)=>({key:e,stringifyCondition:t,stringify:a=>({[`$${e}`]:n(a)}),parseCondition:a=>Object.hasOwn(a,`$${e}`),parse:a=>r(a[`$${e}`])}),Yo=[vu("undefined",e=>e===void 0,()=>0,()=>{}),vu("date",e=>e instanceof Date,e=>e.toISOString(),e=>new Date(e)),vu("error",e=>e instanceof Error,e=>({...e,message:e.message,stack:e.stack,cause:e.cause}),e=>Object.assign(new Error(e.message),e))];var $T={};const jT=["component","errorComponent","pendingComponent","notFoundComponent"];function Gk(e){var t;for(const n of jT)if((t=e.options[n])!=null&&t.preload)return!0;return!1}function Su(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Ic("Async validation not supported");if(n.issues)throw new Ic(JSON.stringify(n.issues,void 0,2));return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}class Vk{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.startReactTransition=n=>n(),this.update=n=>{var r;n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/guide/not-found-errors#migrating-from-notfoundroute for more info.");const a=this.options;this.options={...this.options,...n},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(i=>[encodeURIComponent(i),i])):void 0,(!this.basepath||n.basepath&&n.basepath!==a.basepath)&&(n.basepath===void 0||n.basepath===""||n.basepath==="/"?this.basepath="/":this.basepath=`/${Pk(n.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?ck({initialEntries:[this.basepath||"/"]}):uk()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new kc(qk(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(i=>!["redirected"].includes(i.status))}}})),typeof window<"u"&&"CSS"in window&&typeof((r=window.CSS)==null?void 0:r.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.buildRouteTree=()=>{this.routesById={},this.routesByPath={};const n=this.options.notFoundRoute;n&&(n.init({originalIndex:99999999999,defaultSsr:this.options.defaultSsr}),this.routesById[n.id]=n);const r=o=>{o.forEach((s,l)=>{s.init({originalIndex:l,defaultSsr:this.options.defaultSsr});const u=this.routesById[s.id];if(Wt(!u,`Duplicate routes found with id: ${String(s.id)}`),this.routesById[s.id]=s,!s.isRoot&&s.path){const c=Lr(s.fullPath);(!this.routesByPath[c]||s.fullPath.endsWith("/"))&&(this.routesByPath[c]=s)}const d=s.children;d!=null&&d.length&&r(d)})};r([this.routeTree]);const a=[];Object.values(this.routesById).forEach((o,s)=>{var l;if(o.isRoot||!o.path)return;const u=Vd(o.fullPath),d=Ba(u);for(;d.length>1&&((l=d[0])==null?void 0:l.value)==="/";)d.shift();const c=d.map(f=>f.value==="/"?.75:f.type==="param"?.5:f.type==="wildcard"?.25:1);a.push({child:o,trimmed:u,parsed:d,index:s,scores:c})}),this.flatRoutes=a.sort((o,s)=>{const l=Math.min(o.scores.length,s.scores.length);for(let u=0;u<l;u++)if(o.scores[u]!==s.scores[u])return s.scores[u]-o.scores[u];if(o.scores.length!==s.scores.length)return s.scores.length-o.scores.length;for(let u=0;u<l;u++)if(o.parsed[u].value!==s.parsed[u].value)return o.parsed[u].value>s.parsed[u].value?1:-1;return o.index-s.index}).map((o,s)=>(o.child.rank=s,o.child))},this.subscribe=(n,r)=>{const a={eventType:n,fn:r};return this.subscribers.add(a),()=>{this.subscribers.delete(a)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=(n,r)=>{const a=({pathname:l,search:u,hash:d,state:c})=>{const f=this.options.parseSearch(u),m=this.options.stringifySearch(f);return{pathname:l,searchStr:m,search:Qt(n==null?void 0:n.search,f),hash:d.split("#").reverse()[0]??"",href:`${l}${m}${d}`,state:Qt(n==null?void 0:n.state,c)}},i=a(r??this.history.location),{__tempLocation:o,__tempKey:s}=i.state;if(o&&(!s||s===this.tempLocationKey)){const l=a(o);return l.state.key=i.state.key,delete l.state.__tempLocation,{...l,maskedLocation:i}}return i},this.resolvePathWithBase=(n,r)=>Mk({basepath:this.basepath,base:n,to:al(r),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive}),this.getMatchedRoutes=(n,r)=>{let a={};const i=Lr(n.pathname),o=d=>qo(this.basepath,i,{to:d.fullPath,caseSensitive:d.options.caseSensitive??this.options.caseSensitive,fuzzy:!0});let s=(r==null?void 0:r.to)!==void 0?this.routesByPath[r.to]:void 0;s?a=o(s):s=this.flatRoutes.find(d=>{const c=o(d);return c?(a=c,!0):!1});let l=s||this.routesById[Vt];const u=[l];for(;l.parentRoute;)l=l.parentRoute,u.unshift(l);return{matchedRoutes:u,routeParams:a,foundRoute:s}},this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r.pendingTimeout))},this.cancelMatches=()=>{var n;(n=this.state.pendingMatches)==null||n.forEach(r=>{this.cancelMatch(r.id)})},this.buildLocation=n=>{const r=(i={},o)=>{var s,l,u,d,c,f;const m=i._fromLocation?this.matchRoutes(i._fromLocation,{_buildLocation:!0}):this.state.matches,h=i.from!=null?m.find(M=>qo(this.basepath,Lr(M.pathname),{to:i.from,caseSensitive:!1,fuzzy:!1})):void 0,g=(h==null?void 0:h.pathname)||this.latestLocation.pathname;Wt(i.from==null||h!=null,"Could not find match for from: "+i.from);const b=(s=this.state.pendingMatches)!=null&&s.length?(l=Oi(this.state.pendingMatches))==null?void 0:l.search:((u=Oi(m))==null?void 0:u.search)||this.latestLocation.search,E=o==null?void 0:o.matchedRoutes.filter(M=>m.find(P=>P.routeId===M.id));let T;if(i.to)T=this.resolvePathWithBase(g,`${i.to}`);else{const M=this.routesById[(d=E==null?void 0:E.find(P=>{const j=Wo({path:P.fullPath,params:(o==null?void 0:o.routeParams)??{},decodeCharMap:this.pathParamsDecodeCharMap});return $n([this.basepath,j])===g}))==null?void 0:d.id];T=this.resolvePathWithBase(g,(M==null?void 0:M.to)??g)}const v={...(c=Oi(m))==null?void 0:c.params};let S=(i.params??!0)===!0?v:{...v,...va(i.params,v)};Object.keys(S).length>0&&(o==null||o.matchedRoutes.map(M=>{var P;return((P=M.options.params)==null?void 0:P.stringify)??M.options.stringifyParams}).filter(Boolean).forEach(M=>{S={...S,...M(S)}})),T=Wo({path:T,params:S??{},leaveWildcards:!1,leaveParams:n.leaveParams,decodeCharMap:this.pathParamsDecodeCharMap});let w=b;if(n._includeValidateSearch&&((f=this.options.search)!=null&&f.strict)){let M={};o==null||o.matchedRoutes.forEach(P=>{try{P.options.validateSearch&&(M={...M,...Su(P.options.validateSearch,{...M,...w})??{}})}catch{}}),w=M}w=(M=>{const P=(o==null?void 0:o.matchedRoutes.reduce((W,H)=>{var X;const Z=[];if("search"in H.options)(X=H.options.search)!=null&&X.middlewares&&Z.push(...H.options.search.middlewares);else if(H.options.preSearchFilters||H.options.postSearchFilters){const G=({search:k,next:ae})=>{let V=k;"preSearchFilters"in H.options&&H.options.preSearchFilters&&(V=H.options.preSearchFilters.reduce((te,U)=>U(te),k));const N=ae(V);return"postSearchFilters"in H.options&&H.options.postSearchFilters?H.options.postSearchFilters.reduce((te,U)=>U(te),N):N};Z.push(G)}if(n._includeValidateSearch&&H.options.validateSearch){const G=({search:k,next:ae})=>{try{const V=ae(k);return{...V,...Su(H.options.validateSearch,V)??{}}}catch{}};Z.push(G)}return W.concat(Z)},[]))??[],j=({search:W})=>i.search?i.search===!0?W:va(i.search,W):{};P.push(j);const z=(W,H)=>{if(W>=P.length)return H;const X=P[W];return X({search:H,next:G=>z(W+1,G)})};return z(0,M)})(w),w=Qt(b,w);const _=this.options.stringifySearch(w),D=i.hash===!0?this.latestLocation.hash:i.hash?va(i.hash,this.latestLocation.hash):void 0,I=D?`#${D}`:"";let O=i.state===!0?this.latestLocation.state:i.state?va(i.state,this.latestLocation.state):{};return O=Qt(this.latestLocation.state,O),{pathname:T,search:w,searchStr:_,state:O,hash:D??"",href:`${T}${_}${I}`,unmaskOnReload:i.unmaskOnReload}},a=(i={},o)=>{var s;const l=r(i);let u=o?r(o):void 0;if(!u){let f={};const m=(s=this.options.routeMasks)==null?void 0:s.find(h=>{const g=qo(this.basepath,l.pathname,{to:h.from,caseSensitive:!1,fuzzy:!1});return g?(f=g,!0):!1});if(m){const{from:h,...g}=m;o={...ys(n,["from"]),...g,params:f},u=r(o)}}const d=this.getMatchedRoutes(l,i),c=r(i,d);if(u){const f=this.getMatchedRoutes(u,o),m=r(o,f);c.maskedLocation=m}return c};return n.mask?a(n,{...ys(n,["from"]),...n.mask}):a(n)},this.commitLocation=({viewTransition:n,ignoreBlocker:r,...a})=>{const i=()=>{a.state.key=this.latestLocation.state.key;const l=ka(a.state,this.latestLocation.state);return delete a.state.key,l},o=this.latestLocation.href===a.href,s=this.commitLocationPromise;if(this.commitLocationPromise=ya(()=>{s==null||s.resolve()}),o&&i())this.load();else{let{maskedLocation:l,hashScrollIntoView:u,...d}=a;l&&(d={...l,state:{...l.state,__tempKey:void 0,__tempLocation:{...d,search:d.searchStr,state:{...d.state,__tempKey:void 0,__tempLocation:void 0,key:void 0}}}},(d.unmaskOnReload??this.options.unmaskOnReload??!1)&&(d.state.__tempKey=this.tempLocationKey)),d.state.__hashScrollIntoViewOptions=u??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[a.replace?"replace":"push"](d.href,d.state,{ignoreBlocker:r})}return this.resetNextScroll=a.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,hashScrollIntoView:a,viewTransition:i,ignoreBlocker:o,href:s,...l}={})=>{if(s){const d=Ki(s,{});l.to=d.pathname,l.search=this.options.parseSearch(d.search),l.hash=d.hash.slice(1)}const u=this.buildLocation({...l,_includeValidateSearch:!0});return this.commitLocation({...u,viewTransition:i,replace:n,resetScroll:r,hashScrollIntoView:a,ignoreBlocker:o})},this.navigate=({to:n,reloadDocument:r,href:a,...i})=>{if(r){a||(a=this.buildLocation({to:n,...i}).href),i.replace?window.location.replace(a):window.location.href=a;return}return this.buildAndCommitLocation({...i,href:a,to:n})},this.load=async()=>{this.latestLocation=this.parseLocation(this.latestLocation);let n,r,a;for(a=new Promise(i=>{this.startReactTransition(async()=>{var o;try{const s=this.latestLocation,l=this.state.resolvedLocation,u=l.href!==s.href,d=l.pathname!==s.pathname;this.cancelMatches();let c;yu(()=>{c=this.matchRoutes(s),this.__store.setState(f=>({...f,status:"pending",isLoading:!0,location:s,pendingMatches:c,cachedMatches:f.cachedMatches.filter(m=>!c.find(h=>h.id===m.id))}))}),this.state.redirect||this.emit({type:"onBeforeNavigate",fromLocation:l,toLocation:s,pathChanged:d,hrefChanged:u}),this.emit({type:"onBeforeLoad",fromLocation:l,toLocation:s,pathChanged:d,hrefChanged:u}),await this.loadMatches({matches:c,location:s,onReady:async()=>{this.startViewTransition(async()=>{let f,m,h;yu(()=>{this.__store.setState(g=>{const b=g.matches,E=g.pendingMatches||g.matches;return f=b.filter(T=>!E.find(v=>v.id===T.id)),m=E.filter(T=>!b.find(v=>v.id===T.id)),h=b.filter(T=>E.find(v=>v.id===T.id)),{...g,isLoading:!1,loadedAt:Date.now(),matches:E,pendingMatches:void 0,cachedMatches:[...g.cachedMatches,...f.filter(T=>T.status!=="error")]}}),this.clearExpiredCache()}),[[f,"onLeave"],[m,"onEnter"],[h,"onStay"]].forEach(([g,b])=>{g.forEach(E=>{var T,v;(v=(T=this.looseRoutesById[E.routeId].options)[b])==null||v.call(T,E)})})})}})}catch(s){Tu(s)?(n=s,this.isServer||this.navigate({...n,replace:!0,ignoreBlocker:!0})):dn(s)&&(r=s),this.__store.setState(l=>({...l,statusCode:n?n.statusCode:r?404:l.matches.some(u=>u.status==="error")?500:200,redirect:n}))}this.latestLoadPromise===a&&((o=this.commitLocationPromise)==null||o.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),i()})}),this.latestLoadPromise=a,await a;this.latestLoadPromise&&a!==this.latestLoadPromise;)await this.latestLoadPromise},this.startViewTransition=n=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let a;typeof r=="object"&&this.isViewTransitionTypesSupported?a={update:n,types:r.types}:a=n,document.startViewTransition(a)}else n()},this.updateMatch=(n,r)=>{var a;let i;const o=(a=this.state.pendingMatches)==null?void 0:a.find(d=>d.id===n),s=this.state.matches.find(d=>d.id===n),l=this.state.cachedMatches.find(d=>d.id===n),u=o?"pendingMatches":s?"matches":l?"cachedMatches":"";return u&&this.__store.setState(d=>{var c;return{...d,[u]:(c=d[u])==null?void 0:c.map(f=>f.id===n?i=r(f):f)}}),i},this.getMatch=n=>[...this.state.cachedMatches,...this.state.pendingMatches??[],...this.state.matches].find(r=>r.id===n),this.loadMatches=async({location:n,matches:r,preload:a,onReady:i,updateMatch:o=this.updateMatch})=>{let s,l=!1;const u=async()=>{l||(l=!0,await(i==null?void 0:i()))},d=f=>!!(a&&!this.state.matches.find(m=>m.id===f));!this.isServer&&!this.state.matches.length&&u();const c=(f,m)=>{var h,g,b;if(Tu(m)&&!m.reloadDocument)throw m;if(Ir(m)||dn(m)){if(o(f.id,E=>({...E,status:Ir(m)?"redirected":dn(m)?"notFound":"error",isFetching:!1,error:m,beforeLoadPromise:void 0,loaderPromise:void 0})),m.routeId||(m.routeId=f.routeId),(h=f.beforeLoadPromise)==null||h.resolve(),(g=f.loaderPromise)==null||g.resolve(),(b=f.loadPromise)==null||b.resolve(),Ir(m))throw l=!0,m=this.resolveRedirect({...m,_fromLocation:n}),m;if(dn(m))throw this._handleNotFound(r,m,{updateMatch:o}),m}};try{await new Promise((f,m)=>{(async()=>{var h,g,b;try{const E=(S,w,A)=>{var _,D;const{id:I,routeId:O}=r[S],M=this.looseRoutesById[O];if(w instanceof Promise)throw w;w.routerCode=A,s=s??S,c(this.getMatch(I),w);try{(D=(_=M.options).onError)==null||D.call(_,w)}catch(P){w=P,c(this.getMatch(I),w)}o(I,P=>{var j,z;return(j=P.beforeLoadPromise)==null||j.resolve(),(z=P.loadPromise)==null||z.resolve(),{...P,error:w,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController,beforeLoadPromise:void 0}})};for(const[S,{id:w,routeId:A}]of r.entries()){const _=this.getMatch(w),D=(h=r[S-1])==null?void 0:h.id,I=this.looseRoutesById[A],O=I.options.pendingMs??this.options.defaultPendingMs,M=!!(i&&!this.isServer&&!d(w)&&(I.options.loader||I.options.beforeLoad)&&typeof O=="number"&&O!==1/0&&(I.options.pendingComponent??this.options.defaultPendingComponent));let P=!0;if((_.beforeLoadPromise||_.loaderPromise)&&(M&&setTimeout(()=>{try{u()}catch{}},O),await _.beforeLoadPromise,P=this.getMatch(w).status!=="success"),P){try{o(w,U=>({...U,loadPromise:ya(()=>{var K;(K=U.loadPromise)==null||K.resolve()}),beforeLoadPromise:ya()}));const j=new AbortController;let z;M&&(z=setTimeout(()=>{try{u()}catch{}},O));const{paramsError:W,searchError:H}=this.getMatch(w);W&&E(S,W,"PARSE_PARAMS"),H&&E(S,H,"VALIDATE_SEARCH");const X=()=>D?this.getMatch(D).context:this.options.context??{};o(w,U=>({...U,isFetching:"beforeLoad",fetchCount:U.fetchCount+1,abortController:j,pendingTimeout:z,context:{...X(),...U.__routeContext,...U.__beforeLoadContext}}));const{search:Z,params:G,context:k,cause:ae}=this.getMatch(w),V=d(w),N={search:Z,abortController:j,params:G,preload:V,context:k,location:n,navigate:U=>this.navigate({...U,_fromLocation:n}),buildLocation:this.buildLocation,cause:V?"preload":ae,matches:r};let te=await((b=(g=I.options).beforeLoad)==null?void 0:b.call(g,N))??{};this.serializeLoaderData&&(te=this.serializeLoaderData("__beforeLoadContext",te,{router:this,match:this.getMatch(w)})),(Ir(te)||dn(te))&&E(S,te,"BEFORE_LOAD"),o(w,U=>({...U,__beforeLoadContext:te,context:{...X(),...U.__routeContext,...te},abortController:j}))}catch(j){E(S,j,"BEFORE_LOAD")}o(w,j=>{var z;return(z=j.beforeLoadPromise)==null||z.resolve(),{...j,beforeLoadPromise:void 0,isFetching:!1}})}}const T=r.slice(0,s),v=[];T.forEach(({id:S,routeId:w},A)=>{v.push((async()=>{const{loaderPromise:_}=this.getMatch(S);let D=!1;if(_)await _;else{const I=v[A-1],O=this.looseRoutesById[w],M=()=>{const{params:V,loaderDeps:N,abortController:te,context:U,cause:K}=this.getMatch(S),Q=d(S);return{params:V,deps:N,preload:!!Q,parentMatchPromise:I,abortController:te,context:U,location:n,navigate:J=>this.navigate({...J,_fromLocation:n}),cause:Q?"preload":K,route:O}},P=Date.now()-this.getMatch(S).updatedAt,j=d(S),z=j?O.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:O.options.staleTime??this.options.defaultStaleTime??0,W=O.options.shouldReload,H=typeof W=="function"?W(M()):W;o(S,V=>({...V,loaderPromise:ya(),preload:!!j&&!this.state.matches.find(N=>N.id===S)}));const X=async()=>{var V,N,te,U,K,Q,J,oe;try{const de=async()=>{const ie=this.getMatch(S);ie.minPendingPromise&&await ie.minPendingPromise};try{this.loadRouteChunk(O),o(S,be=>({...be,isFetching:"loader"}));let ie=await((N=(V=O.options).loader)==null?void 0:N.call(V,M()));this.serializeLoaderData&&(ie=this.serializeLoaderData("loaderData",ie,{router:this,match:this.getMatch(S)})),c(this.getMatch(S),ie),await O._lazyPromise,await de();const $=(U=(te=O.options).head)==null?void 0:U.call(te,{matches:r,match:this.getMatch(S),params:this.getMatch(S).params,loaderData:ie}),re=$==null?void 0:$.meta,se=$==null?void 0:$.links,pe=$==null?void 0:$.scripts,ye=(Q=(K=O.options).headers)==null?void 0:Q.call(K,{loaderData:ie});o(S,be=>({...be,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),loaderData:ie,meta:re,links:se,scripts:pe,headers:ye}))}catch(ie){let $=ie;await de(),c(this.getMatch(S),ie);try{(oe=(J=O.options).onError)==null||oe.call(J,ie)}catch(re){$=re,c(this.getMatch(S),re)}o(S,re=>({...re,error:$,status:"error",isFetching:!1}))}await O._componentsPromise}catch(de){o(S,ie=>({...ie,loaderPromise:void 0})),c(this.getMatch(S),de)}},{status:Z,invalid:G}=this.getMatch(S);D=Z==="success"&&(G||(H??P>z)),j&&O.options.preload===!1||(D?(async()=>{try{await X()}catch(V){Tu(V)&&await this.navigate(V)}})():Z!=="success"&&await X());const{loaderPromise:k,loadPromise:ae}=this.getMatch(S);k==null||k.resolve(),ae==null||ae.resolve()}return o(S,I=>({...I,isFetching:D?I.isFetching:!1,loaderPromise:void 0,invalid:!1})),this.getMatch(S)})())}),await Promise.all(v),f()}catch(E){m(E)}})()}),await u()}catch(f){if(Ir(f)||dn(f))throw dn(f)&&!a&&await u(),f}return r},this.invalidate=n=>{const r=a=>{var i;return((i=n==null?void 0:n.filter)==null?void 0:i.call(n,a))??!0?{...a,invalid:!0,...a.status==="error"?{status:"pending",error:void 0}:{}}:a};return this.__store.setState(a=>{var i;return{...a,matches:a.matches.map(r),cachedMatches:a.cachedMatches.map(r),pendingMatches:(i=a.pendingMatches)==null?void 0:i.map(r)}}),this.load()},this.resolveRedirect=n=>{const r=n;return r.href||(r.href=this.buildLocation(r).href),r},this.clearCache=n=>{const r=n==null?void 0:n.filter;r!==void 0?this.__store.setState(a=>({...a,cachedMatches:a.cachedMatches.filter(i=>!r(i))})):this.__store.setState(a=>({...a,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=r=>{const a=this.looseRoutesById[r.routeId];if(!a.options.loader)return!0;const i=(r.preload?a.options.preloadGcTime??this.options.defaultPreloadGcTime:a.options.gcTime??this.options.defaultGcTime)??5*60*1e3;return!(r.status!=="error"&&Date.now()-r.updatedAt<i)};this.clearCache({filter:n})},this.loadRouteChunk=n=>(n._lazyPromise===void 0&&(n.lazyFn?n._lazyPromise=n.lazyFn().then(r=>{const{id:a,...i}=r.options;Object.assign(n.options,i)}):n._lazyPromise=Promise.resolve()),n._componentsPromise===void 0&&(n._componentsPromise=n._lazyPromise.then(()=>Promise.all(jT.map(async r=>{const a=n.options[r];a!=null&&a.preload&&await a.preload()})))),n._componentsPromise),this.preloadRoute=async n=>{const r=this.buildLocation(n);let a=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:n});const i=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(s=>s.id)),o=new Set([...i,...this.state.cachedMatches.map(s=>s.id)]);yu(()=>{a.forEach(s=>{o.has(s.id)||this.__store.setState(l=>({...l,cachedMatches:[...l.cachedMatches,s]}))})});try{return a=await this.loadMatches({matches:a,location:r,preload:!0,updateMatch:(s,l)=>{i.has(s)?a=a.map(u=>u.id===s?l(u):u):this.updateMatch(s,l)}}),a}catch(s){if(Ir(s))return s.reloadDocument?void 0:await this.preloadRoute({...s,_fromLocation:r});console.error(s);return}},this.matchRoute=(n,r)=>{const a={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},i=this.buildLocation(a);if(r!=null&&r.pending&&this.state.status!=="pending")return!1;const s=((r==null?void 0:r.pending)===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation,l=qo(this.basepath,s.pathname,{...r,to:i.pathname});return!l||n.params&&!ka(l,n.params,{partial:!0})?!1:l&&((r==null?void 0:r.includeSearch)??!0)?ka(s.search,i.search,{partial:!0})?l:!1:l},this.dehydrate=()=>{var n;const r=((n=this.options.errorSerializer)==null?void 0:n.serialize)??Yk;return{state:{dehydratedMatches:this.state.matches.map(a=>({...ys(a,["id","status","updatedAt"]),error:a.error?{data:r(a.error),__isServerError:!0}:void 0}))},manifest:this.manifest}},this.hydrate=()=>{var n,r,a;let i;typeof document<"u"&&(i=this.options.transformer.parse((n=window.__TSR__)==null?void 0:n.dehydrated)),Wt(i,"Expected to find a dehydrated data on window.__TSR__.dehydrated... but we did not. Please file an issue!"),this.dehydratedData=i.payload,(a=(r=this.options).hydrate)==null||a.call(r,i.payload);const o=i.router.state,s=this.matchRoutes(this.state.location).map(l=>{const u=o.dehydratedMatches.find(d=>d.id===l.id);return Wt(u,`Could not find a client-side match for dehydrated match with id: ${l.id}!`),{...l,...u}});this.__store.setState(l=>({...l,matches:s})),this.manifest=i.router.manifest},this.injectedHtml=[],this.injectHtml=n=>{const r=()=>(this.injectedHtml=this.injectedHtml.filter(a=>a!==r),n);this.injectedHtml.push(r)},this.injectScript=(n,r)=>{this.injectHtml(`<script class='tsr-once'>${n}${$T.NODE_ENV==="development"&&((r==null?void 0:r.logScript)??!0)?`; console.info(\`Injected From Server:
|
|
269
|
+
${n}\`)`:""}; if (typeof __TSR__ !== 'undefined') __TSR__.cleanScripts()<\/script>`)},this.streamedKeys=new Set,this.getStreamedValue=n=>{var r;if(this.isServer)return;const a=(r=window.__TSR__)==null?void 0:r.streamedValues[n];if(a)return a.parsed||(a.parsed=this.options.transformer.parse(a.value)),a.parsed},this.streamValue=(n,r)=>{var a;Ma(!this.streamedKeys.has(n),"Key has already been streamed: "+n),this.streamedKeys.add(n),this.injectScript(`__TSR__.streamedValues['${n}'] = { value: ${(a=this.serializer)==null?void 0:a.call(this,this.options.transformer.stringify(r))}}`)},this._handleNotFound=(n,r,{updateMatch:a=this.updateMatch}={})=>{const i=Object.fromEntries(n.map(l=>[l.routeId,l]));let o=(r.global?this.looseRoutesById[Vt]:this.looseRoutesById[r.routeId])||this.looseRoutesById[Vt];for(;!o.options.notFoundComponent&&!this.options.defaultNotFoundComponent&&o.id!==Vt;)o=o.parentRoute,Wt(o,"Found invalid route tree while trying to find not-found handler.");const s=i[o.id];Wt(s,"Could not find match for route: "+o.id),a(s.id,l=>({...l,status:"notFound",error:r,isFetching:!1})),r.routerCode==="BEFORE_LOAD"&&o.parentRoute&&(r.routeId=o.parentRoute.id,this._handleNotFound(n,r,{updateMatch:a}))},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??kk,parseSearch:t.parseSearch??Ck,transformer:t.transformer??wi}),typeof document<"u"&&(window.__TSR__ROUTER__=this)}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutes(t,n,r){return typeof t=="string"?this.matchRoutesInternal({pathname:t,search:n},r):this.matchRoutesInternal(t,n)}matchRoutesInternal(t,n){const{foundRoute:r,matchedRoutes:a,routeParams:i}=this.getMatchedRoutes(t,n==null?void 0:n.dest);let o=!1;(r?r.path!=="/"&&i["**"]:Lr(t.pathname))&&(this.options.notFoundRoute?a.push(this.options.notFoundRoute):o=!0);const s=(()=>{if(o){if(this.options.notFoundMode!=="root")for(let c=a.length-1;c>=0;c--){const f=a[c];if(f.children)return f.id}return Vt}})(),l=a.map(c=>{var f;let m;const h=((f=c.options.params)==null?void 0:f.parse)??c.options.parseParams;if(h)try{const g=h(i);Object.assign(i,g)}catch(g){if(m=new Wk(g.message,{cause:g}),n!=null&&n.throwOnError)throw m;return m}}),u=[],d=c=>(c==null?void 0:c.id)?c.context??this.options.context??{}:this.options.context??{};return a.forEach((c,f)=>{var m,h,g,b;const E=u[f-1],[T,v]=(()=>{const j=(E==null?void 0:E.search)??t.search;try{const z=Su(c.options.validateSearch,j)??{};return[{...j,...z},void 0]}catch(z){const W=new Ic(z.message,{cause:z});if(n!=null&&n.throwOnError)throw W;return[j,W]}})(),S=((h=(m=c.options).loaderDeps)==null?void 0:h.call(m,{search:T}))??"",w=S?JSON.stringify(S):"",A=Wo({path:c.fullPath,params:i,decodeCharMap:this.pathParamsDecodeCharMap}),_=Wo({path:c.id,params:i,leaveWildcards:!0,decodeCharMap:this.pathParamsDecodeCharMap})+w,D=this.getMatch(_),I=this.state.matches.find(j=>j.routeId===c.id),O=I?"stay":"enter";let M;if(D)M={...D,cause:O,params:I?Qt(I.params,i):i,search:Qt(I?I.search:D.search,T)};else{const j=c.options.loader||c.options.beforeLoad||c.lazyFn||Gk(c)?"pending":"success";M={id:_,index:f,routeId:c.id,params:I?Qt(I.params,i):i,pathname:$n([this.basepath,A]),updatedAt:Date.now(),search:I?Qt(I.search,T):T,searchError:void 0,status:j,isFetching:!1,error:void 0,paramsError:l[f],__routeContext:{},__beforeLoadContext:{},context:{},abortController:new AbortController,fetchCount:0,cause:O,loaderDeps:I?Qt(I.loaderDeps,S):S,invalid:!1,preload:!1,links:void 0,scripts:void 0,meta:void 0,staticData:c.options.staticData||{},loadPromise:ya(),fullPath:c.fullPath}}M.status==="success"&&(M.headers=(b=(g=c.options).headers)==null?void 0:b.call(g,{loaderData:M.loaderData})),n!=null&&n.preload||(M.globalNotFound=s===c.id),M.searchError=v;const P=d(E);M.context={...P,...M.__routeContext,...M.__beforeLoadContext},u.push(M)}),u.forEach((c,f)=>{var m,h,g,b;const E=this.looseRoutesById[c.routeId];if(!this.getMatch(c.id)&&(n==null?void 0:n._buildLocation)!==!0){const S=u[f-1],w=d(S),A={deps:c.loaderDeps,params:c.params,context:w,location:t,navigate:_=>this.navigate({..._,_fromLocation:t}),buildLocation:this.buildLocation,cause:c.cause,abortController:c.abortController,preload:!!c.preload,matches:u};c.__routeContext=((h=(m=E.options).context)==null?void 0:h.call(m,A))??{},c.context={...w,...c.__routeContext,...c.__beforeLoadContext}}const v=(b=(g=E.options).head)==null?void 0:b.call(g,{matches:u,match:c,params:c.params,loaderData:c.loaderData??void 0});c.links=v==null?void 0:v.links,c.scripts=v==null?void 0:v.scripts,c.meta=v==null?void 0:v.meta}),u}}class Ic extends Error{}class Wk extends Error{}function qk(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:{...e},location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Yk(e){if(e instanceof Error){const t={name:e.name,message:e.message};return $T.NODE_ENV==="development"&&(t.stack=e.stack),t}return{data:e}}var Kk={};function H0(e){return!(typeof e=="object"&&e&&"data"in e)||!("__isServerError"in e&&e.__isServerError)||!(typeof e.data=="object"&&e.data)?!1:e.__isServerError===!0}function z0(e){if("name"in e&&"message"in e){const t=new Error(e.message);return t.name=e.name,Kk.NODE_ENV==="development"&&(t.stack=e.stack),t}return e.data}const ol=x.createContext(void 0),Xk=x.createContext(void 0);function Ur(e){const t=x.useContext(e.from?Xk:ol);return Ft({select:r=>{const a=r.matches.find(i=>e.from?e.from===i.routeId:i.id===t);if(Wt(!((e.shouldThrow??!0)&&!a),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),a!==void 0)return e.select?e.select(a):a},structuralSharing:e.structuralSharing})}function Zk(e){return Ur({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Qk(e){const{select:t,...n}=e;return Ur({...n,select:r=>t?t(r.loaderDeps):r.loaderDeps})}function qd(e){return Ur({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.params):t.params})}function Jk(e){return Ur({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function sl(e){const{navigate:t}=yr();return x.useCallback(n=>t({...n}),[t])}class _i{constructor(t){this.init=n=>{var r,a;this.originalIndex=n.originalIndex;const i=this.options,o=!(i!=null&&i.path)&&!(i!=null&&i.id);this.parentRoute=(a=(r=this.options).getParentRoute)==null?void 0:a.call(r),o?this._path=Vt:Wt(this.parentRoute,"Child Route instances must pass a 'getParentRoute: () => ParentRoute' option that returns a Route instance.");let s=o?Vt:i.path;s&&s!=="/"&&(s=Vd(s));const l=(i==null?void 0:i.id)||s;let u=o?Vt:$n([this.parentRoute.id===Vt?"":this.parentRoute.id,l]);s===Vt&&(s="/"),u!==Vt&&(u=$n(["/",u]));const d=u===Vt?"/":$n([this.parentRoute.fullPath,s]);this._path=s,this._id=u,this._fullPath=d,this._to=d,this._ssr=(i==null?void 0:i.ssr)??n.defaultSsr??!0},this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.useMatch=n=>Ur({select:n==null?void 0:n.select,from:this.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>Ur({...n,from:this.id,select:r=>n!=null&&n.select?n.select(r.context):r.context}),this.useSearch=n=>Jk({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useParams=n=>qd({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useLoaderDeps=n=>Qk({...n,from:this.id}),this.useLoaderData=n=>Zk({...n,from:this.id}),this.useNavigate=()=>sl({from:this.id}),this.options=t||{},this.isRoot=!(t!=null&&t.getParentRoute),Wt(!(t!=null&&t.id&&(t!=null&&t.path)),"Route cannot have both an 'id' and a 'path' option."),this.$$typeof=Symbol.for("react.memo")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}get ssr(){return this._ssr}addChildren(t){return this._addFileChildren(t)}_addFileChildren(t){return Array.isArray(t)&&(this.children=t),typeof t=="object"&&t!==null&&(this.children=Object.values(t)),this}}class eI extends _i{constructor(t){super(t)}addChildren(t){return super.addChildren(t),this}_addFileChildren(t){return super._addFileChildren(t),this}_addFileTypes(){return this}}function xs(e){return p.jsx(p.Fragment,{children:e.children})}var tI={};function HT(e,t,n){return t.options.notFoundComponent?p.jsx(t.options.notFoundComponent,{data:n}):e.options.defaultNotFoundComponent?p.jsx(e.options.defaultNotFoundComponent,{data:n}):(tI.NODE_ENV==="development"&&Ma(t.options.notFoundComponent,`A notFoundError was encountered on the route with ID "${t.id}", but a notFoundComponent option was not configured, nor was a router level defaultNotFoundComponent configured. Consider configuring at least one of these to avoid TanStack Router's overly generic defaultNotFoundComponent (<div>Not Found<div>)`),p.jsx(zk,{}))}const zT=x.memo(function({matchId:t}){var n,r;const a=yr(),i=Ft({select:b=>{var E;return(E=b.matches.find(T=>T.id===t))==null?void 0:E.routeId}});Wt(i,`Could not find routeId for matchId "${t}". Please file an issue!`);const o=a.routesById[i],s=o.options.pendingComponent??a.options.defaultPendingComponent,l=s?p.jsx(s,{}):null,u=o.options.errorComponent??a.options.defaultErrorComponent,d=o.options.onCatch??a.options.defaultOnCatch,c=o.isRoot?o.options.notFoundComponent??((n=a.options.notFoundRoute)==null?void 0:n.options.component):o.options.notFoundComponent,f=(!o.isRoot||o.options.wrapInSuspense)&&(o.options.wrapInSuspense??s??((r=o.options.errorComponent)==null?void 0:r.preload))?x.Suspense:xs,m=u?Wd:xs,h=c?Hk:xs,g=Ft({select:b=>b.loadedAt});return p.jsx(ol.Provider,{value:t,children:p.jsx(f,{fallback:l,children:p.jsx(m,{getResetKey:()=>g,errorComponent:u||il,onCatch:(b,E)=>{if(dn(b))throw b;Ma(!1,`Error in route match: ${t}`),d==null||d(b,E)},children:p.jsx(h,{fallback:b=>{if(!c||b.routeId&&b.routeId!==i||!b.routeId&&!o.isRoot)throw b;return x.createElement(c,b)},children:p.jsx(nI,{matchId:t})})})})})}),nI=x.memo(function({matchId:t}){var n,r,a,i,o;const s=yr(),{match:l,matchIndex:u,routeId:d}=Ft({select:h=>{const g=h.matches.findIndex(T=>T.id===t),b=h.matches[g];return{routeId:b.routeId,matchIndex:g,match:ys(b,["id","status","error"])}},structuralSharing:!0}),c=s.routesById[d],f=x.useMemo(()=>{const h=c.options.component??s.options.defaultComponent;return h?p.jsx(h,{}):p.jsx(GT,{})},[c.options.component,s.options.defaultComponent]),m=(c.options.errorComponent??s.options.defaultErrorComponent)||il;if(l.status==="notFound"){let h;return H0(l.error)?h=(((n=s.options.errorSerializer)==null?void 0:n.deserialize)??z0)(l.error.data):h=l.error,Wt(dn(h),"Expected a notFound error"),HT(s,c,h)}if(l.status==="redirected")throw Wt(Ir(l.error),"Expected a redirect error"),(r=s.getMatch(l.id))==null?void 0:r.loadPromise;if(l.status==="error"){if(s.isServer)return p.jsx(m,{error:l.error,info:{componentStack:""}});throw H0(l.error)?(((a=s.options.errorSerializer)==null?void 0:a.deserialize)??z0)(l.error.data):l.error}if(l.status==="pending"){const h=c.options.pendingMinMs??s.options.defaultPendingMinMs;if(h&&!((i=s.getMatch(l.id))!=null&&i.minPendingPromise)&&!s.isServer){const g=ya();Promise.resolve().then(()=>{s.updateMatch(l.id,b=>({...b,minPendingPromise:g}))}),setTimeout(()=>{g.resolve(),s.updateMatch(l.id,b=>({...b,minPendingPromise:void 0}))},h)}throw(o=s.getMatch(l.id))==null?void 0:o.loadPromise}return p.jsxs(p.Fragment,{children:[f,s.AfterEachMatch?p.jsx(s.AfterEachMatch,{match:l,matchIndex:u}):null]})}),GT=x.memo(function(){const t=yr(),n=x.useContext(ol),r=Ft({select:u=>{var d;return(d=u.matches.find(c=>c.id===n))==null?void 0:d.routeId}}),a=t.routesById[r],i=Ft({select:u=>{const c=u.matches.find(f=>f.id===n);return Wt(c,`Could not find parent match for matchId "${n}"`),c.globalNotFound}}),o=Ft({select:u=>{var d;const c=u.matches,f=c.findIndex(m=>m.id===n);return(d=c[f+1])==null?void 0:d.id}});if(i)return HT(t,a,void 0);if(!o)return null;const s=p.jsx(zT,{matchId:o}),l=t.options.defaultPendingComponent?p.jsx(t.options.defaultPendingComponent,{}):null;return n===Vt?p.jsx(x.Suspense,{fallback:l,children:s}):s}),rI="Error preloading route! ☝️";function aI(e,t){const n=yr(),[r,a]=x.useState(!1),i=x.useRef(!1),o=Lk(t),{activeProps:s=()=>({className:"active"}),inactiveProps:l=()=>({}),activeOptions:u,to:d,preload:c,preloadDelay:f,hashScrollIntoView:m,replace:h,startTransition:g,resetScroll:b,viewTransition:E,children:T,target:v,disabled:S,style:w,className:A,onClick:_,onFocus:D,onMouseEnter:I,onMouseLeave:O,onTouchStart:M,ignoreBlocker:P,...j}=e,{params:z,search:W,hash:H,state:X,mask:Z,reloadDocument:G,...k}=j,ae=x.useMemo(()=>{try{return new URL(`${d}`),"external"}catch{}return"internal"},[d]),V=Ft({select:Te=>Te.location.search,structuralSharing:!0});e={from:Ur({strict:!1,select:Te=>Te.pathname}),...e};const te=x.useMemo(()=>n.buildLocation(e),[n,e,V]),U=x.useMemo(()=>e.reloadDocument?!1:c??n.options.defaultPreload,[n.options.defaultPreload,c,e.reloadDocument]),K=f??n.options.defaultPreloadDelay??0,Q=Ft({select:Te=>{if(u!=null&&u.exact){if(!Fk(Te.location.pathname,te.pathname,n.basepath))return!1}else{const De=Ls(Te.location.pathname,n.basepath).split("/");if(!Ls(te.pathname,n.basepath).split("/").every((Ue,Ce)=>Ue===De[Ce]))return!1}return((u==null?void 0:u.includeSearch)??!0)&&!ka(Te.location.search,te.search,{partial:!(u!=null&&u.exact),ignoreUndefined:!(u!=null&&u.explicitUndefined)})?!1:u!=null&&u.includeHash?Te.location.hash===te.hash:!0}}),J=x.useCallback(()=>{n.preloadRoute(e).catch(Te=>{console.warn(Te),console.warn(rI)})},[e,n]),oe=x.useCallback(Te=>{Te!=null&&Te.isIntersecting&&J()},[J]);if(Dk(o,oe,{rootMargin:"100px"},{disabled:!!S||U!=="viewport"}),Ai(()=>{i.current||!S&&U==="render"&&(J(),i.current=!0)},[S,J,U]),ae==="external")return{...k,ref:o,type:ae,href:d,...T&&{children:T},...v&&{target:v},...S&&{disabled:S},...w&&{style:w},...A&&{className:A},..._&&{onClick:_},...D&&{onFocus:D},...I&&{onMouseEnter:I},...O&&{onMouseLeave:O},...M&&{onTouchStart:M}};const de=Te=>{if(!S&&!iI(Te)&&!Te.defaultPrevented&&(!v||v==="_self")&&Te.button===0){Te.preventDefault(),hr.flushSync(()=>{a(!0)});const De=n.subscribe("onResolved",()=>{De(),a(!1)});return n.navigate({...e,replace:h,resetScroll:b,hashScrollIntoView:m,startTransition:g,viewTransition:E,ignoreBlocker:P})}},ie=Te=>{S||U&&J()},$=ie,re=Te=>{if(S)return;const De=Te.target||{};if(U){if(De.preloadTimeout)return;De.preloadTimeout=setTimeout(()=>{De.preloadTimeout=null,J()},K)}},se=Te=>{if(S)return;const De=Te.target||{};De.preloadTimeout&&(clearTimeout(De.preloadTimeout),De.preloadTimeout=null)},pe=Te=>De=>{var Be;(Be=De.persist)==null||Be.call(De),Te.filter(Boolean).forEach(Me=>{De.defaultPrevented||Me(De)})},ye=Q?va(s,{})??{}:{},be=Q?{}:va(l,{}),Le=[A,ye.className,be.className].filter(Boolean).join(" "),xe={...w,...ye.style,...be.style};return{...k,...ye,...be,href:S?void 0:te.maskedLocation?n.history.createHref(te.maskedLocation.href):n.history.createHref(te.href),ref:o,onClick:pe([_,de]),onFocus:pe([D,ie]),onMouseEnter:pe([I,re]),onMouseLeave:pe([O,se]),onTouchStart:pe([M,$]),disabled:!!S,target:v,...Object.keys(xe).length&&{style:xe},...Le&&{className:Le},...S&&{role:"link","aria-disabled":!0},...Q&&{"data-status":"active","aria-current":"page"},...r&&{"data-transitioning":"transitioning"}}}const Xa=x.forwardRef((e,t)=>{const{_asChild:n,...r}=e,{type:a,ref:i,...o}=aI(r,t),s=typeof r.children=="function"?r.children({isActive:o["data-status"]==="active"}):r.children;return typeof n>"u"&&delete o.disabled,x.createElement(n||"a",{...o,ref:i},s)});function iI(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function oI(){const e=yr(),t=x.useRef({router:e,mounted:!1}),n=Ft({select:({isLoading:c})=>c}),[r,a]=x.useState(!1),i=Ft({select:c=>c.matches.some(f=>f.status==="pending"),structuralSharing:!0}),o=xu(n),s=n||r||i,l=xu(s),u=n||i,d=xu(u);return e.isServer||(e.startReactTransition=c=>{a(!0),x.startTransition(()=>{c(),a(!1)})}),x.useEffect(()=>{const c=e.history.subscribe(e.load),f=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Lr(e.latestLocation.href)!==Lr(f.href)&&e.commitLocation({...f,replace:!0}),()=>{c()}},[e,e.history]),Ai(()=>{var c;if(typeof window<"u"&&((c=window.__TSR__)!=null&&c.dehydrated)||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(m){console.error(m)}})()},[e]),Ai(()=>{if(o&&!n){const c=e.state.location,f=e.state.resolvedLocation,m=f.pathname!==c.pathname,h=f.href!==c.href;e.emit({type:"onLoad",fromLocation:f,toLocation:c,pathChanged:m,hrefChanged:h})}},[o,e,n]),Ai(()=>{if(d&&!u){const c=e.state.location,f=e.state.resolvedLocation,m=f.pathname!==c.pathname,h=f.href!==c.href;e.emit({type:"onBeforeRouteMount",fromLocation:f,toLocation:c,pathChanged:m,hrefChanged:h})}},[u,d,e]),Ai(()=>{if(l&&!s){const c=e.state.location,f=e.state.resolvedLocation,m=f.pathname!==c.pathname,h=f.href!==c.href;if(e.emit({type:"onResolved",fromLocation:f,toLocation:c,pathChanged:m,hrefChanged:h}),e.__store.setState(g=>({...g,status:"idle",resolvedLocation:g.location})),typeof document<"u"&&document.querySelector){const g=e.state.location.state.__hashScrollIntoViewOptions??!0;if(g&&e.state.location.hash!==""){const b=document.getElementById(e.state.location.hash);b&&b.scrollIntoView(g)}}}},[s,l,e]),null}function sI(){const e=yr(),t=e.options.defaultPendingComponent?p.jsx(e.options.defaultPendingComponent,{}):null,n=e.isServer||typeof document<"u"&&window.__TSR__?xs:x.Suspense,r=p.jsxs(n,{fallback:t,children:[p.jsx(oI,{}),p.jsx(lI,{})]});return e.options.InnerWrap?p.jsx(e.options.InnerWrap,{children:r}):r}function lI(){const e=Ft({select:n=>{var r;return(r=n.matches[0])==null?void 0:r.id}}),t=Ft({select:n=>n.loadedAt});return p.jsx(ol.Provider,{value:e,children:p.jsx(Wd,{getResetKey:()=>t,errorComponent:il,onCatch:n=>{Ma(!1,"The following error wasn't caught by any route! At the very least, consider setting an 'errorComponent' in your RootRoute!"),Ma(!1,n.message||n.toString())},children:e?p.jsx(zT,{matchId:e}):null})})}function uI({router:e,children:t,...n}){e.update({...e.options,...n,context:{...e.options.context,...n.context}});const r=FT(),a=p.jsx(r.Provider,{value:e,children:t});return e.options.Wrap?p.jsx(e.options.Wrap,{children:a}):a}function cI({router:e,...t}){return p.jsx(uI,{router:e,...t,children:p.jsx(sI,{})})}function Yd(e){return Ft({select:t=>t.location})}const dI={theme:"system",setTheme:()=>null},VT=R.createContext(dI);function pI({children:e,defaultTheme:t="system",storageKey:n="skuse-ui-theme",...r}){const[a,i]=R.useState(()=>localStorage.getItem(n)||t);R.useEffect(()=>{const s=window.document.documentElement;if(s.classList.remove("light","dark"),a==="system"){const l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";s.classList.add(l);return}s.setAttribute("data-color-mode",a),s.classList.add(a)},[a]);const o={theme:a,setTheme:s=>{localStorage.setItem(n,s),i(s)}};return p.jsx(VT.Provider,{...r,value:o,children:e})}const fI=()=>{const e=R.useContext(VT);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};function it(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function G0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Kd(...e){return t=>{let n=!1;const r=e.map(a=>{const i=G0(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<r.length;a++){const i=r[a];typeof i=="function"?i():G0(e[a],null)}}}}function xt(...e){return x.useCallback(Kd(...e),e)}function WT(e){const t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Xd(e){const[t,n]=x.useState(void 0);return ht(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,s=u.blockSize}else o=e.offsetWidth,s=e.offsetHeight;n({width:o,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var qT=x.forwardRef((e,t)=>{const{children:n,...r}=e,a=x.Children.toArray(n),i=a.find(hI);if(i){const o=i.props.children,s=a.map(l=>l===i?x.Children.count(o)>1?x.Children.only(null):x.isValidElement(o)?o.props.children:null:l);return p.jsx(Rc,{...r,ref:t,children:x.isValidElement(o)?x.cloneElement(o,void 0,s):null})}return p.jsx(Rc,{...r,ref:t,children:n})});qT.displayName="Slot";var Rc=x.forwardRef((e,t)=>{const{children:n,...r}=e;if(x.isValidElement(n)){const a=bI(n);return x.cloneElement(n,{...gI(r,n.props),ref:t?Kd(t,a):a})}return x.Children.count(n)>1?x.Children.only(null):null});Rc.displayName="SlotClone";var mI=({children:e})=>p.jsx(p.Fragment,{children:e});function hI(e){return x.isValidElement(e)&&e.type===mI}function gI(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...s)=>{i(...s),a(...s)}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function bI(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var EI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],YT=EI.reduce((e,t)=>{const n=x.forwardRef((r,a)=>{const{asChild:i,...o}=r,s=i?qT:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(s,{...o,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Zd="Switch",[yI,OW]=gr(Zd),[xI,TI]=yI(Zd),KT=x.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:a,defaultChecked:i,required:o,disabled:s,value:l="on",onCheckedChange:u,form:d,...c}=e,[f,m]=x.useState(null),h=xt(t,v=>m(v)),g=x.useRef(!1),b=f?d||!!f.closest("form"):!0,[E=!1,T]=cr({prop:a,defaultProp:i,onChange:u});return p.jsxs(xI,{scope:n,checked:E,disabled:s,children:[p.jsx(YT.button,{type:"button",role:"switch","aria-checked":E,"aria-required":o,"data-state":QT(E),"data-disabled":s?"":void 0,disabled:s,value:l,...c,ref:h,onClick:it(e.onClick,v=>{T(S=>!S),b&&(g.current=v.isPropagationStopped(),g.current||v.stopPropagation())})}),b&&p.jsx(vI,{control:f,bubbles:!g.current,name:r,value:l,checked:E,required:o,disabled:s,form:d,style:{transform:"translateX(-100%)"}})]})});KT.displayName=Zd;var XT="SwitchThumb",ZT=x.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,a=TI(XT,n);return p.jsx(YT.span,{"data-state":QT(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:t})});ZT.displayName=XT;var vI=e=>{const{control:t,checked:n,bubbles:r=!0,...a}=e,i=x.useRef(null),o=WT(n),s=Xd(t);return x.useEffect(()=>{const l=i.current,u=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(u,"checked").set;if(o!==n&&c){const f=new Event("click",{bubbles:r});c.call(l,n),l.dispatchEvent(f)}},[o,n,r]),p.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function QT(e){return e?"checked":"unchecked"}var JT=KT,SI=ZT;const Qd=x.forwardRef(({className:e,...t},n)=>p.jsx(JT,{className:Ee("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:p.jsx(SI,{className:Ee("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));Qd.displayName=JT.displayName;const AI=()=>{var T,v;const{spec:e}=lt(),{theme:t,setTheme:n}=fI(),r=Yd(),a=R.useMemo(()=>Object.entries(nl(e.paths)),[e.paths]),i=R.useMemo(()=>e.webhooks?Object.entries(dT(e.webhooks)):[],[e.webhooks]),[o,s]=R.useState(new Set),l=S=>s(w=>{const A=new Set(w);return A.has(S)?A.delete(S):A.add(S),A}),u=R.useMemo(()=>{var w;const S=new Map;return(w=e.tags)==null||w.forEach(A=>S.set(A.name,{description:A.description,externalDocs:A.externalDocs})),S},[e.tags]),d=decodeURIComponent(r.pathname.split("/")[1]??""),[c,f]=R.useState(()=>{const S=new Set;return a.length===1&&a[0]&&S.add(a[0][0]),d&&S.add(d),S});R.useEffect(()=>{d&&f(S=>{if(S.has(d))return S;const w=new Set(S);return w.add(d),w})},[d]);const[m,h]=R.useState(""),g=S=>{f(w=>{const A=new Set(w);return A.has(S)?A.delete(S):A.add(S),A})},b=R.useMemo(()=>{if(!m.trim())return a;const S=m.toLowerCase();return a.map(([w,A])=>[w,A.filter(_=>_.path.toLowerCase().includes(S)||_.method.toLowerCase().includes(S)||(_.summary??"").toLowerCase().includes(S)||(_.description??"").toLowerCase().includes(S)||(_.operationId??"").toLowerCase().includes(S)||w.toLowerCase().includes(S))]).filter(([,w])=>w.length>0)},[a,m]),E=m.trim()?new Set(b.map(([S])=>S)):c;return p.jsxs("div",{className:"w-full shadow-lg flex flex-col h-full",children:[p.jsx("div",{className:"px-3 py-3 border-b dark:border-zinc-700",children:p.jsxs("div",{className:"relative",children:[p.jsx(wT,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground pointer-events-none"}),p.jsx(Pt,{value:m,onChange:S=>h(S.target.value),placeholder:"Search endpoints...",className:"pl-8 pr-7 h-8 text-sm"}),m&&p.jsx("button",{onClick:()=>h(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors",children:p.jsx(Hd,{className:"h-3.5 w-3.5"})})]})}),p.jsx("div",{className:"flex-grow py-2 overflow-y-auto",children:b.length===0?p.jsxs("p",{className:"text-sm text-muted-foreground text-center py-10 px-4",children:['No endpoints match "',m,'"']}):b.map(([S,w])=>{var A,_;return p.jsxs(Hn,{open:E.has(S),onOpenChange:()=>{m.trim()||g(S)},children:[p.jsx(zn,{asChild:!0,children:p.jsxs(Qe,{variant:"ghost",className:"w-full justify-between hover:bg-secondary/20 dark:hover:bg-zinc-700/50 mb-1 hover:text-primary border-l-4 border-transparent hover:border-primary transition-all duration-200 h-auto py-1.5",children:[p.jsxs("div",{className:"flex flex-col items-start gap-0.5 min-w-0",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"font-semibold",children:S}),p.jsx("span",{className:"text-xs text-muted-foreground font-normal tabular-nums",children:w.length}),((A=u.get(S))==null?void 0:A.externalDocs)&&p.jsx("a",{href:u.get(S).externalDocs.url,target:"_blank",rel:"noopener noreferrer",title:u.get(S).externalDocs.description??"External docs",onClick:D=>D.stopPropagation(),className:"text-muted-foreground hover:text-foreground transition-colors",children:p.jsx(dr,{className:"h-2.5 w-2.5"})})]}),((_=u.get(S))==null?void 0:_.description)&&p.jsx("span",{className:"text-[11px] text-muted-foreground font-normal truncate max-w-[160px]",children:u.get(S).description})]}),p.jsx(Fa,{className:`w-4 h-4 shrink-0 transition-transform duration-200 ${E.has(S)?"rotate-180":""}`})]})}),p.jsx(Gn,{children:p.jsx("div",{className:"space-y-0.5 pl-2 pb-2",children:w.map(D=>p.jsx(wI,{operation:D,tag:S},`${S}-${D.operationId||D.path}-${D.method}`))})})]},`collapsible-${S}`)})}),i.length>0&&p.jsx("div",{className:"border-t dark:border-zinc-700 py-2",children:i.map(([S,w])=>p.jsxs(Hn,{open:o.has(S),onOpenChange:()=>l(S),children:[p.jsx(zn,{asChild:!0,children:p.jsxs(Qe,{variant:"ghost",className:"w-full justify-between hover:bg-secondary/20 dark:hover:bg-zinc-700/50 mb-1 hover:text-primary border-l-4 border-transparent hover:border-primary transition-all duration-200 h-auto py-1.5",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(NT,{className:"h-3.5 w-3.5 text-muted-foreground shrink-0"}),p.jsx("span",{className:"font-semibold",children:S}),p.jsx("span",{className:"text-xs text-muted-foreground font-normal tabular-nums",children:w.length})]}),p.jsx(Fa,{className:`w-4 h-4 shrink-0 transition-transform duration-200 ${o.has(S)?"rotate-180":""}`})]})}),p.jsx(Gn,{children:p.jsx("div",{className:"space-y-0.5 pl-2 pb-2",children:w.map(A=>p.jsx(_I,{operation:A,webhookName:S},`${S}-${A.method}`))})})]},`webhook-${S}`))}),Object.keys(((T=e.components)==null?void 0:T.schemas)??{}).length>0&&p.jsx("div",{className:"border-t dark:border-zinc-700 px-2 py-2",children:p.jsxs(Xa,{to:"/models",className:"flex items-center gap-2 px-2 py-1.5 rounded border-l-4 border-transparent hover:border-primary/50 hover:bg-secondary/20 transition-all duration-200 group",activeProps:{className:"!border-primary bg-primary/5 dark:bg-primary/10"},children:[p.jsx($d,{className:"h-4 w-4 text-muted-foreground group-hover:text-foreground transition-colors shrink-0"}),p.jsx("span",{className:"text-sm font-semibold",children:"Models"}),p.jsx(ge,{variant:"outline",className:"ml-auto text-[10px] px-1.5 py-0 h-4 font-normal",children:Object.keys(((v=e.components)==null?void 0:v.schemas)??{}).length})]})}),p.jsx("div",{className:"mt-auto border-t dark:border-zinc-700 p-4",children:p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("span",{className:"text-sm font-bold dark:text-white",children:"Skuse"}),p.jsxs("div",{className:"flex items-center space-x-2",children:[p.jsx(SC,{className:"h-4 w-4 dark:text-zinc-400"}),p.jsx(Qd,{checked:t==="dark",onCheckedChange:S=>n(S?"dark":"light")}),p.jsx(EC,{className:"h-4 w-4 dark:text-zinc-400"})]})]})})]})},wI=({operation:e,tag:t})=>{const n=Wa(e);return p.jsxs(Xa,{to:"/$tag/$operationIdentifier",params:{operationIdentifier:n,tag:t},className:"flex items-center gap-2 px-2 py-1.5 rounded-r border-l-4 border-transparent hover:border-primary/50 hover:bg-secondary/20 transition-all duration-200 group",activeProps:{className:"!border-primary bg-primary/5 dark:bg-primary/10"},children:[p.jsx(ge,{className:`${Zr(e.method.toLowerCase())} text-white uppercase w-14 flex justify-center items-center shrink-0 text-[10px]`,children:e.method}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[p.jsx("p",{title:e.path,className:`text-sm font-medium truncate ${e.deprecated?"text-muted-foreground line-through":""}`,children:e.path}),e.deprecated&&p.jsx(ge,{variant:"outline",className:"shrink-0 text-[10px] px-1 py-0 h-4 border-orange-300 text-orange-500 dark:border-orange-700 dark:text-orange-400",children:"deprecated"})]}),(e.summary||e.description)&&p.jsx("p",{className:"text-xs text-muted-foreground truncate",children:e.summary||e.description})]})]})},_I=({operation:e,webhookName:t})=>p.jsxs(Xa,{to:"/webhooks/$webhookName/$operationId",params:{webhookName:t,operationId:Wa(e)},className:"flex items-center gap-2 px-2 py-1.5 rounded-r border-l-4 border-transparent hover:border-primary/50 hover:bg-secondary/20 transition-all duration-200 group",activeProps:{className:"!border-primary bg-primary/5 dark:bg-primary/10"},children:[p.jsx(ge,{className:`${Zr(e.method.toLowerCase())} text-white uppercase w-14 flex justify-center items-center shrink-0 text-[10px]`,children:e.method}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-medium truncate",children:t}),(e.summary||e.description)&&p.jsx("p",{className:"text-xs text-muted-foreground truncate",children:e.summary||e.description})]})]});function NI(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const CI=e=>{switch(e){case"success":return RI;case"info":return DI;case"warning":return OI;case"error":return LI;default:return null}},kI=Array(12).fill(0),II=({visible:e,className:t})=>R.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},R.createElement("div",{className:"sonner-spinner"},kI.map((n,r)=>R.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),RI=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),OI=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),DI=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),LI=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),PI=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},R.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),R.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),FI=()=>{const[e,t]=R.useState(document.hidden);return R.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Oc=1;class MI{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...a}=t,i=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Oc++,o=this.toasts.find(l=>l.id===i),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),o?this.toasts=this.toasts.map(l=>l.id===i?(this.publish({...l,...t,id:i,title:r}),{...l,...t,id:i,dismissible:s,title:r}):l):this.addToast({title:r,...a,dismissible:s,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,o;const s=a.then(async u=>{if(o=["resolve",u],R.isValidElement(u))i=!1,this.create({id:r,type:"default",message:u});else if(UI(u)&&!u.ok){i=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,h=typeof c=="object"&&!R.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:f,...h})}else if(u instanceof Error){i=!1;const c=typeof n.error=="function"?await n.error(u):n.error,f=typeof n.description=="function"?await n.description(u):n.description,h=typeof c=="object"&&!R.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:f,...h})}else if(n.success!==void 0){i=!1;const c=typeof n.success=="function"?await n.success(u):n.success,f=typeof n.description=="function"?await n.description(u):n.description,h=typeof c=="object"&&!R.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:f,...h})}}).catch(async u=>{if(o=["reject",u],n.error!==void 0){i=!1;const d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,m=typeof d=="object"&&!R.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...m})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,d)=>s.then(()=>o[0]==="reject"?d(o[1]):u(o[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Oc++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ht=new MI,BI=(e,t)=>{const n=(t==null?void 0:t.id)||Oc++;return Ht.addToast({title:e,...t,id:n}),n},UI=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",$I=BI,jI=()=>Ht.toasts,HI=()=>Ht.getActiveToasts(),He=Object.assign($I,{success:Ht.success,info:Ht.info,warning:Ht.warning,error:Ht.error,custom:Ht.custom,message:Ht.message,promise:Ht.promise,dismiss:Ht.dismiss,loading:Ht.loading},{getHistory:jI,getToasts:HI});NI("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Ko(e){return e.label!==void 0}const zI=3,GI="24px",VI="16px",V0=4e3,WI=356,qI=14,YI=45,KI=200;function wn(...e){return e.filter(Boolean).join(" ")}function XI(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const ZI=e=>{var t,n,r,a,i,o,s,l,u;const{invert:d,toast:c,unstyled:f,interacting:m,setHeights:h,visibleToasts:g,heights:b,index:E,toasts:T,expanded:v,removeToast:S,defaultRichColors:w,closeButton:A,style:_,cancelButtonStyle:D,actionButtonStyle:I,className:O="",descriptionClassName:M="",duration:P,position:j,gap:z,expandByDefault:W,classNames:H,icons:X,closeButtonAriaLabel:Z="Close toast"}=e,[G,k]=R.useState(null),[ae,V]=R.useState(null),[N,te]=R.useState(!1),[U,K]=R.useState(!1),[Q,J]=R.useState(!1),[oe,de]=R.useState(!1),[ie,$]=R.useState(!1),[re,se]=R.useState(0),[pe,ye]=R.useState(0),be=R.useRef(c.duration||P||V0),Le=R.useRef(null),xe=R.useRef(null),Te=E===0,De=E+1<=g,Be=c.type,Me=c.dismissible!==!1,Ue=c.className||"",Ce=c.descriptionClassName||"",ee=R.useMemo(()=>b.findIndex(Ae=>Ae.toastId===c.id)||0,[b,c.id]),q=R.useMemo(()=>{var Ae;return(Ae=c.closeButton)!=null?Ae:A},[c.closeButton,A]),ue=R.useMemo(()=>c.duration||P||V0,[c.duration,P]),he=R.useRef(0),me=R.useRef(0),Fe=R.useRef(0),$e=R.useRef(null),[Ve,gt]=j.split("-"),tt=R.useMemo(()=>b.reduce((Ae,at,ft)=>ft>=ee?Ae:Ae+at.height,0),[b,ee]),rt=FI(),qe=c.invert||d,ut=Be==="loading";me.current=R.useMemo(()=>ee*z+tt,[ee,tt]),R.useEffect(()=>{be.current=ue},[ue]),R.useEffect(()=>{te(!0)},[]),R.useEffect(()=>{const Ae=xe.current;if(Ae){const at=Ae.getBoundingClientRect().height;return ye(at),h(ft=>[{toastId:c.id,height:at,position:c.position},...ft]),()=>h(ft=>ft.filter(Dt=>Dt.toastId!==c.id))}},[h,c.id]),R.useLayoutEffect(()=>{if(!N)return;const Ae=xe.current,at=Ae.style.height;Ae.style.height="auto";const ft=Ae.getBoundingClientRect().height;Ae.style.height=at,ye(ft),h(Dt=>Dt.find(vt=>vt.toastId===c.id)?Dt.map(vt=>vt.toastId===c.id?{...vt,height:ft}:vt):[{toastId:c.id,height:ft,position:c.position},...Dt])},[N,c.title,c.description,h,c.id,c.jsx,c.action,c.cancel]);const Ut=R.useCallback(()=>{K(!0),se(me.current),h(Ae=>Ae.filter(at=>at.toastId!==c.id)),setTimeout(()=>{S(c)},KI)},[c,S,h,me]);R.useEffect(()=>{if(c.promise&&Be==="loading"||c.duration===1/0||c.type==="loading")return;let Ae;return v||m||rt?(()=>{if(Fe.current<he.current){const Dt=new Date().getTime()-he.current;be.current=be.current-Dt}Fe.current=new Date().getTime()})():(()=>{be.current!==1/0&&(he.current=new Date().getTime(),Ae=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Ut()},be.current))})(),()=>clearTimeout(Ae)},[v,m,c,Be,rt,Ut]),R.useEffect(()=>{c.delete&&(Ut(),c.onDismiss==null||c.onDismiss.call(c,c))},[Ut,c.delete]);function sn(){var Ae;if(X!=null&&X.loading){var at;return R.createElement("div",{className:wn(H==null?void 0:H.loader,c==null||(at=c.classNames)==null?void 0:at.loader,"sonner-loader"),"data-visible":Be==="loading"},X.loading)}return R.createElement(II,{className:wn(H==null?void 0:H.loader,c==null||(Ae=c.classNames)==null?void 0:Ae.loader),visible:Be==="loading"})}const wr=c.icon||(X==null?void 0:X[Be])||CI(Be);var di,pi;return R.createElement("li",{tabIndex:0,ref:xe,className:wn(O,Ue,H==null?void 0:H.toast,c==null||(t=c.classNames)==null?void 0:t.toast,H==null?void 0:H.default,H==null?void 0:H[Be],c==null||(n=c.classNames)==null?void 0:n[Be]),"data-sonner-toast":"","data-rich-colors":(di=c.richColors)!=null?di:w,"data-styled":!(c.jsx||c.unstyled||f),"data-mounted":N,"data-promise":!!c.promise,"data-swiped":ie,"data-removed":U,"data-visible":De,"data-y-position":Ve,"data-x-position":gt,"data-index":E,"data-front":Te,"data-swiping":Q,"data-dismissible":Me,"data-type":Be,"data-invert":qe,"data-swipe-out":oe,"data-swipe-direction":ae,"data-expanded":!!(v||W&&N),"data-testid":c.testId,style:{"--index":E,"--toasts-before":E,"--z-index":T.length-E,"--offset":`${U?re:me.current}px`,"--initial-height":W?"auto":`${pe}px`,..._,...c.style},onDragEnd:()=>{J(!1),k(null),$e.current=null},onPointerDown:Ae=>{Ae.button!==2&&(ut||!Me||(Le.current=new Date,se(me.current),Ae.target.setPointerCapture(Ae.pointerId),Ae.target.tagName!=="BUTTON"&&(J(!0),$e.current={x:Ae.clientX,y:Ae.clientY})))},onPointerUp:()=>{var Ae,at,ft;if(oe||!Me)return;$e.current=null;const Dt=Number(((Ae=xe.current)==null?void 0:Ae.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),jo=Number(((at=xe.current)==null?void 0:at.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),vt=new Date().getTime()-((ft=Le.current)==null?void 0:ft.getTime()),Zt=G==="x"?Dt:jo,Ho=Math.abs(Zt)/vt;if(Math.abs(Zt)>=YI||Ho>.11){se(me.current),c.onDismiss==null||c.onDismiss.call(c,c),V(G==="x"?Dt>0?"right":"left":jo>0?"down":"up"),Ut(),de(!0);return}else{var ln,un;(ln=xe.current)==null||ln.style.setProperty("--swipe-amount-x","0px"),(un=xe.current)==null||un.style.setProperty("--swipe-amount-y","0px")}$(!1),J(!1),k(null)},onPointerMove:Ae=>{var at,ft,Dt;if(!$e.current||!Me||((at=window.getSelection())==null?void 0:at.toString().length)>0)return;const vt=Ae.clientY-$e.current.y,Zt=Ae.clientX-$e.current.x;var Ho;const ln=(Ho=e.swipeDirections)!=null?Ho:XI(j);!G&&(Math.abs(Zt)>1||Math.abs(vt)>1)&&k(Math.abs(Zt)>Math.abs(vt)?"x":"y");let un={x:0,y:0};const E0=_r=>1/(1.5+Math.abs(_r)/20);if(G==="y"){if(ln.includes("top")||ln.includes("bottom"))if(ln.includes("top")&&vt<0||ln.includes("bottom")&&vt>0)un.y=vt;else{const _r=vt*E0(vt);un.y=Math.abs(_r)<Math.abs(vt)?_r:vt}}else if(G==="x"&&(ln.includes("left")||ln.includes("right")))if(ln.includes("left")&&Zt<0||ln.includes("right")&&Zt>0)un.x=Zt;else{const _r=Zt*E0(Zt);un.x=Math.abs(_r)<Math.abs(Zt)?_r:Zt}(Math.abs(un.x)>0||Math.abs(un.y)>0)&&$(!0),(ft=xe.current)==null||ft.style.setProperty("--swipe-amount-x",`${un.x}px`),(Dt=xe.current)==null||Dt.style.setProperty("--swipe-amount-y",`${un.y}px`)}},q&&!c.jsx&&Be!=="loading"?R.createElement("button",{"aria-label":Z,"data-disabled":ut,"data-close-button":!0,onClick:ut||!Me?()=>{}:()=>{Ut(),c.onDismiss==null||c.onDismiss.call(c,c)},className:wn(H==null?void 0:H.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(pi=X==null?void 0:X.close)!=null?pi:PI):null,(Be||c.icon||c.promise)&&c.icon!==null&&((X==null?void 0:X[Be])!==null||c.icon)?R.createElement("div",{"data-icon":"",className:wn(H==null?void 0:H.icon,c==null||(a=c.classNames)==null?void 0:a.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||sn():null,c.type!=="loading"?wr:null):null,R.createElement("div",{"data-content":"",className:wn(H==null?void 0:H.content,c==null||(i=c.classNames)==null?void 0:i.content)},R.createElement("div",{"data-title":"",className:wn(H==null?void 0:H.title,c==null||(o=c.classNames)==null?void 0:o.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?R.createElement("div",{"data-description":"",className:wn(M,Ce,H==null?void 0:H.description,c==null||(s=c.classNames)==null?void 0:s.description)},typeof c.description=="function"?c.description():c.description):null),R.isValidElement(c.cancel)?c.cancel:c.cancel&&Ko(c.cancel)?R.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||D,onClick:Ae=>{Ko(c.cancel)&&Me&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,Ae),Ut())},className:wn(H==null?void 0:H.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,R.isValidElement(c.action)?c.action:c.action&&Ko(c.action)?R.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||I,onClick:Ae=>{Ko(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,Ae),!Ae.defaultPrevented&&Ut())},className:wn(H==null?void 0:H.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function W0(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function QI(e,t){const n={};return[e,t].forEach((r,a)=>{const i=a===1,o=i?"--mobile-offset":"--offset",s=i?VI:GI;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=s:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(s)}),n}const JI=R.forwardRef(function(t,n){const{id:r,invert:a,position:i="bottom-right",hotkey:o=["altKey","KeyT"],expand:s,closeButton:l,className:u,offset:d,mobileOffset:c,theme:f="light",richColors:m,duration:h,style:g,visibleToasts:b=zI,toastOptions:E,dir:T=W0(),gap:v=qI,icons:S,containerAriaLabel:w="Notifications"}=t,[A,_]=R.useState([]),D=R.useMemo(()=>r?A.filter(N=>N.toasterId===r):A.filter(N=>!N.toasterId),[A,r]),I=R.useMemo(()=>Array.from(new Set([i].concat(D.filter(N=>N.position).map(N=>N.position)))),[D,i]),[O,M]=R.useState([]),[P,j]=R.useState(!1),[z,W]=R.useState(!1),[H,X]=R.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Z=R.useRef(null),G=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),k=R.useRef(null),ae=R.useRef(!1),V=R.useCallback(N=>{_(te=>{var U;return(U=te.find(K=>K.id===N.id))!=null&&U.delete||Ht.dismiss(N.id),te.filter(({id:K})=>K!==N.id)})},[]);return R.useEffect(()=>Ht.subscribe(N=>{if(N.dismiss){requestAnimationFrame(()=>{_(te=>te.map(U=>U.id===N.id?{...U,delete:!0}:U))});return}setTimeout(()=>{hr.flushSync(()=>{_(te=>{const U=te.findIndex(K=>K.id===N.id);return U!==-1?[...te.slice(0,U),{...te[U],...N},...te.slice(U+1)]:[N,...te]})})})}),[A]),R.useEffect(()=>{if(f!=="system"){X(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?X("dark"):X("light")),typeof window>"u")return;const N=window.matchMedia("(prefers-color-scheme: dark)");try{N.addEventListener("change",({matches:te})=>{X(te?"dark":"light")})}catch{N.addListener(({matches:U})=>{try{X(U?"dark":"light")}catch(K){console.error(K)}})}},[f]),R.useEffect(()=>{A.length<=1&&j(!1)},[A]),R.useEffect(()=>{const N=te=>{var U;if(o.every(J=>te[J]||te.code===J)){var Q;j(!0),(Q=Z.current)==null||Q.focus()}te.code==="Escape"&&(document.activeElement===Z.current||(U=Z.current)!=null&&U.contains(document.activeElement))&&j(!1)};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},[o]),R.useEffect(()=>{if(Z.current)return()=>{k.current&&(k.current.focus({preventScroll:!0}),k.current=null,ae.current=!1)}},[Z.current]),R.createElement("section",{ref:n,"aria-label":`${w} ${G}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},I.map((N,te)=>{var U;const[K,Q]=N.split("-");return D.length?R.createElement("ol",{key:N,dir:T==="auto"?W0():T,tabIndex:-1,ref:Z,className:u,"data-sonner-toaster":!0,"data-sonner-theme":H,"data-y-position":K,"data-x-position":Q,style:{"--front-toast-height":`${((U=O[0])==null?void 0:U.height)||0}px`,"--width":`${WI}px`,"--gap":`${v}px`,...g,...QI(d,c)},onBlur:J=>{ae.current&&!J.currentTarget.contains(J.relatedTarget)&&(ae.current=!1,k.current&&(k.current.focus({preventScroll:!0}),k.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||ae.current||(ae.current=!0,k.current=J.relatedTarget)},onMouseEnter:()=>j(!0),onMouseMove:()=>j(!0),onMouseLeave:()=>{z||j(!1)},onDragEnd:()=>j(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||W(!0)},onPointerUp:()=>W(!1)},D.filter(J=>!J.position&&te===0||J.position===N).map((J,oe)=>{var de,ie;return R.createElement(ZI,{key:J.id,icons:S,index:oe,toast:J,defaultRichColors:m,duration:(de=E==null?void 0:E.duration)!=null?de:h,className:E==null?void 0:E.className,descriptionClassName:E==null?void 0:E.descriptionClassName,invert:a,visibleToasts:b,closeButton:(ie=E==null?void 0:E.closeButton)!=null?ie:l,interacting:z,position:N,style:E==null?void 0:E.style,unstyled:E==null?void 0:E.unstyled,classNames:E==null?void 0:E.classNames,cancelButtonStyle:E==null?void 0:E.cancelButtonStyle,actionButtonStyle:E==null?void 0:E.actionButtonStyle,closeButtonAriaLabel:E==null?void 0:E.closeButtonAriaLabel,removeToast:V,toasts:D.filter($=>$.position==J.position),heights:O.filter($=>$.position==J.position),setHeights:M,expandByDefault:s,gap:v,expanded:P,swipeDirections:t.swipeDirections})})):null}))});function ev(e,t=globalThis==null?void 0:globalThis.document){const n=Mt(e);x.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var eR="DismissableLayer",Dc="dismissableLayer.update",tR="dismissableLayer.pointerDownOutside",nR="dismissableLayer.focusOutside",q0,tv=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Jd=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:s,...l}=e,u=x.useContext(tv),[d,c]=x.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=x.useState({}),h=Bt(t,_=>c(_)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),E=g.indexOf(b),T=d?g.indexOf(d):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,S=T>=E,w=iR(_=>{const D=_.target,I=[...u.branches].some(O=>O.contains(D));!S||I||(a==null||a(_),o==null||o(_),_.defaultPrevented||s==null||s())},f),A=oR(_=>{const D=_.target;[...u.branches].some(O=>O.contains(D))||(i==null||i(_),o==null||o(_),_.defaultPrevented||s==null||s())},f);return ev(_=>{T===u.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&s&&(_.preventDefault(),s()))},f),x.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(q0=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Y0(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=q0)}},[d,f,n,u]),x.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Y0())},[d,u]),x.useEffect(()=>{const _=()=>m({});return document.addEventListener(Dc,_),()=>document.removeEventListener(Dc,_)},[]),p.jsx(et.div,{...l,ref:h,style:{pointerEvents:v?S?"auto":"none":void 0,...e.style},onFocusCapture:Je(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Je(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Je(e.onPointerDownCapture,w.onPointerDownCapture)})});Jd.displayName=eR;var rR="DismissableLayerBranch",aR=x.forwardRef((e,t)=>{const n=x.useContext(tv),r=x.useRef(null),a=Bt(t,r);return x.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(et.div,{...e,ref:a})});aR.displayName=rR;function iR(e,t=globalThis==null?void 0:globalThis.document){const n=Mt(e),r=x.useRef(!1),a=x.useRef(()=>{});return x.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){nv(tR,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=l,t.addEventListener("click",a.current,{once:!0})):l()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function oR(e,t=globalThis==null?void 0:globalThis.document){const n=Mt(e),r=x.useRef(!1);return x.useEffect(()=>{const a=i=>{i.target&&!r.current&&nv(nR,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Y0(){const e=new CustomEvent(Dc);document.dispatchEvent(e)}function nv(e,t,n,{discrete:r}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?QN(a,i):a.dispatchEvent(i)}var Au="focusScope.autoFocusOnMount",wu="focusScope.autoFocusOnUnmount",K0={bubbles:!1,cancelable:!0},sR="FocusScope",ep=x.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=e,[s,l]=x.useState(null),u=Mt(a),d=Mt(i),c=x.useRef(null),f=Bt(t,g=>l(g)),m=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(r){let g=function(v){if(m.paused||!s)return;const S=v.target;s.contains(S)?c.current=S:Jn(c.current,{select:!0})},b=function(v){if(m.paused||!s)return;const S=v.relatedTarget;S!==null&&(s.contains(S)||Jn(c.current,{select:!0}))},E=function(v){if(document.activeElement===document.body)for(const w of v)w.removedNodes.length>0&&Jn(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const T=new MutationObserver(E);return s&&T.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),T.disconnect()}}},[r,s,m.paused]),x.useEffect(()=>{if(s){Z0.add(m);const g=document.activeElement;if(!s.contains(g)){const E=new CustomEvent(Au,K0);s.addEventListener(Au,u),s.dispatchEvent(E),E.defaultPrevented||(lR(fR(rv(s)),{select:!0}),document.activeElement===g&&Jn(s))}return()=>{s.removeEventListener(Au,u),setTimeout(()=>{const E=new CustomEvent(wu,K0);s.addEventListener(wu,d),s.dispatchEvent(E),E.defaultPrevented||Jn(g??document.body,{select:!0}),s.removeEventListener(wu,d),Z0.remove(m)},0)}}},[s,u,d,m]);const h=x.useCallback(g=>{if(!n&&!r||m.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,E=document.activeElement;if(b&&E){const T=g.currentTarget,[v,S]=uR(T);v&&S?!g.shiftKey&&E===S?(g.preventDefault(),n&&Jn(v,{select:!0})):g.shiftKey&&E===v&&(g.preventDefault(),n&&Jn(S,{select:!0})):E===T&&g.preventDefault()}},[n,r,m.paused]);return p.jsx(et.div,{tabIndex:-1,...o,ref:f,onKeyDown:h})});ep.displayName=sR;function lR(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Jn(r,{select:t}),document.activeElement!==n)return}function uR(e){const t=rv(e),n=X0(t,e),r=X0(t.reverse(),e);return[n,r]}function rv(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function X0(e,t){for(const n of e)if(!cR(n,{upTo:t}))return n}function cR(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function dR(e){return e instanceof HTMLInputElement&&"select"in e}function Jn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&dR(e)&&t&&e.select()}}var Z0=pR();function pR(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Q0(e,t),e.unshift(t)},remove(t){var n;e=Q0(e,t),(n=e[0])==null||n.resume()}}}function Q0(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function fR(e){return e.filter(t=>t.tagName!=="A")}var mR="Portal",tp=x.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[a,i]=x.useState(!1);ht(()=>i(!0),[]);const o=n||a&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return o?hr.createPortal(p.jsx(et.div,{...r,ref:t}),o):null});tp.displayName=mR;var _u=0;function np(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??J0()),document.body.insertAdjacentElement("beforeend",e[1]??J0()),_u++,()=>{_u===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),_u--}},[])}function J0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ke=function(){return Ke=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Ke.apply(this,arguments)};function go(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function rp(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Di="right-scroll-bar-position",Li="width-before-scroll-bar",hR="with-scroll-bars-hidden",gR="--removed-body-scroll-bar-size";function Nu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bR(e,t){var n=R.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var ER=typeof window<"u"?x.useLayoutEffect:x.useEffect,eE=new WeakMap;function av(e,t){var n=bR(null,function(r){return e.forEach(function(a){return Nu(a,r)})});return ER(function(){var r=eE.get(n);if(r){var a=new Set(r),i=new Set(e),o=n.current;a.forEach(function(s){i.has(s)||Nu(s,null)}),i.forEach(function(s){a.has(s)||Nu(s,o)})}eE.set(n,e)},[e]),n}function yR(e){return e}function xR(e,t){t===void 0&&(t=yR);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,r);return n.push(o),function(){n=n.filter(function(s){return s!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var s=n;n=[],s.forEach(i),o=n}var l=function(){var d=o;o=[],d.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),n}}}};return a}function iv(e){e===void 0&&(e={});var t=xR(null);return t.options=Ke({async:!0,ssr:!1},e),t}var ov=function(e){var t=e.sideCar,n=go(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return x.createElement(r,Ke({},n))};ov.isSideCarExport=!0;function sv(e,t){return e.useMedium(t),ov}var lv=iv(),Cu=function(){},ll=x.forwardRef(function(e,t){var n=x.useRef(null),r=x.useState({onScrollCapture:Cu,onWheelCapture:Cu,onTouchMoveCapture:Cu}),a=r[0],i=r[1],o=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,c=e.shards,f=e.sideCar,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,b=e.as,E=b===void 0?"div":b,T=e.gapMode,v=go(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,w=av([n,t]),A=Ke(Ke({},v),a);return x.createElement(x.Fragment,null,d&&x.createElement(S,{sideCar:lv,removeScrollBar:u,shards:c,noIsolation:m,inert:h,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:T}),o?x.cloneElement(x.Children.only(s),Ke(Ke({},A),{ref:w})):x.createElement(E,Ke({},A,{className:l,ref:w}),s))});ll.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ll.classNames={fullWidth:Li,zeroRight:Di};var uv=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function TR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=uv();return t&&e.setAttribute("nonce",t),e}function vR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function SR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var AR=function(){var e=0,t=null;return{add:function(n){e==0&&(t=TR())&&(vR(t,n),SR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},wR=function(){var e=AR();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ap=function(){var e=wR(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},_R={left:0,top:0,right:0,gap:0},ku=function(e){return parseInt(e||"",10)||0},NR=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[ku(n),ku(r),ku(a)]},CR=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _R;var t=NR(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},kR=ap(),Ia="data-scroll-locked",IR=function(e,t,n,r){var a=e.left,i=e.top,o=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
270
|
+
.`.concat(hR,` {
|
|
271
|
+
overflow: hidden `).concat(r,`;
|
|
272
|
+
padding-right: `).concat(s,"px ").concat(r,`;
|
|
273
|
+
}
|
|
274
|
+
body[`).concat(Ia,`] {
|
|
275
|
+
overflow: hidden `).concat(r,`;
|
|
276
|
+
overscroll-behavior: contain;
|
|
277
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
278
|
+
padding-left: `.concat(a,`px;
|
|
279
|
+
padding-top: `).concat(i,`px;
|
|
280
|
+
padding-right: `).concat(o,`px;
|
|
281
|
+
margin-left:0;
|
|
282
|
+
margin-top:0;
|
|
283
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
284
|
+
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.`).concat(Di,` {
|
|
288
|
+
right: `).concat(s,"px ").concat(r,`;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.`).concat(Li,` {
|
|
292
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.`).concat(Di," .").concat(Di,` {
|
|
296
|
+
right: 0 `).concat(r,`;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.`).concat(Li," .").concat(Li,` {
|
|
300
|
+
margin-right: 0 `).concat(r,`;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
body[`).concat(Ia,`] {
|
|
304
|
+
`).concat(gR,": ").concat(s,`px;
|
|
305
|
+
}
|
|
306
|
+
`)},tE=function(){var e=parseInt(document.body.getAttribute(Ia)||"0",10);return isFinite(e)?e:0},RR=function(){x.useEffect(function(){return document.body.setAttribute(Ia,(tE()+1).toString()),function(){var e=tE()-1;e<=0?document.body.removeAttribute(Ia):document.body.setAttribute(Ia,e.toString())}},[])},cv=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;RR();var i=x.useMemo(function(){return CR(a)},[a]);return x.createElement(kR,{styles:IR(i,!t,a,n?"":"!important")})},Lc=!1;if(typeof window<"u")try{var Xo=Object.defineProperty({},"passive",{get:function(){return Lc=!0,!0}});window.addEventListener("test",Xo,Xo),window.removeEventListener("test",Xo,Xo)}catch{Lc=!1}var sa=Lc?{passive:!1}:!1,OR=function(e){return e.tagName==="TEXTAREA"},dv=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!OR(e)&&n[t]==="visible")},DR=function(e){return dv(e,"overflowY")},LR=function(e){return dv(e,"overflowX")},nE=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=pv(e,r);if(a){var i=fv(e,r),o=i[1],s=i[2];if(o>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},PR=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},FR=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},pv=function(e,t){return e==="v"?DR(t):LR(t)},fv=function(e,t){return e==="v"?PR(t):FR(t)},MR=function(e,t){return e==="h"&&t==="rtl"?-1:1},BR=function(e,t,n,r,a){var i=MR(e,window.getComputedStyle(t).direction),o=i*r,s=n.target,l=t.contains(s),u=!1,d=o>0,c=0,f=0;do{var m=fv(e,s),h=m[0],g=m[1],b=m[2],E=g-b-i*h;(h||E)&&pv(e,s)&&(c+=E,f+=h),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&(Math.abs(c)<1||!a)||!d&&(Math.abs(f)<1||!a))&&(u=!0),u},Zo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rE=function(e){return[e.deltaX,e.deltaY]},aE=function(e){return e&&"current"in e?e.current:e},UR=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$R=function(e){return`
|
|
307
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
308
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
309
|
+
`)},jR=0,la=[];function HR(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),a=x.useState(jR++)[0],i=x.useState(ap)[0],o=x.useRef(e);x.useEffect(function(){o.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var g=rp([e.lockRef.current],(e.shards||[]).map(aE),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=x.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!o.current.allowPinchZoom;var E=Zo(g),T=n.current,v="deltaX"in g?g.deltaX:T[0]-E[0],S="deltaY"in g?g.deltaY:T[1]-E[1],w,A=g.target,_=Math.abs(v)>Math.abs(S)?"h":"v";if("touches"in g&&_==="h"&&A.type==="range")return!1;var D=nE(_,A);if(!D)return!0;if(D?w=_:(w=_==="v"?"h":"v",D=nE(_,A)),!D)return!1;if(!r.current&&"changedTouches"in g&&(v||S)&&(r.current=w),!w)return!0;var I=r.current||w;return BR(I,b,g,I==="h"?v:S,!0)},[]),l=x.useCallback(function(g){var b=g;if(!(!la.length||la[la.length-1]!==i)){var E="deltaY"in b?rE(b):Zo(b),T=t.current.filter(function(w){return w.name===b.type&&(w.target===b.target||b.target===w.shadowParent)&&UR(w.delta,E)})[0];if(T&&T.should){b.cancelable&&b.preventDefault();return}if(!T){var v=(o.current.shards||[]).map(aE).filter(Boolean).filter(function(w){return w.contains(b.target)}),S=v.length>0?s(b,v[0]):!o.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),u=x.useCallback(function(g,b,E,T){var v={name:g,delta:b,target:E,should:T,shadowParent:zR(E)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(S){return S!==v})},1)},[]),d=x.useCallback(function(g){n.current=Zo(g),r.current=void 0},[]),c=x.useCallback(function(g){u(g.type,rE(g),g.target,s(g,e.lockRef.current))},[]),f=x.useCallback(function(g){u(g.type,Zo(g),g.target,s(g,e.lockRef.current))},[]);x.useEffect(function(){return la.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:f}),document.addEventListener("wheel",l,sa),document.addEventListener("touchmove",l,sa),document.addEventListener("touchstart",d,sa),function(){la=la.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,sa),document.removeEventListener("touchmove",l,sa),document.removeEventListener("touchstart",d,sa)}},[]);var m=e.removeScrollBar,h=e.inert;return x.createElement(x.Fragment,null,h?x.createElement(i,{styles:$R(a)}):null,m?x.createElement(cv,{gapMode:e.gapMode}):null)}function zR(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const GR=sv(lv,HR);var ip=x.forwardRef(function(e,t){return x.createElement(ll,Ke({},e,{ref:t,sideCar:GR}))});ip.classNames=ll.classNames;var VR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ua=new WeakMap,Qo=new WeakMap,Jo={},Iu=0,mv=function(e){return e&&(e.host||mv(e.parentNode))},WR=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=mv(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},qR=function(e,t,n,r){var a=WR(t,Array.isArray(e)?e:[e]);Jo[n]||(Jo[n]=new WeakMap);var i=Jo[n],o=[],s=new Set,l=new Set(a),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};a.forEach(u);var d=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(f){if(s.has(f))d(f);else try{var m=f.getAttribute(r),h=m!==null&&m!=="false",g=(ua.get(f)||0)+1,b=(i.get(f)||0)+1;ua.set(f,g),i.set(f,b),o.push(f),g===1&&h&&Qo.set(f,!0),b===1&&f.setAttribute(n,"true"),h||f.setAttribute(r,"true")}catch(E){console.error("aria-hidden: cannot operate on ",f,E)}})};return d(t),s.clear(),Iu++,function(){o.forEach(function(c){var f=ua.get(c)-1,m=i.get(c)-1;ua.set(c,f),i.set(c,m),f||(Qo.has(c)||c.removeAttribute(r),Qo.delete(c)),m||c.removeAttribute(n)}),Iu--,Iu||(ua=new WeakMap,ua=new WeakMap,Qo=new WeakMap,Jo={})}},ul=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=VR(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),qR(r,a,n,"aria-hidden")):function(){return null}},op="Dialog",[hv,DW]=gr(op),[YR,Tn]=hv(op),gv=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:o=!0}=e,s=x.useRef(null),l=x.useRef(null),[u=!1,d]=cr({prop:r,defaultProp:a,onChange:i});return p.jsx(YR,{scope:t,triggerRef:s,contentRef:l,contentId:Cn(),titleId:Cn(),descriptionId:Cn(),open:u,onOpenChange:d,onOpenToggle:x.useCallback(()=>d(c=>!c),[d]),modal:o,children:n})};gv.displayName=op;var bv="DialogTrigger",Ev=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Tn(bv,n),i=Bt(t,a.triggerRef);return p.jsx(et.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":up(a.open),...r,ref:i,onClick:Je(e.onClick,a.onOpenToggle)})});Ev.displayName=bv;var sp="DialogPortal",[KR,yv]=hv(sp,{forceMount:void 0}),xv=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,i=Tn(sp,t);return p.jsx(KR,{scope:t,forceMount:n,children:x.Children.map(r,o=>p.jsx(br,{present:n||i.open,children:p.jsx(tp,{asChild:!0,container:a,children:o})}))})};xv.displayName=sp;var Fs="DialogOverlay",Tv=x.forwardRef((e,t)=>{const n=yv(Fs,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=Tn(Fs,e.__scopeDialog);return i.modal?p.jsx(br,{present:r||i.open,children:p.jsx(XR,{...a,ref:t})}):null});Tv.displayName=Fs;var XR=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Tn(Fs,n);return p.jsx(ip,{as:Br,allowPinchZoom:!0,shards:[a.contentRef],children:p.jsx(et.div,{"data-state":up(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),$r="DialogContent",vv=x.forwardRef((e,t)=>{const n=yv($r,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=Tn($r,e.__scopeDialog);return p.jsx(br,{present:r||i.open,children:i.modal?p.jsx(ZR,{...a,ref:t}):p.jsx(QR,{...a,ref:t})})});vv.displayName=$r;var ZR=x.forwardRef((e,t)=>{const n=Tn($r,e.__scopeDialog),r=x.useRef(null),a=Bt(t,n.contentRef,r);return x.useEffect(()=>{const i=r.current;if(i)return ul(i)},[]),p.jsx(Sv,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Je(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Je(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,s=o.button===0&&o.ctrlKey===!0;(o.button===2||s)&&i.preventDefault()}),onFocusOutside:Je(e.onFocusOutside,i=>i.preventDefault())})}),QR=x.forwardRef((e,t)=>{const n=Tn($r,e.__scopeDialog),r=x.useRef(!1),a=x.useRef(!1);return p.jsx(Sv,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,s;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const o=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),Sv=x.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,...o}=e,s=Tn($r,n),l=x.useRef(null),u=Bt(t,l);return np(),p.jsxs(p.Fragment,{children:[p.jsx(ep,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:p.jsx(Jd,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":up(s.open),...o,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(JR,{titleId:s.titleId}),p.jsx(tO,{contentRef:l,descriptionId:s.descriptionId})]})]})}),lp="DialogTitle",Av=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Tn(lp,n);return p.jsx(et.h2,{id:a.titleId,...r,ref:t})});Av.displayName=lp;var wv="DialogDescription",_v=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Tn(wv,n);return p.jsx(et.p,{id:a.descriptionId,...r,ref:t})});_v.displayName=wv;var Nv="DialogClose",Cv=x.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Tn(Nv,n);return p.jsx(et.button,{type:"button",...r,ref:t,onClick:Je(e.onClick,()=>a.onOpenChange(!1))})});Cv.displayName=Nv;function up(e){return e?"open":"closed"}var kv="DialogTitleWarning",[LW,Iv]=zN(kv,{contentName:$r,titleName:lp,docsSlug:"dialog"}),JR=({titleId:e})=>{const t=Iv(kv),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
310
|
+
|
|
311
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
312
|
+
|
|
313
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return x.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},eO="DialogDescriptionWarning",tO=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Iv(eO).contentName}}.`;return x.useEffect(()=>{var i;const a=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},nO=gv,rO=Ev,aO=xv,Rv=Tv,Ov=vv,Dv=Av,Lv=_v,iO=Cv;const oO=nO,sO=rO,lO=aO,Pv=x.forwardRef(({className:e,...t},n)=>p.jsx(Rv,{ref:n,className:Ee("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Pv.displayName=Rv.displayName;const Fv=x.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(lO,{children:[p.jsx(Pv,{}),p.jsxs(Ov,{ref:r,className:Ee("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,p.jsxs(iO,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[p.jsx(Hd,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Fv.displayName=Ov.displayName;const Mv=({className:e,...t})=>p.jsx("div",{className:Ee("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Mv.displayName="DialogHeader";const Bv=x.forwardRef(({className:e,...t},n)=>p.jsx(Dv,{ref:n,className:Ee("text-lg font-semibold leading-none tracking-tight",e),...t}));Bv.displayName=Dv.displayName;const Uv=x.forwardRef(({className:e,...t},n)=>p.jsx(Lv,{ref:n,className:Ee("text-sm text-muted-foreground",e),...t}));Uv.displayName=Lv.displayName;function cp(e,t=[]){let n=[];function r(i,o){const s=x.createContext(o),l=n.length;n=[...n,o];function u(c){const{scope:f,children:m,...h}=c,g=(f==null?void 0:f[e][l])||s,b=x.useMemo(()=>h,Object.values(h));return p.jsx(g.Provider,{value:b,children:m})}function d(c,f){const m=(f==null?void 0:f[e][l])||s,h=x.useContext(m);if(h)return h;if(o!==void 0)return o;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const a=()=>{const i=n.map(o=>x.createContext(o));return function(s){const l=(s==null?void 0:s[e])||i;return x.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return a.scopeName=e,[r,uO(a,...t)]}function uO(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=r.reduce((s,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...s,...c}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function cO(e){const t=e+"CollectionProvider",[n,r]=cp(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:h,children:g}=m,b=R.useRef(null),E=R.useRef(new Map).current;return p.jsx(a,{scope:h,itemMap:E,collectionRef:b,children:g})};o.displayName=t;const s=e+"CollectionSlot",l=R.forwardRef((m,h)=>{const{scope:g,children:b}=m,E=i(s,g),T=Bt(h,E.collectionRef);return p.jsx(Br,{ref:T,children:b})});l.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",c=R.forwardRef((m,h)=>{const{scope:g,children:b,...E}=m,T=R.useRef(null),v=Bt(h,T),S=i(u,g);return R.useEffect(()=>(S.itemMap.set(T,{ref:T,...E}),()=>void S.itemMap.delete(T))),p.jsx(Br,{[d]:"",ref:v,children:b})});c.displayName=u;function f(m){const h=i(e+"CollectionConsumer",m);return R.useCallback(()=>{const b=h.collectionRef.current;if(!b)return[];const E=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((S,w)=>E.indexOf(S.ref.current)-E.indexOf(w.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:o,Slot:l,ItemSlot:c},f,r]}var dO=x.createContext(void 0);function dp(e){const t=x.useContext(dO);return e||t||"ltr"}var Ru="rovingFocusGroup.onEntryFocus",pO={bubbles:!1,cancelable:!0},cl="RovingFocusGroup",[Pc,$v,fO]=cO(cl),[mO,jv]=cp(cl,[fO]),[hO,gO]=mO(cl),Hv=x.forwardRef((e,t)=>p.jsx(Pc.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Pc.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(bO,{...e,ref:t})})}));Hv.displayName=cl;var bO=x.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...c}=e,f=x.useRef(null),m=Bt(t,f),h=dp(i),[g=null,b]=cr({prop:o,defaultProp:s,onChange:l}),[E,T]=x.useState(!1),v=Mt(u),S=$v(n),w=x.useRef(!1),[A,_]=x.useState(0);return x.useEffect(()=>{const D=f.current;if(D)return D.addEventListener(Ru,v),()=>D.removeEventListener(Ru,v)},[v]),p.jsx(hO,{scope:n,orientation:r,dir:h,loop:a,currentTabStopId:g,onItemFocus:x.useCallback(D=>b(D),[b]),onItemShiftTab:x.useCallback(()=>T(!0),[]),onFocusableItemAdd:x.useCallback(()=>_(D=>D+1),[]),onFocusableItemRemove:x.useCallback(()=>_(D=>D-1),[]),children:p.jsx(et.div,{tabIndex:E||A===0?-1:0,"data-orientation":r,...c,ref:m,style:{outline:"none",...e.style},onMouseDown:Je(e.onMouseDown,()=>{w.current=!0}),onFocus:Je(e.onFocus,D=>{const I=!w.current;if(D.target===D.currentTarget&&I&&!E){const O=new CustomEvent(Ru,pO);if(D.currentTarget.dispatchEvent(O),!O.defaultPrevented){const M=S().filter(H=>H.focusable),P=M.find(H=>H.active),j=M.find(H=>H.id===g),W=[P,j,...M].filter(Boolean).map(H=>H.ref.current);Vv(W,d)}}w.current=!1}),onBlur:Je(e.onBlur,()=>T(!1))})})}),zv="RovingFocusGroupItem",Gv=x.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:i,...o}=e,s=Cn(),l=i||s,u=gO(zv,n),d=u.currentTabStopId===l,c=$v(n),{onFocusableItemAdd:f,onFocusableItemRemove:m}=u;return x.useEffect(()=>{if(r)return f(),()=>m()},[r,f,m]),p.jsx(Pc.ItemSlot,{scope:n,id:l,focusable:r,active:a,children:p.jsx(et.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...o,ref:t,onMouseDown:Je(e.onMouseDown,h=>{r?u.onItemFocus(l):h.preventDefault()}),onFocus:Je(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Je(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){u.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const g=xO(h,u.orientation,u.dir);if(g!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let E=c().filter(T=>T.focusable).map(T=>T.ref.current);if(g==="last")E.reverse();else if(g==="prev"||g==="next"){g==="prev"&&E.reverse();const T=E.indexOf(h.currentTarget);E=u.loop?TO(E,T+1):E.slice(T+1)}setTimeout(()=>Vv(E))}})})})});Gv.displayName=zv;var EO={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function yO(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function xO(e,t,n){const r=yO(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return EO[r]}function Vv(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function TO(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var vO=Hv,SO=Gv,pp="Tabs",[AO,PW]=gr(pp,[jv]),Wv=jv(),[wO,fp]=AO(pp),qv=x.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:i,orientation:o="horizontal",dir:s,activationMode:l="automatic",...u}=e,d=dp(s),[c,f]=cr({prop:r,onChange:a,defaultProp:i});return p.jsx(wO,{scope:n,baseId:Cn(),value:c,onValueChange:f,orientation:o,dir:d,activationMode:l,children:p.jsx(et.div,{dir:d,"data-orientation":o,...u,ref:t})})});qv.displayName=pp;var Yv="TabsList",Kv=x.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...a}=e,i=fp(Yv,n),o=Wv(n);return p.jsx(vO,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:r,children:p.jsx(et.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:t})})});Kv.displayName=Yv;var Xv="TabsTrigger",Zv=x.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:a=!1,...i}=e,o=fp(Xv,n),s=Wv(n),l=eS(o.baseId,r),u=tS(o.baseId,r),d=r===o.value;return p.jsx(SO,{asChild:!0,...s,focusable:!a,active:d,children:p.jsx(et.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:l,...i,ref:t,onMouseDown:Je(e.onMouseDown,c=>{!a&&c.button===0&&c.ctrlKey===!1?o.onValueChange(r):c.preventDefault()}),onKeyDown:Je(e.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(r)}),onFocus:Je(e.onFocus,()=>{const c=o.activationMode!=="manual";!d&&!a&&c&&o.onValueChange(r)})})})});Zv.displayName=Xv;var Qv="TabsContent",Jv=x.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:a,children:i,...o}=e,s=fp(Qv,n),l=eS(s.baseId,r),u=tS(s.baseId,r),d=r===s.value,c=x.useRef(d);return x.useEffect(()=>{const f=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(f)},[]),p.jsx(br,{present:a||d,children:({present:f})=>p.jsx(et.div,{"data-state":d?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!f,id:u,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:c.current?"0s":void 0},children:f&&i})})});Jv.displayName=Qv;function eS(e,t){return`${e}-trigger-${t}`}function tS(e,t){return`${e}-content-${t}`}var _O=qv,nS=Kv,rS=Zv,aS=Jv;const iS=_O,mp=x.forwardRef(({className:e,...t},n)=>p.jsx(nS,{ref:n,className:Ee("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));mp.displayName=nS.displayName;const hp=x.forwardRef(({className:e,...t},n)=>p.jsx(rS,{ref:n,className:Ee("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));hp.displayName=rS.displayName;const gp=x.forwardRef(({className:e,...t},n)=>p.jsx(aS,{ref:n,className:Ee("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));gp.displayName=aS.displayName;function iE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function NO(...e){return t=>{let n=!1;const r=e.map(a=>{const i=iE(a,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a<r.length;a++){const i=r[a];typeof i=="function"?i():iE(e[a],null)}}}}function qn(...e){return x.useCallback(NO(...e),e)}function bp(e,t=[]){let n=[];function r(i,o){const s=x.createContext(o);s.displayName=i+"Context";const l=n.length;n=[...n,o];const u=c=>{var E;const{scope:f,children:m,...h}=c,g=((E=f==null?void 0:f[e])==null?void 0:E[l])||s,b=x.useMemo(()=>h,Object.values(h));return p.jsx(g.Provider,{value:b,children:m})};u.displayName=i+"Provider";function d(c,f){var g;const m=((g=f==null?void 0:f[e])==null?void 0:g[l])||s,h=x.useContext(m);if(h)return h;if(o!==void 0)return o;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,d]}const a=()=>{const i=n.map(o=>x.createContext(o));return function(s){const l=(s==null?void 0:s[e])||i;return x.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return a.scopeName=e,[r,CO(a,...t)]}function CO(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=r.reduce((s,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...s,...c}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function pn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}var jn=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},kO=x[" useInsertionEffect ".trim().toString()]||jn;function oS({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,i,o]=IO({defaultProp:t,onChange:n}),s=e!==void 0,l=s?e:a;{const d=x.useRef(e!==void 0);x.useEffect(()=>{const c=d.current;c!==s&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,r])}const u=x.useCallback(d=>{var c;if(s){const f=RO(d)?d(e):d;f!==e&&((c=o.current)==null||c.call(o,f))}else i(d)},[s,e,i,o]);return[l,u]}function IO({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),a=x.useRef(n),i=x.useRef(t);return kO(()=>{i.current=t},[t]),x.useEffect(()=>{var o;a.current!==n&&((o=i.current)==null||o.call(i,n),a.current=n)},[n,a]),[n,r,i]}function RO(e){return typeof e=="function"}function OO(e){const t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function sS(e){const[t,n]=x.useState(void 0);return jn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const i=a[0];let o,s;if("borderBoxSize"in i){const l=i.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,s=u.blockSize}else o=e.offsetWidth,s=e.offsetHeight;n({width:o,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function DO(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var dl=e=>{const{present:t,children:n}=e,r=LO(t),a=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),i=PO(r.ref,FO(a));return typeof n=="function"||r.isPresent?x.cloneElement(a,{ref:i}):null};dl.displayName="Presence";function LO(e){const[t,n]=x.useState(),r=x.useRef(null),a=x.useRef(e),i=x.useRef("none"),o=e?"mounted":"unmounted",[s,l]=DO(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=es(r.current);i.current=s==="mounted"?u:"none"},[s]),jn(()=>{const u=r.current,d=a.current;if(d!==e){const f=i.current,m=es(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&f!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,l]),jn(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,c=m=>{const g=es(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(l("ANIMATION_END"),!a.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=m=>{m.target===t&&(i.current=es(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function oE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function PO(...e){const t=x.useRef(e);return t.current=e,x.useCallback(n=>{const r=t.current;let a=!1;const i=r.map(o=>{const s=oE(o,n);return!a&&typeof s=="function"&&(a=!0),s});if(a)return()=>{for(let o=0;o<i.length;o++){const s=i[o];typeof s=="function"?s():oE(r[o],null)}}},[])}function es(e){return(e==null?void 0:e.animationName)||"none"}function FO(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function MO(e){const t=x.forwardRef((n,r)=>{let{children:a,...i}=n,o=null,s=!1;const l=[];sE(a)&&typeof ts=="function"&&(a=ts(a._payload)),x.Children.forEach(a,f=>{var m;if(HO(f)){s=!0;const h=f;let g="child"in h.props?h.props.child:h.props.children;sE(g)&&typeof ts=="function"&&(g=ts(g._payload)),o=UO(h,g),l.push((m=o==null?void 0:o.props)==null?void 0:m.children)}else l.push(f)}),o?o=x.cloneElement(o,void 0,l):!s&&x.Children.count(a)===1&&x.isValidElement(a)&&(o=a);const u=o?jO(o):void 0,d=qn(r,u);if(!o){if(a||a===0)throw new Error(s?WO(e):VO(e));return a}const c=$O(i,o.props??{});return o.type!==x.Fragment&&(c.ref=r?d:u),x.cloneElement(o,c)});return t.displayName=`${e}.Slot`,t}var lS=Symbol.for("radix.slottable");function BO(e){const t=n=>"child"in n?n.children(n.child):n.children;return t.displayName=`${e}.Slottable`,t.__radixId=lS,t}var UO=(e,t)=>{if("child"in e.props){const n=e.props.child;return x.isValidElement(n)?x.cloneElement(n,void 0,e.props.children(n.props.children)):null}return x.isValidElement(t)?t:null};function $O(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...s)=>{const l=i(...s);return a(...s),l}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function jO(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function HO(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lS}var zO=Symbol.for("react.lazy");function sE(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===zO&&"_payload"in e&&GO(e._payload)}function GO(e){return typeof e=="object"&&e!==null&&"then"in e}var VO=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,WO=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,ts=x[" use ".trim().toString()],qO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],vn=qO.reduce((e,t)=>{const n=MO(`Primitive.${t}`),r=x.forwardRef((a,i)=>{const{asChild:o,...s}=a,l=o?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function YO(e,t){e&&Xr.flushSync(()=>e.dispatchEvent(t))}var pl="Checkbox",[KO,FW]=bp(pl),[XO,Ep]=KO(pl);function ZO(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:a,disabled:i,form:o,name:s,onCheckedChange:l,required:u,value:d="on",internal_do_not_use_render:c}=e,[f,m]=oS({prop:n,defaultProp:a??!1,onChange:l,caller:pl}),[h,g]=x.useState(null),[b,E]=x.useState(null),T=x.useRef(!1),v=h?!!o||!!h.closest("form"):!0,S={checked:f,disabled:i,setChecked:m,control:h,setControl:g,name:s,form:o,value:d,hasConsumerStoppedPropagationRef:T,required:u,defaultChecked:ur(a)?!1:a,isFormControl:v,bubbleInput:b,setBubbleInput:E};return p.jsx(XO,{scope:t,...S,children:QO(c)?c(S):r})}var uS="CheckboxTrigger",cS=x.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},a)=>{const{control:i,value:o,disabled:s,checked:l,required:u,setControl:d,setChecked:c,hasConsumerStoppedPropagationRef:f,isFormControl:m,bubbleInput:h}=Ep(uS,e),g=qn(a,d),b=x.useRef(l);return x.useEffect(()=>{const E=i==null?void 0:i.form;if(E){const T=()=>c(b.current);return E.addEventListener("reset",T),()=>E.removeEventListener("reset",T)}},[i,c]),p.jsx(vn.button,{type:"button",role:"checkbox","aria-checked":ur(l)?"mixed":l,"aria-required":u,"data-state":hS(l),"data-disabled":s?"":void 0,disabled:s,value:o,...r,ref:g,onKeyDown:pn(t,E=>{E.key==="Enter"&&E.preventDefault()}),onClick:pn(n,E=>{c(T=>ur(T)?!0:!T),h&&m&&(f.current=E.isPropagationStopped(),f.current||E.stopPropagation())})})});cS.displayName=uS;var yp=x.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:i,required:o,disabled:s,value:l,onCheckedChange:u,form:d,...c}=e;return p.jsx(ZO,{__scopeCheckbox:n,checked:a,defaultChecked:i,disabled:s,required:o,onCheckedChange:u,name:r,form:d,value:l,internal_do_not_use_render:({isFormControl:f})=>p.jsxs(p.Fragment,{children:[p.jsx(cS,{...c,ref:t,__scopeCheckbox:n}),f&&p.jsx(mS,{__scopeCheckbox:n})]})})});yp.displayName=pl;var dS="CheckboxIndicator",pS=x.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,i=Ep(dS,n);return p.jsx(dl,{present:r||ur(i.checked)||i.checked===!0,children:p.jsx(vn.span,{"data-state":hS(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});pS.displayName=dS;var fS="CheckboxBubbleInput",mS=x.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:a,checked:i,defaultChecked:o,required:s,disabled:l,name:u,value:d,form:c,bubbleInput:f,setBubbleInput:m}=Ep(fS,e),h=qn(n,m),g=OO(i),b=sS(r);x.useEffect(()=>{const T=f;if(!T)return;const v=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(v,"checked").set,A=!a.current;if(g!==i&&w){const _=new Event("click",{bubbles:A});T.indeterminate=ur(i),w.call(T,ur(i)?!1:i),T.dispatchEvent(_)}},[f,g,i,a]);const E=x.useRef(ur(i)?!1:i);return p.jsx(vn.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??E.current,required:s,disabled:l,name:u,value:d,form:c,...t,tabIndex:-1,ref:h,style:{...t.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});mS.displayName=fS;function QO(e){return typeof e=="function"}function ur(e){return e==="indeterminate"}function hS(e){return ur(e)?"indeterminate":e?"checked":"unchecked"}const Fc=x.forwardRef(({className:e,...t},n)=>p.jsx(yp,{ref:n,className:Ee("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:p.jsx(pS,{className:Ee("grid place-content-center text-current"),children:p.jsx(Er,{className:"h-4 w-4"})})}));Fc.displayName=yp.displayName;function nt(){return nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nt.apply(null,arguments)}const bo=function(e){if(e==null)return nD;if(typeof e=="function")return fl(e);if(typeof e=="object")return Array.isArray(e)?JO(e):eD(e);if(typeof e=="string")return tD(e);throw new Error("Expected function, string, or object as test")};function JO(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=bo(e[n]);return fl(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function eD(e){const t=e;return fl(n);function n(r){const a=r;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function tD(e){return fl(t);function t(n){return n&&n.type===e}}function fl(e){return t;function t(n,r,a){return!!(rD(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function nD(){return!0}function rD(e){return e!==null&&typeof e=="object"&&"type"in e}const gS=[],aD=!0,Ms=!1,Pi="skip";function bS(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const i=bo(a),o=r?-1:1;s(e,void 0,[])();function s(l,u,d){const c=l&&typeof l=="object"?l:{};if(typeof c.type=="string"){const m=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(m?"<"+m+">":""))+")"})}return f;function f(){let m=gS,h,g,b;if((!t||i(l,u,d[d.length-1]||void 0))&&(m=iD(n(l,d)),m[0]===Ms))return m;if("children"in l&&l.children){const E=l;if(E.children&&m[0]!==Pi)for(g=(r?E.children.length:-1)+o,b=d.concat(E);g>-1&&g<E.children.length;){const T=E.children[g];if(h=s(T,g,b)(),h[0]===Ms)return h;g=typeof h[1]=="number"?h[1]:g+o}}return m}}}function iD(e){return Array.isArray(e)?e:typeof e=="number"?[aD,e]:e==null?gS:[e]}function It(e,t,n,r){let a,i,o;typeof t=="function"&&typeof n!="function"?(i=void 0,o=t,a=n):(i=t,o=n,a=r),bS(e,i,s,a);function s(l,u){const d=u[u.length-1],c=d?d.children.indexOf(l):void 0;return o(l,c,d)}}function Sa(e){return"children"in e?ES(e):"value"in e?e.value:""}function oD(e){return e.type==="text"?e.value:"children"in e?ES(e):""}function ES(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=oD(e.children[t]);return n.join("")}const sD={}.hasOwnProperty;function lD(e,t,n){const r=bo(t),a=t&&typeof t=="object"&&"cascade"in t?t.cascade:void 0,i=a??!0;return o(e);function o(s,l,u){const d=[];if(!r(s,l,u))return;if(uD(s)){let m=-1;for(;++m<s.children.length;){const h=o(s.children[m],m,s);h&&d.push(h)}if(i&&s.children.length>0&&d.length===0)return}const c={};let f;for(f in s)sD.call(s,f)&&(c[f]=f==="children"?d:s[f]);return c}}function uD(e){return"children"in e&&e.children!==void 0}var Mc={exports:{}};(function(e,t){function n(r){let a=[],i;for(let o of r.split(",").map(s=>s.trim()))if(/^-?\d+$/.test(o))a.push(parseInt(o,10));else if(i=o.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[s,l,u,d]=i;if(l&&d){l=parseInt(l),d=parseInt(d);const c=l<d?1:-1;(u==="-"||u===".."||u==="‥")&&(d+=c);for(let f=l;f!==d;f+=c)a.push(f)}}return a}t.default=n,e.exports=n})(Mc,Mc.exports);var cD=Mc.exports;const dD=rl(cD);Oe.displayName="clike";Oe.aliases=[];function Oe(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Sn.displayName="c";Sn.aliases=[];function Sn(e){e.register(Oe),e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}Qr.displayName="cpp";Qr.aliases=[];function Qr(e){e.register(Sn),function(t){var n=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return n.source});t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:n,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(e)}ml.displayName="arduino";ml.aliases=["ino"];function ml(e){e.register(Qr),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}Eo.displayName="bash";Eo.aliases=["sh","shell"];function Eo(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=a.variable[1].inside,s=0;s<i.length;s++)o[i[s]]=t.languages.bash[i[s]];t.languages.sh=t.languages.bash,t.languages.shell=t.languages.bash})(e)}Jr.displayName="csharp";Jr.aliases=["cs","dotnet"];function Jr(e){e.register(Oe),function(t){function n(k,ae){return k.replace(/<<(\d+)>>/g,function(V,N){return"(?:"+ae[+N]+")"})}function r(k,ae,V){return RegExp(n(k,ae),"")}function a(k,ae){for(var V=0;V<ae;V++)k=k.replace(/<<self>>/g,function(){return"(?:"+k+")"});return k.replace(/<<self>>/g,"[^\\s\\S]")}var i={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function o(k){return"\\b(?:"+k.trim().replace(/ /g,"|")+")\\b"}var s=o(i.typeDeclaration),l=RegExp(o(i.type+" "+i.typeDeclaration+" "+i.contextual+" "+i.other)),u=o(i.typeDeclaration+" "+i.contextual+" "+i.other),d=o(i.type+" "+i.typeDeclaration+" "+i.other),c=a(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),f=a(/\((?:[^()]|<<self>>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,h=n(/<<0>>(?:\s*<<1>>)?/.source,[m,c]),g=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,h]),b=/\[\s*(?:,\s*)*\]/.source,E=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[g,b]),T=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[c,f,b]),v=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[T]),S=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[v,g,b]),w={keyword:l,punctuation:/[<>()?,.:[\]]/},A=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,_=/"(?:\\.|[^\\"\r\n])*"/.source,D=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[D]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[_]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[g]),lookbehind:!0,inside:w},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,S]),lookbehind:!0,inside:w},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[s,h]),lookbehind:!0,inside:w},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[g]),lookbehind:!0,inside:w},{pattern:r(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[E]),lookbehind:!0,inside:w},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,d,m]),inside:w}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[f]),lookbehind:!0,alias:"class-name",inside:w},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,g]),inside:w,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:w,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,c]),inside:{function:r(/^<<0>>/.source,[m]),generic:{pattern:RegExp(c),alias:"class-name",inside:w}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[s,h,m,S,l.source,f,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[h,f]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(S),greedy:!0,inside:w},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var I=_+"|"+A,O=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[I]),M=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[O]),2),P=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,j=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[g,M]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[P,j]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[P]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[M]),inside:t.languages.csharp},"class-name":{pattern:RegExp(g),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=/:[^}\r\n]+/.source,W=a(n(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[O]),2),H=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,z]),X=a(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[I]),2),Z=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[X,z]);function G(k,ae){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[k]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[ae,z]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[H]),lookbehind:!0,greedy:!0,inside:G(H,W)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Z]),lookbehind:!0,greedy:!0,inside:G(Z,X)}],char:{pattern:RegExp(A),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}Tt.displayName="markup";Tt.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function Tt(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var a={};a["language-"+r]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[r]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};i["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var o={};o[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}xr.displayName="css";xr.aliases=[];function xr(e){(function(t){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+n.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var r=t.languages.markup;r&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))})(e)}hl.displayName="diff";hl.aliases=[];function hl(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var a=n[r],i=[];/^\w+$/.test(r)||i.push(/\w+/.exec(r)[0]),r==="diff"&&i.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+a+`].*(?:\r
|
|
314
|
+
?|
|
|
315
|
+
|(?![\\s\\S])))+`,"m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}gl.displayName="go";gl.aliases=[];function gl(e){e.register(Oe),e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}bl.displayName="ini";bl.aliases=[];function bl(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}ea.displayName="java";ea.aliases=[];function ea(e){e.register(Oe),function(t){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[a,{pattern:RegExp(/(^|[^\w.])/.source+r+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:a.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+r+/[A-Z]\w*\b/.source),lookbehind:!0,inside:a.inside}],keyword:n,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":a,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+r+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:a.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+r+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:a.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(e)}El.displayName="regex";El.aliases=[];function El(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,a={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},i={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o="(?:[^\\\\-]|"+r.source+")",s=RegExp(o+"-"+o),l={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:s,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":i,escape:r}},"special-escape":n,"char-set":a,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":l}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":l}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(e)}wt.displayName="javascript";wt.aliases=["js"];function wt(e){e.register(Oe),e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}Za.displayName="json";Za.aliases=["webmanifest"];function Za(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}yl.displayName="kotlin";yl.aliases=["kt","kts"];function yl(e){e.register(Oe),function(t){t.languages.kotlin=t.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete t.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.kotlin}};t.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete t.languages.kotlin.string,t.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),t.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),t.languages.kt=t.languages.kotlin,t.languages.kts=t.languages.kotlin}(e)}xl.displayName="less";xl.aliases=[];function xl(e){e.register(xr),e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}yo.displayName="lua";yo.aliases=[];function yo(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}Tl.displayName="makefile";Tl.aliases=[];function Tl(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}xo.displayName="yaml";xo.aliases=["yml"];function xo(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),o=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(l,u){u=(u||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<value>>/g,function(){return l});return RegExp(d,u)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return a}).replace(/<<key>>/g,function(){return"(?:"+i+"|"+o+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(o),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}vl.displayName="markdown";vl.aliases=["md"];function vl(e){e.register(Tt),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(s){return s=s.replace(/<inner>/g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+s+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(s){["url","bold","italic","strike","code-snippet"].forEach(function(l){s!==l&&(t.languages.markdown[s].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(s){if(s.language!=="markdown"&&s.language!=="md")return;function l(u){if(!(!u||typeof u=="string"))for(var d=0,c=u.length;d<c;d++){var f=u[d];if(f.type!=="code"){l(f.content);continue}var m=f.content[1],h=f.content[3];if(m&&h&&m.type==="code-language"&&h.type==="code-block"&&typeof m.content=="string"){var g=m.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");g=(/[a-z][\w-]*/i.exec(g)||[""])[0].toLowerCase();var b="language-"+g;h.alias?typeof h.alias=="string"?h.alias=[h.alias,b]:h.alias.push(b):h.alias=[b]}}}l(s.tokens)}),t.hooks.add("wrap",function(s){if(s.type==="code-block"){for(var l="",u=0,d=s.classes.length;u<d;u++){var c=s.classes[u],f=/language-(.+)/.exec(c);if(f){l=f[1];break}}var m=t.languages[l];if(m)s.content=t.highlight(s.content.value,m,l);else if(l&&l!=="none"&&t.plugins.autoloader){var h="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);s.attributes.id=h,t.plugins.autoloader.loadLanguages(l,function(){var g=document.getElementById(h);g&&(g.innerHTML=t.highlight(g.textContent,t.languages[l],l))})}}}),RegExp(t.languages.markup.tag.pattern.source,"gi"),t.languages.md=t.languages.markdown}(e)}Sl.displayName="objectivec";Sl.aliases=["objc"];function Sl(e){e.register(Sn),e.languages.objectivec=e.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}Al.displayName="perl";Al.aliases=[];function Al(e){(function(t){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;t.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(e)}_t.displayName="markup-templating";_t.aliases=[];function _t(e){e.register(Tt),function(t){function n(r,a){return"___"+r.toUpperCase()+a+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,a,i,o){if(r.language===a){var s=r.tokenStack=[];r.code=r.code.replace(i,function(l){if(typeof o=="function"&&!o(l))return l;for(var u=s.length,d;r.code.indexOf(d=n(a,u))!==-1;)++u;return s[u]=l,d}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,a){if(r.language!==a||!r.tokenStack)return;r.grammar=t.languages[a];var i=0,o=Object.keys(r.tokenStack);function s(l){for(var u=0;u<l.length&&!(i>=o.length);u++){var d=l[u];if(typeof d=="string"||d.content&&typeof d.content=="string"){var c=o[i],f=r.tokenStack[c],m=typeof d=="string"?d:d.content,h=n(a,c),g=m.indexOf(h);if(g>-1){++i;var b=m.substring(0,g),E=new t.Token(a,t.tokenize(f,r.grammar),"language-"+a,f),T=m.substring(g+h.length),v=[];b&&v.push.apply(v,s([b])),v.push(E),T&&v.push.apply(v,s([T])),typeof d=="string"?l.splice.apply(l,[u,1].concat(v)):d.content=v}}else d.content&&s(d.content)}return l}s(r.tokens)}}})}(e)}ta.displayName="php";ta.aliases=[];function ta(e){e.register(_t),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],a=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:a,operator:i,punctuation:o};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];t.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:a,operator:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var d=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(u,"php",d)}}),t.hooks.add("after-tokenize",function(u){t.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(e)}To.displayName="python";To.aliases=["py"];function To(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}wl.displayName="r";wl.aliases=[];function wl(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}na.displayName="ruby";na.aliases=["rb"];function na(e){e.register(Oe),function(t){t.languages.ruby=t.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),t.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:t.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete t.languages.ruby.function;var r="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",a=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;t.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+r+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+a),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+a+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),t.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+r),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+r),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete t.languages.ruby.string,t.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),t.languages.rb=t.languages.ruby}(e)}_l.displayName="rust";_l.aliases=[];function _l(e){(function(t){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,r=0;r<2;r++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string})(e)}Nl.displayName="sass";Nl.aliases=[];function Nl(e){e.register(xr),function(t){t.languages.sass=t.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete t.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,r=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];t.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:r}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:r,important:t.languages.sass.important}}}),delete t.languages.sass.property,delete t.languages.sass.important,t.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(e)}Cl.displayName="scss";Cl.aliases=[];function Cl(e){e.register(xr),e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}Qa.displayName="sql";Qa.aliases=[];function Qa(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}kl.displayName="swift";kl.aliases=[];function kl(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}Ja.displayName="typescript";Ja.aliases=["ts"];function Ja(e){e.register(wt),function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var n=t.languages.extend("typescript",{});delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}(e)}vo.displayName="basic";vo.aliases=[];function vo(e){e.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}So.displayName="vbnet";So.aliases=[];function So(e){e.register(vo),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}class Ao{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}Ao.prototype.property={};Ao.prototype.normal={};Ao.prototype.space=null;function yS(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new Ao(n,r,t)}function jr(e){return e.toLowerCase()}class an{constructor(t,n){this.property=t,this.attribute=n}}an.prototype.space=null;an.prototype.boolean=!1;an.prototype.booleanish=!1;an.prototype.overloadedBoolean=!1;an.prototype.number=!1;an.prototype.commaSeparated=!1;an.prototype.spaceSeparated=!1;an.prototype.commaOrSpaceSeparated=!1;an.prototype.mustUseProperty=!1;an.prototype.defined=!1;let pD=0;const _e=ra(),ct=ra(),xS=ra(),fe=ra(),ze=ra(),Ra=ra(),Gt=ra();function ra(){return 2**++pD}const Bc=Object.freeze(Object.defineProperty({__proto__:null,boolean:_e,booleanish:ct,commaOrSpaceSeparated:Gt,commaSeparated:Ra,number:fe,overloadedBoolean:xS,spaceSeparated:ze},Symbol.toStringTag,{value:"Module"})),Ou=Object.keys(Bc);class xp extends an{constructor(t,n,r,a){let i=-1;if(super(t,n),lE(this,"space",a),typeof r=="number")for(;++i<Ou.length;){const o=Ou[i];lE(this,Ou[i],(r&Bc[o])===Bc[o])}}}xp.prototype.defined=!0;function lE(e,t,n){n&&(e[t]=n)}const fD={}.hasOwnProperty;function ei(e){const t={},n={};let r;for(r in e.properties)if(fD.call(e.properties,r)){const a=e.properties[r],i=new xp(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[jr(r)]=r,n[jr(i.attribute)]=r}return new Ao(t,n,e.space)}const TS=ei({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),vS=ei({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function SS(e,t){return t in e?e[t]:t}function AS(e,t){return SS(e,t.toLowerCase())}const wS=ei({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:AS,properties:{xmlns:null,xmlnsXLink:null}}),_S=ei({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ct,ariaAutoComplete:null,ariaBusy:ct,ariaChecked:ct,ariaColCount:fe,ariaColIndex:fe,ariaColSpan:fe,ariaControls:ze,ariaCurrent:null,ariaDescribedBy:ze,ariaDetails:null,ariaDisabled:ct,ariaDropEffect:ze,ariaErrorMessage:null,ariaExpanded:ct,ariaFlowTo:ze,ariaGrabbed:ct,ariaHasPopup:null,ariaHidden:ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ze,ariaLevel:fe,ariaLive:null,ariaModal:ct,ariaMultiLine:ct,ariaMultiSelectable:ct,ariaOrientation:null,ariaOwns:ze,ariaPlaceholder:null,ariaPosInSet:fe,ariaPressed:ct,ariaReadOnly:ct,ariaRelevant:null,ariaRequired:ct,ariaRoleDescription:ze,ariaRowCount:fe,ariaRowIndex:fe,ariaRowSpan:fe,ariaSelected:ct,ariaSetSize:fe,ariaSort:null,ariaValueMax:fe,ariaValueMin:fe,ariaValueNow:fe,ariaValueText:null,role:null}}),mD=ei({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:AS,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ra,acceptCharset:ze,accessKey:ze,action:null,allow:null,allowFullScreen:_e,allowPaymentRequest:_e,allowUserMedia:_e,alt:null,as:null,async:_e,autoCapitalize:null,autoComplete:ze,autoFocus:_e,autoPlay:_e,blocking:ze,capture:null,charSet:null,checked:_e,cite:null,className:ze,cols:fe,colSpan:null,content:null,contentEditable:ct,controls:_e,controlsList:ze,coords:fe|Ra,crossOrigin:null,data:null,dateTime:null,decoding:null,default:_e,defer:_e,dir:null,dirName:null,disabled:_e,download:xS,draggable:ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:_e,formTarget:null,headers:ze,height:fe,hidden:_e,high:fe,href:null,hrefLang:null,htmlFor:ze,httpEquiv:ze,id:null,imageSizes:null,imageSrcSet:null,inert:_e,inputMode:null,integrity:null,is:null,isMap:_e,itemId:null,itemProp:ze,itemRef:ze,itemScope:_e,itemType:ze,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:_e,low:fe,manifest:null,max:null,maxLength:fe,media:null,method:null,min:null,minLength:fe,multiple:_e,muted:_e,name:null,nonce:null,noModule:_e,noValidate:_e,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:_e,optimum:fe,pattern:null,ping:ze,placeholder:null,playsInline:_e,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:_e,referrerPolicy:null,rel:ze,required:_e,reversed:_e,rows:fe,rowSpan:fe,sandbox:ze,scope:null,scoped:_e,seamless:_e,selected:_e,shadowRootClonable:_e,shadowRootDelegatesFocus:_e,shadowRootMode:null,shape:null,size:fe,sizes:null,slot:null,span:fe,spellCheck:ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:fe,step:null,style:null,tabIndex:fe,target:null,title:null,translate:null,type:null,typeMustMatch:_e,useMap:null,value:ct,width:fe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ze,axis:null,background:null,bgColor:null,border:fe,borderColor:null,bottomMargin:fe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:_e,declare:_e,event:null,face:null,frame:null,frameBorder:null,hSpace:fe,leftMargin:fe,link:null,longDesc:null,lowSrc:null,marginHeight:fe,marginWidth:fe,noResize:_e,noHref:_e,noShade:_e,noWrap:_e,object:null,profile:null,prompt:null,rev:null,rightMargin:fe,rules:null,scheme:null,scrolling:ct,standby:null,summary:null,text:null,topMargin:fe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:fe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:_e,disableRemotePlayback:_e,prefix:null,property:null,results:fe,security:null,unselectable:null}}),hD=ei({space:"svg",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",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"},transform:SS,properties:{about:Gt,accentHeight:fe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:fe,amplitude:fe,arabicForm:null,ascent:fe,attributeName:null,attributeType:null,azimuth:fe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:fe,by:null,calcMode:null,capHeight:fe,className:ze,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:fe,diffuseConstant:fe,direction:null,display:null,dur:null,divisor:fe,dominantBaseline:null,download:_e,dx:null,dy:null,edgeMode:null,editable:null,elevation:fe,enableBackground:null,end:null,event:null,exponent:fe,externalResourcesRequired:null,fill:null,fillOpacity:fe,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:Ra,g2:Ra,glyphName:Ra,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:fe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:fe,horizOriginX:fe,horizOriginY:fe,id:null,ideographic:fe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:fe,k:fe,k1:fe,k2:fe,k3:fe,k4:fe,kernelMatrix:Gt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:fe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:fe,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:fe,overlineThickness:fe,paintOrder:null,panose1:null,path:null,pathLength:fe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ze,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:fe,pointsAtY:fe,pointsAtZ:fe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Gt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Gt,rev:Gt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Gt,requiredFeatures:Gt,requiredFonts:Gt,requiredFormats:Gt,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:fe,specularExponent:fe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:fe,strikethroughThickness:fe,string:null,stroke:null,strokeDashArray:Gt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:fe,strokeOpacity:fe,strokeWidth:null,style:null,surfaceScale:fe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Gt,tabIndex:fe,tableValues:null,target:null,targetX:fe,targetY:fe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Gt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:fe,underlineThickness:fe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:fe,values:null,vAlphabetic:fe,vMathematical:fe,vectorEffect:null,vHanging:fe,vIdeographic:fe,version:null,vertAdvY:fe,vertOriginX:fe,vertOriginY:fe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:fe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),gD=/^data[-\w.:]+$/i,uE=/-[a-z]/g,bD=/[A-Z]/g;function ti(e,t){const n=jr(t);let r=t,a=an;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&gD.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(uE,yD);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!uE.test(i)){let o=i.replace(bD,ED);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=xp}return new a(r,t)}function ED(e){return"-"+e.toLowerCase()}function yD(e){return e.charAt(1).toUpperCase()}const xD={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},aa=yS([vS,TS,wS,_S,mD],"html"),Yn=yS([vS,TS,wS,_S,hD],"svg"),cE=/[#.]/g;function TD(e,t){const n=e||"",r={};let a=0,i,o;for(;a<n.length;){cE.lastIndex=a;const s=cE.exec(n),l=n.slice(a,s?s.index:n.length);l&&(i?i==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:o=l,a+=l.length),s&&(i=s[0],a++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}function Ua(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Tp(e){return e.join(" ").trim()}function Xi(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const o=n.slice(a,r).trim();(o||!i)&&t.push(o),a=r+1,r=n.indexOf(",",a)}return t}function vp(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const vD=new Set(["menu","submit","reset","button"]),NS={}.hasOwnProperty;function SD(e,t,n){return function(a,i,...o){let s=-1,l;if(a==null)l={type:"root",children:[]},o.unshift(i);else if(l=TD(a,t),l.tagName=l.tagName.toLowerCase(),AD(i,l.tagName)){let u;for(u in i)NS.call(i,u)&&wD(e,l.properties,u,i[u])}else o.unshift(i);for(;++s<o.length;)Uc(l.children,o[s]);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}}function AD(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?vD.has(e.type.toLowerCase()):!("value"in e)}function wD(e,t,n,r){const a=ti(e,n);let i=-1,o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?a.spaceSeparated?o=Ua(r):a.commaSeparated?o=Xi(r):a.commaOrSpaceSeparated?o=Ua(Xi(r).join(" ")):o=dE(a,a.property,r):Array.isArray(r)?o=r.concat():o=a.property==="style"?_D(r):String(r);if(Array.isArray(o)){const s=[];for(;++i<o.length;)s[i]=dE(a,a.property,o[i]);o=s}a.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[a.property]=o}}function Uc(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)Uc(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?Uc(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function dE(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||jr(n)===jr(t)))return!0}return n}function _D(e){const t=[];let n;for(n in e)NS.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}const ND=SD(aa,"div"),CD=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],pE={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function CS(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function kD(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function ID(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function fE(e){return ID(e)||CS(e)}const mE=document.createElement("i");function Zi(e){const t="&"+e+";";mE.innerHTML=t;const n=mE.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const ca=String.fromCharCode,RD=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function OD(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let a=0,i=-1,o="",s,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,s=t.position.start):s=t.position);let u=(s?s.line:0)||1,d=(s?s.column:0)||1,c=m(),f;for(a--;++a<=e.length;)if(f===10&&(d=(l?l[i]:0)||1),f=e.charCodeAt(a),f===38){const b=e.charCodeAt(a+1);if(b===9||b===10||b===12||b===32||b===38||b===60||Number.isNaN(b)||n&&b===n){o+=ca(f),d++;continue}const E=a+1;let T=E,v=E,S;if(b===35){v=++T;const P=e.charCodeAt(v);P===88||P===120?(S="hexadecimal",v=++T):S="decimal"}else S="named";let w="",A="",_="";const D=S==="named"?fE:S==="decimal"?CS:kD;for(v--;++v<=e.length;){const P=e.charCodeAt(v);if(!D(P))break;_+=ca(P),S==="named"&&CD.includes(_)&&(w=_,A=Zi(_))}let I=e.charCodeAt(v)===59;if(I){v++;const P=S==="named"?Zi(_):!1;P&&(w=_,A=P)}let O=1+v-E,M="";if(!(!I&&t.nonTerminated===!1))if(!_)S!=="named"&&h(4,O);else if(S==="named"){if(I&&!A)h(5,1);else if(w!==_&&(v=T+w.length,O=1+v-T,I=!1),!I){const P=w?1:3;if(t.attribute){const j=e.charCodeAt(v);j===61?(h(P,O),A=""):fE(j)?A="":h(P,O)}else h(P,O)}M=A}else{I||h(2,O);let P=Number.parseInt(_,S==="hexadecimal"?16:10);if(DD(P))h(7,O),M=ca(65533);else if(P in pE)h(6,O),M=pE[P];else{let j="";LD(P)&&h(6,O),P>65535&&(P-=65536,j+=ca(P>>>10|55296),P=56320|P&1023),M=j+ca(P)}}if(M){g(),c=m(),a=v-1,d+=v-E+1,r.push(M);const P=m();P.offset++,t.reference&&t.reference.call(t.referenceContext,M,{start:c,end:P},e.slice(E-1,v)),c=P}else _=e.slice(E-1,v),o+=_,d+=_.length,a=v-1}else f===10&&(u++,i++,d=0),Number.isNaN(f)?g():(o+=ca(f),d++);return r.join("");function m(){return{line:u,column:d,offset:a+((s?s.offset:0)||0)}}function h(b,E){let T;t.warning&&(T=m(),T.column+=E,T.offset+=E,t.warning.call(t.warningContext,RD[b],T,b))}function g(){o&&(r.push(o),t.text&&t.text.call(t.textContext,o,{start:c,end:m()}),o="")}}function DD(e){return e>=55296&&e<=57343||e>1114111}function LD(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var PD=0,ns={},bt={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++PD}),e.__id},clone:function e(t,n){n=n||{};var r,a;switch(bt.util.type(t)){case"Object":if(a=bt.util.objId(t),n[a])return n[a];r={},n[a]=r;for(var i in t)t.hasOwnProperty(i)&&(r[i]=e(t[i],n));return r;case"Array":return a=bt.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach(function(o,s){r[s]=e(o,n)}),r);default:return t}}},languages:{plain:ns,plaintext:ns,text:ns,txt:ns,extend:function(e,t){var n=bt.util.clone(bt.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||bt.languages;var a=r[e],i={};for(var o in a)if(a.hasOwnProperty(o)){if(o==t)for(var s in n)n.hasOwnProperty(s)&&(i[s]=n[s]);n.hasOwnProperty(o)||(i[o]=a[o])}var l=r[e];return r[e]=i,bt.languages.DFS(bt.languages,function(u,d){d===l&&u!=e&&(this[u]=i)}),i},DFS:function e(t,n,r,a){a=a||{};var i=bt.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],r||o);var s=t[o],l=bt.util.type(s);l==="Object"&&!a[i(s)]?(a[i(s)]=!0,e(s,n,null,a)):l==="Array"&&!a[i(s)]&&(a[i(s)]=!0,e(s,n,o,a))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(bt.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=bt.tokenize(r.code,r.grammar),bt.hooks.run("after-tokenize",r),Fi.stringify(bt.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new FD;return Ts(a,a.head,e),kS(e,a,t,a.head,0),BD(a)},hooks:{all:{},add:function(e,t){var n=bt.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=bt.hooks.all[e];if(!(!n||!n.length))for(var r=0,a;a=n[r++];)a(t)}},Token:Fi};function Fi(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function hE(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var i=a[1].length;a.index+=i,a[0]=a[0].slice(i)}return a}function kS(e,t,n,r,a,i){for(var o in n)if(!(!n.hasOwnProperty(o)||!n[o])){var s=n[o];s=Array.isArray(s)?s:[s];for(var l=0;l<s.length;++l){if(i&&i.cause==o+","+l)return;var u=s[l],d=u.inside,c=!!u.lookbehind,f=!!u.greedy,m=u.alias;if(f&&!u.pattern.global){var h=u.pattern.toString().match(/[imsuy]*$/)[0];u.pattern=RegExp(u.pattern.source,h+"g")}for(var g=u.pattern||u,b=r.next,E=a;b!==t.tail&&!(i&&E>=i.reach);E+=b.value.length,b=b.next){var T=b.value;if(t.length>e.length)return;if(!(T instanceof Fi)){var v=1,S;if(f){if(S=hE(g,E,e,c),!S||S.index>=e.length)break;var D=S.index,w=S.index+S[0].length,A=E;for(A+=b.value.length;D>=A;)b=b.next,A+=b.value.length;if(A-=b.value.length,E=A,b.value instanceof Fi)continue;for(var _=b;_!==t.tail&&(A<w||typeof _.value=="string");_=_.next)v++,A+=_.value.length;v--,T=e.slice(E,A),S.index-=E}else if(S=hE(g,0,T,c),!S)continue;var D=S.index,I=S[0],O=T.slice(0,D),M=T.slice(D+I.length),P=E+T.length;i&&P>i.reach&&(i.reach=P);var j=b.prev;O&&(j=Ts(t,j,O),E+=O.length),MD(t,j,v);var z=new Fi(o,d?bt.tokenize(I,d):I,m,I);if(b=Ts(t,j,z),M&&Ts(t,b,M),v>1){var W={cause:o+","+l,reach:P};kS(e,t,n,b.prev,E,W),i&&W.reach>i.reach&&(i.reach=W.reach)}}}}}}function FD(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function Ts(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function MD(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}function BD(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}const IS=bt,ni={}.hasOwnProperty;function RS(){}RS.prototype=IS;const C=new RS;C.highlight=UD;C.register=$D;C.alias=jD;C.registered=HD;C.listLanguages=zD;C.util.encode=GD;C.Token.stringify=$c;function UD(e,t){if(typeof e!="string")throw new TypeError("Expected `string` for `value`, got `"+e+"`");let n,r;if(t&&typeof t=="object")n=t;else{if(r=t,typeof r!="string")throw new TypeError("Expected `string` for `name`, got `"+r+"`");if(ni.call(C.languages,r))n=C.languages[r];else throw new Error("Unknown language: `"+r+"` is not registered")}return{type:"root",children:IS.highlight.call(C,e,n,r)}}function $D(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `syntax`, got `"+e+"`");ni.call(C.languages,e.displayName)||e(C)}function jD(e,t){const n=C.languages;let r={};typeof e=="string"?t&&(r[e]=t):r=e;let a;for(a in r)if(ni.call(r,a)){const i=r[a],o=typeof i=="string"?[i]:i;let s=-1;for(;++s<o.length;)n[o[s]]=n[a]}}function HD(e){if(typeof e!="string")throw new TypeError("Expected `string` for `aliasOrLanguage`, got `"+e+"`");return ni.call(C.languages,e)}function zD(){const e=C.languages,t=[];let n;for(n in e)ni.call(e,n)&&typeof e[n]=="object"&&t.push(n);return t}function $c(e,t){if(typeof e=="string")return{type:"text",value:e};if(Array.isArray(e)){const r=[];let a=-1;for(;++a<e.length;)e[a]!==""&&e[a]!==null&&e[a]!==void 0&&r.push($c(e[a],t));return r}const n={type:e.type,content:$c(e.content,t),tag:"span",classes:["token",e.type],attributes:{},language:t};return e.alias&&n.classes.push(...typeof e.alias=="string"?[e.alias]:e.alias),C.hooks.run("wrap",n),ND(n.tag+"."+n.classes.join("."),VD(n.attributes),n.content)}function GD(e){return e}function VD(e){let t;for(t in e)ni.call(e,t)&&(e[t]=OD(e[t]));return e}C.register(Oe);C.register(Sn);C.register(Qr);C.register(ml);C.register(Eo);C.register(Jr);C.register(Tt);C.register(xr);C.register(hl);C.register(gl);C.register(bl);C.register(ea);C.register(El);C.register(wt);C.register(Za);C.register(yl);C.register(xl);C.register(yo);C.register(Tl);C.register(xo);C.register(vl);C.register(Sl);C.register(Al);C.register(_t);C.register(ta);C.register(To);C.register(wl);C.register(na);C.register(_l);C.register(Nl);C.register(Cl);C.register(Qa);C.register(kl);C.register(Ja);C.register(vo);C.register(So);Sp.displayName="abap";Sp.aliases=[];function Sp(e){e.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}Ap.displayName="abnf";Ap.aliases=[];function Ap(e){(function(t){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";t.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(e)}wp.displayName="actionscript";wp.aliases=[];function wp(e){e.register(wt),e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}_p.displayName="ada";_p.aliases=[];function _p(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|or|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}Np.displayName="agda";Np.aliases=[];function Np(e){(function(t){t.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(e)}Cp.displayName="al";Cp.aliases=[];function Cp(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}kp.displayName="antlr4";kp.aliases=["g4"];function kp(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}Ip.displayName="apacheconf";Ip.aliases=[];function Ip(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}Rp.displayName="apex";Rp.aliases=[];function Rp(e){e.register(Oe),e.register(Qa),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return n.source});function a(o){return RegExp(o.replace(/<CLASS-NAME>/g,function(){return r}),"i")}var i={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:a(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:i},{pattern:a(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:i},{pattern:a(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:i}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}Op.displayName="apl";Op.aliases=[];function Op(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}Dp.displayName="applescript";Dp.aliases=[];function Dp(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}Lp.displayName="aql";Lp.aliases=[];function Lp(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}Pp.displayName="arff";Pp.aliases=[];function Pp(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}Fp.displayName="armasm";Fp.aliases=["arm-asm"];function Fp(e){e.languages.armasm={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"/,greedy:!0,inside:{variable:{pattern:/((?:^|[^$])(?:\${2})*)\$\w+/,lookbehind:!0}}},char:{pattern:/'(?:[^'\r\n]{0,4}|'')'/,greedy:!0},"version-symbol":{pattern:/\|[\w@]+\|/,greedy:!0,alias:"property"},boolean:/\b(?:FALSE|TRUE)\b/,directive:{pattern:/\b(?:ALIAS|ALIGN|AREA|ARM|ASSERT|ATTR|CN|CODE|CODE16|CODE32|COMMON|CP|DATA|DCB|DCD|DCDO|DCDU|DCFD|DCFDU|DCI|DCQ|DCQU|DCW|DCWU|DN|ELIF|ELSE|END|ENDFUNC|ENDIF|ENDP|ENTRY|EQU|EXPORT|EXPORTAS|EXTERN|FIELD|FILL|FN|FUNCTION|GBLA|GBLL|GBLS|GET|GLOBAL|IF|IMPORT|INCBIN|INCLUDE|INFO|KEEP|LCLA|LCLL|LCLS|LTORG|MACRO|MAP|MEND|MEXIT|NOFP|OPT|PRESERVE8|PROC|QN|READONLY|RELOC|REQUIRE|REQUIRE8|RLIST|ROUT|SETA|SETL|SETS|SN|SPACE|SUBT|THUMB|THUMBX|TTL|WEND|WHILE)\b/,alias:"property"},instruction:{pattern:/((?:^|(?:^|[^\\])(?:\r\n?|\n))[ \t]*(?:(?:[A-Z][A-Z0-9_]*[a-z]\w*|[a-z]\w*|\d+)[ \t]+)?)\b[A-Z.]+\b/,lookbehind:!0,alias:"keyword"},variable:/\$\w+/,number:/(?:\b[2-9]_\d+|(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e-?\d+)?|\b0(?:[fd]_|x)[0-9a-f]+|&[0-9a-f]+)\b/i,register:{pattern:/\b(?:r\d|lr)\b/,alias:"symbol"},operator:/<>|<<|>>|&&|\|\||[=!<>/]=?|[+\-*%#?&|^]|:[A-Z]+:/,punctuation:/[()[\],]/},e.languages["arm-asm"]=e.languages.armasm}Mp.displayName="arturo";Mp.aliases=["art"];function Mp(e){(function(t){var n=function(r,a){return{pattern:RegExp(/\{!/.source+"(?:"+(a||r)+")"+/$[\s\S]*\}/.source,"m"),greedy:!0,inside:{embedded:{pattern:/(^\{!\w+\b)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-"+r,inside:t.languages[r]},string:/[\s\S]+/}}};t.languages.arturo={comment:{pattern:/;.*/,greedy:!0},character:{pattern:/`.`/,alias:"char",greedy:!0},number:{pattern:/\b\d+(?:\.\d+(?:\.\d+(?:-[\w+-]+)?)?)?\b/},string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},regex:{pattern:/\{\/.*?\/\}/,greedy:!0},"html-string":n("html"),"css-string":n("css"),"js-string":n("js"),"md-string":n("md"),"sql-string":n("sql"),"sh-string":n("shell","sh"),multistring:{pattern:/».*|\{:[\s\S]*?:\}|\{[\s\S]*?\}|^-{6}$[\s\S]*/m,alias:"string",greedy:!0},label:{pattern:/\w+\b\??:/,alias:"property"},literal:{pattern:/'(?:\w+\b\??:?)/,alias:"constant"},type:{pattern:/:(?:\w+\b\??:?)/,alias:"class-name"},color:/#\w+/,predicate:{pattern:/\b(?:all|and|any|ascii|attr|attribute|attributeLabel|binary|block|char|contains|database|date|dictionary|empty|equal|even|every|exists|false|floating|function|greater|greaterOrEqual|if|in|inline|integer|is|key|label|leap|less|lessOrEqual|literal|logical|lower|nand|negative|nor|not|notEqual|null|numeric|odd|or|path|pathLabel|positive|prefix|prime|regex|same|set|some|sorted|standalone|string|subset|suffix|superset|symbol|symbolLiteral|true|try|type|unless|upper|when|whitespace|word|xnor|xor|zero)\?/,alias:"keyword"},"builtin-function":{pattern:/\b(?:abs|acos|acosh|acsec|acsech|actan|actanh|add|after|alert|alias|and|angle|append|arg|args|arity|array|as|asec|asech|asin|asinh|atan|atan2|atanh|attr|attrs|average|before|benchmark|blend|break|call|capitalize|case|ceil|chop|clear|clip|close|color|combine|conj|continue|copy|cos|cosh|crc|csec|csech|ctan|ctanh|cursor|darken|dec|decode|define|delete|desaturate|deviation|dialog|dictionary|difference|digest|digits|div|do|download|drop|dup|e|else|empty|encode|ensure|env|escape|execute|exit|exp|extend|extract|factors|fdiv|filter|first|flatten|floor|fold|from|function|gamma|gcd|get|goto|hash|hypot|if|inc|indent|index|infinity|info|input|insert|inspect|intersection|invert|jaro|join|keys|kurtosis|last|let|levenshtein|lighten|list|ln|log|loop|lower|mail|map|match|max|median|min|mod|module|mul|nand|neg|new|nor|normalize|not|now|null|open|or|outdent|pad|palette|panic|path|pause|permissions|permutate|pi|pop|popup|pow|powerset|powmod|prefix|print|prints|process|product|query|random|range|read|relative|remove|rename|render|repeat|replace|request|return|reverse|round|sample|saturate|script|sec|sech|select|serve|set|shl|shr|shuffle|sin|sinh|size|skewness|slice|sort|spin|split|sqrt|squeeze|stack|strip|sub|suffix|sum|switch|symbols|symlink|sys|take|tan|tanh|terminal|terminate|to|truncate|try|type|unclip|union|unique|unless|until|unzip|upper|values|var|variance|volume|webview|while|with|wordwrap|write|xnor|xor|zip)\b/,alias:"keyword"},sugar:{pattern:/->|=>|\||::/,alias:"operator"},punctuation:/[()[\],]/,symbol:{pattern:/<:|-:|ø|@|#|\+|\||\*|\$|---|-|%|\/|\.\.|\^|~|=|<|>|\\/},boolean:{pattern:/\b(?:false|maybe|true)\b/}},t.languages.art=t.languages.arturo})(e)}Bp.displayName="asciidoc";Bp.aliases=["adoc"];function Bp(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function a(i){i=i.split(" ");for(var o={},s=0,l=i.length;s<l;s++)o[i[s]]=r[i[s]];return o}n.inside.interpreted.inside.rest=a("macro inline replacement entity"),r["passthrough-block"].inside.rest=a("macro"),r["literal-block"].inside.rest=a("callout"),r.table.inside.rest=a("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),r["other-block"].inside.rest=a("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),r.title.inside.rest=a("macro inline replacement entity"),t.hooks.add("wrap",function(i){i.type==="entity"&&(i.attributes.title=i.content.value.replace(/&/,"&"))}),t.languages.adoc=t.languages.asciidoc})(e)}Up.displayName="aspnet";Up.aliases=[];function Up(e){e.register(Jr),e.register(Tt),e.languages.aspnet=e.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}$p.displayName="asm6502";$p.aliases=[];function $p(e){e.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}jp.displayName="asmatmel";jp.aliases=[];function jp(e){e.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&[&=]?|\|[\|=]?|[-+*/%^!=<>?]=?/,punctuation:/[(),:]/}}Hp.displayName="autohotkey";Hp.aliases=[];function Hp(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,command:{pattern:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,alias:"selector"},constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,directive:{pattern:/#[a-z]+\b/i,alias:"important"},keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}zp.displayName="autoit";zp.aliases=[];function zp(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}Gp.displayName="avisynth";Gp.aliases=["avs"];function Gp(e){(function(t){function n(u,d){return u.replace(/<<(\d+)>>/g,function(c,f){return d[+f]})}function r(u,d,c){return RegExp(n(u,d),c)}var a=/bool|clip|float|int|string|val/.source,i=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),o=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),s=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),l=[i,o,s].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[a],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[l],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[a],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}Vp.displayName="avro-idl";Vp.aliases=["avdl"];function Vp(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}Wp.displayName="awk";Wp.aliases=["gawk"];function Wp(e){e.languages.awk={hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\\"\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},regex:{pattern:/((?:^|[^\w\s)])\s*)\/(?:[^\/\\\r\n]|\\.)*\//,lookbehind:!0,greedy:!0},variable:/\$\w+/,keyword:/\b(?:BEGIN|BEGINFILE|END|ENDFILE|break|case|continue|default|delete|do|else|exit|for|function|getline|if|in|next|nextfile|printf?|return|switch|while)\b|@(?:include|load)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[a-fA-F0-9]+)\b/,operator:/--|\+\+|!?~|>&|>>|<<|(?:\*\*|[<>!=+\-*/%^])=?|&&|\|[|&]|[?:]/,punctuation:/[()[\]{},;]/},e.languages.gawk=e.languages.awk}qp.displayName="batch";qp.aliases=[];function qp(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},a=/"(?:[\\"]"|[^"])*"(?!")/,i=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:a,parameter:r,variable:n,number:i,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:a,parameter:r,variable:n,number:i,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:a,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:i,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:a,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:i,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}Yp.displayName="bbcode";Yp.aliases=["shortcode"];function Yp(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}Kp.displayName="bbj";Kp.aliases=[];function Kp(e){(function(t){t.languages.bbj={comment:{pattern:/(^|[^\\:])rem\s+.*/i,lookbehind:!0,greedy:!0},string:{pattern:/(['"])(?:(?!\1|\\).|\\.)*\1/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:abstract|all|argc|begin|bye|callback|case|chn|class|classend|ctl|day|declare|delete|dim|dom|dread|dsz|else|end|endif|err|exitto|extends|fi|field|for|from|gosub|goto|if|implements|interface|interfaceend|iol|iolist|let|list|load|method|methodend|methodret|on|opts|pfx|print|private|process_events|protected|psz|public|read|read_resource|release|remove_callback|repeat|restore|return|rev|seterr|setesc|sqlchn|sqlunt|ssn|start|static|swend|switch|sys|then|tim|unt|until|use|void|wend|where|while)\b/i,function:/\b\w+(?=\()/,boolean:/\b(?:BBjAPI\.TRUE|BBjAPI\.FALSE)\b/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:and|not|or|xor)\b/i,punctuation:/[.,;:()]/}})(e)}Xp.displayName="bicep";Xp.aliases=[];function Xp(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}Zp.displayName="birb";Zp.aliases=[];function Zp(e){e.register(Oe),e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}Qp.displayName="bison";Qp.aliases=[];function Qp(e){e.register(Sn),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}Jp.displayName="bnf";Jp.aliases=["rbnf"];function Jp(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}ef.displayName="bqn";ef.aliases=[];function ef(e){e.languages.bqn={shebang:{pattern:/^#![ \t]*\/.*/,alias:"important",greedy:!0},comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/"(?:[^"]|"")*"/,greedy:!0,alias:"string"},"character-literal":{pattern:/'(?:[\s\S]|[\uD800-\uDBFF][\uDC00-\uDFFF])'/,greedy:!0,alias:"char"},function:/•[\w¯.∞π]+[\w¯.∞π]*/,"dot-notation-on-brackets":{pattern:/\{(?=.*\}\.)|\}\./,alias:"namespace"},"special-name":{pattern:/(?:𝕨|𝕩|𝕗|𝕘|𝕤|𝕣|𝕎|𝕏|𝔽|𝔾|𝕊|_𝕣_|_𝕣)/,alias:"keyword"},"dot-notation-on-name":{pattern:/[A-Za-z_][\w¯∞π]*\./,alias:"namespace"},"word-number-scientific":{pattern:/\d+(?:\.\d+)?[eE]¯?\d+/,alias:"number"},"word-name":{pattern:/[A-Za-z_][\w¯∞π]*/,alias:"symbol"},"word-number":{pattern:/[¯∞π]?(?:\d*\.?\b\d+(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+|E[+¯]?\d+)?|¯|∞|π))?/,alias:"number"},"null-literal":{pattern:/@/,alias:"char"},"primitive-functions":{pattern:/[-+×÷⋆√⌊⌈|¬∧∨<>≠=≤≥≡≢⊣⊢⥊∾≍⋈↑↓↕«»⌽⍉/⍋⍒⊏⊑⊐⊒∊⍷⊔!]/,alias:"operator"},"primitive-1-operators":{pattern:/[`˜˘¨⁼⌜´˝˙]/,alias:"operator"},"primitive-2-operators":{pattern:/[∘⊸⟜○⌾⎉⚇⍟⊘◶⎊]/,alias:"operator"},punctuation:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}tf.displayName="brainfuck";tf.aliases=[];function tf(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}nf.displayName="brightscript";nf.aliases=[];function nf(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}rf.displayName="bro";rf.aliases=[];function rf(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}af.displayName="bsl";af.aliases=["oscript"];function af(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}of.displayName="cfscript";of.aliases=["cfc"];function of(e){e.register(Oe),e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|:/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}sf.displayName="chaiscript";sf.aliases=[];function sf(e){e.register(Oe),e.register(Qr),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}lf.displayName="cil";lf.aliases=[];function lf(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}uf.displayName="cilkc";uf.aliases=["cilk-c"];function uf(e){e.register(Sn),e.languages.cilkc=e.languages.insertBefore("c","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-c"]=e.languages.cilkc}cf.displayName="cilkcpp";cf.aliases=["cilk","cilk-cpp"];function cf(e){e.register(Qr),e.languages.cilkcpp=e.languages.insertBefore("cpp","function",{"parallel-keyword":{pattern:/\bcilk_(?:for|reducer|s(?:cope|pawn|ync))\b/,alias:"keyword"}}),e.languages["cilk-cpp"]=e.languages.cilkcpp,e.languages.cilk=e.languages.cilkcpp}df.displayName="clojure";df.aliases=[];function df(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}pf.displayName="cmake";pf.aliases=[];function pf(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_NAME|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}ff.displayName="cobol";ff.aliases=[];function ff(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}mf.displayName="coffeescript";mf.aliases=["coffee"];function mf(e){e.register(wt),function(t){var n=/#(?!\{).+/,r={pattern:/#\{[^}]+\}/,alias:"variable"};t.languages.coffeescript=t.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:r}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),t.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:r}}}),t.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:t.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:r}}]}),t.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete t.languages.coffeescript["template-string"],t.languages.coffee=t.languages.coffeescript}(e)}hf.displayName="concurnas";hf.aliases=["conc"];function hf(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}gf.displayName="csp";gf.aliases=[];function gf(e){(function(t){function n(r){return RegExp(/([ \t])/.source+"(?:"+r+")"+/(?=[\s;]|$)/.source,"i")}t.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:n(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:n(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:n(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:n(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:n(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:n(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:n(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(e)}bf.displayName="cooklang";bf.aliases=[];function bf(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,a=/\{[^}#@]*\}/.source,i=r+a,o=/(?:h|hours|hrs|m|min|minutes)/.source,s={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+i+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+i+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":s}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+o+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}Ef.displayName="coq";Ef.aliases=[];function Ef(e){(function(t){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,r=0;r<2;r++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,"[]"),t.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(e)}yf.displayName="crystal";yf.aliases=[];function yf(e){e.register(na),function(t){t.languages.crystal=t.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,t.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),t.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:t.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(e)}xf.displayName="css-extras";xf.aliases=[];function xf(e){e.register(xr),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var a={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},i={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:a,number:i,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:a,number:i})}(e)}Tf.displayName="csv";Tf.aliases=[];function Tf(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}vf.displayName="cue";vf.aliases=[];function vf(e){(function(t){var n=/\\(?:(?!\2)|\2(?:[^()\r\n]|\([^()]*\)))/.source,r=/"""(?:[^\\"]|"(?!""\2)|<esc>)*"""/.source+"|"+/'''(?:[^\\']|'(?!''\2)|<esc>)*'''/.source+"|"+/"(?:[^\\\r\n"]|"(?!\2)|<esc>)*"/.source+"|"+/'(?:[^\\\r\n']|'(?!\2)|<esc>)*'/.source,a="(?:"+r.replace(/<esc>/g,n)+")";t.languages.cue={comment:{pattern:/\/\/.*/,greedy:!0},"string-literal":{pattern:RegExp(/(^|[^#"'\\])(#*)/.source+a+/(?!["'])\2/.source),lookbehind:!0,greedy:!0,inside:{escape:{pattern:/(?=[\s\S]*["'](#*)$)\\\1(?:U[a-fA-F0-9]{1,8}|u[a-fA-F0-9]{1,4}|x[a-fA-F0-9]{1,2}|\d{2,3}|[^(])/,greedy:!0,alias:"string"},interpolation:{pattern:/(?=[\s\S]*["'](#*)$)\\\1\([^()]*\)/,greedy:!0,inside:{punctuation:/^\\#*\(|\)$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:{pattern:/(^|[^\w$])(?:for|if|import|in|let|null|package)(?![\w$])/,lookbehind:!0},boolean:{pattern:/(^|[^\w$])(?:false|true)(?![\w$])/,lookbehind:!0},builtin:{pattern:/(^|[^\w$])(?:bool|bytes|float|float(?:32|64)|u?int(?:8|16|32|64|128)?|number|rune|string)(?![\w$])/,lookbehind:!0},attribute:{pattern:/@[\w$]+(?=\s*\()/,alias:"function"},function:{pattern:/(^|[^\w$])[a-z_$][\w$]*(?=\s*\()/i,lookbehind:!0},number:{pattern:/(^|[^\w$.])(?:0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|0[xX][0-9A-Fa-f]+(?:_[0-9A-Fa-f]+)*|(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[eE][+-]?\d+(?:_\d+)*)?(?:[KMGTP]i?)?)(?![\w$])/,lookbehind:!0},operator:/\.{3}|_\|_|&&?|\|\|?|[=!]~|[<>=!]=?|[+\-*/?]/,punctuation:/[()[\]{},.:]/},t.languages.cue["string-literal"].inside.interpolation.inside.expression.inside=t.languages.cue})(e)}Sf.displayName="cypher";Sf.aliases=[];function Sf(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}Af.displayName="d";Af.aliases=[];function Af(e){e.register(Oe),e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}wf.displayName="dart";wf.aliases=[];function wf(e){e.register(Oe),function(t){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,a={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};t.languages.dart=t.languages.extend("clike",{"class-name":[a,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:a.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),t.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.dart}}},string:/[\s\S]+/}},string:void 0}),t.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),t.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":a,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(e)}_f.displayName="dataweave";_f.aliases=[];function _f(e){(function(t){t.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(e)}Nf.displayName="dax";Nf.aliases=[];function Nf(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}Cf.displayName="dhall";Cf.aliases=[];function Cf(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}kf.displayName="django";kf.aliases=["jinja2"];function kf(e){e.register(_t),function(t){t.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var n=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,r=t.languages["markup-templating"];t.hooks.add("before-tokenize",function(a){r.buildPlaceholders(a,"django",n)}),t.hooks.add("after-tokenize",function(a){r.tokenizePlaceholders(a,"django")}),t.languages.jinja2=t.languages.django,t.hooks.add("before-tokenize",function(a){r.buildPlaceholders(a,"jinja2",n)}),t.hooks.add("after-tokenize",function(a){r.tokenizePlaceholders(a,"jinja2")})}(e)}If.displayName="dns-zone-file";If.aliases=["dns-zone"];function If(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}Rf.displayName="docker";Rf.aliases=["dockerfile"];function Rf(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return n}),a=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,i=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return a}),o={pattern:RegExp(a),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(u,d){return u=u.replace(/<OPT>/g,function(){return i}).replace(/<SP>/g,function(){return r}),RegExp(u,d)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:l(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:l(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:s,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},t.languages.dockerfile=t.languages.docker})(e)}Of.displayName="dot";Of.aliases=["gv"];function Of(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function a(i,o){return RegExp(i.replace(/<ID>/g,function(){return n}),o)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:a(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:a(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:a(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:a(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}Df.displayName="ebnf";Df.aliases=[];function Df(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}Lf.displayName="editorconfig";Lf.aliases=[];function Lf(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}Pf.displayName="eiffel";Pf.aliases=[];function Pf(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}Ff.displayName="ejs";Ff.aliases=["eta"];function Ff(e){e.register(wt),e.register(_t),function(t){t.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:t.languages.javascript}},t.hooks.add("before-tokenize",function(n){var r=/<%(?!%)[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"ejs",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"ejs")}),t.languages.eta=t.languages.ejs}(e)}Mf.displayName="elixir";Mf.aliases=[];function Mf(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}Bf.displayName="elm";Bf.aliases=[];function Bf(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}Uf.displayName="etlua";Uf.aliases=[];function Uf(e){e.register(yo),e.register(_t),function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}(e)}$f.displayName="erb";$f.aliases=[];function $f(e){e.register(_t),e.register(na),function(t){t.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:t.languages.ruby}},t.hooks.add("before-tokenize",function(n){var r=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"erb",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"erb")})}(e)}jf.displayName="erlang";jf.aliases=[];function jf(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|begin|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}Hf.displayName="excel-formula";Hf.aliases=["xls","xlsx"];function Hf(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"builtin"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"selector",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"selector"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}zf.displayName="fsharp";zf.aliases=[];function zf(e){e.register(Oe),e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}Gf.displayName="factor";Gf.aliases=[];function Gf(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},a={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},i=function(u){return(u+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},o=function(u){return new RegExp("(^|\\s)(?:"+u.map(i).join("|")+")(?=\\s|$)")},s={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(s).forEach(function(u){a[u].pattern=o(s[u])});var l=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];a.combinators.pattern=o(l),t.languages.factor=a})(e)}Vf.displayName="false";Vf.aliases=[];function Vf(e){(function(t){t.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(e)}Wf.displayName="firestore-security-rules";Wf.aliases=[];function Wf(e){e.register(Oe),e.languages["firestore-security-rules"]=e.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}qf.displayName="flow";qf.aliases=[];function qf(e){e.register(wt),function(t){t.languages.flow=t.languages.extend("javascript",{}),t.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),t.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete t.languages.flow.parameter,t.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(t.languages.flow.keyword)||(t.languages.flow.keyword=[t.languages.flow.keyword]),t.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(e)}Yf.displayName="fortran";Yf.aliases=[];function Yf(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}Kf.displayName="ftl";Kf.aliases=[];function Kf(e){e.register(_t),function(t){for(var n=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(/<expr>/g,function(){return n});n=n.replace(/<expr>/g,/[^\s\S]/.source);var a={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};a.string[1].inside.interpolation.inside.rest=a,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:a}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:a}}}},t.hooks.add("before-tokenize",function(i){var o=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(i,"ftl",o)}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"ftl")})}(e)}Xf.displayName="gml";Xf.aliases=["gamemakerlanguage"];function Xf(e){e.register(Oe),e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}Zf.displayName="gap";Zf.aliases=[];function Zf(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}Qf.displayName="gcode";Qf.aliases=[];function Qf(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}Jf.displayName="gdscript";Jf.aliases=[];function Jf(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}em.displayName="gedcom";em.aliases=[];function em(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},record:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"tag"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}tm.displayName="gettext";tm.aliases=["po"];function tm(e){e.languages.gettext={comment:[{pattern:/# .*/,greedy:!0,alias:"translator-comment"},{pattern:/#\..*/,greedy:!0,alias:"extracted-comment"},{pattern:/#:.*/,greedy:!0,alias:"reference-comment"},{pattern:/#,.*/,greedy:!0,alias:"flag-comment"},{pattern:/#\|.*/,greedy:!0,alias:"previously-untranslated-comment"},{pattern:/#.*/,greedy:!0}],string:{pattern:/(^|[^\\])"(?:[^"\\]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/^msg(?:ctxt|id|id_plural|str)\b/m,number:/\b\d+\b/,punctuation:/[\[\]]/},e.languages.po=e.languages.gettext}nm.displayName="gherkin";nm.aliases=[];function nm(e){(function(t){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;t.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(e)}rm.displayName="git";rm.aliases=[];function rm(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}am.displayName="glsl";am.aliases=[];function am(e){e.register(Sn),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}im.displayName="gn";im.aliases=["gni"];function im(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}om.displayName="linker-script";om.aliases=["ld"];function om(e){e.languages["linker-script"]={comment:{pattern:/(^|\s)\/\*[\s\S]*?(?:$|\*\/)/,lookbehind:!0,greedy:!0},identifier:{pattern:/"[^"\r\n]*"/,greedy:!0},"location-counter":{pattern:/\B\.\B/,alias:"important"},section:{pattern:/(^|[^\w*])\.\w+\b/,lookbehind:!0,alias:"keyword"},function:/\b[A-Z][A-Z_]*(?=\s*\()/,number:/\b(?:0[xX][a-fA-F0-9]+|\d+)[KM]?\b/,operator:/>>=?|<<=?|->|\+\+|--|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?/,punctuation:/[(){},;]/},e.languages.ld=e.languages["linker-script"]}sm.displayName="go-module";sm.aliases=["go-mod"];function sm(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}lm.displayName="gradle";lm.aliases=[];function lm(e){e.register(Oe),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.gradle=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:apply|def|dependencies|else|if|implementation|import|plugin|plugins|project|repositories|repository|sourceSets|tasks|val)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("gradle","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("gradle","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("gradle","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.gradle}(e)}um.displayName="graphql";um.aliases=[];function um(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(b){return typeof b!="string"&&b.type!=="comment"&&b.type!=="scalar"}),a=0;function i(b){return r[a+b]}function o(b,E){E=E||0;for(var T=0;T<b.length;T++){var v=i(T+E);if(!v||v.type!==b[T])return!1}return!0}function s(b,E){for(var T=1,v=a;v<r.length;v++){var S=r[v],w=S.content;if(S.type==="punctuation"&&typeof w=="string"){if(b.test(w))T++;else if(E.test(w)&&(T--,T===0))return v}}return-1}function l(b,E){var T=b.alias;T?Array.isArray(T)||(b.alias=T=[T]):b.alias=T=[],T.push(E)}for(;a<r.length;){var u=r[a++];if(u.type==="keyword"&&u.content==="mutation"){var d=[];if(o(["definition-mutation","punctuation"])&&i(1).content==="("){a+=2;var c=s(/^\($/,/^\)$/);if(c===-1)continue;for(;a<c;a++){var f=i(0);f.type==="variable"&&(l(f,"variable-input"),d.push(f.content))}a=c+1}if(o(["punctuation","property-query"])&&i(0).content==="{"&&(a++,l(i(0),"property-mutation"),d.length>0)){var m=s(/^\{$/,/^\}$/);if(m===-1)continue;for(var h=a;h<m;h++){var g=r[h];g.type==="variable"&&d.indexOf(g.content)>=0&&l(g,"variable-input")}}}}})}cm.displayName="groovy";cm.aliases=[];function cm(e){e.register(Oe),function(t){var n={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};t.languages.groovy=t.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),n.inside.expression.inside=t.languages.groovy}(e)}dm.displayName="textile";dm.aliases=[];function dm(e){e.register(Tt),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function a(c,f){return RegExp(c.replace(/<MOD>/g,function(){return"(?:"+n+")"}).replace(/<PAR>/g,function(){return"(?:"+r+")"}),f||"")}var i={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},o=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:a(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:a(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:i},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:a(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:a(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:i},punctuation:/^[*#]+/}},table:{pattern:a(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:a(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:i},punctuation:/\||^\./}},inline:{pattern:a(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:a(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:a(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:a(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:a(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:a(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:a(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:a(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:a(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:i},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:a(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:a(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:a(/(^")<MOD>+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:a(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:a(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:a(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:i},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),s=o.phrase.inside,l={inline:s.inline,link:s.link,image:s.image,footnote:s.footnote,acronym:s.acronym,mark:s.mark};o.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=s.inline.inside;u.bold.inside=l,u.italic.inside=l,u.inserted.inside=l,u.deleted.inside=l,u.span.inside=l;var d=s.table.inside;d.inline=l.inline,d.link=l.link,d.image=l.image,d.footnote=l.footnote,d.acronym=l.acronym,d.mark=l.mark}(e)}pm.displayName="haml";pm.aliases=[];function pm(e){e.register(na),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],a={},i=0,o=r.length;i<o;i++){var s=r[i];s=typeof s=="string"?{filter:s,language:s}:s,t.languages[s.language]&&(a["filter-"+s.filter]={pattern:RegExp(n.replace("{{filter_name}}",function(){return s.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("haml","filter",a)}(e)}fm.displayName="handlebars";fm.aliases=["hbs","mustache"];function fm(e){e.register(_t),function(t){t.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}wo.displayName="haskell";wo.aliases=["hs"];function wo(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}mm.displayName="haxe";mm.aliases=[];function mm(e){e.register(Oe),e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}hm.displayName="hcl";hm.aliases=[];function hm(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}gm.displayName="hlsl";gm.aliases=[];function gm(e){e.register(Sn),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}bm.displayName="hoon";bm.aliases=[];function bm(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}Em.displayName="hpkp";Em.aliases=[];function Em(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}ym.displayName="hsts";ym.aliases=[];function ym(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}xm.displayName="uri";xm.aliases=["url"];function xm(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}Tm.displayName="http";Tm.aliases=[];function Tm(e){(function(t){function n(d){return RegExp("(^(?:"+d+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,a={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},i={"application/json":!0,"application/xml":!0};function o(d){var c=d.replace(/^[a-z]+\//,""),f="\\w+/(?:[\\w.-]+\\+)+"+c+"(?![+\\w.-])";return"(?:"+d+"|"+f+")"}var s;for(var l in a)if(a[l]){s=s||{};var u=i[l]?o(l):l;s[l.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+u+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:a[l]}}s&&t.languages.insertBefore("http","header",s)})(e)}vm.displayName="ichigojam";vm.aliases=[];function vm(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}Sm.displayName="icon";Sm.aliases=[];function Sm(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}Am.displayName="icu-message-format";Am.aliases=[];function Am(e){(function(t){function n(l,u){return u<=0?/[]/.source:l.replace(/<SELF>/g,function(){return n(l,u-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,a={pattern:/''/,greedy:!0,alias:"operator"},i={pattern:r,greedy:!0,inside:{escape:a}},o=n(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return r.source}),8),s={pattern:RegExp(o),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(o),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":s,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":s,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:a,string:i},s.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}wm.displayName="idris";wm.aliases=["idr"];function wm(e){e.register(wo),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}_m.displayName="ignore";_m.aliases=["gitignore","hgignore","npmignore"];function _m(e){(function(t){t.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},t.languages.gitignore=t.languages.ignore,t.languages.hgignore=t.languages.ignore,t.languages.npmignore=t.languages.ignore})(e)}Nm.displayName="inform7";Nm.aliases=[];function Nm(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}Cm.displayName="io";Cm.aliases=[];function Cm(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}km.displayName="j";km.aliases=[];function km(e){e.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}ri.displayName="javadoclike";ri.aliases=[];function ri(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(i,o){var s="doc-comment",l=t.languages[i];if(l){var u=l[s];if(!u){var d={};d[s]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(i,"comment",d),u=l[s]}if(u instanceof RegExp&&(u=l[s]={pattern:u}),Array.isArray(u))for(var c=0,f=u.length;c<f;c++)u[c]instanceof RegExp&&(u[c]={pattern:u[c]}),o(u[c]);else o(u)}}function a(i,o){typeof i=="string"&&(i=[i]),i.forEach(function(s){r(s,function(l){l.inside||(l.inside={}),l.inside.rest=o})})}Object.defineProperty(n,"addSupport",{value:a}),n.addSupport(["java","javascript","php"],n)})(e)}Im.displayName="scala";Im.aliases=[];function Im(e){e.register(ea),e.languages.scala=e.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}Rm.displayName="javadoc";Rm.aliases=[];function Rm(e){e.register(ea),e.register(ri),e.register(Tt),function(t){var n=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,r=/#\s*\w+(?:\s*\([^()]*\))?/.source,a=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return r});t.languages.javadoc=t.languages.extend("javadoclike",{}),t.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+a+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:t.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:n,lookbehind:!0,inside:t.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:n,lookbehind:!0,inside:{tag:t.languages.markup.tag,entity:t.languages.markup.entity,code:{pattern:/.+/,inside:t.languages.java,alias:"language-java"}}}}}],tag:t.languages.markup.tag,entity:t.languages.markup.entity}),t.languages.javadoclike.addSupport("java",t.languages.javadoc)}(e)}Om.displayName="javastacktrace";Om.aliases=[];function Om(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}Dm.displayName="jexl";Dm.aliases=[];function Dm(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}Lm.displayName="jolie";Lm.aliases=[];function Lm(e){e.register(Oe),e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}Pm.displayName="jq";Pm.aliases=[];function Pm(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),a={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},i=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:a},string:{pattern:r,lookbehind:!0,greedy:!0,inside:a},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};a.interpolation.inside.content.inside=i})(e)}Fm.displayName="js-templates";Fm.aliases=[];function Fm(e){e.register(wt),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,a=n.inside.interpolation,i=a.inside["interpolation-punctuation"],o=a.pattern.source;function s(h,g){if(t.languages[h])return{pattern:RegExp("((?:"+g+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:h}}}}t.languages.javascript["template-string"]=[s("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),s("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),s("svg",/\bsvg/.source),s("markdown",/\b(?:markdown|md)/.source),s("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),s("sql",/\bsql/.source),n].filter(Boolean);function l(h,g){return"___"+g.toUpperCase()+"_"+h+"___"}function u(h,g,b){var E={code:h,grammar:g,language:b};return t.hooks.run("before-tokenize",E),E.tokens=t.tokenize(E.code,E.grammar),t.hooks.run("after-tokenize",E),E.tokens}function d(h){var g={};g["interpolation-punctuation"]=i;var b=t.tokenize(h,g);if(b.length===3){var E=[1,1];E.push.apply(E,u(b[1],t.languages.javascript,"javascript")),b.splice.apply(b,E)}return new t.Token("interpolation",b,a.alias,h)}function c(h,g,b){var E=t.tokenize(h,{interpolation:{pattern:RegExp(o),lookbehind:!0}}),T=0,v={},S=E.map(function(D){if(typeof D=="string")return D;for(var I=D.content,O;h.indexOf(O=l(T++,b))!==-1;);return v[O]=I,O}).join(""),w=u(S,g,b),A=Object.keys(v);T=0;function _(D){for(var I=0;I<D.length;I++){if(T>=A.length)return;var O=D[I];if(typeof O=="string"||typeof O.content=="string"){var M=A[T],P=typeof O=="string"?O:O.content,j=P.indexOf(M);if(j!==-1){++T;var z=P.substring(0,j),W=d(v[M]),H=P.substring(j+M.length),X=[];if(z&&X.push(z),X.push(W),H){var Z=[H];_(Z),X.push.apply(X,Z)}typeof O=="string"?(D.splice.apply(D,[I,1].concat(X)),I+=X.length-1):O.content=X}}else{var G=O.content;Array.isArray(G)?_(G):_([G])}}}return _(w),new t.Token(b,w,"language-"+b,h)}var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(h){if(!(h.language in f))return;function g(b){for(var E=0,T=b.length;E<T;E++){var v=b[E];if(typeof v!="string"){var S=v.content;if(!Array.isArray(S)){typeof S!="string"&&g([S]);continue}if(v.type==="template-string"){var w=S[1];if(S.length===3&&typeof w!="string"&&w.type==="embedded-code"){var A=m(w),_=w.alias,D=Array.isArray(_)?_[0]:_,I=t.languages[D];if(!I)continue;S[1]=c(A,I,D)}}else g(S)}}}g(h.tokens)});function m(h){return typeof h=="string"?h:Array.isArray(h)?h.map(m).join(""):m(h.content)}}(e)}Mm.displayName="jsdoc";Mm.aliases=[];function Mm(e){e.register(ri),e.register(wt),e.register(Ja),function(t){var n=t.languages.javascript,r=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,a="(@(?:arg|argument|param|property)\\s+(?:"+r+"\\s+)?)";t.languages.jsdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp(a+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),t.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(a+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:n,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(e)}Bm.displayName="n4js";Bm.aliases=["n4jsd"];function Bm(e){e.register(wt),e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}Um.displayName="js-extras";Um.aliases=[];function Um(e){e.register(wt),function(t){t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(l,u){return RegExp(l.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),u)}t.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var r=["function","function-variable","method","method-variable","property-access"],a=0;a<r.length;a++){var i=r[a],o=t.languages.javascript[i];t.util.type(o)==="RegExp"&&(o=t.languages.javascript[i]={pattern:o});var s=o.inside||{};o.inside=s,s["maybe-class-name"]=/^[A-Z][\s\S]*/}}(e)}$m.displayName="json5";$m.aliases=[];function $m(e){e.register(Za),function(t){var n=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;t.languages.json5=t.languages.extend("json",{property:[{pattern:RegExp(n.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:n,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(e)}jm.displayName="jsonp";jm.aliases=[];function jm(e){e.register(Za),e.languages.jsonp=e.languages.extend("json",{punctuation:/[{}[\]();,.]/}),e.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}Hm.displayName="jsstacktrace";Hm.aliases=[];function Hm(e){e.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}zm.displayName="julia";zm.aliases=[];function zm(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}Gm.displayName="keepalived";Gm.aliases=[];function Gm(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}Vm.displayName="keyman";Vm.aliases=[];function Vm(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|newcontext|nomatch|postkeystroke|readonly|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}Wm.displayName="kumir";Wm.aliases=["kum"];function Wm(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(a,i){return RegExp(a.replace(/<nonId>/g,n),i)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}qm.displayName="kusto";qm.aliases=[];function qm(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}Ym.displayName="latex";Ym.aliases=["context","tex"];function Ym(e){(function(t){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,r={"equation-command":{pattern:n,alias:"regex"}};t.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:r,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:r,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},t.languages.tex=t.languages.latex,t.languages.context=t.languages.latex})(e)}Km.displayName="latte";Km.aliases=[];function Km(e){e.register(Oe),e.register(_t),e.register(ta),function(t){t.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:t.languages.php}};var n=t.languages.extend("markup",{});t.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:t.languages.php}}}}}},n.tag),t.hooks.add("before-tokenize",function(r){if(r.language==="latte"){var a=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;t.languages["markup-templating"].buildPlaceholders(r,"latte",a),r.grammar=n}}),t.hooks.add("after-tokenize",function(r){t.languages["markup-templating"].tokenizePlaceholders(r,"latte")})}(e)}_o.displayName="scheme";_o.aliases=[];function _o(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var a in r)r[a]=r[a].replace(/<[\w\s]+>/g,function(i){return"(?:"+r[i].trim()+")"});return r[a]}})(e)}Xm.displayName="lilypond";Xm.aliases=["ly"];function Xm(e){e.register(_o),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,r=5,a=0;a<r;a++)n=n.replace(/<expr>/g,function(){return n});n=n.replace(/<expr>/g,/[^\s\S]/.source);var i=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};i["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=i,t.languages.ly=i}(e)}Zm.displayName="liquid";Zm.aliases=[];function Zm(e){e.register(_t),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(a){var i=/^\{%-?\s*(\w+)/.exec(a);if(i){var o=i[1];if(o==="raw"&&!r)return r=!0,!0;if(o==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}Qm.displayName="lisp";Qm.aliases=["elisp","emacs","emacs-lisp"];function Qm(e){(function(t){function n(h){return RegExp(/(\()/.source+"(?:"+h+")"+/(?=[\s\)])/.source)}function r(h){return RegExp(/([\s([])/.source+"(?:"+h+")"+/(?=[\s)])/.source)}var a=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,i="&"+a,o="(\\()",s="(?=\\))",l="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,d={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+a+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+a),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+a),alias:"property"},splice:{pattern:RegExp(",@?"+a),alias:["symbol","variable"]},keyword:[{pattern:RegExp(o+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+l),lookbehind:!0},{pattern:RegExp(o+"(?:append|by|collect|concat|do|finally|for|in|return)"+l),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(o+"def(?:const|custom|group|var)\\s+"+a),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(a)}},defun:{pattern:RegExp(o+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+a+/\s+\(/.source+u+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+a),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(o+"lambda\\s+\\(\\s*(?:&?"+a+"(?:\\s+&?"+a+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(o+a),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},c={"lisp-marker":RegExp(i),varform:{pattern:RegExp(/\(/.source+a+/\s+(?=\S)/.source+u+/\)/.source),inside:d},argument:{pattern:RegExp(/(^|[\s(])/.source+a),lookbehind:!0,alias:"variable"},rest:d},f="\\S+(?:\\s+\\S+)*",m={pattern:RegExp(o+u+s),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+f),inside:c},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+f),inside:c},keys:{pattern:RegExp("&key\\s+"+f+"(?:\\s+&allow-other-keys)?"),inside:c},argument:{pattern:RegExp(a),alias:"variable"},punctuation:/[()]/}};d.lambda.inside.arguments=m,d.defun.inside.arguments=t.util.clone(m),d.defun.inside.arguments.inside.sublist=m,t.languages.lisp=d,t.languages.elisp=d,t.languages.emacs=d,t.languages["emacs-lisp"]=d})(e)}Jm.displayName="livescript";Jm.aliases=[];function Jm(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}eh.displayName="llvm";eh.aliases=[];function eh(e){(function(t){t.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(e)}th.displayName="log";th.aliases=[];function th(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}nh.displayName="lolcode";nh.aliases=[];function nh(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}rh.displayName="magma";rh.aliases=[];function rh(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}Il.displayName="mata";Il.aliases=[];function Il(e){(function(t){var n=/\b(?:(?:col|row)?vector|matrix|scalar)\b/.source,r=/\bvoid\b|<org>|\b(?:complex|numeric|pointer(?:\s*\([^()]*\))?|real|string|(?:class|struct)\s+\w+|transmorphic)(?:\s*<org>)?/.source.replace(/<org>/g,n);t.languages.mata={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|struct)\s+)\w+(?=\s*(?:\{|\bextends\b))/,lookbehind:!0},type:{pattern:RegExp(r),alias:"class-name",inside:{punctuation:/[()]/,keyword:/\b(?:class|function|struct|void)\b/}},keyword:/\b(?:break|class|continue|do|else|end|extends|external|final|for|function|goto|if|pragma|private|protected|public|return|static|struct|unset|unused|version|virtual|while)\b/,constant:/\bNULL\b/,number:{pattern:/(^|[^\w.])(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|\d[a-f0-9]*(?:\.[a-f0-9]+)?x[+-]?\d+)i?(?![\w.])/i,lookbehind:!0},missing:{pattern:/(^|[^\w.])(?:\.[a-z]?)(?![\w.])/,lookbehind:!0,alias:"symbol"},function:/\b[a-z_]\w*(?=\s*\()/i,operator:/\.\.|\+\+|--|&&|\|\||:?(?:[!=<>]=|[+\-*/^<>&|:])|[!?=\\#’`']/,punctuation:/[()[\]{},;.]/}})(e)}ah.displayName="matlab";ah.aliases=[];function ah(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}ih.displayName="maxscript";ih.aliases=[];function ih(e){(function(t){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;t.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(e)}oh.displayName="mel";oh.aliases=[];function oh(e){e.languages.mel={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},code:{pattern:/`(?:\\.|[^\\`])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},statement:{pattern:/[\s\S]+/,inside:null}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:{pattern:/((?:^|[{;])[ \t]*)[a-z_]\w*\b(?!\s*(?:\.(?!\.)|[[{=]))|\b[a-z_]\w*(?=[ \t]*\()/im,lookbehind:!0,greedy:!0},"tensor-punctuation":{pattern:/<<|>>/,alias:"punctuation"},operator:/\+[+=]?|-[-=]?|&&|\|\||[<>]=?|[*\/!=]=?|[%^]/,punctuation:/[.,:;?\[\](){}]/},e.languages.mel.code.inside.statement.inside=e.languages.mel}sh.displayName="mermaid";sh.aliases=[];function sh(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}lh.displayName="metafont";lh.aliases=[];function lh(e){e.languages.metafont={comment:{pattern:/%.*/,greedy:!0},string:{pattern:/"[^\r\n"]*"/,greedy:!0},number:/\d*\.?\d+/,boolean:/\b(?:false|true)\b/,punctuation:[/[,;()]/,{pattern:/(^|[^{}])(?:\{|\})(?![{}])/,lookbehind:!0},{pattern:/(^|[^[])\[(?!\[)/,lookbehind:!0},{pattern:/(^|[^\]])\](?!\])/,lookbehind:!0}],constant:[{pattern:/(^|[^!?])\?\?\?(?![!?])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\\|\\\\)(?![/*\\])/,lookbehind:!0},/\b(?:_|blankpicture|bp|cc|cm|dd|ditto|down|eps|epsilon|fullcircle|halfcircle|identity|in|infinity|left|mm|nullpen|nullpicture|origin|pc|penrazor|penspeck|pensquare|penstroke|proof|pt|quartercircle|relax|right|smoke|unitpixel|unitsquare|up)\b/],quantity:{pattern:/\b(?:autorounding|blacker|boundarychar|charcode|chardp|chardx|chardy|charext|charht|charic|charwd|currentwindow|day|designsize|displaying|fillin|fontmaking|granularity|hppp|join_radius|month|o_correction|pausing|pen_(?:bot|lft|rt|top)|pixels_per_inch|proofing|showstopping|smoothing|time|tolerance|tracingcapsules|tracingchoices|tracingcommands|tracingedges|tracingequations|tracingmacros|tracingonline|tracingoutput|tracingpens|tracingrestores|tracingspecs|tracingstats|tracingtitles|turningcheck|vppp|warningcheck|xoffset|year|yoffset)\b/,alias:"keyword"},command:{pattern:/\b(?:addto|batchmode|charlist|cull|display|errhelp|errmessage|errorstopmode|everyjob|extensible|fontdimen|headerbyte|inner|interim|let|ligtable|message|newinternal|nonstopmode|numspecial|openwindow|outer|randomseed|save|scrollmode|shipout|show|showdependencies|showstats|showtoken|showvariable|special)\b/,alias:"builtin"},operator:[{pattern:/(^|[^>=<:|])(?:<|<=|=|=:|\|=:|\|=:>|=:\|>|=:\||\|=:\||\|=:\|>|\|=:\|>>|>|>=|:|:=|<>|::|\|\|:)(?![>=<:|])/,lookbehind:!0},{pattern:/(^|[^+-])(?:\+|\+\+|-{1,3}|\+-\+)(?![+-])/,lookbehind:!0},{pattern:/(^|[^/*\\])(?:\*|\*\*|\/)(?![/*\\])/,lookbehind:!0},{pattern:/(^|[^.])(?:\.{2,3})(?!\.)/,lookbehind:!0},{pattern:/(^|[^@#&$])&(?![@#&$])/,lookbehind:!0},/\b(?:and|not|or)\b/],macro:{pattern:/\b(?:abs|beginchar|bot|byte|capsule_def|ceiling|change_width|clear_pen_memory|clearit|clearpen|clearxy|counterclockwise|cullit|cutdraw|cutoff|decr|define_blacker_pixels|define_corrected_pixels|define_good_x_pixels|define_good_y_pixels|define_horizontal_corrected_pixels|define_pixels|define_whole_blacker_pixels|define_whole_pixels|define_whole_vertical_blacker_pixels|define_whole_vertical_pixels|dir|direction|directionpoint|div|dotprod|downto|draw|drawdot|endchar|erase|fill|filldraw|fix_units|flex|font_coding_scheme|font_extra_space|font_identifier|font_normal_shrink|font_normal_space|font_normal_stretch|font_quad|font_size|font_slant|font_x_height|gfcorners|gobble|gobbled|good\.(?:bot|lft|rt|top|x|y)|grayfont|hide|hround|imagerules|incr|interact|interpath|intersectionpoint|inverse|italcorr|killtext|labelfont|labels|lft|loggingall|lowres_fix|makegrid|makelabel(?:\.(?:bot|lft|rt|top)(?:\.nodot)?)?|max|min|mod|mode_def|mode_setup|nodisplays|notransforms|numtok|openit|penlabels|penpos|pickup|proofoffset|proofrule|proofrulethickness|range|reflectedabout|rotatedabout|rotatedaround|round|rt|savepen|screenchars|screenrule|screenstrokes|shipit|showit|slantfont|softjoin|solve|stop|superellipse|tensepath|thru|titlefont|top|tracingall|tracingnone|undraw|undrawdot|unfill|unfilldraw|upto|vround)\b/,alias:"function"},builtin:/\b(?:ASCII|angle|char|cosd|decimal|directiontime|floor|hex|intersectiontimes|jobname|known|length|makepath|makepen|mexp|mlog|normaldeviate|oct|odd|pencircle|penoffset|point|postcontrol|precontrol|reverse|rotated|sind|sqrt|str|subpath|substring|totalweight|turningnumber|uniformdeviate|unknown|xpart|xxpart|xypart|ypart|yxpart|yypart)\b/,keyword:/\b(?:also|at|atleast|begingroup|charexists|contour|controls|curl|cycle|def|delimiters|doublepath|dropping|dump|else|elseif|end|enddef|endfor|endgroup|endinput|exitif|exitunless|expandafter|fi|for|forever|forsuffixes|from|if|input|inwindow|keeping|kern|of|primarydef|quote|readstring|scaled|scantokens|secondarydef|shifted|skipto|slanted|step|tension|tertiarydef|to|transformed|until|vardef|withpen|withweight|xscaled|yscaled|zscaled)\b/,type:{pattern:/\b(?:boolean|expr|numeric|pair|path|pen|picture|primary|secondary|string|suffix|tertiary|text|transform)\b/,alias:"property"},variable:{pattern:/(^|[^@#&$])(?:@#|#@|#|@)(?![@#&$])|\b(?:aspect_ratio|currentpen|currentpicture|currenttransform|d|extra_beginchar|extra_endchar|extra_setup|h|localfont|mag|mode|screen_cols|screen_rows|w|whatever|x|y|z)\b/,lookbehind:!0}}}uh.displayName="mizar";uh.aliases=[];function uh(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}ch.displayName="mongodb";ch.aliases=[];function ch(e){e.register(wt),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(i){return i.replace("$","\\$")});var a="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+a+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}dh.displayName="monkey";dh.aliases=[];function dh(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}ph.displayName="moonscript";ph.aliases=["moon"];function ph(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}fh.displayName="n1ql";fh.aliases=[];function fh(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}mh.displayName="nand2tetris-hdl";mh.aliases=[];function mh(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}hh.displayName="naniscript";hh.aliases=["nani"];function hh(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(o){var s=o.tokens;s.forEach(function(l){if(typeof l!="string"&&l.type==="generic-text"){var u=i(l);a(u)||(l.type="bad-line",l.content=u)}})});function a(o){for(var s="[]{}",l=[],u=0;u<o.length;u++){var d=o[u],c=s.indexOf(d);if(c!==-1){if(c%2===0)l.push(c+1);else if(l.pop()!==c)return!1}}return l.length===0}function i(o){return typeof o=="string"?o:Array.isArray(o)?o.map(i).join(""):i(o.content)}})(e)}gh.displayName="nasm";gh.aliases=[];function gh(e){e.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}bh.displayName="neon";bh.aliases=[];function bh(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"property"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}Eh.displayName="nevod";Eh.aliases=[];function Eh(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}yh.displayName="nginx";yh.aliases=[];function yh(e){(function(t){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;t.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(e)}xh.displayName="nim";xh.aliases=[];function xh(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}Th.displayName="nix";Th.aliases=[];function Th(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}vh.displayName="nsis";vh.aliases=[];function vh(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|KnownFolderPath|LabelAddress|TempFileName|WinVer)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|RtlLanguage|ShellVarContextAll|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|Target|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}Sh.displayName="ocaml";Sh.aliases=[];function Sh(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}Ah.displayName="odin";Ah.aliases=[];function Ah(e){(function(t){var n=/\\(?:["'\\abefnrtv]|0[0-7]{2}|U[\dA-Fa-f]{6}|u[\dA-Fa-f]{4}|x[\dA-Fa-f]{2})/;t.languages.odin={comment:[{pattern:/\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:\*(?!\/)|[^*])*(?:\*\/|$))*(?:\*\/|$)/,greedy:!0},{pattern:/#![^\n\r]*/,greedy:!0},{pattern:/\/\/[^\n\r]*/,greedy:!0}],char:{pattern:/'(?:\\(?:.|[0Uux][0-9A-Fa-f]{1,6})|[^\n\r'\\])'/,greedy:!0,inside:{symbol:n}},string:[{pattern:/`[^`]*`/,greedy:!0},{pattern:/"(?:\\.|[^\n\r"\\])*"/,greedy:!0,inside:{symbol:n}}],directive:{pattern:/#\w+/,alias:"property"},number:/\b0(?:b[01_]+|d[\d_]+|h_*(?:(?:(?:[\dA-Fa-f]_*){8}){1,2}|(?:[\dA-Fa-f]_*){4})|o[0-7_]+|x[\dA-F_a-f]+|z[\dAB_ab]+)\b|(?:\b\d+(?:\.(?!\.)\d*)?|\B\.\d+)(?:[Ee][+-]?\d*)?[ijk]?(?!\w)/,discard:{pattern:/\b_\b/,alias:"keyword"},"procedure-definition":{pattern:/\b\w+(?=[ \t]*(?::\s*){2}proc\b)/,alias:"function"},keyword:/\b(?:asm|auto_cast|bit_set|break|case|cast|context|continue|defer|distinct|do|dynamic|else|enum|fallthrough|for|foreign|if|import|in|map|matrix|not_in|or_else|or_return|package|proc|return|struct|switch|transmute|typeid|union|using|when|where)\b/,"procedure-name":{pattern:/\b\w+(?=[ \t]*\()/,alias:"function"},boolean:/\b(?:false|nil|true)\b/,"constant-parameter-sign":{pattern:/\$/,alias:"important"},undefined:{pattern:/---/,alias:"operator"},arrow:{pattern:/->/,alias:"punctuation"},operator:/\+\+|--|\.\.[<=]?|(?:&~|[-!*+/=~]|[%&<>|]{1,2})=?|[?^]/,punctuation:/[(),.:;@\[\]{}]/}})(e)}wh.displayName="opencl";wh.aliases=[];function wh(e){e.register(Sn),function(t){t.languages.opencl=t.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),t.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var n={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};t.languages.insertBefore("c","keyword",n),t.languages.cpp&&(n["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},t.languages.insertBefore("cpp","keyword",n))}(e)}_h.displayName="openqasm";_h.aliases=["qasm"];function _h(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}Nh.displayName="oz";Nh.aliases=[];function Nh(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}Ch.displayName="parigp";Ch.aliases=[];function Ch(e){e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var t=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return t=t.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+t+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}kh.displayName="parser";kh.aliases=[];function kh(e){e.register(Tt),function(t){var n=t.languages.parser=t.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=t.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),t.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])}(e)}Ih.displayName="pascal";Ih.aliases=["objectpascal"];function Ih(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}Rh.displayName="pascaligo";Rh.aliases=[];function Rh(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return n}),a=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},i=["comment","keyword","builtin","operator","punctuation"].reduce(function(o,s){return o[s]=a[s],o},{});a["class-name"].forEach(function(o){o.inside=i})})(e)}Oh.displayName="psl";Oh.aliases=[];function Oh(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}Dh.displayName="pcaxis";Dh.aliases=["px"];function Dh(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}Lh.displayName="peoplecode";Lh.aliases=["pcode"];function Lh(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}Ph.displayName="phpdoc";Ph.aliases=[];function Ph(e){e.register(ri),e.register(ta),function(t){var n=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;t.languages.phpdoc=t.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+n+"\\s+)?)\\$\\w+"),lookbehind:!0}}),t.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+n),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),t.languages.javadoclike.addSupport("php",t.languages.phpdoc)}(e)}Fh.displayName="php-extras";Fh.aliases=[];function Fh(e){e.register(ta),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}Mh.displayName="plant-uml";Mh.aliases=["plantuml"];function Mh(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,a=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,i="(?:-+"+a+"-+|\\.+"+a+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",o=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,s=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,u=/[ox]?[\]?]?/.source,d=l+"(?:"+i+s+"|"+o+i+"(?:"+s+")?)"+u;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+d+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}Bh.displayName="plsql";Bh.aliases=[];function Bh(e){e.register(Qa),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}Uh.displayName="powerquery";Uh.aliases=["mscript","pq"];function Uh(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}$h.displayName="powershell";$h.aliases=[];function $h(e){(function(t){var n=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(e)}jh.displayName="processing";jh.aliases=[];function jh(e){e.register(Oe),e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}Hh.displayName="prolog";Hh.aliases=[];function Hh(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}zh.displayName="promql";zh.aliases=[];function zh(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],a=["offset"],i=n.concat(r,a);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+i.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}Gh.displayName="properties";Gh.aliases=[];function Gh(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,value:{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0,alias:"attr-value"},key:{pattern:/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,alias:"attr-name"},punctuation:/[=:]/}}Vh.displayName="protobuf";Vh.aliases=[];function Vh(e){e.register(Oe),function(t){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;t.languages.protobuf=t.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),t.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}(e)}Wh.displayName="stylus";Wh.aliases=[];function Wh(e){(function(t){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},a={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:r,punctuation:/[{}()\[\];:,]/};a.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:a}},a.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:a}},t.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:a}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:a}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:a}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:a.interpolation}},rest:a}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:a.interpolation,comment:a.comment,punctuation:/[{},]/}},func:a.func,string:a.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:a.interpolation,punctuation:/[{}()\[\];:.]/}})(e)}qh.displayName="twig";qh.aliases=[];function qh(e){e.register(_t),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){if(t.language==="twig"){var n=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;e.languages["markup-templating"].buildPlaceholders(t,"twig",n)}}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}Yh.displayName="pug";Yh.aliases=[];function Yh(e){e.register(wt),e.register(Tt),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],a={},i=0,o=r.length;i<o;i++){var s=r[i];s=typeof s=="string"?{filter:s,language:s}:s,t.languages[s.language]&&(a["filter-"+s.filter]={pattern:RegExp(n.replace("<filter_name>",function(){return s.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:t.languages[s.language]}}})}t.languages.insertBefore("pug","filter",a)}(e)}Kh.displayName="puppet";Kh.aliases=[];function Kh(e){(function(t){t.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:t.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];t.languages.puppet.heredoc[0].inside.interpolation=n,t.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(e)}Xh.displayName="pure";Xh.aliases=[];function Xh(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(a){var i=a;if(typeof a!="string"&&(i=a.alias,a=a.lang),t.languages[i]){var o={};o["inline-lang-"+i]={pattern:RegExp(r.replace("<lang>",a.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},o["inline-lang-"+i].inside.rest=t.util.clone(t.languages[i]),t.languages.insertBefore("pure","inline-lang",o)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}Zh.displayName="purebasic";Zh.aliases=["pbfasm"];function Zh(e){e.register(Oe),e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+\$?|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}Qh.displayName="purescript";Qh.aliases=["purs"];function Qh(e){e.register(wo),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}Jh.displayName="qsharp";Jh.aliases=["qs"];function Jh(e){e.register(Oe),function(t){function n(m,h){return m.replace(/<<(\d+)>>/g,function(g,b){return"(?:"+h[+b]+")"})}function r(m,h,g){return RegExp(n(m,h),"")}function a(m,h){for(var g=0;g<h;g++)m=m.replace(/<<self>>/g,function(){return"(?:"+m+")"});return m.replace(/<<self>>/g,"[^\\s\\S]")}var i={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function o(m){return"\\b(?:"+m.trim().replace(/ /g,"|")+")\\b"}var s=RegExp(o(i.type+" "+i.other)),l=/\b[A-Za-z_]\w*\b/.source,u=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),d={keyword:s,punctuation:/[<>()?,.:[\]]/},c=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[c]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[u]),lookbehind:!0,inside:d},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[u]),lookbehind:!0,inside:d}],keyword:s,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var f=a(n(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[c]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[f]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[f]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}eg.displayName="q";eg.aliases=[];function eg(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}tg.displayName="qml";tg.aliases=[];function tg(e){e.register(wt),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,a=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return n}).replace(/<comment>/g,function(){return r}),i=0;i<2;i++)a=a.replace(/<expr>/g,function(){return a});a=a.replace(/<expr>/g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}ng.displayName="qore";ng.aliases=[];function ng(e){e.register(Oe),e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}rg.displayName="racket";rg.aliases=["rkt"];function rg(e){e.register(_o),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}ag.displayName="cshtml";ag.aliases=["razor"];function ag(e){e.register(Jr),e.register(Tt),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function a(T,v){for(var S=0;S<v;S++)T=T.replace(/<self>/g,function(){return"(?:"+T+")"});return T.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+r+")").replace(/<comment>/g,"(?:"+n+")")}var i=a(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),o=a(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,1),s=a(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),l=a(/<(?:[^<>'"@/]|<comment>|<self>)*>/.source,1),u=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+i+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+i+"|"+o+")*"+/(?![?!\.(\[]|<(?!\/))/.source,d=/@(?![\w()])/.source+"|"+u,c="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+d+`)[^"'@]*)+["'])`,f=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*<tagAttrValue>|(?=[\s/>])))+)?/.source.replace(/<tagAttrValue>/,c),m=/(?!\d)[^\s>\/=$<%]+/.source+f+/\s*\/?>/.source,h=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+m+"|"+a(/<\1/.source+f+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+m+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+m+")";t.languages.cshtml=t.languages.extend("markup",{});var g=t.languages.insertBefore("csharp","string",{html:{pattern:RegExp(h),greedy:!0,inside:t.languages.cshtml}},{csharp:t.languages.extend("csharp",{})}),b={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:g},E={pattern:RegExp(/(^|[^@])/.source+u),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:b}};t.languages.cshtml.tag.pattern=RegExp(/<\/?/.source+m),t.languages.cshtml.tag.inside["attr-value"].pattern=RegExp(/=\s*/.source+c),t.languages.insertBefore("inside","punctuation",{value:E},t.languages.cshtml.tag.inside["attr-value"]),t.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[s,/(?:code|functions)\s*/.source+s,/(?:for|foreach|lock|switch|using|while)\s*/.source+i+/\s*/.source+s,/do\s*/.source+s+/\s*while\s*/.source+i+/(?:\s*;)?/.source,/try\s*/.source+s+/\s*catch\s*/.source+i+/\s*/.source+s+/\s*finally\s*/.source+s,/if\s*/.source+i+/\s*/.source+s+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+i+")?"+/\s*/.source+s+")*",/helper\s+\w+\s*/.source+i+/\s*/.source+s].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:b}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:b}},value:E,"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),t.languages.razor=t.languages.cshtml}(e)}Rl.displayName="jsx";Rl.aliases=[];function Rl(e){e.register(wt),e.register(Tt),function(t){var n=t.util.clone(t.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(u,d){return u=u.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return i}),RegExp(u,d)}i=o(i).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var s=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(s).join(""):""},l=function(u){for(var d=[],c=0;c<u.length;c++){var f=u[c],m=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?d.length>0&&d[d.length-1].tagName===s(f.content[0].content[1])&&d.pop():f.content[f.content.length-1].content==="/>"||d.push({tagName:s(f.content[0].content[1]),openedBraces:0}):d.length>0&&f.type==="punctuation"&&f.content==="{"?d[d.length-1].openedBraces++:d.length>0&&d[d.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?d[d.length-1].openedBraces--:m=!0),(m||typeof f=="string")&&d.length>0&&d[d.length-1].openedBraces===0){var h=s(f);c<u.length-1&&(typeof u[c+1]=="string"||u[c+1].type==="plain-text")&&(h+=s(u[c+1]),u.splice(c+1,1)),c>0&&(typeof u[c-1]=="string"||u[c-1].type==="plain-text")&&(h=s(u[c-1])+h,u.splice(c-1,1),c--),u[c]=new t.Token("plain-text",h,null,h)}f.content&&typeof f.content!="string"&&l(f.content)}};t.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||l(u.tokens)})}(e)}ig.displayName="tsx";ig.aliases=[];function ig(e){e.register(Rl),e.register(Ja),function(t){var n=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var r=t.languages.tsx.tag;r.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+r.pattern.source+")",r.pattern.flags),r.lookbehind=!0}(e)}og.displayName="reason";og.aliases=[];function og(e){e.register(Oe),e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}sg.displayName="rego";sg.aliases=[];function sg(e){e.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}lg.displayName="renpy";lg.aliases=["rpy"];function lg(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}ug.displayName="rescript";ug.aliases=["res"];function ug(e){e.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},e.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:e.languages.rescript}},string:/[\s\S]+/}}}),e.languages.res=e.languages.rescript}cg.displayName="rest";cg.aliases=[];function cg(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}dg.displayName="rip";dg.aliases=[];function dg(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}pg.displayName="roboconf";pg.aliases=[];function pg(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}fg.displayName="robotframework";fg.aliases=["robot"];function fg(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function a(l,u){var d={};d["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var c in u)d[c]=u[c];return d.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},d.variable=r,d.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return l}),"im"),alias:"section",inside:d}}var i={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},o={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},s={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:a("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:a("Variables"),"test-cases":a("Test Cases",{"test-name":o,documentation:i,property:s}),keywords:a("Keywords",{"keyword-name":o,documentation:i,property:s}),tasks:a("Tasks",{"task-name":o,documentation:i,property:s}),comment:n},t.languages.robot=t.languages.robotframework})(e)}mg.displayName="sas";mg.aliases=[];function mg(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,a={pattern:RegExp(n+"[bx]"),alias:"number"},i={pattern:/&[a-z_]\w*/i},o={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},s={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},l=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],u={pattern:RegExp(n),greedy:!0},d=/[$%@.(){}\[\];,\\]/,c={pattern:/%?\b\w+(?=\()/,alias:"keyword"},f={function:c,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":i,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":a,punctuation:d,string:u},m={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},h={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},g={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},b={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},E=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,T={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return E}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return E}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:c,"arg-value":f["arg-value"],operator:f.operator,argument:f.arg,number:r,"numeric-constant":a,punctuation:d,string:u}},v={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":g,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":a,punctuation:d,string:u}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:v,"submit-statement":b,"global-statements":g,number:r,"numeric-constant":a,punctuation:d,string:u}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:v,"submit-statement":b,"global-statements":g,number:r,"numeric-constant":a,punctuation:d,string:u}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:f}},"cas-actions":T,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:f},step:s,keyword:v,function:c,format:m,altformat:h,"global-statements":g,number:r,"numeric-constant":a,punctuation:d,string:u}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return n}),"im"),lookbehind:!0,inside:f},"macro-keyword":o,"macro-variable":i,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":o,"macro-variable":i,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:d}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:l,number:r,"numeric-constant":a}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:f},"cas-actions":T,comment:l,function:c,format:m,altformat:h,"numeric-constant":a,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:s,keyword:v,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:d}})(e)}hg.displayName="shell-session";hg.aliases=["sh-session","shellsession"];function hg(e){e.register(Eo),function(t){var n=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");t.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return n}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:t.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},t.languages["sh-session"]=t.languages.shellsession=t.languages["shell-session"]}(e)}gg.displayName="smali";gg.aliases=[];function gg(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}bg.displayName="smalltalk";bg.aliases=[];function bg(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}Eg.displayName="smarty";Eg.aliases=[];function Eg(e){e.register(_t),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(a){var i="{literal}",o="{/literal}",s=!1;t.languages["markup-templating"].buildPlaceholders(a,"smarty",r,function(l){return l===o&&(s=!1),s?!1:(l===i&&(s=!0),!0)})}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"smarty")})}(e)}yg.displayName="sml";yg.aliases=["smlnj"];function yg(e){(function(t){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;t.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},t.languages.sml["class-name"][0].inside=t.languages.sml,t.languages.smlnj=t.languages.sml})(e)}xg.displayName="solidity";xg.aliases=["sol"];function xg(e){e.register(Oe),e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}Tg.displayName="solution-file";Tg.aliases=["sln"];function Tg(e){(function(t){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};t.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},t.languages.sln=t.languages["solution-file"]})(e)}vg.displayName="soy";vg.aliases=[];function vg(e){e.register(_t),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(a){var i=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,o="{literal}",s="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(a,"soy",i,function(u){return u===s&&(l=!1),l?!1:(u===o&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"soy")})}(e)}Ol.displayName="turtle";Ol.aliases=["trig"];function Ol(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}Sg.displayName="sparql";Sg.aliases=["rq"];function Sg(e){e.register(Ol),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}Ag.displayName="splunk-spl";Ag.aliases=[];function Ag(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}wg.displayName="sqf";wg.aliases=[];function wg(e){e.register(Oe),e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}_g.displayName="squirrel";_g.aliases=[];function _g(e){e.register(Oe),e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}Ng.displayName="stan";Ng.aliases=[];function Ng(e){(function(t){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;t.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},t.languages.stan.constraint.inside.expression.inside=t.languages.stan})(e)}Cg.displayName="stata";Cg.aliases=[];function Cg(e){e.register(ea),e.register(Il),e.register(To),e.languages.stata={comment:[{pattern:/(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|\s)\/\/.*|\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0}],"string-literal":{pattern:/"[^"\r\n]*"|[‘`']".*?"[’`']/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}|[‘`']\w[^’`'\r\n]*[’`']/,inside:{punctuation:/^\$\{|\}$/,expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},mata:{pattern:/(^[ \t]*mata[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-mata",inside:e.languages.mata},java:{pattern:/(^[ \t]*java[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-java",inside:e.languages.java},python:{pattern:/(^[ \t]*python[ \t]*:)[\s\S]+?(?=^end\b)/m,lookbehind:!0,greedy:!0,alias:"language-python",inside:e.languages.python},command:{pattern:/(^[ \t]*(?:\.[ \t]+)?(?:(?:bayes|bootstrap|by|bysort|capture|collect|fmm|fp|frame|jackknife|mfp|mi|nestreg|noisily|permute|quietly|rolling|simulate|statsby|stepwise|svy|version|xi)\b[^:\r\n]*:[ \t]*|(?:capture|noisily|quietly|version)[ \t]+)?)[a-zA-Z]\w*/m,lookbehind:!0,greedy:!0,alias:"keyword"},variable:/\$\w+|[‘`']\w[^’`'\r\n]*[’`']/,keyword:/\b(?:bayes|bootstrap|by|bysort|capture|clear|collect|fmm|fp|frame|if|in|jackknife|mi[ \t]+estimate|mfp|nestreg|noisily|of|permute|quietly|rolling|simulate|sort|statsby|stepwise|svy|varlist|version|xi)\b/,boolean:/\b(?:off|on)\b/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+/,function:/\b[a-z_]\w*(?=\()/i,operator:/\+\+|--|##?|[<>!=~]=?|[+\-*^&|/]/,punctuation:/[(){}[\],:]/},e.languages.stata["string-literal"].inside.interpolation.inside.expression.inside=e.languages.stata}kg.displayName="iecst";kg.aliases=[];function kg(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}Ig.displayName="supercollider";Ig.aliases=["sclang"];function Ig(e){e.languages.supercollider={comment:{pattern:/\/\/.*|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^"\\]|\\[\s\S])*"/,lookbehind:!0,greedy:!0},char:{pattern:/\$(?:[^\\\r\n]|\\.)/,greedy:!0},symbol:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'|\\\w+/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|arg|classvar|const|nil|var|while)\b/,boolean:/\b(?:false|true)\b/,label:{pattern:/\b[a-z_]\w*(?=\s*:)/,alias:"property"},number:/\b(?:inf|pi|0x[0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(?:pi)?|\d+r[0-9a-zA-Z]+(?:\.[0-9a-zA-Z]+)?|\d+[sb]{1,4}\d*)\b/,"class-name":/\b[A-Z]\w*\b/,operator:/\.{2,3}|#(?![[{])|&&|[!=]==?|\+>>|\+{1,3}|-[->]|=>|>>|\?\?|@\|?@|\|(?:@|[!=]=)?\||!\?|<[!=>]|\*{1,2}|<{2,3}\*?|[-!%&/<>?@|=`]/,punctuation:/[{}()[\].:,;]|#[[{]/},e.languages.sclang=e.languages.supercollider}Rg.displayName="systemd";Rg.aliases=[];function Rg(e){(function(t){var n={pattern:/^[;#].*/m,greedy:!0},r=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;t.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+r+`|(?=[^"\r
|
|
316
|
+
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+r+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+r),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(e)}No.displayName="t4-templating";No.aliases=[];function No(e){(function(t){function n(a,i,o){return{pattern:RegExp("<#"+a+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+a+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:i,alias:o}}}}function r(a){var i=t.languages[a],o="language-"+a;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",i,o),"class-feature":n("\\+",i,o),standard:n("",i,o)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}Og.displayName="t4-cs";Og.aliases=["t4"];function Og(e){e.register(Jr),e.register(No),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}Dg.displayName="t4-vb";Dg.aliases=[];function Dg(e){e.register(No),e.register(So),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}Lg.displayName="tap";Lg.aliases=[];function Lg(e){e.register(xo),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}Pg.displayName="tcl";Pg.aliases=[];function Pg(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}Fg.displayName="tt2";Fg.aliases=[];function Fg(e){e.register(Oe),e.register(_t),function(t){t.languages.tt2=t.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),t.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),t.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),t.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete t.languages.tt2.string,t.hooks.add("before-tokenize",function(n){var r=/\[%[\s\S]+?%\]/g;t.languages["markup-templating"].buildPlaceholders(n,"tt2",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"tt2")})}(e)}Mg.displayName="toml";Mg.aliases=[];function Mg(e){(function(t){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function r(a){return a.replace(/__/g,function(){return n})}t.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(r(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(r(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(e)}Bg.displayName="tremor";Bg.aliases=["trickle","troy"];function Bg(e){(function(t){t.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;t.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:t.languages.tremor}}},string:/[\s\S]+/}},t.languages.troy=t.languages.tremor,t.languages.trickle=t.languages.tremor})(e)}Ug.displayName="typoscript";Ug.aliases=["tsconfig"];function Ug(e){(function(t){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;t.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},t.languages.tsconfig=t.languages.typoscript})(e)}$g.displayName="unrealscript";$g.aliases=["uc","uscript"];function $g(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}jg.displayName="uorazor";jg.aliases=[];function jg(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}Hg.displayName="v";Hg.aliases=[];function Hg(e){e.register(Oe),function(t){var n={pattern:/[\s\S]+/,inside:null};t.languages.v=t.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=t.languages.v,t.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),t.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),t.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:t.languages.v.generic.inside}}}})}(e)}zg.displayName="vala";zg.aliases=[];function zg(e){e.register(Oe),e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}Gg.displayName="velocity";Gg.aliases=[];function Gg(e){e.register(Tt),function(t){t.languages.velocity=t.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},t.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),t.languages.velocity.tag.inside["attr-value"].inside.rest=t.languages.velocity}(e)}Vg.displayName="verilog";Vg.aliases=[];function Vg(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}Wg.displayName="vhdl";Wg.aliases=[];function Wg(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}qg.displayName="vim";qg.aliases=[];function qg(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}Yg.displayName="visual-basic";Yg.aliases=["vb","vba"];function Yg(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}Kg.displayName="warpscript";Kg.aliases=[];function Kg(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}Xg.displayName="wasm";Xg.aliases=[];function Xg(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}Zg.displayName="web-idl";Zg.aliases=["webidl"];function Zg(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,a={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:a},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:a},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:a},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:a},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:a}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var i in t.languages["web-idl"])i!=="class-name"&&(a[i]=t.languages["web-idl"][i]);t.languages.webidl=t.languages["web-idl"]})(e)}Qg.displayName="wgsl";Qg.aliases=[];function Qg(e){e.languages.wgsl={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"builtin-attribute":{pattern:/(@)builtin\(.*?\)/,lookbehind:!0,inside:{attribute:{pattern:/^builtin/,alias:"attr-name"},punctuation:/[(),]/,"built-in-values":{pattern:/\b(?:frag_depth|front_facing|global_invocation_id|instance_index|local_invocation_id|local_invocation_index|num_workgroups|position|sample_index|sample_mask|vertex_index|workgroup_id)\b/,alias:"attr-value"}}},attributes:{pattern:/(@)(?:align|binding|compute|const|fragment|group|id|interpolate|invariant|location|size|vertex|workgroup_size)/i,lookbehind:!0,alias:"attr-name"},functions:{pattern:/\b(fn\s+)[_a-zA-Z]\w*(?=[(<])/,lookbehind:!0,alias:"function"},keyword:/\b(?:bitcast|break|case|const|continue|continuing|default|discard|else|enable|fallthrough|fn|for|function|if|let|loop|private|return|storage|struct|switch|type|uniform|var|while|workgroup)\b/,builtin:/\b(?:abs|acos|acosh|all|any|array|asin|asinh|atan|atan2|atanh|atomic|atomicAdd|atomicAnd|atomicCompareExchangeWeak|atomicExchange|atomicLoad|atomicMax|atomicMin|atomicOr|atomicStore|atomicSub|atomicXor|bool|ceil|clamp|cos|cosh|countLeadingZeros|countOneBits|countTrailingZeros|cross|degrees|determinant|distance|dot|dpdx|dpdxCoarse|dpdxFine|dpdy|dpdyCoarse|dpdyFine|exp|exp2|extractBits|f32|f64|faceForward|firstLeadingBit|floor|fma|fract|frexp|fwidth|fwidthCoarse|fwidthFine|i32|i64|insertBits|inverseSqrt|ldexp|length|log|log2|mat[2-4]x[2-4]|max|min|mix|modf|normalize|override|pack2x16float|pack2x16snorm|pack2x16unorm|pack4x8snorm|pack4x8unorm|pow|ptr|quantizeToF16|radians|reflect|refract|reverseBits|round|sampler|sampler_comparison|select|shiftLeft|shiftRight|sign|sin|sinh|smoothstep|sqrt|staticAssert|step|storageBarrier|tan|tanh|textureDimensions|textureGather|textureGatherCompare|textureLoad|textureNumLayers|textureNumLevels|textureNumSamples|textureSample|textureSampleBias|textureSampleCompare|textureSampleCompareLevel|textureSampleGrad|textureSampleLevel|textureStore|texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array|texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array|texture_depth_multisampled_2d|texture_multisampled_2d|texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d|transpose|trunc|u32|u64|unpack2x16float|unpack2x16snorm|unpack2x16unorm|unpack4x8snorm|unpack4x8unorm|vec[2-4]|workgroupBarrier)\b/,"function-calls":{pattern:/\b[_a-z]\w*(?=\()/i,alias:"function"},"class-name":/\b(?:[A-Z][A-Za-z0-9]*)\b/,"bool-literal":{pattern:/\b(?:false|true)\b/,alias:"boolean"},"hex-int-literal":{pattern:/\b0[xX][0-9a-fA-F]+[iu]?\b(?![.pP])/,alias:"number"},"hex-float-literal":{pattern:/\b0[xX][0-9a-fA-F]*(?:\.[0-9a-fA-F]*)?(?:[pP][+-]?\d+[fh]?)?/,alias:"number"},"decimal-float-literal":[{pattern:/\d*\.\d+(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+\.\d*(?:[eE](?:\+|-)?\d+)?[fh]?/,alias:"number"},{pattern:/\d+[eE](?:\+|-)?\d+[fh]?/,alias:"number"},{pattern:/\b\d+[fh]\b/,alias:"number"}],"int-literal":{pattern:/\b\d+[iu]?\b/,alias:"number"},operator:[{pattern:/(?:\^|~|\|(?!\|)|\|\||&&|<<|>>|!)(?!=)/},{pattern:/&(?![&=])/},{pattern:/(?:\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/},{pattern:/(^|[^<>=!])=(?![=>])/,lookbehind:!0},{pattern:/(?:==|!=|<=|\+\+|--|(^|[^=])>=)/,lookbehind:!0},{pattern:/(?:(?:[+%]|(?:\*(?!\w)))(?!=))|(?:-(?!>))|(?:\/(?!\/))/},{pattern:/->/}],punctuation:/[@(){}[\],;<>:.]/}}Jg.displayName="wiki";Jg.aliases=[];function Jg(e){e.register(Tt),e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}eb.displayName="wolfram";eb.aliases=["mathematica","nb","wl"];function eb(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}tb.displayName="wren";tb.aliases=[];function tb(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}nb.displayName="xeora";nb.aliases=["xeoracube"];function nb(e){e.register(Tt),function(t){t.languages.xeora=t.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),t.languages.insertBefore("inside","punctuation",{variable:t.languages.xeora["function-inline"].inside.variable},t.languages.xeora["function-block"]),t.languages.xeoracube=t.languages.xeora}(e)}rb.displayName="xml-doc";rb.aliases=[];function rb(e){e.register(Tt),function(t){function n(o,s){t.languages[o]&&t.languages.insertBefore(o,"comment",{"doc-comment":s})}var r=t.languages.markup.tag,a={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},i={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",a),n("fsharp",a),n("vbnet",i)}(e)}ab.displayName="xojo";ab.aliases=[];function ab(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}ib.displayName="xquery";ib.aliases=[];function ib(e){e.register(Tt),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(a){return typeof a=="string"?a:typeof a.content=="string"?a.content:a.content.map(n).join("")},r=function(a){for(var i=[],o=0;o<a.length;o++){var s=a[o],l=!1;if(typeof s!="string"&&(s.type==="tag"&&s.content[0]&&s.content[0].type==="tag"?s.content[0].content[0].content==="</"?i.length>0&&i[i.length-1].tagName===n(s.content[0].content[1])&&i.pop():s.content[s.content.length-1].content==="/>"||i.push({tagName:n(s.content[0].content[1]),openedBraces:0}):i.length>0&&s.type==="punctuation"&&s.content==="{"&&(!a[o+1]||a[o+1].type!=="punctuation"||a[o+1].content!=="{")&&(!a[o-1]||a[o-1].type!=="plain-text"||a[o-1].content!=="{")?i[i.length-1].openedBraces++:i.length>0&&i[i.length-1].openedBraces>0&&s.type==="punctuation"&&s.content==="}"?i[i.length-1].openedBraces--:s.type!=="comment"&&(l=!0)),(l||typeof s=="string")&&i.length>0&&i[i.length-1].openedBraces===0){var u=n(s);o<a.length-1&&(typeof a[o+1]=="string"||a[o+1].type==="plain-text")&&(u+=n(a[o+1]),a.splice(o+1,1)),o>0&&(typeof a[o-1]=="string"||a[o-1].type==="plain-text")&&(u=n(a[o-1])+u,a.splice(o-1,1),o--),/^\s+$/.test(u)?a[o]=u:a[o]=new t.Token("plain-text",u,null,u)}s.content&&typeof s.content!="string"&&r(s.content)}};t.hooks.add("after-tokenize",function(a){a.language==="xquery"&&r(a.tokens)})}(e)}ob.displayName="yang";ob.aliases=[];function ob(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}sb.displayName="zig";sb.aliases=[];function sb(e){(function(t){function n(u){return function(){return u}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,a="\\b(?!"+r.source+")(?!\\d)\\w+\\b",i=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,o=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,n(i)),s=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,n(a)),l="(?!\\s)(?:!?\\s*(?:"+o+"\\s*)*"+s+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,n(l)).replace(/<ALIGN>/g,n(i))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,n(l)).replace(/<ALIGN>/g,n(i))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(u){u.inside===null&&(u.inside=t.languages.zig)})})(e)}C.register(Tt);C.register(xr);C.register(Oe);C.register(El);C.register(wt);C.register(Sp);C.register(Ap);C.register(wp);C.register(_p);C.register(Np);C.register(Cp);C.register(kp);C.register(Ip);C.register(Qa);C.register(Rp);C.register(Op);C.register(Dp);C.register(Lp);C.register(Sn);C.register(Qr);C.register(ml);C.register(Pp);C.register(Fp);C.register(Eo);C.register(xo);C.register(vl);C.register(Mp);C.register(Bp);C.register(Jr);C.register(Up);C.register($p);C.register(jp);C.register(Hp);C.register(zp);C.register(Gp);C.register(Vp);C.register(Wp);C.register(vo);C.register(qp);C.register(Yp);C.register(Kp);C.register(Xp);C.register(Zp);C.register(Qp);C.register(Jp);C.register(ef);C.register(tf);C.register(nf);C.register(rf);C.register(af);C.register(of);C.register(sf);C.register(lf);C.register(uf);C.register(cf);C.register(df);C.register(pf);C.register(ff);C.register(mf);C.register(hf);C.register(gf);C.register(bf);C.register(Ef);C.register(na);C.register(yf);C.register(xf);C.register(Tf);C.register(vf);C.register(Sf);C.register(Af);C.register(wf);C.register(_f);C.register(Nf);C.register(Cf);C.register(hl);C.register(_t);C.register(kf);C.register(If);C.register(Rf);C.register(Of);C.register(Df);C.register(Lf);C.register(Pf);C.register(Ff);C.register(Mf);C.register(Bf);C.register(yo);C.register(Uf);C.register($f);C.register(jf);C.register(Hf);C.register(zf);C.register(Gf);C.register(Vf);C.register(Wf);C.register(qf);C.register(Yf);C.register(Kf);C.register(Xf);C.register(Zf);C.register(Qf);C.register(Jf);C.register(em);C.register(tm);C.register(nm);C.register(rm);C.register(am);C.register(im);C.register(om);C.register(gl);C.register(sm);C.register(lm);C.register(um);C.register(cm);C.register(xl);C.register(Cl);C.register(dm);C.register(pm);C.register(fm);C.register(wo);C.register(mm);C.register(hm);C.register(gm);C.register(bm);C.register(Em);C.register(ym);C.register(Za);C.register(xm);C.register(Tm);C.register(vm);C.register(Sm);C.register(Am);C.register(wm);C.register(_m);C.register(Nm);C.register(bl);C.register(Cm);C.register(km);C.register(ea);C.register(ta);C.register(ri);C.register(Im);C.register(Rm);C.register(Om);C.register(Dm);C.register(Lm);C.register(Pm);C.register(Fm);C.register(Ja);C.register(Mm);C.register(Bm);C.register(Um);C.register($m);C.register(jm);C.register(Hm);C.register(zm);C.register(Gm);C.register(Vm);C.register(yl);C.register(Wm);C.register(qm);C.register(Ym);C.register(Km);C.register(_o);C.register(Xm);C.register(Zm);C.register(Qm);C.register(Jm);C.register(eh);C.register(th);C.register(nh);C.register(rh);C.register(Tl);C.register(Il);C.register(ah);C.register(ih);C.register(oh);C.register(sh);C.register(lh);C.register(uh);C.register(ch);C.register(dh);C.register(ph);C.register(fh);C.register(mh);C.register(hh);C.register(gh);C.register(bh);C.register(Eh);C.register(yh);C.register(xh);C.register(Th);C.register(vh);C.register(Sl);C.register(Sh);C.register(Ah);C.register(wh);C.register(_h);C.register(Nh);C.register(Ch);C.register(kh);C.register(Ih);C.register(Rh);C.register(Oh);C.register(Dh);C.register(Lh);C.register(Al);C.register(Ph);C.register(Fh);C.register(Mh);C.register(Bh);C.register(Uh);C.register($h);C.register(jh);C.register(Hh);C.register(zh);C.register(Gh);C.register(Vh);C.register(Wh);C.register(qh);C.register(Yh);C.register(Kh);C.register(Xh);C.register(Zh);C.register(Qh);C.register(To);C.register(Jh);C.register(eg);C.register(tg);C.register(ng);C.register(wl);C.register(rg);C.register(ag);C.register(Rl);C.register(ig);C.register(og);C.register(sg);C.register(lg);C.register(ug);C.register(cg);C.register(dg);C.register(pg);C.register(fg);C.register(_l);C.register(mg);C.register(Nl);C.register(hg);C.register(gg);C.register(bg);C.register(Eg);C.register(yg);C.register(xg);C.register(Tg);C.register(vg);C.register(Ol);C.register(Sg);C.register(Ag);C.register(wg);C.register(_g);C.register(Ng);C.register(Cg);C.register(kg);C.register(Ig);C.register(kl);C.register(Rg);C.register(No);C.register(Og);C.register(So);C.register(Dg);C.register(Lg);C.register(Pg);C.register(Fg);C.register(Mg);C.register(Bg);C.register(Ug);C.register($g);C.register(jg);C.register(Hg);C.register(zg);C.register(Gg);C.register(Vg);C.register(Wg);C.register(qg);C.register(Yg);C.register(Kg);C.register(Xg);C.register(Zg);C.register(Qg);C.register(Jg);C.register(eb);C.register(tb);C.register(nb);C.register(rb);C.register(ab);C.register(ib);C.register(ob);C.register(sb);function jc(){jc=function(a,i){return new n(a,void 0,i)};var e=RegExp.prototype,t=new WeakMap;function n(a,i,o){var s=new RegExp(a,i);return t.set(s,o||t.get(a)),Bs(s,n.prototype)}function r(a,i){var o=t.get(i);return Object.keys(o).reduce(function(s,l){var u=o[l];if(typeof u=="number")s[l]=a[u];else{for(var d=0;a[u[d]]===void 0&&d+1<u.length;)d++;s[l]=a[u[d]]}return s},Object.create(null))}return function(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),i&&Bs(a,i)}(n,RegExp),n.prototype.exec=function(a){var i=e.exec.call(this,a);if(i){i.groups=r(i,this);var o=i.indices;o&&(o.groups=r(o,this))}return i},n.prototype[Symbol.replace]=function(a,i){if(typeof i=="string"){var o=t.get(this);return e[Symbol.replace].call(this,a,i.replace(/\$<([^>]+)>/g,function(l,u){var d=o[u];return"$"+(Array.isArray(d)?d.join("$"):d)}))}if(typeof i=="function"){var s=this;return e[Symbol.replace].call(this,a,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(r(l,s)),i.apply(this,l)})}return e[Symbol.replace].call(this,a,i)},jc.apply(this,arguments)}function Bs(e,t){return Bs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Bs(e,t)}function gE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Du(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(a,i){if(a){if(typeof a=="string")return gE(a,i);var o=Object.prototype.toString.call(a).slice(8,-1);return o==="Object"&&a.constructor&&(o=a.constructor.name),o==="Map"||o==="Set"?Array.from(a):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?gE(a,i):void 0}}(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
317
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var WD=function(e){return function(t){return t===void 0&&(t={}),function(r,a){if(a&&!r.registered(a))throw new Error('The default language "'+a+'" is not registered with refractor.')}(e,t.defaultLanguage),function(r){It(r,"element",n)};function n(r,a,i){var o,s;if(i&&i.tagName==="pre"&&r.tagName==="code"){var l=(r==null||(o=r.data)==null?void 0:o.meta)||(r==null||(s=r.properties)==null?void 0:s.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var u,d,c=function(w){for(var A,_=Du(w.properties.className);!(A=_()).done;){var D=A.value;if(D.slice(0,9)==="language-")return D.slice(9).toLowerCase()}return null}(r);if(!c&&t.defaultLanguage&&r.properties.className.push("language-"+(c=t.defaultLanguage)),r.properties.className.push("code-highlight"),c)try{var f,m;m=(f=c)!=null&&f.includes("diff-")?c.split("-")[1]:c,u=e.highlight(Sa(r),m),i.properties.className=(i.properties.className||[]).concat("language-"+m)}catch(w){if(!t.ignoreMissing||!/Unknown language/.test(w.message))throw w;u=r}else u=r;u.children=(d=1,function w(A){return A.reduce(function(_,D){if(D.type==="text"){var I=D.value,O=(I.match(/\n/g)||"").length;if(O===0)D.position={start:{line:d,column:1},end:{line:d,column:1}},_.push(D);else for(var M,P=I.split(`
|
|
318
|
+
`),j=Du(P.entries());!(M=j()).done;){var z=M.value,W=z[0],H=z[1];_.push({type:"text",value:W===P.length-1?H:H+`
|
|
319
|
+
`,position:{start:{line:d+W,column:1},end:{line:d+W,column:1}}})}return d+=O,_}if(Object.prototype.hasOwnProperty.call(D,"children")){var X=d;return D.children=w(D.children),_.push(D),D.position={start:{line:X,column:1},end:{line:d,column:1}},_}return _.push(D),_},[])})(u.children),u.position=u.children.length>0?{start:{line:u.children[0].position.start.line,column:0},end:{line:u.children[u.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var h,g=function(w){var A=/{([\d,-]+)}/,_=w.split(",").map(function(O){return O.trim()}).join();if(A.test(_)){var D=A.exec(_)[1],I=dD(D);return function(O){return I.includes(O+1)}}return function(){return!1}}(l),b=function(w){var A=jc(/showLineNumbers=(\d+)/i,{lines:1});if(A.test(w)){var _=A.exec(w);return Number(_.groups.lines)}return 1}(l),E=function(w){for(var A=new Array(w),_=0;_<w;_++)A[_]={type:"element",tagName:"span",properties:{className:[]},children:[]};return A}(u.position.end.line),T=["showlinenumbers=false",'showlinenumbers="false"',"showlinenumbers={false}"],v=function(){var w,A,_=h.value,D=_[0],I=_[1];I.properties.className=["code-line"];var O=lD(u,function(M){return M.position.start.line<=D+1&&M.position.end.line>=D+1});I.children=O.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||T.some(function(M){return l.toLowerCase().includes(M)})||(I.properties.line=[(D+b).toString()],I.properties.className.push("line-number")),g(D)&&I.properties.className.push("highlight-line"),(c==="diff"||(w=c)!=null&&w.includes("diff-"))&&Sa(I).substring(0,1)==="-"?I.properties.className.push("deleted"):(c==="diff"||(A=c)!=null&&A.includes("diff-"))&&Sa(I).substring(0,1)==="+"&&I.properties.className.push("inserted")},S=Du(E.entries());!(h=S()).done;)v();E.length>0&&Sa(E[E.length-1]).trim()===""&&E.pop(),r.children=E}}}},qD=WD(C),vs={},Hc={};function YD(e,t){for(var n=t,r=0;r<e.length;r++){var a=r===e.length-1,i=e.charAt(r),o=n[i]||(n[i]={chars:{}});a&&(o.self=e),n=o.chars}}function bE(e){if(e.length===0)return vs;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];YD(a,t)}return t}function KD(e){if(e.length===0)return Hc;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];t[a]=!0}return t}var rs={},EE={type:"String",optional:!0};function XD(e){var t={type:"NoArgument",optional:!1};function n(o){if(t.type&&t.type!==o&&t.type!=="NoArgument")throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(o,'".'));t.type=o}for(var r=0,a=e;r<a.length;r++){var i=a[r];i==="NoArgument"&&(t.optional=!0),i==="Formula"&&n("Formula"),i==="FormulaOfSelector"&&(n("Formula"),t.ofSelector=!0),i==="String"&&n("String"),i==="Selector"&&n("Selector")}return t}function ZD(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var a=r[n],i=e[a];if(i)for(var o=0,s=i;o<s.length;o++){var l=s[o];(t[l]||(t[l]=[])).push(a)}}return t}function yE(e){for(var t=ZD(e),n={},r=0,a=Object.keys(t);r<a.length;r++){var i=a[r],o=t[i];o&&(n[i]=XD(o))}return n}var Us=function(){return Us=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Us.apply(this,arguments)},QD={},zc={wildcard:!0};function JD(e){return e?typeof e=="boolean"?zc:e:QD}function eL(e,t){return function(n,r){return t(e(n),e(r))}}function tL(e){return function(t,n){var r=e(t,n);if(!r)throw new Error("Syntax definition cannot be null or undefined.");return r}}function xE(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function da(e){return function(t,n){if(!n||!t)return n;if(typeof n!="object"||n===null)throw new Error("Unexpected syntax definition extension type: ".concat(n,"."));for(var r=Us({},t),a=0,i=Object.entries(n);a<i.length;a++){var o=i[a],s=o[0],l=o[1],u=e[s];r[s]=u(t[s],l)}return r}}function Mn(e,t){return t!==void 0?t:e}function Lu(e,t){return t?e?e.concat(t):t:e}function TE(e,t){if(!t)return e;if(!e)return t;for(var n=Us({},e),r=0,a=Object.entries(t);r<a.length;r++){var i=a[r],o=i[0],s=i[1];if(!s){delete n[o];continue}var l=e[o];if(!l){n[o]=s;continue}n[o]=l.concat(s)}return n}var Co=tL(da({baseSyntax:Mn,tag:xE(zc,da({wildcard:Mn})),ids:Mn,classNames:Mn,namespace:xE(zc,da({wildcard:Mn})),combinators:Lu,attributes:da({operators:Lu,caseSensitivityModifiers:Lu,unknownCaseSensitivityModifiers:Mn}),pseudoClasses:da({unknown:Mn,definitions:TE}),pseudoElements:da({unknown:Mn,notation:Mn,definitions:eL(function(e){return Array.isArray(e)?{NoArgument:e}:e},TE)})})),OS={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},DS=Co(OS,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),Gc=Co(DS,{namespace:{wildcard:!0},combinators:["~"],attributes:{operators:["^=","$=","*="]},pseudoElements:{notation:"both"},pseudoClasses:{definitions:{NoArgument:["root","last-child","first-of-type","last-of-type","only-child","only-of-type","empty","target","enabled","disabled","checked","indeterminate"],Formula:["nth-child","nth-last-child","nth-of-type","nth-last-of-type"],Selector:["not"]}}}),Vc=Co(Gc,{combinators:["||"],attributes:{caseSensitivityModifiers:["i","I","s","S"]},pseudoClasses:{definitions:{NoArgument:["any-link","local-link","target-within","scope","current","past","future","focus-within","focus-visible","read-write","read-only","placeholder-shown","default","valid","invalid","in-range","out-of-range","required","optional","blank","user-invalid"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has"]}}}),nL=Co(Vc,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),vE={css1:OS,css2:DS,css3:Gc,"selectors-3":Gc,"selectors-4":Vc,latest:Vc,progressive:nL};function hi(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function SE(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function gi(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var rL={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},aL={'"':!0,"'":!0},Pu={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},iL=6,Fu="css-selector-parser parse error: ";function oL(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,a=e.strict,i=a===void 0?!0:a,o=typeof n=="object"?n:vE[n];o.baseSyntax&&(o=Co(vE[o.baseSyntax],o));var s=o.tag?[!0,!!JD(o.tag).wildcard]:[!1,!1],l=s[0],u=s[1],d=!!o.ids,c=!!o.classNames,f=!!o.namespace,m=o.namespace&&(o.namespace===!0||o.namespace.wildcard===!0);if(f&&!l)throw new Error("".concat(Fu,"Namespaces cannot be enabled while tags are disabled."));var h=!!r,g=o.combinators?bE(o.combinators):vs,b=o.attributes?[!0,o.attributes.operators?bE(o.attributes.operators):vs,o.attributes.caseSensitivityModifiers?KD(o.attributes.caseSensitivityModifiers):Hc,o.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,vs,Hc,!1],E=b[0],T=b[1],v=b[2],S=b[3],w=S||Object.keys(v).length>0,A=o.pseudoClasses?[!0,o.pseudoClasses.definitions?yE(o.pseudoClasses.definitions):rs,o.pseudoClasses.unknown==="accept"]:[!1,rs,!1],_=A[0],D=A[1],I=A[2],O=o.pseudoElements?[!0,o.pseudoElements.notation==="singleColon"||o.pseudoElements.notation==="both",!o.pseudoElements.notation||o.pseudoElements.notation==="doubleColon"||o.pseudoElements.notation==="both",o.pseudoElements.definitions?yE(Array.isArray(o.pseudoElements.definitions)?{NoArgument:o.pseudoElements.definitions}:o.pseudoElements.definitions):rs,o.pseudoElements.unknown==="accept"]:[!1,!1,!1,rs,!1],M=O[0],P=O[1],j=O[2],z=O[3],W=O[4],H="",X=H.length,Z=0,G="",k=function(q){return G===q},ae=function(){return k("*")||hi(G)},V=function(q){Z=q,G=H.charAt(Z)},N=function(){Z++,G=H.charAt(Z)},te=function(){var q=G;return Z++,G=H.charAt(Z),q};function U(q){var ue=Math.min(X-1,Z),he=new Error("".concat(Fu).concat(q," Pos: ").concat(ue,"."));throw he.position=ue,he.name="ParserError",he}function K(q,ue){if(!q)return U(ue)}var Q=function(){K(Z<X,"Unexpected end of input.")},J=function(){return Z>=X},oe=function(q){K(Z<X,'Expected "'.concat(q,'" but end of input reached.')),K(G===q,'Expected "'.concat(q,'" but "').concat(G,'" found.')),Z++,G=H.charAt(Z)};function de(q){var ue=ie(q,Z);if(ue)return Z+=ue.length,G=H.charAt(Z),ue}function ie(q,ue){var he=H.charAt(ue),me=q[he];if(me){var Fe=ie(me.chars,ue+1);if(Fe)return Fe;if(me.self)return me.self}}function $(){for(var q=te(),ue=1;gi(G)&&ue<iL;)q+=te(),ue++;return ye(),String.fromCharCode(parseInt(q,16))}function re(q){var ue="";for(oe(q);Z<X;){if(k(q))return N(),ue;k("\\")?(N(),k(q)?(ue+=q,N()):G===`
|
|
320
|
+
`||G==="\f"?N():G==="\r"?(N(),k(`
|
|
321
|
+
`)&&N()):gi(G)?ue+=$():(ue+=G,N())):(ue+=G,N())}return ue}function se(){if(!hi(G))return null;for(var q="";k("-");)q+=G,N();for(q==="-"&&!SE(G)&&!k("\\")&&U("Identifiers cannot consist of a single hyphen."),i&&q.length>=2&&U("Identifiers cannot start with two hyphens with strict mode on."),Pu[G]&&U("Identifiers cannot start with hyphens followed by digits.");Z<X;)if(SE(G))q+=te();else if(k("\\"))N(),Q(),gi(G)?q+=$():q+=te();else break;return q}function pe(){for(var q="";Z<X&&!k(")");)if(k("\\")){if(N(),J()&&!i)return(q+"\\").trim();Q(),gi(G)?q+=$():q+=te()}else q+=te();return q.trim()}function ye(){if(G===" "||G===" "||G==="\f"||G===`
|
|
322
|
+
`){N();return}G==="\r"&&N(),G===`
|
|
323
|
+
`&&N()}function be(){for(;rL[G];)N()}function Le(q){q===void 0&&(q=!1),be();for(var ue=[ee(q)];k(",");)N(),be(),ue.push(ee(q));return{type:"Selector",rules:ue}}function xe(){oe("["),be();var q;if(k("|")){K(f,"Namespaces are not enabled."),N();var ue=se();K(ue,"Expected attribute name."),q={type:"Attribute",name:ue,namespace:{type:"NoNamespace"}}}else if(k("*")){K(f,"Namespaces are not enabled."),K(m,"Wildcard namespace is not enabled."),N(),oe("|");var he=se();K(he,"Expected attribute name."),q={type:"Attribute",name:he,namespace:{type:"WildcardNamespace"}}}else{var me=se();if(K(me,"Expected attribute name."),q={type:"Attribute",name:me},k("|")){var Fe=Z;if(N(),hi(G)){K(f,"Namespaces are not enabled.");var $e=se();K($e,"Expected attribute name."),q={type:"Attribute",name:$e,namespace:{type:"NamespaceName",name:me}}}else V(Fe)}}if(K(q.name,"Expected attribute name."),be(),J()&&!i)return q;if(k("]"))N();else{if(q.operator=de(T),K(q.operator,"Expected a valid attribute selector operator."),be(),Q(),aL[G])q.value={type:"String",value:re(G)};else if(h&&k("$")){N();var Ve=se();K(Ve,"Expected substitute name."),q.value={type:"Substitution",name:Ve}}else{var gt=se();K(gt,"Expected attribute value."),q.value={type:"String",value:gt}}if(be(),J()&&!i)return q;if(!k("]")){var tt=se();if(K(tt,"Expected end of attribute selector."),q.caseSensitivityModifier=tt,K(w,"Attribute case sensitivity modifiers are not enabled."),K(S||v[q.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),be(),J()&&!i)return q}oe("]")}return q}function Te(){for(var q="";Pu[G];)q+=te();return K(q!=="","Formula parse error."),parseInt(q)}var De=function(){return k("-")||k("+")||Pu[G]};function Be(){if(k("e")||k("o")){var q=se();if(q==="even")return be(),[2,0];if(q==="odd")return be(),[2,1]}var ue=null,he=1;if(k("-")&&(N(),he=-1),De()&&(k("+")&&N(),ue=Te(),!k("\\")&&!k("n")))return[0,ue*he];ue===null&&(ue=1),ue*=he;var me;if(k("\\")?(N(),gi(G)?me=$():me=te()):me=te(),K(me==="n",'Formula parse error: expected "n".'),be(),k("+")||k("-")){var Fe=k("+")?1:-1;return N(),be(),[ue,Fe*Te()]}else return[ue,0]}function Me(q,ue,he){var me;if(k("(")){if(N(),be(),h&&k("$")){N();var Fe=se();K(Fe,"Expected substitute name."),me={type:"Substitution",name:Fe}}else if(he.type==="String")me={type:"String",value:pe()},K(me.value,"Expected ".concat(ue," argument value."));else if(he.type==="Selector")me=Le(!0);else if(he.type==="Formula"){var $e=Be(),Ve=$e[0],gt=$e[1];if(me={type:"Formula",a:Ve,b:gt},he.ofSelector&&(be(),k("o")||k("\\"))){var tt=se();K(tt==="of","Formula of selector parse error."),be(),me={type:"FormulaOfSelector",a:Ve,b:gt,selector:ee()}}}else return U("Invalid ".concat(ue," signature."));if(be(),J()&&!i)return me;oe(")")}else K(he.optional,"Argument is required for ".concat(ue,' "').concat(q,'".'));return me}function Ue(){if(k("*"))return K(u,"Wildcard tag name is not enabled."),N(),{type:"WildcardTag"};if(hi(G)){K(l,"Tag names are not enabled.");var q=se();return K(q,"Expected tag name."),{type:"TagName",name:q}}else return U("Expected tag name.")}function Ce(){if(k("*")){var q=Z;if(N(),!k("|")||(N(),!ae()))return V(q),Ue();K(f,"Namespaces are not enabled."),K(m,"Wildcard namespace is not enabled.");var ue=Ue();return ue.namespace={type:"WildcardNamespace"},ue}else if(k("|")){K(f,"Namespaces are not enabled."),N();var ue=Ue();return ue.namespace={type:"NoNamespace"},ue}else if(hi(G)){var he=se();if(K(he,"Expected tag name."),!k("|"))return K(l,"Tag names are not enabled."),{type:"TagName",name:he};var q=Z;if(N(),!ae())return V(q),{type:"TagName",name:he};K(f,"Namespaces are not enabled.");var ue=Ue();return ue.namespace={type:"NamespaceName",name:he},ue}else return U("Expected tag name.")}function ee(q){var ue,he;q===void 0&&(q=!1);var me={type:"Rule",items:[]};if(q){var Fe=de(g);Fe&&(me.combinator=Fe,be())}for(;Z<X;)if(ae())K(me.items.length===0,"Unexpected tag/namespace start."),me.items.push(Ce());else if(k("|")){var $e=Z;if(N(),ae())K(me.items.length===0,"Unexpected tag/namespace start."),V($e),me.items.push(Ce());else{V($e);break}}else if(k(".")){K(c,"Class names are not enabled."),N();var Ve=se();K(Ve,"Expected class name."),me.items.push({type:"ClassName",name:Ve})}else if(k("#")){K(d,"IDs are not enabled."),N();var gt=se();K(gt,"Expected ID name."),me.items.push({type:"Id",name:gt})}else if(k("["))K(E,"Attributes are not enabled."),me.items.push(xe());else if(k(":")){var tt=!1,rt=!1;N(),k(":")&&(K(M,"Pseudo elements are not enabled."),K(j,"Pseudo elements double colon notation is not enabled."),tt=!0,N());var qe=se();if(K(tt||qe,"Expected pseudo-class name."),K(!tt||qe,"Expected pseudo-element name."),K(qe,"Expected pseudo-class name."),K(!tt||W||Object.prototype.hasOwnProperty.call(z,qe),'Unknown pseudo-element "'.concat(qe,'".')),rt=M&&(tt||!tt&&P&&Object.prototype.hasOwnProperty.call(z,qe)),rt){var ut=(ue=z[qe])!==null&&ue!==void 0?ue:W&&EE,Ut={type:"PseudoElement",name:qe},sn=Me(qe,"pseudo-element",ut);sn&&(K(sn.type!=="Formula"&&sn.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),Ut.argument=sn),me.items.push(Ut)}else{K(_,"Pseudo-classes are not enabled.");var ut=(he=D[qe])!==null&&he!==void 0?he:I&&EE;K(ut,'Unknown pseudo-class: "'.concat(qe,'".'));var sn=Me(qe,"pseudo-class",ut),wr={type:"PseudoClass",name:qe};sn&&(wr.argument=sn),me.items.push(wr)}}else break;if(me.items.length===0)return J()?U("Expected rule but end of input reached."):U('Expected rule but "'.concat(G,'" found.'));if(be(),!J()&&!k(",")&&!k(")")){var Fe=de(g);be(),me.nestedRule=ee(),me.nestedRule.combinator=Fe}return me}return function(q){if(typeof q!="string")throw new Error("".concat(Fu,"Expected string input."));return H=q,X=H.length,Z=0,G=H.charAt(0),Le()}}var mt=function(){return mt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},mt.apply(this,arguments)};function Nt(e){return function(t,n){var r;return r={},r[t]=function(a){return mt({type:e},a)},r[n]=function(a){return typeof a=="object"&&a!==null&&a.type===e},r}}mt(mt(mt(mt(mt(mt(mt(mt(mt(mt(mt(mt(mt(mt(mt(mt({},Nt("Selector")("selector","isSelector")),Nt("Rule")("rule","isRule")),Nt("TagName")("tagName","isTagName")),Nt("Id")("id","isId")),Nt("ClassName")("className","isClassName")),Nt("WildcardTag")("wildcardTag","isWildcardTag")),Nt("NamespaceName")("namespaceName","isNamespaceName")),Nt("WildcardNamespace")("wildcardNamespace","isWildcardNamespace")),Nt("NoNamespace")("noNamespace","isNoNamespace")),Nt("Attribute")("attribute","isAttribute")),Nt("PseudoClass")("pseudoClass","isPseudoClass")),Nt("PseudoElement")("pseudoElement","isPseudoElement")),Nt("String")("string","isString")),Nt("Formula")("formula","isFormula")),Nt("FormulaOfSelector")("formulaOfSelector","isFormulaOfSelector")),Nt("Substitution")("substitution","isSubstitution"));const sL=oL({syntax:"selectors-4"});function lL(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return sL(e)}const LS="֑-߿יִ-﷽ﹰ-ﻼ",PS="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",uL=new RegExp("^[^"+PS+"]*["+LS+"]"),cL=new RegExp("^[^"+LS+"]*["+PS+"]");function dL(e){const t=String(e||"");return uL.test(t)?"rtl":cL.test(t)?"ltr":"neutral"}function pL(e,t){const n=e.schema,r=e.language,a=e.direction,i=e.editableOrEditingHost;let o;if(t.type==="element"){const u=t.properties.xmlLang||t.properties.lang,d=t.properties.type||"text",c=AE(t);u!=null&&(e.language=String(u)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=Yn),c==="rtl"?o=c:c==="ltr"||c!=="auto"&&t.tagName==="html"||c!=="auto"&&t.tagName==="input"&&d==="tel"?o="ltr":(c==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?o=Mu(Sa(t)):t.tagName==="input"&&(d==="email"||d==="search"||d==="tel"||d==="text")?o=t.properties.value?Mu(String(t.properties.value)):"ltr":It(t,l)),o&&(e.direction=o)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return s;function s(){e.schema=n,e.language=r,e.direction=a,e.editableOrEditingHost=i}function l(u){if(u.type==="text")return o=Mu(u.value),o?Ms:void 0;if(u!==t&&u.type==="element"&&(u.tagName==="bdi"||u.tagName==="script"||u.tagName==="style"||u.tagName==="textare"||AE(u)))return Pi}}function Mu(e){const t=dL(e);return t==="neutral"?void 0:t}function AE(e){const t=e.type==="element"&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}function fL(e,t,n){const r=ti(n,e.name),a=t.properties[r.property];let i=mL(a,r);if(!e.value)return i!==void 0;e.value.type;let o=e.value.value;if(e.caseSensitivityModifier==="i"&&(o=o.toLowerCase(),i&&(i=i.toLowerCase())),i!==void 0)switch(e.operator){case"=":return o===i;case"$=":return o===i.slice(-o.length);case"*=":return i.includes(o);case"^=":return o===i.slice(0,o.length);case"|=":return o===i||o===i.slice(0,o.length)&&i.charAt(o.length)==="-";case"~=":return o===i||Ua(i).includes(o)}return!1}function mL(e,t){if(e!=null)if(typeof e=="boolean"){if(e)return t.attribute}else if(Array.isArray(e)){if(e.length>0)return(t.commaSeparated?vp:Tp)(e)}else return String(e)}const hL=[];function gL(e,t){return(t.properties.className||hL).includes(e.name)}function bL(e,t){return t.properties.id===e.name}function EL(e,t){return e.name===t.tagName}function yL(e,t){return function(n,r){let a=wE(n,"tag");const i=wE(r??"*","range"),o=[];let s=-1;for(;++s<i.length;){const l=i[s].toLowerCase();if(!t&&l==="*")continue;let u=-1;const d=[];for(;++u<a.length;)if(e(a[u].toLowerCase(),l)){if(!t)return a[u];o.push(a[u])}else d.push(a[u]);a=d}return t?o:void 0}}const xL=yL(function(e,t){const n=e.split("-"),r=t.split("-");let a=0,i=0;if(r[i]!=="*"&&n[a]!==r[i])return!1;for(a++,i++;i<r.length;){if(r[i]==="*"){i++;continue}if(!n[a])return!1;if(n[a]===r[i]){a++,i++;continue}if(n[a].length===1)return!1;a++}return!0},!0);function wE(e,t){const n=e&&typeof e=="string"?[e]:e;if(!n||typeof n!="object"||!("length"in n))throw new Error("Invalid "+t+" `"+n+"`, expected non-empty string");return n}const TL={}.hasOwnProperty;function Hr(e,t){const n=e.type==="element"&&TL.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const vL=/[ \t\n\f\r]/g;function FS(e){return typeof e=="object"?e.type==="text"?_E(e.value):!1:_E(e)}function _E(e){return e.replace(vL,"")===""}const SL=new Set([9,10,12,13,32]),NE=48,AL=57;function wL(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=i(),a=o();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(a??1),s(),t<e.length?(r=i(),s(),a=o()):r=a=0),a===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*a];function i(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function o(){const l=t;let u=0;for(;t<e.length&&e.charCodeAt(t)>=NE&&e.charCodeAt(t)<=AL;)u=u*10+(e.charCodeAt(t)-NE),t++;return t===l?null:u}function s(){for(;t<e.length&&SL.has(e.charCodeAt(t));)t++}}var _L={trueFunc:function(){return!0},falseFunc:function(){return!1}};const CE=rl(_L);function NL(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return CE.falseFunc;if(t===-1)return i=>i<=n;if(t===0)return i=>i===n;if(t===1)return n<0?CE.trueFunc:i=>i>=n;const r=Math.abs(t),a=(n%r+r)%r;return t>1?i=>i>=n&&i%r===a:i=>i<=n&&i%r===a}function kE(e){return NL(wL(e))}const IE={}.hasOwnProperty;function lb(e,t){const n=t||{};function r(a,...i){let o=r.invalid;const s=r.handlers;if(a&&IE.call(a,e)){const l=String(a[e]);o=IE.call(s,l)?s[l]:r.unknown}if(o)return o.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const CL=kE.default||kE,kL=lb("name",{handlers:{"any-link":IL,blank:RL,checked:OL,dir:DL,disabled:MS,empty:LL,enabled:PL,"first-child":FL,"first-of-type":ML,has:BL,is:BS,lang:$L,"last-child":jL,"last-of-type":HL,not:zL,"nth-child":GL,"nth-last-child":VL,"nth-last-of-type":WL,"nth-of-type":qL,"only-child":YL,"only-of-type":KL,optional:XL,"read-only":ZL,"read-write":US,required:$S,root:QL,scope:JL},invalid:UL,unknown:e2});function IL(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&Hr(t,"href")}function On(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function RL(e,t){return!jS(t,n);function n(r){return r.type==="element"||r.type==="text"&&!FS(r)}}function OL(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&Hr(t,"checked")):t.tagName==="option"?Hr(t,"selected"):!1}function DL(e,t,n,r,a){return e.argument,e.argument.type,a.direction===e.argument.value}function MS(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&Hr(t,"disabled")}function LL(e,t){return!jS(t,n);function n(r){return r.type==="element"||r.type==="text"}}function PL(e,t){return!MS(e,t)}function FL(e,t,n,r,a){return On(a,e),a.elementIndex===0}function ML(e,t,n,r,a){return On(a,e),a.typeIndex===0}function Dl(e){let t=e._cachedFn;if(!t){const n=e.argument;if(n.type!=="Formula")throw new Error("Expected `nth` formula, such as `even` or `2n+1` (`of` is not yet supported)");t=CL(n.a+"n+"+n.b),e._cachedFn=t}return t}function BL(e,t,n,r,a){e.argument,e.argument.type;const i={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return ub(i,{type:"root",children:t.children}),i.results.length>0}function UL(){}function BS(e,t,n,r,a){e.argument,e.argument.type;const i={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return ub(i,t),i.results[0]===t}function $L(e,t,n,r,a){return e.argument,e.argument.type,a.language!==""&&a.language!==void 0&&xL(a.language,Xi(e.argument.value)).length>0}function jL(e,t,n,r,a){return On(a,e),!!(a.elementCount&&a.elementIndex===a.elementCount-1)}function HL(e,t,n,r,a){return On(a,e),typeof a.typeIndex=="number"&&typeof a.typeCount=="number"&&a.typeIndex===a.typeCount-1}function zL(e,t,n,r,a){return!BS(e,t,n,r,a)}function GL(e,t,n,r,a){const i=Dl(e);return On(a,e),typeof a.elementIndex=="number"&&i(a.elementIndex)}function VL(e,t,n,r,a){const i=Dl(e);return On(a,e),!!(typeof a.elementCount=="number"&&typeof a.elementIndex=="number"&&i(a.elementCount-a.elementIndex-1))}function WL(e,t,n,r,a){const i=Dl(e);return On(a,e),typeof a.typeCount=="number"&&typeof a.typeIndex=="number"&&i(a.typeCount-1-a.typeIndex)}function qL(e,t,n,r,a){const i=Dl(e);return On(a,e),typeof a.typeIndex=="number"&&i(a.typeIndex)}function YL(e,t,n,r,a){return On(a,e),a.elementCount===1}function KL(e,t,n,r,a){return On(a,e),a.typeCount===1}function XL(e,t){return!$S(e,t)}function ZL(e,t,n,r,a){return!US(e,t,n,r,a)}function US(e,t,n,r,a){return t.tagName==="input"||t.tagName==="textarea"?!Hr(t,"readOnly")&&!Hr(t,"disabled"):!!a.editableOrEditingHost}function $S(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Hr(t,"required")}function QL(e,t,n,r,a){return!!((!r||r.type==="root")&&a.schema&&(a.schema.space==="html"||a.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function JL(e,t,n,r,a){return a.scopeElements.includes(t)}function jS(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function e2(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function t2(e,t,n,r,a){for(const i of e.items)if(i.type==="Attribute"){if(!fL(i,t,a.schema))return!1}else if(i.type==="Id"){if(!bL(i,t))return!1}else if(i.type==="ClassName"){if(!gL(i,t))return!1}else if(i.type==="PseudoClass"){if(!kL(i,t,n,r,a))return!1}else{if(i.type==="PseudoElement")throw new Error("Invalid selector: `::"+i.name+"`");if(i.type==="TagName"&&!EL(i,t))return!1}return!0}const n2=[];function ub(e,t){t&&HS(e,[],t,void 0,void 0,t)}function Bu(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function r2(e,t,n,r){const a=Ss(t.descendant,t.directChild);let i,o=-1;const s={count:0,types:new Map},l={count:0,types:new Map};for(;++o<n.children.length;)RE(s,n.children[o]);for(o=-1;++o<n.children.length;){const u=n.children[o],d=u.type==="element"?u.tagName.toUpperCase():void 0;if(e.elementIndex=l.count,e.typeIndex=d&&l.types.get(d)||0,e.elementCount=s.count,e.typeCount=d?s.types.get(d):0,"children"in u){const c=Ss(a,i),f=HS(e,c,n.children[o],o,n,r);i=Ss(f.generalSibling,f.adjacentSibling)}if(e.one&&e.found)break;RE(l,n.children[o])}}function a2(e,t,n,r,a){const i={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let o=-1;for(;++o<t.length;){const s=t[o];if(e.one&&e.found)break;if(e.shallow&&s.nestedRule)throw new Error("Expected selector without nesting");if(t2(s,n,r,a,e)){const l=s.nestedRule;if(l){const u=l.combinator==="+"?"adjacentSibling":l.combinator==="~"?"generalSibling":l.combinator===">"?"directChild":"descendant";Bu(i,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}s.combinator===void 0?Bu(i,"descendant",s):s.combinator==="~"&&Bu(i,"generalSibling",s)}return i}function Ss(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:n2}function RE(e,t){if(t.type==="element"){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}function HS(e,t,n,r,a,i){let o={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const s=pL(e,n);if(n.type==="element"){let l=e.rootQuery.rules;a&&a!==i&&(l=e.rootQuery.rules.filter(u=>u.combinator===void 0||u.combinator===">"&&a===i)),o=a2(e,Ss(t,l),n,r,a)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&r2(e,o,n,i),s(),o}function i2(e,t,n){const r=o2(e,t);return ub(r,t||void 0),r.results}function o2(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:lL(e),schema:aa,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const zS=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=zS(n.children))}),t),s2=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const a=i2(t,r);a&&a.length>0&&It(r,a,(i,o,s)=>{n(i,o,s)});return}It(r,(a,i,o)=>{n(a,i,o)})}}},l2=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),u2=(e=[],t)=>{let n=t;for(;n>-1;){if(n--,!e[n])return;if(e[n]&&e[n].value&&e[n].value.replace(/(\n|\s)/g,"")!==""||e[n].type!=="text")return!/^rehype:/.test(e[n].value)||e[n].type!=="comment"?void 0:e[n]}},GS=(e=[],t,n,r)=>{let a=t;for(;a<e.length;)if(a++,n){const i=e[a];if(i&&i.value&&i.value.replace(/(\n|\s)/g,"")!==""||e[a]&&e[a].type==="element")return i.tagName===n?i:void 0}else{const i=e[a];if(!i||i.type==="element"||i.type==="text"&&i.value.replace(/(\n|\s)/g,"")!=="")return;if(i.type&&/^(comment|raw)$/ig.test(i.type))return i.value&&!/^rehype:/.test(i.value.replace(/^(\s+)?<!--(.*?)-->/,"$2")||"")?void 0:r?GS(e,a,"pre",r)?void 0:(i.value=(i.value||"").replace(/^(\n|\s)+/,""),i):(i.value=(i.value||"").replace(/^(\n|\s)+/,""),i)}},OE=({value:e=""})=>{const t=l2(e.replace(/^<!--(.*?)-->/,"$1").replace(/^rehype:/,""));return Object.keys(t).forEach(n=>{t[n]==="true"&&(t[n]=!0),t[n]==="false"&&(t[n]=!1),typeof t[n]=="string"&&!/^0/.test(t[n])&&!isNaN(+t[n])&&(t[n]=+t[n])}),t},DE=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},c2=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{It(r,"element",(a,i,o)=>{if(n&&a.tagName==="pre"&&a&&Array.isArray(a.children)&&o&&Array.isArray(o.children)&&o.children.length>1){const s=a.children[0];if(s&&s.tagName==="code"&&typeof i=="number"){const l=u2(o.children,i);if(l){const u=OE(l);Object.keys(u).length>0&&(a.properties={...a.properties,"data-type":"rehyp"},s.properties=DE(s.properties,u,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(a.tagName)&&o&&Array.isArray(o.children)&&typeof i=="number"){const s=GS(o.children,i,"",n);if(s){const l=OE(s);Object.keys(l).length>0&&(a.properties=DE(a.properties,l,t))}}})}},VS=-1,Ll=0,$s=1,js=2,cb=3,db=4,pb=5,fb=6,WS=7,qS=8,LE=typeof self=="object"?self:globalThis,d2=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,o]=t[a];switch(i){case Ll:case VS:return n(o,a);case $s:{const s=n([],a);for(const l of o)s.push(r(l));return s}case js:{const s=n({},a);for(const[l,u]of o)s[r(l)]=r(u);return s}case cb:return n(new Date(o),a);case db:{const{source:s,flags:l}=o;return n(new RegExp(s,l),a)}case pb:{const s=n(new Map,a);for(const[l,u]of o)s.set(r(l),r(u));return s}case fb:{const s=n(new Set,a);for(const l of o)s.add(r(l));return s}case WS:{const{name:s,message:l}=o;return n(new LE[s](l),a)}case qS:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a)}return n(new LE[i](o),a)};return r},PE=e=>d2(new Map,e)(0),pa="",{toString:p2}={},{keys:f2}=Object,bi=e=>{const t=typeof e;if(t!=="object"||!e)return[Ll,t];const n=p2.call(e).slice(8,-1);switch(n){case"Array":return[$s,pa];case"Object":return[js,pa];case"Date":return[cb,pa];case"RegExp":return[db,pa];case"Map":return[pb,pa];case"Set":return[fb,pa]}return n.includes("Array")?[$s,n]:n.includes("Error")?[WS,n]:[js,n]},as=([e,t])=>e===Ll&&(t==="function"||t==="symbol"),m2=(e,t,n,r)=>{const a=(o,s)=>{const l=r.push(o)-1;return n.set(s,l),l},i=o=>{if(n.has(o))return n.get(o);let[s,l]=bi(o);switch(s){case Ll:{let d=o;switch(l){case"bigint":s=qS,d=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return a([VS],o)}return a([s,d],o)}case $s:{if(l)return a([l,[...o]],o);const d=[],c=a([s,d],o);for(const f of o)d.push(i(f));return c}case js:{if(l)switch(l){case"BigInt":return a([l,o.toString()],o);case"Boolean":case"Number":case"String":return a([l,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const d=[],c=a([s,d],o);for(const f of f2(o))(e||!as(bi(o[f])))&&d.push([i(f),i(o[f])]);return c}case cb:return a([s,o.toISOString()],o);case db:{const{source:d,flags:c}=o;return a([s,{source:d,flags:c}],o)}case pb:{const d=[],c=a([s,d],o);for(const[f,m]of o)(e||!(as(bi(f))||as(bi(m))))&&d.push([i(f),i(m)]);return c}case fb:{const d=[],c=a([s,d],o);for(const f of o)(e||!as(bi(f)))&&d.push(i(f));return c}}const{message:u}=o;return a([s,{name:l,message:u}],o)};return i},FE=(e,{json:t,lossy:n}={})=>{const r=[];return m2(!(t||n),!!t,new Map,r)(e),r},fn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?PE(FE(e,t)):structuredClone(e):(e,t)=>PE(FE(e,t)),ME=/[#.]/g;function h2(e,t){const n=e||"",r={};let a=0,i,o;for(;a<n.length;){ME.lastIndex=a;const s=ME.exec(n),l=n.slice(a,s?s.index:n.length);l&&(i?i==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:o=l,a+=l.length),s&&(i=s[0],a++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}const Wc={}.hasOwnProperty;function YS(e,t,n){const r=n&&y2(n);function a(i,o,...s){let l=-1,u;if(i==null){u={type:"root",children:[]};const d=o;s.unshift(d)}else if(u=h2(i,t),u.tagName=u.tagName.toLowerCase(),r&&Wc.call(r,u.tagName)&&(u.tagName=r[u.tagName]),g2(o))s.unshift(o);else{let d;for(d in o)Wc.call(o,d)&&b2(e,u.properties,d,o[d])}for(;++l<s.length;)qc(u.children,s[l]);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return a}function g2(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const o of i)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function b2(e,t,n,r){const a=ti(e,n);let i=-1,o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?a.spaceSeparated?o=Ua(r):a.commaSeparated?o=Xi(r):a.commaOrSpaceSeparated?o=Ua(Xi(r).join(" ")):o=BE(a,a.property,r):Array.isArray(r)?o=r.concat():o=a.property==="style"?E2(r):String(r);if(Array.isArray(o)){const s=[];for(;++i<o.length;){const l=BE(a,a.property,o[i]);s[i]=l}o=s}if(a.property==="className"&&Array.isArray(t.className)){const s=o;o=t.className.concat(s)}t[a.property]=o}}function qc(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)qc(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?qc(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function BE(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||jr(n)===jr(t)))return!0}return n}function E2(e){const t=[];let n;for(n in e)Wc.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function y2(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const x2=["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"],T2=YS(aa,"div"),v2=YS(Yn,"g",x2);function S2(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=t.length){let o=0;for(;;){let s=n[o];if(s===void 0){const l=UE(t,n[o-1]);s=l===-1?t.length+1:l+1,n[o]=s}if(s>i)return{line:o+1,column:i-(o>0?n[o-1]:0)+1,offset:i};o++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const s=n[n.length-1],l=UE(t,s),u=l===-1?t.length+1:l+1;if(s===u)break;n.push(u)}const o=(i.line>1?n[i.line-2]:0)+i.column-1;if(o<n[i.line-1])return o}}}function UE(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
324
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Pr={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/"},KS={}.hasOwnProperty,A2=Object.prototype;function w2(e,t){const n=t||{};return mb({file:n.file||void 0,location:!1,schema:n.space==="svg"?Yn:aa,verbose:n.verbose||!1},e)}function mb(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},As(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:XS(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),o=S2(i),s=o.toPoint(0),l=o.toPoint(i.length);n.position={start:s,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},As(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},As(e,r,n),n}default:return n=_2(e,t),n}}function XS(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=mb(e,t[n]);r.push(a)}return r}function _2(e,t){const n=e.schema;e.schema=t.namespaceURI===Pr.svg?Yn:aa;let r=-1;const a={};for(;++r<t.attrs.length;){const s=t.attrs[r],l=(s.prefix?s.prefix+":":"")+s.name;KS.call(A2,l)||(a[l]=s.value)}const o=(e.schema.space==="svg"?v2:T2)(t.tagName,a,XS(e,t.childNodes));if(As(e,t,o),o.tagName==="template"){const s=t,l=s.sourceCodeLocation,u=l&&l.startTag&&Aa(l.startTag),d=l&&l.endTag&&Aa(l.endTag),c=mb(e,s.content);u&&d&&e.file&&(c.position={start:u.end,end:d.start}),o.content=c}return e.schema=n,o}function As(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=N2(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function N2(e,t,n){const r=Aa(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const i={};let o;if(n.attrs)for(o in n.attrs)KS.call(n.attrs,o)&&(i[ti(e.schema,o).property]=Aa(n.attrs[o]));n.startTag;const s=Aa(n.startTag),l=n.endTag?Aa(n.endTag):void 0,u={opening:s};l&&(u.closing=l),u.properties=i,t.data={position:u}}}return r}function Aa(e){const t=$E({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=$E({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function $E(e){return e.line&&e.column?e:void 0}const C2={},k2={}.hasOwnProperty,ZS=lb("type",{handlers:{root:R2,element:F2,text:L2,comment:P2,doctype:D2}});function I2(e,t){const r=(t||C2).space;return ZS(e,r==="svg"?Yn:aa)}function R2(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=hb(e.children,n,t),ai(e,n),n}function O2(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=hb(e.children,n,t),ai(e,n),n}function D2(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ai(e,t),t}function L2(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ai(e,t),t}function P2(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ai(e,t),t}function F2(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Yn);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&k2.call(e.properties,i)){const l=M2(r,i,e.properties[i]);l&&a.push(l)}}const o=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Pr[o],childNodes:[],parentNode:null};return s.childNodes=hb(e.children,s,r),ai(e,s),e.tagName==="template"&&e.content&&(s.content=O2(e.content,r)),s}function M2(e,t,n){const r=ti(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?vp(n):Tp(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=Pr[r.space]}return a}function hb(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=ZS(e[r],n);i.parentNode=t,a.push(i)}return a}function ai(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,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})}const B2=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],U2=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]),Ye="�";var L;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(L||(L={}));const $t={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function QS(e){return e>=55296&&e<=57343}function $2(e){return e>=56320&&e<=57343}function j2(e,t){return(e-55296)*1024+9216+t}function JS(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function eA(e){return e>=64976&&e<=65007||U2.has(e)}var ne;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ne||(ne={}));const H2=65536;class z2{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=H2,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:i}=this,o=a+n,s=i+n;return{code:t,startLine:r,endLine:r,startCol:o,endCol:o,startOffset:s,endOffset:s}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if($2(n))return this.pos++,this._addGap(),j2(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,L.EOF;return this._err(ne.surrogateInInputStream),t}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(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,L.EOF;const r=this.html.charCodeAt(n);return r===L.CARRIAGE_RETURN?L.LINE_FEED:r}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,L.EOF;let t=this.html.charCodeAt(this.pos);return t===L.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,L.LINE_FEED):t===L.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,QS(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===L.LINE_FEED||t===L.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){JS(t)?this._err(ne.controlCharacterInInputStream):eA(t)&&this._err(ne.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ke;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(ke||(ke={}));function tA(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}const nA=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſ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;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊ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;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦ր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áΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑Ȁ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;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹ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;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ā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ã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;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耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Ā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㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),G2=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Uu;const V2=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]]),W2=(Uu=String.fromCodePoint)!==null&&Uu!==void 0?Uu:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function q2(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=V2.get(e))!==null&&t!==void 0?t:e}var yt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(yt||(yt={}));const Y2=32;var sr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(sr||(sr={}));function Yc(e){return e>=yt.ZERO&&e<=yt.NINE}function K2(e){return e>=yt.UPPER_A&&e<=yt.UPPER_F||e>=yt.LOWER_A&&e<=yt.LOWER_F}function X2(e){return e>=yt.UPPER_A&&e<=yt.UPPER_Z||e>=yt.LOWER_A&&e<=yt.LOWER_Z||Yc(e)}function Z2(e){return e===yt.EQUALS||X2(e)}var Et;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Et||(Et={}));var Bn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Bn||(Bn={}));class rA{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Et.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Bn.Strict}startEntity(t){this.decodeMode=t,this.state=Et.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Et.EntityStart:return t.charCodeAt(n)===yt.NUM?(this.state=Et.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Et.NamedEntity,this.stateNamedEntity(t,n));case Et.NumericStart:return this.stateNumericStart(t,n);case Et.NumericDecimal:return this.stateNumericDecimal(t,n);case Et.NumericHex:return this.stateNumericHex(t,n);case Et.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Y2)===yt.LOWER_X?(this.state=Et.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Et.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+parseInt(t.substr(n,i),a),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Yc(a)||K2(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Yc(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===yt.SEMI)this.consumed+=1;else if(this.decodeMode===Bn.Strict)return 0;return this.emitCodePoint(q2(this.result),this.consumed),this.errors&&(t!==yt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&sr.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const o=t.charCodeAt(n);if(this.treeIndex=Q2(r,a,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return this.result===0||this.decodeMode===Bn.Attribute&&(i===0||Z2(o))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&sr.VALUE_LENGTH)>>14,i!==0){if(o===yt.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Bn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&sr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~sr.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Et.NamedEntity:return this.result!==0&&(this.decodeMode!==Bn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Et.NumericDecimal:return this.emitNumericEntity(0,2);case Et.NumericHex:return this.emitNumericEntity(0,3);case Et.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Et.EntityStart:return 0}}}function aA(e){let t="";const n=new rA(e,r=>t+=W2(r));return function(a,i){let o=0,s=0;for(;(s=a.indexOf("&",s))>=0;){t+=a.slice(o,s),n.startEntity(i);const u=n.write(a,s+1);if(u<0){o=s+n.end();break}o=s+u,s=u===0?o+1:o}const l=t+a.slice(o);return t="",l}}function Q2(e,t,n,r){const a=(t&sr.BRANCH_LENGTH)>>7,i=t&sr.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const l=r-i;return l<0||l>=a?-1:e[n+l]-1}let o=n,s=o+a-1;for(;o<=s;){const l=o+s>>>1,u=e[l];if(u<r)o=l+1;else if(u>r)s=l-1;else return e[l+a]}return-1}aA(nA);aA(G2);var le;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(le||(le={}));var Fr;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Fr||(Fr={}));var Jt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Jt||(Jt={}));var Y;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(Y||(Y={}));var y;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(y||(y={}));const J2=new Map([[Y.A,y.A],[Y.ADDRESS,y.ADDRESS],[Y.ANNOTATION_XML,y.ANNOTATION_XML],[Y.APPLET,y.APPLET],[Y.AREA,y.AREA],[Y.ARTICLE,y.ARTICLE],[Y.ASIDE,y.ASIDE],[Y.B,y.B],[Y.BASE,y.BASE],[Y.BASEFONT,y.BASEFONT],[Y.BGSOUND,y.BGSOUND],[Y.BIG,y.BIG],[Y.BLOCKQUOTE,y.BLOCKQUOTE],[Y.BODY,y.BODY],[Y.BR,y.BR],[Y.BUTTON,y.BUTTON],[Y.CAPTION,y.CAPTION],[Y.CENTER,y.CENTER],[Y.CODE,y.CODE],[Y.COL,y.COL],[Y.COLGROUP,y.COLGROUP],[Y.DD,y.DD],[Y.DESC,y.DESC],[Y.DETAILS,y.DETAILS],[Y.DIALOG,y.DIALOG],[Y.DIR,y.DIR],[Y.DIV,y.DIV],[Y.DL,y.DL],[Y.DT,y.DT],[Y.EM,y.EM],[Y.EMBED,y.EMBED],[Y.FIELDSET,y.FIELDSET],[Y.FIGCAPTION,y.FIGCAPTION],[Y.FIGURE,y.FIGURE],[Y.FONT,y.FONT],[Y.FOOTER,y.FOOTER],[Y.FOREIGN_OBJECT,y.FOREIGN_OBJECT],[Y.FORM,y.FORM],[Y.FRAME,y.FRAME],[Y.FRAMESET,y.FRAMESET],[Y.H1,y.H1],[Y.H2,y.H2],[Y.H3,y.H3],[Y.H4,y.H4],[Y.H5,y.H5],[Y.H6,y.H6],[Y.HEAD,y.HEAD],[Y.HEADER,y.HEADER],[Y.HGROUP,y.HGROUP],[Y.HR,y.HR],[Y.HTML,y.HTML],[Y.I,y.I],[Y.IMG,y.IMG],[Y.IMAGE,y.IMAGE],[Y.INPUT,y.INPUT],[Y.IFRAME,y.IFRAME],[Y.KEYGEN,y.KEYGEN],[Y.LABEL,y.LABEL],[Y.LI,y.LI],[Y.LINK,y.LINK],[Y.LISTING,y.LISTING],[Y.MAIN,y.MAIN],[Y.MALIGNMARK,y.MALIGNMARK],[Y.MARQUEE,y.MARQUEE],[Y.MATH,y.MATH],[Y.MENU,y.MENU],[Y.META,y.META],[Y.MGLYPH,y.MGLYPH],[Y.MI,y.MI],[Y.MO,y.MO],[Y.MN,y.MN],[Y.MS,y.MS],[Y.MTEXT,y.MTEXT],[Y.NAV,y.NAV],[Y.NOBR,y.NOBR],[Y.NOFRAMES,y.NOFRAMES],[Y.NOEMBED,y.NOEMBED],[Y.NOSCRIPT,y.NOSCRIPT],[Y.OBJECT,y.OBJECT],[Y.OL,y.OL],[Y.OPTGROUP,y.OPTGROUP],[Y.OPTION,y.OPTION],[Y.P,y.P],[Y.PARAM,y.PARAM],[Y.PLAINTEXT,y.PLAINTEXT],[Y.PRE,y.PRE],[Y.RB,y.RB],[Y.RP,y.RP],[Y.RT,y.RT],[Y.RTC,y.RTC],[Y.RUBY,y.RUBY],[Y.S,y.S],[Y.SCRIPT,y.SCRIPT],[Y.SEARCH,y.SEARCH],[Y.SECTION,y.SECTION],[Y.SELECT,y.SELECT],[Y.SOURCE,y.SOURCE],[Y.SMALL,y.SMALL],[Y.SPAN,y.SPAN],[Y.STRIKE,y.STRIKE],[Y.STRONG,y.STRONG],[Y.STYLE,y.STYLE],[Y.SUB,y.SUB],[Y.SUMMARY,y.SUMMARY],[Y.SUP,y.SUP],[Y.TABLE,y.TABLE],[Y.TBODY,y.TBODY],[Y.TEMPLATE,y.TEMPLATE],[Y.TEXTAREA,y.TEXTAREA],[Y.TFOOT,y.TFOOT],[Y.TD,y.TD],[Y.TH,y.TH],[Y.THEAD,y.THEAD],[Y.TITLE,y.TITLE],[Y.TR,y.TR],[Y.TRACK,y.TRACK],[Y.TT,y.TT],[Y.U,y.U],[Y.UL,y.UL],[Y.SVG,y.SVG],[Y.VAR,y.VAR],[Y.WBR,y.WBR],[Y.XMP,y.XMP]]);function ii(e){var t;return(t=J2.get(e))!==null&&t!==void 0?t:y.UNKNOWN}const ce=y,eP={[le.HTML]:new Set([ce.ADDRESS,ce.APPLET,ce.AREA,ce.ARTICLE,ce.ASIDE,ce.BASE,ce.BASEFONT,ce.BGSOUND,ce.BLOCKQUOTE,ce.BODY,ce.BR,ce.BUTTON,ce.CAPTION,ce.CENTER,ce.COL,ce.COLGROUP,ce.DD,ce.DETAILS,ce.DIR,ce.DIV,ce.DL,ce.DT,ce.EMBED,ce.FIELDSET,ce.FIGCAPTION,ce.FIGURE,ce.FOOTER,ce.FORM,ce.FRAME,ce.FRAMESET,ce.H1,ce.H2,ce.H3,ce.H4,ce.H5,ce.H6,ce.HEAD,ce.HEADER,ce.HGROUP,ce.HR,ce.HTML,ce.IFRAME,ce.IMG,ce.INPUT,ce.LI,ce.LINK,ce.LISTING,ce.MAIN,ce.MARQUEE,ce.MENU,ce.META,ce.NAV,ce.NOEMBED,ce.NOFRAMES,ce.NOSCRIPT,ce.OBJECT,ce.OL,ce.P,ce.PARAM,ce.PLAINTEXT,ce.PRE,ce.SCRIPT,ce.SECTION,ce.SELECT,ce.SOURCE,ce.STYLE,ce.SUMMARY,ce.TABLE,ce.TBODY,ce.TD,ce.TEMPLATE,ce.TEXTAREA,ce.TFOOT,ce.TH,ce.THEAD,ce.TITLE,ce.TR,ce.TRACK,ce.UL,ce.WBR,ce.XMP]),[le.MATHML]:new Set([ce.MI,ce.MO,ce.MN,ce.MS,ce.MTEXT,ce.ANNOTATION_XML]),[le.SVG]:new Set([ce.TITLE,ce.FOREIGN_OBJECT,ce.DESC]),[le.XLINK]:new Set,[le.XML]:new Set,[le.XMLNS]:new Set},Kc=new Set([ce.H1,ce.H2,ce.H3,ce.H4,ce.H5,ce.H6]);Y.STYLE,Y.SCRIPT,Y.XMP,Y.IFRAME,Y.NOEMBED,Y.NOFRAMES,Y.PLAINTEXT;var F;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(F||(F={}));const ot={DATA:F.DATA,RCDATA:F.RCDATA,RAWTEXT:F.RAWTEXT,SCRIPT_DATA:F.SCRIPT_DATA,PLAINTEXT:F.PLAINTEXT,CDATA_SECTION:F.CDATA_SECTION};function tP(e){return e>=L.DIGIT_0&&e<=L.DIGIT_9}function Ni(e){return e>=L.LATIN_CAPITAL_A&&e<=L.LATIN_CAPITAL_Z}function nP(e){return e>=L.LATIN_SMALL_A&&e<=L.LATIN_SMALL_Z}function er(e){return nP(e)||Ni(e)}function jE(e){return er(e)||tP(e)}function is(e){return e+32}function iA(e){return e===L.SPACE||e===L.LINE_FEED||e===L.TABULATION||e===L.FORM_FEED}function HE(e){return iA(e)||e===L.SOLIDUS||e===L.GREATER_THAN_SIGN}function rP(e){return e===L.NULL?ne.nullCharacterReference:e>1114111?ne.characterReferenceOutsideUnicodeRange:QS(e)?ne.surrogateCharacterReference:eA(e)?ne.noncharacterCharacterReference:JS(e)||e===L.CARRIAGE_RETURN?ne.controlCharacterReference:null}class aP{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=F.DATA,this.returnState=F.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new z2(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new rA(nA,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ne.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(ne.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=rP(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ke.START_TAG,tagName:"",tagID:y.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ke.END_TAG,tagName:"",tagID:y.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:ke.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:ke.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(tA(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(ne.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=ii(t.tagName),t.type===ke.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ne.endTagWithAttributes),t.selfClosing&&this._err(ne.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case ke.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ke.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ke.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:ke.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=iA(t)?ke.WHITESPACE_CHARACTER:t===L.NULL?ke.NULL_CHARACTER:ke.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(ke.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=F.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Bn.Attribute:Bn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===F.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===F.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case F.DATA:{this._stateData(t);break}case F.RCDATA:{this._stateRcdata(t);break}case F.RAWTEXT:{this._stateRawtext(t);break}case F.SCRIPT_DATA:{this._stateScriptData(t);break}case F.PLAINTEXT:{this._statePlaintext(t);break}case F.TAG_OPEN:{this._stateTagOpen(t);break}case F.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case F.TAG_NAME:{this._stateTagName(t);break}case F.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case F.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case F.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case F.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case F.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case F.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case F.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case F.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case F.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case F.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case F.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case F.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case F.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case F.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case F.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case F.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case F.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case F.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case F.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case F.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case F.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case F.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case F.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case F.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case F.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case F.BOGUS_COMMENT:{this._stateBogusComment(t);break}case F.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case F.COMMENT_START:{this._stateCommentStart(t);break}case F.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case F.COMMENT:{this._stateComment(t);break}case F.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case F.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case F.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case F.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case F.COMMENT_END:{this._stateCommentEnd(t);break}case F.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case F.DOCTYPE:{this._stateDoctype(t);break}case F.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case F.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case F.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case F.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case F.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case F.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case F.CDATA_SECTION:{this._stateCdataSection(t);break}case F.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case F.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case F.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case F.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case L.LESS_THAN_SIGN:{this.state=F.TAG_OPEN;break}case L.AMPERSAND:{this._startCharacterReference();break}case L.NULL:{this._err(ne.unexpectedNullCharacter),this._emitCodePoint(t);break}case L.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case L.AMPERSAND:{this._startCharacterReference();break}case L.LESS_THAN_SIGN:{this.state=F.RCDATA_LESS_THAN_SIGN;break}case L.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Ye);break}case L.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case L.LESS_THAN_SIGN:{this.state=F.RAWTEXT_LESS_THAN_SIGN;break}case L.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Ye);break}case L.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case L.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_LESS_THAN_SIGN;break}case L.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Ye);break}case L.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case L.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Ye);break}case L.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(er(t))this._createStartTagToken(),this.state=F.TAG_NAME,this._stateTagName(t);else switch(t){case L.EXCLAMATION_MARK:{this.state=F.MARKUP_DECLARATION_OPEN;break}case L.SOLIDUS:{this.state=F.END_TAG_OPEN;break}case L.QUESTION_MARK:{this._err(ne.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=F.BOGUS_COMMENT,this._stateBogusComment(t);break}case L.EOF:{this._err(ne.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ne.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=F.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(er(t))this._createEndTagToken(),this.state=F.TAG_NAME,this._stateTagName(t);else switch(t){case L.GREATER_THAN_SIGN:{this._err(ne.missingEndTagName),this.state=F.DATA;break}case L.EOF:{this._err(ne.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ne.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:{this.state=F.BEFORE_ATTRIBUTE_NAME;break}case L.SOLIDUS:{this.state=F.SELF_CLOSING_START_TAG;break}case L.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentTagToken();break}case L.NULL:{this._err(ne.unexpectedNullCharacter),n.tagName+=Ye;break}case L.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Ni(t)?is(t):t)}}_stateRcdataLessThanSign(t){t===L.SOLIDUS?this.state=F.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){er(t)?(this.state=F.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=F.BEFORE_ATTRIBUTE_NAME,!1;case L.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=F.SELF_CLOSING_START_TAG,!1;case L.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=F.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===L.SOLIDUS?this.state=F.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=F.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){er(t)?(this.state=F.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case L.SOLIDUS:{this.state=F.SCRIPT_DATA_END_TAG_OPEN;break}case L.EXCLAMATION_MARK:{this.state=F.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=F.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){er(t)?(this.state=F.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===L.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===L.HYPHEN_MINUS?(this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=F.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case L.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case L.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case L.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Ye);break}case L.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case L.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case L.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case L.NULL:{this._err(ne.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars(Ye);break}case L.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case L.HYPHEN_MINUS:{this._emitChars("-");break}case L.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case L.GREATER_THAN_SIGN:{this.state=F.SCRIPT_DATA,this._emitChars(">");break}case L.NULL:{this._err(ne.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_ESCAPED,this._emitChars(Ye);break}case L.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===L.SOLIDUS?this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:er(t)?(this._emitChars("<"),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){er(t)?(this.state=F.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith($t.SCRIPT,!1)&&HE(this.preprocessor.peek($t.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<$t.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case L.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case L.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case L.NULL:{this._err(ne.unexpectedNullCharacter),this._emitChars(Ye);break}case L.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case L.HYPHEN_MINUS:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case L.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case L.NULL:{this._err(ne.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ye);break}case L.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case L.HYPHEN_MINUS:{this._emitChars("-");break}case L.LESS_THAN_SIGN:{this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case L.GREATER_THAN_SIGN:{this.state=F.SCRIPT_DATA,this._emitChars(">");break}case L.NULL:{this._err(ne.unexpectedNullCharacter),this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ye);break}case L.EOF:{this._err(ne.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===L.SOLIDUS?(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith($t.SCRIPT,!1)&&HE(this.preprocessor.peek($t.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<$t.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=F.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=F.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:break;case L.SOLIDUS:case L.GREATER_THAN_SIGN:case L.EOF:{this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case L.EQUALS_SIGN:{this._err(ne.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=F.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:case L.SOLIDUS:case L.GREATER_THAN_SIGN:case L.EOF:{this._leaveAttrName(),this.state=F.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case L.EQUALS_SIGN:{this._leaveAttrName(),this.state=F.BEFORE_ATTRIBUTE_VALUE;break}case L.QUOTATION_MARK:case L.APOSTROPHE:case L.LESS_THAN_SIGN:{this._err(ne.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case L.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.name+=Ye;break}default:this.currentAttr.name+=String.fromCodePoint(Ni(t)?is(t):t)}}_stateAfterAttributeName(t){switch(t){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:break;case L.SOLIDUS:{this.state=F.SELF_CLOSING_START_TAG;break}case L.EQUALS_SIGN:{this.state=F.BEFORE_ATTRIBUTE_VALUE;break}case L.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentTagToken();break}case L.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=F.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:break;case L.QUOTATION_MARK:{this.state=F.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case L.APOSTROPHE:{this.state=F.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case L.GREATER_THAN_SIGN:{this._err(ne.missingAttributeValue),this.state=F.DATA,this.emitCurrentTagToken();break}default:this.state=F.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case L.QUOTATION_MARK:{this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case L.AMPERSAND:{this._startCharacterReference();break}case L.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.value+=Ye;break}case L.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case L.APOSTROPHE:{this.state=F.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case L.AMPERSAND:{this._startCharacterReference();break}case L.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.value+=Ye;break}case L.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:{this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break}case L.AMPERSAND:{this._startCharacterReference();break}case L.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break}case L.NULL:{this._err(ne.unexpectedNullCharacter),this.currentAttr.value+=Ye;break}case L.QUOTATION_MARK:case L.APOSTROPHE:case L.LESS_THAN_SIGN:case L.EQUALS_SIGN:case L.GRAVE_ACCENT:{this._err(ne.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case L.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:{this._leaveAttrValue(),this.state=F.BEFORE_ATTRIBUTE_NAME;break}case L.SOLIDUS:{this._leaveAttrValue(),this.state=F.SELF_CLOSING_START_TAG;break}case L.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=F.DATA,this.emitCurrentTagToken();break}case L.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this._err(ne.missingWhitespaceBetweenAttributes),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case L.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=F.DATA,this.emitCurrentTagToken();break}case L.EOF:{this._err(ne.eofInTag),this._emitEOFToken();break}default:this._err(ne.unexpectedSolidusInTag),this.state=F.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case L.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentComment(n);break}case L.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case L.NULL:{this._err(ne.unexpectedNullCharacter),n.data+=Ye;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch($t.DASH_DASH,!0)?(this._createCommentToken($t.DASH_DASH.length+1),this.state=F.COMMENT_START):this._consumeSequenceIfMatch($t.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation($t.DOCTYPE.length+1),this.state=F.DOCTYPE):this._consumeSequenceIfMatch($t.CDATA_START,!0)?this.inForeignNode?this.state=F.CDATA_SECTION:(this._err(ne.cdataInHtmlContent),this._createCommentToken($t.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=F.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ne.incorrectlyOpenedComment),this._createCommentToken(2),this.state=F.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case L.HYPHEN_MINUS:{this.state=F.COMMENT_START_DASH;break}case L.GREATER_THAN_SIGN:{this._err(ne.abruptClosingOfEmptyComment),this.state=F.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=F.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case L.HYPHEN_MINUS:{this.state=F.COMMENT_END;break}case L.GREATER_THAN_SIGN:{this._err(ne.abruptClosingOfEmptyComment),this.state=F.DATA,this.emitCurrentComment(n);break}case L.EOF:{this._err(ne.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=F.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case L.HYPHEN_MINUS:{this.state=F.COMMENT_END_DASH;break}case L.LESS_THAN_SIGN:{n.data+="<",this.state=F.COMMENT_LESS_THAN_SIGN;break}case L.NULL:{this._err(ne.unexpectedNullCharacter),n.data+=Ye;break}case L.EOF:{this._err(ne.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case L.EXCLAMATION_MARK:{n.data+="!",this.state=F.COMMENT_LESS_THAN_SIGN_BANG;break}case L.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=F.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===L.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=F.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===L.HYPHEN_MINUS?this.state=F.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=F.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==L.GREATER_THAN_SIGN&&t!==L.EOF&&this._err(ne.nestedComment),this.state=F.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case L.HYPHEN_MINUS:{this.state=F.COMMENT_END;break}case L.EOF:{this._err(ne.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=F.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case L.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentComment(n);break}case L.EXCLAMATION_MARK:{this.state=F.COMMENT_END_BANG;break}case L.HYPHEN_MINUS:{n.data+="-";break}case L.EOF:{this._err(ne.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=F.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case L.HYPHEN_MINUS:{n.data+="--!",this.state=F.COMMENT_END_DASH;break}case L.GREATER_THAN_SIGN:{this._err(ne.incorrectlyClosedComment),this.state=F.DATA,this.emitCurrentComment(n);break}case L.EOF:{this._err(ne.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=F.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_NAME;break}case L.GREATER_THAN_SIGN:{this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case L.EOF:{this._err(ne.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ne.missingWhitespaceBeforeDoctypeName),this.state=F.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Ni(t))this._createDoctypeToken(String.fromCharCode(is(t))),this.state=F.DOCTYPE_NAME;else switch(t){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:break;case L.NULL:{this._err(ne.unexpectedNullCharacter),this._createDoctypeToken(Ye),this.state=F.DOCTYPE_NAME;break}case L.GREATER_THAN_SIGN:{this._err(ne.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case L.EOF:{this._err(ne.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=F.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:{this.state=F.AFTER_DOCTYPE_NAME;break}case L.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(n);break}case L.NULL:{this._err(ne.unexpectedNullCharacter),n.name+=Ye;break}case L.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Ni(t)?is(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:break;case L.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(n);break}case L.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch($t.PUBLIC,!1)?this.state=F.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch($t.SYSTEM,!1)?this.state=F.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ne.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case L.QUOTATION_MARK:{this._err(ne.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case L.APOSTROPHE:{this._err(ne.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case L.GREATER_THAN_SIGN:{this._err(ne.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(n);break}case L.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:break;case L.QUOTATION_MARK:{n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case L.APOSTROPHE:{n.publicId="",this.state=F.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case L.GREATER_THAN_SIGN:{this._err(ne.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(n);break}case L.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case L.QUOTATION_MARK:{this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case L.NULL:{this._err(ne.unexpectedNullCharacter),n.publicId+=Ye;break}case L.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case L.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case L.APOSTROPHE:{this.state=F.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case L.NULL:{this._err(ne.unexpectedNullCharacter),n.publicId+=Ye;break}case L.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case L.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:{this.state=F.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case L.GREATER_THAN_SIGN:{this.state=F.DATA,this.emitCurrentDoctype(n);break}case L.QUOTATION_MARK:{this._err(ne.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case L.APOSTROPHE:{this._err(ne.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case L.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:break;case L.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=F.DATA;break}case L.QUOTATION_MARK:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case L.APOSTROPHE:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case L.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:{this.state=F.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case L.QUOTATION_MARK:{this._err(ne.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case L.APOSTROPHE:{this._err(ne.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case L.GREATER_THAN_SIGN:{this._err(ne.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(n);break}case L.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:break;case L.QUOTATION_MARK:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case L.APOSTROPHE:{n.systemId="",this.state=F.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case L.GREATER_THAN_SIGN:{this._err(ne.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.DATA,this.emitCurrentDoctype(n);break}case L.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ne.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case L.QUOTATION_MARK:{this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case L.NULL:{this._err(ne.unexpectedNullCharacter),n.systemId+=Ye;break}case L.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case L.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case L.APOSTROPHE:{this.state=F.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case L.NULL:{this._err(ne.unexpectedNullCharacter),n.systemId+=Ye;break}case L.GREATER_THAN_SIGN:{this._err(ne.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=F.DATA;break}case L.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case L.SPACE:case L.LINE_FEED:case L.TABULATION:case L.FORM_FEED:break;case L.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=F.DATA;break}case L.EOF:{this._err(ne.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ne.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=F.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case L.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=F.DATA;break}case L.NULL:{this._err(ne.unexpectedNullCharacter);break}case L.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case L.RIGHT_SQUARE_BRACKET:{this.state=F.CDATA_SECTION_BRACKET;break}case L.EOF:{this._err(ne.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===L.RIGHT_SQUARE_BRACKET?this.state=F.CDATA_SECTION_END:(this._emitChars("]"),this.state=F.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case L.GREATER_THAN_SIGN:{this.state=F.DATA;break}case L.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=F.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(L.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&jE(this.preprocessor.peek(1))?F.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){jE(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===L.SEMICOLON&&this._err(ne.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const oA=new Set([y.DD,y.DT,y.LI,y.OPTGROUP,y.OPTION,y.P,y.RB,y.RP,y.RT,y.RTC]),zE=new Set([...oA,y.CAPTION,y.COLGROUP,y.TBODY,y.TD,y.TFOOT,y.TH,y.THEAD,y.TR]),Hs=new Set([y.APPLET,y.CAPTION,y.HTML,y.MARQUEE,y.OBJECT,y.TABLE,y.TD,y.TEMPLATE,y.TH]),iP=new Set([...Hs,y.OL,y.UL]),oP=new Set([...Hs,y.BUTTON]),GE=new Set([y.ANNOTATION_XML,y.MI,y.MN,y.MO,y.MS,y.MTEXT]),VE=new Set([y.DESC,y.FOREIGN_OBJECT,y.TITLE]),sP=new Set([y.TR,y.TEMPLATE,y.HTML]),lP=new Set([y.TBODY,y.TFOOT,y.THEAD,y.TEMPLATE,y.HTML]),uP=new Set([y.TABLE,y.TEMPLATE,y.HTML]),cP=new Set([y.TD,y.TH]);class dP{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=y.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===y.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===le.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==le.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(n<0?0:n)}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Kc,le.HTML)}popUntilTableCellPopped(){this.popUntilPopped(cP,le.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(uP,le.HTML)}clearBackToTableBodyContext(){this.clearBackTo(lP,le.HTML)}clearBackToTableRowContext(){this.clearBackTo(sP,le.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===y.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===y.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case le.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case le.SVG:{if(VE.has(a))return!1;break}case le.MATHML:{if(GE.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Hs)}hasInListItemScope(t){return this.hasInDynamicScope(t,iP)}hasInButtonScope(t){return this.hasInDynamicScope(t,oP)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case le.HTML:{if(Kc.has(n))return!0;if(Hs.has(n))return!1;break}case le.SVG:{if(VE.has(n))return!1;break}case le.MATHML:{if(GE.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===le.HTML)switch(this.tagIDs[n]){case t:return!0;case y.TABLE:case y.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===le.HTML)switch(this.tagIDs[t]){case y.TBODY:case y.THEAD:case y.TFOOT:return!0;case y.TABLE:case y.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===le.HTML)switch(this.tagIDs[n]){case t:return!0;case y.OPTION:case y.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;oA.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;zE.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&zE.has(this.currentTagId);)this.pop()}}const $u=3;var Nn;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Nn||(Nn={}));const WE={type:Nn.Marker};class pP{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let s=0;s<this.entries.length;s++){const l=this.entries[s];if(l.type===Nn.Marker)break;const{element:u}=l;if(this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===o){const d=this.treeAdapter.getAttrList(u);d.length===a&&r.push({idx:s,attrs:d})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<$u)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<$u)return;const a=new Map(n.map(o=>[o.name,o.value]));let i=0;for(let o=0;o<r.length;o++){const s=r[o];s.attrs.every(l=>a.get(l.name)===l.value)&&(i+=1,i>=$u&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(WE)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Nn.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Nn.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(WE);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Nn.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Nn.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Nn.Element&&n.element===t)}}const tr={createDocument(){return{nodeName:"#document",mode:Jt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};tr.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(tr.isTextNode(n)){n.value+=t;return}}tr.appendChild(e,tr.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&tr.isTextNode(r)?r.value+=t:tr.insertBefore(e,tr.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},sA="html",fP="about:legacy-compat",mP="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",lA=["+//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//"],hP=[...lA,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],gP=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),uA=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],bP=[...uA,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function qE(e,t){return t.some(n=>e.startsWith(n))}function EP(e){return e.name===sA&&e.publicId===null&&(e.systemId===null||e.systemId===fP)}function yP(e){if(e.name!==sA)return Jt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===mP)return Jt.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),gP.has(n))return Jt.QUIRKS;let r=t===null?hP:lA;if(qE(n,r))return Jt.QUIRKS;if(r=t===null?uA:bP,qE(n,r))return Jt.LIMITED_QUIRKS}return Jt.NO_QUIRKS}const YE={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},xP="definitionurl",TP="definitionURL",vP=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])),SP=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:le.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:le.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:le.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:le.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:le.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:le.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:le.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:le.XML}],["xml:space",{prefix:"xml",name:"space",namespace:le.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:le.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:le.XMLNS}]]),AP=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])),wP=new Set([y.B,y.BIG,y.BLOCKQUOTE,y.BODY,y.BR,y.CENTER,y.CODE,y.DD,y.DIV,y.DL,y.DT,y.EM,y.EMBED,y.H1,y.H2,y.H3,y.H4,y.H5,y.H6,y.HEAD,y.HR,y.I,y.IMG,y.LI,y.LISTING,y.MENU,y.META,y.NOBR,y.OL,y.P,y.PRE,y.RUBY,y.S,y.SMALL,y.SPAN,y.STRONG,y.STRIKE,y.SUB,y.SUP,y.TABLE,y.TT,y.U,y.UL,y.VAR]);function _P(e){const t=e.tagID;return t===y.FONT&&e.attrs.some(({name:r})=>r===Fr.COLOR||r===Fr.SIZE||r===Fr.FACE)||wP.has(t)}function cA(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===xP){e.attrs[t].name=TP;break}}function dA(e){for(let t=0;t<e.attrs.length;t++){const n=vP.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function gb(e){for(let t=0;t<e.attrs.length;t++){const n=SP.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function NP(e){const t=AP.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ii(e.tagName))}function CP(e,t){return t===le.MATHML&&(e===y.MI||e===y.MO||e===y.MN||e===y.MS||e===y.MTEXT)}function kP(e,t,n){if(t===le.MATHML&&e===y.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Fr.ENCODING){const a=n[r].value.toLowerCase();return a===YE.TEXT_HTML||a===YE.APPLICATION_XML}}return t===le.SVG&&(e===y.FOREIGN_OBJECT||e===y.DESC||e===y.TITLE)}function IP(e,t,n,r){return(!r||r===le.HTML)&&kP(e,t,n)||(!r||r===le.MATHML)&&CP(e,t)}const RP="hidden",OP=8,DP=3;var B;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(B||(B={}));const LP={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},pA=new Set([y.TABLE,y.TBODY,y.TFOOT,y.THEAD,y.TR]),KE={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:tr,onParseError:null};class XE{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=B.INITIAL,this.originalInsertionMode=B.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={...KE,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new aP(this.options,this),this.activeFormattingElements=new pP(this.treeAdapter),this.fragmentContextID=r?ii(this.treeAdapter.getTagName(r)):y.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new dP(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...KE,...n};t??(t=r.treeAdapter.createElement(Y.TEMPLATE,le.HTML,[]));const a=r.treeAdapter.createElement("documentmock",le.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===y.TEMPLATE&&i.tmplInsertionModeStack.unshift(B.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:LP,o={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(o)}onItemPush(t,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let i,o;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,o=this.fragmentContextID):{current:i,currentTagId:o}=this.openElements,this._setContextModes(i,o)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===le.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,le.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=B.TEXT}switchToPlaintextParsing(){this.insertionMode=B.TEXT,this.originalInsertionMode=B.IN_BODY,this.tokenizer.state=ot.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===Y.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==le.HTML))switch(this.fragmentContextID){case y.TITLE:case y.TEXTAREA:{this.tokenizer.state=ot.RCDATA;break}case y.STYLE:case y.XMP:case y.IFRAME:case y.NOEMBED:case y.NOFRAMES:case y.NOSCRIPT:{this.tokenizer.state=ot.RAWTEXT;break}case y.SCRIPT:{this.tokenizer.state=ot.SCRIPT_DATA;break}case y.PLAINTEXT:{this.tokenizer.state=ot.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const o=this.treeAdapter.getChildNodes(this.document).find(s=>this.treeAdapter.isDocumentTypeNode(s));o&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,le.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,le.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(Y.HTML,le.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,y.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,o=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:l,endCol:u,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:l,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),i=n.type===ke.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===y.SVG&&this.treeAdapter.getTagName(n)===Y.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===le.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===y.MGLYPH||t.tagID===y.MALIGNMARK)&&!this._isIntegrationPoint(r,n,le.HTML)}_processToken(t){switch(t.type){case ke.CHARACTER:{this.onCharacter(t);break}case ke.NULL_CHARACTER:{this.onNullCharacter(t);break}case ke.COMMENT:{this.onComment(t);break}case ke.DOCTYPE:{this.onDoctype(t);break}case ke.START_TAG:{this._processStartTag(t);break}case ke.END_TAG:{this.onEndTag(t);break}case ke.EOF:{this.onEof(t);break}case ke.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return IP(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===Nn.Marker||this.openElements.contains(a.element)),r=n<0?t-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=B.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(y.P),this.openElements.popUntilTagNamePopped(y.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case y.TR:{this.insertionMode=B.IN_ROW;return}case y.TBODY:case y.THEAD:case y.TFOOT:{this.insertionMode=B.IN_TABLE_BODY;return}case y.CAPTION:{this.insertionMode=B.IN_CAPTION;return}case y.COLGROUP:{this.insertionMode=B.IN_COLUMN_GROUP;return}case y.TABLE:{this.insertionMode=B.IN_TABLE;return}case y.BODY:{this.insertionMode=B.IN_BODY;return}case y.FRAMESET:{this.insertionMode=B.IN_FRAMESET;return}case y.SELECT:{this._resetInsertionModeForSelect(t);return}case y.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case y.HTML:{this.insertionMode=this.headElement?B.AFTER_HEAD:B.BEFORE_HEAD;return}case y.TD:case y.TH:{if(t>0){this.insertionMode=B.IN_CELL;return}break}case y.HEAD:{if(t>0){this.insertionMode=B.IN_HEAD;return}break}}this.insertionMode=B.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===y.TEMPLATE)break;if(r===y.TABLE){this.insertionMode=B.IN_SELECT_IN_TABLE;return}}this.insertionMode=B.IN_SELECT}_isElementCausesFosterParenting(t){return pA.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case y.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===le.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case y.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return eP[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){cM(this,t);return}switch(this.insertionMode){case B.INITIAL:{Ei(this,t);break}case B.BEFORE_HTML:{Mi(this,t);break}case B.BEFORE_HEAD:{Bi(this,t);break}case B.IN_HEAD:{Ui(this,t);break}case B.IN_HEAD_NO_SCRIPT:{$i(this,t);break}case B.AFTER_HEAD:{ji(this,t);break}case B.IN_BODY:case B.IN_CAPTION:case B.IN_CELL:case B.IN_TEMPLATE:{mA(this,t);break}case B.TEXT:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case B.IN_TABLE:case B.IN_TABLE_BODY:case B.IN_ROW:{ju(this,t);break}case B.IN_TABLE_TEXT:{xA(this,t);break}case B.IN_COLUMN_GROUP:{zs(this,t);break}case B.AFTER_BODY:{Gs(this,t);break}case B.AFTER_AFTER_BODY:{ws(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){uM(this,t);return}switch(this.insertionMode){case B.INITIAL:{Ei(this,t);break}case B.BEFORE_HTML:{Mi(this,t);break}case B.BEFORE_HEAD:{Bi(this,t);break}case B.IN_HEAD:{Ui(this,t);break}case B.IN_HEAD_NO_SCRIPT:{$i(this,t);break}case B.AFTER_HEAD:{ji(this,t);break}case B.TEXT:{this._insertCharacters(t);break}case B.IN_TABLE:case B.IN_TABLE_BODY:case B.IN_ROW:{ju(this,t);break}case B.IN_COLUMN_GROUP:{zs(this,t);break}case B.AFTER_BODY:{Gs(this,t);break}case B.AFTER_AFTER_BODY:{ws(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Xc(this,t);return}switch(this.insertionMode){case B.INITIAL:case B.BEFORE_HTML:case B.BEFORE_HEAD:case B.IN_HEAD:case B.IN_HEAD_NO_SCRIPT:case B.AFTER_HEAD:case B.IN_BODY:case B.IN_TABLE:case B.IN_CAPTION:case B.IN_COLUMN_GROUP:case B.IN_TABLE_BODY:case B.IN_ROW:case B.IN_CELL:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:case B.IN_TEMPLATE:case B.IN_FRAMESET:case B.AFTER_FRAMESET:{Xc(this,t);break}case B.IN_TABLE_TEXT:{yi(this,t);break}case B.AFTER_BODY:{jP(this,t);break}case B.AFTER_AFTER_BODY:case B.AFTER_AFTER_FRAMESET:{HP(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case B.INITIAL:{zP(this,t);break}case B.BEFORE_HEAD:case B.IN_HEAD:case B.IN_HEAD_NO_SCRIPT:case B.AFTER_HEAD:{this._err(t,ne.misplacedDoctype);break}case B.IN_TABLE_TEXT:{yi(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ne.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?dM(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case B.INITIAL:{Ei(this,t);break}case B.BEFORE_HTML:{GP(this,t);break}case B.BEFORE_HEAD:{WP(this,t);break}case B.IN_HEAD:{An(this,t);break}case B.IN_HEAD_NO_SCRIPT:{KP(this,t);break}case B.AFTER_HEAD:{ZP(this,t);break}case B.IN_BODY:{Rt(this,t);break}case B.IN_TABLE:{$a(this,t);break}case B.IN_TABLE_TEXT:{yi(this,t);break}case B.IN_CAPTION:{qF(this,t);break}case B.IN_COLUMN_GROUP:{yb(this,t);break}case B.IN_TABLE_BODY:{Ml(this,t);break}case B.IN_ROW:{Bl(this,t);break}case B.IN_CELL:{XF(this,t);break}case B.IN_SELECT:{SA(this,t);break}case B.IN_SELECT_IN_TABLE:{QF(this,t);break}case B.IN_TEMPLATE:{eM(this,t);break}case B.AFTER_BODY:{nM(this,t);break}case B.IN_FRAMESET:{rM(this,t);break}case B.AFTER_FRAMESET:{iM(this,t);break}case B.AFTER_AFTER_BODY:{sM(this,t);break}case B.AFTER_AFTER_FRAMESET:{lM(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?pM(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case B.INITIAL:{Ei(this,t);break}case B.BEFORE_HTML:{VP(this,t);break}case B.BEFORE_HEAD:{qP(this,t);break}case B.IN_HEAD:{YP(this,t);break}case B.IN_HEAD_NO_SCRIPT:{XP(this,t);break}case B.AFTER_HEAD:{QP(this,t);break}case B.IN_BODY:{Fl(this,t);break}case B.TEXT:{MF(this,t);break}case B.IN_TABLE:{Qi(this,t);break}case B.IN_TABLE_TEXT:{yi(this,t);break}case B.IN_CAPTION:{YF(this,t);break}case B.IN_COLUMN_GROUP:{KF(this,t);break}case B.IN_TABLE_BODY:{Zc(this,t);break}case B.IN_ROW:{vA(this,t);break}case B.IN_CELL:{ZF(this,t);break}case B.IN_SELECT:{AA(this,t);break}case B.IN_SELECT_IN_TABLE:{JF(this,t);break}case B.IN_TEMPLATE:{tM(this,t);break}case B.AFTER_BODY:{_A(this,t);break}case B.IN_FRAMESET:{aM(this,t);break}case B.AFTER_FRAMESET:{oM(this,t);break}case B.AFTER_AFTER_BODY:{ws(this,t);break}}}onEof(t){switch(this.insertionMode){case B.INITIAL:{Ei(this,t);break}case B.BEFORE_HTML:{Mi(this,t);break}case B.BEFORE_HEAD:{Bi(this,t);break}case B.IN_HEAD:{Ui(this,t);break}case B.IN_HEAD_NO_SCRIPT:{$i(this,t);break}case B.AFTER_HEAD:{ji(this,t);break}case B.IN_BODY:case B.IN_TABLE:case B.IN_CAPTION:case B.IN_COLUMN_GROUP:case B.IN_TABLE_BODY:case B.IN_ROW:case B.IN_CELL:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:{EA(this,t);break}case B.TEXT:{BF(this,t);break}case B.IN_TABLE_TEXT:{yi(this,t);break}case B.IN_TEMPLATE:{wA(this,t);break}case B.AFTER_BODY:case B.IN_FRAMESET:case B.AFTER_FRAMESET:case B.AFTER_AFTER_BODY:case B.AFTER_AFTER_FRAMESET:{Eb(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===L.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case B.IN_HEAD:case B.IN_HEAD_NO_SCRIPT:case B.AFTER_HEAD:case B.TEXT:case B.IN_COLUMN_GROUP:case B.IN_SELECT:case B.IN_SELECT_IN_TABLE:case B.IN_FRAMESET:case B.AFTER_FRAMESET:{this._insertCharacters(t);break}case B.IN_BODY:case B.IN_CAPTION:case B.IN_CELL:case B.IN_TEMPLATE:case B.AFTER_BODY:case B.AFTER_AFTER_BODY:case B.AFTER_AFTER_FRAMESET:{fA(this,t);break}case B.IN_TABLE:case B.IN_TABLE_BODY:case B.IN_ROW:{ju(this,t);break}case B.IN_TABLE_TEXT:{yA(this,t);break}}}}function PP(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):bA(e,t),n}function FP(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function MP(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,o=a;o!==n;i++,o=a){a=e.openElements.getCommonAncestor(o);const s=e.activeFormattingElements.getElementEntry(o),l=s&&i>=DP;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(o)):(o=BP(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function BP(e,t){const 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}function UP(e,t,n){const r=e.treeAdapter.getTagName(t),a=ii(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===y.TEMPLATE&&i===le.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function $P(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}function bb(e,t){for(let n=0;n<OP;n++){const r=PP(e,t);if(!r)break;const a=FP(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=MP(e,a,r.element),o=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),o&&UP(e,o,i),$P(e,a,r)}}function Xc(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function jP(e,t){e._appendCommentNode(t,e.openElements.items[0])}function HP(e,t){e._appendCommentNode(t,e.document)}function Eb(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(i);o&&!o.endTag&&e._setEndLocation(i,t)}}}}function zP(e,t){e._setDocumentType(t);const n=t.forceQuirks?Jt.QUIRKS:yP(t);EP(t)||e._err(t,ne.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=B.BEFORE_HTML}function Ei(e,t){e._err(t,ne.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Jt.QUIRKS),e.insertionMode=B.BEFORE_HTML,e._processToken(t)}function GP(e,t){t.tagID===y.HTML?(e._insertElement(t,le.HTML),e.insertionMode=B.BEFORE_HEAD):Mi(e,t)}function VP(e,t){const n=t.tagID;(n===y.HTML||n===y.HEAD||n===y.BODY||n===y.BR)&&Mi(e,t)}function Mi(e,t){e._insertFakeRootElement(),e.insertionMode=B.BEFORE_HEAD,e._processToken(t)}function WP(e,t){switch(t.tagID){case y.HTML:{Rt(e,t);break}case y.HEAD:{e._insertElement(t,le.HTML),e.headElement=e.openElements.current,e.insertionMode=B.IN_HEAD;break}default:Bi(e,t)}}function qP(e,t){const n=t.tagID;n===y.HEAD||n===y.BODY||n===y.HTML||n===y.BR?Bi(e,t):e._err(t,ne.endTagWithoutMatchingOpenElement)}function Bi(e,t){e._insertFakeElement(Y.HEAD,y.HEAD),e.headElement=e.openElements.current,e.insertionMode=B.IN_HEAD,e._processToken(t)}function An(e,t){switch(t.tagID){case y.HTML:{Rt(e,t);break}case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:{e._appendElement(t,le.HTML),t.ackSelfClosing=!0;break}case y.TITLE:{e._switchToTextParsing(t,ot.RCDATA);break}case y.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,ot.RAWTEXT):(e._insertElement(t,le.HTML),e.insertionMode=B.IN_HEAD_NO_SCRIPT);break}case y.NOFRAMES:case y.STYLE:{e._switchToTextParsing(t,ot.RAWTEXT);break}case y.SCRIPT:{e._switchToTextParsing(t,ot.SCRIPT_DATA);break}case y.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=B.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(B.IN_TEMPLATE);break}case y.HEAD:{e._err(t,ne.misplacedStartTagForHeadElement);break}default:Ui(e,t)}}function YP(e,t){switch(t.tagID){case y.HEAD:{e.openElements.pop(),e.insertionMode=B.AFTER_HEAD;break}case y.BODY:case y.BR:case y.HTML:{Ui(e,t);break}case y.TEMPLATE:{ia(e,t);break}default:e._err(t,ne.endTagWithoutMatchingOpenElement)}}function ia(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==y.TEMPLATE&&e._err(t,ne.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(y.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ne.endTagWithoutMatchingOpenElement)}function Ui(e,t){e.openElements.pop(),e.insertionMode=B.AFTER_HEAD,e._processToken(t)}function KP(e,t){switch(t.tagID){case y.HTML:{Rt(e,t);break}case y.BASEFONT:case y.BGSOUND:case y.HEAD:case y.LINK:case y.META:case y.NOFRAMES:case y.STYLE:{An(e,t);break}case y.NOSCRIPT:{e._err(t,ne.nestedNoscriptInHead);break}default:$i(e,t)}}function XP(e,t){switch(t.tagID){case y.NOSCRIPT:{e.openElements.pop(),e.insertionMode=B.IN_HEAD;break}case y.BR:{$i(e,t);break}default:e._err(t,ne.endTagWithoutMatchingOpenElement)}}function $i(e,t){const n=t.type===ke.EOF?ne.openElementsLeftAfterEof:ne.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=B.IN_HEAD,e._processToken(t)}function ZP(e,t){switch(t.tagID){case y.HTML:{Rt(e,t);break}case y.BODY:{e._insertElement(t,le.HTML),e.framesetOk=!1,e.insertionMode=B.IN_BODY;break}case y.FRAMESET:{e._insertElement(t,le.HTML),e.insertionMode=B.IN_FRAMESET;break}case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:case y.NOFRAMES:case y.SCRIPT:case y.STYLE:case y.TEMPLATE:case y.TITLE:{e._err(t,ne.abandonedHeadElementChild),e.openElements.push(e.headElement,y.HEAD),An(e,t),e.openElements.remove(e.headElement);break}case y.HEAD:{e._err(t,ne.misplacedStartTagForHeadElement);break}default:ji(e,t)}}function QP(e,t){switch(t.tagID){case y.BODY:case y.HTML:case y.BR:{ji(e,t);break}case y.TEMPLATE:{ia(e,t);break}default:e._err(t,ne.endTagWithoutMatchingOpenElement)}}function ji(e,t){e._insertFakeElement(Y.BODY,y.BODY),e.insertionMode=B.IN_BODY,Pl(e,t)}function Pl(e,t){switch(t.type){case ke.CHARACTER:{mA(e,t);break}case ke.WHITESPACE_CHARACTER:{fA(e,t);break}case ke.COMMENT:{Xc(e,t);break}case ke.START_TAG:{Rt(e,t);break}case ke.END_TAG:{Fl(e,t);break}case ke.EOF:{EA(e,t);break}}}function fA(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function mA(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function JP(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function eF(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function tF(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,le.HTML),e.insertionMode=B.IN_FRAMESET)}function nF(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML)}function rF(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),Kc.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,le.HTML)}function aF(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function iF(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML),n||(e.formElement=e.openElements.current))}function oF(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===y.LI&&a===y.LI||(n===y.DD||n===y.DT)&&(a===y.DD||a===y.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==y.ADDRESS&&a!==y.DIV&&a!==y.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML)}function sF(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML),e.tokenizer.state=ot.PLAINTEXT}function lF(e,t){e.openElements.hasInScope(y.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.framesetOk=!1}function uF(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Y.A);n&&(bb(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function cF(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function dF(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(y.NOBR)&&(bb(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,le.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function pF(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function fF(e,t){e.treeAdapter.getDocumentMode(e.document)!==Jt.QUIRKS&&e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,le.HTML),e.framesetOk=!1,e.insertionMode=B.IN_TABLE}function hA(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,le.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function gA(e){const t=tA(e,Fr.TYPE);return t!=null&&t.toLowerCase()===RP}function mF(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,le.HTML),gA(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function hF(e,t){e._appendElement(t,le.HTML),t.ackSelfClosing=!0}function gF(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._appendElement(t,le.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function bF(e,t){t.tagName=Y.IMG,t.tagID=y.IMG,hA(e,t)}function EF(e,t){e._insertElement(t,le.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ot.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=B.TEXT}function yF(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ot.RAWTEXT)}function xF(e,t){e.framesetOk=!1,e._switchToTextParsing(t,ot.RAWTEXT)}function ZE(e,t){e._switchToTextParsing(t,ot.RAWTEXT)}function TF(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===B.IN_TABLE||e.insertionMode===B.IN_CAPTION||e.insertionMode===B.IN_TABLE_BODY||e.insertionMode===B.IN_ROW||e.insertionMode===B.IN_CELL?B.IN_SELECT_IN_TABLE:B.IN_SELECT}function vF(e,t){e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML)}function SF(e,t){e.openElements.hasInScope(y.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,le.HTML)}function AF(e,t){e.openElements.hasInScope(y.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(y.RTC),e._insertElement(t,le.HTML)}function wF(e,t){e._reconstructActiveFormattingElements(),cA(t),gb(t),t.selfClosing?e._appendElement(t,le.MATHML):e._insertElement(t,le.MATHML),t.ackSelfClosing=!0}function _F(e,t){e._reconstructActiveFormattingElements(),dA(t),gb(t),t.selfClosing?e._appendElement(t,le.SVG):e._insertElement(t,le.SVG),t.ackSelfClosing=!0}function QE(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,le.HTML)}function Rt(e,t){switch(t.tagID){case y.I:case y.S:case y.B:case y.U:case y.EM:case y.TT:case y.BIG:case y.CODE:case y.FONT:case y.SMALL:case y.STRIKE:case y.STRONG:{cF(e,t);break}case y.A:{uF(e,t);break}case y.H1:case y.H2:case y.H3:case y.H4:case y.H5:case y.H6:{rF(e,t);break}case y.P:case y.DL:case y.OL:case y.UL:case y.DIV:case y.DIR:case y.NAV:case y.MAIN:case y.MENU:case y.ASIDE:case y.CENTER:case y.FIGURE:case y.FOOTER:case y.HEADER:case y.HGROUP:case y.DIALOG:case y.DETAILS:case y.ADDRESS:case y.ARTICLE:case y.SEARCH:case y.SECTION:case y.SUMMARY:case y.FIELDSET:case y.BLOCKQUOTE:case y.FIGCAPTION:{nF(e,t);break}case y.LI:case y.DD:case y.DT:{oF(e,t);break}case y.BR:case y.IMG:case y.WBR:case y.AREA:case y.EMBED:case y.KEYGEN:{hA(e,t);break}case y.HR:{gF(e,t);break}case y.RB:case y.RTC:{SF(e,t);break}case y.RT:case y.RP:{AF(e,t);break}case y.PRE:case y.LISTING:{aF(e,t);break}case y.XMP:{yF(e,t);break}case y.SVG:{_F(e,t);break}case y.HTML:{JP(e,t);break}case y.BASE:case y.LINK:case y.META:case y.STYLE:case y.TITLE:case y.SCRIPT:case y.BGSOUND:case y.BASEFONT:case y.TEMPLATE:{An(e,t);break}case y.BODY:{eF(e,t);break}case y.FORM:{iF(e,t);break}case y.NOBR:{dF(e,t);break}case y.MATH:{wF(e,t);break}case y.TABLE:{fF(e,t);break}case y.INPUT:{mF(e,t);break}case y.PARAM:case y.TRACK:case y.SOURCE:{hF(e,t);break}case y.IMAGE:{bF(e,t);break}case y.BUTTON:{lF(e,t);break}case y.APPLET:case y.OBJECT:case y.MARQUEE:{pF(e,t);break}case y.IFRAME:{xF(e,t);break}case y.SELECT:{TF(e,t);break}case y.OPTION:case y.OPTGROUP:{vF(e,t);break}case y.NOEMBED:case y.NOFRAMES:{ZE(e,t);break}case y.FRAMESET:{tF(e,t);break}case y.TEXTAREA:{EF(e,t);break}case y.NOSCRIPT:{e.options.scriptingEnabled?ZE(e,t):QE(e,t);break}case y.PLAINTEXT:{sF(e,t);break}case y.COL:case y.TH:case y.TD:case y.TR:case y.HEAD:case y.FRAME:case y.TBODY:case y.TFOOT:case y.THEAD:case y.CAPTION:case y.COLGROUP:break;default:QE(e,t)}}function NF(e,t){if(e.openElements.hasInScope(y.BODY)&&(e.insertionMode=B.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function CF(e,t){e.openElements.hasInScope(y.BODY)&&(e.insertionMode=B.AFTER_BODY,_A(e,t))}function kF(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function IF(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(y.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(y.FORM):n&&e.openElements.remove(n))}function RF(e){e.openElements.hasInButtonScope(y.P)||e._insertFakeElement(Y.P,y.P),e._closePElement()}function OF(e){e.openElements.hasInListItemScope(y.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(y.LI),e.openElements.popUntilTagNamePopped(y.LI))}function DF(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function LF(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function PF(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function FF(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Y.BR,y.BR),e.openElements.pop(),e.framesetOk=!1}function bA(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],o=e.openElements.tagIDs[a];if(r===o&&(r!==y.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,o))break}}function Fl(e,t){switch(t.tagID){case y.A:case y.B:case y.I:case y.S:case y.U:case y.EM:case y.TT:case y.BIG:case y.CODE:case y.FONT:case y.NOBR:case y.SMALL:case y.STRIKE:case y.STRONG:{bb(e,t);break}case y.P:{RF(e);break}case y.DL:case y.UL:case y.OL:case y.DIR:case y.DIV:case y.NAV:case y.PRE:case y.MAIN:case y.MENU:case y.ASIDE:case y.BUTTON:case y.CENTER:case y.FIGURE:case y.FOOTER:case y.HEADER:case y.HGROUP:case y.DIALOG:case y.ADDRESS:case y.ARTICLE:case y.DETAILS:case y.SEARCH:case y.SECTION:case y.SUMMARY:case y.LISTING:case y.FIELDSET:case y.BLOCKQUOTE:case y.FIGCAPTION:{kF(e,t);break}case y.LI:{OF(e);break}case y.DD:case y.DT:{DF(e,t);break}case y.H1:case y.H2:case y.H3:case y.H4:case y.H5:case y.H6:{LF(e);break}case y.BR:{FF(e);break}case y.BODY:{NF(e,t);break}case y.HTML:{CF(e,t);break}case y.FORM:{IF(e);break}case y.APPLET:case y.OBJECT:case y.MARQUEE:{PF(e,t);break}case y.TEMPLATE:{ia(e,t);break}default:bA(e,t)}}function EA(e,t){e.tmplInsertionModeStack.length>0?wA(e,t):Eb(e,t)}function MF(e,t){var n;t.tagID===y.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function BF(e,t){e._err(t,ne.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function ju(e,t){if(pA.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=B.IN_TABLE_TEXT,t.type){case ke.CHARACTER:{xA(e,t);break}case ke.WHITESPACE_CHARACTER:{yA(e,t);break}}else ko(e,t)}function UF(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,le.HTML),e.insertionMode=B.IN_CAPTION}function $F(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,le.HTML),e.insertionMode=B.IN_COLUMN_GROUP}function jF(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y.COLGROUP,y.COLGROUP),e.insertionMode=B.IN_COLUMN_GROUP,yb(e,t)}function HF(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,le.HTML),e.insertionMode=B.IN_TABLE_BODY}function zF(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Y.TBODY,y.TBODY),e.insertionMode=B.IN_TABLE_BODY,Ml(e,t)}function GF(e,t){e.openElements.hasInTableScope(y.TABLE)&&(e.openElements.popUntilTagNamePopped(y.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function VF(e,t){gA(t)?e._appendElement(t,le.HTML):ko(e,t),t.ackSelfClosing=!0}function WF(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,le.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function $a(e,t){switch(t.tagID){case y.TD:case y.TH:case y.TR:{zF(e,t);break}case y.STYLE:case y.SCRIPT:case y.TEMPLATE:{An(e,t);break}case y.COL:{jF(e,t);break}case y.FORM:{WF(e,t);break}case y.TABLE:{GF(e,t);break}case y.TBODY:case y.TFOOT:case y.THEAD:{HF(e,t);break}case y.INPUT:{VF(e,t);break}case y.CAPTION:{UF(e,t);break}case y.COLGROUP:{$F(e,t);break}default:ko(e,t)}}function Qi(e,t){switch(t.tagID){case y.TABLE:{e.openElements.hasInTableScope(y.TABLE)&&(e.openElements.popUntilTagNamePopped(y.TABLE),e._resetInsertionMode());break}case y.TEMPLATE:{ia(e,t);break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TBODY:case y.TD:case y.TFOOT:case y.TH:case y.THEAD:case y.TR:break;default:ko(e,t)}}function ko(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Pl(e,t),e.fosterParentingEnabled=n}function yA(e,t){e.pendingCharacterTokens.push(t)}function xA(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function yi(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)ko(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const TA=new Set([y.CAPTION,y.COL,y.COLGROUP,y.TBODY,y.TD,y.TFOOT,y.TH,y.THEAD,y.TR]);function qF(e,t){const n=t.tagID;TA.has(n)?e.openElements.hasInTableScope(y.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=B.IN_TABLE,$a(e,t)):Rt(e,t)}function YF(e,t){const n=t.tagID;switch(n){case y.CAPTION:case y.TABLE:{e.openElements.hasInTableScope(y.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=B.IN_TABLE,n===y.TABLE&&Qi(e,t));break}case y.BODY:case y.COL:case y.COLGROUP:case y.HTML:case y.TBODY:case y.TD:case y.TFOOT:case y.TH:case y.THEAD:case y.TR:break;default:Fl(e,t)}}function yb(e,t){switch(t.tagID){case y.HTML:{Rt(e,t);break}case y.COL:{e._appendElement(t,le.HTML),t.ackSelfClosing=!0;break}case y.TEMPLATE:{An(e,t);break}default:zs(e,t)}}function KF(e,t){switch(t.tagID){case y.COLGROUP:{e.openElements.currentTagId===y.COLGROUP&&(e.openElements.pop(),e.insertionMode=B.IN_TABLE);break}case y.TEMPLATE:{ia(e,t);break}case y.COL:break;default:zs(e,t)}}function zs(e,t){e.openElements.currentTagId===y.COLGROUP&&(e.openElements.pop(),e.insertionMode=B.IN_TABLE,e._processToken(t))}function Ml(e,t){switch(t.tagID){case y.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,le.HTML),e.insertionMode=B.IN_ROW;break}case y.TH:case y.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Y.TR,y.TR),e.insertionMode=B.IN_ROW,Bl(e,t);break}case y.CAPTION:case y.COL:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE,$a(e,t));break}default:$a(e,t)}}function Zc(e,t){const n=t.tagID;switch(t.tagID){case y.TBODY:case y.TFOOT:case y.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE);break}case y.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE,Qi(e,t));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TD:case y.TH:case y.TR:break;default:Qi(e,t)}}function Bl(e,t){switch(t.tagID){case y.TH:case y.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,le.HTML),e.insertionMode=B.IN_CELL,e.activeFormattingElements.insertMarker();break}case y.CAPTION:case y.COL:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:case y.TR:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY,Ml(e,t));break}default:$a(e,t)}}function vA(e,t){switch(t.tagID){case y.TR:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY);break}case y.TABLE:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY,Zc(e,t));break}case y.TBODY:case y.TFOOT:case y.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(y.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=B.IN_TABLE_BODY,Zc(e,t));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TD:case y.TH:break;default:Qi(e,t)}}function XF(e,t){const n=t.tagID;TA.has(n)?(e.openElements.hasInTableScope(y.TD)||e.openElements.hasInTableScope(y.TH))&&(e._closeTableCell(),Bl(e,t)):Rt(e,t)}function ZF(e,t){const n=t.tagID;switch(n){case y.TD:case y.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=B.IN_ROW);break}case y.TABLE:case y.TBODY:case y.TFOOT:case y.THEAD:case y.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),vA(e,t));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:break;default:Fl(e,t)}}function SA(e,t){switch(t.tagID){case y.HTML:{Rt(e,t);break}case y.OPTION:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e._insertElement(t,le.HTML);break}case y.OPTGROUP:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop(),e._insertElement(t,le.HTML);break}case y.HR:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop(),e._appendElement(t,le.HTML),t.ackSelfClosing=!0;break}case y.INPUT:case y.KEYGEN:case y.TEXTAREA:case y.SELECT:{e.openElements.hasInSelectScope(y.SELECT)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),t.tagID!==y.SELECT&&e._processStartTag(t));break}case y.SCRIPT:case y.TEMPLATE:{An(e,t);break}}}function AA(e,t){switch(t.tagID){case y.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===y.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===y.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop();break}case y.OPTION:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop();break}case y.SELECT:{e.openElements.hasInSelectScope(y.SELECT)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode());break}case y.TEMPLATE:{ia(e,t);break}}}function QF(e,t){const n=t.tagID;n===y.CAPTION||n===y.TABLE||n===y.TBODY||n===y.TFOOT||n===y.THEAD||n===y.TR||n===y.TD||n===y.TH?(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),e._processStartTag(t)):SA(e,t)}function JF(e,t){const n=t.tagID;n===y.CAPTION||n===y.TABLE||n===y.TBODY||n===y.TFOOT||n===y.THEAD||n===y.TR||n===y.TD||n===y.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),e.onEndTag(t)):AA(e,t)}function eM(e,t){switch(t.tagID){case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:case y.NOFRAMES:case y.SCRIPT:case y.STYLE:case y.TEMPLATE:case y.TITLE:{An(e,t);break}case y.CAPTION:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:{e.tmplInsertionModeStack[0]=B.IN_TABLE,e.insertionMode=B.IN_TABLE,$a(e,t);break}case y.COL:{e.tmplInsertionModeStack[0]=B.IN_COLUMN_GROUP,e.insertionMode=B.IN_COLUMN_GROUP,yb(e,t);break}case y.TR:{e.tmplInsertionModeStack[0]=B.IN_TABLE_BODY,e.insertionMode=B.IN_TABLE_BODY,Ml(e,t);break}case y.TD:case y.TH:{e.tmplInsertionModeStack[0]=B.IN_ROW,e.insertionMode=B.IN_ROW,Bl(e,t);break}default:e.tmplInsertionModeStack[0]=B.IN_BODY,e.insertionMode=B.IN_BODY,Rt(e,t)}}function tM(e,t){t.tagID===y.TEMPLATE&&ia(e,t)}function wA(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(y.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Eb(e,t)}function nM(e,t){t.tagID===y.HTML?Rt(e,t):Gs(e,t)}function _A(e,t){var n;if(t.tagID===y.HTML){if(e.fragmentContext||(e.insertionMode=B.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===y.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Gs(e,t)}function Gs(e,t){e.insertionMode=B.IN_BODY,Pl(e,t)}function rM(e,t){switch(t.tagID){case y.HTML:{Rt(e,t);break}case y.FRAMESET:{e._insertElement(t,le.HTML);break}case y.FRAME:{e._appendElement(t,le.HTML),t.ackSelfClosing=!0;break}case y.NOFRAMES:{An(e,t);break}}}function aM(e,t){t.tagID===y.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==y.FRAMESET&&(e.insertionMode=B.AFTER_FRAMESET))}function iM(e,t){switch(t.tagID){case y.HTML:{Rt(e,t);break}case y.NOFRAMES:{An(e,t);break}}}function oM(e,t){t.tagID===y.HTML&&(e.insertionMode=B.AFTER_AFTER_FRAMESET)}function sM(e,t){t.tagID===y.HTML?Rt(e,t):ws(e,t)}function ws(e,t){e.insertionMode=B.IN_BODY,Pl(e,t)}function lM(e,t){switch(t.tagID){case y.HTML:{Rt(e,t);break}case y.NOFRAMES:{An(e,t);break}}}function uM(e,t){t.chars=Ye,e._insertCharacters(t)}function cM(e,t){e._insertCharacters(t),e.framesetOk=!1}function NA(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==le.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function dM(e,t){if(_P(t))NA(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===le.MATHML?cA(t):r===le.SVG&&(NP(t),dA(t)),gb(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function pM(e,t){if(t.tagID===y.P||t.tagID===y.BR){NA(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===le.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}Y.AREA,Y.BASE,Y.BASEFONT,Y.BGSOUND,Y.BR,Y.COL,Y.EMBED,Y.FRAME,Y.HR,Y.IMG,Y.INPUT,Y.KEYGEN,Y.LINK,Y.META,Y.PARAM,Y.SOURCE,Y.TRACK,Y.WBR;const Ul=CA("end"),Dn=CA("start");function CA(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function kA(e){const t=Dn(e),n=Ul(e);if(t&&n)return{start:t,end:n}}const fM=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,mM=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),JE={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function IA(e,t){const n=AM(e),r=lb("type",{handlers:{root:hM,element:gM,text:bM,comment:OA,doctype:EM,raw:xM},unknown:TM}),a={parser:n?new XE(JE):XE.getFragmentParser(void 0,JE),handle(s){r(s,a)},stitches:!1,options:t||{}};r(e,a),oi(a,Dn());const i=n?a.parser.document:a.parser.getFragment(),o=w2(i,{file:a.options.file});return a.stitches&&It(o,"comment",function(s,l,u){const d=s;if(d.value.stitch&&u&&l!==void 0){const c=u.children;return c[l]=d.value.stitch,l}}),o.type==="root"&&o.children.length===1&&o.children[0].type===e.type?o.children[0]:o}function RA(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function hM(e,t){RA(e.children,t)}function gM(e,t){vM(e,t),RA(e.children,t),SM(e,t)}function bM(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:ke.CHARACTER,chars:e.value,location:Io(e)};oi(t,Dn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function EM(e,t){const n={type:ke.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Io(e)};oi(t,Dn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function yM(e,t){t.stitches=!0;const n=wM(e);if("children"in e&&"children"in n){const r=IA({type:"root",children:e.children},t.options);n.children=r.children}OA({type:"comment",value:{stitch:n}},t)}function OA(e,t){const n=e.value,r={type:ke.COMMENT,data:n,location:Io(e)};oi(t,Dn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function xM(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,DA(t,Dn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(fM,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function TM(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))yM(n,t);else{let r="";throw mM.has(n.type)&&(r=". 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"),new Error("Cannot compile `"+n.type+"` node"+r)}}function oi(e,t){DA(e,t);const 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=ot.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 DA(e,t){if(t&&t.offset!==void 0){const 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 vM(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===ot.PLAINTEXT)return;oi(t,Dn(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Pr.html;a===Pr.html&&n==="svg"&&(a=Pr.svg);const i=I2({...e,children:[]},{space:a===Pr.svg?"svg":"html"}),o={type:ke.START_TAG,tagName:n,tagID:ii(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:Io(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function SM(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&B2.includes(n)||t.parser.tokenizer.state===ot.PLAINTEXT)return;oi(t,Ul(e));const r={type:ke.END_TAG,tagName:n,tagID:ii(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Io(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===ot.RCDATA||t.parser.tokenizer.state===ot.RAWTEXT||t.parser.tokenizer.state===ot.SCRIPT_DATA)&&(t.parser.tokenizer.state=ot.DATA)}function AM(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Io(e){const t=Dn(e)||{line:void 0,column:void 0,offset:void 0},n=Ul(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 wM(e){return"children"in e?fn({...e,children:[]}):fn(e)}function LA(e){return function(t,n){return IA(t,{...e,file:n})}}function _M(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}const NM=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,CM=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kM={};function ey(e,t){return(kM.jsx?CM:NM).test(e)}var PA={},ty=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,IM=/\n/g,RM=/^\s*/,OM=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,DM=/^:\s*/,LM=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,PM=/^[;\s]*/,FM=/^\s+|\s+$/g,MM=`
|
|
325
|
+
`,ny="/",ry="*",Rr="",BM="comment",UM="declaration",$M=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(h){var g=h.match(IM);g&&(n+=g.length);var b=h.lastIndexOf(MM);r=~b?h.length-b:r+h.length}function i(){var h={line:n,column:r};return function(g){return g.position=new o(h),u(),g}}function o(h){this.start=h,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(h){var g=new Error(t.source+":"+n+":"+r+": "+h);if(g.reason=h,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function l(h){var g=h.exec(e);if(g){var b=g[0];return a(b),e=e.slice(b.length),g}}function u(){l(RM)}function d(h){var g;for(h=h||[];g=c();)g!==!1&&h.push(g);return h}function c(){var h=i();if(!(ny!=e.charAt(0)||ry!=e.charAt(1))){for(var g=2;Rr!=e.charAt(g)&&(ry!=e.charAt(g)||ny!=e.charAt(g+1));)++g;if(g+=2,Rr===e.charAt(g-1))return s("End of comment missing");var b=e.slice(2,g-2);return r+=2,a(b),e=e.slice(g),r+=2,h({type:BM,comment:b})}}function f(){var h=i(),g=l(OM);if(g){if(c(),!l(DM))return s("property missing ':'");var b=l(LM),E=h({type:UM,property:ay(g[0].replace(ty,Rr)),value:b?ay(b[0].replace(ty,Rr)):Rr});return l(PM),E}}function m(){var h=[];d(h);for(var g;g=f();)g!==!1&&(h.push(g),d(h));return h}return u(),m()};function ay(e){return e?e.replace(FM,Rr):Rr}var jM=O0&&O0.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(PA,"__esModule",{value:!0});var iy=PA.default=zM,HM=jM($M);function zM(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,HM.default)(e),a=typeof t=="function";return r.forEach(function(i){if(i.type==="declaration"){var o=i.property,s=i.value;a?t(o,s,i):s&&(n=n||{},n[o]=s)}}),n}const GM=iy.default||iy;function Hi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?oy(e.position):"start"in e||"end"in e?oy(e):"line"in e||"column"in e?Qc(e):""}function Qc(e){return sy(e&&e.line)+":"+sy(e&&e.column)}function oy(e){return Qc(e&&e.start)+"-"+Qc(e&&e.end)}function sy(e){return e&&typeof e=="number"?e:1}class Ot extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=s?s.line:void 0,this.name=Hi(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Ot.prototype.file="";Ot.prototype.name="";Ot.prototype.reason="";Ot.prototype.message="";Ot.prototype.stack="";Ot.prototype.column=void 0;Ot.prototype.line=void 0;Ot.prototype.ancestors=void 0;Ot.prototype.cause=void 0;Ot.prototype.fatal=void 0;Ot.prototype.place=void 0;Ot.prototype.ruleId=void 0;Ot.prototype.source=void 0;const xb={}.hasOwnProperty,VM=new Map,WM=/[A-Z]/g,qM=/-([a-z])/g,YM=new Set(["table","tbody","thead","tfoot","tr"]),KM=new Set(["td","th"]),FA="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function XM(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=a3(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=r3(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Yn:aa,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=MA(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function MA(e,t,n){if(t.type==="element")return ZM(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return QM(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return e3(e,t,n);if(t.type==="mdxjsEsm")return JM(e,t);if(t.type==="root")return t3(e,t,n);if(t.type==="text")return n3(e,t)}function ZM(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Yn,e.schema=a),e.ancestors.push(t);const i=UA(e,t.tagName,!1),o=i3(e,t);let s=vb(e,t);return YM.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!FS(l):!0})),BA(e,o,i,t),Tb(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function QM(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ji(e,t.position)}function JM(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ji(e,t.position)}function e3(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Yn,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:UA(e,t.name,!0),o=o3(e,t),s=vb(e,t);return BA(e,o,i,t),Tb(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function t3(e,t,n){const r={};return Tb(r,vb(e,t)),e.create(t,e.Fragment,r,n)}function n3(e,t){return t.value}function BA(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Tb(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function r3(e,t,n){return r;function r(a,i,o,s){const u=Array.isArray(o.children)?n:t;return s?u(i,o,s):u(i,o)}}function a3(e,t){return n;function n(r,a,i,o){const s=Array.isArray(i.children),l=Dn(r);return t(a,i,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function i3(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&xb.call(t.properties,a)){const i=s3(e,a,t.properties[a]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&KM.has(t.tagName)?r=s:n[o]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function o3(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else Ji(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else Ji(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function vb(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:VM;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const u=a.get(l)||0;o=l+"-"+u,a.set(l,u+1)}}const s=MA(e,i,o);s!==void 0&&n.push(s)}return n}function s3(e,t,n){const r=ti(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?vp(n):Tp(n)),r.property==="style"){let a=typeof n=="object"?n:l3(e,String(n));return e.stylePropertyNameCase==="css"&&(a=u3(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?xD[r.property]||r.property:r.attribute,n]}}function l3(e,t){const n={};try{GM(t,r)}catch(a){if(!e.ignoreInvalidStyle){const i=a,o=new Ot("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=FA+"#cannot-parse-style-attribute",o}}return n;function r(a,i){let o=a;o.slice(0,2)!=="--"&&(o.slice(0,4)==="-ms-"&&(o="ms-"+o.slice(4)),o=o.replace(qM,d3)),n[o]=i}}function UA(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,o;for(;++i<a.length;){const s=ey(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}r=o}else r=ey(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return xb.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ji(e)}function Ji(e,t){const n=new Ot("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=FA+"#cannot-handle-mdx-estrees-without-createevaluater",n}function u3(e){const t={};let n;for(n in e)xb.call(e,n)&&(t[c3(n)]=e[n]);return t}function c3(e){let t=e.replace(WM,p3);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function d3(e,t){return t.toUpperCase()}function p3(e){return"-"+e.toLowerCase()}const Hu={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},f3={};function Sb(e,t){const n=f3,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return $A(e,r,a)}function $A(e,t,n){if(m3(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ly(e.children,t,n)}return Array.isArray(e)?ly(e,t,n):""}function ly(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=$A(e[a],t,n);return r.join("")}function m3(e){return!!(e&&typeof e=="object")}function Kt(e,t,n,r){const a=e.length;let i=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function en(e,t){return e.length>0?(Kt(e,e.length,0,t),e):t}const uy={}.hasOwnProperty;function jA(e){const t={};let n=-1;for(;++n<e.length;)h3(t,e[n]);return t}function h3(e,t){let n;for(n in t){const a=(uy.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){uy.call(a,o)||(a[o]=[]);const s=i[o];g3(a[o],Array.isArray(s)?s:s?[s]:[])}}}function g3(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Kt(e,0,0,r)}function HA(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function mn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Lt=Tr(/[A-Za-z]/),kt=Tr(/[\dA-Za-z]/),b3=Tr(/[#-'*+\--9=?A-Z^-~]/);function Vs(e){return e!==null&&(e<32||e===127)}const Jc=Tr(/\d/),E3=Tr(/[\dA-Fa-f]/),y3=Tr(/[!-/:-@[-`{-~]/);function ve(e){return e!==null&&e<-2}function je(e){return e!==null&&(e<0||e===32)}function Ie(e){return e===-2||e===-1||e===32}const $l=Tr(new RegExp("\\p{P}|\\p{S}","u")),zr=Tr(/\s/);function Tr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function si(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&kt(e.charCodeAt(n+1))&&kt(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Pe(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(l){return Ie(l)?(e.enter(n),s(l)):t(l)}function s(l){return Ie(l)&&i++<a?(e.consume(l),s):(e.exit(n),t(l))}}const x3={tokenize:T3};function T3(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Pe(e,t,"linePrefix")}function a(s){return e.enter("paragraph"),i(s)}function i(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return ve(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),o)}}const v3={tokenize:S3},cy={tokenize:A3};function S3(e){const t=this,n=[];let r=0,a,i,o;return s;function s(v){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,l,u)(v)}return u(v)}function l(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&T();const S=t.events.length;let w=S,A;for(;w--;)if(t.events[w][0]==="exit"&&t.events[w][1].type==="chunkFlow"){A=t.events[w][1].end;break}E(r);let _=S;for(;_<t.events.length;)t.events[_][1].end={...A},_++;return Kt(t.events,w+1,0,t.events.slice(S)),t.events.length=_,u(v)}return s(v)}function u(v){if(r===n.length){if(!a)return f(v);if(a.currentConstruct&&a.currentConstruct.concrete)return h(v);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(cy,d,c)(v)}function d(v){return a&&T(),E(r),f(v)}function c(v){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,h(v)}function f(v){return t.containerState={},e.attempt(cy,m,h)(v)}function m(v){return r++,n.push([t.currentConstruct,t.containerState]),f(v)}function h(v){if(v===null){a&&T(),E(0),e.consume(v);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),g(v)}function g(v){if(v===null){b(e.exit("chunkFlow"),!0),E(0),e.consume(v);return}return ve(v)?(e.consume(v),b(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(v),g)}function b(v,S){const w=t.sliceStream(v);if(S&&w.push(null),v.previous=i,i&&(i.next=v),i=v,a.defineSkip(v.start),a.write(w),t.parser.lazy[v.start.line]){let A=a.events.length;for(;A--;)if(a.events[A][1].start.offset<o&&(!a.events[A][1].end||a.events[A][1].end.offset>o))return;const _=t.events.length;let D=_,I,O;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(I){O=t.events[D][1].end;break}I=!0}for(E(r),A=_;A<t.events.length;)t.events[A][1].end={...O},A++;Kt(t.events,D+1,0,t.events.slice(_)),t.events.length=A}}function E(v){let S=n.length;for(;S-- >v;){const w=n[S];t.containerState=w[1],w[0].exit.call(t,e)}n.length=v}function T(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function A3(e,t,n){return Pe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ja(e){if(e===null||je(e)||zr(e))return 1;if($l(e))return 2}function jl(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const ed={name:"attention",resolveAll:w3,tokenize:_3};function w3(e,t){let n=-1,r,a,i,o,s,l,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},f={...e[n][1].start};dy(c,-l),dy(f,l),o={type:l>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},i={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=en(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=en(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=en(u,jl(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=en(u,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=en(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Kt(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function _3(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=ja(r);let i;return o;function o(l){return i=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===i)return e.consume(l),s;const u=e.exit("attentionSequence"),d=ja(l),c=!d||d===2&&a||n.includes(l),f=!a||a===2&&d||n.includes(r);return u._open=!!(i===42?c:c&&(a||!f)),u._close=!!(i===42?f:f&&(d||!c)),t(l)}}function dy(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const N3={name:"autolink",tokenize:C3};function C3(e,t,n){let r=0;return a;function a(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(m){return Lt(m)?(e.consume(m),o):m===64?n(m):u(m)}function o(m){return m===43||m===45||m===46||kt(m)?(r=1,s(m)):u(m)}function s(m){return m===58?(e.consume(m),r=0,l):(m===43||m===45||m===46||kt(m))&&r++<32?(e.consume(m),s):(r=0,u(m))}function l(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||Vs(m)?n(m):(e.consume(m),l)}function u(m){return m===64?(e.consume(m),d):b3(m)?(e.consume(m),u):n(m)}function d(m){return kt(m)?c(m):n(m)}function c(m){return m===46?(e.consume(m),r=0,d):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):f(m)}function f(m){if((m===45||kt(m))&&r++<63){const h=m===45?f:c;return e.consume(m),h}return n(m)}}const Ro={partial:!0,tokenize:k3};function k3(e,t,n){return r;function r(i){return Ie(i)?Pe(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||ve(i)?t(i):n(i)}}const zA={continuation:{tokenize:R3},exit:O3,name:"blockQuote",tokenize:I3};function I3(e,t,n){const r=this;return a;function a(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)}function i(o){return Ie(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function R3(e,t,n){const r=this;return a;function a(o){return Ie(o)?Pe(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(zA,t,n)(o)}}function O3(e){e.exit("blockQuote")}const GA={name:"characterEscape",tokenize:D3};function D3(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return y3(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const VA={name:"characterReference",tokenize:L3};function L3(e,t,n){const r=this;let a=0,i,o;return s;function s(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),l}function l(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,o=kt,d(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=E3,d):(e.enter("characterReferenceValue"),i=7,o=Jc,d(c))}function d(c){if(c===59&&a){const f=e.exit("characterReferenceValue");return o===kt&&!Zi(r.sliceSerialize(f))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(c)&&a++<i?(e.consume(c),d):n(c)}}const py={partial:!0,tokenize:F3},fy={concrete:!0,name:"codeFenced",tokenize:P3};function P3(e,t,n){const r=this,a={partial:!0,tokenize:w};let i=0,o=0,s;return l;function l(A){return u(A)}function u(A){const _=r.events[r.events.length-1];return i=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,s=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(A)}function d(A){return A===s?(o++,e.consume(A),d):o<3?n(A):(e.exit("codeFencedFenceSequence"),Ie(A)?Pe(e,c,"whitespace")(A):c(A))}function c(A){return A===null||ve(A)?(e.exit("codeFencedFence"),r.interrupt?t(A):e.check(py,g,S)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(A))}function f(A){return A===null||ve(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(A)):Ie(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Pe(e,m,"whitespace")(A)):A===96&&A===s?n(A):(e.consume(A),f)}function m(A){return A===null||ve(A)?c(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(A))}function h(A){return A===null||ve(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(A)):A===96&&A===s?n(A):(e.consume(A),h)}function g(A){return e.attempt(a,S,b)(A)}function b(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),E}function E(A){return i>0&&Ie(A)?Pe(e,T,"linePrefix",i+1)(A):T(A)}function T(A){return A===null||ve(A)?e.check(py,g,S)(A):(e.enter("codeFlowValue"),v(A))}function v(A){return A===null||ve(A)?(e.exit("codeFlowValue"),T(A)):(e.consume(A),v)}function S(A){return e.exit("codeFenced"),t(A)}function w(A,_,D){let I=0;return O;function O(W){return A.enter("lineEnding"),A.consume(W),A.exit("lineEnding"),M}function M(W){return A.enter("codeFencedFence"),Ie(W)?Pe(A,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):P(W)}function P(W){return W===s?(A.enter("codeFencedFenceSequence"),j(W)):D(W)}function j(W){return W===s?(I++,A.consume(W),j):I>=o?(A.exit("codeFencedFenceSequence"),Ie(W)?Pe(A,z,"whitespace")(W):z(W)):D(W)}function z(W){return W===null||ve(W)?(A.exit("codeFencedFence"),_(W)):D(W)}}}function F3(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const zu={name:"codeIndented",tokenize:B3},M3={partial:!0,tokenize:U3};function B3(e,t,n){const r=this;return a;function a(u){return e.enter("codeIndented"),Pe(e,i,"linePrefix",5)(u)}function i(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):ve(u)?e.attempt(M3,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||ve(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function U3(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):ve(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):Pe(e,i,"linePrefix",5)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):ve(o)?a(o):n(o)}}const $3={name:"codeText",previous:H3,resolve:j3,tokenize:z3};function j3(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function H3(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function z3(e,t,n){let r=0,a,i;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),s(c)}function s(c){return c===96?(e.consume(c),r++,s):(e.exit("codeTextSequence"),l(c))}function l(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),l):c===96?(i=e.enter("codeTextSequence"),a=0,d(c)):ve(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||ve(c)?(e.exit("codeTextData"),l(c)):(e.consume(c),u)}function d(c){return c===96?(e.consume(c),a++,d):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(i.type="codeTextData",u(c))}}class G3{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&xi(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),xi(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),xi(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);xi(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);xi(this.left,n.reverse())}}}function xi(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function WA(e){const t={};let n=-1,r,a,i,o,s,l,u;const d=new G3(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,V3(d,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,a=void 0;i--&&(o=d.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(a&&(d.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=i);a&&(r[1].end={...d.get(a)[1].start},s=d.slice(a,n),s.unshift(r),d.splice(a,n-a+1,s))}}return Kt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function V3(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[],o=n._tokenizer||r.parser[n.contentType](n.start),s=o.events,l=[],u={};let d,c,f=-1,m=n,h=0,g=0;const b=[g];for(;m;){for(;e.get(++a)[1]!==m;);i.push(a),m._tokenizer||(d=r.sliceStream(m),m.next||d.push(null),c&&o.defineSkip(m.start),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),m._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=m,m=m.next}for(m=n;++f<s.length;)s[f][0]==="exit"&&s[f-1][0]==="enter"&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(g=f+1,b.push(g),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(o.events=[],m?(m._tokenizer=void 0,m.previous=void 0):b.pop(),f=b.length;f--;){const E=s.slice(b[f],b[f+1]),T=i.pop();l.push([T,T+E.length-1]),e.splice(T,2,E)}for(l.reverse(),f=-1;++f<l.length;)u[h+l[f][0]]=h+l[f][1],h+=l[f][1]-l[f][0]-1;return u}const W3={resolve:Y3,tokenize:K3},q3={partial:!0,tokenize:X3};function Y3(e){return WA(e),e}function K3(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(s)}function a(s){return s===null?i(s):ve(s)?e.check(q3,o,i)(s):(e.consume(s),a)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function X3(e,t,n){const r=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Pe(e,i,"linePrefix")}function i(o){if(o===null||ve(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function qA(e,t,n,r,a,i,o,s,l){const u=l||Number.POSITIVE_INFINITY;let d=0;return c;function c(E){return E===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(E),e.exit(i),f):E===null||E===32||E===41||Vs(E)?n(E):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(E))}function f(E){return E===62?(e.enter(i),e.consume(E),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===62?(e.exit("chunkString"),e.exit(s),f(E)):E===null||E===60||ve(E)?n(E):(e.consume(E),E===92?h:m)}function h(E){return E===60||E===62||E===92?(e.consume(E),m):m(E)}function g(E){return!d&&(E===null||E===41||je(E))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(E)):d<u&&E===40?(e.consume(E),d++,g):E===41?(e.consume(E),d--,g):E===null||E===32||E===40||Vs(E)?n(E):(e.consume(E),E===92?b:g)}function b(E){return E===40||E===41||E===92?(e.consume(E),g):g(E)}}function YA(e,t,n,r,a,i){const o=this;let s=0,l;return u;function u(m){return e.enter(r),e.enter(a),e.consume(m),e.exit(a),e.enter(i),d}function d(m){return s>999||m===null||m===91||m===93&&!l||m===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(m):m===93?(e.exit(i),e.enter(a),e.consume(m),e.exit(a),e.exit(r),t):ve(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===null||m===91||m===93||ve(m)||s++>999?(e.exit("chunkString"),d(m)):(e.consume(m),l||(l=!Ie(m)),m===92?f:c)}function f(m){return m===91||m===92||m===93?(e.consume(m),s++,c):c(m)}}function KA(e,t,n,r,a,i){let o;return s;function s(f){return f===34||f===39||f===40?(e.enter(r),e.enter(a),e.consume(f),e.exit(a),o=f===40?41:f,l):n(f)}function l(f){return f===o?(e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):(e.enter(i),u(f))}function u(f){return f===o?(e.exit(i),l(o)):f===null?n(f):ve(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Pe(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===o||f===null||ve(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?c:d)}function c(f){return f===o||f===92?(e.consume(f),d):d(f)}}function zi(e,t){let n;return r;function r(a){return ve(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):Ie(a)?Pe(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const Z3={name:"definition",tokenize:J3},Q3={partial:!0,tokenize:eB};function J3(e,t,n){const r=this;let a;return i;function i(m){return e.enter("definition"),o(m)}function o(m){return YA.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function s(m){return a=mn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):n(m)}function l(m){return je(m)?zi(e,u)(m):u(m)}function u(m){return qA(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function d(m){return e.attempt(Q3,c,c)(m)}function c(m){return Ie(m)?Pe(e,f,"whitespace")(m):f(m)}function f(m){return m===null||ve(m)?(e.exit("definition"),r.parser.defined.push(a),t(m)):n(m)}}function eB(e,t,n){return r;function r(s){return je(s)?zi(e,a)(s):n(s)}function a(s){return KA(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return Ie(s)?Pe(e,o,"whitespace")(s):o(s)}function o(s){return s===null||ve(s)?t(s):n(s)}}const tB={name:"hardBreakEscape",tokenize:nB};function nB(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ve(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const rB={name:"headingAtx",resolve:aB,tokenize:iB};function aB(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Kt(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function iB(e,t,n){let r=0;return a;function a(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||je(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||ve(d)?(e.exit("atxHeading"),t(d)):Ie(d)?Pe(e,s,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),s(d))}function u(d){return d===null||d===35||je(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),u)}}const oB=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],my=["pre","script","style","textarea"],sB={concrete:!0,name:"htmlFlow",resolveTo:cB,tokenize:dB},lB={partial:!0,tokenize:fB},uB={partial:!0,tokenize:pB};function cB(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function dB(e,t,n){const r=this;let a,i,o,s,l;return u;function u(N){return d(N)}function d(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),c}function c(N){return N===33?(e.consume(N),f):N===47?(e.consume(N),i=!0,g):N===63?(e.consume(N),a=3,r.interrupt?t:k):Lt(N)?(e.consume(N),o=String.fromCharCode(N),b):n(N)}function f(N){return N===45?(e.consume(N),a=2,m):N===91?(e.consume(N),a=5,s=0,h):Lt(N)?(e.consume(N),a=4,r.interrupt?t:k):n(N)}function m(N){return N===45?(e.consume(N),r.interrupt?t:k):n(N)}function h(N){const te="CDATA[";return N===te.charCodeAt(s++)?(e.consume(N),s===te.length?r.interrupt?t:P:h):n(N)}function g(N){return Lt(N)?(e.consume(N),o=String.fromCharCode(N),b):n(N)}function b(N){if(N===null||N===47||N===62||je(N)){const te=N===47,U=o.toLowerCase();return!te&&!i&&my.includes(U)?(a=1,r.interrupt?t(N):P(N)):oB.includes(o.toLowerCase())?(a=6,te?(e.consume(N),E):r.interrupt?t(N):P(N)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(N):i?T(N):v(N))}return N===45||kt(N)?(e.consume(N),o+=String.fromCharCode(N),b):n(N)}function E(N){return N===62?(e.consume(N),r.interrupt?t:P):n(N)}function T(N){return Ie(N)?(e.consume(N),T):O(N)}function v(N){return N===47?(e.consume(N),O):N===58||N===95||Lt(N)?(e.consume(N),S):Ie(N)?(e.consume(N),v):O(N)}function S(N){return N===45||N===46||N===58||N===95||kt(N)?(e.consume(N),S):w(N)}function w(N){return N===61?(e.consume(N),A):Ie(N)?(e.consume(N),w):v(N)}function A(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),l=N,_):Ie(N)?(e.consume(N),A):D(N)}function _(N){return N===l?(e.consume(N),l=null,I):N===null||ve(N)?n(N):(e.consume(N),_)}function D(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||je(N)?w(N):(e.consume(N),D)}function I(N){return N===47||N===62||Ie(N)?v(N):n(N)}function O(N){return N===62?(e.consume(N),M):n(N)}function M(N){return N===null||ve(N)?P(N):Ie(N)?(e.consume(N),M):n(N)}function P(N){return N===45&&a===2?(e.consume(N),H):N===60&&a===1?(e.consume(N),X):N===62&&a===4?(e.consume(N),ae):N===63&&a===3?(e.consume(N),k):N===93&&a===5?(e.consume(N),G):ve(N)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(lB,V,j)(N)):N===null||ve(N)?(e.exit("htmlFlowData"),j(N)):(e.consume(N),P)}function j(N){return e.check(uB,z,V)(N)}function z(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),W}function W(N){return N===null||ve(N)?j(N):(e.enter("htmlFlowData"),P(N))}function H(N){return N===45?(e.consume(N),k):P(N)}function X(N){return N===47?(e.consume(N),o="",Z):P(N)}function Z(N){if(N===62){const te=o.toLowerCase();return my.includes(te)?(e.consume(N),ae):P(N)}return Lt(N)&&o.length<8?(e.consume(N),o+=String.fromCharCode(N),Z):P(N)}function G(N){return N===93?(e.consume(N),k):P(N)}function k(N){return N===62?(e.consume(N),ae):N===45&&a===2?(e.consume(N),k):P(N)}function ae(N){return N===null||ve(N)?(e.exit("htmlFlowData"),V(N)):(e.consume(N),ae)}function V(N){return e.exit("htmlFlow"),t(N)}}function pB(e,t,n){const r=this;return a;function a(o){return ve(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function fB(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Ro,t,n)}}const mB={name:"htmlText",tokenize:hB};function hB(e,t,n){const r=this;let a,i,o;return s;function s(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),l}function l(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),w):k===63?(e.consume(k),v):Lt(k)?(e.consume(k),D):n(k)}function u(k){return k===45?(e.consume(k),d):k===91?(e.consume(k),i=0,h):Lt(k)?(e.consume(k),T):n(k)}function d(k){return k===45?(e.consume(k),m):n(k)}function c(k){return k===null?n(k):k===45?(e.consume(k),f):ve(k)?(o=c,X(k)):(e.consume(k),c)}function f(k){return k===45?(e.consume(k),m):c(k)}function m(k){return k===62?H(k):k===45?f(k):c(k)}function h(k){const ae="CDATA[";return k===ae.charCodeAt(i++)?(e.consume(k),i===ae.length?g:h):n(k)}function g(k){return k===null?n(k):k===93?(e.consume(k),b):ve(k)?(o=g,X(k)):(e.consume(k),g)}function b(k){return k===93?(e.consume(k),E):g(k)}function E(k){return k===62?H(k):k===93?(e.consume(k),E):g(k)}function T(k){return k===null||k===62?H(k):ve(k)?(o=T,X(k)):(e.consume(k),T)}function v(k){return k===null?n(k):k===63?(e.consume(k),S):ve(k)?(o=v,X(k)):(e.consume(k),v)}function S(k){return k===62?H(k):v(k)}function w(k){return Lt(k)?(e.consume(k),A):n(k)}function A(k){return k===45||kt(k)?(e.consume(k),A):_(k)}function _(k){return ve(k)?(o=_,X(k)):Ie(k)?(e.consume(k),_):H(k)}function D(k){return k===45||kt(k)?(e.consume(k),D):k===47||k===62||je(k)?I(k):n(k)}function I(k){return k===47?(e.consume(k),H):k===58||k===95||Lt(k)?(e.consume(k),O):ve(k)?(o=I,X(k)):Ie(k)?(e.consume(k),I):H(k)}function O(k){return k===45||k===46||k===58||k===95||kt(k)?(e.consume(k),O):M(k)}function M(k){return k===61?(e.consume(k),P):ve(k)?(o=M,X(k)):Ie(k)?(e.consume(k),M):I(k)}function P(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),a=k,j):ve(k)?(o=P,X(k)):Ie(k)?(e.consume(k),P):(e.consume(k),z)}function j(k){return k===a?(e.consume(k),a=void 0,W):k===null?n(k):ve(k)?(o=j,X(k)):(e.consume(k),j)}function z(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||je(k)?I(k):(e.consume(k),z)}function W(k){return k===47||k===62||je(k)?I(k):n(k)}function H(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function X(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),Z}function Z(k){return Ie(k)?Pe(e,G,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):G(k)}function G(k){return e.enter("htmlTextData"),o(k)}}const Ab={name:"labelEnd",resolveAll:yB,resolveTo:xB,tokenize:TB},gB={tokenize:vB},bB={tokenize:SB},EB={tokenize:AB};function yB(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&Kt(e,0,e.length,n),e}function xB(e,t){let n=e.length,r=0,a,i,o,s;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(o=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,t],["enter",u,t]],s=en(s,e.slice(i+1,i+r+3)),s=en(s,[["enter",d,t]]),s=en(s,jl(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),s=en(s,[["exit",d,t],e[o-2],e[o-1],["exit",u,t]]),s=en(s,e.slice(o+1)),s=en(s,[["exit",l,t]]),Kt(e,i,e.length,s),e}function TB(e,t,n){const r=this;let a=r.events.length,i,o;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return s;function s(f){return i?i._inactive?c(f):(o=r.parser.defined.includes(mn(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(gB,d,o?d:c)(f):f===91?e.attempt(bB,d,o?u:c)(f):o?d(f):c(f)}function u(f){return e.attempt(EB,d,c)(f)}function d(f){return t(f)}function c(f){return i._balanced=!0,n(f)}}function vB(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),a}function a(c){return je(c)?zi(e,i)(c):i(c)}function i(c){return c===41?d(c):qA(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return je(c)?zi(e,l)(c):d(c)}function s(c){return n(c)}function l(c){return c===34||c===39||c===40?KA(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):d(c)}function u(c){return je(c)?zi(e,d)(c):d(c)}function d(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function SB(e,t,n){const r=this;return a;function a(s){return YA.call(r,e,i,o,"reference","referenceMarker","referenceString")(s)}function i(s){return r.parser.defined.includes(mn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function AB(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const wB={name:"labelStartImage",resolveAll:Ab.resolveAll,tokenize:_B};function _B(e,t,n){const r=this;return a;function a(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const NB={name:"labelStartLink",resolveAll:Ab.resolveAll,tokenize:CB};function CB(e,t,n){const r=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Gu={name:"lineEnding",tokenize:kB};function kB(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Pe(e,t,"linePrefix")}}const _s={name:"thematicBreak",tokenize:IB};function IB(e,t,n){let r=0,a;return i;function i(u){return e.enter("thematicBreak"),o(u)}function o(u){return a=u,s(u)}function s(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||ve(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===a?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Ie(u)?Pe(e,s,"whitespace")(u):s(u))}}const jt={continuation:{tokenize:LB},exit:FB,name:"list",tokenize:DB},RB={partial:!0,tokenize:MB},OB={partial:!0,tokenize:PB};function DB(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(m){const h=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:Jc(m)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(_s,n,u)(m):u(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return n(m)}function l(m){return Jc(m)&&++o<10?(e.consume(m),l):(!r.interrupt||o<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),u(m)):n(m)}function u(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(Ro,r.interrupt?n:d,e.attempt(RB,f,c))}function d(m){return r.containerState.initialBlankLine=!0,i++,f(m)}function c(m){return Ie(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),f):n(m)}function f(m){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function LB(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ro,a,i);function a(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Pe(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!Ie(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(OB,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Pe(e,e.attempt(jt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function PB(e,t,n){const r=this;return Pe(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function FB(e){e.exit(this.containerState.type)}function MB(e,t,n){const r=this;return Pe(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const o=r.events[r.events.length-1];return!Ie(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const hy={name:"setextUnderline",resolveTo:BB,tokenize:UB};function BB(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function UB(e,t,n){const r=this;let a;return i;function i(u){let d=r.events.length,c;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){c=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),a=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===a?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Ie(u)?Pe(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||ve(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const $B={tokenize:jB};function jB(e){const t=this,n=e.attempt(Ro,r,e.attempt(this.parser.constructs.flowInitial,a,Pe(e,e.attempt(this.parser.constructs.flow,a,e.attempt(W3,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const HB={resolveAll:ZA()},zB=XA("string"),GB=XA("text");function XA(e){return{resolveAll:ZA(e==="text"?VB:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,s);return o;function o(d){return u(d)?i(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return u(d)?(n.exit("data"),i(d)):(n.consume(d),l)}function u(d){if(d===null)return!0;const c=a[d];let f=-1;if(c)for(;++f<c.length;){const m=c[f];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function ZA(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function VB(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,o=-1,s=0,l;for(;i--;){const u=a[i];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){i++;break}}if(s){const u={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:r.start._bufferIndex+o,_index:r.start._index+i,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const WB={42:jt,43:jt,45:jt,48:jt,49:jt,50:jt,51:jt,52:jt,53:jt,54:jt,55:jt,56:jt,57:jt,62:zA},qB={91:Z3},YB={[-2]:zu,[-1]:zu,32:zu},KB={35:rB,42:_s,45:[hy,_s],60:sB,61:hy,95:_s,96:fy,126:fy},XB={38:VA,92:GA},ZB={[-5]:Gu,[-4]:Gu,[-3]:Gu,33:wB,38:VA,42:ed,60:[N3,mB],91:NB,92:[tB,GA],93:Ab,95:ed,96:$3},QB={null:[ed,HB]},JB={null:[42,95]},e4={null:[]},t4=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:JB,contentInitial:qB,disable:e4,document:WB,flow:KB,flowInitial:YB,insideSpan:QB,string:XB,text:ZB},Symbol.toStringTag,{value:"Module"}));function n4(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let o=[],s=[];const l={attempt:_(w),check:_(A),consume:T,enter:v,exit:S,interrupt:_(A,{interrupt:!0})},u={code:null,containerState:{},defineSkip:g,events:[],now:h,parser:e,previous:null,sliceSerialize:f,sliceStream:m,write:c};let d=t.tokenize.call(u,l);return t.resolveAll&&i.push(t),u;function c(M){return o=en(o,M),b(),o[o.length-1]!==null?[]:(D(t,0),u.events=jl(i,u.events,u),u.events)}function f(M,P){return a4(m(M),P)}function m(M){return r4(o,M)}function h(){const{_bufferIndex:M,_index:P,line:j,column:z,offset:W}=r;return{_bufferIndex:M,_index:P,line:j,column:z,offset:W}}function g(M){a[M.line]=M.column,O()}function b(){let M;for(;r._index<o.length;){const P=o[r._index];if(typeof P=="string")for(M=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===M&&r._bufferIndex<P.length;)E(P.charCodeAt(r._bufferIndex));else E(P)}}function E(M){d=d(M)}function T(M){ve(M)?(r.line++,r.column=1,r.offset+=M===-3?2:1,O()):M!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=M}function v(M,P){const j=P||{};return j.type=M,j.start=h(),u.events.push(["enter",j,u]),s.push(j),j}function S(M){const P=s.pop();return P.end=h(),u.events.push(["exit",P,u]),P}function w(M,P){D(M,P.from)}function A(M,P){P.restore()}function _(M,P){return j;function j(z,W,H){let X,Z,G,k;return Array.isArray(z)?V(z):"tokenize"in z?V([z]):ae(z);function ae(K){return Q;function Q(J){const oe=J!==null&&K[J],de=J!==null&&K.null,ie=[...Array.isArray(oe)?oe:oe?[oe]:[],...Array.isArray(de)?de:de?[de]:[]];return V(ie)(J)}}function V(K){return X=K,Z=0,K.length===0?H:N(K[Z])}function N(K){return Q;function Q(J){return k=I(),G=K,K.partial||(u.currentConstruct=K),K.name&&u.parser.constructs.disable.null.includes(K.name)?U():K.tokenize.call(P?Object.assign(Object.create(u),P):u,l,te,U)(J)}}function te(K){return M(G,k),W}function U(K){return k.restore(),++Z<X.length?N(X[Z]):H}}}function D(M,P){M.resolveAll&&!i.includes(M)&&i.push(M),M.resolve&&Kt(u.events,P,u.events.length-P,M.resolve(u.events.slice(P),u)),M.resolveTo&&(u.events=M.resolveTo(u.events,u))}function I(){const M=h(),P=u.previous,j=u.currentConstruct,z=u.events.length,W=Array.from(s);return{from:z,restore:H};function H(){r=M,u.previous=P,u.currentConstruct=j,u.events.length=z,s=W,O()}}function O(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function r4(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(r,i)];else{if(o=e.slice(n,a),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function a4(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
|
|
326
|
+
`;break}case-3:{o=`\r
|
|
327
|
+
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(i)}a=i===-2,r.push(o)}return r.join("")}function i4(e){const r={constructs:jA([t4,...(e||{}).extensions||[]]),content:a(x3),defined:[],document:a(v3),flow:a($B),lazy:{},string:a(zB),text:a(GB)};return r;function a(i){return o;function o(s){return n4(r,i,s)}}}function o4(e){for(;!WA(e););return e}const gy=/[\0\t\n\r]/g;function s4(){let e=1,t="",n=!0,r;return a;function a(i,o,s){const l=[];let u,d,c,f,m;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),c=0,t="",n&&(i.charCodeAt(0)===65279&&c++,n=void 0);c<i.length;){if(gy.lastIndex=c,u=gy.exec(i),f=u&&u.index!==void 0?u.index:i.length,m=i.charCodeAt(f),!u){t=i.slice(c);break}if(m===10&&c===f&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),c<f&&(l.push(i.slice(c,f)),e+=f-c),m){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}c=f+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const l4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function u4(e){return e.replace(l4,c4)}function c4(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return HA(n.slice(i?2:1),i?16:10)}return Zi(n)||e}const QA={}.hasOwnProperty;function d4(e,t,n){return typeof t!="string"&&(n=t,t=void 0),p4(n)(o4(i4(n).document().write(s4()(e,t,!0))))}function p4(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(xe),autolinkProtocol:I,autolinkEmail:I,atxHeading:i(pe),blockQuote:i(de),characterEscape:I,characterReference:I,codeFenced:i(ie),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(ie,o),codeText:i($,o),codeTextData:I,data:I,codeFlowValue:I,definition:i(re),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(se),hardBreakEscape:i(ye),hardBreakTrailing:i(ye),htmlFlow:i(be,o),htmlFlowData:I,htmlText:i(be,o),htmlTextData:I,image:i(Le),label:o,link:i(xe),listItem:i(De),listItemValue:f,listOrdered:i(Te,c),listUnordered:i(Te),paragraph:i(Be),reference:N,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(pe),strong:i(Me),thematicBreak:i(Ce)},exit:{atxHeading:l(),atxHeadingSequence:w,autolink:l(),autolinkEmail:oe,autolinkProtocol:J,blockQuote:l(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,characterReferenceValue:K,characterReference:Q,codeFenced:l(b),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:O,codeIndented:l(E),codeText:l(W),codeTextData:O,data:O,definition:l(),definitionDestinationString:S,definitionLabelString:T,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(P),hardBreakTrailing:l(P),htmlFlow:l(j),htmlFlowData:O,htmlText:l(z),htmlTextData:O,image:l(X),label:G,labelText:Z,lineEnding:M,link:l(H),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:te,resourceDestinationString:k,resourceTitleString:ae,resource:V,setextHeading:l(D),setextHeadingLineSequence:_,setextHeadingText:A,strong:l(),thematicBreak:l()}};JA(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ee){let q={type:"root",children:[]};const ue={stack:[q],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:d,data:n},he=[];let me=-1;for(;++me<ee.length;)if(ee[me][1].type==="listOrdered"||ee[me][1].type==="listUnordered")if(ee[me][0]==="enter")he.push(me);else{const Fe=he.pop();me=a(ee,Fe,me)}for(me=-1;++me<ee.length;){const Fe=t[ee[me][0]];QA.call(Fe,ee[me][1].type)&&Fe[ee[me][1].type].call(Object.assign({sliceSerialize:ee[me][2].sliceSerialize},ue),ee[me][1])}if(ue.tokenStack.length>0){const Fe=ue.tokenStack[ue.tokenStack.length-1];(Fe[1]||by).call(ue,void 0,Fe[0])}for(q.position={start:Qn(ee.length>0?ee[0][1].start:{line:1,column:1,offset:0}),end:Qn(ee.length>0?ee[ee.length-2][1].end:{line:1,column:1,offset:0})},me=-1;++me<t.transforms.length;)q=t.transforms[me](q)||q;return q}function a(ee,q,ue){let he=q-1,me=-1,Fe=!1,$e,Ve,gt,tt;for(;++he<=ue;){const rt=ee[he];switch(rt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{rt[0]==="enter"?me++:me--,tt=void 0;break}case"lineEndingBlank":{rt[0]==="enter"&&($e&&!tt&&!me&&!gt&&(gt=he),tt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:tt=void 0}if(!me&&rt[0]==="enter"&&rt[1].type==="listItemPrefix"||me===-1&&rt[0]==="exit"&&(rt[1].type==="listUnordered"||rt[1].type==="listOrdered")){if($e){let qe=he;for(Ve=void 0;qe--;){const ut=ee[qe];if(ut[1].type==="lineEnding"||ut[1].type==="lineEndingBlank"){if(ut[0]==="exit")continue;Ve&&(ee[Ve][1].type="lineEndingBlank",Fe=!0),ut[1].type="lineEnding",Ve=qe}else if(!(ut[1].type==="linePrefix"||ut[1].type==="blockQuotePrefix"||ut[1].type==="blockQuotePrefixWhitespace"||ut[1].type==="blockQuoteMarker"||ut[1].type==="listItemIndent"))break}gt&&(!Ve||gt<Ve)&&($e._spread=!0),$e.end=Object.assign({},Ve?ee[Ve][1].start:rt[1].end),ee.splice(Ve||he,0,["exit",$e,rt[2]]),he++,ue++}if(rt[1].type==="listItemPrefix"){const qe={type:"listItem",_spread:!1,start:Object.assign({},rt[1].start),end:void 0};$e=qe,ee.splice(he,0,["enter",qe,rt[2]]),he++,ue++,gt=void 0,tt=!0}}}return ee[q][1]._spread=Fe,ue}function i(ee,q){return ue;function ue(he){s.call(this,ee(he),he),q&&q.call(this,he)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(ee,q,ue){this.stack[this.stack.length-1].children.push(ee),this.stack.push(ee),this.tokenStack.push([q,ue||void 0]),ee.position={start:Qn(q.start),end:void 0}}function l(ee){return q;function q(ue){ee&&ee.call(this,ue),u.call(this,ue)}}function u(ee,q){const ue=this.stack.pop(),he=this.tokenStack.pop();if(he)he[0].type!==ee.type&&(q?q.call(this,ee,he[0]):(he[1]||by).call(this,ee,he[0]));else throw new Error("Cannot close `"+ee.type+"` ("+Hi({start:ee.start,end:ee.end})+"): it’s not open");ue.position.end=Qn(ee.end)}function d(){return Sb(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function f(ee){if(this.data.expectingFirstListItemValue){const q=this.stack[this.stack.length-2];q.start=Number.parseInt(this.sliceSerialize(ee),10),this.data.expectingFirstListItemValue=void 0}}function m(){const ee=this.resume(),q=this.stack[this.stack.length-1];q.lang=ee}function h(){const ee=this.resume(),q=this.stack[this.stack.length-1];q.meta=ee}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const ee=this.resume(),q=this.stack[this.stack.length-1];q.value=ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const ee=this.resume(),q=this.stack[this.stack.length-1];q.value=ee.replace(/(\r?\n|\r)$/g,"")}function T(ee){const q=this.resume(),ue=this.stack[this.stack.length-1];ue.label=q,ue.identifier=mn(this.sliceSerialize(ee)).toLowerCase()}function v(){const ee=this.resume(),q=this.stack[this.stack.length-1];q.title=ee}function S(){const ee=this.resume(),q=this.stack[this.stack.length-1];q.url=ee}function w(ee){const q=this.stack[this.stack.length-1];if(!q.depth){const ue=this.sliceSerialize(ee).length;q.depth=ue}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function _(ee){const q=this.stack[this.stack.length-1];q.depth=this.sliceSerialize(ee).codePointAt(0)===61?1:2}function D(){this.data.setextHeadingSlurpLineEnding=void 0}function I(ee){const ue=this.stack[this.stack.length-1].children;let he=ue[ue.length-1];(!he||he.type!=="text")&&(he=Ue(),he.position={start:Qn(ee.start),end:void 0},ue.push(he)),this.stack.push(he)}function O(ee){const q=this.stack.pop();q.value+=this.sliceSerialize(ee),q.position.end=Qn(ee.end)}function M(ee){const q=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ue=q.children[q.children.length-1];ue.position.end=Qn(ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(q.type)&&(I.call(this,ee),O.call(this,ee))}function P(){this.data.atHardBreak=!0}function j(){const ee=this.resume(),q=this.stack[this.stack.length-1];q.value=ee}function z(){const ee=this.resume(),q=this.stack[this.stack.length-1];q.value=ee}function W(){const ee=this.resume(),q=this.stack[this.stack.length-1];q.value=ee}function H(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const q=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=q,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function X(){const ee=this.stack[this.stack.length-1];if(this.data.inReference){const q=this.data.referenceType||"shortcut";ee.type+="Reference",ee.referenceType=q,delete ee.url,delete ee.title}else delete ee.identifier,delete ee.label;this.data.referenceType=void 0}function Z(ee){const q=this.sliceSerialize(ee),ue=this.stack[this.stack.length-2];ue.label=u4(q),ue.identifier=mn(q).toLowerCase()}function G(){const ee=this.stack[this.stack.length-1],q=this.resume(),ue=this.stack[this.stack.length-1];if(this.data.inReference=!0,ue.type==="link"){const he=ee.children;ue.children=he}else ue.alt=q}function k(){const ee=this.resume(),q=this.stack[this.stack.length-1];q.url=ee}function ae(){const ee=this.resume(),q=this.stack[this.stack.length-1];q.title=ee}function V(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function te(ee){const q=this.resume(),ue=this.stack[this.stack.length-1];ue.label=q,ue.identifier=mn(this.sliceSerialize(ee)).toLowerCase(),this.data.referenceType="full"}function U(ee){this.data.characterReferenceType=ee.type}function K(ee){const q=this.sliceSerialize(ee),ue=this.data.characterReferenceType;let he;ue?(he=HA(q,ue==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):he=Zi(q);const me=this.stack[this.stack.length-1];me.value+=he}function Q(ee){const q=this.stack.pop();q.position.end=Qn(ee.end)}function J(ee){O.call(this,ee);const q=this.stack[this.stack.length-1];q.url=this.sliceSerialize(ee)}function oe(ee){O.call(this,ee);const q=this.stack[this.stack.length-1];q.url="mailto:"+this.sliceSerialize(ee)}function de(){return{type:"blockquote",children:[]}}function ie(){return{type:"code",lang:null,meta:null,value:""}}function $(){return{type:"inlineCode",value:""}}function re(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function se(){return{type:"emphasis",children:[]}}function pe(){return{type:"heading",depth:0,children:[]}}function ye(){return{type:"break"}}function be(){return{type:"html",value:""}}function Le(){return{type:"image",title:null,url:"",alt:null}}function xe(){return{type:"link",title:null,url:"",children:[]}}function Te(ee){return{type:"list",ordered:ee.type==="listOrdered",start:null,spread:ee._spread,children:[]}}function De(ee){return{type:"listItem",spread:ee._spread,checked:null,children:[]}}function Be(){return{type:"paragraph",children:[]}}function Me(){return{type:"strong",children:[]}}function Ue(){return{type:"text",value:""}}function Ce(){return{type:"thematicBreak"}}}function Qn(e){return{line:e.line,column:e.column,offset:e.offset}}function JA(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?JA(e,r):f4(e,r)}}function f4(e,t){let n;for(n in t)if(QA.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function by(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Hi({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Hi({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Hi({start:t.start,end:t.end})+") is still open")}function m4(e){const t=this;t.parser=n;function n(r){return d4(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function h4(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function g4(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
328
|
+
`}]}function b4(e,t){const n=t.value?t.value+`
|
|
329
|
+
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function E4(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function y4(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function x4(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=si(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=i+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function T4(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function v4(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ew(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=r:a.push({type:"text",value:r}),a}function S4(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ew(e,t);const a={src:si(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function A4(e,t){const n={src:si(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function w4(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function _4(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ew(e,t);const a={href:si(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function N4(e,t){const n={href:si(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function C4(e,t,n){const r=e.all(t),a=n?k4(n):tw(t),i={},o=[];if(typeof t.checked=="boolean"){const d=r[0];let c;d&&d.type==="element"&&d.tagName==="p"?c=d:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const d=r[s];(a||s!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
|
|
330
|
+
`}),d.type==="element"&&d.tagName==="p"&&!a?o.push(...d.children):o.push(d)}const l=r[r.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
|
|
331
|
+
`});const u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)}function k4(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=tw(n[r])}return t}function tw(e){const t=e.spread;return t??e.children.length>1}function I4(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const o=r[a];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function R4(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function O4(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function D4(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function L4(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),a.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Dn(t.children[1]),l=Ul(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),a.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function P4(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l<s;){const c=t.children[l],f={},m=o?o[l]:void 0;m&&(f.align=m);let h={type:"element",tagName:i,properties:f,children:[]};c&&(h.children=e.all(c),e.patch(c,h),h=e.applyData(c,h)),u.push(h)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function F4(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Ey=9,yy=32;function M4(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const i=[];for(;r;)i.push(xy(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(xy(t.slice(a),a>0,!1)),i.join("")}function xy(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===Ey||i===yy;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===Ey||i===yy;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function B4(e,t){const n={type:"text",value:M4(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function U4(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const $4={blockquote:h4,break:g4,code:b4,delete:E4,emphasis:y4,footnoteReference:x4,heading:T4,html:v4,imageReference:S4,image:A4,inlineCode:w4,linkReference:_4,link:N4,listItem:C4,list:I4,paragraph:R4,root:O4,strong:D4,table:L4,tableCell:F4,tableRow:P4,text:B4,thematicBreak:U4,toml:os,yaml:os,definition:os,footnoteDefinition:os};function os(){}function j4(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function H4(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function z4(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||j4,r=e.options.footnoteBackLabel||H4,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const d=e.all(u),c=String(u.identifier).toUpperCase(),f=si(c.toLowerCase());let m=0;const h=[],g=e.footnoteCounts.get(c);for(;g!==void 0&&++m<=g;){h.length>0&&h.push({type:"text",value:" "});let T=typeof n=="string"?n:n(l,m);typeof T=="string"&&(T={type:"text",value:T}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,m),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const b=d[d.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const T=b.children[b.children.length-1];T&&T.type==="text"?T.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...h)}else d.push(...h);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(d,!0)};e.patch(u,E),s.push(E)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...fn(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
332
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
|
|
333
|
+
`}]}}const td={}.hasOwnProperty,G4={};function V4(e,t){const n=t||G4,r=new Map,a=new Map,i=new Map,o={...$4,...n.handlers},s={all:u,applyData:q4,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:o,one:l,options:n,patch:W4,wrap:K4};return It(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const c=d.type==="definition"?r:a,f=String(d.identifier).toUpperCase();c.has(f)||c.set(f,d)}}),s;function l(d,c){const f=d.type,m=s.handlers[f];if(td.call(s.handlers,f)&&m)return m(s,d,c);if(s.options.passThrough&&s.options.passThrough.includes(f)){if("children"in d){const{children:g,...b}=d,E=fn(b);return E.children=s.all(d),E}return fn(d)}return(s.options.unknownHandler||Y4)(s,d,c)}function u(d){const c=[];if("children"in d){const f=d.children;let m=-1;for(;++m<f.length;){const h=s.one(f[m],d);if(h){if(m&&f[m-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=Ty(h.value)),!Array.isArray(h)&&h.type==="element")){const g=h.children[0];g&&g.type==="text"&&(g.value=Ty(g.value))}Array.isArray(h)?c.push(...h):c.push(h)}}}return c}}function W4(e,t){e.position&&(t.position=kA(e))}function q4(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&i&&Object.assign(n.properties,fn(i)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function Y4(e,t){const n=t.data||{},r="value"in t&&!(td.call(n,"hProperties")||td.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function K4(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
334
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
335
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
336
|
+
`}),n}function Ty(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function vy(e,t){const n=V4(e,t),r=n.one(e,void 0),a=z4(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
|
|
337
|
+
`},a),i}function X4(e,t){return e&&"run"in e?async function(n,r){const a=vy(n,{file:r,...t});await e.run(a,r)}:function(n,r){return vy(n,{file:r,...e||t})}}function Sy(e){if(e)throw e}var Ns=Object.prototype.hasOwnProperty,nw=Object.prototype.toString,Ay=Object.defineProperty,wy=Object.getOwnPropertyDescriptor,_y=function(t){return typeof Array.isArray=="function"?Array.isArray(t):nw.call(t)==="[object Array]"},Ny=function(t){if(!t||nw.call(t)!=="[object Object]")return!1;var n=Ns.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Ns.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||Ns.call(t,a)},Cy=function(t,n){Ay&&n.name==="__proto__"?Ay(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},ky=function(t,n){if(n==="__proto__")if(Ns.call(t,n)){if(wy)return wy(t,n).value}else return;return t[n]},Z4=function e(){var t,n,r,a,i,o,s=arguments[0],l=1,u=arguments.length,d=!1;for(typeof s=="boolean"&&(d=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)r=ky(s,n),a=ky(t,n),s!==a&&(d&&a&&(Ny(a)||(i=_y(a)))?(i?(i=!1,o=r&&_y(r)?r:[]):o=r&&Ny(r)?r:{},Cy(s,{name:n,newValue:e(d,o,a)})):typeof a<"u"&&Cy(s,{name:n,newValue:a}));return s};const Vu=rl(Z4);function nd(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Q4(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const o=a.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...a);function s(l,...u){const d=e[++i];let c=-1;if(l){o(l);return}for(;++c<a.length;)(u[c]===null||u[c]===void 0)&&(u[c]=a[c]);a=u,d?J4(d,s)(...u):o(null,...u)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function J4(e,t){let n;return r;function r(...o){const s=e.length>o.length;let l;s&&o.push(a);try{l=e.apply(this,o)}catch(u){const d=u;if(s&&n)throw d;return a(d)}s||(l&&l.then&&typeof l.then=="function"?l.then(i,a):l instanceof Error?a(l):i(l))}function a(o,...s){n||(n=!0,t(o,...s))}function i(o){a(null,o)}}const _n={basename:eU,dirname:tU,extname:nU,join:rU,sep:"/"};function eU(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Oo(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,s=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1),s>-1&&(e.codePointAt(a)===t.codePointAt(s--)?s<0&&(r=a):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function tU(e){if(Oo(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function nU(e){Oo(e);let t=e.length,n=-1,r=0,a=-1,i=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function rU(...e){let t=-1,n;for(;++t<e.length;)Oo(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":aU(n)}function aU(e){Oo(e);const t=e.codePointAt(0)===47;let n=iU(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function iU(e,t){let n="",r=0,a=-1,i=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(a===o-1||i===1))if(a!==o-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length>0){n="",r=0,a=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,i=0}else s===46&&i>-1?i++:i=-1}return n}function Oo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const oU={cwd:sU};function sU(){return"/"}function rd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function lU(e){if(typeof e=="string")e=new URL(e);else if(!rd(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return uU(e)}function uU(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const Wu=["history","path","basename","stem","extname","dirname"];class rw{constructor(t){let n;t?rd(t)?n={path:t}:typeof t=="string"||cU(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":oU.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Wu.length;){const i=Wu[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)Wu.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?_n.basename(this.path):void 0}set basename(t){Yu(t,"basename"),qu(t,"basename"),this.path=_n.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?_n.dirname(this.path):void 0}set dirname(t){Iy(this.basename,"dirname"),this.path=_n.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?_n.extname(this.path):void 0}set extname(t){if(qu(t,"extname"),Iy(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=_n.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){rd(t)&&(t=lU(t)),Yu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?_n.basename(this.path,this.extname):void 0}set stem(t){Yu(t,"stem"),qu(t,"stem"),this.path=_n.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new Ot(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function qu(e,t){if(e&&e.includes(_n.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+_n.sep+"`")}function Yu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Iy(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function cU(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const dU=function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},pU={}.hasOwnProperty;class wb extends dU{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Q4()}copy(){const t=new wb;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Vu(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Zu("data",this.frozen),this.namespace[t]=n,this):pU.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Zu("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ss(t),r=this.parser||this.Parser;return Ku("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ku("process",this.parser||this.Parser),Xu("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,o){const s=ss(t),l=r.parse(s);r.run(l,s,function(d,c,f){if(d||!c||!f)return u(d);const m=c,h=r.stringify(m,f);hU(h)?f.value=h:f.result=h,u(d,f)});function u(d,c){d||!c?o(d):i?i(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Ku("processSync",this.parser||this.Parser),Xu("processSync",this.compiler||this.Compiler),this.process(t,a),Oy("processSync","process",n),r;function a(i,o){n=!0,Sy(i),r=o}}run(t,n,r){Ry(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(o,s){const l=ss(n);a.run(t,l,u);function u(d,c,f){const m=c||t;d?s(d):o?o(m):r(void 0,m,f)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),Oy("runSync","run",r),a;function i(o,s){Sy(o),a=s,r=!0}}stringify(t,n){this.freeze();const r=ss(n),a=this.compiler||this.Compiler;return Xu("stringify",a),Ry(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(Zu("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...c]=u;l(d,c)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(u.plugins),u.settings&&(a.settings=Vu(!0,a.settings,u.settings))}function s(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const c=u[d];i(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,d){let c=-1,f=-1;for(;++c<r.length;)if(r[c][0]===u){f=c;break}if(f===-1)r.push([u,...d]);else if(d.length>0){let[m,...h]=d;const g=r[f][1];nd(g)&&nd(m)&&(m=Vu(!0,g,m)),r[f]=[u,m,...h]}}}}const fU=new wb().freeze();function Ku(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Xu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Zu(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ry(e){if(!nd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Oy(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ss(e){return mU(e)?e:new rw(e)}function mU(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function hU(e){return typeof e=="string"||gU(e)}function gU(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const bU="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Dy=[],Ly={allowDangerousHtml:!0},EU=/^(https?|ircs?|mailto|xmpp)$/i,yU=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function xU(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,o=e.disallowedElements,s=e.rehypePlugins||Dy,l=e.remarkPlugins||Dy,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ly}:Ly,d=e.skipHtml,c=e.unwrapDisallowed,f=e.urlTransform||TU,m=fU().use(m4).use(l).use(X4,u).use(s),h=new rw;typeof r=="string"&&(h.value=r);for(const T of yU)Object.hasOwn(e,T.from)&&(""+T.from+(T.to?"use `"+T.to+"` instead":"remove it")+bU+T.id,void 0);const g=m.parse(h);let b=m.runSync(g,h);return a&&(b={type:"element",tagName:"div",properties:{className:a},children:b.type==="root"?b.children:[b]}),It(b,E),XM(b,{Fragment:p.Fragment,components:i,ignoreInvalidStyle:!0,jsx:p.jsx,jsxs:p.jsxs,passKeys:!0,passNode:!0});function E(T,v,S){if(T.type==="raw"&&S&&typeof v=="number")return d?S.children.splice(v,1):S.children[v]={type:"text",value:T.value},v;if(T.type==="element"){let w;for(w in Hu)if(Object.hasOwn(Hu,w)&&Object.hasOwn(T.properties,w)){const A=T.properties[w],_=Hu[w];(_===null||_.includes(T.tagName))&&(T.properties[w]=f(String(A||""),w,T))}}if(T.type==="element"){let w=t?!t.includes(T.tagName):o?o.includes(T.tagName):!1;if(!w&&n&&typeof v=="number"&&(w=!n(T,v,S)),w&&S&&typeof v=="number")return c&&T.children?S.children.splice(v,1,...T.children):S.children.splice(v,1),v}}}function TU(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||EU.test(e.slice(0,t))?e:""}function Py(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function vU(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function SU(e,t,n){const a=bo((n||{}).ignore||[]),i=AU(t);let o=-1;for(;++o<i.length;)bS(e,"text",s);function s(u,d){let c=-1,f;for(;++c<d.length;){const m=d[c],h=f?f.children:void 0;if(a(m,h?h.indexOf(m):void 0,f))return;f=m}if(f)return l(u,d)}function l(u,d){const c=d[d.length-1],f=i[o][0],m=i[o][1];let h=0;const b=c.children.indexOf(u);let E=!1,T=[];f.lastIndex=0;let v=f.exec(u.value);for(;v;){const S=v.index,w={index:v.index,input:v.input,stack:[...d,u]};let A=m(...v,w);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?f.lastIndex=S+1:(h!==S&&T.push({type:"text",value:u.value.slice(h,S)}),Array.isArray(A)?T.push(...A):A&&T.push(A),h=S+v[0].length,E=!0),!f.global)break;v=f.exec(u.value)}return E?(h<u.value.length&&T.push({type:"text",value:u.value.slice(h)}),c.children.splice(b,1,...T)):T=[u],b+T.length}}function AU(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([wU(a[0]),_U(a[1])])}return t}function wU(e){return typeof e=="string"?new RegExp(vU(e),"g"):e}function _U(e){return typeof e=="function"?e:function(){return e}}const Qu="phrasing",Ju=["autolink","link","image","label"];function NU(){return{transforms:[LU],enter:{literalAutolink:kU,literalAutolinkEmail:ec,literalAutolinkHttp:ec,literalAutolinkWww:ec},exit:{literalAutolink:DU,literalAutolinkEmail:OU,literalAutolinkHttp:IU,literalAutolinkWww:RU}}}function CU(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Qu,notInConstruct:Ju},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Qu,notInConstruct:Ju},{character:":",before:"[ps]",after:"\\/",inConstruct:Qu,notInConstruct:Ju}]}}function kU(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ec(e){this.config.enter.autolinkProtocol.call(this,e)}function IU(e){this.config.exit.autolinkProtocol.call(this,e)}function RU(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function OU(e){this.config.exit.autolinkEmail.call(this,e)}function DU(e){this.exit(e)}function LU(e){SU(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,PU],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),FU]],{ignore:["link","linkReference"]})}function PU(e,t,n,r,a){let i="";if(!aw(a)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!MU(n)))return!1;const o=BU(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:i+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function FU(e,t,n,r){return!aw(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function MU(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function BU(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=Py(e,"(");let i=Py(e,")");for(;r!==-1&&a>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function aw(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||zr(n)||$l(n))&&(!t||n!==47)}iw.peek=KU;function UU(){return{enter:{gfmFootnoteDefinition:jU,gfmFootnoteDefinitionLabelString:HU,gfmFootnoteCall:VU,gfmFootnoteCallString:WU},exit:{gfmFootnoteDefinition:GU,gfmFootnoteDefinitionLabelString:zU,gfmFootnoteCall:YU,gfmFootnoteCallString:qU}}}function $U(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:XU,footnoteReference:iw}}}function jU(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function HU(){this.buffer()}function zU(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=mn(this.sliceSerialize(e)).toLowerCase()}function GU(e){this.exit(e)}function VU(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function WU(){this.buffer()}function qU(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=mn(this.sliceSerialize(e)).toLowerCase()}function YU(e){this.exit(e)}function iw(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{...a.current(),before:i,after:"]"})),s(),o(),i+=a.move("]"),i}function KU(){return"["}function XU(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const o=n.enter("footnoteDefinition"),s=n.enter("label");return i+=a.move(n.safe(n.associationId(e),{...a.current(),before:i,after:"]"})),s(),i+=a.move("]:"+(e.children&&e.children.length>0?" ":"")),a.shift(4),i+=a.move(n.indentLines(n.containerFlow(e,a.current()),ZU)),o(),i}function ZU(e,t,n){return t===0?e:(n?"":" ")+e}const QU=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ow.peek=r$;function JU(){return{canContainEols:["delete"],enter:{strikethrough:t$},exit:{strikethrough:n$}}}function e$(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:QU}],handlers:{delete:ow}}}function t$(e){this.enter({type:"delete",children:[]},e)}function n$(e){this.exit(e)}function ow(e,t,n,r){const a=n.createTracker(r),i=n.enter("strikethrough");let o=a.move("~~");return o+=n.containerPhrasing(e,{...a.current(),before:o,after:"~"}),o+=a.move("~~"),i(),o}function r$(){return"~"}function a$(e){return e.length}function i$(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||a$,i=[],o=[],s=[],l=[];let u=0,d=-1;for(;++d<e.length;){const g=[],b=[];let E=-1;for(e[d].length>u&&(u=e[d].length);++E<e[d].length;){const T=o$(e[d][E]);if(n.alignDelimiters!==!1){const v=a(T);b[E]=v,(l[E]===void 0||v>l[E])&&(l[E]=v)}g.push(T)}o[d]=g,s[d]=b}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)i[c]=Fy(r[c]);else{const g=Fy(r);for(;++c<u;)i[c]=g}c=-1;const f=[],m=[];for(;++c<u;){const g=i[c];let b="",E="";g===99?(b=":",E=":"):g===108?b=":":g===114&&(E=":");let T=n.alignDelimiters===!1?1:Math.max(1,l[c]-b.length-E.length);const v=b+"-".repeat(T)+E;n.alignDelimiters!==!1&&(T=b.length+T+E.length,T>l[c]&&(l[c]=T),m[c]=T),f[c]=v}o.splice(1,0,f),s.splice(1,0,m),d=-1;const h=[];for(;++d<o.length;){const g=o[d],b=s[d];c=-1;const E=[];for(;++c<u;){const T=g[c]||"";let v="",S="";if(n.alignDelimiters!==!1){const w=l[c]-(b[c]||0),A=i[c];A===114?v=" ".repeat(w):A===99?w%2?(v=" ".repeat(w/2+.5),S=" ".repeat(w/2-.5)):(v=" ".repeat(w/2),S=v):S=" ".repeat(w)}n.delimiterStart!==!1&&!c&&E.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&T==="")&&(n.delimiterStart!==!1||c)&&E.push(" "),n.alignDelimiters!==!1&&E.push(v),E.push(T),n.alignDelimiters!==!1&&E.push(S),n.padding!==!1&&E.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&E.push("|")}h.push(n.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return h.join(`
|
|
338
|
+
`)}function o$(e){return e==null?"":String(e)}function Fy(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function s$(e,t,n,r){const a=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const o=n.indentLines(n.containerFlow(e,i.current()),l$);return a(),o}function l$(e,t,n){return">"+(n?"":" ")+e}function u$(e,t){return My(e,t.inConstruct,!0)&&!My(e,t.notInConstruct,!1)}function My(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function By(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
|
|
339
|
+
`&&u$(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
340
|
+
`}function c$(e,t){const n=String(e);let r=n.indexOf(t),a=r,i=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++i>o&&(o=i):i=1,a=r+t.length,r=n.indexOf(t,a);return o}function d$(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function p$(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function f$(e,t,n,r){const a=p$(n),i=e.value||"",o=a==="`"?"GraveAccent":"Tilde";if(d$(e,n)){const c=n.enter("codeIndented"),f=n.indentLines(i,m$);return c(),f}const s=n.createTracker(r),l=a.repeat(Math.max(c$(i,a)+1,3)),u=n.enter("codeFenced");let d=s.move(l);if(e.lang){const c=n.enter(`codeFencedLang${o}`);d+=s.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...s.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${o}`);d+=s.move(" "),d+=s.move(n.safe(e.meta,{before:d,after:`
|
|
341
|
+
`,encode:["`"],...s.current()})),c()}return d+=s.move(`
|
|
342
|
+
`),i&&(d+=s.move(i+`
|
|
343
|
+
`)),d+=s.move(l),u(),d}function m$(e,t,n){return(n?"":" ")+e}function _b(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function h$(e,t,n,r){const a=_b(n),i=a==='"'?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
|
|
344
|
+
`,...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=l.move(" "+a),u+=l.move(n.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),s()),o(),u}function g$(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function eo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ws(e,t,n){const r=ja(e),a=ja(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}sw.peek=b$;function sw(e,t,n,r){const a=g$(n),i=n.enter("emphasis"),o=n.createTracker(r),s=o.move(a);let l=o.move(n.containerPhrasing(e,{after:a,before:s,...o.current()}));const u=l.charCodeAt(0),d=Ws(r.before.charCodeAt(r.before.length-1),u,a);d.inside&&(l=eo(u)+l.slice(1));const c=l.charCodeAt(l.length-1),f=Ws(r.after.charCodeAt(0),c,a);f.inside&&(l=l.slice(0,-1)+eo(c));const m=o.move(a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+l+m}function b$(e,t,n){return n.options.emphasis||"*"}function E$(e,t){let n=!1;return It(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Ms}),!!((!e.depth||e.depth<3)&&Sb(e)&&(t.options.setext||n))}function y$(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(E$(e,n)){const d=n.enter("headingSetext"),c=n.enter("phrasing"),f=n.containerPhrasing(e,{...i.current(),before:`
|
|
345
|
+
`,after:`
|
|
346
|
+
`});return c(),d(),f+`
|
|
347
|
+
`+(a===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
|
|
348
|
+
`))+1))}const o="#".repeat(a),s=n.enter("headingAtx"),l=n.enter("phrasing");i.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
349
|
+
`,...i.current()});return/^[\t ]/.test(u)&&(u=eo(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),l(),s(),u}lw.peek=x$;function lw(e){return e.value||""}function x$(){return"<"}uw.peek=T$;function uw(e,t,n,r){const a=_b(n),i=a==='"'?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=l.move(" "+a),u+=l.move(n.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),s()),u+=l.move(")"),o(),u}function T$(){return"!"}cw.peek=v$;function cw(e,t,n,r){const a=e.referenceType,i=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=d,i(),a==="full"||!u||u!==c?l+=s.move(c+"]"):a==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function v$(){return"!"}dw.peek=S$;function dw(e,t,n){let r=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const o=n.unsafe[i],s=n.compilePattern(o);let l;if(o.atBreak)for(;l=s.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return a+r+a}function S$(){return"`"}function pw(e,t){const n=Sb(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}fw.peek=A$;function fw(e,t,n,r){const a=_b(n),i=a==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if(pw(e,n)){const d=n.stack;n.stack=[],s=n.enter("autolink");let c=o.move("<");return c+=o.move(n.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),s(),n.stack=d,c}s=n.enter("link"),l=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(l=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${i}`),u+=o.move(" "+a),u+=o.move(n.safe(e.title,{before:u,after:a,...o.current()})),u+=o.move(a),l()),u+=o.move(")"),s(),u}function A$(e,t,n){return pw(e,n)?"<":"["}mw.peek=w$;function mw(e,t,n,r){const a=e.referenceType,i=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=d,i(),a==="full"||!u||u!==c?l+=s.move(c+"]"):a==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function w$(){return"["}function Nb(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function _$(e){const t=Nb(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function N$(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function hw(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function C$(e,t,n,r){const a=n.enter("list"),i=n.bulletCurrent;let o=e.ordered?N$(n):Nb(n);const s=e.ordered?o==="."?")":".":_$(n);let l=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),hw(n)===o&&d){let c=-1;for(;++c<e.children.length;){const f=e.children[c];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=s),n.bulletCurrent=o;const u=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=i,a(),u}function k$(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function I$(e,t,n,r){const a=k$(n);let i=n.bulletCurrent||Nb(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let o=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const s=n.createTracker(r);s.move(i+" ".repeat(o-i.length)),s.shift(o);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),d);return l(),u;function d(c,f,m){return f?(m?"":" ".repeat(o))+c:(m?i:i+" ".repeat(o-i.length))+c}}function R$(e,t,n,r){const a=n.enter("paragraph"),i=n.enter("phrasing"),o=n.containerPhrasing(e,r);return i(),a(),o}const O$=bo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function D$(e,t,n,r){return(e.children.some(function(o){return O$(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function L$(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}gw.peek=P$;function gw(e,t,n,r){const a=L$(n),i=n.enter("strong"),o=n.createTracker(r),s=o.move(a+a);let l=o.move(n.containerPhrasing(e,{after:a,before:s,...o.current()}));const u=l.charCodeAt(0),d=Ws(r.before.charCodeAt(r.before.length-1),u,a);d.inside&&(l=eo(u)+l.slice(1));const c=l.charCodeAt(l.length-1),f=Ws(r.after.charCodeAt(0),c,a);f.inside&&(l=l.slice(0,-1)+eo(c));const m=o.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+l+m}function P$(e,t,n){return n.options.strong||"*"}function F$(e,t,n,r){return n.safe(e.value,r)}function M$(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function B$(e,t,n){const r=(hw(n)+(n.options.ruleSpaces?" ":"")).repeat(M$(n));return n.options.ruleSpaces?r.slice(0,-1):r}const bw={blockquote:s$,break:By,code:f$,definition:h$,emphasis:sw,hardBreak:By,heading:y$,html:lw,image:uw,imageReference:cw,inlineCode:dw,link:fw,linkReference:mw,list:C$,listItem:I$,paragraph:R$,root:D$,strong:gw,text:F$,thematicBreak:B$};function U$(){return{enter:{table:$$,tableData:Uy,tableHeader:Uy,tableRow:H$},exit:{codeText:z$,table:j$,tableData:tc,tableHeader:tc,tableRow:tc}}}function $$(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function j$(e){this.exit(e),this.data.inTable=void 0}function H$(e){this.enter({type:"tableRow",children:[]},e)}function tc(e){this.exit(e)}function Uy(e){this.enter({type:"tableCell",children:[]},e)}function z$(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,G$));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function G$(e,t){return t==="|"?t:e}function V$(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
350
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:o,tableCell:l,tableRow:s}};function o(m,h,g,b){return u(d(m,g,b),m.align)}function s(m,h,g,b){const E=c(m,g,b),T=u([E]);return T.slice(0,T.indexOf(`
|
|
351
|
+
`))}function l(m,h,g,b){const E=g.enter("tableCell"),T=g.enter("phrasing"),v=g.containerPhrasing(m,{...b,before:i,after:i});return T(),E(),v}function u(m,h){return i$(m,{align:h,alignDelimiters:r,padding:n,stringLength:a})}function d(m,h,g){const b=m.children;let E=-1;const T=[],v=h.enter("table");for(;++E<b.length;)T[E]=c(b[E],h,g);return v(),T}function c(m,h,g){const b=m.children;let E=-1;const T=[],v=h.enter("tableRow");for(;++E<b.length;)T[E]=l(b[E],m,h,g);return v(),T}function f(m,h,g){let b=bw.inlineCode(m,h,g);return g.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function W$(){return{exit:{taskListCheckValueChecked:$y,taskListCheckValueUnchecked:$y,paragraph:Y$}}}function q$(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:K$}}}function $y(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Y$(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let i=-1,o;for(;++i<a.length;){const s=a[i];if(s.type==="paragraph"){o=s;break}}o===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function K$(e,t,n,r){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(o);let l=bw.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(d){return d+o}}function X$(){return[NU(),UU(),JU(),U$(),W$()]}function Z$(e){return{extensions:[CU(),$U(),e$(),V$(e),q$()]}}const Q$={tokenize:a6,partial:!0},Ew={tokenize:i6,partial:!0},yw={tokenize:o6,partial:!0},xw={tokenize:s6,partial:!0},J$={tokenize:l6,partial:!0},Tw={name:"wwwAutolink",tokenize:n6,previous:Sw},vw={name:"protocolAutolink",tokenize:r6,previous:Aw},Kn={name:"emailAutolink",tokenize:t6,previous:ww},Ln={};function e6(){return{text:Ln}}let Nr=48;for(;Nr<123;)Ln[Nr]=Kn,Nr++,Nr===58?Nr=65:Nr===91&&(Nr=97);Ln[43]=Kn;Ln[45]=Kn;Ln[46]=Kn;Ln[95]=Kn;Ln[72]=[Kn,vw];Ln[104]=[Kn,vw];Ln[87]=[Kn,Tw];Ln[119]=[Kn,Tw];function t6(e,t,n){const r=this;let a,i;return o;function o(c){return!ad(c)||!ww.call(r,r.previous)||Cb(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(c))}function s(c){return ad(c)?(e.consume(c),s):c===64?(e.consume(c),l):n(c)}function l(c){return c===46?e.check(J$,d,u)(c):c===45||c===95||kt(c)?(i=!0,e.consume(c),l):d(c)}function u(c){return e.consume(c),a=!0,l}function d(c){return i&&a&&Lt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function n6(e,t,n){const r=this;return a;function a(o){return o!==87&&o!==119||!Sw.call(r,r.previous)||Cb(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Q$,e.attempt(Ew,e.attempt(yw,i),n),n)(o))}function i(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function r6(e,t,n){const r=this;let a="",i=!1;return o;function o(c){return(c===72||c===104)&&Aw.call(r,r.previous)&&!Cb(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(c),e.consume(c),s):n(c)}function s(c){if(Lt(c)&&a.length<5)return a+=String.fromCodePoint(c),e.consume(c),s;if(c===58){const f=a.toLowerCase();if(f==="http"||f==="https")return e.consume(c),l}return n(c)}function l(c){return c===47?(e.consume(c),i?u:(i=!0,l)):n(c)}function u(c){return c===null||Vs(c)||je(c)||zr(c)||$l(c)?n(c):e.attempt(Ew,e.attempt(yw,d),n)(c)}function d(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function a6(e,t,n){let r=0;return a;function a(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),a):o===46&&r===3?(e.consume(o),i):n(o)}function i(o){return o===null?n(o):t(o)}}function i6(e,t,n){let r,a,i;return o;function o(u){return u===46||u===95?e.check(xw,l,s)(u):u===null||je(u)||zr(u)||u!==45&&$l(u)?l(u):(i=!0,e.consume(u),o)}function s(u){return u===95?r=!0:(a=r,r=void 0),e.consume(u),o}function l(u){return a||r||!i?n(u):t(u)}}function o6(e,t){let n=0,r=0;return a;function a(o){return o===40?(n++,e.consume(o),a):o===41&&r<n?i(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(xw,t,i)(o):o===null||je(o)||zr(o)?t(o):(e.consume(o),a)}function i(o){return o===41&&r++,e.consume(o),a}}function s6(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),i):s===93?(e.consume(s),a):s===60||s===null||je(s)||zr(s)?t(s):n(s)}function a(s){return s===null||s===40||s===91||je(s)||zr(s)?t(s):r(s)}function i(s){return Lt(s)?o(s):n(s)}function o(s){return s===59?(e.consume(s),r):Lt(s)?(e.consume(s),o):n(s)}}function l6(e,t,n){return r;function r(i){return e.consume(i),a}function a(i){return kt(i)?n(i):t(i)}}function Sw(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||je(e)}function Aw(e){return!Lt(e)}function ww(e){return!(e===47||ad(e))}function ad(e){return e===43||e===45||e===46||e===95||kt(e)}function Cb(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const u6={tokenize:b6,partial:!0};function c6(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:m6,continuation:{tokenize:h6},exit:g6}},text:{91:{name:"gfmFootnoteCall",tokenize:f6},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:d6,resolveTo:p6}}}}function d6(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;a--;){const l=r.events[a][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!o||!o._balanced)return n(l);const u=mn(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function p6(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function f6(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,o;return s;function s(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),l}function l(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(i>999||c===93&&!o||c===null||c===91||je(c))return n(c);if(c===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(mn(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return je(c)||(o=!0),i++,e.consume(c),c===92?d:u}function d(c){return c===91||c===92||c===93?(e.consume(c),i++,u):u(c)}}function m6(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,o=0,s;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(h)}function d(h){if(o>999||h===93&&!s||h===null||h===91||je(h))return n(h);if(h===93){e.exit("chunkString");const g=e.exit("gfmFootnoteDefinitionLabelString");return i=mn(r.sliceSerialize(g)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return je(h)||(s=!0),o++,e.consume(h),h===92?c:d}function c(h){return h===91||h===92||h===93?(e.consume(h),o++,d):d(h)}function f(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),a.includes(i)||a.push(i),Pe(e,m,"gfmFootnoteDefinitionWhitespace")):n(h)}function m(h){return t(h)}}function h6(e,t,n){return e.check(Ro,t,e.attempt(u6,t,n))}function g6(e){e.exit("gfmFootnoteDefinition")}function b6(e,t,n){const r=this;return Pe(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(i):n(i)}}function E6(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(o,s){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},c={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},f=[["enter",d,s],["enter",o[u][1],s],["exit",o[u][1],s],["enter",c,s]],m=s.parser.constructs.insideSpan.null;m&&Kt(f,f.length,0,jl(m,o.slice(u+1,l),s)),Kt(f,f.length,0,[["exit",c,s],["enter",o[l][1],s],["exit",o[l][1],s],["exit",d,s]]),Kt(o,u-1,l-u+3,f),l=u+f.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function i(o,s,l){const u=this.previous,d=this.events;let c=0;return f;function f(h){return u===126&&d[d.length-1][1].type!=="characterEscape"?l(h):(o.enter("strikethroughSequenceTemporary"),m(h))}function m(h){const g=ja(u);if(h===126)return c>1?l(h):(o.consume(h),c++,m);if(c<2&&!n)return l(h);const b=o.exit("strikethroughSequenceTemporary"),E=ja(h);return b._open=!E||E===2&&!!g,b._close=!g||g===2&&!!E,s(h)}}}class y6{constructor(){this.map=[]}add(t,n,r){x6(this,t,n,r)}consume(t){if(this.map.sort(function(i,o){return i[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let a=r.pop();for(;a;)t.push(...a),a=r.pop();this.map.length=0}}function x6(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function T6(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function v6(){return{flow:{null:{name:"table",tokenize:S6,resolveAll:A6}}}}function S6(e,t,n){const r=this;let a=0,i=0,o;return s;function s(O){let M=r.events.length-1;for(;M>-1;){const z=r.events[M][1].type;if(z==="lineEnding"||z==="linePrefix")M--;else break}const P=M>-1?r.events[M][1].type:null,j=P==="tableHead"||P==="tableRow"?A:l;return j===A&&r.parser.lazy[r.now().line]?n(O):j(O)}function l(O){return e.enter("tableHead"),e.enter("tableRow"),u(O)}function u(O){return O===124||(o=!0,i+=1),d(O)}function d(O){return O===null?n(O):ve(O)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),m):n(O):Ie(O)?Pe(e,d,"whitespace")(O):(i+=1,o&&(o=!1,a+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),o=!0,d):(e.enter("data"),c(O)))}function c(O){return O===null||O===124||je(O)?(e.exit("data"),d(O)):(e.consume(O),O===92?f:c)}function f(O){return O===92||O===124?(e.consume(O),c):c(O)}function m(O){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(O):(e.enter("tableDelimiterRow"),o=!1,Ie(O)?Pe(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):h(O))}function h(O){return O===45||O===58?b(O):O===124?(o=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),g):w(O)}function g(O){return Ie(O)?Pe(e,b,"whitespace")(O):b(O)}function b(O){return O===58?(i+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),E):O===45?(i+=1,E(O)):O===null||ve(O)?S(O):w(O)}function E(O){return O===45?(e.enter("tableDelimiterFiller"),T(O)):w(O)}function T(O){return O===45?(e.consume(O),T):O===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(O))}function v(O){return Ie(O)?Pe(e,S,"whitespace")(O):S(O)}function S(O){return O===124?h(O):O===null||ve(O)?!o||a!==i?w(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(O)):w(O)}function w(O){return n(O)}function A(O){return e.enter("tableRow"),_(O)}function _(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),_):O===null||ve(O)?(e.exit("tableRow"),t(O)):Ie(O)?Pe(e,_,"whitespace")(O):(e.enter("data"),D(O))}function D(O){return O===null||O===124||je(O)?(e.exit("data"),_(O)):(e.consume(O),O===92?I:D)}function I(O){return O===92||O===124?(e.consume(O),D):D(O)}}function A6(e,t){let n=-1,r=!0,a=0,i=[0,0,0,0],o=[0,0,0,0],s=!1,l=0,u,d,c;const f=new y6;for(;++n<e.length;){const m=e[n],h=m[1];m[0]==="enter"?h.type==="tableHead"?(s=!1,l!==0&&(jy(f,t,l,u,d),d=void 0,l=0),u={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(n,0,[["enter",u,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,c=void 0,i=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,d={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(n,0,[["enter",d,t]])),a=h.type==="tableDelimiterRow"?2:d?3:1):a&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(i[1]!==0&&(o[0]=o[1],c=ls(f,t,i,a,void 0,c),i=[0,0,0,0]),o[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(o[0]=o[1],c=ls(f,t,i,a,void 0,c)),i=o,o=[i[1],n,0,0])):h.type==="tableHead"?(s=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,i[1]!==0?(o[0]=o[1],c=ls(f,t,i,a,n,c)):o[1]!==0&&(c=ls(f,t,o,a,n,c)),a=0):a&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&jy(f,t,l,u,d),f.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=T6(t.events,n))}return e}function ls(e,t,n,r,a,i){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(i.end=Object.assign({},xa(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=xa(t.events,n[1]);if(i={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const u=xa(t.events,n[2]),d=xa(t.events,n[3]),c={type:s,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const f=t.events[n[2]],m=t.events[n[3]];if(f[1].end=Object.assign({},m[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,g=n[3]-n[2]-1;e.add(h,g,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return a!==void 0&&(i.end=Object.assign({},xa(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function jy(e,t,n,r,a){const i=[],o=xa(t.events,n);a&&(a.end=Object.assign({},o),i.push(["exit",a,t])),r.end=Object.assign({},o),i.push(["exit",r,t]),e.add(n+1,0,i)}function xa(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const w6={name:"tasklistCheck",tokenize:N6};function _6(){return{text:{91:w6}}}function N6(e,t,n){const r=this;return a;function a(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return je(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return ve(l)?t(l):Ie(l)?e.check({tokenize:C6},t,n)(l):n(l)}}function C6(e,t,n){return Pe(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function k6(e){return jA([e6(),c6(),E6(e),v6(),_6()])}const I6={};function R6(e){const t=this,n=e||I6,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(k6(n)),i.push(X$()),o.push(Z$(n))}const O6=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,D6=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,L6=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{It(n,"blockquote",(r,a,i)=>{let o="",s="",l=!0,u=r.children.map(d=>{if(l&&d.type==="paragraph"){const c=d.children[0],f=c.type==="text"?c.value:"",m=e?D6:O6,h=f.match(m);if(h&&(l=!1,o=h[1].toLocaleLowerCase(),s=e&&h[2]||o.toLocaleUpperCase(),f.includes(`
|
|
352
|
+
`)&&(d.children[0]={type:"text",value:f.replace(m,"").replace(/^\n+/,"")}),!f.includes(`
|
|
353
|
+
`))){const g=[];d.children.forEach((b,E)=>{E!=0&&(E==1&&b.type==="break"||g.push(b))}),d.children=[...g]}}return d});o&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${o}`,dir:"auto"}},u.unshift({type:"paragraph",children:[P6(o),{type:"text",value:s.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...u]})};function P6(e){let t=F6[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:t}},children:[]}]}}const F6={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function M6(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let a=!1;try{a=!!document.execCommand("copy")}catch{a=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(a)}function _w(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?_w(t.parentElement):null}function B6(e){var t=n=>{var r=_w(n.target);r&&(r.classList.add("active"),M6(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};R.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var a;(a=e.current)==null||a.removeEventListener("click",t,!1)}},[e])}var U6=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],$6=e=>e;const j6=R.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:a,style:i,disableCopy:o=!1,skipHtml:s=!0,onScroll:l,onMouseOver:u,pluginsFilter:d,wrapperElement:c={},warpperElement:f={},urlTransform:m}=e,h=_M(e,U6),g=R.useRef(null);R.useImperativeHandle(t,()=>nt({},e,{mdp:g}),[g,e]);var b=(n||"")+" "+(r||"");B6(g);var E=[...h.rehypePlugins||[]],T={allowElement:(w,A,_)=>h.allowElement?h.allowElement(w,A,_):/^[A-Za-z0-9]+$/.test(w.tagName)};s&&E.push(LA);var v=[L6,...h.remarkPlugins||[],R6],S=nt({},f,c);return p.jsx("div",nt({ref:g,onScroll:l,onMouseOver:u},S,{className:b,style:i,children:p.jsx(xU,nt({},T,h,{skipHtml:s,urlTransform:m||$6,rehypePlugins:d?d("rehype",E):E,remarkPlugins:d?d("remark",v):v,children:a||""}))}))});var H6=function(t){return n=>{It(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=nt({},r.properties,{"data-meta":String(r.data.meta)}))})}},z6=function(t){return n=>{It(n,r=>{if(r.type==="element"&&r.tagName==="code"&&r.properties&&r.properties.dataMeta){r.data||(r.data={});var a=r.properties.dataMeta;typeof a=="string"&&(r.data.meta=a),delete r.properties.dataMeta}})}};const G6=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,V6=Object.hasOwnProperty;class W6{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let a=q6(t,n===!0);const i=a;for(;V6.call(r.occurrences,a);)r.occurrences[i]++,a=i+"-"+r.occurrences[i];return r.occurrences[a]=0,a}reset(){this.occurrences=Object.create(null)}}function q6(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(G6,"").replace(/ /g,"-"))}function Nw(e){const t=e.type==="element"?e.tagName.toLowerCase():"",n=t.length===2&&t.charCodeAt(0)===104?t.charCodeAt(1):0;return n>48&&n<55?n-48:void 0}const Y6={},Hy=new W6;function K6(e){const n=(e||Y6).prefix||"";return function(r){Hy.reset(),It(r,"element",function(a){Nw(a)&&!a.properties.id&&(a.properties.id=n+Hy.slug(Sa(a)))})}}const kb=function(e){if(e==null)return Q6;if(typeof e=="string")return Z6(e);if(typeof e=="object")return X6(e);if(typeof e=="function")return Ib(e);throw new Error("Expected function, string, or array as `test`")};function X6(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=kb(e[n]);return Ib(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function Z6(e){return Ib(t);function t(n){return n.tagName===e}}function Ib(e){return t;function t(n,r,a){return!!(J6(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function Q6(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function J6(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const zy={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},ej={};function tj(e){const t=e||ej;let n=t.properties;const r=t.headingProperties,a=t.behavior||"prepend",i=t.content,o=t.group,s=kb(t.test);let l;return a==="after"||a==="before"?l=d:a==="wrap"?l=c:(l=u,n||(n={ariaHidden:"true",tabIndex:-1})),function(f){It(f,"element",function(m,h,g){if(Nw(m)&&m.properties.id&&s(m,h,g))return Object.assign(m.properties,us(r,m)),l(m,h,g)})};function u(f){const m=Gy(i||zy,f);return f.children[a==="prepend"?"unshift":"push"](nc(f,us(n,f),m)),[Pi]}function d(f,m,h){if(typeof m!="number"||!h)return;const g=Gy(i||zy,f),b=nc(f,us(n,f),g);let E=a==="before"?[b,f]:[f,b];if(o){const T=Cw(o,f);T&&!Array.isArray(T)&&T.type==="element"&&(T.children=E,E=[T])}return h.children.splice(m,1,...E),[Pi,m+E.length]}function c(f){let m=f.children,h=[];return typeof i=="function"?(m=[],h=i(f)):i&&(h=Rb(i)),f.children=[nc(f,us(n,f),Array.isArray(h)?[...m,...h]:[...m,h])],[Pi]}}function Rb(e){return fn(e)}function nc(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function Gy(e,t){const n=Cw(e,t);return Array.isArray(n)?n:[n]}function Cw(e,t){return typeof e=="function"?e(t):Rb(e)}function us(e,t){return typeof e=="function"?e(t):e?Rb(e):{}}const nj=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{It(r,(a,i,o)=>{if(a.type==="element"||a.type==="root"){let s=!1;a.children=a.children.filter(l=>{if(l.type==="raw"||l.type==="comment"){let u=(l.value||"").trim();if(u=u.replace(/^<!--(.*?)-->/,"$1"),u===t)return s=!0,!1;if(u===n)return s=!1,!1}return!s})}})}};var rj={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]};function aj(e){return e===void 0&&(e=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":e},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}}var ij=(e,t)=>(n,r,a)=>{if(n.type==="element"&&a&&a.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var i=n.children&&n.children[0];i&&i.properties&&i.properties.ariaHidden==="true"&&(i.properties=nt({class:"anchor"},i.properties),i.children=[rj])}if(n.type==="element"&&n.tagName==="pre"&&!e){var o=zS(n.children);n.children.push(aj(o))}t&&t(n,r===null?void 0:r,a===null?void 0:a)},oj=[K6,tj,nj];const sj=R.forwardRef((e,t)=>{var n,r=[H6,LA,z6,...oj,[s2,{rewrite:ij((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[c2,{properties:"attr"}],...e.rehypePlugins||[],[qD,{ignoreMissing:!0}]];return p.jsx(j6,nt({},e,{rehypePlugins:r,ref:t}))}),Cr=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Or={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Cr,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Cr],h2:[["className","sr-only"]],img:[...Cr,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Cr,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Cr],table:[...Cr],ul:[...Cr,["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"]},ar={}.hasOwnProperty;function lj(e,t){let n={type:"root",children:[]};const r={schema:t?{...Or,...t}:Or,stack:[]},a=kw(r,e);return a&&(Array.isArray(a)?a.length===1?n=a[0]:n.children=a:n=a),n}function kw(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return uj(e,n);case"doctype":return cj(e,n);case"element":return dj(e,n);case"root":return pj(e,n);case"text":return fj(e,n)}}}function uj(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),i={type:"comment",value:r<0?n:n.slice(0,r)};return Do(i,t),i}}function cj(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return Do(n,t),n}}function dj(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=Iw(e,t.children),a=mj(e,t.properties);e.stack.pop();let i=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(i=!0,e.schema.ancestors&&ar.call(e.schema.ancestors,n))){const s=e.schema.ancestors[n];let l=-1;for(i=!1;++l<s.length;)e.stack.includes(s[l])&&(i=!0)}if(!i)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const o={type:"element",tagName:n,properties:a,children:r};return Do(o,t),o}function pj(e,t){const r={type:"root",children:Iw(e,t.children)};return Do(r,t),r}function fj(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return Do(r,t),r}function Iw(e,t){const n=[];if(Array.isArray(t)){const r=t;let a=-1;for(;++a<r.length;){const i=kw(e,r[a]);i&&(Array.isArray(i)?n.push(...i):n.push(i))}}return n}function mj(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,a=e.schema.required,i=r&&ar.call(r,n)?r[n]:void 0,o=r&&ar.call(r,"*")?r["*"]:void 0,s=t&&typeof t=="object"?t:{},l={};let u;for(u in s)if(ar.call(s,u)){const d=s[u];let c=Vy(e,Wy(i,u),u,d);c==null&&(c=Vy(e,Wy(o,u),u,d)),c!=null&&(l[u]=c)}if(a&&ar.call(a,n)){const d=a[n];for(u in d)ar.call(d,u)&&!ar.call(l,u)&&(l[u]=d[u])}return l}function Vy(e,t,n,r){return t?Array.isArray(r)?hj(e,t,n,r):Rw(e,t,n,r):void 0}function hj(e,t,n,r){let a=-1;const i=[];for(;++a<r.length;){const o=Rw(e,t,n,r[a]);(typeof o=="number"||typeof o=="string")&&i.push(o)}return i}function Rw(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&gj(e,n,r)){if(typeof t=="object"&&t.length>1){let a=!1,i=0;for(;++i<t.length;){const o=t[i];if(o&&typeof o=="object"&&"flags"in o){if(o.test(String(r))){a=!0;break}}else if(o===r){a=!0;break}}if(!a)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function gj(e,t,n){const r=e.schema.protocols&&ar.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const a=String(n),i=a.indexOf(":"),o=a.indexOf("?"),s=a.indexOf("#"),l=a.indexOf("/");if(i<0||l>-1&&i>l||o>-1&&i>o||s>-1&&i>s)return!0;let u=-1;for(;++u<r.length;){const d=r[u];if(i===d.length&&a.slice(0,d.length)===d)return!0}return!1}function Do(e,t){const n=kA(t);t.data&&(e.data=fn(t.data)),n&&(e.position=n)}function Wy(e,t){let n,r=-1;if(e)for(;++r<e.length;){const a=e[r],i=typeof a=="string"?a:a[0];if(i===t)return a;i==="data*"&&(n=a)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function bj(e){return function(t){return lj(t,e)}}const Ej=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,yj=/^[a-zA-Z]:\\/;function xj(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return yj.test(e)?!1:Ej.test(e)}const Tj=["http","https"],vj=["nofollow"],Sj={};function Aj(e){const t=e||Sj,n=t.protocols||Tj,r=kb(t.test);return function(a){It(a,"element",function(i,o,s){if(i.tagName==="a"&&typeof i.properties.href=="string"&&r(i,o,s)){const l=i.properties.href;if(xj(l)?n.includes(l.slice(0,l.indexOf(":"))):l.startsWith("//")){const u=Ti(t.content,i),d=u&&!Array.isArray(u)?[u]:u,c=Ti(t.rel,i)||vj,f=typeof c=="string"?Ua(c):c,m=Ti(t.target,i),h=Ti(t.properties,i);if(h&&Object.assign(i.properties,fn(h)),f.length>0&&(i.properties.rel=[...f]),m&&(i.properties.target=m),d){const g=Ti(t.contentProperties,i)||{};i.children.push({type:"element",tagName:"span",properties:fn(g),children:fn(d)})}}}})}}function Ti(e,t){return typeof e=="function"?e(t):e}const qy=e=>setTimeout(e,0),wj=()=>{R.useEffect(()=>{const e=()=>{let n;try{n=decodeURIComponent(location.hash.slice(1)).toLowerCase()}catch{return}const r="user-content-"+n,a=document.getElementById(r)||document.getElementsByName(r)[0];a&&qy(()=>{a.scrollIntoView({behavior:"smooth"})})};e(),window.addEventListener("hashchange",e);const t=n=>{n.target&&n.target instanceof HTMLAnchorElement&&n.target.href===location.href&&location.hash.length>1&&qy(()=>{n.defaultPrevented||e()})};return document.addEventListener("click",t,!1),()=>{window.removeEventListener("hashchange",e),document.removeEventListener("click",t)}},[])};function st({markdown:e,className:t,style:n,maxLength:r,maxLines:a,languageCode:i}){var E,T;const[o,s]=R.useState(!1),[l,u]=R.useState(!1);wj(),i==="json"&&(e=JSON.stringify(JSON.parse(e),null,2));const d=i?"```"+i+`
|
|
354
|
+
`+e+"\n```":e,c=e.split(`
|
|
355
|
+
`).length,f=!!a&&c>a,m=r&&d.length>r&&!o,h=m?d.slice(0,r)+"...":d,g=async()=>{u(!0),await new Promise(v=>setTimeout(v,300)),s(!0),u(!1)},b=p.jsx(sj,{source:h,rehypePlugins:[[bj,{...Or,attributes:{...Or.attributes,a:[...((E=Or.attributes)==null?void 0:E.a)||[],"class"],svg:["className","hidden","viewBox","fill","height","width","aria-hidden","version"],path:["fill-rule","d"],div:["className","class","data-code",...((T=Or.attributes)==null?void 0:T.div)||[]]},tagNames:[...Or.tagNames||[],"a","svg","path","div"]}],[Aj,{target:"_blank",rel:["noopener","noreferrer"]}]],style:{backgroundColor:"transparent",...n},className:t});return f?p.jsx("div",{className:"overflow-y-auto",style:{maxHeight:`${a*1.5}rem`},children:b}):p.jsxs("div",{className:"relative",children:[p.jsxs("div",{className:m?"relative":void 0,children:[b,m&&p.jsx("div",{className:"absolute bottom-0 left-0 w-full h-24 bg-gradient-to-t from-white dark:from-black to-transparent"})]}),m&&p.jsx("div",{className:"flex justify-center -mt-12 relative z-10",children:p.jsx(Qe,{variant:"outline",onClick:g,disabled:l,className:"rounded-full px-6 bg-white dark:bg-black shadow-md hover:shadow-lg transition-shadow",children:l?p.jsxs(p.Fragment,{children:[p.jsx(Ya,{className:"mr-2 h-4 w-4 animate-spin"}),"Loading..."]}):"See more"})})]})}function Ow(e){return btoa(Array.from(e,t=>String.fromCharCode(t)).join("")).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function _j(){const e=new Uint8Array(32);return crypto.getRandomValues(e),Ow(e)}async function Nj(e){const t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Ow(new Uint8Array(n))}function Hl(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Cj(e,t=globalThis==null?void 0:globalThis.document){const n=Hl(e);x.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var kj="DismissableLayer",id="dismissableLayer.update",Ij="dismissableLayer.pointerDownOutside",Rj="dismissableLayer.focusOutside",Yy,Dw=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Lw=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...u}=e,d=x.useContext(Dw),[c,f]=x.useState(null),m=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=x.useState({}),g=qn(t,I=>f(I)),b=Array.from(d.layers),[E]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),T=b.indexOf(E),v=c?b.indexOf(c):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,w=v>=T,A=x.useRef(!1),_=Lj(I=>{const O=I.target;if(!(O instanceof Node))return;const M=[...d.branches].some(P=>P.contains(O));!w||M||(i==null||i(I),s==null||s(I),I.defaultPrevented||l==null||l())},{ownerDocument:m,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:A,dismissableSurfaces:d.dismissableSurfaces}),D=Pj(I=>{if(r&&A.current)return;const O=I.target;[...d.branches].some(P=>P.contains(O))||(o==null||o(I),s==null||s(I),I.defaultPrevented||l==null||l())},m);return Cj(I=>{v===d.layers.size-1&&(a==null||a(I),!I.defaultPrevented&&l&&(I.preventDefault(),l()))},m),x.useEffect(()=>{if(c)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Yy=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(c)),d.layers.add(c),Ky(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(c),d.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=Yy))}},[c,m,n,d]),x.useEffect(()=>()=>{c&&(d.layers.delete(c),d.layersWithOutsidePointerEventsDisabled.delete(c),Ky())},[c,d]),x.useEffect(()=>{const I=()=>h({});return document.addEventListener(id,I),()=>document.removeEventListener(id,I)},[]),p.jsx(vn.div,{...u,ref:g,style:{pointerEvents:S?w?"auto":"none":void 0,...e.style},onFocusCapture:pn(e.onFocusCapture,D.onFocusCapture),onBlurCapture:pn(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:pn(e.onPointerDownCapture,_.onPointerDownCapture)})});Lw.displayName=kj;var Oj="DismissableLayerBranch",Dj=x.forwardRef((e,t)=>{const n=x.useContext(Dw),r=x.useRef(null),a=qn(t,r);return x.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(vn.div,{...e,ref:a})});Dj.displayName=Oj;function Lj(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:a,dismissableSurfaces:i}=t,o=Hl(e),s=x.useRef(!1),l=x.useRef(!1),u=x.useRef(new Map),d=x.useRef(()=>{});return x.useEffect(()=>{function c(){l.current=!1,a.current=!1,u.current.clear()}function f(){return Array.from(u.current.values()).some(Boolean)}function m(T){if(!l.current)return;const v=T.target;v instanceof Node&&[...i].some(w=>w.contains(v))||u.current.set(T.type,!0),T.type==="click"&&window.setTimeout(()=>{l.current&&d.current()},0)}function h(T){l.current&&u.current.set(T.type,!1)}const g=T=>{if(T.target&&!s.current){let v=function(){n.removeEventListener("click",d.current);const w=f();c(),w||Pw(Ij,o,S,{discrete:!0})};const S={originalEvent:T};l.current=!0,a.current=r&&T.button===0,u.current.clear(),!r||T.button!==0?v():(n.removeEventListener("click",d.current),d.current=v,n.addEventListener("click",d.current,{once:!0}))}else n.removeEventListener("click",d.current),c();s.current=!1},b=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const T of b)n.addEventListener(T,m,!0),n.addEventListener(T,h);const E=window.setTimeout(()=>{n.addEventListener("pointerdown",g)},0);return()=>{window.clearTimeout(E),n.removeEventListener("pointerdown",g),n.removeEventListener("click",d.current);for(const T of b)n.removeEventListener(T,m,!0),n.removeEventListener(T,h)}},[n,o,r,a,i]),{onPointerDownCapture:()=>s.current=!0}}function Pj(e,t=globalThis==null?void 0:globalThis.document){const n=Hl(e),r=x.useRef(!1);return x.useEffect(()=>{const a=i=>{i.target&&!r.current&&Pw(Rj,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ky(){const e=new CustomEvent(id);document.dispatchEvent(e)}function Pw(e,t,n,{discrete:r}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?YO(a,i):a.dispatchEvent(i)}var Fj=x[" useId ".trim().toString()]||(()=>{}),Mj=0;function Bj(e){const[t,n]=x.useState(Fj());return jn(()=>{n(r=>r??String(Mj++))},[e]),t?`radix-${t}`:""}const Uj=["top","right","bottom","left"],pr=Math.min,qt=Math.max,qs=Math.round,cs=Math.floor,kn=e=>({x:e,y:e}),$j={left:"right",right:"left",bottom:"top",top:"bottom"},jj={start:"end",end:"start"};function od(e,t,n){return qt(e,pr(t,n))}function Vn(e,t){return typeof e=="function"?e(t):e}function Wn(e){return e.split("-")[0]}function li(e){return e.split("-")[1]}function Ob(e){return e==="x"?"y":"x"}function Db(e){return e==="y"?"height":"width"}function fr(e){return["top","bottom"].includes(Wn(e))?"y":"x"}function Lb(e){return Ob(fr(e))}function Hj(e,t,n){n===void 0&&(n=!1);const r=li(e),a=Lb(e),i=Db(a);let o=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Ys(o)),[o,Ys(o)]}function zj(e){const t=Ys(e);return[sd(e),t,sd(t)]}function sd(e){return e.replace(/start|end/g,t=>jj[t])}function Gj(e,t,n){const r=["left","right"],a=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?i:o;default:return[]}}function Vj(e,t,n,r){const a=li(e);let i=Gj(Wn(e),n==="start",r);return a&&(i=i.map(o=>o+"-"+a),t&&(i=i.concat(i.map(sd)))),i}function Ys(e){return e.replace(/left|right|bottom|top/g,t=>$j[t])}function Wj(e){return{top:0,right:0,bottom:0,left:0,...e}}function Fw(e){return typeof e!="number"?Wj(e):{top:e,right:e,bottom:e,left:e}}function Ks(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function Xy(e,t,n){let{reference:r,floating:a}=e;const i=fr(t),o=Lb(t),s=Db(o),l=Wn(t),u=i==="y",d=r.x+r.width/2-a.width/2,c=r.y+r.height/2-a.height/2,f=r[s]/2-a[s]/2;let m;switch(l){case"top":m={x:d,y:r.y-a.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:c};break;case"left":m={x:r.x-a.width,y:c};break;default:m={x:r.x,y:r.y}}switch(li(t)){case"start":m[o]-=f*(n&&u?-1:1);break;case"end":m[o]+=f*(n&&u?-1:1);break}return m}const qj=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,s=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:c}=Xy(u,r,l),f=r,m={},h=0;for(let g=0;g<s.length;g++){const{name:b,fn:E}=s[g],{x:T,y:v,data:S,reset:w}=await E({x:d,y:c,initialPlacement:r,placement:f,strategy:a,middlewareData:m,rects:u,platform:o,elements:{reference:e,floating:t}});d=T??d,c=v??c,m={...m,[b]:{...m[b],...S}},w&&h<=50&&(h++,typeof w=="object"&&(w.placement&&(f=w.placement),w.rects&&(u=w.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):w.rects),{x:d,y:c}=Xy(u,f,l)),g=-1)}return{x:d,y:c,placement:f,strategy:a,middlewareData:m}};async function to(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:i,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:f=!1,padding:m=0}=Vn(t,e),h=Fw(m),b=s[f?c==="floating"?"reference":"floating":c],E=Ks(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:l})),T=c==="floating"?{x:r,y:a,width:o.floating.width,height:o.floating.height}:o.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),S=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},w=Ks(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:T,offsetParent:v,strategy:l}):T);return{top:(E.top-w.top+h.top)/S.y,bottom:(w.bottom-E.bottom+h.bottom)/S.y,left:(E.left-w.left+h.left)/S.x,right:(w.right-E.right+h.right)/S.x}}const Yj=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:d=0}=Vn(e,t)||{};if(u==null)return{};const c=Fw(d),f={x:n,y:r},m=Lb(a),h=Db(m),g=await o.getDimensions(u),b=m==="y",E=b?"top":"left",T=b?"bottom":"right",v=b?"clientHeight":"clientWidth",S=i.reference[h]+i.reference[m]-f[m]-i.floating[h],w=f[m]-i.reference[m],A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let _=A?A[v]:0;(!_||!await(o.isElement==null?void 0:o.isElement(A)))&&(_=s.floating[v]||i.floating[h]);const D=S/2-w/2,I=_/2-g[h]/2-1,O=pr(c[E],I),M=pr(c[T],I),P=O,j=_-g[h]-M,z=_/2-g[h]/2+D,W=od(P,z,j),H=!l.arrow&&li(a)!=null&&z!==W&&i.reference[h]/2-(z<P?O:M)-g[h]/2<0,X=H?z<P?z-P:z-j:0;return{[m]:f[m]+X,data:{[m]:W,centerOffset:z-W-X,...H&&{alignmentOffset:X}},reset:H}}}),Kj=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:i,rects:o,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...b}=Vn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const E=Wn(a),T=fr(s),v=Wn(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),w=f||(v||!g?[Ys(s)]:zj(s)),A=h!=="none";!f&&A&&w.push(...Vj(s,g,h,S));const _=[s,...w],D=await to(t,b),I=[];let O=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&I.push(D[E]),c){const z=Hj(a,o,S);I.push(D[z[0]],D[z[1]])}if(O=[...O,{placement:a,overflows:I}],!I.every(z=>z<=0)){var M,P;const z=(((M=i.flip)==null?void 0:M.index)||0)+1,W=_[z];if(W)return{data:{index:z,overflows:O},reset:{placement:W}};let H=(P=O.filter(X=>X.overflows[0]<=0).sort((X,Z)=>X.overflows[1]-Z.overflows[1])[0])==null?void 0:P.placement;if(!H)switch(m){case"bestFit":{var j;const X=(j=O.filter(Z=>{if(A){const G=fr(Z.placement);return G===T||G==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(G=>G>0).reduce((G,k)=>G+k,0)]).sort((Z,G)=>Z[1]-G[1])[0])==null?void 0:j[0];X&&(H=X);break}case"initialPlacement":H=s;break}if(a!==H)return{reset:{placement:H}}}return{}}}};function Zy(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qy(e){return Uj.some(t=>e[t]>=0)}const Xj=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=Vn(e,t);switch(r){case"referenceHidden":{const i=await to(t,{...a,elementContext:"reference"}),o=Zy(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Qy(o)}}}case"escaped":{const i=await to(t,{...a,altBoundary:!0}),o=Zy(i,n.floating);return{data:{escapedOffsets:o,escaped:Qy(o)}}}default:return{}}}}};async function Zj(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=Wn(n),s=li(n),l=fr(n)==="y",u=["left","top"].includes(o)?-1:1,d=i&&l?-1:1,c=Vn(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:h}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof h=="number"&&(m=s==="end"?h*-1:h),l?{x:m*d,y:f*u}:{x:f*u,y:m*d}}const Qj=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:i,placement:o,middlewareData:s}=t,l=await Zj(t,e);return o===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:o}}}}},Jj=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:s={fn:b=>{let{x:E,y:T}=b;return{x:E,y:T}}},...l}=Vn(e,t),u={x:n,y:r},d=await to(t,l),c=fr(Wn(a)),f=Ob(c);let m=u[f],h=u[c];if(i){const b=f==="y"?"top":"left",E=f==="y"?"bottom":"right",T=m+d[b],v=m-d[E];m=od(T,m,v)}if(o){const b=c==="y"?"top":"left",E=c==="y"?"bottom":"right",T=h+d[b],v=h-d[E];h=od(T,h,v)}const g=s.fn({...t,[f]:m,[c]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[f]:i,[c]:o}}}}}},e5=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:i,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Vn(e,t),d={x:n,y:r},c=fr(a),f=Ob(c);let m=d[f],h=d[c];const g=Vn(s,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const v=f==="y"?"height":"width",S=i.reference[f]-i.floating[v]+b.mainAxis,w=i.reference[f]+i.reference[v]-b.mainAxis;m<S?m=S:m>w&&(m=w)}if(u){var E,T;const v=f==="y"?"width":"height",S=["top","left"].includes(Wn(a)),w=i.reference[c]-i.floating[v]+(S&&((E=o.offset)==null?void 0:E[c])||0)+(S?0:b.crossAxis),A=i.reference[c]+i.reference[v]+(S?0:((T=o.offset)==null?void 0:T[c])||0)-(S?b.crossAxis:0);h<w?h=w:h>A&&(h=A)}return{[f]:m,[c]:h}}}},t5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:i,platform:o,elements:s}=t,{apply:l=()=>{},...u}=Vn(e,t),d=await to(t,u),c=Wn(a),f=li(a),m=fr(a)==="y",{width:h,height:g}=i.floating;let b,E;c==="top"||c==="bottom"?(b=c,E=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(E=c,b=f==="end"?"top":"bottom");const T=g-d.top-d.bottom,v=h-d.left-d.right,S=pr(g-d[b],T),w=pr(h-d[E],v),A=!t.middlewareData.shift;let _=S,D=w;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=T),A&&!f){const O=qt(d.left,0),M=qt(d.right,0),P=qt(d.top,0),j=qt(d.bottom,0);m?D=h-2*(O!==0||M!==0?O+M:qt(d.left,d.right)):_=g-2*(P!==0||j!==0?P+j:qt(d.top,d.bottom))}await l({...t,availableWidth:D,availableHeight:_});const I=await o.getDimensions(s.floating);return h!==I.width||g!==I.height?{reset:{rects:!0}}:{}}}};function zl(){return typeof window<"u"}function ui(e){return Mw(e)?(e.nodeName||"").toLowerCase():"#document"}function Xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pn(e){var t;return(t=(Mw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Mw(e){return zl()?e instanceof Node||e instanceof Xt(e).Node:!1}function gn(e){return zl()?e instanceof Element||e instanceof Xt(e).Element:!1}function Rn(e){return zl()?e instanceof HTMLElement||e instanceof Xt(e).HTMLElement:!1}function Jy(e){return!zl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xt(e).ShadowRoot}function Lo(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=bn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function n5(e){return["table","td","th"].includes(ui(e))}function Gl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Pb(e){const t=Fb(),n=gn(e)?bn(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function r5(e){let t=mr(e);for(;Rn(t)&&!Ha(t);){if(Pb(t))return t;if(Gl(t))return null;t=mr(t)}return null}function Fb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ha(e){return["html","body","#document"].includes(ui(e))}function bn(e){return Xt(e).getComputedStyle(e)}function Vl(e){return gn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function mr(e){if(ui(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jy(e)&&e.host||Pn(e);return Jy(t)?t.host:t}function Bw(e){const t=mr(e);return Ha(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rn(t)&&Lo(t)?t:Bw(t)}function no(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=Bw(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=Xt(a);if(i){const s=ld(o);return t.concat(o,o.visualViewport||[],Lo(a)?a:[],s&&n?no(s):[])}return t.concat(a,no(a,[],n))}function ld(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Uw(e){const t=bn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Rn(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,s=qs(n)!==i||qs(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function Mb(e){return gn(e)?e:e.contextElement}function Oa(e){const t=Mb(e);if(!Rn(t))return kn(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=Uw(t);let o=(i?qs(n.width):n.width)/r,s=(i?qs(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const a5=kn(0);function $w(e){const t=Xt(e);return!Fb()||!t.visualViewport?a5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function i5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xt(e)?!1:t}function Gr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=Mb(e);let o=kn(1);t&&(r?gn(r)&&(o=Oa(r)):o=Oa(e));const s=i5(i,n,r)?$w(i):kn(0);let l=(a.left+s.x)/o.x,u=(a.top+s.y)/o.y,d=a.width/o.x,c=a.height/o.y;if(i){const f=Xt(i),m=r&&gn(r)?Xt(r):r;let h=f,g=ld(h);for(;g&&r&&m!==h;){const b=Oa(g),E=g.getBoundingClientRect(),T=bn(g),v=E.left+(g.clientLeft+parseFloat(T.paddingLeft))*b.x,S=E.top+(g.clientTop+parseFloat(T.paddingTop))*b.y;l*=b.x,u*=b.y,d*=b.x,c*=b.y,l+=v,u+=S,h=Xt(g),g=ld(h)}}return Ks({width:d,height:c,x:l,y:u})}function Bb(e,t){const n=Vl(e).scrollLeft;return t?t.left+n:Gr(Pn(e)).left+n}function jw(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-(n?0:Bb(e,r)),i=r.top+t.scrollTop;return{x:a,y:i}}function o5(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const i=a==="fixed",o=Pn(r),s=t?Gl(t.floating):!1;if(r===o||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=kn(1);const d=kn(0),c=Rn(r);if((c||!c&&!i)&&((ui(r)!=="body"||Lo(o))&&(l=Vl(r)),Rn(r))){const m=Gr(r);u=Oa(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const f=o&&!c&&!i?jw(o,l,!0):kn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+f.x,y:n.y*u.y-l.scrollTop*u.y+d.y+f.y}}function s5(e){return Array.from(e.getClientRects())}function l5(e){const t=Pn(e),n=Vl(e),r=e.ownerDocument.body,a=qt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=qt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Bb(e);const s=-n.scrollTop;return bn(r).direction==="rtl"&&(o+=qt(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:s}}function u5(e,t){const n=Xt(e),r=Pn(e),a=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const u=Fb();(!u||u&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s,y:l}}function c5(e,t){const n=Gr(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=Rn(e)?Oa(e):kn(1),o=e.clientWidth*i.x,s=e.clientHeight*i.y,l=a*i.x,u=r*i.y;return{width:o,height:s,x:l,y:u}}function ex(e,t,n){let r;if(t==="viewport")r=u5(e,n);else if(t==="document")r=l5(Pn(e));else if(gn(t))r=c5(t,n);else{const a=$w(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Ks(r)}function Hw(e,t){const n=mr(e);return n===t||!gn(n)||Ha(n)?!1:bn(n).position==="fixed"||Hw(n,t)}function d5(e,t){const n=t.get(e);if(n)return n;let r=no(e,[],!1).filter(s=>gn(s)&&ui(s)!=="body"),a=null;const i=bn(e).position==="fixed";let o=i?mr(e):e;for(;gn(o)&&!Ha(o);){const s=bn(o),l=Pb(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Lo(o)&&!l&&Hw(e,o))?r=r.filter(d=>d!==o):a=s,o=mr(o)}return t.set(e,r),r}function p5(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[...n==="clippingAncestors"?Gl(t)?[]:d5(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,d)=>{const c=ex(t,d,a);return u.top=qt(c.top,u.top),u.right=pr(c.right,u.right),u.bottom=pr(c.bottom,u.bottom),u.left=qt(c.left,u.left),u},ex(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function f5(e){const{width:t,height:n}=Uw(e);return{width:t,height:n}}function m5(e,t,n){const r=Rn(t),a=Pn(t),i=n==="fixed",o=Gr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=kn(0);if(r||!r&&!i)if((ui(t)!=="body"||Lo(a))&&(s=Vl(t)),r){const f=Gr(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else a&&(l.x=Bb(a));const u=a&&!r&&!i?jw(a,s):kn(0),d=o.left+s.scrollLeft-l.x-u.x,c=o.top+s.scrollTop-l.y-u.y;return{x:d,y:c,width:o.width,height:o.height}}function rc(e){return bn(e).position==="static"}function tx(e,t){if(!Rn(e)||bn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Pn(e)===n&&(n=n.ownerDocument.body),n}function zw(e,t){const n=Xt(e);if(Gl(e))return n;if(!Rn(e)){let a=mr(e);for(;a&&!Ha(a);){if(gn(a)&&!rc(a))return a;a=mr(a)}return n}let r=tx(e,t);for(;r&&n5(r)&&rc(r);)r=tx(r,t);return r&&Ha(r)&&rc(r)&&!Pb(r)?n:r||r5(e)||n}const h5=async function(e){const t=this.getOffsetParent||zw,n=this.getDimensions,r=await n(e.floating);return{reference:m5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function g5(e){return bn(e).direction==="rtl"}const b5={convertOffsetParentRelativeRectToViewportRelativeRect:o5,getDocumentElement:Pn,getClippingRect:p5,getOffsetParent:zw,getElementRects:h5,getClientRects:s5,getDimensions:f5,getScale:Oa,isElement:gn,isRTL:g5};function E5(e,t){let n=null,r;const a=Pn(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:u,top:d,width:c,height:f}=e.getBoundingClientRect();if(s||t(),!c||!f)return;const m=cs(d),h=cs(a.clientWidth-(u+c)),g=cs(a.clientHeight-(d+f)),b=cs(u),T={rootMargin:-m+"px "+-h+"px "+-g+"px "+-b+"px",threshold:qt(0,pr(1,l))||1};let v=!0;function S(w){const A=w[0].intersectionRatio;if(A!==l){if(!v)return o();A?o(!1,A):r=setTimeout(()=>{o(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(S,{...T,root:a.ownerDocument})}catch{n=new IntersectionObserver(S,T)}n.observe(e)}return o(!0),i}function Ub(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Mb(e),d=a||i?[...u?no(u):[],...no(t)]:[];d.forEach(E=>{a&&E.addEventListener("scroll",n,{passive:!0}),i&&E.addEventListener("resize",n)});const c=u&&s?E5(u,n):null;let f=-1,m=null;o&&(m=new ResizeObserver(E=>{let[T]=E;T&&T.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var v;(v=m)==null||v.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let h,g=l?Gr(e):null;l&&b();function b(){const E=Gr(e);g&&(E.x!==g.x||E.y!==g.y||E.width!==g.width||E.height!==g.height)&&n(),g=E,h=requestAnimationFrame(b)}return n(),()=>{var E;d.forEach(T=>{a&&T.removeEventListener("scroll",n),i&&T.removeEventListener("resize",n)}),c==null||c(),(E=m)==null||E.disconnect(),m=null,l&&cancelAnimationFrame(h)}}const y5=Qj,x5=Jj,T5=Kj,v5=t5,S5=Xj,nx=Yj,A5=e5,w5=(e,t,n)=>{const r=new Map,a={platform:b5,...n},i={...a.platform,_c:r};return qj(e,t,{...a,platform:i})};var Cs=typeof document<"u"?R.useLayoutEffect:R.useEffect;function Xs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Xs(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const i=a[r];if(!(i==="_owner"&&e.$$typeof)&&!Xs(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Gw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rx(e,t){const n=Gw(e);return Math.round(t*n)/n}function ac(e){const t=x.useRef(e);return Cs(()=>{t.current=e}),t}function $b(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:i,floating:o}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[d,c]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=x.useState(r);Xs(f,r)||m(r);const[h,g]=x.useState(null),[b,E]=x.useState(null),T=x.useCallback(Z=>{Z!==A.current&&(A.current=Z,g(Z))},[]),v=x.useCallback(Z=>{Z!==_.current&&(_.current=Z,E(Z))},[]),S=i||h,w=o||b,A=x.useRef(null),_=x.useRef(null),D=x.useRef(d),I=l!=null,O=ac(l),M=ac(a),P=ac(u),j=x.useCallback(()=>{if(!A.current||!_.current)return;const Z={placement:t,strategy:n,middleware:f};M.current&&(Z.platform=M.current),w5(A.current,_.current,Z).then(G=>{const k={...G,isPositioned:P.current!==!1};z.current&&!Xs(D.current,k)&&(D.current=k,Xr.flushSync(()=>{c(k)}))})},[f,t,n,M,P]);Cs(()=>{u===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,c(Z=>({...Z,isPositioned:!1})))},[u]);const z=x.useRef(!1);Cs(()=>(z.current=!0,()=>{z.current=!1}),[]),Cs(()=>{if(S&&(A.current=S),w&&(_.current=w),S&&w){if(O.current)return O.current(S,w,j);j()}},[S,w,j,O,I]);const W=x.useMemo(()=>({reference:A,floating:_,setReference:T,setFloating:v}),[T,v]),H=x.useMemo(()=>({reference:S,floating:w}),[S,w]),X=x.useMemo(()=>{const Z={position:n,left:0,top:0};if(!H.floating)return Z;const G=rx(H.floating,d.x),k=rx(H.floating,d.y);return s?{...Z,transform:"translate("+G+"px, "+k+"px)",...Gw(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:k}},[n,s,H.floating,d.x,d.y]);return x.useMemo(()=>({...d,update:j,refs:W,elements:H,floatingStyles:X}),[d,j,W,H,X])}const _5=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?nx({element:r.current,padding:a}).fn(n):{}:r?nx({element:r,padding:a}).fn(n):{}}}},jb=(e,t)=>({...y5(e),options:[e,t]}),Hb=(e,t)=>({...x5(e),options:[e,t]}),zb=(e,t)=>({...A5(e),options:[e,t]}),Gb=(e,t)=>({...T5(e),options:[e,t]}),Vb=(e,t)=>({...v5(e),options:[e,t]}),Wb=(e,t)=>({...S5(e),options:[e,t]}),qb=(e,t)=>({..._5(e),options:[e,t]});var N5="Arrow",Vw=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...i}=e;return p.jsx(vn.svg,{...i,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Vw.displayName=N5;var C5=Vw,Yb="Popper",[Ww,qw]=bp(Yb),[k5,Yw]=Ww(Yb),Kw=e=>{const{__scopePopper:t,children:n}=e,[r,a]=x.useState(null),[i,o]=x.useState(void 0);return p.jsx(k5,{scope:t,anchor:r,onAnchorChange:a,placementState:i,setPlacementState:o,children:n})};Kw.displayName=Yb;var Xw="PopperAnchor",Zw=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,i=Yw(Xw,n),o=x.useRef(null),s=i.onAnchorChange,l=x.useCallback(h=>{o.current=h,h&&s(h)},[s]),u=qn(t,l),d=x.useRef(null);x.useEffect(()=>{if(!r)return;const h=d.current;d.current=r.current,h!==d.current&&s(d.current)});const c=i.placementState&&Xb(i.placementState),f=c==null?void 0:c[0],m=c==null?void 0:c[1];return r?null:p.jsx(vn.div,{"data-radix-popper-side":f,"data-radix-popper-align":m,...a,ref:u})});Zw.displayName=Xw;var Kb="PopperContent",[I5,R5]=Ww(Kb),Qw=x.forwardRef((e,t)=>{var J,oe,de,ie,$,re;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:h,...g}=e,b=Yw(Kb,n),[E,T]=x.useState(null),v=qn(t,se=>T(se)),[S,w]=x.useState(null),A=sS(S),_=(A==null?void 0:A.width)??0,D=(A==null?void 0:A.height)??0,I=r+(i!=="center"?"-"+i:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},M=Array.isArray(u)?u:[u],P=M.length>0,j={padding:O,boundary:M.filter(D5),altBoundary:P},{refs:z,floatingStyles:W,placement:H,isPositioned:X,middlewareData:Z}=$b({strategy:"fixed",placement:I,whileElementsMounted:(...se)=>Ub(...se,{animationFrame:m==="always"}),elements:{reference:b.anchor},middleware:[jb({mainAxis:a+D,alignmentAxis:o}),l&&Hb({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?zb():void 0,...j}),l&&Gb({...j}),Vb({...j,apply:({elements:se,rects:pe,availableWidth:ye,availableHeight:be})=>{const{width:Le,height:xe}=pe.reference,Te=se.floating.style;Te.setProperty("--radix-popper-available-width",`${ye}px`),Te.setProperty("--radix-popper-available-height",`${be}px`),Te.setProperty("--radix-popper-anchor-width",`${Le}px`),Te.setProperty("--radix-popper-anchor-height",`${xe}px`)}}),S&&qb({element:S,padding:s}),L5({arrowWidth:_,arrowHeight:D}),f&&Wb({strategy:"referenceHidden",...j,boundary:P?j.boundary:void 0})]}),G=b.setPlacementState;jn(()=>(G(H),()=>{G(void 0)}),[H,G]);const[k,ae]=Xb(H),V=Hl(h);jn(()=>{X&&(V==null||V())},[X,V]);const N=(J=Z.arrow)==null?void 0:J.x,te=(oe=Z.arrow)==null?void 0:oe.y,U=((de=Z.arrow)==null?void 0:de.centerOffset)!==0,[K,Q]=x.useState();return jn(()=>{E&&Q(window.getComputedStyle(E).zIndex)},[E]),p.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:X?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[(ie=Z.transformOrigin)==null?void 0:ie.x,($=Z.transformOrigin)==null?void 0:$.y].join(" "),...((re=Z.hide)==null?void 0:re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(I5,{scope:n,placedSide:k,placedAlign:ae,onArrowChange:w,arrowX:N,arrowY:te,shouldHideArrow:U,children:p.jsx(vn.div,{"data-side":k,"data-align":ae,...g,ref:v,style:{...g.style,animation:X?void 0:"none"}})})})});Qw.displayName=Kb;var Jw="PopperArrow",O5={top:"bottom",right:"left",bottom:"top",left:"right"},e1=x.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,i=R5(Jw,r),o=O5[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(C5,{...a,ref:n,style:{...a.style,display:"block"}})})});e1.displayName=Jw;function D5(e){return e!==null}var L5=e=>({name:"transformOrigin",options:e,fn(t){var b,E,T;const{placement:n,rects:r,middlewareData:a}=t,o=((b=a.arrow)==null?void 0:b.centerOffset)!==0,s=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[u,d]=Xb(n),c={start:"0%",center:"50%",end:"100%"}[d],f=(((E=a.arrow)==null?void 0:E.x)??0)+s/2,m=(((T=a.arrow)==null?void 0:T.y)??0)+l/2;let h="",g="";return u==="bottom"?(h=o?c:`${f}px`,g=`${-l}px`):u==="top"?(h=o?c:`${f}px`,g=`${r.floating.height+l}px`):u==="right"?(h=`${-l}px`,g=o?c:`${m}px`):u==="left"&&(h=`${r.floating.width+l}px`,g=o?c:`${m}px`),{data:{x:h,y:g}}}});function Xb(e){const[t,n="center"]=e.split("-");return[t,n]}var P5=Kw,F5=Zw,M5=Qw,B5=e1,U5="Portal",t1=x.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[a,i]=x.useState(!1);jn(()=>i(!0),[]);const o=n||a&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return o?Xr.createPortal(p.jsx(vn.div,{...r,ref:t}),o):null});t1.displayName=U5;var $5=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),j5="VisuallyHidden",n1=x.forwardRef((e,t)=>p.jsx(vn.span,{...e,ref:t,style:{...$5,...e.style}}));n1.displayName=j5;var H5=n1,[Wl,MW]=bp("Tooltip",[qw]),ql=qw(),r1="TooltipProvider",z5=700,ud="tooltip.open",[G5,Zb]=Wl(r1),a1=e=>{const{__scopeTooltip:t,delayDuration:n=z5,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:i}=e,o=x.useRef(!0),s=x.useRef(!1),l=x.useRef(0);return x.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),p.jsx(G5,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:x.useCallback(()=>{r<=0||(window.clearTimeout(l.current),o.current=!1)},[r]),onClose:x.useCallback(()=>{r<=0||(window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:x.useCallback(u=>{s.current=u},[]),disableHoverableContent:a,children:i})};a1.displayName=r1;var ro="Tooltip",[V5,Po]=Wl(ro),i1=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a,onOpenChange:i,disableHoverableContent:o,delayDuration:s}=e,l=Zb(ro,e.__scopeTooltip),u=ql(t),[d,c]=x.useState(null),f=Bj(),m=x.useRef(0),h=o??l.disableHoverableContent,g=s??l.delayDuration,b=x.useRef(!1),[E,T]=oS({prop:r,defaultProp:a??!1,onChange:_=>{_?(l.onOpen(),document.dispatchEvent(new CustomEvent(ud))):l.onClose(),i==null||i(_)},caller:ro}),v=x.useMemo(()=>E?b.current?"delayed-open":"instant-open":"closed",[E]),S=x.useCallback(()=>{window.clearTimeout(m.current),m.current=0,b.current=!1,T(!0)},[T]),w=x.useCallback(()=>{window.clearTimeout(m.current),m.current=0,T(!1)},[T]),A=x.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{b.current=!0,T(!0),m.current=0},g)},[g,T]);return x.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),p.jsx(P5,{...u,children:p.jsx(V5,{scope:t,contentId:f,open:E,stateAttribute:v,trigger:d,onTriggerChange:c,onTriggerEnter:x.useCallback(()=>{l.isOpenDelayedRef.current?A():S()},[l.isOpenDelayedRef,A,S]),onTriggerLeave:x.useCallback(()=>{h?w():(window.clearTimeout(m.current),m.current=0)},[w,h]),onOpen:S,onClose:w,disableHoverableContent:h,children:n})})};i1.displayName=ro;var cd="TooltipTrigger",o1=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=Po(cd,n),i=Zb(cd,n),o=ql(n),s=x.useRef(null),l=qn(t,s,a.onTriggerChange),u=x.useRef(!1),d=x.useRef(!1),c=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),p.jsx(F5,{asChild:!0,...o,children:p.jsx(vn.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:l,onPointerMove:pn(e.onPointerMove,f=>{f.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),d.current=!0)}),onPointerLeave:pn(e.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:pn(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:pn(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:pn(e.onBlur,a.onClose),onClick:pn(e.onClick,a.onClose)})})});o1.displayName=cd;var Qb="TooltipPortal",[W5,q5]=Wl(Qb,{forceMount:void 0}),s1=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:a}=e,i=Po(Qb,t);return p.jsx(W5,{scope:t,forceMount:n,children:p.jsx(dl,{present:n||i.open,children:p.jsx(t1,{asChild:!0,container:a,children:r})})})};s1.displayName=Qb;var za="TooltipContent",l1=x.forwardRef((e,t)=>{const n=q5(za,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...i}=e,o=Po(za,e.__scopeTooltip);return p.jsx(dl,{present:r||o.open,children:o.disableHoverableContent?p.jsx(u1,{side:a,...i,ref:t}):p.jsx(Y5,{side:a,...i,ref:t})})}),Y5=x.forwardRef((e,t)=>{const n=Po(za,e.__scopeTooltip),r=Zb(za,e.__scopeTooltip),a=x.useRef(null),i=qn(t,a),[o,s]=x.useState(null),{trigger:l,onClose:u}=n,d=a.current,{onPointerInTransitChange:c}=r,f=x.useCallback(()=>{s(null),c(!1)},[c]),m=x.useCallback((h,g)=>{const b=h.currentTarget,E={x:h.clientX,y:h.clientY},T=J5(E,b.getBoundingClientRect()),v=e8(E,T),S=t8(g.getBoundingClientRect()),w=r8([...v,...S]);s(w),c(!0)},[c]);return x.useEffect(()=>()=>f(),[f]),x.useEffect(()=>{if(l&&d){const h=b=>m(b,d),g=b=>m(b,l);return l.addEventListener("pointerleave",h),d.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",h),d.removeEventListener("pointerleave",g)}}},[l,d,m,f]),x.useEffect(()=>{if(o){const h=g=>{const b=g.target,E={x:g.clientX,y:g.clientY},T=(l==null?void 0:l.contains(b))||(d==null?void 0:d.contains(b)),v=!n8(E,o);T?f():v&&(f(),u())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[l,d,o,u,f]),p.jsx(u1,{...e,ref:i})}),[K5,X5]=Wl(ro,{isInside:!1}),Z5=BO("TooltipContent"),u1=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:o,...s}=e,l=Po(za,n),u=ql(n),{onClose:d}=l;return x.useEffect(()=>(document.addEventListener(ud,d),()=>document.removeEventListener(ud,d)),[d]),x.useEffect(()=>{if(l.trigger){const c=f=>{f.target instanceof Node&&f.target.contains(l.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[l.trigger,d]),p.jsx(Lw,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:p.jsxs(M5,{"data-state":l.stateAttribute,...u,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[p.jsx(Z5,{children:r}),p.jsx(K5,{scope:n,isInside:!0,children:p.jsx(H5,{id:l.contentId,role:"tooltip",children:a||r})})]})})});l1.displayName=za;var c1="TooltipArrow",Q5=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=ql(n);return X5(c1,n).isInside?null:p.jsx(B5,{...a,...r,ref:t})});Q5.displayName=c1;function J5(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,a,i)){case i:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function e8(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function t8(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function n8(e,t){const{x:n,y:r}=e;let a=!1;for(let i=0,o=t.length-1;i<t.length;o=i++){const s=t[i],l=t[o],u=s.x,d=s.y,c=l.x,f=l.y;d>r!=f>r&&n<(c-u)*(r-d)/(f-d)+u&&(a=!a)}return a}function r8(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),a8(t)}function a8(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;n.length>=2;){const i=n[n.length-1],o=n[n.length-2];if((i.x-o.x)*(a.y-o.y)>=(i.y-o.y)*(a.x-o.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var i8=a1,o8=i1,s8=o1,l8=s1,d1=l1;const u8=i8,c8=o8,d8=s8,p1=x.forwardRef(({className:e,sideOffset:t=6,...n},r)=>p.jsx(l8,{children:p.jsx(d1,{ref:r,sideOffset:t,className:Ee("z-50 max-w-xs rounded-md border bg-popover px-3 py-2 text-xs text-popover-foreground shadow-md","animate-in fade-in-0 zoom-in-95","data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95","data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));p1.displayName=d1.displayName;const ax=()=>p.jsx("p",{className:"text-sm text-muted-foreground",children:"Unsupported authentication method."}),Yl=({onClear:e,onRefresh:t,isRefreshing:n,detail:r})=>p.jsxs("div",{className:"flex flex-col gap-3 px-4 py-4 rounded-lg bg-green-50 dark:bg-green-950 border border-green-200 dark:border-green-800",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(yT,{className:"h-5 w-5 text-green-600 dark:text-green-400 shrink-0"}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-medium text-green-700 dark:text-green-400",children:"Authenticated"}),r&&p.jsx("p",{className:"text-xs text-green-600/70 dark:text-green-400/70 truncate",children:r})]})]}),p.jsxs("div",{className:"flex gap-2",children:[t&&p.jsxs(Qe,{variant:"outline",size:"sm",className:"flex-1 border-green-300 dark:border-green-700 text-green-700 dark:text-green-400 hover:bg-green-100 dark:hover:bg-green-900",onClick:t,disabled:n,children:[n?p.jsx(Ya,{className:"h-3.5 w-3.5 mr-1.5 animate-spin"}):p.jsx(AT,{className:"h-3.5 w-3.5 mr-1.5"}),"Refresh"]}),p.jsxs(Qe,{variant:"outline",size:"sm",className:`${t?"flex-1":"w-full"} border-green-300 dark:border-green-700 text-green-700 dark:text-green-400 hover:bg-green-100 dark:hover:bg-green-900`,onClick:e,disabled:n,children:[p.jsx(Hd,{className:"h-3.5 w-3.5 mr-1.5"}),"Log out"]})]})]}),Un=({label:e,children:t})=>p.jsxs("div",{className:"space-y-1.5",children:[p.jsx("label",{className:"text-xs font-medium text-foreground",children:e}),t]}),p8=({text:e})=>p.jsxs(c8,{children:[p.jsx(d8,{asChild:!0,children:p.jsx(TT,{className:"h-3.5 w-3.5 text-muted-foreground cursor-help shrink-0"})}),p.jsx(p1,{children:e})]}),f8=({scheme:e,schemeName:t})=>{const{credentials:n,setCredential:r,clearCredential:a}=lt(),i=n[t],[o,s]=R.useState((i==null?void 0:i.username)??""),[l,u]=R.useState((i==null?void 0:i.password)??""),d=()=>{if(!o.trim()){He.warning("Username is required");return}r(t,{type:"basic",username:o.trim(),password:l})},c=()=>{a(t),s(""),u("")};return p.jsxs("div",{className:"space-y-4",children:[e.description&&p.jsx("p",{className:"text-sm text-muted-foreground",children:p.jsx(st,{markdown:e.description})}),i?p.jsx(Yl,{onClear:c}):p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"space-y-3",children:[p.jsx(Un,{label:"Username",children:p.jsx(Pt,{type:"text",value:o,onChange:f=>s(f.target.value),placeholder:"username"})}),p.jsx(Un,{label:"Password",children:p.jsx(Pt,{type:"password",value:l,onChange:f=>u(f.target.value),placeholder:"••••••••"})})]}),p.jsx(lr,{onClick:d})]})]})},m8=({scheme:e,schemeName:t})=>{const{credentials:n,setCredential:r,clearCredential:a}=lt(),i=n[t],[o,s]=R.useState((i==null?void 0:i.token)??""),l=()=>{if(!o.trim()){He.warning("Token is required");return}r(t,{type:"bearer",token:o.trim()})},u=()=>{a(t),s("")},d=e;return p.jsxs("div",{className:"space-y-4",children:[d.description&&p.jsx("p",{className:"text-sm text-muted-foreground",children:p.jsx(st,{markdown:d.description})}),i?p.jsx(Yl,{onClear:u}):p.jsxs(p.Fragment,{children:[p.jsx(Un,{label:`Token${d.bearerFormat?` (${d.bearerFormat})`:""}`,children:p.jsx(Pt,{type:"password",value:o,onChange:c=>s(c.target.value),placeholder:"Bearer token"})}),p.jsx(lr,{onClick:l})]})]})},h8=({scheme:e,schemeName:t})=>{const{credentials:n,setCredential:r,clearCredential:a}=lt(),i=n[t],o=e,[s,l]=R.useState((i==null?void 0:i.key)??""),u=()=>{if(!s.trim()){He.warning("API key is required");return}r(t,{type:"apiKey",key:s.trim(),in:o.in,name:o.name})},d=()=>{a(t),l("")};return p.jsxs("div",{className:"space-y-4",children:[o.description&&p.jsx("p",{className:"text-sm text-muted-foreground",children:p.jsx(st,{markdown:o.description})}),p.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-muted-foreground bg-muted/50 px-3 py-2 rounded-lg",children:[p.jsx(vT,{className:"h-3 w-3 shrink-0"}),"Sent as ",p.jsx("code",{className:"font-mono mx-1 text-foreground",children:o.name})," in ",p.jsx("span",{className:"font-medium text-foreground ml-1",children:o.in})]}),i?p.jsx(Yl,{onClear:d}):p.jsxs(p.Fragment,{children:[p.jsx(Un,{label:"API Key",children:p.jsx(Pt,{type:"password",value:s,onChange:c=>l(c.target.value),placeholder:o.name})}),p.jsx(lr,{onClick:u})]})]})},f1=({scheme:e,schemeName:t})=>{const{credentials:n,setCredential:r,clearCredential:a,computedUrl:i}=lt(),o=n[t],s=e,l=Object.keys(s.flows),[u,d]=R.useState(l[0]),[c,f]=R.useState(""),[m,h]=R.useState(""),[g,b]=R.useState(""),[E,T]=R.useState(""),[v,S]=R.useState(new Set),[w,A]=R.useState(!1),[_,D]=R.useState("header"),[I,O]=R.useState(!0),M=R.useRef(null),P=s.flows[u],j=Object.entries((P==null?void 0:P.scopes)??{}),z=`${window.location.origin}${window.location.pathname}`,W=P&&"tokenUrl"in P&&!!P.tokenUrl,H=v.size>0?Array.from(v).join(" "):j.map(([$])=>$).join(" "),X=$=>{if(!$)return $;try{return new URL($),$}catch{}try{return new URL($,i||window.location.origin).toString()}catch{return $}},Z=($,re)=>{if(_==="header"&&c.trim()){const se=btoa(`${c.trim()}:${m}`);return re.delete("client_id"),re.delete("client_secret"),fetch($,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:`Basic ${se}`},body:re.toString()})}return fetch($,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:re.toString()})},G=($,re)=>{const se=(P==null?void 0:P["x-tokenName"])??"access_token";return $[se]?(r(t,{type:"oauth2",accessToken:$[se],tokenType:$.token_type??"Bearer",scope:$.scope??re,refreshToken:$.refresh_token,clientId:c.trim()||void 0}),!0):(He.error($.error_description??$.error??"No access token returned"),!1)},k=R.useCallback($=>{S(re=>{const se=new Set(re);return se.has($)?se.delete($):se.add($),se})},[]),ae=()=>S(new Set(j.map(([$])=>$))),V=()=>S(new Set),N=()=>a(t),te=$=>new Promise((re,se)=>{const be=window.screenX+(window.outerWidth-600)/2,Le=window.screenY+(window.outerHeight-700)/2,xe=window.open($,"skuse_oauth",`width=600,height=700,left=${be},top=${Le},scrollbars=yes,resizable=yes`);if(!xe){He.error("Popup blocked",{description:"Allow popups for this site and try again."}),se(new Error("blocked"));return}const Te=setInterval(()=>{if(xe.closed){clearInterval(Te),He.info("Authentication cancelled"),se(new Error("cancelled"));return}try{const De=xe.location.href;if(!De||De==="about:blank")return;clearInterval(Te),xe.close(),re(De)}catch{}},200)}),U=async()=>{if(!c.trim()){He.warning("Client ID is required");return}if(!(!P||!("authorizationUrl"in P)||!("tokenUrl"in P)||!P.tokenUrl)){A(!0);try{const $=crypto.randomUUID(),re=new URLSearchParams({response_type:"code",client_id:c.trim(),redirect_uri:z,scope:H,state:$});if(I){const xe=_j();M.current=xe;const Te=await Nj(xe);re.set("code_challenge",Te),re.set("code_challenge_method","S256")}let se;try{se=await te(`${X(P.authorizationUrl)}?${re}`)}catch{return}const pe=new URL(se),ye=pe.searchParams.get("error");if(ye){He.error(pe.searchParams.get("error_description")??ye);return}if(pe.searchParams.get("state")!==$){He.error("State mismatch — possible CSRF attack");return}const be=pe.searchParams.get("code");if(!be){He.error("No authorization code returned");return}const Le=new URLSearchParams({grant_type:"authorization_code",code:be,redirect_uri:z,client_id:c.trim()});I&&M.current&&(Le.set("code_verifier",M.current),M.current=null),m&&_==="body"&&Le.set("client_secret",m);try{const xe=await Z(X(P.tokenUrl),Le);G(await xe.json(),H)}catch(xe){He.error("Could not reach token endpoint",{description:xe instanceof Error?xe.message:void 0})}}finally{A(!1)}}},K=async()=>{if(!c.trim()){He.warning("Client ID is required");return}if(!(!P||!("authorizationUrl"in P))){A(!0);try{const $=crypto.randomUUID(),re=new URLSearchParams({response_type:"token",client_id:c.trim(),redirect_uri:z,scope:H,state:$});let se;try{se=await te(`${X(P.authorizationUrl)}?${re}`)}catch{return}const pe=new URL(se),ye=new URLSearchParams(pe.hash.slice(1)),be=pe.searchParams.get("error")??ye.get("error");if(be){He.error(pe.searchParams.get("error_description")??ye.get("error_description")??be);return}const Le=pe.searchParams.get("state")??ye.get("state");if(Le&&Le!==$){He.error("State mismatch — possible CSRF attack");return}const xe=ye.get("access_token")??pe.searchParams.get("access_token");if(!xe){He.error("No access token returned");return}r(t,{type:"oauth2",accessToken:xe,tokenType:ye.get("token_type")??"Bearer",scope:ye.get("scope")??void 0,clientId:c.trim()})}finally{A(!1)}}},Q=async()=>{if(!c.trim()){He.warning("Client ID is required");return}if(!g.trim()){He.warning("Username is required");return}if(!(!P||!("tokenUrl"in P))){A(!0);try{const $=new URLSearchParams({grant_type:"password",client_id:c.trim(),username:g.trim(),password:E,scope:H});m&&_==="body"&&$.set("client_secret",m);const re=await Z(X(P.tokenUrl),$);G(await re.json(),H)}catch($){He.error("Could not reach token endpoint",{description:$ instanceof Error?$.message:void 0})}finally{A(!1)}}},J=async()=>{if(!c.trim()){He.warning("Client ID is required");return}if(!(!P||!("tokenUrl"in P))){A(!0);try{const $=new URLSearchParams({grant_type:"client_credentials",client_id:c.trim(),scope:H});m&&_==="body"&&$.set("client_secret",m);const re=await Z(X(P.tokenUrl),$);G(await re.json(),H)}catch($){He.error("Could not reach token endpoint",{description:$ instanceof Error?$.message:void 0})}finally{A(!1)}}},oe=async()=>{if(!(o!=null&&o.refreshToken))return;const $=P&&"refreshUrl"in P&&P.refreshUrl?X(P.refreshUrl):P&&"tokenUrl"in P&&P.tokenUrl?X(P.tokenUrl):null;if($){A(!0);try{const re=new URLSearchParams({grant_type:"refresh_token",refresh_token:o.refreshToken});o.clientId&&re.set("client_id",o.clientId);const pe=await(await fetch($,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:re.toString()})).json(),ye=(P==null?void 0:P["x-tokenName"])??"access_token";pe[ye]?r(t,{type:"oauth2",accessToken:pe[ye],tokenType:pe.token_type??o.tokenType,scope:pe.scope??o.scope,refreshToken:pe.refresh_token??o.refreshToken,clientId:o.clientId}):He.error(pe.error_description??pe.error??"Token refresh failed")}catch(re){He.error("Could not reach token endpoint",{description:re instanceof Error?re.message:void 0})}finally{A(!1)}}},de=!!(o!=null&&o.refreshToken)&&(P&&"refreshUrl"in P&&!!P.refreshUrl||P&&"tokenUrl"in P&&!!P.tokenUrl),ie={authorizationCode:"Authorization Code",implicit:"Implicit",password:"Password",clientCredentials:"Client Credentials"};return p.jsxs("div",{className:"space-y-4",children:[s.description&&p.jsx("div",{className:"text-sm text-muted-foreground",children:p.jsx(st,{markdown:s.description})}),o?p.jsx(Yl,{onClear:N,onRefresh:de?oe:void 0,isRefreshing:w,detail:[o.tokenType,o.scope].filter(Boolean).join(" · ")}):p.jsxs(p.Fragment,{children:[l.length>1&&p.jsx("div",{className:"flex gap-2 flex-wrap",children:l.map($=>p.jsx(Qe,{variant:u===$?"default":"outline",size:"sm",onClick:()=>{d($),S(new Set),A(!1)},children:ie[$]??$},$))}),P&&p.jsxs("div",{className:"space-y-1.5 text-xs bg-muted/50 rounded-lg p-3",children:[p.jsxs("p",{className:"text-muted-foreground",children:[p.jsx("span",{className:"font-medium text-foreground",children:"Flow: "}),ie[u]??u]}),"authorizationUrl"in P&&P.authorizationUrl&&p.jsxs("p",{className:"text-muted-foreground flex items-start gap-1",children:[p.jsx("span",{className:"font-medium text-foreground shrink-0",children:"Authorization URL: "}),p.jsx("span",{className:"font-mono truncate",children:X(P.authorizationUrl)}),p.jsx(dr,{className:"h-3 w-3 shrink-0 mt-0.5"})]}),"tokenUrl"in P&&P.tokenUrl&&p.jsxs("p",{className:"text-muted-foreground flex items-start gap-1",children:[p.jsx("span",{className:"font-medium text-foreground shrink-0",children:"Token URL: "}),p.jsx("span",{className:"font-mono truncate",children:X(P.tokenUrl)})]})]}),j.length>0&&p.jsxs("div",{className:"space-y-2",children:[p.jsxs("div",{className:"flex items-center justify-between shrink-0",children:[p.jsx("p",{className:"text-xs font-medium text-foreground",children:"Scopes"}),p.jsxs("div",{className:"flex gap-2",children:[p.jsx("button",{className:"text-xs text-primary hover:underline",onClick:ae,children:"select all"}),p.jsx("span",{className:"text-xs text-muted-foreground",children:"/"}),p.jsx("button",{className:"text-xs text-primary hover:underline",onClick:V,children:"select none"})]})]}),p.jsx("div",{className:"space-y-1.5 overflow-y-auto max-h-40 pr-1",children:j.map(([$,re])=>p.jsxs("label",{className:"flex items-start gap-2 cursor-pointer group",children:[p.jsx(Fc,{checked:v.has($),onCheckedChange:()=>k($),className:"mt-0.5 shrink-0"}),p.jsxs("span",{className:"text-xs leading-none pt-0.5",children:[p.jsx("code",{className:"font-mono",children:$}),re&&p.jsx("span",{className:"ml-1 text-muted-foreground",children:re})]})]},$))})]}),p.jsxs("div",{className:"space-y-3",children:[p.jsx(Un,{label:"Client ID",children:p.jsx(Pt,{value:c,onChange:$=>f($.target.value),placeholder:"client_id"})}),(u==="clientCredentials"||u==="password")&&p.jsx(Un,{label:"Client Secret",children:p.jsx(Pt,{type:"password",value:m,onChange:$=>h($.target.value),placeholder:"client_secret"})}),u==="password"&&p.jsxs(p.Fragment,{children:[p.jsx(Un,{label:"Username",children:p.jsx(Pt,{value:g,onChange:$=>b($.target.value),placeholder:"username"})}),p.jsx(Un,{label:"Password",children:p.jsx(Pt,{type:"password",value:E,onChange:$=>T($.target.value),placeholder:"••••••••"})})]})]}),W&&p.jsx(Un,{label:"Client credentials",children:p.jsx("div",{className:"flex gap-2",children:["header","body"].map($=>p.jsx(Qe,{size:"sm",variant:_===$?"default":"outline",className:"flex-1 text-xs",onClick:()=>D($),children:$==="header"?"Auth header":"Request body"},$))})}),u==="authorizationCode"&&p.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[p.jsx(Fc,{checked:I,onCheckedChange:$=>O(!!$)}),p.jsx("span",{className:"text-xs text-foreground",children:"Use PKCE"}),p.jsx(p8,{text:"Proof Key for Code Exchange — generates a one-time code challenge so the authorization code can't be stolen and reused by a third party."})]}),u==="authorizationCode"&&p.jsx(lr,{onClick:U,isLoading:w}),u==="implicit"&&p.jsx(lr,{onClick:K,isLoading:w}),u==="password"&&p.jsx(lr,{onClick:Q,isLoading:w}),u==="clientCredentials"&&p.jsx(lr,{onClick:J,isLoading:w})]})]})},g8=({scheme:e,schemeName:t})=>{const n=e,[r,a]=R.useState(null),[i,o]=R.useState(!1),s=async()=>{o(!0);try{const l=await fetch(n.openIdConnectUrl);if(!l.ok)throw new Error(`${l.status} ${l.statusText}`);const u=await l.json(),d={};for(const f of u.scopes_supported??["openid"])d[f]="";const c={type:"oauth2",description:n.description,flows:{...u.authorization_endpoint&&u.token_endpoint?{authorizationCode:{authorizationUrl:u.authorization_endpoint,tokenUrl:u.token_endpoint,refreshUrl:u.token_endpoint,scopes:d}}:{},...u.authorization_endpoint&&!u.token_endpoint?{implicit:{authorizationUrl:u.authorization_endpoint,scopes:d}}:{}}};a(c)}catch(l){He.error("OIDC discovery failed",{description:l instanceof Error?l.message:void 0})}finally{o(!1)}};return R.useEffect(()=>{s()},[]),r?p.jsx(f1,{scheme:r,schemeName:t}):p.jsxs("div",{className:"space-y-4",children:[n.description&&p.jsx("div",{className:"text-sm text-muted-foreground",children:p.jsx(st,{markdown:n.description})}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("p",{className:"text-xs text-muted-foreground",children:"OpenID Connect URL"}),p.jsx(Pt,{value:n.openIdConnectUrl,readOnly:!0,className:"font-mono text-xs"})]}),p.jsxs(Qe,{variant:"outline",className:"w-full",onClick:s,disabled:i,children:[i?p.jsx(Ya,{className:"w-4 h-4 mr-2 animate-spin"}):p.jsx(dr,{className:"w-4 h-4 mr-2"}),i?"Discovering…":"Retry discovery"]})]})},b8=e=>{switch(e.type){case"http":case"basic":return e.scheme==="basic"?f8:e.scheme==="bearer"?m8:ax;case"apiKey":return h8;case"oauth2":return f1;case"openIdConnect":return g8;default:return ax}},E8=e=>{switch(e){case"http":case"basic":return p.jsx(_C,{className:"w-4 h-4 mr-1.5"});case"apiKey":return p.jsx(vT,{className:"w-4 h-4 mr-1.5"});case"oauth2":return p.jsx(ho,{className:"w-4 h-4 mr-1.5"});case"openIdConnect":return p.jsx(jd,{className:"w-4 h-4 mr-1.5"});default:return p.jsx(gC,{className:"w-4 h-4 mr-1.5"})}},y8=({children:e,securitySchemes:t})=>{var l;const[n,r]=R.useState(!1),{credentials:a}=lt(),i=R.useRef({}),o=Object.entries(t),s=u=>{u&&(i.current={...a}),r(u)};return R.useEffect(()=>{if(!n)return;o.some(([d])=>a[d]&&a[d]!==i.current[d])&&(r(!1),He.success("Authenticated successfully"))},[a,n]),p.jsxs(oO,{open:n,onOpenChange:s,children:[p.jsx(sO,{asChild:!0,children:e}),p.jsxs(Fv,{className:"sm:max-w-[680px] flex flex-col max-h-[85vh] gap-0 p-0",onInteractOutside:u=>{var c,f;const d=(f=(c=u.detail)==null?void 0:c.originalEvent)==null?void 0:f.target;d!=null&&d.closest("[data-sonner-toaster]")&&u.preventDefault()},children:[p.jsxs(Mv,{className:"px-6 pt-6 pb-4 border-b shrink-0",children:[p.jsxs(Bv,{className:"flex items-center gap-2",children:[p.jsx(jd,{className:"h-5 w-5 text-primary shrink-0"}),"Available authorizations"]}),p.jsx(Uv,{className:"text-xs",children:"Configure authentication credentials for this API."})]}),p.jsxs(iS,{defaultValue:(l=o[0])==null?void 0:l[0],className:"flex flex-col flex-1 min-h-0",children:[o.length>1&&p.jsx("div",{className:"px-6 pt-4 shrink-0",children:p.jsx(mp,{className:"w-full h-auto flex flex-wrap gap-1 bg-muted p-1 rounded-lg",children:o.map(([u,d])=>{const c=!!a[u];return p.jsxs(hp,{value:u,className:"flex items-center gap-1.5 text-xs px-3 py-1.5 flex-1 min-w-0",children:[E8(d.type),p.jsx("span",{className:"truncate",children:u}),c&&p.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-500 shrink-0"})]},u)})})}),p.jsx("div",{className:"flex-1",children:o.map(([u,d])=>{const c=b8(d),f=!!a[u],m=o.find(([h])=>h!==u&&!!a[h]);return p.jsx(gp,{value:u,className:"m-0 px-6 py-5",children:!f&&m?p.jsxs("div",{className:"flex items-start gap-3 px-4 py-3.5 rounded-lg bg-muted border text-sm text-muted-foreground",children:[p.jsx(ho,{className:"h-4 w-4 shrink-0 mt-0.5"}),p.jsxs("span",{children:["Already authenticated via"," ",p.jsx("span",{className:"font-medium text-foreground",children:m[0]}),"."," ","Log out first to switch methods."]})]}):p.jsx(c,{scheme:d,schemeName:u})},u)})})]})]})]})},lr=R.forwardRef(({onClick:e,isLoading:t},n)=>p.jsxs(Qe,{ref:n,variant:"outline",className:"w-full p-2 border rounded-md border-green-500 text-green-500 hover:bg-green-500 hover:text-white disabled:opacity-60 disabled:pointer-events-none",onClick:e,disabled:t,children:[t?p.jsx(Ya,{className:"w-4 h-4 mr-2 animate-spin"}):p.jsx(ho,{className:"w-4 h-4 mr-2"}),t?"Authorizing…":"Authorize"]})),m1=({securitySchemes:e})=>{const{credentials:t}=lt();if(!(e&&Object.keys(e).length>0))return p.jsx("div",{className:"cursor-not-allowed w-full",children:p.jsxs(Qe,{variant:"secondary",className:"w-full p-2 border rounded-lg opacity-50 pointer-events-none",children:[p.jsx(ho,{className:"w-4 h-4 mr-2"}),"No Auth"]})});const r=Object.keys(e).some(a=>t[a]);return p.jsx(y8,{securitySchemes:e,children:r?p.jsxs(Qe,{className:"w-full p-2 rounded-md bg-green-500 hover:bg-green-600 text-white border-0",children:[p.jsx(bC,{className:"w-4 h-4 mr-2"}),"Authorized"]}):p.jsx(lr,{})})};var x8="Arrow",h1=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...i}=e;return p.jsx(et.svg,{...i,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});h1.displayName=x8;var T8=h1,Jb="Popper",[g1,b1]=cp(Jb),[v8,E1]=g1(Jb),y1=e=>{const{__scopePopper:t,children:n}=e,[r,a]=x.useState(null);return p.jsx(v8,{scope:t,anchor:r,onAnchorChange:a,children:n})};y1.displayName=Jb;var x1="PopperAnchor",T1=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,i=E1(x1,n),o=x.useRef(null),s=Bt(t,o);return x.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:p.jsx(et.div,{...a,ref:s})});T1.displayName=x1;var e0="PopperContent",[S8,A8]=g1(e0),v1=x.forwardRef((e,t)=>{var Q,J,oe,de,ie,$;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:h,...g}=e,b=E1(e0,n),[E,T]=x.useState(null),v=Bt(t,re=>T(re)),[S,w]=x.useState(null),A=Xd(S),_=(A==null?void 0:A.width)??0,D=(A==null?void 0:A.height)??0,I=r+(i!=="center"?"-"+i:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},M=Array.isArray(u)?u:[u],P=M.length>0,j={padding:O,boundary:M.filter(_8),altBoundary:P},{refs:z,floatingStyles:W,placement:H,isPositioned:X,middlewareData:Z}=$b({strategy:"fixed",placement:I,whileElementsMounted:(...re)=>Ub(...re,{animationFrame:m==="always"}),elements:{reference:b.anchor},middleware:[jb({mainAxis:a+D,alignmentAxis:o}),l&&Hb({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?zb():void 0,...j}),l&&Gb({...j}),Vb({...j,apply:({elements:re,rects:se,availableWidth:pe,availableHeight:ye})=>{const{width:be,height:Le}=se.reference,xe=re.floating.style;xe.setProperty("--radix-popper-available-width",`${pe}px`),xe.setProperty("--radix-popper-available-height",`${ye}px`),xe.setProperty("--radix-popper-anchor-width",`${be}px`),xe.setProperty("--radix-popper-anchor-height",`${Le}px`)}}),S&&qb({element:S,padding:s}),N8({arrowWidth:_,arrowHeight:D}),f&&Wb({strategy:"referenceHidden",...j})]}),[G,k]=w1(H),ae=Mt(h);ht(()=>{X&&(ae==null||ae())},[X,ae]);const V=(Q=Z.arrow)==null?void 0:Q.x,N=(J=Z.arrow)==null?void 0:J.y,te=((oe=Z.arrow)==null?void 0:oe.centerOffset)!==0,[U,K]=x.useState();return ht(()=>{E&&K(window.getComputedStyle(E).zIndex)},[E]),p.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:X?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[(de=Z.transformOrigin)==null?void 0:de.x,(ie=Z.transformOrigin)==null?void 0:ie.y].join(" "),...(($=Z.hide)==null?void 0:$.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(S8,{scope:n,placedSide:G,onArrowChange:w,arrowX:V,arrowY:N,shouldHideArrow:te,children:p.jsx(et.div,{"data-side":G,"data-align":k,...g,ref:v,style:{...g.style,animation:X?void 0:"none"}})})})});v1.displayName=e0;var S1="PopperArrow",w8={top:"bottom",right:"left",bottom:"top",left:"right"},A1=x.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,i=A8(S1,r),o=w8[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(T8,{...a,ref:n,style:{...a.style,display:"block"}})})});A1.displayName=S1;function _8(e){return e!==null}var N8=e=>({name:"transformOrigin",options:e,fn(t){var b,E,T;const{placement:n,rects:r,middlewareData:a}=t,o=((b=a.arrow)==null?void 0:b.centerOffset)!==0,s=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[u,d]=w1(n),c={start:"0%",center:"50%",end:"100%"}[d],f=(((E=a.arrow)==null?void 0:E.x)??0)+s/2,m=(((T=a.arrow)==null?void 0:T.y)??0)+l/2;let h="",g="";return u==="bottom"?(h=o?c:`${f}px`,g=`${-l}px`):u==="top"?(h=o?c:`${f}px`,g=`${r.floating.height+l}px`):u==="right"?(h=`${-l}px`,g=o?c:`${m}px`):u==="left"&&(h=`${r.floating.width+l}px`,g=o?c:`${m}px`),{data:{x:h,y:g}}}});function w1(e){const[t,n="center"]=e.split("-");return[t,n]}var C8=y1,_1=T1,k8=v1,I8=A1,t0="Popover",[N1,BW]=gr(t0,[b1]),Fo=b1(),[R8,vr]=N1(t0),C1=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:o=!1}=e,s=Fo(t),l=x.useRef(null),[u,d]=x.useState(!1),[c=!1,f]=cr({prop:r,defaultProp:a,onChange:i});return p.jsx(C8,{...s,children:p.jsx(R8,{scope:t,contentId:Cn(),triggerRef:l,open:c,onOpenChange:f,onOpenToggle:x.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:u,onCustomAnchorAdd:x.useCallback(()=>d(!0),[]),onCustomAnchorRemove:x.useCallback(()=>d(!1),[]),modal:o,children:n})})};C1.displayName=t0;var k1="PopoverAnchor",O8=x.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=vr(k1,n),i=Fo(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=a;return x.useEffect(()=>(o(),()=>s()),[o,s]),p.jsx(_1,{...i,...r,ref:t})});O8.displayName=k1;var I1="PopoverTrigger",R1=x.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=vr(I1,n),i=Fo(n),o=Bt(t,a.triggerRef),s=p.jsx(et.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":F1(a.open),...r,ref:o,onClick:Je(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?s:p.jsx(_1,{asChild:!0,...i,children:s})});R1.displayName=I1;var n0="PopoverPortal",[D8,L8]=N1(n0,{forceMount:void 0}),O1=e=>{const{__scopePopover:t,forceMount:n,children:r,container:a}=e,i=vr(n0,t);return p.jsx(D8,{scope:t,forceMount:n,children:p.jsx(br,{present:n||i.open,children:p.jsx(tp,{asChild:!0,container:a,children:r})})})};O1.displayName=n0;var Ga="PopoverContent",D1=x.forwardRef((e,t)=>{const n=L8(Ga,e.__scopePopover),{forceMount:r=n.forceMount,...a}=e,i=vr(Ga,e.__scopePopover);return p.jsx(br,{present:r||i.open,children:i.modal?p.jsx(P8,{...a,ref:t}):p.jsx(F8,{...a,ref:t})})});D1.displayName=Ga;var P8=x.forwardRef((e,t)=>{const n=vr(Ga,e.__scopePopover),r=x.useRef(null),a=Bt(t,r),i=x.useRef(!1);return x.useEffect(()=>{const o=r.current;if(o)return ul(o)},[]),p.jsx(ip,{as:Br,allowPinchZoom:!0,children:p.jsx(L1,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Je(e.onCloseAutoFocus,o=>{var s;o.preventDefault(),i.current||(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Je(e.onPointerDownOutside,o=>{const s=o.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0,u=s.button===2||l;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:Je(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),F8=x.forwardRef((e,t)=>{const n=vr(Ga,e.__scopePopover),r=x.useRef(!1),a=x.useRef(!1);return p.jsx(L1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,s;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const o=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})}),L1=x.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:d,...c}=e,f=vr(Ga,n),m=Fo(n);return np(),p.jsx(ep,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:p.jsx(Jd,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:d,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:p.jsx(k8,{"data-state":F1(f.open),role:"dialog",id:f.contentId,...m,...c,ref:t,style:{...c.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),P1="PopoverClose",M8=x.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=vr(P1,n);return p.jsx(et.button,{type:"button",...r,ref:t,onClick:Je(e.onClick,()=>a.onOpenChange(!1))})});M8.displayName=P1;var B8="PopoverArrow",U8=x.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,a=Fo(n);return p.jsx(I8,{...a,...r,ref:t})});U8.displayName=B8;function F1(e){return e?"open":"closed"}var $8=C1,j8=R1,H8=O1,M1=D1;const Zs=$8,Qs=j8,ao=x.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},a)=>p.jsx(H8,{children:p.jsx(M1,{ref:a,align:t,sideOffset:n,className:Ee("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r})}));ao.displayName=M1.displayName;var ix=1,z8=.9,G8=.8,V8=.17,ic=.1,oc=.999,W8=.9999,q8=.99,Y8=/[\\\/_+.#"@\[\(\{&]/,K8=/[\\\/_+.#"@\[\(\{&]/g,X8=/[\s-]/,B1=/[\s-]/g;function dd(e,t,n,r,a,i,o){if(i===t.length)return a===e.length?ix:q8;var s=`${a},${i}`;if(o[s]!==void 0)return o[s];for(var l=r.charAt(i),u=n.indexOf(l,a),d=0,c,f,m,h;u>=0;)c=dd(e,t,n,r,u+1,i+1,o),c>d&&(u===a?c*=ix:Y8.test(e.charAt(u-1))?(c*=G8,m=e.slice(a,u-1).match(K8),m&&a>0&&(c*=Math.pow(oc,m.length))):X8.test(e.charAt(u-1))?(c*=z8,h=e.slice(a,u-1).match(B1),h&&a>0&&(c*=Math.pow(oc,h.length))):(c*=V8,a>0&&(c*=Math.pow(oc,u-a))),e.charAt(u)!==t.charAt(i)&&(c*=W8)),(c<ic&&n.charAt(u-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(u-1)!==r.charAt(i))&&(f=dd(e,t,n,r,u+1,i+2,o),f*ic>c&&(c=f*ic)),c>d&&(d=c),u=n.indexOf(l,u+1);return o[s]=d,d}function ox(e){return e.toLowerCase().replace(B1," ")}function Z8(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,dd(e,t,ox(e),ox(t),0,0,{})}function Da(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function Q8(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function U1(...e){return t=>e.forEach(n=>Q8(n,t))}function Mo(...e){return R.useCallback(U1(...e),e)}function J8(e,t=[]){let n=[];function r(i,o){const s=R.createContext(o),l=n.length;n=[...n,o];function u(c){const{scope:f,children:m,...h}=c,g=(f==null?void 0:f[e][l])||s,b=R.useMemo(()=>h,Object.values(h));return R.createElement(g.Provider,{value:b},m)}function d(c,f){const m=(f==null?void 0:f[e][l])||s,h=R.useContext(m);if(h)return h;if(o!==void 0)return o;throw new Error(`\`${c}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",[u,d]}const a=()=>{const i=n.map(o=>R.createContext(o));return function(s){const l=(s==null?void 0:s[e])||i;return R.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return a.scopeName=e,[r,eH(a,...t)]}function eH(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(i){const o=r.reduce((s,{useScope:l,scopeName:u})=>{const c=l(i)[`__scope${u}`];return{...s,...c}},{});return R.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}const pd=globalThis!=null&&globalThis.document?R.useLayoutEffect:()=>{},tH=x.useId||(()=>{});let nH=0;function sc(e){const[t,n]=x.useState(tH());return pd(()=>{e||n(r=>r??String(nH++))},[e]),e||(t?`radix-${t}`:"")}function Vr(e){const t=R.useRef(e);return R.useEffect(()=>{t.current=e}),R.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function rH({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=aH({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:r,s=Vr(n),l=R.useCallback(u=>{if(i){const c=typeof u=="function"?u(e):u;c!==e&&s(c)}else a(u)},[i,e,a,s]);return[o,l]}function aH({defaultProp:e,onChange:t}){const n=R.useState(e),[r]=n,a=R.useRef(r),i=Vr(t);return R.useEffect(()=>{a.current!==r&&(i(r),a.current=r)},[r,a,i]),n}const r0=R.forwardRef((e,t)=>{const{children:n,...r}=e,a=R.Children.toArray(n),i=a.find(oH);if(i){const o=i.props.children,s=a.map(l=>l===i?R.Children.count(o)>1?R.Children.only(null):R.isValidElement(o)?o.props.children:null:l);return R.createElement(fd,nt({},r,{ref:t}),R.isValidElement(o)?R.cloneElement(o,void 0,s):null)}return R.createElement(fd,nt({},r,{ref:t}),n)});r0.displayName="Slot";const fd=R.forwardRef((e,t)=>{const{children:n,...r}=e;return R.isValidElement(n)?R.cloneElement(n,{...sH(r,n.props),ref:t?U1(t,n.ref):n.ref}):R.Children.count(n)>1?R.Children.only(null):null});fd.displayName="SlotClone";const iH=({children:e})=>R.createElement(R.Fragment,null,e);function oH(e){return R.isValidElement(e)&&e.type===iH}function sH(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...s)=>{i(...s),a(...s)}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}const lH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],on=lH.reduce((e,t)=>{const n=R.forwardRef((r,a)=>{const{asChild:i,...o}=r,s=i?r0:t;return R.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),R.createElement(s,nt({},o,{ref:a}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function uH(e,t){e&&hr.flushSync(()=>e.dispatchEvent(t))}function cH(e,t=globalThis==null?void 0:globalThis.document){const n=Vr(e);R.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const md="dismissableLayer.update",dH="dismissableLayer.pointerDownOutside",pH="dismissableLayer.focusOutside";let sx;const fH=R.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mH=R.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...u}=e,d=R.useContext(fH),[c,f]=R.useState(null),m=(n=c==null?void 0:c.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,h]=R.useState({}),g=Mo(t,D=>f(D)),b=Array.from(d.layers),[E]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),T=b.indexOf(E),v=c?b.indexOf(c):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,w=v>=T,A=hH(D=>{const I=D.target,O=[...d.branches].some(M=>M.contains(I));!w||O||(i==null||i(D),s==null||s(D),D.defaultPrevented||l==null||l())},m),_=gH(D=>{const I=D.target;[...d.branches].some(M=>M.contains(I))||(o==null||o(D),s==null||s(D),D.defaultPrevented||l==null||l())},m);return cH(D=>{v===d.layers.size-1&&(a==null||a(D),!D.defaultPrevented&&l&&(D.preventDefault(),l()))},m),R.useEffect(()=>{if(c)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(sx=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(c)),d.layers.add(c),lx(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=sx)}},[c,m,r,d]),R.useEffect(()=>()=>{c&&(d.layers.delete(c),d.layersWithOutsidePointerEventsDisabled.delete(c),lx())},[c,d]),R.useEffect(()=>{const D=()=>h({});return document.addEventListener(md,D),()=>document.removeEventListener(md,D)},[]),R.createElement(on.div,nt({},u,{ref:g,style:{pointerEvents:S?w?"auto":"none":void 0,...e.style},onFocusCapture:Da(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Da(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Da(e.onPointerDownCapture,A.onPointerDownCapture)}))});function hH(e,t=globalThis==null?void 0:globalThis.document){const n=Vr(e),r=R.useRef(!1),a=R.useRef(()=>{});return R.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){$1(dH,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=l,t.addEventListener("click",a.current,{once:!0})):l()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function gH(e,t=globalThis==null?void 0:globalThis.document){const n=Vr(e),r=R.useRef(!1);return R.useEffect(()=>{const a=i=>{i.target&&!r.current&&$1(pH,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function lx(){const e=new CustomEvent(md);document.dispatchEvent(e)}function $1(e,t,n,{discrete:r}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?uH(a,i):a.dispatchEvent(i)}const lc="focusScope.autoFocusOnMount",uc="focusScope.autoFocusOnUnmount",ux={bubbles:!1,cancelable:!0},bH=R.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=e,[s,l]=R.useState(null),u=Vr(a),d=Vr(i),c=R.useRef(null),f=Mo(t,g=>l(g)),m=R.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;R.useEffect(()=>{if(r){let g=function(v){if(m.paused||!s)return;const S=v.target;s.contains(S)?c.current=S:nr(c.current,{select:!0})},b=function(v){if(m.paused||!s)return;const S=v.relatedTarget;S!==null&&(s.contains(S)||nr(c.current,{select:!0}))},E=function(v){if(document.activeElement===document.body)for(const w of v)w.removedNodes.length>0&&nr(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const T=new MutationObserver(E);return s&&T.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),T.disconnect()}}},[r,s,m.paused]),R.useEffect(()=>{if(s){dx.add(m);const g=document.activeElement;if(!s.contains(g)){const E=new CustomEvent(lc,ux);s.addEventListener(lc,u),s.dispatchEvent(E),E.defaultPrevented||(EH(SH(j1(s)),{select:!0}),document.activeElement===g&&nr(s))}return()=>{s.removeEventListener(lc,u),setTimeout(()=>{const E=new CustomEvent(uc,ux);s.addEventListener(uc,d),s.dispatchEvent(E),E.defaultPrevented||nr(g??document.body,{select:!0}),s.removeEventListener(uc,d),dx.remove(m)},0)}}},[s,u,d,m]);const h=R.useCallback(g=>{if(!n&&!r||m.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,E=document.activeElement;if(b&&E){const T=g.currentTarget,[v,S]=yH(T);v&&S?!g.shiftKey&&E===S?(g.preventDefault(),n&&nr(v,{select:!0})):g.shiftKey&&E===v&&(g.preventDefault(),n&&nr(S,{select:!0})):E===T&&g.preventDefault()}},[n,r,m.paused]);return R.createElement(on.div,nt({tabIndex:-1},o,{ref:f,onKeyDown:h}))});function EH(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(nr(r,{select:t}),document.activeElement!==n)return}function yH(e){const t=j1(e),n=cx(t,e),r=cx(t.reverse(),e);return[n,r]}function j1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function cx(e,t){for(const n of e)if(!xH(n,{upTo:t}))return n}function xH(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function TH(e){return e instanceof HTMLInputElement&&"select"in e}function nr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&TH(e)&&t&&e.select()}}const dx=vH();function vH(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=px(e,t),e.unshift(t)},remove(t){var n;e=px(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function px(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function SH(e){return e.filter(t=>t.tagName!=="A")}const AH=R.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...a}=e;return r?hr.createPortal(R.createElement(on.div,nt({},a,{ref:t})),r):null});function wH(e,t){return R.useReducer((n,r)=>{const a=t[n][r];return a??n},e)}const Kl=e=>{const{present:t,children:n}=e,r=_H(t),a=typeof n=="function"?n({present:r.isPresent}):R.Children.only(n),i=Mo(r.ref,a.ref);return typeof n=="function"||r.isPresent?R.cloneElement(a,{ref:i}):null};Kl.displayName="Presence";function _H(e){const[t,n]=R.useState(),r=R.useRef({}),a=R.useRef(e),i=R.useRef("none"),o=e?"mounted":"unmounted",[s,l]=wH(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return R.useEffect(()=>{const u=ds(r.current);i.current=s==="mounted"?u:"none"},[s]),pd(()=>{const u=r.current,d=a.current;if(d!==e){const f=i.current,m=ds(u);e?l("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(d&&f!==m?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,l]),pd(()=>{if(t){const u=c=>{const m=ds(r.current).includes(c.animationName);c.target===t&&m&&hr.flushSync(()=>l("ANIMATION_END"))},d=c=>{c.target===t&&(i.current=ds(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:R.useCallback(u=>{u&&(r.current=getComputedStyle(u)),n(u)},[])}}function ds(e){return(e==null?void 0:e.animationName)||"none"}let cc=0;function NH(){R.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:fx()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:fx()),cc++,()=>{cc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),cc--}},[])}function fx(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var H1=iv(),dc=function(){},Xl=x.forwardRef(function(e,t){var n=x.useRef(null),r=x.useState({onScrollCapture:dc,onWheelCapture:dc,onTouchMoveCapture:dc}),a=r[0],i=r[1],o=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,c=e.shards,f=e.sideCar,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,b=e.as,E=b===void 0?"div":b,T=go(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),v=f,S=av([n,t]),w=Ke(Ke({},T),a);return x.createElement(x.Fragment,null,d&&x.createElement(v,{sideCar:H1,removeScrollBar:u,shards:c,noIsolation:m,inert:h,setCallbacks:i,allowPinchZoom:!!g,lockRef:n}),o?x.cloneElement(x.Children.only(s),Ke(Ke({},w),{ref:S})):x.createElement(E,Ke({},w,{className:l,ref:S}),s))});Xl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Xl.classNames={fullWidth:Li,zeroRight:Di};var hd=!1;if(typeof window<"u")try{var ps=Object.defineProperty({},"passive",{get:function(){return hd=!0,!0}});window.addEventListener("test",ps,ps),window.removeEventListener("test",ps,ps)}catch{hd=!1}var fa=hd?{passive:!1}:!1,CH=function(e){return e.tagName==="TEXTAREA"},z1=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!CH(e)&&n[t]==="visible")},kH=function(e){return z1(e,"overflowY")},IH=function(e){return z1(e,"overflowX")},mx=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=G1(e,n);if(r){var a=V1(e,n),i=a[1],o=a[2];if(i>o)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},RH=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},OH=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},G1=function(e,t){return e==="v"?kH(t):IH(t)},V1=function(e,t){return e==="v"?RH(t):OH(t)},DH=function(e,t){return e==="h"&&t==="rtl"?-1:1},LH=function(e,t,n,r,a){var i=DH(e,window.getComputedStyle(t).direction),o=i*r,s=n.target,l=t.contains(s),u=!1,d=o>0,c=0,f=0;do{var m=V1(e,s),h=m[0],g=m[1],b=m[2],E=g-b-i*h;(h||E)&&G1(e,s)&&(c+=E,f+=h),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&(c===0||!a)||!d&&(f===0||!a))&&(u=!0),u},fs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hx=function(e){return[e.deltaX,e.deltaY]},gx=function(e){return e&&"current"in e?e.current:e},PH=function(e,t){return e[0]===t[0]&&e[1]===t[1]},FH=function(e){return`
|
|
356
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
357
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
358
|
+
`)},MH=0,ma=[];function BH(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),a=x.useState(MH++)[0],i=x.useState(function(){return ap()})[0],o=x.useRef(e);x.useEffect(function(){o.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var g=rp([e.lockRef.current],(e.shards||[]).map(gx),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=x.useCallback(function(g,b){if("touches"in g&&g.touches.length===2)return!o.current.allowPinchZoom;var E=fs(g),T=n.current,v="deltaX"in g?g.deltaX:T[0]-E[0],S="deltaY"in g?g.deltaY:T[1]-E[1],w,A=g.target,_=Math.abs(v)>Math.abs(S)?"h":"v";if("touches"in g&&_==="h"&&A.type==="range")return!1;var D=mx(_,A);if(!D)return!0;if(D?w=_:(w=_==="v"?"h":"v",D=mx(_,A)),!D)return!1;if(!r.current&&"changedTouches"in g&&(v||S)&&(r.current=w),!w)return!0;var I=r.current||w;return LH(I,b,g,I==="h"?v:S,!0)},[]),l=x.useCallback(function(g){var b=g;if(!(!ma.length||ma[ma.length-1]!==i)){var E="deltaY"in b?hx(b):fs(b),T=t.current.filter(function(w){return w.name===b.type&&w.target===b.target&&PH(w.delta,E)})[0];if(T&&T.should){b.cancelable&&b.preventDefault();return}if(!T){var v=(o.current.shards||[]).map(gx).filter(Boolean).filter(function(w){return w.contains(b.target)}),S=v.length>0?s(b,v[0]):!o.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),u=x.useCallback(function(g,b,E,T){var v={name:g,delta:b,target:E,should:T};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(S){return S!==v})},1)},[]),d=x.useCallback(function(g){n.current=fs(g),r.current=void 0},[]),c=x.useCallback(function(g){u(g.type,hx(g),g.target,s(g,e.lockRef.current))},[]),f=x.useCallback(function(g){u(g.type,fs(g),g.target,s(g,e.lockRef.current))},[]);x.useEffect(function(){return ma.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:f}),document.addEventListener("wheel",l,fa),document.addEventListener("touchmove",l,fa),document.addEventListener("touchstart",d,fa),function(){ma=ma.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,fa),document.removeEventListener("touchmove",l,fa),document.removeEventListener("touchstart",d,fa)}},[]);var m=e.removeScrollBar,h=e.inert;return x.createElement(x.Fragment,null,h?x.createElement(i,{styles:FH(a)}):null,m?x.createElement(cv,{gapMode:"margin"}):null)}const UH=sv(H1,BH);var W1=x.forwardRef(function(e,t){return x.createElement(Xl,Ke({},e,{ref:t,sideCar:UH}))});W1.classNames=Xl.classNames;const q1="Dialog",[Y1,UW]=J8(q1),[$H,oa]=Y1(q1),jH=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:o=!0}=e,s=R.useRef(null),l=R.useRef(null),[u=!1,d]=rH({prop:r,defaultProp:a,onChange:i});return R.createElement($H,{scope:t,triggerRef:s,contentRef:l,contentId:sc(),titleId:sc(),descriptionId:sc(),open:u,onOpenChange:d,onOpenToggle:R.useCallback(()=>d(c=>!c),[d]),modal:o},n)},K1="DialogPortal",[HH,X1]=Y1(K1,{forceMount:void 0}),zH=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,i=oa(K1,t);return R.createElement(HH,{scope:t,forceMount:n},R.Children.map(r,o=>R.createElement(Kl,{present:n||i.open},R.createElement(AH,{asChild:!0,container:a},o))))},gd="DialogOverlay",GH=R.forwardRef((e,t)=>{const n=X1(gd,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=oa(gd,e.__scopeDialog);return i.modal?R.createElement(Kl,{present:r||i.open},R.createElement(VH,nt({},a,{ref:t}))):null}),VH=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=oa(gd,n);return R.createElement(W1,{as:r0,allowPinchZoom:!0,shards:[a.contentRef]},R.createElement(on.div,nt({"data-state":Q1(a.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),io="DialogContent",WH=R.forwardRef((e,t)=>{const n=X1(io,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=oa(io,e.__scopeDialog);return R.createElement(Kl,{present:r||i.open},i.modal?R.createElement(qH,nt({},a,{ref:t})):R.createElement(YH,nt({},a,{ref:t})))}),qH=R.forwardRef((e,t)=>{const n=oa(io,e.__scopeDialog),r=R.useRef(null),a=Mo(t,n.contentRef,r);return R.useEffect(()=>{const i=r.current;if(i)return ul(i)},[]),R.createElement(Z1,nt({},e,{ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Da(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)===null||o===void 0||o.focus()}),onPointerDownOutside:Da(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,s=o.button===0&&o.ctrlKey===!0;(o.button===2||s)&&i.preventDefault()}),onFocusOutside:Da(e.onFocusOutside,i=>i.preventDefault())}))}),YH=R.forwardRef((e,t)=>{const n=oa(io,e.__scopeDialog),r=R.useRef(!1),a=R.useRef(!1);return R.createElement(Z1,nt({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o;if((o=e.onCloseAutoFocus)===null||o===void 0||o.call(e,i),!i.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}r.current=!1,a.current=!1},onInteractOutside:i=>{var o,s;(o=e.onInteractOutside)===null||o===void 0||o.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=i.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(l))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}}))}),Z1=R.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,...o}=e,s=oa(io,n),l=R.useRef(null),u=Mo(t,l);return NH(),R.createElement(R.Fragment,null,R.createElement(bH,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i},R.createElement(mH,nt({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Q1(s.open)},o,{ref:u,onDismiss:()=>s.onOpenChange(!1)}))),!1)});function Q1(e){return e?"open":"closed"}const KH=jH,XH=zH,ZH=GH,QH=WH;var vi='[cmdk-group=""]',pc='[cmdk-group-items=""]',JH='[cmdk-group-heading=""]',a0='[cmdk-item=""]',bx=`${a0}:not([aria-disabled="true"])`,bd="cmdk-item-select",Dr="data-value",e9=(e,t,n)=>Z8(e,t,n),J1=x.createContext(void 0),Bo=()=>x.useContext(J1),e_=x.createContext(void 0),i0=()=>x.useContext(e_),t_=x.createContext(void 0),n_=x.forwardRef((e,t)=>{let n=Ta(()=>{var V,N;return{search:"",value:(N=(V=e.value)!=null?V:e.defaultValue)!=null?N:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=Ta(()=>new Set),a=Ta(()=>new Map),i=Ta(()=>new Map),o=Ta(()=>new Set),s=r_(e),{label:l,children:u,value:d,onValueChange:c,filter:f,shouldFilter:m,loop:h,disablePointerSelection:g=!1,vimBindings:b=!0,...E}=e,T=x.useId(),v=x.useId(),S=x.useId(),w=x.useRef(null),A=d9();Wr(()=>{if(d!==void 0){let V=d.trim();n.current.value=V,_.emit()}},[d]),Wr(()=>{A(6,j)},[]);let _=x.useMemo(()=>({subscribe:V=>(o.current.add(V),()=>o.current.delete(V)),snapshot:()=>n.current,setState:(V,N,te)=>{var U,K,Q;if(!Object.is(n.current[V],N)){if(n.current[V]=N,V==="search")P(),O(),A(1,M);else if(V==="value"&&(te||A(5,j),((U=s.current)==null?void 0:U.value)!==void 0)){let J=N??"";(Q=(K=s.current).onValueChange)==null||Q.call(K,J);return}_.emit()}},emit:()=>{o.current.forEach(V=>V())}}),[]),D=x.useMemo(()=>({value:(V,N,te)=>{var U;N!==((U=i.current.get(V))==null?void 0:U.value)&&(i.current.set(V,{value:N,keywords:te}),n.current.filtered.items.set(V,I(N,te)),A(2,()=>{O(),_.emit()}))},item:(V,N)=>(r.current.add(V),N&&(a.current.has(N)?a.current.get(N).add(V):a.current.set(N,new Set([V]))),A(3,()=>{P(),O(),n.current.value||M(),_.emit()}),()=>{i.current.delete(V),r.current.delete(V),n.current.filtered.items.delete(V);let te=z();A(4,()=>{P(),(te==null?void 0:te.getAttribute("id"))===V&&M(),_.emit()})}),group:V=>(a.current.has(V)||a.current.set(V,new Set),()=>{i.current.delete(V),a.current.delete(V)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],disablePointerSelection:g,listId:T,inputId:S,labelId:v,listInnerRef:w}),[]);function I(V,N){var te,U;let K=(U=(te=s.current)==null?void 0:te.filter)!=null?U:e9;return V?K(V,n.current.search,N):0}function O(){if(!n.current.search||s.current.shouldFilter===!1)return;let V=n.current.filtered.items,N=[];n.current.filtered.groups.forEach(U=>{let K=a.current.get(U),Q=0;K.forEach(J=>{let oe=V.get(J);Q=Math.max(oe,Q)}),N.push([U,Q])});let te=w.current;W().sort((U,K)=>{var Q,J;let oe=U.getAttribute("id"),de=K.getAttribute("id");return((Q=V.get(de))!=null?Q:0)-((J=V.get(oe))!=null?J:0)}).forEach(U=>{let K=U.closest(pc);K?K.appendChild(U.parentElement===K?U:U.closest(`${pc} > *`)):te.appendChild(U.parentElement===te?U:U.closest(`${pc} > *`))}),N.sort((U,K)=>K[1]-U[1]).forEach(U=>{let K=w.current.querySelector(`${vi}[${Dr}="${encodeURIComponent(U[0])}"]`);K==null||K.parentElement.appendChild(K)})}function M(){let V=W().find(te=>te.getAttribute("aria-disabled")!=="true"),N=V==null?void 0:V.getAttribute(Dr);_.setState("value",N||void 0)}function P(){var V,N,te,U;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let K=0;for(let Q of r.current){let J=(N=(V=i.current.get(Q))==null?void 0:V.value)!=null?N:"",oe=(U=(te=i.current.get(Q))==null?void 0:te.keywords)!=null?U:[],de=I(J,oe);n.current.filtered.items.set(Q,de),de>0&&K++}for(let[Q,J]of a.current)for(let oe of J)if(n.current.filtered.items.get(oe)>0){n.current.filtered.groups.add(Q);break}n.current.filtered.count=K}function j(){var V,N,te;let U=z();U&&(((V=U.parentElement)==null?void 0:V.firstChild)===U&&((te=(N=U.closest(vi))==null?void 0:N.querySelector(JH))==null||te.scrollIntoView({block:"nearest"})),U.scrollIntoView({block:"nearest"}))}function z(){var V;return(V=w.current)==null?void 0:V.querySelector(`${a0}[aria-selected="true"]`)}function W(){var V;return Array.from((V=w.current)==null?void 0:V.querySelectorAll(bx))}function H(V){let N=W()[V];N&&_.setState("value",N.getAttribute(Dr))}function X(V){var N;let te=z(),U=W(),K=U.findIndex(J=>J===te),Q=U[K+V];(N=s.current)!=null&&N.loop&&(Q=K+V<0?U[U.length-1]:K+V===U.length?U[0]:U[K+V]),Q&&_.setState("value",Q.getAttribute(Dr))}function Z(V){let N=z(),te=N==null?void 0:N.closest(vi),U;for(;te&&!U;)te=V>0?u9(te,vi):c9(te,vi),U=te==null?void 0:te.querySelector(bx);U?_.setState("value",U.getAttribute(Dr)):X(V)}let G=()=>H(W().length-1),k=V=>{V.preventDefault(),V.metaKey?G():V.altKey?Z(1):X(1)},ae=V=>{V.preventDefault(),V.metaKey?H(0):V.altKey?Z(-1):X(-1)};return x.createElement(on.div,{ref:t,tabIndex:-1,...E,"cmdk-root":"",onKeyDown:V=>{var N;if((N=E.onKeyDown)==null||N.call(E,V),!V.defaultPrevented)switch(V.key){case"n":case"j":{b&&V.ctrlKey&&k(V);break}case"ArrowDown":{k(V);break}case"p":case"k":{b&&V.ctrlKey&&ae(V);break}case"ArrowUp":{ae(V);break}case"Home":{V.preventDefault(),H(0);break}case"End":{V.preventDefault(),G();break}case"Enter":if(!V.nativeEvent.isComposing&&V.keyCode!==229){V.preventDefault();let te=z();if(te){let U=new Event(bd);te.dispatchEvent(U)}}}}},x.createElement("label",{"cmdk-label":"",htmlFor:D.inputId,id:D.labelId,style:f9},l),Zl(e,V=>x.createElement(e_.Provider,{value:_},x.createElement(J1.Provider,{value:D},V))))}),t9=x.forwardRef((e,t)=>{var n,r;let a=x.useId(),i=x.useRef(null),o=x.useContext(t_),s=Bo(),l=r_(e),u=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:o==null?void 0:o.forceMount;Wr(()=>{if(!u)return s.item(a,o==null?void 0:o.id)},[u]);let d=a_(a,i,[e.value,e.children,i],e.keywords),c=i0(),f=qr(A=>A.value&&A.value===d.current),m=qr(A=>u||s.filter()===!1?!0:A.search?A.filtered.items.get(a)>0:!0);x.useEffect(()=>{let A=i.current;if(!(!A||e.disabled))return A.addEventListener(bd,h),()=>A.removeEventListener(bd,h)},[m,e.onSelect,e.disabled]);function h(){var A,_;g(),(_=(A=l.current).onSelect)==null||_.call(A,d.current)}function g(){c.setState("value",d.current,!0)}if(!m)return null;let{disabled:b,value:E,onSelect:T,forceMount:v,keywords:S,...w}=e;return x.createElement(on.div,{ref:oo([i,t]),...w,id:a,"cmdk-item":"",role:"option","aria-disabled":!!b,"aria-selected":!!f,"data-disabled":!!b,"data-selected":!!f,onPointerMove:b||s.disablePointerSelection?void 0:g,onClick:b?void 0:h},e.children)}),n9=x.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:a,...i}=e,o=x.useId(),s=x.useRef(null),l=x.useRef(null),u=x.useId(),d=Bo(),c=qr(m=>a||d.filter()===!1?!0:m.search?m.filtered.groups.has(o):!0);Wr(()=>d.group(o),[]),a_(o,s,[e.value,e.heading,l]);let f=x.useMemo(()=>({id:o,forceMount:a}),[a]);return x.createElement(on.div,{ref:oo([s,t]),...i,"cmdk-group":"",role:"presentation",hidden:c?void 0:!0},n&&x.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),Zl(e,m=>x.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},x.createElement(t_.Provider,{value:f},m))))}),r9=x.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,a=x.useRef(null),i=qr(o=>!o.search);return!n&&!i?null:x.createElement(on.div,{ref:oo([a,t]),...r,"cmdk-separator":"",role:"separator"})}),a9=x.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,a=e.value!=null,i=i0(),o=qr(d=>d.search),s=qr(d=>d.value),l=Bo(),u=x.useMemo(()=>{var d;let c=(d=l.listInnerRef.current)==null?void 0:d.querySelector(`${a0}[${Dr}="${encodeURIComponent(s)}"]`);return c==null?void 0:c.getAttribute("id")},[]);return x.useEffect(()=>{e.value!=null&&i.setState("search",e.value)},[e.value]),x.createElement(on.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":u,id:l.inputId,type:"text",value:a?e.value:o,onChange:d=>{a||i.setState("search",d.target.value),n==null||n(d.target.value)}})}),i9=x.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...a}=e,i=x.useRef(null),o=x.useRef(null),s=Bo();return x.useEffect(()=>{if(o.current&&i.current){let l=o.current,u=i.current,d,c=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let f=l.offsetHeight;u.style.setProperty("--cmdk-list-height",f.toFixed(1)+"px")})});return c.observe(l),()=>{cancelAnimationFrame(d),c.unobserve(l)}}},[]),x.createElement(on.div,{ref:oo([i,t]),...a,"cmdk-list":"",role:"listbox","aria-label":r,id:s.listId},Zl(e,l=>x.createElement("div",{ref:oo([o,s.listInnerRef]),"cmdk-list-sizer":""},l)))}),o9=x.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:i,container:o,...s}=e;return x.createElement(KH,{open:n,onOpenChange:r},x.createElement(XH,{container:o},x.createElement(ZH,{"cmdk-overlay":"",className:a}),x.createElement(QH,{"aria-label":e.label,"cmdk-dialog":"",className:i},x.createElement(n_,{ref:t,...s}))))}),s9=x.forwardRef((e,t)=>qr(n=>n.filtered.count===0)?x.createElement(on.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),l9=x.forwardRef((e,t)=>{let{progress:n,children:r,label:a="Loading...",...i}=e;return x.createElement(on.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},Zl(e,o=>x.createElement("div",{"aria-hidden":!0},o)))}),zt=Object.assign(n_,{List:i9,Item:t9,Input:a9,Group:n9,Separator:r9,Dialog:o9,Empty:s9,Loading:l9});function u9(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function c9(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function r_(e){let t=x.useRef(e);return Wr(()=>{t.current=e}),t}var Wr=typeof window>"u"?x.useEffect:x.useLayoutEffect;function Ta(e){let t=x.useRef();return t.current===void 0&&(t.current=e()),t}function oo(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}function qr(e){let t=i0(),n=()=>e(t.snapshot());return x.useSyncExternalStore(t.subscribe,n,n)}function a_(e,t,n,r=[]){let a=x.useRef(),i=Bo();return Wr(()=>{var o;let s=(()=>{var u;for(let d of n){if(typeof d=="string")return d.trim();if(typeof d=="object"&&"current"in d)return d.current?(u=d.current.textContent)==null?void 0:u.trim():a.current}})(),l=r.map(u=>u.trim());i.value(e,s,l),(o=t.current)==null||o.setAttribute(Dr,s),a.current=s}),a}var d9=()=>{let[e,t]=x.useState(),n=Ta(()=>new Map);return Wr(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,a)=>{n.current.set(r,a),t({})}};function p9(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Zl({asChild:e,children:t},n){return e&&x.isValidElement(t)?x.cloneElement(p9(t),{ref:t.ref},n(t.props.children)):n(t)}var f9={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Ql=x.forwardRef(({className:e,...t},n)=>p.jsx(zt,{ref:n,className:Ee("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Ql.displayName=zt.displayName;const i_=x.forwardRef(({className:e,...t},n)=>p.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[p.jsx(wT,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),p.jsx(zt.Input,{ref:n,className:Ee("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));i_.displayName=zt.Input.displayName;const Jl=x.forwardRef(({className:e,...t},n)=>p.jsx(zt.List,{ref:n,className:Ee("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Jl.displayName=zt.List.displayName;const o0=x.forwardRef((e,t)=>p.jsx(zt.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));o0.displayName=zt.Empty.displayName;const eu=x.forwardRef(({className:e,...t},n)=>p.jsx(zt.Group,{ref:n,className:Ee("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));eu.displayName=zt.Group.displayName;const m9=x.forwardRef(({className:e,...t},n)=>p.jsx(zt.Separator,{ref:n,className:Ee("-mx-1 h-px bg-border",e),...t}));m9.displayName=zt.Separator.displayName;const tu=x.forwardRef(({className:e,...t},n)=>p.jsx(zt.Item,{ref:n,className:Ee("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));tu.displayName=zt.Item.displayName;function Ex(e,[t,n]){return Math.min(n,Math.max(t,e))}var so=x.forwardRef((e,t)=>{const{children:n,...r}=e,a=x.Children.toArray(n),i=a.find(g9);if(i){const o=i.props.children,s=a.map(l=>l===i?x.Children.count(o)>1?x.Children.only(null):x.isValidElement(o)?o.props.children:null:l);return p.jsx(Ed,{...r,ref:t,children:x.isValidElement(o)?x.cloneElement(o,void 0,s):null})}return p.jsx(Ed,{...r,ref:t,children:n})});so.displayName="Slot";var Ed=x.forwardRef((e,t)=>{const{children:n,...r}=e;if(x.isValidElement(n)){const a=E9(n),i=b9(r,n.props);return n.type!==x.Fragment&&(i.ref=t?Kd(t,a):a),x.cloneElement(n,i)}return x.Children.count(n)>1?x.Children.only(null):null});Ed.displayName="SlotClone";var h9=({children:e})=>p.jsx(p.Fragment,{children:e});function g9(e){return x.isValidElement(e)&&e.type===h9}function b9(e,t){const n={...t};for(const r in t){const a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...s)=>{i(...s),a(...s)}:a&&(n[r]=a):r==="style"?n[r]={...a,...i}:r==="className"&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}function E9(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function y9(e){const t=e+"CollectionProvider",[n,r]=gr(t),[a,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=m=>{const{scope:h,children:g}=m,b=R.useRef(null),E=R.useRef(new Map).current;return p.jsx(a,{scope:h,itemMap:E,collectionRef:b,children:g})};o.displayName=t;const s=e+"CollectionSlot",l=R.forwardRef((m,h)=>{const{scope:g,children:b}=m,E=i(s,g),T=xt(h,E.collectionRef);return p.jsx(so,{ref:T,children:b})});l.displayName=s;const u=e+"CollectionItemSlot",d="data-radix-collection-item",c=R.forwardRef((m,h)=>{const{scope:g,children:b,...E}=m,T=R.useRef(null),v=xt(h,T),S=i(u,g);return R.useEffect(()=>(S.itemMap.set(T,{ref:T,...E}),()=>void S.itemMap.delete(T))),p.jsx(so,{[d]:"",ref:v,children:b})});c.displayName=u;function f(m){const h=i(e+"CollectionConsumer",m);return R.useCallback(()=>{const b=h.collectionRef.current;if(!b)return[];const E=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((S,w)=>E.indexOf(S.ref.current)-E.indexOf(w.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:o,Slot:l,ItemSlot:c},f,r]}var x9=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],pt=x9.reduce((e,t)=>{const n=x.forwardRef((r,a)=>{const{asChild:i,...o}=r,s=i?so:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(s,{...o,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function T9(e,t){e&&Xr.flushSync(()=>e.dispatchEvent(t))}var v9="DismissableLayer",yd="dismissableLayer.update",S9="dismissableLayer.pointerDownOutside",A9="dismissableLayer.focusOutside",yx,o_=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),s_=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:o,onDismiss:s,...l}=e,u=x.useContext(o_),[d,c]=x.useState(null),f=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=x.useState({}),h=xt(t,_=>c(_)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),E=g.indexOf(b),T=d?g.indexOf(d):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,S=T>=E,w=N9(_=>{const D=_.target,I=[...u.branches].some(O=>O.contains(D));!S||I||(a==null||a(_),o==null||o(_),_.defaultPrevented||s==null||s())},f),A=C9(_=>{const D=_.target;[...u.branches].some(O=>O.contains(D))||(i==null||i(_),o==null||o(_),_.defaultPrevented||s==null||s())},f);return ev(_=>{T===u.layers.size-1&&(r==null||r(_),!_.defaultPrevented&&s&&(_.preventDefault(),s()))},f),x.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(yx=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),xx(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=yx)}},[d,f,n,u]),x.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),xx())},[d,u]),x.useEffect(()=>{const _=()=>m({});return document.addEventListener(yd,_),()=>document.removeEventListener(yd,_)},[]),p.jsx(pt.div,{...l,ref:h,style:{pointerEvents:v?S?"auto":"none":void 0,...e.style},onFocusCapture:it(e.onFocusCapture,A.onFocusCapture),onBlurCapture:it(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:it(e.onPointerDownCapture,w.onPointerDownCapture)})});s_.displayName=v9;var w9="DismissableLayerBranch",_9=x.forwardRef((e,t)=>{const n=x.useContext(o_),r=x.useRef(null),a=xt(t,r);return x.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(pt.div,{...e,ref:a})});_9.displayName=w9;function N9(e,t=globalThis==null?void 0:globalThis.document){const n=Mt(e),r=x.useRef(!1),a=x.useRef(()=>{});return x.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let l=function(){l_(S9,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=l,t.addEventListener("click",a.current,{once:!0})):l()}else t.removeEventListener("click",a.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function C9(e,t=globalThis==null?void 0:globalThis.document){const n=Mt(e),r=x.useRef(!1);return x.useEffect(()=>{const a=i=>{i.target&&!r.current&&l_(A9,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function xx(){const e=new CustomEvent(yd);document.dispatchEvent(e)}function l_(e,t,n,{discrete:r}){const a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?T9(a,i):a.dispatchEvent(i)}var fc="focusScope.autoFocusOnMount",mc="focusScope.autoFocusOnUnmount",Tx={bubbles:!1,cancelable:!0},k9="FocusScope",u_=x.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...o}=e,[s,l]=x.useState(null),u=Mt(a),d=Mt(i),c=x.useRef(null),f=xt(t,g=>l(g)),m=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(r){let g=function(v){if(m.paused||!s)return;const S=v.target;s.contains(S)?c.current=S:rr(c.current,{select:!0})},b=function(v){if(m.paused||!s)return;const S=v.relatedTarget;S!==null&&(s.contains(S)||rr(c.current,{select:!0}))},E=function(v){if(document.activeElement===document.body)for(const w of v)w.removedNodes.length>0&&rr(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const T=new MutationObserver(E);return s&&T.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),T.disconnect()}}},[r,s,m.paused]),x.useEffect(()=>{if(s){Sx.add(m);const g=document.activeElement;if(!s.contains(g)){const E=new CustomEvent(fc,Tx);s.addEventListener(fc,u),s.dispatchEvent(E),E.defaultPrevented||(I9(P9(c_(s)),{select:!0}),document.activeElement===g&&rr(s))}return()=>{s.removeEventListener(fc,u),setTimeout(()=>{const E=new CustomEvent(mc,Tx);s.addEventListener(mc,d),s.dispatchEvent(E),E.defaultPrevented||rr(g??document.body,{select:!0}),s.removeEventListener(mc,d),Sx.remove(m)},0)}}},[s,u,d,m]);const h=x.useCallback(g=>{if(!n&&!r||m.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,E=document.activeElement;if(b&&E){const T=g.currentTarget,[v,S]=R9(T);v&&S?!g.shiftKey&&E===S?(g.preventDefault(),n&&rr(v,{select:!0})):g.shiftKey&&E===v&&(g.preventDefault(),n&&rr(S,{select:!0})):E===T&&g.preventDefault()}},[n,r,m.paused]);return p.jsx(pt.div,{tabIndex:-1,...o,ref:f,onKeyDown:h})});u_.displayName=k9;function I9(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(rr(r,{select:t}),document.activeElement!==n)return}function R9(e){const t=c_(e),n=vx(t,e),r=vx(t.reverse(),e);return[n,r]}function c_(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function vx(e,t){for(const n of e)if(!O9(n,{upTo:t}))return n}function O9(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function D9(e){return e instanceof HTMLInputElement&&"select"in e}function rr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&D9(e)&&t&&e.select()}}var Sx=L9();function L9(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ax(e,t),e.unshift(t)},remove(t){var n;e=Ax(e,t),(n=e[0])==null||n.resume()}}}function Ax(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function P9(e){return e.filter(t=>t.tagName!=="A")}var F9="Arrow",d_=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...i}=e;return p.jsx(pt.svg,{...i,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});d_.displayName=F9;var M9=d_,s0="Popper",[p_,f_]=gr(s0),[B9,m_]=p_(s0),h_=e=>{const{__scopePopper:t,children:n}=e,[r,a]=x.useState(null);return p.jsx(B9,{scope:t,anchor:r,onAnchorChange:a,children:n})};h_.displayName=s0;var g_="PopperAnchor",b_=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,i=m_(g_,n),o=x.useRef(null),s=xt(t,o);return x.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||o.current)}),r?null:p.jsx(pt.div,{...a,ref:s})});b_.displayName=g_;var l0="PopperContent",[U9,$9]=p_(l0),E_=x.forwardRef((e,t)=>{var Q,J,oe,de,ie,$;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:i="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:f=!1,updatePositionStrategy:m="optimized",onPlaced:h,...g}=e,b=m_(l0,n),[E,T]=x.useState(null),v=xt(t,re=>T(re)),[S,w]=x.useState(null),A=Xd(S),_=(A==null?void 0:A.width)??0,D=(A==null?void 0:A.height)??0,I=r+(i!=="center"?"-"+i:""),O=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},M=Array.isArray(u)?u:[u],P=M.length>0,j={padding:O,boundary:M.filter(H9),altBoundary:P},{refs:z,floatingStyles:W,placement:H,isPositioned:X,middlewareData:Z}=$b({strategy:"fixed",placement:I,whileElementsMounted:(...re)=>Ub(...re,{animationFrame:m==="always"}),elements:{reference:b.anchor},middleware:[jb({mainAxis:a+D,alignmentAxis:o}),l&&Hb({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?zb():void 0,...j}),l&&Gb({...j}),Vb({...j,apply:({elements:re,rects:se,availableWidth:pe,availableHeight:ye})=>{const{width:be,height:Le}=se.reference,xe=re.floating.style;xe.setProperty("--radix-popper-available-width",`${pe}px`),xe.setProperty("--radix-popper-available-height",`${ye}px`),xe.setProperty("--radix-popper-anchor-width",`${be}px`),xe.setProperty("--radix-popper-anchor-height",`${Le}px`)}}),S&&qb({element:S,padding:s}),z9({arrowWidth:_,arrowHeight:D}),f&&Wb({strategy:"referenceHidden",...j})]}),[G,k]=T_(H),ae=Mt(h);ht(()=>{X&&(ae==null||ae())},[X,ae]);const V=(Q=Z.arrow)==null?void 0:Q.x,N=(J=Z.arrow)==null?void 0:J.y,te=((oe=Z.arrow)==null?void 0:oe.centerOffset)!==0,[U,K]=x.useState();return ht(()=>{E&&K(window.getComputedStyle(E).zIndex)},[E]),p.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:X?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[(de=Z.transformOrigin)==null?void 0:de.x,(ie=Z.transformOrigin)==null?void 0:ie.y].join(" "),...(($=Z.hide)==null?void 0:$.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(U9,{scope:n,placedSide:G,onArrowChange:w,arrowX:V,arrowY:N,shouldHideArrow:te,children:p.jsx(pt.div,{"data-side":G,"data-align":k,...g,ref:v,style:{...g.style,animation:X?void 0:"none"}})})})});E_.displayName=l0;var y_="PopperArrow",j9={top:"bottom",right:"left",bottom:"top",left:"right"},x_=x.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,i=$9(y_,r),o=j9[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(M9,{...a,ref:n,style:{...a.style,display:"block"}})})});x_.displayName=y_;function H9(e){return e!==null}var z9=e=>({name:"transformOrigin",options:e,fn(t){var b,E,T;const{placement:n,rects:r,middlewareData:a}=t,o=((b=a.arrow)==null?void 0:b.centerOffset)!==0,s=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[u,d]=T_(n),c={start:"0%",center:"50%",end:"100%"}[d],f=(((E=a.arrow)==null?void 0:E.x)??0)+s/2,m=(((T=a.arrow)==null?void 0:T.y)??0)+l/2;let h="",g="";return u==="bottom"?(h=o?c:`${f}px`,g=`${-l}px`):u==="top"?(h=o?c:`${f}px`,g=`${r.floating.height+l}px`):u==="right"?(h=`${-l}px`,g=o?c:`${m}px`):u==="left"&&(h=`${r.floating.width+l}px`,g=o?c:`${m}px`),{data:{x:h,y:g}}}});function T_(e){const[t,n="center"]=e.split("-");return[t,n]}var G9=h_,V9=b_,W9=E_,q9=x_,Y9="Portal",v_=x.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[a,i]=x.useState(!1);ht(()=>i(!0),[]);const o=n||a&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return o?hr.createPortal(p.jsx(pt.div,{...r,ref:t}),o):null});v_.displayName=Y9;var K9="VisuallyHidden",S_=x.forwardRef((e,t)=>p.jsx(pt.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));S_.displayName=K9;var ks="right-scroll-bar-position",Is="width-before-scroll-bar",X9="with-scroll-bars-hidden",Z9="--removed-body-scroll-bar-size";function hc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Q9(e,t){var n=R.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var J9=typeof window<"u"?x.useLayoutEffect:x.useEffect,wx=new WeakMap;function e7(e,t){var n=Q9(null,function(r){return e.forEach(function(a){return hc(a,r)})});return J9(function(){var r=wx.get(n);if(r){var a=new Set(r),i=new Set(e),o=n.current;a.forEach(function(s){i.has(s)||hc(s,null)}),i.forEach(function(s){a.has(s)||hc(s,o)})}wx.set(n,e)},[e]),n}function t7(e){return e}function n7(e,t){t===void 0&&(t=t7);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,r);return n.push(o),function(){n=n.filter(function(s){return s!==o})}},assignSyncMedium:function(i){for(r=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var o=[];if(n.length){var s=n;n=[],s.forEach(i),o=n}var l=function(){var d=o;o=[],d.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(d){o.push(d),u()},filter:function(d){return o=o.filter(d),n}}}};return a}function r7(e){e===void 0&&(e={});var t=n7(null);return t.options=Ke({async:!0,ssr:!1},e),t}var A_=function(e){var t=e.sideCar,n=go(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return x.createElement(r,Ke({},n))};A_.isSideCarExport=!0;function a7(e,t){return e.useMedium(t),A_}var w_=r7(),gc=function(){},nu=x.forwardRef(function(e,t){var n=x.useRef(null),r=x.useState({onScrollCapture:gc,onWheelCapture:gc,onTouchMoveCapture:gc}),a=r[0],i=r[1],o=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,c=e.shards,f=e.sideCar,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,b=e.as,E=b===void 0?"div":b,T=e.gapMode,v=go(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,w=e7([n,t]),A=Ke(Ke({},v),a);return x.createElement(x.Fragment,null,d&&x.createElement(S,{sideCar:w_,removeScrollBar:u,shards:c,noIsolation:m,inert:h,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:T}),o?x.cloneElement(x.Children.only(s),Ke(Ke({},A),{ref:w})):x.createElement(E,Ke({},A,{className:l,ref:w}),s))});nu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};nu.classNames={fullWidth:Is,zeroRight:ks};function i7(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=uv();return t&&e.setAttribute("nonce",t),e}function o7(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function s7(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var l7=function(){var e=0,t=null;return{add:function(n){e==0&&(t=i7())&&(o7(t,n),s7(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},u7=function(){var e=l7();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},__=function(){var e=u7(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},c7={left:0,top:0,right:0,gap:0},bc=function(e){return parseInt(e||"",10)||0},d7=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[bc(n),bc(r),bc(a)]},p7=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return c7;var t=d7(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},f7=__(),La="data-scroll-locked",m7=function(e,t,n,r){var a=e.left,i=e.top,o=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
359
|
+
.`.concat(X9,` {
|
|
360
|
+
overflow: hidden `).concat(r,`;
|
|
361
|
+
padding-right: `).concat(s,"px ").concat(r,`;
|
|
362
|
+
}
|
|
363
|
+
body[`).concat(La,`] {
|
|
364
|
+
overflow: hidden `).concat(r,`;
|
|
365
|
+
overscroll-behavior: contain;
|
|
366
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
367
|
+
padding-left: `.concat(a,`px;
|
|
368
|
+
padding-top: `).concat(i,`px;
|
|
369
|
+
padding-right: `).concat(o,`px;
|
|
370
|
+
margin-left:0;
|
|
371
|
+
margin-top:0;
|
|
372
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
373
|
+
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.`).concat(ks,` {
|
|
377
|
+
right: `).concat(s,"px ").concat(r,`;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.`).concat(Is,` {
|
|
381
|
+
margin-right: `).concat(s,"px ").concat(r,`;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.`).concat(ks," .").concat(ks,` {
|
|
385
|
+
right: 0 `).concat(r,`;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.`).concat(Is," .").concat(Is,` {
|
|
389
|
+
margin-right: 0 `).concat(r,`;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
body[`).concat(La,`] {
|
|
393
|
+
`).concat(Z9,": ").concat(s,`px;
|
|
394
|
+
}
|
|
395
|
+
`)},_x=function(){var e=parseInt(document.body.getAttribute(La)||"0",10);return isFinite(e)?e:0},h7=function(){x.useEffect(function(){return document.body.setAttribute(La,(_x()+1).toString()),function(){var e=_x()-1;e<=0?document.body.removeAttribute(La):document.body.setAttribute(La,e.toString())}},[])},g7=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;h7();var i=x.useMemo(function(){return p7(a)},[a]);return x.createElement(f7,{styles:m7(i,!t,a,n?"":"!important")})},xd=!1;if(typeof window<"u")try{var ms=Object.defineProperty({},"passive",{get:function(){return xd=!0,!0}});window.addEventListener("test",ms,ms),window.removeEventListener("test",ms,ms)}catch{xd=!1}var ha=xd?{passive:!1}:!1,b7=function(e){return e.tagName==="TEXTAREA"},N_=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!b7(e)&&n[t]==="visible")},E7=function(e){return N_(e,"overflowY")},y7=function(e){return N_(e,"overflowX")},Nx=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=C_(e,r);if(a){var i=k_(e,r),o=i[1],s=i[2];if(o>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},x7=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},T7=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},C_=function(e,t){return e==="v"?E7(t):y7(t)},k_=function(e,t){return e==="v"?x7(t):T7(t)},v7=function(e,t){return e==="h"&&t==="rtl"?-1:1},S7=function(e,t,n,r,a){var i=v7(e,window.getComputedStyle(t).direction),o=i*r,s=n.target,l=t.contains(s),u=!1,d=o>0,c=0,f=0;do{var m=k_(e,s),h=m[0],g=m[1],b=m[2],E=g-b-i*h;(h||E)&&C_(e,s)&&(c+=E,f+=h),s instanceof ShadowRoot?s=s.host:s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(d&&(Math.abs(c)<1||!a)||!d&&(Math.abs(f)<1||!a))&&(u=!0),u},hs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cx=function(e){return[e.deltaX,e.deltaY]},kx=function(e){return e&&"current"in e?e.current:e},A7=function(e,t){return e[0]===t[0]&&e[1]===t[1]},w7=function(e){return`
|
|
396
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
397
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
398
|
+
`)},_7=0,ga=[];function N7(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),a=x.useState(_7++)[0],i=x.useState(__)[0],o=x.useRef(e);x.useEffect(function(){o.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var g=rp([e.lockRef.current],(e.shards||[]).map(kx),!0).filter(Boolean);return g.forEach(function(b){return b.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),g.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=x.useCallback(function(g,b){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!o.current.allowPinchZoom;var E=hs(g),T=n.current,v="deltaX"in g?g.deltaX:T[0]-E[0],S="deltaY"in g?g.deltaY:T[1]-E[1],w,A=g.target,_=Math.abs(v)>Math.abs(S)?"h":"v";if("touches"in g&&_==="h"&&A.type==="range")return!1;var D=Nx(_,A);if(!D)return!0;if(D?w=_:(w=_==="v"?"h":"v",D=Nx(_,A)),!D)return!1;if(!r.current&&"changedTouches"in g&&(v||S)&&(r.current=w),!w)return!0;var I=r.current||w;return S7(I,b,g,I==="h"?v:S,!0)},[]),l=x.useCallback(function(g){var b=g;if(!(!ga.length||ga[ga.length-1]!==i)){var E="deltaY"in b?Cx(b):hs(b),T=t.current.filter(function(w){return w.name===b.type&&(w.target===b.target||b.target===w.shadowParent)&&A7(w.delta,E)})[0];if(T&&T.should){b.cancelable&&b.preventDefault();return}if(!T){var v=(o.current.shards||[]).map(kx).filter(Boolean).filter(function(w){return w.contains(b.target)}),S=v.length>0?s(b,v[0]):!o.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),u=x.useCallback(function(g,b,E,T){var v={name:g,delta:b,target:E,should:T,shadowParent:C7(E)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(S){return S!==v})},1)},[]),d=x.useCallback(function(g){n.current=hs(g),r.current=void 0},[]),c=x.useCallback(function(g){u(g.type,Cx(g),g.target,s(g,e.lockRef.current))},[]),f=x.useCallback(function(g){u(g.type,hs(g),g.target,s(g,e.lockRef.current))},[]);x.useEffect(function(){return ga.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:f}),document.addEventListener("wheel",l,ha),document.addEventListener("touchmove",l,ha),document.addEventListener("touchstart",d,ha),function(){ga=ga.filter(function(g){return g!==i}),document.removeEventListener("wheel",l,ha),document.removeEventListener("touchmove",l,ha),document.removeEventListener("touchstart",d,ha)}},[]);var m=e.removeScrollBar,h=e.inert;return x.createElement(x.Fragment,null,h?x.createElement(i,{styles:w7(a)}):null,m?x.createElement(g7,{gapMode:e.gapMode}):null)}function C7(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const k7=a7(w_,N7);var I_=x.forwardRef(function(e,t){return x.createElement(nu,Ke({},e,{ref:t,sideCar:k7}))});I_.classNames=nu.classNames;var I7=[" ","Enter","ArrowUp","ArrowDown"],R7=[" ","Enter"],Uo="Select",[ru,au,O7]=y9(Uo),[ci,$W]=gr(Uo,[O7,f_]),iu=f_(),[D7,Sr]=ci(Uo),[L7,P7]=ci(Uo),R_=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:i,value:o,defaultValue:s,onValueChange:l,dir:u,name:d,autoComplete:c,disabled:f,required:m,form:h}=e,g=iu(t),[b,E]=x.useState(null),[T,v]=x.useState(null),[S,w]=x.useState(!1),A=dp(u),[_=!1,D]=cr({prop:r,defaultProp:a,onChange:i}),[I,O]=cr({prop:o,defaultProp:s,onChange:l}),M=x.useRef(null),P=b?h||!!b.closest("form"):!0,[j,z]=x.useState(new Set),W=Array.from(j).map(H=>H.props.value).join(";");return p.jsx(G9,{...g,children:p.jsxs(D7,{required:m,scope:t,trigger:b,onTriggerChange:E,valueNode:T,onValueNodeChange:v,valueNodeHasChildren:S,onValueNodeHasChildrenChange:w,contentId:Cn(),value:I,onValueChange:O,open:_,onOpenChange:D,dir:A,triggerPointerDownPosRef:M,disabled:f,children:[p.jsx(ru.Provider,{scope:t,children:p.jsx(L7,{scope:e.__scopeSelect,onNativeOptionAdd:x.useCallback(H=>{z(X=>new Set(X).add(H))},[]),onNativeOptionRemove:x.useCallback(H=>{z(X=>{const Z=new Set(X);return Z.delete(H),Z})},[]),children:n})}),P?p.jsxs(nN,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:c,value:I,onChange:H=>O(H.target.value),disabled:f,form:h,children:[I===void 0?p.jsx("option",{value:""}):null,Array.from(j)]},W):null]})})};R_.displayName=Uo;var O_="SelectTrigger",D_=x.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,i=iu(n),o=Sr(O_,n),s=o.disabled||r,l=xt(t,o.onTriggerChange),u=au(n),d=x.useRef("touch"),[c,f,m]=rN(g=>{const b=u().filter(v=>!v.disabled),E=b.find(v=>v.value===o.value),T=aN(b,g,E);T!==void 0&&o.onValueChange(T.value)}),h=g=>{s||(o.onOpenChange(!0),m()),g&&(o.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)})};return p.jsx(V9,{asChild:!0,...i,children:p.jsx(pt.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":tN(o.value)?"":void 0,...a,ref:l,onClick:it(a.onClick,g=>{g.currentTarget.focus(),d.current!=="mouse"&&h(g)}),onPointerDown:it(a.onPointerDown,g=>{d.current=g.pointerType;const b=g.target;b.hasPointerCapture(g.pointerId)&&b.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&g.pointerType==="mouse"&&(h(g),g.preventDefault())}),onKeyDown:it(a.onKeyDown,g=>{const b=c.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&f(g.key),!(b&&g.key===" ")&&I7.includes(g.key)&&(h(),g.preventDefault())})})})});D_.displayName=O_;var L_="SelectValue",P_=x.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:i,placeholder:o="",...s}=e,l=Sr(L_,n),{onValueNodeHasChildrenChange:u}=l,d=i!==void 0,c=xt(t,l.onValueNodeChange);return ht(()=>{u(d)},[u,d]),p.jsx(pt.span,{...s,ref:c,style:{pointerEvents:"none"},children:tN(l.value)?p.jsx(p.Fragment,{children:o}):i})});P_.displayName=L_;var F7="SelectIcon",F_=x.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return p.jsx(pt.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})});F_.displayName=F7;var M7="SelectPortal",M_=e=>p.jsx(v_,{asChild:!0,...e});M_.displayName=M7;var Yr="SelectContent",B_=x.forwardRef((e,t)=>{const n=Sr(Yr,e.__scopeSelect),[r,a]=x.useState();if(ht(()=>{a(new DocumentFragment)},[]),!n.open){const i=r;return i?Xr.createPortal(p.jsx(U_,{scope:e.__scopeSelect,children:p.jsx(ru.Slot,{scope:e.__scopeSelect,children:p.jsx("div",{children:e.children})})}),i):null}return p.jsx($_,{...e,ref:t})});B_.displayName=Yr;var cn=10,[U_,Ar]=ci(Yr),B7="SelectContentImpl",$_=x.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:i,onPointerDownOutside:o,side:s,sideOffset:l,align:u,alignOffset:d,arrowPadding:c,collisionBoundary:f,collisionPadding:m,sticky:h,hideWhenDetached:g,avoidCollisions:b,...E}=e,T=Sr(Yr,n),[v,S]=x.useState(null),[w,A]=x.useState(null),_=xt(t,Q=>S(Q)),[D,I]=x.useState(null),[O,M]=x.useState(null),P=au(n),[j,z]=x.useState(!1),W=x.useRef(!1);x.useEffect(()=>{if(v)return ul(v)},[v]),np();const H=x.useCallback(Q=>{const[J,...oe]=P().map($=>$.ref.current),[de]=oe.slice(-1),ie=document.activeElement;for(const $ of Q)if($===ie||($==null||$.scrollIntoView({block:"nearest"}),$===J&&w&&(w.scrollTop=0),$===de&&w&&(w.scrollTop=w.scrollHeight),$==null||$.focus(),document.activeElement!==ie))return},[P,w]),X=x.useCallback(()=>H([D,v]),[H,D,v]);x.useEffect(()=>{j&&X()},[j,X]);const{onOpenChange:Z,triggerPointerDownPosRef:G}=T;x.useEffect(()=>{if(v){let Q={x:0,y:0};const J=de=>{var ie,$;Q={x:Math.abs(Math.round(de.pageX)-(((ie=G.current)==null?void 0:ie.x)??0)),y:Math.abs(Math.round(de.pageY)-((($=G.current)==null?void 0:$.y)??0))}},oe=de=>{Q.x<=10&&Q.y<=10?de.preventDefault():v.contains(de.target)||Z(!1),document.removeEventListener("pointermove",J),G.current=null};return G.current!==null&&(document.addEventListener("pointermove",J),document.addEventListener("pointerup",oe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",J),document.removeEventListener("pointerup",oe,{capture:!0})}}},[v,Z,G]),x.useEffect(()=>{const Q=()=>Z(!1);return window.addEventListener("blur",Q),window.addEventListener("resize",Q),()=>{window.removeEventListener("blur",Q),window.removeEventListener("resize",Q)}},[Z]);const[k,ae]=rN(Q=>{const J=P().filter(ie=>!ie.disabled),oe=J.find(ie=>ie.ref.current===document.activeElement),de=aN(J,Q,oe);de&&setTimeout(()=>de.ref.current.focus())}),V=x.useCallback((Q,J,oe)=>{const de=!W.current&&!oe;(T.value!==void 0&&T.value===J||de)&&(I(Q),de&&(W.current=!0))},[T.value]),N=x.useCallback(()=>v==null?void 0:v.focus(),[v]),te=x.useCallback((Q,J,oe)=>{const de=!W.current&&!oe;(T.value!==void 0&&T.value===J||de)&&M(Q)},[T.value]),U=r==="popper"?Td:j_,K=U===Td?{side:s,sideOffset:l,align:u,alignOffset:d,arrowPadding:c,collisionBoundary:f,collisionPadding:m,sticky:h,hideWhenDetached:g,avoidCollisions:b}:{};return p.jsx(U_,{scope:n,content:v,viewport:w,onViewportChange:A,itemRefCallback:V,selectedItem:D,onItemLeave:N,itemTextRefCallback:te,focusSelectedItem:X,selectedItemText:O,position:r,isPositioned:j,searchRef:k,children:p.jsx(I_,{as:so,allowPinchZoom:!0,children:p.jsx(u_,{asChild:!0,trapped:T.open,onMountAutoFocus:Q=>{Q.preventDefault()},onUnmountAutoFocus:it(a,Q=>{var J;(J=T.trigger)==null||J.focus({preventScroll:!0}),Q.preventDefault()}),children:p.jsx(s_,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:Q=>Q.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:p.jsx(U,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:Q=>Q.preventDefault(),...E,...K,onPlaced:()=>z(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:it(E.onKeyDown,Q=>{const J=Q.ctrlKey||Q.altKey||Q.metaKey;if(Q.key==="Tab"&&Q.preventDefault(),!J&&Q.key.length===1&&ae(Q.key),["ArrowUp","ArrowDown","Home","End"].includes(Q.key)){let de=P().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);if(["ArrowUp","End"].includes(Q.key)&&(de=de.slice().reverse()),["ArrowUp","ArrowDown"].includes(Q.key)){const ie=Q.target,$=de.indexOf(ie);de=de.slice($+1)}setTimeout(()=>H(de)),Q.preventDefault()}})})})})})})});$_.displayName=B7;var U7="SelectItemAlignedPosition",j_=x.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,i=Sr(Yr,n),o=Ar(Yr,n),[s,l]=x.useState(null),[u,d]=x.useState(null),c=xt(t,_=>d(_)),f=au(n),m=x.useRef(!1),h=x.useRef(!0),{viewport:g,selectedItem:b,selectedItemText:E,focusSelectedItem:T}=o,v=x.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&u&&g&&b&&E){const _=i.trigger.getBoundingClientRect(),D=u.getBoundingClientRect(),I=i.valueNode.getBoundingClientRect(),O=E.getBoundingClientRect();if(i.dir!=="rtl"){const ie=O.left-D.left,$=I.left-ie,re=_.left-$,se=_.width+re,pe=Math.max(se,D.width),ye=window.innerWidth-cn,be=Ex($,[cn,Math.max(cn,ye-pe)]);s.style.minWidth=se+"px",s.style.left=be+"px"}else{const ie=D.right-O.right,$=window.innerWidth-I.right-ie,re=window.innerWidth-_.right-$,se=_.width+re,pe=Math.max(se,D.width),ye=window.innerWidth-cn,be=Ex($,[cn,Math.max(cn,ye-pe)]);s.style.minWidth=se+"px",s.style.right=be+"px"}const M=f(),P=window.innerHeight-cn*2,j=g.scrollHeight,z=window.getComputedStyle(u),W=parseInt(z.borderTopWidth,10),H=parseInt(z.paddingTop,10),X=parseInt(z.borderBottomWidth,10),Z=parseInt(z.paddingBottom,10),G=W+H+j+Z+X,k=Math.min(b.offsetHeight*5,G),ae=window.getComputedStyle(g),V=parseInt(ae.paddingTop,10),N=parseInt(ae.paddingBottom,10),te=_.top+_.height/2-cn,U=P-te,K=b.offsetHeight/2,Q=b.offsetTop+K,J=W+H+Q,oe=G-J;if(J<=te){const ie=M.length>0&&b===M[M.length-1].ref.current;s.style.bottom="0px";const $=u.clientHeight-g.offsetTop-g.offsetHeight,re=Math.max(U,K+(ie?N:0)+$+X),se=J+re;s.style.height=se+"px"}else{const ie=M.length>0&&b===M[0].ref.current;s.style.top="0px";const re=Math.max(te,W+g.offsetTop+(ie?V:0)+K)+oe;s.style.height=re+"px",g.scrollTop=J-te+g.offsetTop}s.style.margin=`${cn}px 0`,s.style.minHeight=k+"px",s.style.maxHeight=P+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[f,i.trigger,i.valueNode,s,u,g,b,E,i.dir,r]);ht(()=>v(),[v]);const[S,w]=x.useState();ht(()=>{u&&w(window.getComputedStyle(u).zIndex)},[u]);const A=x.useCallback(_=>{_&&h.current===!0&&(v(),T==null||T(),h.current=!1)},[v,T]);return p.jsx(j7,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:A,children:p.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:p.jsx(pt.div,{...a,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});j_.displayName=U7;var $7="SelectPopperPosition",Td=x.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=cn,...i}=e,o=iu(n);return p.jsx(W9,{...o,...i,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Td.displayName=$7;var[j7,u0]=ci(Yr,{}),vd="SelectViewport",H_=x.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,i=Ar(vd,n),o=u0(vd,n),s=xt(t,i.onViewportChange),l=x.useRef(0);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),p.jsx(ru.Slot,{scope:n,children:p.jsx(pt.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:it(a.onScroll,u=>{const d=u.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:f}=o;if(f!=null&&f.current&&c){const m=Math.abs(l.current-d.scrollTop);if(m>0){const h=window.innerHeight-cn*2,g=parseFloat(c.style.minHeight),b=parseFloat(c.style.height),E=Math.max(g,b);if(E<h){const T=E+m,v=Math.min(h,T),S=T-v;c.style.height=v+"px",c.style.bottom==="0px"&&(d.scrollTop=S>0?S:0,c.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});H_.displayName=vd;var z_="SelectGroup",[H7,z7]=ci(z_),G7=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=Cn();return p.jsx(H7,{scope:n,id:a,children:p.jsx(pt.div,{role:"group","aria-labelledby":a,...r,ref:t})})});G7.displayName=z_;var G_="SelectLabel",V_=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=z7(G_,n);return p.jsx(pt.div,{id:a.id,...r,ref:t})});V_.displayName=G_;var Js="SelectItem",[V7,W_]=ci(Js),q_=x.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:i,...o}=e,s=Sr(Js,n),l=Ar(Js,n),u=s.value===r,[d,c]=x.useState(i??""),[f,m]=x.useState(!1),h=xt(t,T=>{var v;return(v=l.itemRefCallback)==null?void 0:v.call(l,T,r,a)}),g=Cn(),b=x.useRef("touch"),E=()=>{a||(s.onValueChange(r),s.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return p.jsx(V7,{scope:n,value:r,disabled:a,textId:g,isSelected:u,onItemTextChange:x.useCallback(T=>{c(v=>v||((T==null?void 0:T.textContent)??"").trim())},[]),children:p.jsx(ru.ItemSlot,{scope:n,value:r,disabled:a,textValue:d,children:p.jsx(pt.div,{role:"option","aria-labelledby":g,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...o,ref:h,onFocus:it(o.onFocus,()=>m(!0)),onBlur:it(o.onBlur,()=>m(!1)),onClick:it(o.onClick,()=>{b.current!=="mouse"&&E()}),onPointerUp:it(o.onPointerUp,()=>{b.current==="mouse"&&E()}),onPointerDown:it(o.onPointerDown,T=>{b.current=T.pointerType}),onPointerMove:it(o.onPointerMove,T=>{var v;b.current=T.pointerType,a?(v=l.onItemLeave)==null||v.call(l):b.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:it(o.onPointerLeave,T=>{var v;T.currentTarget===document.activeElement&&((v=l.onItemLeave)==null||v.call(l))}),onKeyDown:it(o.onKeyDown,T=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&T.key===" "||(R7.includes(T.key)&&E(),T.key===" "&&T.preventDefault())})})})})});q_.displayName=Js;var Ci="SelectItemText",Y_=x.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...i}=e,o=Sr(Ci,n),s=Ar(Ci,n),l=W_(Ci,n),u=P7(Ci,n),[d,c]=x.useState(null),f=xt(t,E=>c(E),l.onItemTextChange,E=>{var T;return(T=s.itemTextRefCallback)==null?void 0:T.call(s,E,l.value,l.disabled)}),m=d==null?void 0:d.textContent,h=x.useMemo(()=>p.jsx("option",{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:b}=u;return ht(()=>(g(h),()=>b(h)),[g,b,h]),p.jsxs(p.Fragment,{children:[p.jsx(pt.span,{id:l.textId,...i,ref:f}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Xr.createPortal(i.children,o.valueNode):null]})});Y_.displayName=Ci;var K_="SelectItemIndicator",X_=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return W_(K_,n).isSelected?p.jsx(pt.span,{"aria-hidden":!0,...r,ref:t}):null});X_.displayName=K_;var Sd="SelectScrollUpButton",Z_=x.forwardRef((e,t)=>{const n=Ar(Sd,e.__scopeSelect),r=u0(Sd,e.__scopeSelect),[a,i]=x.useState(!1),o=xt(t,r.onScrollButtonChange);return ht(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollTop>0;i(u)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),a?p.jsx(J_,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});Z_.displayName=Sd;var Ad="SelectScrollDownButton",Q_=x.forwardRef((e,t)=>{const n=Ar(Ad,e.__scopeSelect),r=u0(Ad,e.__scopeSelect),[a,i]=x.useState(!1),o=xt(t,r.onScrollButtonChange);return ht(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<u;i(d)};const l=n.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),a?p.jsx(J_,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=n;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});Q_.displayName=Ad;var J_=x.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,i=Ar("SelectScrollButton",n),o=x.useRef(null),s=au(n),l=x.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return x.useEffect(()=>()=>l(),[l]),ht(()=>{var d;const u=s().find(c=>c.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[s]),p.jsx(pt.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:it(a.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:it(a.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:it(a.onPointerLeave,()=>{l()})})}),W7="SelectSeparator",eN=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return p.jsx(pt.div,{"aria-hidden":!0,...r,ref:t})});eN.displayName=W7;var wd="SelectArrow",q7=x.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=iu(n),i=Sr(wd,n),o=Ar(wd,n);return i.open&&o.position==="popper"?p.jsx(q9,{...a,...r,ref:t}):null});q7.displayName=wd;function tN(e){return e===""||e===void 0}var nN=x.forwardRef((e,t)=>{const{value:n,...r}=e,a=x.useRef(null),i=xt(t,a),o=WT(n);return x.useEffect(()=>{const s=a.current,l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==n&&d){const c=new Event("change",{bubbles:!0});d.call(s,n),s.dispatchEvent(c)}},[o,n]),p.jsx(S_,{asChild:!0,children:p.jsx("select",{...r,ref:i,defaultValue:n})})});nN.displayName="BubbleSelect";function rN(e){const t=Mt(e),n=x.useRef(""),r=x.useRef(0),a=x.useCallback(o=>{const s=n.current+o;t(s),function l(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),i=x.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return x.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,i]}function aN(e,t,n){const a=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=Y7(e,Math.max(i,0));a.length===1&&(o=o.filter(u=>u!==n));const l=o.find(u=>u.textValue.toLowerCase().startsWith(a.toLowerCase()));return l!==n?l:void 0}function Y7(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var K7=R_,iN=D_,X7=P_,Z7=F_,Q7=M_,oN=B_,J7=H_,sN=V_,lN=q_,ez=Y_,tz=X_,uN=Z_,cN=Q_,dN=eN;const En=K7,yn=X7,tn=x.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(iN,{ref:r,className:Ee("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,p.jsx(Z7,{asChild:!0,children:p.jsx(Fa,{className:"h-4 w-4 opacity-50"})})]}));tn.displayName=iN.displayName;const pN=x.forwardRef(({className:e,...t},n)=>p.jsx(uN,{ref:n,className:Ee("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(pC,{className:"h-4 w-4"})}));pN.displayName=uN.displayName;const fN=x.forwardRef(({className:e,...t},n)=>p.jsx(cN,{ref:n,className:Ee("flex cursor-default items-center justify-center py-1",e),...t,children:p.jsx(Fa,{className:"h-4 w-4"})}));fN.displayName=cN.displayName;const nn=x.forwardRef(({className:e,children:t,position:n="popper",...r},a)=>p.jsx(Q7,{children:p.jsxs(oN,{ref:a,className:Ee("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[p.jsx(pN,{}),p.jsx(J7,{className:Ee("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),p.jsx(fN,{})]})}));nn.displayName=oN.displayName;const nz=x.forwardRef(({className:e,...t},n)=>p.jsx(sN,{ref:n,className:Ee("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));nz.displayName=sN.displayName;const rn=x.forwardRef(({className:e,children:t,...n},r)=>p.jsxs(lN,{ref:r,className:Ee("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[p.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p.jsx(tz,{children:p.jsx(Er,{className:"h-4 w-4"})})}),p.jsx(ez,{children:t})]}));rn.displayName=lN.displayName;const rz=x.forwardRef(({className:e,...t},n)=>p.jsx(dN,{ref:n,className:Ee("-mx-1 my-1 h-px bg-muted",e),...t}));rz.displayName=dN.displayName;const az=({onToggleSidebar:e})=>{var E;const{spec:t,computedUrl:n,setComputedUrl:r,serverVariables:a,setServerVariables:i}=lt(),o=t.servers??[],s=o.length>1,[l,u]=R.useState(o[0]??null),[d,c]=R.useState(!1),[f,m]=R.useState(!1),h=!!(l!=null&&l.variables)&&Object.keys(l.variables).length>0,g=T=>{u(T),c(!1);let v=T.url==="/"?`${window.location.protocol}//${window.location.host}`:T.url;if(T.variables){const S={};Object.entries(T.variables).forEach(([w,A])=>{S[w]=A.default,v=v.replace(`{${w}}`,A.default)}),i(S)}else i({});r(v)},b=(T,v)=>{const S={...a,[T]:v};if(i(S),!l)return;let w=l.url;Object.entries(S).forEach(([A,_])=>{w=w.replace(`{${A}}`,_)}),r(w)};return p.jsx("div",{className:"bg-muted/60 backdrop-blur-md sticky top-0 z-50 w-full shadow-sm",children:p.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:h-16 px-4 py-2 md:py-0 gap-2 md:gap-3",children:[p.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[p.jsx(Qe,{variant:"ghost",size:"icon",className:"md:hidden h-8 w-8 shrink-0",onClick:e,children:p.jsx(ST,{className:"h-4 w-4"})}),p.jsx(Xa,{to:"/",className:"hover:opacity-80 shrink-0",children:p.jsx(Qe,{variant:"ghost",size:"icon",className:"h-8 w-8",children:p.jsx(hC,{className:"h-4 w-4"})})}),p.jsx("span",{className:"text-sm font-semibold truncate",children:t.info.title})]}),p.jsx("div",{className:"hidden md:block h-4 w-px bg-border shrink-0"}),p.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[p.jsx("div",{className:"flex-1 min-w-0",children:s?p.jsxs(Zs,{open:d,onOpenChange:c,children:[p.jsx(Qs,{asChild:!0,children:p.jsxs(Qe,{variant:"outline",role:"combobox","aria-expanded":d,className:"w-full font-mono text-sm justify-between px-3",children:[p.jsx("span",{className:"truncate",children:n}),p.jsx(qa,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),p.jsx(ao,{className:"p-0 w-[--radix-popover-trigger-width]",align:"start",children:p.jsx(Ql,{children:p.jsx(Jl,{children:p.jsx(eu,{children:o.map(T=>p.jsxs(tu,{value:T.url,onSelect:()=>g(T),children:[p.jsx(Er,{className:Ee("mr-2 h-4 w-4 shrink-0",(l==null?void 0:l.url)===T.url?"opacity-100":"opacity-0")}),p.jsxs("div",{className:"min-w-0",children:[p.jsx("p",{className:"font-mono text-sm truncate",children:T.url}),T.description&&p.jsx("p",{className:"text-xs text-muted-foreground truncate",children:T.description})]})]},T.url))})})})})]}):p.jsx(Pt,{value:n,readOnly:!0,className:"font-mono text-sm bg-muted/50"})}),h&&(l==null?void 0:l.variables)&&p.jsxs(Zs,{open:f,onOpenChange:m,children:[p.jsx(Qs,{asChild:!0,children:p.jsx(Qe,{variant:"outline",size:"icon",className:"shrink-0",children:p.jsx(vC,{className:"h-4 w-4"})})}),p.jsx(ao,{className:"w-72",align:"end",children:p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-xs font-medium text-muted-foreground mb-1",children:"Variables"}),p.jsx("p",{className:"font-mono text-xs break-all text-foreground/70",children:n})]}),p.jsx("div",{className:"space-y-3",children:Object.entries(l.variables).map(([T,v])=>p.jsxs("div",{className:"space-y-1",children:[p.jsxs("label",{className:"text-sm font-medium flex items-center gap-2",children:[p.jsx("span",{className:"font-mono",children:`{${T}}`}),v.description&&p.jsx("span",{className:"text-xs text-muted-foreground font-sans",children:v.description})]}),v.enum?p.jsxs(En,{value:a[T]??v.default,onValueChange:S=>b(T,S),children:[p.jsx(tn,{className:"h-8 text-sm",children:p.jsx(yn,{})}),p.jsx(nn,{children:v.enum.map(S=>p.jsx(rn,{value:S,children:S},S))})]}):p.jsx(Pt,{value:a[T]??v.default,onChange:S=>b(T,S.target.value),className:"h-8 text-sm font-mono"})]},T))})]})})]}),p.jsx("div",{className:"shrink-0",children:p.jsx(m1,{securitySchemes:(E=t.components)==null?void 0:E.securitySchemes})})]})]})})};function Se({className:e,...t}){return p.jsx("div",{className:Ee("animate-pulse rounded-md bg-muted",e),...t})}const iz=()=>p.jsxs("div",{className:"w-full h-full flex flex-col",children:[p.jsx("div",{className:"px-3 py-3 border-b",children:p.jsx(Se,{className:"h-8 w-full rounded-md"})}),p.jsx("div",{className:"flex-grow py-2 px-2 space-y-4",children:[1,2,3,4].map(e=>p.jsxs("div",{className:"space-y-2",children:[p.jsx(Se,{className:"h-10 w-full rounded-lg"}),p.jsx("div",{className:"space-y-2 pl-4",children:[1,2,3].map(t=>p.jsxs("div",{className:"flex items-center space-x-2 p-2",children:[p.jsx(Se,{className:"h-6 w-14 rounded shrink-0"}),p.jsxs("div",{className:"flex-1 space-y-1",children:[p.jsx(Se,{className:"h-4 w-3/4"}),p.jsx(Se,{className:"h-3 w-1/2"})]})]},t))})]},e))}),p.jsx("div",{className:"mt-auto border-t p-4",children:p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx(Se,{className:"h-4 w-16"}),p.jsx(Se,{className:"h-6 w-10 rounded-full"})]})})]}),In=x.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Ee("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));In.displayName="Card";const Gi=x.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Ee("flex flex-col space-y-1.5 p-6",e),...t}));Gi.displayName="CardHeader";const mN=x.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Ee("text-2xl font-semibold leading-none tracking-tight",e),...t}));mN.displayName="CardTitle";const oz=x.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Ee("text-sm text-muted-foreground",e),...t}));oz.displayName="CardDescription";const Vi=x.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Ee("p-6 pt-0",e),...t}));Vi.displayName="CardContent";const sz=x.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Ee("flex items-center p-6 pt-0",e),...t}));sz.displayName="CardFooter";const lz=()=>p.jsxs(In,{className:"w-full rounded-none border-x-0 border-t-0 md:rounded-lg md:border",children:[p.jsxs("div",{className:"flex flex-wrap items-center gap-3 px-6 py-4 border-b",children:[p.jsx(Se,{className:"h-8 w-20 rounded-md shrink-0"}),p.jsxs("div",{className:"flex-1 min-w-0 space-y-1",children:[p.jsx(Se,{className:"h-5 w-64 max-w-full"}),p.jsx(Se,{className:"h-4 w-40 max-w-full"})]})]}),p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-y-8 lg:gap-y-0 p-4",children:[p.jsxs("div",{className:"lg:col-span-3 lg:pr-6 space-y-8",children:[p.jsxs("section",{className:"space-y-3",children:[p.jsx(Se,{className:"h-4 w-full"}),p.jsx(Se,{className:"h-4 w-11/12"}),p.jsx(Se,{className:"h-4 w-3/4"})]}),p.jsxs("section",{className:"space-y-3 pt-8 border-t border-border",children:[p.jsx(Se,{className:"h-3 w-20"}),p.jsx("div",{className:"border rounded-lg border-slate-200 dark:border-slate-700 divide-y divide-slate-100 dark:divide-slate-800",children:[1,2,3].map(e=>p.jsxs("div",{className:"flex items-center gap-3 p-3",children:[p.jsx(Se,{className:"h-4 w-24"}),p.jsx(Se,{className:"h-4 w-12 rounded-full"}),p.jsx(Se,{className:"h-4 w-16 rounded-full"})]},e))})]})]}),p.jsxs("div",{className:"lg:col-span-2 lg:border-l lg:border-border lg:pl-6 space-y-8",children:[p.jsxs("section",{className:"space-y-4",children:[p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx(Se,{className:"h-5 w-32"}),p.jsx(Se,{className:"h-9 w-32"})]}),p.jsx("div",{className:"space-y-2 bg-muted rounded-lg p-4",children:[1,2,3,4,5].map(e=>p.jsx(Se,{className:"h-4 w-full"},e))})]}),p.jsxs("section",{className:"space-y-3 pt-8 border-t border-border",children:[p.jsx(Se,{className:"h-3 w-20"}),p.jsx("div",{className:"flex gap-2",children:[1,2,3].map(e=>p.jsx(Se,{className:"h-8 flex-1 rounded-md"},e))}),p.jsxs("div",{className:"space-y-2 mt-4",children:[p.jsx(Se,{className:"h-4 w-full"}),p.jsx(Se,{className:"h-4 w-5/6"})]})]})]})]})]}),uz=()=>p.jsxs(In,{className:"w-full rounded-none border-x-0 border-t-0 md:rounded-lg md:border",children:[p.jsx(Gi,{className:"pb-4",children:p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3 sm:gap-6",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx(Se,{className:"h-8 w-48"}),p.jsxs("div",{className:"flex gap-2",children:[p.jsx(Se,{className:"h-6 w-16 rounded-full"}),p.jsx(Se,{className:"h-6 w-16 rounded-full"})]})]}),p.jsxs("div",{className:"flex flex-wrap gap-3",children:[p.jsx(Se,{className:"h-4 w-24"}),p.jsx(Se,{className:"h-4 w-20"})]})]})}),p.jsxs(Vi,{children:[p.jsxs("div",{className:"grid lg:grid-cols-2 gap-4 mb-4",children:[p.jsxs(In,{children:[p.jsx(Gi,{className:"pb-2",children:p.jsx(Se,{className:"h-6 w-24"})}),p.jsx(Vi,{children:p.jsxs("div",{className:"space-y-4",children:[p.jsx(Se,{className:"h-10 w-full"}),p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 sm:gap-8",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsx(Se,{className:"h-4 w-24"}),p.jsx(Se,{className:"h-10 w-full"})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx(Se,{className:"h-4 w-24"}),p.jsx(Se,{className:"h-10 w-full"})]})]})]})})]}),p.jsxs(In,{children:[p.jsx(Gi,{className:"pb-2",children:p.jsx(Se,{className:"h-6 w-32"})}),p.jsx(Vi,{children:p.jsxs("div",{className:"space-y-4",children:[p.jsx(Se,{className:"h-10 w-full"}),p.jsx(Se,{className:"h-24 w-full"})]})})]})]}),p.jsx("div",{className:"space-y-2 mt-4",children:[1,2,3,4].map(e=>p.jsx(Se,{className:"h-4 w-full"},e))})]})]}),cz=()=>{const t=Yd().pathname==="/";return p.jsx("div",{className:"h-screen flex flex-col",children:p.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[p.jsx("div",{className:"hidden md:block md:w-80 border-r sticky top-0 h-screen overflow-y-auto",children:p.jsx(iz,{})}),p.jsxs("div",{className:"flex-1 overflow-y-auto flex flex-col min-w-0",children:[t?p.jsxs("div",{className:"md:hidden bg-muted/60 shadow-sm px-4 py-2 flex items-center gap-2",children:[p.jsx(Se,{className:"h-8 w-8 rounded-md shrink-0"}),p.jsx(Se,{className:"h-4 w-36"})]}):p.jsxs("div",{className:"bg-muted/60 shadow-sm px-4 py-2 flex flex-col md:flex-row md:h-16 md:items-center gap-2 md:gap-3",children:[p.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[p.jsx(Se,{className:"md:hidden h-8 w-8 rounded-md"}),p.jsx(Se,{className:"h-8 w-8 rounded-md"}),p.jsx(Se,{className:"h-4 w-36"})]}),p.jsxs("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[p.jsx(Se,{className:"h-10 flex-1"}),p.jsx(Se,{className:"h-10 w-24 shrink-0"})]})]}),p.jsx("div",{className:"p-0 md:p-4 flex-1",children:t?p.jsx(uz,{}):p.jsx(lz,{})})]})]})})};var dz=(e,t,n,r,a,i,o,s)=>{let l=document.documentElement,u=["light","dark"];function d(m){(Array.isArray(e)?e:[e]).forEach(h=>{let g=h==="class",b=g&&i?a.map(E=>i[E]||E):a;g?(l.classList.remove(...b),l.classList.add(i&&i[m]?i[m]:m)):l.setAttribute(h,m)}),c(m)}function c(m){s&&u.includes(m)&&(l.style.colorScheme=m)}function f(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)d(r);else try{let m=localStorage.getItem(t)||n,h=o&&m==="system"?f():m;d(h)}catch{}},pz=x.createContext(void 0),fz={setTheme:e=>{},themes:[]},mz=()=>{var e;return(e=x.useContext(pz))!=null?e:fz};x.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultTheme:i,value:o,themes:s,nonce:l,scriptProps:u})=>{let d=JSON.stringify([n,t,i,e,s,o,r,a]).slice(1,-1);return x.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${dz.toString()})(${d})`}})});const hz=({...e})=>{const{theme:t="system"}=mz();return p.jsx(JI,{theme:t,className:"toaster group",icons:{success:p.jsx(yT,{className:"h-4 w-4"}),info:p.jsx(TT,{className:"h-4 w-4"}),warning:p.jsx(_T,{className:"h-4 w-4"}),error:p.jsx(yC,{className:"h-4 w-4"}),loading:p.jsx(Ya,{className:"h-4 w-4 animate-spin"})},toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},gz=({name:e,variable:t,value:n,onChange:r})=>{const[a,i]=R.useState(!1);return t.enum?p.jsxs(Zs,{open:a,onOpenChange:i,children:[p.jsx(Qs,{asChild:!0,children:p.jsxs(Qe,{variant:"outline",role:"combobox","aria-expanded":a,className:"w-full justify-between",children:[n||`Select ${e}`,p.jsx(qa,{className:"ml-2 h-4 w-4 opacity-50"})]})}),p.jsx(ao,{className:"p-0 w-[--radix-popover-trigger-width]",children:p.jsxs(Ql,{children:[p.jsx(i_,{placeholder:`Search ${e}...`}),p.jsxs(Jl,{children:[p.jsx(o0,{children:"No option found"}),p.jsx(eu,{children:t.enum.map(o=>p.jsxs(tu,{value:o,onSelect:()=>{r(e,o),i(!1)},children:[p.jsx(Er,{className:Ee("mr-2 h-4 w-4",n===o?"opacity-100":"opacity-0")}),o]},o))})]})]})})]}):p.jsx(Pt,{value:n,onChange:o=>r(e,o.target.value),placeholder:`Enter ${e}`})},bz=({servers:e})=>{const{computedUrl:t,setComputedUrl:n,serverVariables:r,setServerVariables:a}=lt(),[i,o]=R.useState(!1),s={url:"/",description:"Current instance"},l=e.length>0?e:[s],[u,d]=R.useState(l[0]),c=h=>{d(h),o(!1);let g=h.url==="/"?`${window.location.protocol}//${window.location.host}`:h.url;if(h.variables){const b={};Object.entries(h.variables).forEach(([E,T])=>{b[E]=T.default||"",g=g.replace(`{${E}}`,T.default||"")}),a(b)}else a({});n(g)},f=(h,g)=>{const b={...r,[h]:g};a(b);let E=u.url;Object.entries(b).forEach(([T,v])=>{E=E.replace(`{${T}}`,v)}),n(E)},m=(u==null?void 0:u.variables)&&Object.entries(u.variables).length>0;return p.jsxs("div",{className:"flex flex-col gap-4",children:[p.jsx("div",{className:"w-full",children:p.jsxs("div",{className:"relative",children:[p.jsxs(Zs,{open:i,onOpenChange:o,children:[p.jsx(Qs,{asChild:!0,children:p.jsxs(Qe,{variant:"outline",role:"combobox","aria-expanded":i,className:"w-full justify-between rounded-md",children:[(u==null?void 0:u.url)||"/",p.jsx(qa,{className:"ml-2 h-4 w-4 opacity-50"})]})}),p.jsx(ao,{className:"p-0 w-[--radix-popover-trigger-width]",children:p.jsx(Ql,{children:p.jsxs(Jl,{children:[p.jsx(o0,{children:"No server found"}),p.jsx(eu,{children:l.map(h=>p.jsxs(tu,{value:h.url,onSelect:()=>c(h),children:[p.jsx(Er,{className:Ee("mr-2 h-4 w-4",(u==null?void 0:u.url)===h.url?"opacity-100":"opacity-0")}),p.jsxs("div",{children:[p.jsx("p",{children:h.url}),h.description&&p.jsx("p",{className:"text-xs",children:h.description})]})]},h.url))})]})})})]}),t&&m&&p.jsxs("span",{className:"block text-xs mt-1",children:["Computed URL: ",t]})]})}),m&&p.jsx("div",{className:"px-2 max-h-96 overflow-y-auto",children:p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 sm:gap-8",children:Object.entries(u.variables??{}).map(([h,g])=>p.jsxs("div",{className:"space-y-2 my-2",children:[p.jsxs("label",{className:"ms-2 text-sm font-medium block",children:[h,g.description&&p.jsx("span",{className:"ml-2 text-xs",children:g.description})]}),p.jsx(gz,{name:h,variable:g,value:r[h]||g.default||"",onChange:f})]},h))})})]})},Ez=({securitySchemes:e})=>p.jsx("div",{className:"space-y-3",children:p.jsx(m1,{securitySchemes:e})});function yz(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ix(e){return yz(e)||Array.isArray(e)}function xz(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function c0(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const a=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return a!==i?!1:n.every(o=>{const s=e[o],l=t[o];return typeof s=="function"?`${s}`==`${l}`:!Ix(s)||!Ix(l)?s===l:c0(s,l)})}function Rx(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function Tz(e,t){if(e.length!==t.length)return!1;const n=Rx(e),r=Rx(t);return n.every((a,i)=>{const o=r[i];return c0(a,o)})}function d0(e){return typeof e=="number"}function _d(e){return typeof e=="string"}function ou(e){return typeof e=="boolean"}function Ox(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ze(e){return Math.abs(e)}function p0(e){return Math.sign(e)}function Wi(e,t){return Ze(e-t)}function vz(e,t){if(e===0||t===0||Ze(e)<=Ze(t))return 0;const n=Wi(Ze(e),Ze(t));return Ze(n/e)}function Sz(e){return Math.round(e*100)/100}function lo(e){return uo(e).map(Number)}function hn(e){return e[$o(e)]}function $o(e){return Math.max(0,e.length-1)}function f0(e,t){return t===$o(e)}function Dx(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function uo(e){return Object.keys(e)}function hN(e,t){return[e,t].reduce((n,r)=>(uo(r).forEach(a=>{const i=n[a],o=r[a],s=Ox(i)&&Ox(o);n[a]=s?hN(i,o):o}),n),{})}function Nd(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function Az(e,t){const n={start:r,center:a,end:i};function r(){return 0}function a(l){return i(l)/2}function i(l){return t-l}function o(l,u){return _d(e)?n[e](l):e(t,l,u)}return{measure:o}}function co(){let e=[];function t(a,i,o,s={passive:!0}){let l;if("addEventListener"in a)a.addEventListener(i,o,s),l=()=>a.removeEventListener(i,o,s);else{const u=a;u.addListener(o),l=()=>u.removeListener(o)}return e.push(l),r}function n(){e=e.filter(a=>a())}const r={add:t,clear:n};return r}function wz(e,t,n,r){const a=co(),i=1e3/60;let o=null,s=0,l=0;function u(){a.add(e,"visibilitychange",()=>{e.hidden&&h()})}function d(){m(),a.clear()}function c(b){if(!l)return;o||(o=b,n(),n());const E=b-o;for(o=b,s+=E;s>=i;)n(),s-=i;const T=s/i;r(T),l&&(l=t.requestAnimationFrame(c))}function f(){l||(l=t.requestAnimationFrame(c))}function m(){t.cancelAnimationFrame(l),o=null,s=0,l=0}function h(){o=null,s=0}return{init:u,destroy:d,start:f,stop:m,update:n,render:r}}function _z(e,t){const n=t==="rtl",r=e==="y",a=r?"y":"x",i=r?"x":"y",o=!r&&n?-1:1,s=d(),l=c();function u(h){const{height:g,width:b}=h;return r?g:b}function d(){return r?"top":n?"right":"left"}function c(){return r?"bottom":n?"left":"right"}function f(h){return h*o}return{scroll:a,cross:i,startEdge:s,endEdge:l,measureSize:u,direction:f}}function Kr(e=0,t=0){const n=Ze(e-t);function r(u){return u<e}function a(u){return u>t}function i(u){return r(u)||a(u)}function o(u){return i(u)?r(u)?e:t:u}function s(u){return n?u-n*Math.ceil((u-t)/n):u}return{length:n,max:t,min:e,constrain:o,reachedAny:i,reachedMax:a,reachedMin:r,removeOffset:s}}function gN(e,t,n){const{constrain:r}=Kr(0,e),a=e+1;let i=o(t);function o(f){return n?Ze((a+f)%a):r(f)}function s(){return i}function l(f){return i=o(f),c}function u(f){return d().set(s()+f)}function d(){return gN(e,s(),n)}const c={get:s,set:l,add:u,clone:d};return c}function Nz(e,t,n,r,a,i,o,s,l,u,d,c,f,m,h,g,b,E,T){const{cross:v,direction:S}=e,w=["INPUT","SELECT","TEXTAREA"],A={passive:!1},_=co(),D=co(),I=Kr(50,225).constrain(m.measure(20)),O={mouse:300,touch:400},M={mouse:500,touch:600},P=h?43:25;let j=!1,z=0,W=0,H=!1,X=!1,Z=!1,G=!1;function k($){if(!T)return;function re(pe){(ou(T)||T($,pe))&&K(pe)}const se=t;_.add(se,"dragstart",pe=>pe.preventDefault(),A).add(se,"touchmove",()=>{},A).add(se,"touchend",()=>{}).add(se,"touchstart",re).add(se,"mousedown",re).add(se,"touchcancel",J).add(se,"contextmenu",J).add(se,"click",oe,!0)}function ae(){_.clear(),D.clear()}function V(){const $=G?n:t;D.add($,"touchmove",Q,A).add($,"touchend",J).add($,"mousemove",Q,A).add($,"mouseup",J)}function N($){const re=$.nodeName||"";return w.includes(re)}function te(){return(h?M:O)[G?"mouse":"touch"]}function U($,re){const se=c.add(p0($)*-1),pe=d.byDistance($,!h).distance;return h||Ze($)<I?pe:b&&re?pe*.5:d.byIndex(se.get(),0).distance}function K($){const re=Nd($,r);G=re,Z=h&&re&&!$.buttons&&j,j=Wi(a.get(),o.get())>=2,!(re&&$.button!==0)&&(N($.target)||(H=!0,i.pointerDown($),u.useFriction(0).useDuration(0),a.set(o),V(),z=i.readPoint($),W=i.readPoint($,v),f.emit("pointerDown")))}function Q($){if(!Nd($,r)&&$.touches.length>=2)return J($);const se=i.readPoint($),pe=i.readPoint($,v),ye=Wi(se,z),be=Wi(pe,W);if(!X&&!G&&(!$.cancelable||(X=ye>be,!X)))return J($);const Le=i.pointerMove($);ye>g&&(Z=!0),u.useFriction(.3).useDuration(.75),s.start(),a.add(S(Le)),$.preventDefault()}function J($){const se=d.byDistance(0,!1).index!==c.get(),pe=i.pointerUp($)*te(),ye=U(S(pe),se),be=vz(pe,ye),Le=P-10*be,xe=E+be/50;X=!1,H=!1,D.clear(),u.useDuration(Le).useFriction(xe),l.distance(ye,!h),G=!1,f.emit("pointerUp")}function oe($){Z&&($.stopPropagation(),$.preventDefault(),Z=!1)}function de(){return H}return{init:k,destroy:ae,pointerDown:de}}function Cz(e,t){let r,a;function i(c){return c.timeStamp}function o(c,f){const h=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(Nd(c,t)?c:c.touches[0])[h]}function s(c){return r=c,a=c,o(c)}function l(c){const f=o(c)-o(a),m=i(c)-i(r)>170;return a=c,m&&(r=c),f}function u(c){if(!r||!a)return 0;const f=o(a)-o(r),m=i(c)-i(r),h=i(c)-i(a)>170,g=f/m;return m&&!h&&Ze(g)>.1?g:0}return{pointerDown:s,pointerMove:l,pointerUp:u,readPoint:o}}function kz(){function e(n){const{offsetTop:r,offsetLeft:a,offsetWidth:i,offsetHeight:o}=n;return{top:r,right:a+i,bottom:r+o,left:a,width:i,height:o}}return{measure:e}}function Iz(e){function t(r){return e*(r/100)}return{measure:t}}function Rz(e,t,n,r,a,i,o){const s=[e].concat(r);let l,u,d=[],c=!1;function f(b){return a.measureSize(o.measure(b))}function m(b){if(!i)return;u=f(e),d=r.map(f);function E(T){for(const v of T){if(c)return;const S=v.target===e,w=r.indexOf(v.target),A=S?u:d[w],_=f(S?e:r[w]);if(Ze(_-A)>=.5){b.reInit(),t.emit("resize");break}}}l=new ResizeObserver(T=>{(ou(i)||i(b,T))&&E(T)}),n.requestAnimationFrame(()=>{s.forEach(T=>l.observe(T))})}function h(){c=!0,l&&l.disconnect()}return{init:m,destroy:h}}function Oz(e,t,n,r,a,i){let o=0,s=0,l=a,u=i,d=e.get(),c=0;function f(){const A=r.get()-e.get(),_=!l;let D=0;return _?(o=0,n.set(r),e.set(r),D=A):(n.set(e),o+=A/l,o*=u,d+=o,e.add(o),D=d-c),s=p0(D),c=d,w}function m(){const A=r.get()-t.get();return Ze(A)<.001}function h(){return l}function g(){return s}function b(){return o}function E(){return v(a)}function T(){return S(i)}function v(A){return l=A,w}function S(A){return u=A,w}const w={direction:g,duration:h,velocity:b,seek:f,settled:m,useBaseFriction:T,useBaseDuration:E,useFriction:S,useDuration:v};return w}function Dz(e,t,n,r,a){const i=a.measure(10),o=a.measure(50),s=Kr(.1,.99);let l=!1;function u(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function d(m){if(!u())return;const h=e.reachedMin(t.get())?"min":"max",g=Ze(e[h]-t.get()),b=n.get()-t.get(),E=s.constrain(g/o);n.subtract(b*E),!m&&Ze(b)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function c(m){l=!m}return{shouldConstrain:u,constrain:d,toggleActive:c}}function Lz(e,t,n,r,a){const i=Kr(-t+e,0),o=c(),s=d(),l=f();function u(h,g){return Wi(h,g)<=1}function d(){const h=o[0],g=hn(o),b=o.lastIndexOf(h),E=o.indexOf(g)+1;return Kr(b,E)}function c(){return n.map((h,g)=>{const{min:b,max:E}=i,T=i.constrain(h),v=!g,S=f0(n,g);return v?E:S||u(b,T)?b:u(E,T)?E:T}).map(h=>parseFloat(h.toFixed(3)))}function f(){if(t<=e+a)return[i.max];if(r==="keepSnaps")return o;const{min:h,max:g}=s;return o.slice(h,g)}return{snapsContained:l,scrollContainLimit:s}}function Pz(e,t,n){const r=t[0],a=n?r-e:hn(t);return{limit:Kr(a,r)}}function Fz(e,t,n,r){const i=t.min+.1,o=t.max+.1,{reachedMin:s,reachedMax:l}=Kr(i,o);function u(f){return f===1?l(n.get()):f===-1?s(n.get()):!1}function d(f){if(!u(f))return;const m=e*(f*-1);r.forEach(h=>h.add(m))}return{loop:d}}function Mz(e){const{max:t,length:n}=e;function r(i){const o=i-t;return n?o/-n:0}return{get:r}}function Bz(e,t,n,r,a){const{startEdge:i,endEdge:o}=e,{groupSlides:s}=a,l=c().map(t.measure),u=f(),d=m();function c(){return s(r).map(g=>hn(g)[o]-g[0][i]).map(Ze)}function f(){return r.map(g=>n[i]-g[i]).map(g=>-Ze(g))}function m(){return s(u).map(g=>g[0]).map((g,b)=>g+l[b])}return{snaps:u,snapsAligned:d}}function Uz(e,t,n,r,a,i){const{groupSlides:o}=a,{min:s,max:l}=r,u=d();function d(){const f=o(i),m=!e||t==="keepSnaps";return n.length===1?[i]:m?f:f.slice(s,l).map((h,g,b)=>{const E=!g,T=f0(b,g);if(E){const v=hn(b[0])+1;return Dx(v)}if(T){const v=$o(i)-hn(b)[0]+1;return Dx(v,hn(b)[0])}return h})}return{slideRegistry:u}}function $z(e,t,n,r,a){const{reachedAny:i,removeOffset:o,constrain:s}=r;function l(h){return h.concat().sort((g,b)=>Ze(g)-Ze(b))[0]}function u(h){const g=e?o(h):s(h),b=t.map((T,v)=>({diff:d(T-g,0),index:v})).sort((T,v)=>Ze(T.diff)-Ze(v.diff)),{index:E}=b[0];return{index:E,distance:g}}function d(h,g){const b=[h,h+n,h-n];if(!e)return h;if(!g)return l(b);const E=b.filter(T=>p0(T)===g);return E.length?l(E):hn(b)-n}function c(h,g){const b=t[h]-a.get(),E=d(b,g);return{index:h,distance:E}}function f(h,g){const b=a.get()+h,{index:E,distance:T}=u(b),v=!e&&i(b);if(!g||v)return{index:E,distance:h};const S=t[E]-T,w=h+d(S,0);return{index:E,distance:w}}return{byDistance:f,byIndex:c,shortcut:d}}function jz(e,t,n,r,a,i,o){function s(c){const f=c.distance,m=c.index!==t.get();i.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),m&&(n.set(t.get()),t.set(c.index),o.emit("select"))}function l(c,f){const m=a.byDistance(c,f);s(m)}function u(c,f){const m=t.clone().set(c),h=a.byIndex(m.get(),f);s(h)}return{distance:l,index:u}}function Hz(e,t,n,r,a,i,o,s){const l={passive:!0,capture:!0};let u=0;function d(m){if(!s)return;function h(g){if(new Date().getTime()-u>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const T=n.findIndex(v=>v.includes(g));d0(T)&&(a.useDuration(0),r.index(T,0),o.emit("slideFocus"))}i.add(document,"keydown",c,!1),t.forEach((g,b)=>{i.add(g,"focus",E=>{(ou(s)||s(m,E))&&h(b)},l)})}function c(m){m.code==="Tab"&&(u=new Date().getTime())}return{init:d}}function ki(e){let t=e;function n(){return t}function r(l){t=o(l)}function a(l){t+=o(l)}function i(l){t-=o(l)}function o(l){return d0(l)?l:l.get()}return{get:n,set:r,add:a,subtract:i}}function bN(e,t){const n=e.scroll==="x"?o:s,r=t.style;let a=null,i=!1;function o(f){return`translate3d(${f}px,0px,0px)`}function s(f){return`translate3d(0px,${f}px,0px)`}function l(f){if(i)return;const m=Sz(e.direction(f));m!==a&&(r.transform=n(m),a=m)}function u(f){i=!f}function d(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:d,to:l,toggleActive:u}}function zz(e,t,n,r,a,i,o,s,l){const d=lo(a),c=lo(a).reverse(),f=E().concat(T());function m(_,D){return _.reduce((I,O)=>I-a[O],D)}function h(_,D){return _.reduce((I,O)=>m(I,D)>0?I.concat([O]):I,[])}function g(_){return i.map((D,I)=>({start:D-r[I]+.5+_,end:D+t-.5+_}))}function b(_,D,I){const O=g(D);return _.map(M=>{const P=I?0:-n,j=I?n:0,z=I?"end":"start",W=O[M][z];return{index:M,loopPoint:W,slideLocation:ki(-1),translate:bN(e,l[M]),target:()=>s.get()>W?P:j}})}function E(){const _=o[0],D=h(c,_);return b(D,n,!1)}function T(){const _=t-o[0]-1,D=h(d,_);return b(D,-n,!0)}function v(){return f.every(({index:_})=>{const D=d.filter(I=>I!==_);return m(D,t)<=.1})}function S(){f.forEach(_=>{const{target:D,translate:I,slideLocation:O}=_,M=D();M!==O.get()&&(I.to(M),O.set(M))})}function w(){f.forEach(_=>_.translate.clear())}return{canLoop:v,clear:w,loop:S,loopPoints:f}}function Gz(e,t,n){let r,a=!1;function i(l){if(!n)return;function u(d){for(const c of d)if(c.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(d=>{a||(ou(n)||n(l,d))&&u(d)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),a=!0}return{init:i,destroy:o}}function Vz(e,t,n,r){const a={};let i=null,o=null,s,l=!1;function u(){s=new IntersectionObserver(h=>{l||(h.forEach(g=>{const b=t.indexOf(g.target);a[b]=g}),i=null,o=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(h=>s.observe(h))}function d(){s&&s.disconnect(),l=!0}function c(h){return uo(a).reduce((g,b)=>{const E=parseInt(b),{isIntersecting:T}=a[E];return(h&&T||!h&&!T)&&g.push(E),g},[])}function f(h=!0){if(h&&i)return i;if(!h&&o)return o;const g=c(h);return h&&(i=g),h||(o=g),g}return{init:u,destroy:d,get:f}}function Wz(e,t,n,r,a,i){const{measureSize:o,startEdge:s,endEdge:l}=e,u=n[0]&&a,d=h(),c=g(),f=n.map(o),m=b();function h(){if(!u)return 0;const T=n[0];return Ze(t[s]-T[s])}function g(){if(!u)return 0;const T=i.getComputedStyle(hn(r));return parseFloat(T.getPropertyValue(`margin-${l}`))}function b(){return n.map((T,v,S)=>{const w=!v,A=f0(S,v);return w?f[v]+d:A?f[v]+c:S[v+1][s]-T[s]}).map(Ze)}return{slideSizes:f,slideSizesWithGaps:m,startGap:d,endGap:c}}function qz(e,t,n,r,a,i,o,s,l){const{startEdge:u,endEdge:d,direction:c}=e,f=d0(n);function m(E,T){return lo(E).filter(v=>v%T===0).map(v=>E.slice(v,v+T))}function h(E){return E.length?lo(E).reduce((T,v,S)=>{const w=hn(T)||0,A=w===0,_=v===$o(E),D=a[u]-i[w][u],I=a[u]-i[v][d],O=!r&&A?c(o):0,M=!r&&_?c(s):0,P=Ze(I-M-(D+O));return S&&P>t+l&&T.push(v),_&&T.push(E.length),T},[]).map((T,v,S)=>{const w=Math.max(S[v-1]||0);return E.slice(w,T)}):[]}function g(E){return f?m(E,n):h(E)}return{groupSlides:g}}function Yz(e,t,n,r,a,i,o){const{align:s,axis:l,direction:u,startIndex:d,loop:c,duration:f,dragFree:m,dragThreshold:h,inViewThreshold:g,slidesToScroll:b,skipSnaps:E,containScroll:T,watchResize:v,watchSlides:S,watchDrag:w,watchFocus:A}=i,_=2,D=kz(),I=D.measure(t),O=n.map(D.measure),M=_z(l,u),P=M.measureSize(I),j=Iz(P),z=Az(s,P),W=!c&&!!T,H=c||!!T,{slideSizes:X,slideSizesWithGaps:Z,startGap:G,endGap:k}=Wz(M,I,O,n,H,a),ae=qz(M,P,b,c,I,O,G,k,_),{snaps:V,snapsAligned:N}=Bz(M,z,I,O,ae),te=-hn(V)+hn(Z),{snapsContained:U,scrollContainLimit:K}=Lz(P,te,N,T,_),Q=W?U:N,{limit:J}=Pz(te,Q,c),oe=gN($o(Q),d,c),de=oe.clone(),ie=lo(n),$=({dragHandler:me,scrollBody:Fe,scrollBounds:$e,options:{loop:Ve}})=>{Ve||$e.constrain(me.pointerDown()),Fe.seek()},re=({scrollBody:me,translate:Fe,location:$e,offsetLocation:Ve,previousLocation:gt,scrollLooper:tt,slideLooper:rt,dragHandler:qe,animation:ut,eventHandler:Ut,scrollBounds:sn,options:{loop:wr}},di)=>{const pi=me.settled(),Ae=!sn.shouldConstrain(),at=wr?pi:pi&&Ae,ft=at&&!qe.pointerDown();ft&&ut.stop();const Dt=$e.get()*di+gt.get()*(1-di);Ve.set(Dt),wr&&(tt.loop(me.direction()),rt.loop()),Fe.to(Ve.get()),ft&&Ut.emit("settle"),at||Ut.emit("scroll")},se=wz(r,a,()=>$(he),me=>re(he,me)),pe=.68,ye=Q[oe.get()],be=ki(ye),Le=ki(ye),xe=ki(ye),Te=ki(ye),De=Oz(be,xe,Le,Te,f,pe),Be=$z(c,Q,te,J,Te),Me=jz(se,oe,de,De,Be,Te,o),Ue=Mz(J),Ce=co(),ee=Vz(t,n,o,g),{slideRegistry:q}=Uz(W,T,Q,K,ae,ie),ue=Hz(e,n,q,Me,De,Ce,o,A),he={ownerDocument:r,ownerWindow:a,eventHandler:o,containerRect:I,slideRects:O,animation:se,axis:M,dragHandler:Nz(M,e,r,a,Te,Cz(M,a),be,se,Me,De,Be,oe,o,j,m,h,E,pe,w),eventStore:Ce,percentOfView:j,index:oe,indexPrevious:de,limit:J,location:be,offsetLocation:xe,previousLocation:Le,options:i,resizeHandler:Rz(t,o,a,n,M,v,D),scrollBody:De,scrollBounds:Dz(J,xe,Te,De,j),scrollLooper:Fz(te,J,xe,[be,xe,Le,Te]),scrollProgress:Ue,scrollSnapList:Q.map(Ue.get),scrollSnaps:Q,scrollTarget:Be,scrollTo:Me,slideLooper:zz(M,P,te,X,Z,V,Q,xe,n),slideFocus:ue,slidesHandler:Gz(t,o,S),slidesInView:ee,slideIndexes:ie,slideRegistry:q,slidesToScroll:ae,target:Te,translate:bN(M,t)};return he}function Kz(){let e={},t;function n(u){t=u}function r(u){return e[u]||[]}function a(u){return r(u).forEach(d=>d(t,u)),l}function i(u,d){return e[u]=r(u).concat([d]),l}function o(u,d){return e[u]=r(u).filter(c=>c!==d),l}function s(){e={}}const l={init:n,emit:a,off:o,on:i,clear:s};return l}const Xz={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 Zz(e){function t(i,o){return hN(i,o||{})}function n(i){const o=i.breakpoints||{},s=uo(o).filter(l=>e.matchMedia(l).matches).map(l=>o[l]).reduce((l,u)=>t(l,u),{});return t(i,s)}function r(i){return i.map(o=>uo(o.breakpoints||{})).reduce((o,s)=>o.concat(s),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function Qz(e){let t=[];function n(i,o){return t=o.filter(({options:s})=>e.optionsAtMedia(s).active!==!1),t.forEach(s=>s.init(i,e)),o.reduce((s,l)=>Object.assign(s,{[l.name]:l}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function el(e,t,n){const r=e.ownerDocument,a=r.defaultView,i=Zz(a),o=Qz(i),s=co(),l=Kz(),{mergeOptions:u,optionsAtMedia:d,optionsMediaQueries:c}=i,{on:f,off:m,emit:h}=l,g=M;let b=!1,E,T=u(Xz,el.globalOptions),v=u(T),S=[],w,A,_;function D(){const{container:ie,slides:$}=v;A=(_d(ie)?e.querySelector(ie):ie)||e.children[0];const se=_d($)?A.querySelectorAll($):$;_=[].slice.call(se||A.children)}function I(ie){const $=Yz(e,A,_,r,a,ie,l);if(ie.loop&&!$.slideLooper.canLoop()){const re=Object.assign({},ie,{loop:!1});return I(re)}return $}function O(ie,$){b||(T=u(T,ie),v=d(T),S=$||S,D(),E=I(v),c([T,...S.map(({options:re})=>re)]).forEach(re=>s.add(re,"change",M)),v.active&&(E.translate.to(E.location.get()),E.animation.init(),E.slidesInView.init(),E.slideFocus.init(de),E.eventHandler.init(de),E.resizeHandler.init(de),E.slidesHandler.init(de),E.options.loop&&E.slideLooper.loop(),A.offsetParent&&_.length&&E.dragHandler.init(de),w=o.init(de,S)))}function M(ie,$){const re=ae();P(),O(u({startIndex:re},ie),$),l.emit("reInit")}function P(){E.dragHandler.destroy(),E.eventStore.clear(),E.translate.clear(),E.slideLooper.clear(),E.resizeHandler.destroy(),E.slidesHandler.destroy(),E.slidesInView.destroy(),E.animation.destroy(),o.destroy(),s.clear()}function j(){b||(b=!0,s.clear(),P(),l.emit("destroy"),l.clear())}function z(ie,$,re){!v.active||b||(E.scrollBody.useBaseFriction().useDuration($===!0?0:v.duration),E.scrollTo.index(ie,re||0))}function W(ie){const $=E.index.add(1).get();z($,ie,-1)}function H(ie){const $=E.index.add(-1).get();z($,ie,1)}function X(){return E.index.add(1).get()!==ae()}function Z(){return E.index.add(-1).get()!==ae()}function G(){return E.scrollSnapList}function k(){return E.scrollProgress.get(E.offsetLocation.get())}function ae(){return E.index.get()}function V(){return E.indexPrevious.get()}function N(){return E.slidesInView.get()}function te(){return E.slidesInView.get(!1)}function U(){return w}function K(){return E}function Q(){return e}function J(){return A}function oe(){return _}const de={canScrollNext:X,canScrollPrev:Z,containerNode:J,internalEngine:K,destroy:j,off:m,on:f,emit:h,plugins:U,previousScrollSnap:V,reInit:g,rootNode:Q,scrollNext:W,scrollPrev:H,scrollProgress:k,scrollSnapList:G,scrollTo:z,selectedScrollSnap:ae,slideNodes:oe,slidesInView:N,slidesNotInView:te};return O(t,n),setTimeout(()=>l.emit("init"),0),de}el.globalOptions=void 0;function m0(e={},t=[]){const n=R.useRef(e),r=R.useRef(t),[a,i]=R.useState(),[o,s]=R.useState(),l=R.useCallback(()=>{a&&a.reInit(n.current,r.current)},[a]);return R.useEffect(()=>{c0(n.current,e)||(n.current=e,l())},[e,l]),R.useEffect(()=>{Tz(r.current,t)||(r.current=t,l())},[t,l]),R.useEffect(()=>{if(xz()&&o){el.globalOptions=m0.globalOptions;const u=el(o,n.current,r.current);return i(u),()=>u.destroy()}else i(void 0)},[o,i]),[s,a]}m0.globalOptions=void 0;const EN=x.createContext(null);function su(){const e=x.useContext(EN);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const yN=x.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:a,children:i,...o},s)=>{const[l,u]=m0({...t,axis:e==="horizontal"?"x":"y"},r),[d,c]=x.useState(!1),[f,m]=x.useState(!1),[h,g]=x.useState(!1),b=x.useCallback(S=>{S&&(m(S.canScrollPrev()),g(S.canScrollNext()),c(S.scrollSnapList().length>1))},[]),E=x.useCallback(()=>{u==null||u.scrollPrev()},[u]),T=x.useCallback(()=>{u==null||u.scrollNext()},[u]),v=x.useCallback(S=>{S.key==="ArrowLeft"?(S.preventDefault(),E()):S.key==="ArrowRight"&&(S.preventDefault(),T())},[E,T]);return x.useEffect(()=>{!u||!n||n(u)},[u,n]),x.useEffect(()=>{if(u)return b(u),u.on("reInit",b),u.on("select",b),()=>{u==null||u.off("select",b)}},[u,b]),p.jsx(EN.Provider,{value:{carouselRef:l,api:u,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:E,scrollNext:T,canScrollPrev:f,canScrollNext:h,canScroll:d},children:p.jsx("div",{ref:s,onKeyDownCapture:v,className:Ee("relative",a),role:"region","aria-roledescription":"carousel",...o,children:i})})});yN.displayName="Carousel";const xN=x.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:a}=su();return p.jsx("div",{ref:r,className:"overflow-hidden",children:p.jsx("div",{ref:n,className:Ee("flex",a==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});xN.displayName="CarouselContent";const Cd=x.forwardRef(({className:e,...t},n)=>{const{orientation:r}=su();return p.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:Ee("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});Cd.displayName="CarouselItem";const TN=x.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},a)=>{const{orientation:i,scrollPrev:o,canScrollPrev:s,canScroll:l}=su();return l?p.jsxs(Qe,{ref:a,variant:t,size:n,className:Ee("absolute h-8 w-8 rounded-full",i==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!s,onClick:o,...r,children:[p.jsx(dC,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Previous slide"})]}):null});TN.displayName="CarouselPrevious";const vN=x.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},a)=>{const{orientation:i,scrollNext:o,canScrollNext:s,canScroll:l}=su();return l?p.jsxs(Qe,{ref:a,variant:t,size:n,className:Ee("absolute h-8 w-8 rounded-full",i==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!s,onClick:o,...r,children:[p.jsx(ET,{className:"h-4 w-4"}),p.jsx("span",{className:"sr-only",children:"Next slide"})]}):null});vN.displayName="CarouselNext";var Jz={};function Mr(){return Mr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mr.apply(this,arguments)}var eG=.996,tG=function(t,n){return n===void 0&&(n=eG),t*n/(1-n)};function nG(e){return e[e.length-1]}function rG(e){return e.reduce(function(t,n){return t+n})/e.length}var aG=function(t,n,r){return Math.min(Math.max(n,t),r)};function Ec(e,t){if(e.length!==t.length)throw new Error("vectors must be same length");return e.map(function(n,r){return n+t[r]})}function Lx(e){return Math.max.apply(Math,e.map(Math.abs))}function Va(e){return Object.freeze(e),Object.values(e).forEach(function(t){t!==null&&typeof t=="object"&&!Object.isFrozen(t)&&Va(t)}),e}function iG(){var e={};function t(a,i){return e[a]=(e[a]||[]).concat(i),function(){return n(a,i)}}function n(a,i){e[a]=(e[a]||[]).filter(function(o){return o!==i})}function r(a,i){a in e&&e[a].forEach(function(o){return o(i)})}return Va({on:t,off:n,dispatch:r})}function oG(e){var t=[],n=function(o){return o.addEventListener("wheel",e,{passive:!1}),t.push(o),function(){return r(o)}},r=function(o){o.removeEventListener("wheel",e),t=t.filter(function(s){return s!==o})},a=function(){t.forEach(r)};return Va({observe:n,unobserve:r,disconnect:a})}var sG=16*1.125,lG=typeof window<"u"&&window.innerHeight||800,yc=[1,sG,lG];function uG(e){var t=e.deltaX*yc[e.deltaMode],n=e.deltaY*yc[e.deltaMode],r=(e.deltaZ||0)*yc[e.deltaMode];return{timeStamp:e.timeStamp,axisDelta:[t,n,r]}}var cG=[-1,-1,-1];function dG(e,t){if(!t)return e;var n=t===!0?cG:t.map(function(r){return r?-1:1});return Mr({},e,{axisDelta:e.axisDelta.map(function(r,a){return r*n[a]})})}var Px=700,pG=function(t){return Mr({},t,{axisDelta:t.axisDelta.map(function(n){return aG(n,-Px,Px)})})},xc=Jz.NODE_ENV!=="production",fG=.6,mG=.96,hG=2,Fx=5,Mx=Va({preventWheelAction:!0,reverseSign:[!0,!0,!1]}),gG=400;function Bx(){return{isStarted:!1,isStartPublished:!1,isMomentum:!1,startTime:0,lastAbsDelta:1/0,axisMovement:[0,0,0],axisVelocity:[0,0,0],accelerationFactors:[],scrollPoints:[],scrollPointsToMerge:[],willEndTimeout:gG}}function bG(e){e===void 0&&(e={});var t=iG(),n=t.on,r=t.off,a=t.dispatch,i=Mx,o=Bx(),s,l=!1,u,d=function(z){Array.isArray(z)?z.forEach(function(W){return h(W)}):h(z)},c=function(z){return z===void 0&&(z={}),Object.values(z).some(function(W){return W==null})?(xc&&console.error("updateOptions ignored! undefined & null options not allowed"),i):i=Va(Mr({},Mx,i,z))},f=function(z){var W=Mr({event:s,isStart:!1,isEnding:!1,isMomentumCancel:!1,isMomentum:o.isMomentum,axisDelta:[0,0,0],axisVelocity:o.axisVelocity,axisMovement:o.axisMovement,get axisMovementProjection(){return Ec(W.axisMovement,W.axisVelocity.map(function(H){return tG(H)}))}},z);a("wheel",Mr({},W,{previous:u})),u=W},m=function(z,W){var H=i,X=H.preventWheelAction,Z=W[0],G=W[1],k=W[2];if(typeof X=="boolean")return X;switch(X){case"x":return Math.abs(Z)>=z;case"y":return Math.abs(G)>=z;case"z":return Math.abs(k)>=z;default:return xc&&console.warn("unsupported preventWheelAction value: "+X,"warn"),!1}},h=function(z){var W=pG(dG(uG(z),i.reverseSign)),H=W.axisDelta,X=W.timeStamp,Z=Lx(H);if(z.preventDefault&&m(Z,H)&&z.preventDefault(),o.isStarted?o.isMomentum&&Z>Math.max(2,o.lastAbsDelta*2)&&(D(!0),A()):A(),Z===0&&Object.is&&Object.is(z.deltaX,-0)){l=!0;return}s=z,o.axisMovement=Ec(o.axisMovement,H),o.lastAbsDelta=Z,o.scrollPointsToMerge.push({axisDelta:H,timeStamp:X}),g(),f({axisDelta:H,isStart:!o.isStartPublished}),o.isStartPublished=!0,_()},g=function(){o.scrollPointsToMerge.length===hG?(o.scrollPoints.unshift({axisDeltaSum:o.scrollPointsToMerge.map(function(z){return z.axisDelta}).reduce(Ec),timeStamp:rG(o.scrollPointsToMerge.map(function(z){return z.timeStamp}))}),E(),o.scrollPointsToMerge.length=0,o.scrollPoints.length=1,o.isMomentum||S()):o.isStartPublished||b()},b=function(){o.axisVelocity=nG(o.scrollPointsToMerge).axisDelta.map(function(z){return z/o.willEndTimeout})},E=function(){var z=o.scrollPoints,W=z[0],H=z[1];if(!(!H||!W)){var X=W.timeStamp-H.timeStamp;if(X<=0){xc&&console.warn("invalid deltaTime");return}var Z=W.axisDeltaSum.map(function(k){return k/X}),G=Z.map(function(k,ae){return k/(o.axisVelocity[ae]||1)});o.axisVelocity=Z,o.accelerationFactors.push(G),T(X)}},T=function(z){var W=Math.ceil(z/10)*10*1.2;o.isMomentum||(W=Math.max(100,W*2)),o.willEndTimeout=Math.min(1e3,Math.round(W))},v=function(z){return z===0?!0:z<=mG&&z>=fG},S=function(){if(o.accelerationFactors.length>=Fx){if(l&&(l=!1,Lx(o.axisVelocity)>=.2)){w();return}var z=o.accelerationFactors.slice(Fx*-1),W=z.every(function(H){var X=!!H.reduce(function(G,k){return G&&G<1&&G===k?1:0}),Z=H.filter(v).length===H.length;return X||Z});W&&w(),o.accelerationFactors=z}},w=function(){o.isMomentum=!0},A=function(){o=Bx(),o.isStarted=!0,o.startTime=Date.now(),u=void 0,l=!1},_=function(){var j;return function(){clearTimeout(j),j=setTimeout(D,o.willEndTimeout)}}(),D=function(z){z===void 0&&(z=!1),o.isStarted&&(o.isMomentum&&z?f({isEnding:!0,isMomentumCancel:!0}):f({isEnding:!0}),o.isMomentum=!1,o.isStarted=!1)},I=oG(d),O=I.observe,M=I.unobserve,P=I.disconnect;return c(e),Va({on:n,off:r,observe:O,unobserve:M,disconnect:P,feedWheel:d,updateOptions:c})}var EG={},yG={active:!0,breakpoints:{},wheelDraggingClass:"is-wheel-dragging",forceWheelAxis:void 0,target:void 0};h0.globalOptions=void 0;var xG=EG.NODE_ENV!=="production";function h0(e){e===void 0&&(e={});var t,n=function(){};function r(i,o){var s,l,u=o.mergeOptions,d=o.optionsAtMedia,c=u(yG,h0.globalOptions),f=u(c,e);t=d(f);var m=i.internalEngine(),h=(s=t.target)!=null?s:i.containerNode().parentNode,g=(l=t.forceWheelAxis)!=null?l:m.options.axis,b=bG({preventWheelAction:g,reverseSign:[!0,!0,!1]});function E(){_=(g==="x"?m.containerRect.width:m.containerRect.height)/2}var T=b.observe(h),v=b.on("wheel",Z),S=!1,w,A=0,_=0,D=!1;E(),i.on("resize",E);function I(G){try{w=new MouseEvent("mousedown",G.event),W(w)}catch{return xG&&console.warn("Legacy browser requires events-polyfill (https://github.com/xiel/embla-carousel-wheel-gestures#legacy-browsers)"),n()}S=!0,A=0,M(),t.wheelDraggingClass&&h.classList.add(t.wheelDraggingClass)}function O(G){S=!1,W(z("mouseup",G)),P(),t.wheelDraggingClass&&h.classList.remove(t.wheelDraggingClass)}function M(){document.documentElement.addEventListener("mousemove",j,!0),document.documentElement.addEventListener("mouseup",j,!0),document.documentElement.addEventListener("mousedown",j,!0)}function P(){document.documentElement.removeEventListener("mousemove",j,!0),document.documentElement.removeEventListener("mouseup",j,!0),document.documentElement.removeEventListener("mousedown",j,!0)}function j(G){S&&G.isTrusted&&G.stopImmediatePropagation()}function z(G,k){var ae,V;if(g===m.options.axis){var N=k.axisMovement;ae=N[0],V=N[1]}else{var te=k.axisMovement;V=te[0],ae=te[1]}var U=H(k),K=U.isAtBoundary;if(K){var Q=Math.min(A/_,1),J=.25+Q*.5,oe=ae>0?-1:1,de=A*oe,ie=de*J;ae+=ie,V+=ie}if(!m.options.skipSnaps&&!m.options.dragFree){var $=m.containerRect.width,re=m.containerRect.height;ae=ae<0?Math.max(ae,-$):Math.min(ae,$),V=V<0?Math.max(V,-re):Math.min(V,re)}return new MouseEvent(G,{clientX:w.clientX+ae,clientY:w.clientY+V,screenX:w.screenX+ae,screenY:w.screenY+V,movementX:ae,movementY:V,button:0,bubbles:!0,cancelable:!0,composed:!0})}function W(G){i.containerNode().dispatchEvent(G)}function H(G){var k=G.axisDelta,ae=k[0],V=k[1],N=i.scrollProgress(),te=N<1,U=N>0,K=g==="x"?ae:V,Q=K<0,J=K>0,oe=Q&&!te||J&&!U;return{isAtBoundary:oe,primaryAxisDelta:K}}function X(G){var k=H(G),ae=k.isAtBoundary,V=k.primaryAxisDelta;if(ae&&!G.isMomentum){if(A+=Math.abs(V),A>_)return D=!0,O(G),!0}else A=0;return!1}function Z(G){var k=G.axisDelta,ae=k[0],V=k[1],N=g==="x"?ae:V,te=g==="x"?V:ae,U=G.isMomentum&&G.previous&&!G.previous.isMomentum,K=G.isEnding&&!G.isMomentum||U,Q=Math.abs(N)>Math.abs(te);Q&&!S&&!G.isMomentum&&!D&&I(G),D&&G.isEnding&&(D=!1),S&&(X(G)||(K?O(G):W(z("mousemove",G))))}n=function(){T(),v(),i.off("resize",E),P()}}var a={name:"wheelGestures",options:e,init:r,destroy:function(){return n()}};return a}const TG=({tag:e,endpoints:t,meta:n})=>p.jsxs("div",{className:"rounded-lg border border-border/60 bg-background p-3 space-y-2 h-full flex flex-col",children:[p.jsxs("div",{className:"pb-1.5 border-b border-border/40 shrink-0",children:[p.jsxs("div",{className:"flex items-center justify-between gap-2",children:[p.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[p.jsx("span",{className:"text-sm font-semibold truncate",children:e}),(n==null?void 0:n.externalDocs)&&p.jsx("a",{href:n.externalDocs.url,target:"_blank",rel:"noopener noreferrer",title:n.externalDocs.description??"External docs",onClick:r=>r.stopPropagation(),className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:p.jsx(dr,{className:"h-2.5 w-2.5"})})]}),p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4 font-normal shrink-0",children:t.length})]}),(n==null?void 0:n.description)&&p.jsx("p",{className:"text-[11px] text-muted-foreground mt-0.5 truncate",children:n.description})]}),p.jsx("div",{className:"space-y-0.5 overflow-y-auto max-h-48 scrollbar-thin",children:t.map(r=>p.jsxs(Xa,{to:"/$tag/$operationIdentifier",params:{tag:e,operationIdentifier:Wa(r)},className:"flex items-center gap-2 rounded px-1 py-1 hover:bg-muted transition-colors group",children:[p.jsx(ge,{className:`${Zr(r.method)} text-white uppercase w-12 flex justify-center items-center shrink-0 text-[9px]`,children:r.method}),p.jsx("span",{className:"truncate text-xs text-muted-foreground group-hover:text-foreground font-mono transition-colors",children:r.path})]},`${r.method}-${r.path}`))})]}),vG=()=>{var a;const{spec:e}=lt(),t=R.useMemo(()=>Object.entries(nl(e.paths)),[e.paths]),n=R.useMemo(()=>{var o;const i=new Map;return(o=e.tags)==null||o.forEach(s=>i.set(s.name,{description:s.description,externalDocs:s.externalDocs})),i},[e.tags]),r=Object.keys(((a=e.components)==null?void 0:a.schemas)??{}).length;return t.length===0&&r===0?null:p.jsxs("div",{className:"rounded-xl bg-muted/50 p-4 space-y-3",children:[p.jsxs("h3",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground flex items-center gap-1.5",children:[p.jsx(AC,{className:"h-3.5 w-3.5"}),"Endpoints"]}),p.jsxs(yN,{opts:{loop:!0,align:"start",dragFree:!0,slidesToScroll:2},plugins:[h0()],className:"w-full",children:[p.jsxs(xN,{className:"-ml-3",children:[t.map(([i,o])=>p.jsx(Cd,{className:"pl-3 basis-[min(calc(50%-6px),300px)]",children:p.jsx(TG,{tag:i,endpoints:o,meta:n.get(i)})},i)),r>0&&p.jsx(Cd,{className:"pl-3 basis-[min(calc(50%-6px),300px)]",children:p.jsxs(Xa,{to:"/models",className:"flex flex-col items-center justify-center gap-3 rounded-lg border border-border/60 bg-background p-3 h-full min-h-[120px] hover:bg-muted/50 transition-colors group",children:[p.jsx($d,{className:"h-8 w-8 text-muted-foreground group-hover:text-foreground transition-colors"}),p.jsxs("div",{className:"text-center",children:[p.jsx("p",{className:"text-sm font-semibold",children:"View Models"}),p.jsxs("p",{className:"text-xs text-muted-foreground mt-0.5",children:[r," schema",r>1?"s":""]})]})]})},"__models__")]}),t.length>1&&p.jsxs(p.Fragment,{children:[p.jsx(TN,{className:"-left-3"}),p.jsx(vN,{className:"-right-3"})]})]})]})},Ux=({title:e,icon:t,children:n})=>p.jsxs("div",{className:"rounded-xl bg-muted/50 p-4 space-y-3",children:[p.jsxs("h3",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground flex items-center gap-1.5",children:[t,e]}),n]}),SG=()=>{var t,n,r,a;const{spec:e}=lt();return p.jsxs(In,{className:"w-full rounded-none border-x-0 border-t-0 md:rounded-lg md:border",children:[p.jsx("div",{className:"px-6 py-5 border-b",children:p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3 sm:gap-6",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-2xl font-bold",children:e.info.title}),e.info.summary&&p.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:e.info.summary}),p.jsxs("div",{className:"flex flex-wrap items-center gap-2 mt-2",children:[p.jsxs(ge,{variant:"outline",className:"font-mono",children:["v",e.info.version]}),p.jsx(ge,{variant:"outline",className:"border-green-500 text-green-600 dark:text-green-400",children:e.openapi||e.swagger})]})]}),p.jsxs("div",{className:"flex flex-wrap justify-start sm:justify-end items-center gap-x-4 gap-y-2 text-sm text-muted-foreground sm:shrink-0",children:[((t=e.info.contact)==null?void 0:t.name)&&p.jsxs("span",{className:"flex items-center gap-1.5",children:[p.jsx(v0,{className:"h-4 w-4"}),e.info.contact.name]}),((n=e.info.contact)==null?void 0:n.email)&&p.jsxs("a",{href:`mailto:${e.info.contact.email}`,className:"flex items-center gap-1.5 hover:text-foreground transition-colors",children:[p.jsx(v0,{className:"h-4 w-4"}),e.info.contact.email]}),((r=e.info.contact)==null?void 0:r.url)&&p.jsxs("a",{href:e.info.contact.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 hover:text-foreground transition-colors",children:[p.jsx(mC,{className:"h-4 w-4"}),"Website"]}),e.externalDocs&&p.jsxs("a",{href:e.externalDocs.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 hover:text-foreground transition-colors",children:[p.jsx(dr,{className:"h-4 w-4"}),e.externalDocs.description||"Docs"]}),e.info.license&&(e.info.license.url?p.jsxs("a",{href:e.info.license.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 hover:text-foreground transition-colors",children:[p.jsx(A0,{className:"h-4 w-4"}),e.info.license.name]}):p.jsxs("span",{className:"flex items-center gap-1.5",children:[p.jsx(A0,{className:"h-4 w-4"}),e.info.license.name]})),e.info.termsOfService&&p.jsxs("a",{href:e.info.termsOfService,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 hover:text-foreground transition-colors",children:[p.jsx(dr,{className:"h-4 w-4"}),"Terms"]})]})]})}),p.jsxs("div",{className:"p-4 space-y-4",children:[p.jsxs("div",{className:"grid lg:grid-cols-2 gap-4",children:[p.jsx(Ux,{title:e.servers&&e.servers.length>0?"Servers":"Default Server",icon:p.jsx(TC,{className:"h-3.5 w-3.5"}),children:p.jsx(bz,{servers:e.servers??[]})}),p.jsx(Ux,{title:"Authentication",icon:p.jsx(jd,{className:"h-3.5 w-3.5"}),children:p.jsx(Ez,{securitySchemes:(a=e.components)==null?void 0:a.securitySchemes})})]}),e.info.description&&p.jsx("div",{className:"rounded-xl bg-muted/50 p-4",children:p.jsx(st,{className:"break-words",markdown:e.info.description,maxLength:1e3})}),p.jsx(vG,{})]})]})},AG=zd("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),SN=x.forwardRef(({className:e,variant:t,...n},r)=>p.jsx("div",{ref:r,role:"alert",className:Ee(AG({variant:t}),e),...n}));SN.displayName="Alert";const wG=x.forwardRef(({className:e,...t},n)=>p.jsx("h5",{ref:n,className:Ee("mb-1 font-medium leading-none tracking-tight",e),...t}));wG.displayName="AlertTitle";const AN=x.forwardRef(({className:e,...t},n)=>p.jsx("div",{ref:n,className:Ee("text-sm [&_p]:leading-relaxed",e),...t}));AN.displayName="AlertDescription";const _G=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:window}(),{FormData:NG,Blob:CG,File:jW}=_G;/**
|
|
399
|
+
* @license https://raw.githubusercontent.com/node-fetch/node-fetch/master/LICENSE.md
|
|
400
|
+
*
|
|
401
|
+
* The MIT License (MIT)
|
|
402
|
+
*
|
|
403
|
+
* Copyright (c) 2016 - 2020 Node Fetch Team
|
|
404
|
+
*
|
|
405
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
406
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
407
|
+
* in the Software without restriction, including without limitation the rights
|
|
408
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
409
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
410
|
+
* furnished to do so, subject to the following conditions:
|
|
411
|
+
*
|
|
412
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
413
|
+
* copies or substantial portions of the Software.
|
|
414
|
+
*
|
|
415
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
416
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
417
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
418
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
419
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
420
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
421
|
+
* SOFTWARE.
|
|
422
|
+
*
|
|
423
|
+
* Extracted from https://github.com/node-fetch/node-fetch/blob/64c5c296a0250b852010746c76144cb9e14698d9/src/utils/form-data.js
|
|
424
|
+
*/const qi=`\r
|
|
425
|
+
`,kd="-".repeat(2),kG=Symbol.toStringTag,IG=e=>typeof e=="object"&&typeof e.arrayBuffer=="function"&&typeof e.type=="string"&&typeof e.stream=="function"&&typeof e.constructor=="function"&&/^(Blob|File)$/.test(e[kG]),RG=e=>`${kd}${e}${kd}${qi.repeat(1)}`,OG=(e,t,n)=>{let r="";return r+=`${kd}${e}${qi}`,r+=`Content-Disposition: form-data; name="${t}"`,typeof n!="string"&&n.name!=="blob"&&(r+=`; filename="${n.name}"${qi}`,r+=`Content-Type: ${n.type||"application/octet-stream"}`),`${r}${qi.repeat(2)}`},DG=async function*(e,t){for(const[n,r]of e)yield OG(t,n,r),typeof r=="string"?yield r:yield await r.text(),yield qi;yield RG(t)},Ct=(e,t)=>Object.keys(e).find(n=>n.toLowerCase()===t.toLowerCase()),xn=(e,t)=>{const n=Ct(e,t);if(n)return e[n]},lu=(e,t)=>!!Ct(e,t),LG=["application/json","application/x-json","text/json","text/x-json","+json"],PG=e=>LG.some(t=>e.includes(t)),$x=(e,t)=>{if(t.value===void 0)return e;const n=e[t.name];return n===void 0?(e[t.name]=t.value,e):Array.isArray(n)?(n.push(t.value),e):(e[t.name]=[n,t.value],e)};function jx(e){return new URLSearchParams(Object.entries(e).map(([t,n])=>Array.isArray(n)?n.map(r=>[t,r]):[[t,n]]).flat(1))}class FG extends URL{get path(){return this.pathname+this.search}}const Hx="",zx=`
|
|
426
|
+
`;class Re{constructor({indent:t,join:n}={}){this.postProcessors=[],this.code=[],this.indentationCharacter=Hx,this.lineJoin=zx,this.indentLine=(r,a=0)=>`${this.indentationCharacter.repeat(a)}${r}`,this.unshift=(r,a)=>{const i=this.indentLine(r,a);this.code.unshift(i)},this.push=(r,a)=>{const i=this.indentLine(r,a);this.code.push(i)},this.blank=()=>{this.code.push("")},this.join=()=>{const r=this.code.join(this.lineJoin);return this.postProcessors.reduce((i,o)=>o(i),r)},this.addPostProcessor=r=>{this.postProcessors=[...this.postProcessors,r]},this.indentationCharacter=t||Hx,this.lineJoin=n??zx}}function po(e,t={}){const{delimiter:n='"',escapeChar:r="\\",escapeNewlines:a=!0}=t;return[...e.toString()].map(o=>o==="\b"?`${r}b`:o===" "?`${r}t`:o===`
|
|
427
|
+
`?a?`${r}n`:o:o==="\f"?`${r}f`:o==="\r"?a?`${r}r`:o:o===r?r+r:o===n?r+n:o<" "||o>"~"?JSON.stringify(o).slice(1,-1):o).join("")}const fo=e=>po(e,{delimiter:"'"}),dt=e=>po(e,{delimiter:'"'}),MG={info:{key:"libcurl",title:"Libcurl",link:"http://curl.haxx.se/libcurl",description:"Simple REST and HTTP API Client for C"},convert:({method:e,fullUrl:t,headersObj:n,allHeaders:r,postData:a})=>{const{push:i,blank:o,join:s}=new Re;i("CURL *hnd = curl_easy_init();"),o(),i(`curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "${e.toUpperCase()}");`),i(`curl_easy_setopt(hnd, CURLOPT_URL, "${t}");`);const l=Object.keys(n);return l.length&&(o(),i("struct curl_slist *headers = NULL;"),l.forEach(u=>{i(`headers = curl_slist_append(headers, "${u}: ${dt(n[u])}");`)}),i("curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);")),r.cookie&&(o(),i(`curl_easy_setopt(hnd, CURLOPT_COOKIE, "${r.cookie}");`)),a!=null&&a.text&&(o(),i(`curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, ${JSON.stringify(a.text)});`)),o(),i("CURLcode ret = curl_easy_perform(hnd);"),s()}},BG={info:{key:"c",title:"C",extname:".c",default:"libcurl"},clientsById:{libcurl:MG}};class Gx{constructor(t){this.name="",this.toString=()=>`:${this.name}`,this.name=t}}class UG{constructor(t){this.path="",this.toString=()=>`(clojure.java.io/file "${this.path}")`,this.path=t}}const wN=e=>e===void 0?null:e===null?"null":e.constructor.name.toLowerCase(),_N=e=>wN(e)==="object"?Object.keys(e).length===0:!1,Vx=e=>(Object.keys(e).filter(t=>_N(e[t])).forEach(t=>{delete e[t]}),e),Rs=(e,t)=>{const n=" ".repeat(e);return t.replace(/\n/g,`
|
|
428
|
+
${n}`)},Id=e=>{switch(wN(e)){case"string":return`"${e.replace(/"/g,'\\"')}"`;case"file":return e.toString();case"keyword":return e.toString();case"null":return"nil";case"regexp":return`#"${e.source}"`;case"object":{const t=Object.keys(e).reduce((n,r)=>{const a=Rs(r.length+2,Id(e[r]));return`${n}:${r} ${a}
|
|
429
|
+
`},"").trim();return`{${Rs(1,t)}}`}case"array":{const t=e.reduce((n,r)=>`${n} ${Id(r)}`,"").trim();return`[${Rs(1,t)}]`}default:return e.toString()}},$G={info:{key:"clj_http",title:"clj-http",link:"https://github.com/dakrone/clj-http",description:"An idiomatic clojure http client wrapping the apache client."},convert:({queryObj:e,method:t,postData:n,url:r,allHeaders:a},i)=>{const{push:o,join:s}=new Re({indent:i==null?void 0:i.indent}),l=["get","post","put","delete","patch","head","options"];if(t=t.toLowerCase(),!l.includes(t))return o("Method not supported"),s();const u={headers:a,"query-params":e};switch(n==null?void 0:n.mimeType){case"application/json":{u["content-type"]=new Gx("json"),u["form-params"]=n.jsonObj;const d=Ct(u.headers,"content-type");d&&delete u.headers[d]}break;case"application/x-www-form-urlencoded":{u["form-params"]=n.paramsObj;const d=Ct(u.headers,"content-type");d&&delete u.headers[d]}break;case"text/plain":{u.body=n.text;const d=Ct(u.headers,"content-type");d&&delete u.headers[d]}break;case"multipart/form-data":{if(n.params){u.multipart=n.params.map(c=>c.fileName&&!c.value?{name:c.name,content:new UG(c.fileName)}:{name:c.name,content:c.value});const d=Ct(u.headers,"content-type");d&&delete u.headers[d]}break}}switch(xn(u.headers,"accept")){case"application/json":{u.accept=new Gx("json");const d=Ct(u.headers,"accept");d&&delete u.headers[d]}break}if(o(`(require '[clj-http.client :as client])
|
|
430
|
+
`),_N(Vx(u)))o(`(client/${t} "${r}")`);else{const d=11+t.length+r.length,c=Rs(d,Id(Vx(u)));o(`(client/${t} "${r}" ${c})`)}return s()}},jG={info:{key:"clojure",title:"Clojure",extname:".clj",default:"clj_http"},clientsById:{clj_http:$G}},HG=e=>{let t=xn(e,"accept-encoding");if(!t)return[];const n={gzip:"DecompressionMethods.GZip",deflate:"DecompressionMethods.Deflate"},r=[];return typeof t=="string"&&(t=[t]),t.forEach(a=>{a.split(",").forEach(i=>{const o=/\s*([^;\s]+)/.exec(i);if(o){const s=n[o[1]];s&&r.push(s)}})}),r},zG={info:{key:"httpclient",title:"HttpClient",link:"https://docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient",description:".NET Standard HTTP Client"},convert:({allHeaders:e,postData:t,method:n,fullUrl:r},a)=>{var i,o;const s={indent:" ",...a},{push:l,join:u}=new Re({indent:s.indent});l("using System.Net.Http.Headers;");let d="";const c=!!e.cookie,f=HG(e);(c||f.length)&&(d="clientHandler",l("var clientHandler = new HttpClientHandler"),l("{"),c&&l("UseCookies = false,",1),f.length&&l(`AutomaticDecompression = ${f.join(" | ")},`,1),l("};")),l(`var client = new HttpClient(${d});`),l("var request = new HttpRequestMessage"),l("{");const m=["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","TRACE"];n=n.toUpperCase(),n&&m.includes(n)?n=`HttpMethod.${n[0]}${n.substring(1).toLowerCase()}`:n=`new HttpMethod("${n}")`,l(`Method = ${n},`,1),l(`RequestUri = new Uri("${r}"),`,1);const h=Object.keys(e).filter(g=>{switch(g.toLowerCase()){case"content-type":case"content-length":case"accept-encoding":return!1;default:return!0}});if(h.length&&(l("Headers =",1),l("{",1),h.forEach(g=>{l(`{ "${g}", "${dt(e[g])}" },`,2)}),l("},",1)),t!=null&&t.text){const g=t.mimeType;switch(g){case"application/x-www-form-urlencoded":l("Content = new FormUrlEncodedContent(new Dictionary<string, string>",1),l("{",1),(i=t.params)===null||i===void 0||i.forEach(b=>{l(`{ "${b.name}", "${b.value}" },`,2)}),l("}),",1);break;case"multipart/form-data":l("Content = new MultipartFormDataContent",1),l("{",1),(o=t.params)===null||o===void 0||o.forEach(b=>{l(`new StringContent(${JSON.stringify(b.value||"")})`,2),l("{",2),l("Headers =",3),l("{",3),b.contentType&&l(`ContentType = new MediaTypeHeaderValue("${b.contentType}"),`,4),l('ContentDisposition = new ContentDispositionHeaderValue("form-data")',4),l("{",4),l(`Name = "${b.name}",`,5),b.fileName&&l(`FileName = "${b.fileName}",`,5),l("}",4),l("}",3),l("},",2)}),l("},",1);break;default:l(`Content = new StringContent(${JSON.stringify((t==null?void 0:t.text)||"")})`,1),l("{",1),l("Headers =",2),l("{",2),l(`ContentType = new MediaTypeHeaderValue("${g}")`,3),l("}",2),l("}",1);break}}return l("};"),l("using (var response = await client.SendAsync(request))"),l("{"),l("response.EnsureSuccessStatusCode();",1),l("var body = await response.Content.ReadAsStringAsync();",1),l("Console.WriteLine(body);",1),l("}"),u()}},GG={info:{key:"restsharp",title:"RestSharp",link:"http://restsharp.org/",description:"Simple REST and HTTP API Client for .NET"},convert:({allHeaders:e,method:t,fullUrl:n,headersObj:r,cookies:a,postData:i})=>{const{push:o,join:s}=new Re;if(!["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(t.toUpperCase()))return"Method not supported";if(o(`var client = new RestClient("${n}");`),o(`var request = new RestRequest(Method.${t.toUpperCase()});`),Object.keys(r).forEach(u=>{o(`request.AddHeader("${u}", "${dt(r[u])}");`)}),a==null||a.forEach(({name:u,value:d})=>{o(`request.AddCookie("${u}", "${d}");`)}),i!=null&&i.text){const u=xn(e,"content-type"),d=JSON.stringify(i.text);o(`request.AddParameter("${u}", ${d}, ParameterType.RequestBody);`)}return o("IRestResponse response = client.Execute(request);"),s()}},VG={info:{key:"csharp",title:"C#",extname:".cs",default:"restsharp"},clientsById:{httpclient:zG,restsharp:GG}},WG={info:{key:"native",title:"NewRequest",link:"http://golang.org/pkg/net/http/#NewRequest",description:"Golang HTTP client request"},convert:({postData:e,method:t,allHeaders:n,fullUrl:r},a={})=>{const{blank:i,push:o,join:s}=new Re({indent:" "}),{showBoilerplate:l=!0,checkErrors:u=!1,printBody:d=!0,timeout:c=-1,insecureSkipVerify:f=!1}=a,m=u?"err":"_",h=l?1:0,g=()=>{u&&(o("if err != nil {",h),o("panic(err)",h+1),o("}",h))};l&&(o("package main"),i(),o("import ("),o('"fmt"',h),c>0&&o('"time"',h),f&&o('"crypto/tls"',h),e!=null&&e.text&&o('"strings"',h),o('"net/http"',h),d&&o('"io"',h),o(")"),i(),o("func main() {"),i()),f&&(o("insecureTransport := http.DefaultTransport.(*http.Transport).Clone()",h),o("insecureTransport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}",h));const b=c>0,E=b||f,T=E?"client":"http.DefaultClient";return E&&(o("client := http.Client{",h),b&&o(`Timeout: time.Duration(${c} * time.Second),`,h+1),f&&o("Transport: insecureTransport,",h+1),o("}",h),i()),o(`url := "${r}"`,h),i(),e!=null&&e.text?(o(`payload := strings.NewReader(${JSON.stringify(e.text)})`,h),i(),o(`req, ${m} := http.NewRequest("${t}", url, payload)`,h),i()):(o(`req, ${m} := http.NewRequest("${t}", url, nil)`,h),i()),g(),Object.keys(n).length&&(Object.keys(n).forEach(v=>{o(`req.Header.Add("${v}", "${dt(n[v])}")`,h)}),i()),o(`res, ${m} := ${T}.Do(req)`,h),g(),d&&(i(),o("defer res.Body.Close()",h),o(`body, ${m} := io.ReadAll(res.Body)`,h),g()),i(),o("fmt.Println(res)",h),d&&o("fmt.Println(string(body))",h),l&&(i(),o("}")),s()}},qG={info:{key:"go",title:"Go",extname:".go",default:"native"},clientsById:{native:WG}},Wx=`\r
|
|
431
|
+
`,YG={info:{key:"http1.1",title:"HTTP/1.1",link:"https://tools.ietf.org/html/rfc7230",description:"HTTP/1.1 request string in accordance with RFC 7230"},convert:({method:e,fullUrl:t,uriObj:n,httpVersion:r,allHeaders:a,postData:i},o)=>{const s={absoluteURI:!1,autoContentLength:!0,autoHost:!0,...o},{blank:l,push:u,join:d}=new Re({indent:"",join:Wx}),c=s.absoluteURI?t:n.path;u(`${e} ${c} ${r}`);const f=Object.keys(a);f.forEach(g=>{const b=g.toLowerCase().replace(/(^|-)(\w)/g,E=>E.toUpperCase());u(`${b}: ${a[g]}`)}),s.autoHost&&!f.includes("host")&&u(`Host: ${n.host}`),s.autoContentLength&&(i!=null&&i.text)&&!f.includes("content-length")&&u(`Content-Length: ${i.text.length}`),l();const m=d(),h=(i==null?void 0:i.text)||"";return`${m}${Wx}${h}`}},KG={info:{key:"http",title:"HTTP",extname:null,default:"1.1"},clientsById:{"http1.1":YG}},XG={info:{key:"asynchttp",title:"AsyncHttp",link:"https://github.com/AsyncHttpClient/async-http-client",description:"Asynchronous Http and WebSocket Client library for Java"},convert:({method:e,allHeaders:t,postData:n,fullUrl:r},a)=>{const i={indent:" ",...a},{blank:o,push:s,join:l}=new Re({indent:i.indent});return s("AsyncHttpClient client = new DefaultAsyncHttpClient();"),s(`client.prepare("${e.toUpperCase()}", "${r}")`),Object.keys(t).forEach(u=>{s(`.setHeader("${u}", "${dt(t[u])}")`,1)}),n!=null&&n.text&&s(`.setBody(${JSON.stringify(n.text)})`,1),s(".execute()",1),s(".toCompletableFuture()",1),s(".thenAccept(System.out::println)",1),s(".join();",1),o(),s("client.close();"),l()}},ZG={info:{key:"nethttp",title:"java.net.http",link:"https://openjdk.java.net/groups/net/httpclient/intro.html",description:"Java Standardized HTTP Client API"},convert:({allHeaders:e,fullUrl:t,method:n,postData:r},a)=>{const i={indent:" ",...a},{push:o,join:s}=new Re({indent:i.indent});return o("HttpRequest request = HttpRequest.newBuilder()"),o(`.uri(URI.create("${t}"))`,2),Object.keys(e).forEach(l=>{o(`.header("${l}", "${dt(e[l])}")`,2)}),r!=null&&r.text?o(`.method("${n.toUpperCase()}", HttpRequest.BodyPublishers.ofString(${JSON.stringify(r.text)}))`,2):o(`.method("${n.toUpperCase()}", HttpRequest.BodyPublishers.noBody())`,2),o(".build();",2),o("HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());"),o("System.out.println(response.body());"),s()}},QG={info:{key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",description:"An HTTP Request Client Library"},convert:({postData:e,method:t,fullUrl:n,allHeaders:r},a)=>{const i={indent:" ",...a},{push:o,blank:s,join:l}=new Re({indent:i.indent}),u=["GET","POST","PUT","DELETE","PATCH","HEAD"],d=["POST","PUT","DELETE","PATCH"];return o("OkHttpClient client = new OkHttpClient();"),s(),e!=null&&e.text&&(e.boundary?o(`MediaType mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}");`):o(`MediaType mediaType = MediaType.parse("${e.mimeType}");`),o(`RequestBody body = RequestBody.create(mediaType, ${JSON.stringify(e.text)});`)),o("Request request = new Request.Builder()"),o(`.url("${n}")`,1),u.includes(t.toUpperCase())?d.includes(t.toUpperCase())?e!=null&&e.text?o(`.${t.toLowerCase()}(body)`,1):o(`.${t.toLowerCase()}(null)`,1):o(`.${t.toLowerCase()}()`,1):e!=null&&e.text?o(`.method("${t.toUpperCase()}", body)`,1):o(`.method("${t.toUpperCase()}", null)`,1),Object.keys(r).forEach(c=>{o(`.addHeader("${c}", "${dt(r[c])}")`,1)}),o(".build();",1),s(),o("Response response = client.newCall(request).execute();"),l()}},JG={info:{key:"unirest",title:"Unirest",link:"http://unirest.io/java.html",description:"Lightweight HTTP Request Client Library"},convert:({method:e,allHeaders:t,postData:n,fullUrl:r},a)=>{const i={indent:" ",...a},{join:o,push:s}=new Re({indent:i.indent});return["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(e.toUpperCase())?s(`HttpResponse<String> response = Unirest.${e.toLowerCase()}("${r}")`):s(`HttpResponse<String> response = Unirest.customMethod("${e.toUpperCase()}","${r}")`),Object.keys(t).forEach(u=>{s(`.header("${u}", "${dt(t[u])}")`,1)}),n!=null&&n.text&&s(`.body(${JSON.stringify(n.text)})`,1),s(".asString();",1),o()}},eV={info:{key:"java",title:"Java",extname:".java",default:"unirest"},clientsById:{asynchttp:XG,nethttp:ZG,okhttp:QG,unirest:JG}};var tV=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},nV=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")},g0={};Object.defineProperty(g0,"__esModule",{value:!0});g0.default=e=>Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t));const rV=tV,aV=nV,iV=g0.default;var oV=(e,t,n)=>{const r=[];return function a(i,o,s){o=o||{},o.indent=o.indent||" ",s=s||"";let l;o.inlineCharacterLimit===void 0?l={newLine:`
|
|
432
|
+
`,newLineOrSpace:`
|
|
433
|
+
`,pad:s,indent:s+o.indent}:l={newLine:"@@__STRINGIFY_OBJECT_NEW_LINE__@@",newLineOrSpace:"@@__STRINGIFY_OBJECT_NEW_LINE_OR_SPACE__@@",pad:"@@__STRINGIFY_OBJECT_PAD__@@",indent:"@@__STRINGIFY_OBJECT_INDENT__@@"};const u=d=>{if(o.inlineCharacterLimit===void 0)return d;const c=d.replace(new RegExp(l.newLine,"g"),"").replace(new RegExp(l.newLineOrSpace,"g")," ").replace(new RegExp(l.pad+"|"+l.indent,"g"),"");return c.length<=o.inlineCharacterLimit?c:d.replace(new RegExp(l.newLine+"|"+l.newLineOrSpace,"g"),`
|
|
434
|
+
`).replace(new RegExp(l.pad,"g"),s).replace(new RegExp(l.indent,"g"),s+o.indent)};if(r.indexOf(i)!==-1)return'"[Circular]"';if(i==null||typeof i=="number"||typeof i=="boolean"||typeof i=="function"||typeof i=="symbol"||rV(i))return String(i);if(i instanceof Date)return`new Date('${i.toISOString()}')`;if(Array.isArray(i)){if(i.length===0)return"[]";r.push(i);const d="["+l.newLine+i.map((c,f)=>{const m=i.length-1===f?l.newLine:","+l.newLineOrSpace;let h=a(c,o,s+o.indent);return o.transform&&(h=o.transform(i,f,h)),l.indent+h+m}).join("")+l.pad+"]";return r.pop(),u(d)}if(aV(i)){let d=Object.keys(i).concat(iV(i));if(o.filter&&(d=d.filter(f=>o.filter(i,f))),d.length===0)return"{}";r.push(i);const c="{"+l.newLine+d.map((f,m)=>{const h=d.length-1===m?l.newLine:","+l.newLineOrSpace,g=typeof f=="symbol",b=!g&&/^[a-z$_][a-z$_0-9]*$/i.test(f),E=g||b?f:a(f,o);let T=a(i[f],o,s+o.indent);return o.transform&&(T=o.transform(i,f,T)),l.indent+String(E)+": "+T+h}).join("")+l.pad+"}";return r.pop(),u(c)}return i=String(i).replace(/[\r\n]/g,d=>d===`
|
|
435
|
+
`?"\\n":"\\r"),o.singleQuotes===!1?(i=i.replace(/"/g,'\\"'),`"${i}"`):(i=i.replace(/\\?'/g,"\\'"),`'${i}'`)}(e,t,n)};const At=rl(oV),sV={info:{key:"axios",title:"Axios",link:"https://github.com/axios/axios",description:"Promise based HTTP client for the browser and node.js"},convert:({allHeaders:e,method:t,url:n,queryObj:r,postData:a},i)=>{const o={indent:" ",...i},{blank:s,push:l,join:u,addPostProcessor:d}=new Re({indent:o.indent});l("import axios from 'axios';"),s();const c={method:t,url:n};switch(Object.keys(r).length&&(c.params=r),Object.keys(e).length&&(c.headers=e),a==null?void 0:a.mimeType){case"application/x-www-form-urlencoded":a.params&&(l("const encodedParams = new URLSearchParams();"),a.params.forEach(m=>{l(`encodedParams.set('${m.name}', '${m.value}');`)}),s(),c.data="encodedParams,",d(m=>m.replace(/'encodedParams,'/,"encodedParams,")));break;case"application/json":a.jsonObj&&(c.data=a.jsonObj);break;case"multipart/form-data":if(!a.params)break;l("const form = new FormData();"),a.params.forEach(m=>{l(`form.append('${m.name}', '${m.value||m.fileName||""}');`)}),s(),c.data="[form]";break;default:a!=null&&a.text&&(c.data=a.text)}const f=At(c,{indent:" ",inlineCharacterLimit:80}).replace('"[form]"',"form");return l(`const options = ${f};`),s(),l("try {"),l("const { data } = await axios.request(options);",1),l("console.log(data);",1),l("} catch (error) {"),l("console.error(error);",1),l("}"),u()}},lV={info:{key:"fetch",title:"fetch",link:"https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch",description:"Perform asynchronous HTTP requests with the Fetch API"},convert:({method:e,allHeaders:t,postData:n,fullUrl:r},a)=>{const i={indent:" ",credentials:null,...a},{blank:o,join:s,push:l}=new Re({indent:i.indent}),u={method:e};switch(Object.keys(t).length&&(u.headers=t),i.credentials!==null&&(u.credentials=i.credentials),l(`const url = '${r}';`),n==null?void 0:n.mimeType){case"application/x-www-form-urlencoded":u.body=n.paramsObj?n.paramsObj:n.text;break;case"application/json":u.body=JSON.stringify(n.jsonObj);break;case"multipart/form-data":if(!n.params)break;const d=Ct(t,"content-type");d&&delete t[d],l("const form = new FormData();"),n.params.forEach(c=>{l(`form.append('${c.name}', '${c.value||c.fileName||""}');`)}),o();break;default:n!=null&&n.text&&(u.body=n.text)}return u.headers&&!Object.keys(u.headers).length&&delete u.headers,l(`const options = ${At(u,{indent:i.indent,inlineCharacterLimit:80,transform:(d,c,f)=>c==="body"&&n&&n.mimeType==="application/x-www-form-urlencoded"?`new URLSearchParams(${f})`:f})};`),o(),n!=null&&n.params&&n.mimeType==="multipart/form-data"&&(l("options.body = form;"),o()),l("try {"),l("const response = await fetch(url, options);",1),l("const data = await response.json();",1),l("console.log(data);",1),l("} catch (error) {"),l("console.error(error);",1),l("}"),s()}},uV={info:{key:"jquery",title:"jQuery",link:"http://api.jquery.com/jquery.ajax/",description:"Perform an asynchronous HTTP (Ajax) requests with jQuery"},convert:({fullUrl:e,method:t,allHeaders:n,postData:r},a)=>{var i;const o={indent:" ",...a},{blank:s,push:l,join:u}=new Re({indent:o.indent}),d={async:!0,crossDomain:!0,url:e,method:t,headers:n};switch(r==null?void 0:r.mimeType){case"application/x-www-form-urlencoded":d.data=r.paramsObj?r.paramsObj:r.text;break;case"application/json":d.processData=!1,d.data=r.text;break;case"multipart/form-data":if(!r.params)break;if(l("const form = new FormData();"),r.params.forEach(f=>{l(`form.append('${f.name}', '${f.value||f.fileName||""}');`)}),d.processData=!1,d.contentType=!1,d.mimeType="multipart/form-data",d.data="[form]",lu(n,"content-type")&&!((i=xn(n,"content-type"))===null||i===void 0)&&i.includes("boundary")){const f=Ct(n,"content-type");f&&delete d.headers[f]}s();break;default:r!=null&&r.text&&(d.data=r.text)}const c=At(d,{indent:o.indent}).replace("'[form]'","form");return l(`const settings = ${c};`),s(),l("$.ajax(settings).done(function (response) {"),l("console.log(response);",1),l("});"),u()}},cV={info:{key:"xhr",title:"XMLHttpRequest",link:"https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest",description:"W3C Standard API that provides scripted client functionality"},convert:({postData:e,allHeaders:t,method:n,fullUrl:r},a)=>{var i;const o={indent:" ",cors:!0,...a},{blank:s,push:l,join:u}=new Re({indent:o.indent});switch(e==null?void 0:e.mimeType){case"application/json":l(`const data = JSON.stringify(${At(e.jsonObj,{indent:o.indent})});`),s();break;case"multipart/form-data":if(!e.params)break;if(l("const data = new FormData();"),e.params.forEach(d=>{l(`data.append('${d.name}', '${d.value||d.fileName||""}');`)}),lu(t,"content-type")&&!((i=xn(t,"content-type"))===null||i===void 0)&&i.includes("boundary")){const d=Ct(t,"content-type");d&&delete t[d]}s();break;default:l(`const data = ${e!=null&&e.text?`'${e.text}'`:"null"};`),s()}return l("const xhr = new XMLHttpRequest();"),o.cors&&l("xhr.withCredentials = true;"),s(),l("xhr.addEventListener('readystatechange', function () {"),l("if (this.readyState === this.DONE) {",1),l("console.log(this.responseText);",2),l("}",1),l("});"),s(),l(`xhr.open('${n}', '${r}');`),Object.keys(t).forEach(d=>{l(`xhr.setRequestHeader('${d}', '${fo(t[d])}');`)}),s(),l("xhr.send(data);"),u()}},dV={info:{key:"javascript",title:"JavaScript",extname:".js",default:"xhr"},clientsById:{xhr:cV,axios:sV,fetch:lV,jquery:uV}},pV={info:{key:"okhttp",title:"OkHttp",link:"http://square.github.io/okhttp/",description:"An HTTP Request Client Library"},convert:({postData:e,fullUrl:t,method:n,allHeaders:r},a)=>{const i={indent:" ",...a},{blank:o,join:s,push:l}=new Re({indent:i.indent}),u=["GET","POST","PUT","DELETE","PATCH","HEAD"],d=["POST","PUT","DELETE","PATCH"];return l("val client = OkHttpClient()"),o(),e!=null&&e.text&&(e.boundary?l(`val mediaType = MediaType.parse("${e.mimeType}; boundary=${e.boundary}")`):l(`val mediaType = MediaType.parse("${e.mimeType}")`),l(`val body = RequestBody.create(mediaType, ${JSON.stringify(e.text)})`)),l("val request = Request.Builder()"),l(`.url("${t}")`,1),u.includes(n.toUpperCase())?d.includes(n.toUpperCase())?e!=null&&e.text?l(`.${n.toLowerCase()}(body)`,1):l(`.${n.toLowerCase()}(null)`,1):l(`.${n.toLowerCase()}()`,1):e!=null&&e.text?l(`.method("${n.toUpperCase()}", body)`,1):l(`.method("${n.toUpperCase()}", null)`,1),Object.keys(r).forEach(c=>{l(`.addHeader("${c}", "${dt(r[c])}")`,1)}),l(".build()",1),o(),l("val response = client.newCall(request).execute()"),s()}},fV={info:{key:"kotlin",title:"Kotlin",extname:".kt",default:"okhttp"},clientsById:{okhttp:pV}},mV={info:{key:"axios",title:"Axios",link:"https://github.com/axios/axios",description:"Promise based HTTP client for the browser and node.js"},convert:({method:e,url:t,queryObj:n,allHeaders:r,postData:a},i)=>{const o={indent:" ",...i},{blank:s,join:l,push:u,addPostProcessor:d}=new Re({indent:o.indent});u("const axios = require('axios').default;");const c={method:e,url:t};switch(Object.keys(n).length&&(c.params=n),Object.keys(r).length&&(c.headers=r),a==null?void 0:a.mimeType){case"application/x-www-form-urlencoded":a.params&&(u("const { URLSearchParams } = require('url');"),s(),u("const encodedParams = new URLSearchParams();"),a.params.forEach(m=>{u(`encodedParams.set('${m.name}', '${m.value}');`)}),s(),c.data="encodedParams,",d(m=>m.replace(/'encodedParams,'/,"encodedParams,")));break;case"application/json":s(),a.jsonObj&&(c.data=a.jsonObj);break;default:s(),a!=null&&a.text&&(c.data=a.text)}const f=At(c,{indent:" ",inlineCharacterLimit:80});return u(`const options = ${f};`),s(),u("try {"),u("const { data } = await axios.request(options);",1),u("console.log(data);",1),u("} catch (error) {"),u("console.error(error);",1),u("}"),l()}},hV={info:{key:"fetch",title:"Fetch",link:"https://github.com/bitinn/node-fetch",description:"Simplified HTTP node-fetch client"},convert:({method:e,fullUrl:t,postData:n,headersObj:r,cookies:a},i)=>{var o;const s={indent:" ",...i};let l=!1;const{blank:u,push:d,join:c,unshift:f}=new Re({indent:s.indent});d("const fetch = require('node-fetch');"),u();const m={method:e};switch(Object.keys(r).length&&(m.headers=r),n==null?void 0:n.mimeType){case"application/x-www-form-urlencoded":f("const { URLSearchParams } = require('url');"),d("const encodedParams = new URLSearchParams();"),(o=n.params)===null||o===void 0||o.forEach(b=>{d(`encodedParams.set('${b.name}', '${b.value}');`)}),u(),m.body="encodedParams";break;case"application/json":n.jsonObj&&(m.body=JSON.stringify(n.jsonObj));break;case"multipart/form-data":if(!n.params)break;const g=Ct(r,"content-type");g&&delete r[g],f("const FormData = require('form-data');"),d("const formData = new FormData();"),n.params.forEach(b=>{if(!b.fileName&&!b.fileName&&!b.contentType){d(`formData.append('${b.name}', '${b.value}');`);return}b.fileName&&(l=!0,d(`formData.append('${b.name}', fs.createReadStream('${b.fileName}'));`))}),u();break;default:n!=null&&n.text&&(m.body=n.text)}if(a.length){const g=a.map(b=>`${encodeURIComponent(b.name)}=${encodeURIComponent(b.value)}`).join("; ");m.headers||(m.headers={}),m.headers.cookie=g}d(`const url = '${t}';`),m.headers&&!Object.keys(m.headers).length&&delete m.headers;const h=At(m,{indent:" ",inlineCharacterLimit:80});return d(`const options = ${h};`),l&&f("const fs = require('fs');"),n!=null&&n.params&&n.mimeType==="multipart/form-data"&&d("options.body = formData;"),u(),d("try {"),d("const response = await fetch(url, options);",1),d("const data = await response.json();",1),d("console.log(data);",1),d("} catch (error) {"),d("console.error(error);",1),d("}"),c().replace(/'encodedParams'/,"encodedParams").replace(/"fs\.createReadStream\(\\"(.+)\\"\)"/,'fs.createReadStream("$1")')}},gV={info:{key:"native",title:"HTTP",link:"http://nodejs.org/api/http.html#http_http_request_options_callback",description:"Node.js native HTTP interface"},convert:({uriObj:e,method:t,allHeaders:n,postData:r},a={})=>{const{indent:i=" ",insecureSkipVerify:o=!1}=a,{blank:s,join:l,push:u,unshift:d}=new Re({indent:i}),c={method:t,hostname:e.hostname,port:e.port===""?null:e.port,path:e.path,headers:n,...o?{rejectUnauthorized:!1}:{}};switch(u(`const http = require('${e.protocol.replace(":","")}');`),s(),u(`const options = ${At(c,{indent:i})};`),s(),u("const req = http.request(options, function (res) {"),u("const chunks = [];",1),s(),u("res.on('data', function (chunk) {",1),u("chunks.push(chunk);",2),u("});",1),s(),u("res.on('end', function () {",1),u("const body = Buffer.concat(chunks);",2),u("console.log(body.toString());",2),u("});",1),u("});"),s(),r==null?void 0:r.mimeType){case"application/x-www-form-urlencoded":r.paramsObj&&(d("const qs = require('querystring');"),u(`req.write(qs.stringify(${At(r.paramsObj,{indent:" ",inlineCharacterLimit:80})}));`));break;case"application/json":r.jsonObj&&u(`req.write(JSON.stringify(${At(r.jsonObj,{indent:" ",inlineCharacterLimit:80})}));`);break;default:r!=null&&r.text&&u(`req.write(${At(r.text,{indent:i})});`)}return u("req.end();"),l()}},bV={info:{key:"request",title:"Request",link:"https://github.com/request/request",description:"Simplified HTTP request client"},convert:({method:e,url:t,queryObj:n,postData:r,headersObj:a,cookies:i},o)=>{const s={indent:" ",...o};let l=!1;const{push:u,blank:d,join:c,unshift:f}=new Re({indent:s.indent});u("const request = require('request');"),d();const m={method:e,url:t};switch(Object.keys(n).length&&(m.qs=n),Object.keys(a).length&&(m.headers=a),r==null?void 0:r.mimeType){case"application/x-www-form-urlencoded":m.form=r.paramsObj;break;case"application/json":r.jsonObj&&(m.body=r.jsonObj,m.json=!0);break;case"multipart/form-data":if(!r.params)break;m.formData={},r.params.forEach(h=>{if(!h.fileName&&!h.fileName&&!h.contentType){m.formData[h.name]=h.value;return}let g={};h.fileName?(l=!0,g={value:`fs.createReadStream(${h.fileName})`,options:{filename:h.fileName,contentType:h.contentType?h.contentType:null}}):h.value&&(g.value=h.value),m.formData[h.name]=g});break;default:r!=null&&r.text&&(m.body=r.text)}return i.length&&(m.jar="JAR",u("const jar = request.jar();"),i.forEach(h=>{u(`jar.setCookie(request.cookie('${encodeURIComponent(h.name)}=${encodeURIComponent(h.value)}'), '${t}');`)}),d()),l&&f("const fs = require('fs');"),u(`const options = ${At(m,{indent:" ",inlineCharacterLimit:80})};`),d(),u("request(options, function (error, response, body) {"),u("if (error) throw new Error(error);",1),d(),u("console.log(body);",1),u("});"),c().replace("'JAR'","jar").replace(/'fs\.createReadStream\((.*)\)'/,"fs.createReadStream('$1')")}},EV={info:{key:"unirest",title:"Unirest",link:"http://unirest.io/nodejs.html",description:"Lightweight HTTP Request Client Library"},convert:({method:e,url:t,cookies:n,queryObj:r,postData:a,headersObj:i},o)=>{const s={indent:" ",...o};let l=!1;const{addPostProcessor:u,blank:d,join:c,push:f,unshift:m}=new Re({indent:s.indent});switch(f("const unirest = require('unirest');"),d(),f(`const req = unirest('${e}', '${t}');`),d(),n.length&&(f("const CookieJar = unirest.jar();"),n.forEach(h=>{f(`CookieJar.add('${encodeURIComponent(h.name)}=${encodeURIComponent(h.value)}', '${t}');`)}),f("req.jar(CookieJar);"),d()),Object.keys(r).length&&(f(`req.query(${At(r,{indent:s.indent})});`),d()),Object.keys(i).length&&(f(`req.headers(${At(i,{indent:s.indent})});`),d()),a==null?void 0:a.mimeType){case"application/x-www-form-urlencoded":a.paramsObj&&(f(`req.form(${At(a.paramsObj,{indent:s.indent})});`),d());break;case"application/json":a.jsonObj&&(f("req.type('json');"),f(`req.send(${At(a.jsonObj,{indent:s.indent})});`),d());break;case"multipart/form-data":{if(!a.params)break;const h=[];a.params.forEach(g=>{const b={};g.fileName&&!g.value?(l=!0,b.body=`fs.createReadStream('${g.fileName}')`,u(E=>E.replace(/'fs\.createReadStream\(\\'(.+)\\'\)'/,"fs.createReadStream('$1')"))):g.value&&(b.body=g.value),b.body&&(g.contentType&&(b["content-type"]=g.contentType),h.push(b))}),f(`req.multipart(${At(h,{indent:s.indent})});`),d();break}default:a!=null&&a.text&&(f(`req.send(${At(a.text,{indent:s.indent})});`),d())}return l&&m("const fs = require('fs');"),f("req.end(function (res) {"),f("if (res.error) throw new Error(res.error);",1),d(),f("console.log(res.body);",1),f("});"),c()}},yV={info:{key:"node",title:"Node.js",extname:".js",default:"native"},clientsById:{native:gV,request:bV,unirest:EV,axios:mV,fetch:hV}},Tc=(e,t,n,r)=>{const a=`${e} *${t} = `,i=Rd(n,r?a.length:void 0);return`${a}${i};`},Rd=(e,t)=>{const n=t===void 0?", ":`,
|
|
436
|
+
${" ".repeat(t)}`;switch(Object.prototype.toString.call(e)){case"[object Number]":return`@${e}`;case"[object Array]":return`@[ ${e.map(a=>Rd(a)).join(n)} ]`;case"[object Object]":{const r=[];for(const a in e)r.push(`@"${a}": ${Rd(e[a])}`);return`@{ ${r.join(n)} }`}case"[object Boolean]":return e?"@YES":"@NO";default:return e==null?"":`@"${e.toString().replace(/"/g,'\\"')}"`}},xV={info:{key:"nsurlsession",title:"NSURLSession",link:"https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html",description:"Foundation's NSURLSession request"},convert:({allHeaders:e,postData:t,method:n,fullUrl:r},a)=>{var i;const o={indent:" ",pretty:!0,timeout:10,...a},{push:s,join:l,blank:u}=new Re({indent:o.indent}),d={hasHeaders:!1,hasBody:!1};if(s("#import <Foundation/Foundation.h>"),Object.keys(e).length&&(d.hasHeaders=!0,u(),s(Tc("NSDictionary","headers",e,o.pretty))),t&&(t.text||t.jsonObj||t.params))switch(d.hasBody=!0,t.mimeType){case"application/x-www-form-urlencoded":if(!((i=t.params)===null||i===void 0)&&i.length){u();const[c,...f]=t.params;s(`NSMutableData *postData = [[NSMutableData alloc] initWithData:[@"${c.name}=${c.value}" dataUsingEncoding:NSUTF8StringEncoding]];`),f.forEach(({name:m,value:h})=>{s(`[postData appendData:[@"&${m}=${h}" dataUsingEncoding:NSUTF8StringEncoding]];`)})}else d.hasBody=!1;break;case"application/json":t.jsonObj&&(s(Tc("NSDictionary","parameters",t.jsonObj,o.pretty)),u(),s("NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];"));break;case"multipart/form-data":s(Tc("NSArray","parameters",t.params||[],o.pretty)),s(`NSString *boundary = @"${t.boundary}";`),u(),s("NSError *error;"),s("NSMutableString *body = [NSMutableString string];"),s("for (NSDictionary *param in parameters) {"),s('[body appendFormat:@"--%@\\r\\n", boundary];',1),s('if (param[@"fileName"]) {',1),s('[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"; filename=\\"%@\\"\\r\\n", param[@"name"], param[@"fileName"]];',2),s('[body appendFormat:@"Content-Type: %@\\r\\n\\r\\n", param[@"contentType"]];',2),s('[body appendFormat:@"%@", [NSString stringWithContentsOfFile:param[@"fileName"] encoding:NSUTF8StringEncoding error:&error]];',2),s("if (error) {",2),s('NSLog(@"%@", error);',3),s("}",2),s("} else {",1),s('[body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"\\r\\n\\r\\n", param[@"name"]];',2),s('[body appendFormat:@"%@", param[@"value"]];',2),s("}",1),s("}"),s('[body appendFormat:@"\\r\\n--%@--\\r\\n", boundary];'),s("NSData *postData = [body dataUsingEncoding:NSUTF8StringEncoding];");break;default:u(),s(`NSData *postData = [[NSData alloc] initWithData:[@"${t.text}" dataUsingEncoding:NSUTF8StringEncoding]];`)}return u(),s(`NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"${r}"]`),s(" cachePolicy:NSURLRequestUseProtocolCachePolicy"),s(` timeoutInterval:${o.timeout.toFixed(1)}];`),s(`[request setHTTPMethod:@"${n}"];`),d.hasHeaders&&s("[request setAllHTTPHeaderFields:headers];"),d.hasBody&&s("[request setHTTPBody:postData];"),u(),s("NSURLSession *session = [NSURLSession sharedSession];"),s("NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request"),s(" completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {"),s(" if (error) {",1),s(' NSLog(@"%@", error);',2),s(" } else {",1),s(" NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;",2),s(' NSLog(@"%@", httpResponse);',2),s(" }",1),s(" }];"),s("[dataTask resume];"),l()}},TV={info:{key:"objc",title:"Objective-C",extname:".m",default:"nsurlsession"},clientsById:{nsurlsession:xV}},vV={info:{key:"cohttp",title:"CoHTTP",link:"https://github.com/mirage/ocaml-cohttp",description:"Cohttp is a very lightweight HTTP server using Lwt or Async for OCaml"},convert:({fullUrl:e,allHeaders:t,postData:n,method:r},a)=>{const i={indent:" ",...a},o=["get","post","head","delete","patch","put","options"],{push:s,blank:l,join:u}=new Re({indent:i.indent});s("open Cohttp_lwt_unix"),s("open Cohttp"),s("open Lwt"),l(),s(`let uri = Uri.of_string "${e}" in`);const d=Object.keys(t);d.length===1?s(`let headers = Header.add (Header.init ()) "${d[0]}" "${dt(t[d[0]])}" in`):d.length>1&&(s("let headers = Header.add_list (Header.init ()) ["),d.forEach(h=>{s(`("${h}", "${dt(t[h])}");`,1)}),s("] in")),n!=null&&n.text&&s(`let body = Cohttp_lwt_body.of_string ${JSON.stringify(n.text)} in`),l();const c=d.length?"~headers ":"",f=n!=null&&n.text?"~body ":"",m=o.includes(r.toLowerCase())?`\`${r.toUpperCase()}`:`(Code.method_of_string "${r}")`;return s(`Client.call ${c}${f}${m} uri`),s(">>= fun (res, body_stream) ->"),s("(* Do stuff with the result *)",1),u()}},SV={info:{key:"ocaml",title:"OCaml",extname:".ml",default:"cohttp"},clientsById:{cohttp:vV}},Ge=(e,t,n)=>{switch(n=n||"",t=t||"",Object.prototype.toString.call(e)){case"[object Null]":return"null";case"[object Undefined]":return"null";case"[object String]":return`'${po(e,{delimiter:"'",escapeNewlines:!1})}'`;case"[object Number]":return e.toString();case"[object Array]":{const r=e.map(a=>Ge(a,`${t}${t}`,t)).join(`,
|
|
437
|
+
${t}`);return`[
|
|
438
|
+
${t}${r}
|
|
439
|
+
${n}]`}case"[object Object]":{const r=[];for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&r.push(`${Ge(a,t)} => ${Ge(e[a],`${t}${t}`,t)}`);return`[
|
|
440
|
+
${t}${r.join(`,
|
|
441
|
+
${t}`)}
|
|
442
|
+
${n}]`}default:return"null"}},qx=["ACL","BASELINE_CONTROL","CHECKIN","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LABEL","LOCK","MERGE","MKACTIVITY","MKCOL","MKWORKSPACE","MOVE","OPTIONS","POST","PROPFIND","PROPPATCH","PUT","REPORT","TRACE","UNCHECKOUT","UNLOCK","UPDATE","VERSION_CONTROL"],AV={info:{key:"curl",title:"cURL",link:"http://php.net/manual/en/book.curl.php",description:"PHP with ext-curl"},convert:({uriObj:e,postData:t,fullUrl:n,method:r,httpVersion:a,cookies:i,headersObj:o},s={})=>{const{closingTag:l=!1,indent:u=" ",maxRedirects:d=10,namedErrors:c=!1,noTags:f=!1,shortTags:m=!1,timeout:h=30}=s,{push:g,blank:b,join:E}=new Re({indent:u});f||(g(m?"<?":"<?php"),b()),g("$curl = curl_init();"),b();const T=[{escape:!0,name:"CURLOPT_PORT",value:e.port===""?null:e.port},{escape:!0,name:"CURLOPT_URL",value:n},{escape:!1,name:"CURLOPT_RETURNTRANSFER",value:"true"},{escape:!0,name:"CURLOPT_ENCODING",value:""},{escape:!1,name:"CURLOPT_MAXREDIRS",value:d},{escape:!1,name:"CURLOPT_TIMEOUT",value:h},{escape:!1,name:"CURLOPT_HTTP_VERSION",value:a==="HTTP/1.0"?"CURL_HTTP_VERSION_1_0":"CURL_HTTP_VERSION_1_1"},{escape:!0,name:"CURLOPT_CUSTOMREQUEST",value:r},{escape:!(t!=null&&t.jsonObj),name:"CURLOPT_POSTFIELDS",value:t?t.jsonObj?`json_encode(${Ge(t.jsonObj,u.repeat(2),u)})`:t.text:void 0}];g("curl_setopt_array($curl, [");const v=new Re({indent:u,join:`
|
|
443
|
+
${u}`});T.forEach(({value:A,name:_,escape:D})=>{A!=null&&v.push(`${_} => ${D?JSON.stringify(A):A},`)});const S=i.map(A=>`${encodeURIComponent(A.name)}=${encodeURIComponent(A.value)}`);S.length&&v.push(`CURLOPT_COOKIE => "${S.join("; ")}",`);const w=Object.keys(o).sort().map(A=>`"${A}: ${dt(o[A])}"`);return w.length&&(v.push("CURLOPT_HTTPHEADER => ["),v.push(w.join(`,
|
|
444
|
+
${u}${u}`),1),v.push("],")),g(v.join(),1),g("]);"),b(),g("$response = curl_exec($curl);"),g("$err = curl_error($curl);"),b(),g("curl_close($curl);"),b(),g("if ($err) {"),g(c?'echo array_flip(get_defined_constants(true)["curl"])[$err];':'echo "cURL Error #:" . $err;',1),g("} else {"),g("echo $response;",1),g("}"),!f&&l&&(b(),g("?>")),E()}},wV={info:{key:"guzzle",title:"Guzzle",link:"http://docs.guzzlephp.org/en/stable/",description:"PHP with Guzzle"},convert:({postData:e,fullUrl:t,method:n,cookies:r,headersObj:a},i)=>{var o;const s={closingTag:!1,indent:" ",noTags:!1,shortTags:!1,...i},{push:l,blank:u,join:d}=new Re({indent:s.indent}),{code:c,push:f,join:m}=new Re({indent:s.indent});switch(s.noTags||(l(s.shortTags?"<?":"<?php"),u()),e==null?void 0:e.mimeType){case"application/x-www-form-urlencoded":f(`'form_params' => ${Ge(e.paramsObj,s.indent+s.indent,s.indent)},`,1);break;case"multipart/form-data":{const b=[];if(e.params&&e.params.forEach(function(E){if(E.fileName){const T={name:E.name,filename:E.fileName,contents:E.value};E.contentType&&(T.headers={"Content-Type":E.contentType}),b.push(T)}else E.value&&b.push({name:E.name,contents:E.value})}),b.length&&(f(`'multipart' => ${Ge(b,s.indent+s.indent,s.indent)}`,1),lu(a,"content-type")&&!((o=xn(a,"content-type"))===null||o===void 0)&&o.indexOf("boundary"))){const E=Ct(a,"content-type");E&&delete a[E]}break}default:e!=null&&e.text&&f(`'body' => ${Ge(e.text)},`,1)}const h=Object.keys(a).sort().map(function(b){return`${s.indent}${s.indent}'${b}' => '${fo(a[b])}',`}),g=r.map(b=>`${encodeURIComponent(b.name)}=${encodeURIComponent(b.value)}`).join("; ");return g.length&&h.push(`${s.indent}${s.indent}'cookie' => '${fo(g)}',`),h.length&&(f("'headers' => [",1),f(h.join(`
|
|
445
|
+
`)),f("],",1)),l("$client = new \\GuzzleHttp\\Client();"),u(),c.length?(l(`$response = $client->request('${n}', '${t}', [`),l(m()),l("]);")):l(`$response = $client->request('${n}', '${t}');`),u(),l("echo $response->getBody();"),!s.noTags&&s.closingTag&&(u(),l("?>")),d()}},_V={info:{key:"http1",title:"HTTP v1",link:"http://php.net/manual/en/book.http.php",description:"PHP with pecl/http v1"},convert:({method:e,url:t,postData:n,queryObj:r,headersObj:a,cookiesObj:i},o={})=>{const{closingTag:s=!1,indent:l=" ",noTags:u=!1,shortTags:d=!1}=o,{push:c,blank:f,join:m}=new Re({indent:l});switch(u||(c(d?"<?":"<?php"),f()),qx.includes(e.toUpperCase())||c(`HttpRequest::methodRegister('${e}');`),c("$request = new HttpRequest();"),c(`$request->setUrl(${Ge(t)});`),qx.includes(e.toUpperCase())?c(`$request->setMethod(HTTP_METH_${e.toUpperCase()});`):c(`$request->setMethod(HttpRequest::HTTP_METH_${e.toUpperCase()});`),f(),Object.keys(r).length&&(c(`$request->setQueryData(${Ge(r,l)});`),f()),Object.keys(a).length&&(c(`$request->setHeaders(${Ge(a,l)});`),f()),Object.keys(i).length&&(c(`$request->setCookies(${Ge(i,l)});`),f()),n==null?void 0:n.mimeType){case"application/x-www-form-urlencoded":c(`$request->setContentType(${Ge(n.mimeType)});`),c(`$request->setPostFields(${Ge(n.paramsObj,l)});`),f();break;case"application/json":c(`$request->setContentType(${Ge(n.mimeType)});`),c(`$request->setBody(json_encode(${Ge(n.jsonObj,l)}));`),f();break;default:n!=null&&n.text&&(c(`$request->setBody(${Ge(n.text)});`),f())}return c("try {"),c("$response = $request->send();",1),f(),c("echo $response->getBody();",1),c("} catch (HttpException $ex) {"),c("echo $ex;",1),c("}"),!u&&s&&(f(),c("?>")),m()}},NV={info:{key:"http2",title:"HTTP v2",link:"http://devel-m6w6.rhcloud.com/mdref/http",description:"PHP with pecl/http v2"},convert:({postData:e,headersObj:t,method:n,queryObj:r,cookiesObj:a,url:i},o={})=>{var s;const{closingTag:l=!1,indent:u=" ",noTags:d=!1,shortTags:c=!1}=o,{push:f,blank:m,join:h}=new Re({indent:u});let g=!1;switch(d||(f(c?"<?":"<?php"),m()),f("$client = new http\\Client;"),f("$request = new http\\Client\\Request;"),m(),e==null?void 0:e.mimeType){case"application/x-www-form-urlencoded":f("$body = new http\\Message\\Body;"),f(`$body->append(new http\\QueryString(${Ge(e.paramsObj,u)}));`),m(),g=!0;break;case"multipart/form-data":{if(!e.params)break;const b=[],E={};e.params.forEach(({name:S,fileName:w,value:A,contentType:_})=>{if(w){b.push({name:S,type:_,file:w,data:A});return}A&&(E[S]=A)});const T=Object.keys(E).length?Ge(E,u):"null",v=b.length?Ge(b,u):"null";if(f("$body = new http\\Message\\Body;"),f(`$body->addForm(${T}, ${v});`),lu(t,"content-type")&&!((s=xn(t,"content-type"))===null||s===void 0)&&s.indexOf("boundary")){const S=Ct(t,"content-type");S&&delete t[S]}m(),g=!0;break}case"application/json":f("$body = new http\\Message\\Body;"),f(`$body->append(json_encode(${Ge(e.jsonObj,u)}));`),g=!0;break;default:e!=null&&e.text&&(f("$body = new http\\Message\\Body;"),f(`$body->append(${Ge(e.text)});`),m(),g=!0)}return f(`$request->setRequestUrl(${Ge(i)});`),f(`$request->setRequestMethod(${Ge(n)});`),g&&(f("$request->setBody($body);"),m()),Object.keys(r).length&&(f(`$request->setQuery(new http\\QueryString(${Ge(r,u)}));`),m()),Object.keys(t).length&&(f(`$request->setHeaders(${Ge(t,u)});`),m()),Object.keys(a).length&&(m(),f(`$client->setCookies(${Ge(a,u)});`),m()),f("$client->enqueue($request)->send();"),f("$response = $client->getResponse();"),m(),f("echo $response->getBody();"),!d&&l&&(m(),f("?>")),h()}},CV={info:{key:"php",title:"PHP",extname:".php",default:"curl"},clientsById:{curl:AV,guzzle:wV,http1:_V,http2:NV}},NN=e=>({method:n,headersObj:r,cookies:a,uriObj:i,fullUrl:o,postData:s,allHeaders:l})=>{const{push:u,join:d}=new Re;if(!["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(n.toUpperCase()))return"Method not supported";const f=[],m=Object.keys(r);return m.length&&(u("$headers=@{}"),m.forEach(h=>{h!=="connection"&&u(`$headers.Add("${h}", "${po(r[h],{escapeChar:"`"})}")`)}),f.push("-Headers $headers")),a.length&&(u("$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession"),a.forEach(h=>{u("$cookie = New-Object System.Net.Cookie"),u(`$cookie.Name = '${h.name}'`),u(`$cookie.Value = '${h.value}'`),u(`$cookie.Domain = '${i.host}'`),u("$session.Cookies.Add($cookie)")}),f.push("-WebSession $session")),s!=null&&s.text&&(f.push(`-ContentType '${po(xn(l,"content-type"),{delimiter:"'",escapeChar:"`"})}'`),f.push(`-Body '${s.text}'`)),u(`$response = ${e} -Uri '${o}' -Method ${n} ${f.join(" ")}`),d()},kV={info:{key:"restmethod",title:"Invoke-RestMethod",link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-RestMethod",description:"Powershell Invoke-RestMethod client"},convert:NN("Invoke-RestMethod")},IV={info:{key:"webrequest",title:"Invoke-WebRequest",link:"https://docs.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Utility/Invoke-WebRequest",description:"Powershell Invoke-WebRequest client"},convert:NN("Invoke-WebRequest")},RV={info:{key:"powershell",title:"Powershell",extname:".ps1",default:"webrequest"},clientsById:{webrequest:IV,restmethod:kV}},OV={info:{key:"python3",title:"http.client",link:"https://docs.python.org/3/library/http.client.html",description:"Python3 HTTP Client"},convert:({uriObj:{path:e,protocol:t,host:n},postData:r,allHeaders:a,method:i},o={})=>{const{insecureSkipVerify:s=!1}=o,{push:l,blank:u,join:d}=new Re;l("import http.client"),s&&l("import ssl"),u(),t==="https:"?(l(`conn = http.client.HTTPSConnection("${n}"${s?", context = ssl._create_unverified_context()":""})`),u()):(l(`conn = http.client.HTTPConnection("${n}")`),u());const c=JSON.stringify(r==null?void 0:r.text);c&&(l(`payload = ${c}`),u());const f=a,m=Object.keys(f).length;if(m===1)for(const h in f)l(`headers = { '${h}': "${dt(f[h])}" }`),u();else if(m>1){let h=1;l("headers = {");for(const g in f)h++!==m?l(` '${g}': "${dt(f[g])}",`):l(` '${g}': "${dt(f[g])}"`);l("}"),u()}return l(c&&m?`conn.request("${i}", "${e}", payload, headers)`:c&&!m?`conn.request("${i}", "${e}", payload)`:!c&&m?`conn.request("${i}", "${e}", headers=headers)`:`conn.request("${i}", "${e}")`),u(),l("res = conn.getresponse()"),l("data = res.read()"),u(),l('print(data.decode("utf-8"))'),d()}};function Yx(e,t,n,r,a){const i=r.repeat(a),o=r.repeat(a-1),s=n?`,
|
|
446
|
+
${i}`:", ",l=e==="object"?"{":"[",u=e==="object"?"}":"]";return n?`${l}
|
|
447
|
+
${i}${t.join(s)}
|
|
448
|
+
${o}${u}`:e==="object"&&t.length>0?`${l} ${t.join(s)} ${u}`:`${l}${t.join(s)}${u}`}const wa=(e,t,n)=>{switch(n=n===void 0?1:n+1,Object.prototype.toString.call(e)){case"[object Number]":return e;case"[object Array]":{let r=!1;const a=e.map(i=>(Object.prototype.toString.call(i)==="[object Object]"&&(r=Object.keys(i).length>1),wa(i,t,n)));return Yx("array",a,r,t.indent,n)}case"[object Object]":{const r=[];for(const a in e)r.push(`"${a}": ${wa(e[a],t,n)}`);return Yx("object",r,t.pretty&&r.length>1,t.indent,n)}case"[object Null]":return"None";case"[object Boolean]":return e?"True":"False";default:return e==null?"":`"${e.toString().replace(/"/g,'\\"')}"`}},DV=["HEAD","GET","POST","PUT","PATCH","DELETE","OPTIONS"],LV={info:{key:"requests",title:"Requests",link:"http://docs.python-requests.org/en/latest/api/#requests.request",description:"Requests HTTP library"},convert:({queryObj:e,url:t,postData:n,allHeaders:r,method:a},i)=>{const o={indent:" ",pretty:!0,...i},{push:s,blank:l,join:u}=new Re({indent:o.indent});s("import requests"),l(),s(`url = "${t}"`),l();let d;Object.keys(e).length&&(d=`querystring = ${JSON.stringify(e)}`,s(d),l());const c=r;let f={};const m={};let h=!1,g=!1,b=!1;switch(n==null?void 0:n.mimeType){case"application/json":n.jsonObj&&(s(`payload = ${wa(n.jsonObj,o)}`),b=!0,g=!0);break;case"multipart/form-data":if(!n.params)break;if(f={},n.params.forEach(v=>{v.fileName?(m[v.name]=`open('${v.fileName}', 'rb')`,h=!0):(f[v.name]=v.value,g=!0)}),h){s(`files = ${wa(m,o)}`),g&&s(`payload = ${wa(f,o)}`);const v=Ct(c,"content-type");v&&delete c[v]}else{const v=JSON.stringify(n.text);v&&(s(`payload = ${v}`),g=!0)}break;default:{if(!n)break;if(n.mimeType==="application/x-www-form-urlencoded"&&n.paramsObj){s(`payload = ${wa(n.paramsObj,o)}`),g=!0;break}const v=JSON.stringify(n.text);v&&(s(`payload = ${v}`),g=!0)}}const E=Object.keys(c).length;if(E===0&&(g||h))l();else if(E===1)for(const v in c)s(`headers = {"${v}": "${dt(c[v])}"}`),l();else if(E>1){let v=1;s("headers = {");for(const S in c)s(v!==E?`"${S}": "${dt(c[S])}",`:`"${S}": "${dt(c[S])}"`,1),v+=1;s("}"),l()}let T=DV.includes(a)?`response = requests.${a.toLowerCase()}(url`:`response = requests.request("${a}", url`;return g&&(b?T+=", json=payload":T+=", data=payload"),h&&(T+=", files=files"),E>0&&(T+=", headers=headers"),d&&(T+=", params=querystring"),T+=")",s(T),l(),s("print(response.json())"),u()}},PV={info:{key:"python",title:"Python",extname:".py",default:"python3"},clientsById:{python3:OV,requests:LV}},FV={info:{key:"httr",title:"httr",link:"https://cran.r-project.org/web/packages/httr/vignettes/quickstart.html",description:"httr: Tools for Working with URLs and HTTP"},convert:({url:e,queryObj:t,queryString:n,postData:r,allHeaders:a,method:i},o={})=>{var s,l;const{push:u,blank:d,join:c}=new Re({indent:(s=o.indent)!==null&&s!==void 0?s:" "});u("library(httr)"),d(),u(`url <- "${e}"`),d();const f=t;delete t.key;const m=Object.entries(f),h=m.length;if(h===1){const I=m[0];u(`queryString <- list(${I[0]} = "${I[1]}")`),d()}else h>1&&(u("queryString <- list("),m.forEach(([I,O],M)=>{const j=M!==h-1?",":"";u(`${I} = "${O}"${j}`,1)}),u(")"),d());const g=JSON.stringify(r==null?void 0:r.text);if(g&&(u(`payload <- ${g}`),d()),r&&(r.text||r.jsonObj||r.params))switch(r.mimeType){case"application/x-www-form-urlencoded":u('encode <- "form"'),d();break;case"application/json":u('encode <- "json"'),d();break;case"multipart/form-data":u('encode <- "multipart"'),d();break;default:u('encode <- "raw"'),d();break}const b=xn(a,"cookie"),E=xn(a,"accept"),T=b?`set_cookies(\`${String(b).replace(/;/g,'", `').replace(/` /g,"`").replace(/[=]/g,'` = "')}")`:void 0,v=E?`accept("${dt(E)}")`:void 0,S=`content_type("${dt((l=r==null?void 0:r.mimeType)!==null&&l!==void 0?l:"application/octet-stream")}")`,w=Object.entries(a).filter(([I])=>!["cookie","accept","content-type"].includes(I.toLowerCase())).map(([I,O])=>`'${I}' = '${fo(O)}'`).join(", "),A=w?`add_headers(${w})`:void 0;let _=`response <- VERB("${i}", url`;g&&(_+=", body = payload"),n.length&&(_+=", query = queryString");const D=[A,S,v,T].filter(I=>!!I).join(", ");return D&&(_+=`, ${D}`),r&&(r.text||r.jsonObj||r.params)&&(_+=", encode = encode"),_+=")",u(_),d(),u('content(response, "text")'),c()}},MV={info:{key:"r",title:"R",extname:".r",default:"httr"},clientsById:{httr:FV}},BV={info:{key:"native",title:"net::http",link:"http://ruby-doc.org/stdlib-2.2.1/libdoc/net/http/rdoc/Net/HTTP.html",description:"Ruby HTTP client"},convert:({uriObj:e,method:t,fullUrl:n,postData:r,allHeaders:a},i={})=>{const{insecureSkipVerify:o=!1}=i,{push:s,blank:l,join:u}=new Re;s("require 'uri'"),s("require 'net/http'"),l();const d=t.toUpperCase(),c=["GET","POST","HEAD","DELETE","PATCH","PUT","OPTIONS","COPY","LOCK","UNLOCK","MOVE","TRACE"],f=d.charAt(0)+d.substring(1).toLowerCase();c.includes(d)||(s(`class Net::HTTP::${f} < Net::HTTPRequest`),s(` METHOD = '${d.toUpperCase()}'`),s(` REQUEST_HAS_BODY = '${r!=null&&r.text?"true":"false"}'`),s(" RESPONSE_HAS_BODY = true"),s("end"),l()),s(`url = URI("${n}")`),l(),s("http = Net::HTTP.new(url.host, url.port)"),e.protocol==="https:"&&(s("http.use_ssl = true"),o&&s("http.verify_mode = OpenSSL::SSL::VERIFY_NONE")),l(),s(`request = Net::HTTP::${f}.new(url)`);const m=Object.keys(a);return m.length&&m.forEach(h=>{s(`request["${h}"] = '${fo(a[h])}'`)}),r!=null&&r.text&&s(`request.body = ${JSON.stringify(r.text)}`),l(),s("response = http.request(request)"),s("puts response.read_body"),u()}},UV={info:{key:"ruby",title:"Ruby",extname:".rb",default:"native"},clientsById:{native:BV}},St=(e="")=>/^[a-z0-9-_/.@%^=:]+$/i.test(e)?e:`'${e.replace(/'/g,"'\\''")}'`,$V=e=>e.replace(/\r/g,"\\r").replace(/\n/g,"\\n"),jV={"http1.0":"0","url ":"",cookie:"b",data:"d",form:"F",globoff:"g",header:"H",insecure:"k",request:"X"},HV=e=>t=>{if(e){const n=jV[t];return n?`-${n}`:""}return`--${t}`},zV={info:{key:"curl",title:"cURL",link:"http://curl.haxx.se/",description:"cURL is a command line tool and library for transferring data with URL syntax"},convert:({fullUrl:e,method:t,httpVersion:n,headersObj:r,allHeaders:a,postData:i},o={})=>{var s;const{binary:l=!1,globOff:u=!1,indent:d=" ",insecureSkipVerify:c=!1,prettifyJson:f=!1,short:m=!1}=o,{push:h,join:g}=new Re({...typeof d=="string"?{indent:d}:{},join:d!==!1?` \\
|
|
449
|
+
${d}`:" "}),b=HV(m);let E=St(e);if(h(`curl ${b("request")} ${t}`),u&&(E=unescape(E),h(b("globoff"))),h(`${b("url ")}${E}`),c&&h(b("insecure")),n==="HTTP/1.0"&&h(b("http1.0")),xn(a,"accept-encoding")&&h("--compressed"),(i==null?void 0:i.mimeType)==="multipart/form-data"){const T=Ct(r,"content-type");if(T){const v=r[T];if(T&&v){const S=v.replace(/; boundary.+?(?=(;|$))/,"");r[T]=S,a[T]=S}}}switch(Object.keys(r).sort().forEach(T=>{const v=`${T}: ${r[T]}`;h(`${b("header")} ${St(v)}`)}),a.cookie&&h(`${b("cookie")} ${St(a.cookie)}`),i==null?void 0:i.mimeType){case"multipart/form-data":(s=i.params)===null||s===void 0||s.forEach(T=>{let v="";T.fileName?v=`${T.name}=@${T.fileName}`:v=`${T.name}=${T.value}`,h(`${b("form")} ${St(v)}`)});break;case"application/x-www-form-urlencoded":i.params?i.params.forEach(T=>{const v=T.name,S=encodeURIComponent(T.name),w=S!==v;h(`${l?"--data-binary":`--data${w?"-urlencode":""}`} ${St(`${w?S:v}=${T.value}`)}`)}):h(`${l?"--data-binary":b("data")} ${St(i.text)}`);break;default:{if(!i||!i.text)break;const T=l?"--data-binary":b("data");let v=!1;if(PG(i.mimeType)&&i.text.length>2&&f)try{const w=JSON.parse(i.text);v=!0;const A=JSON.stringify(w,void 0,d);i.text.indexOf("'")>0?h(`${T} @- <<EOF
|
|
450
|
+
${A}
|
|
451
|
+
EOF`):h(`${T} '
|
|
452
|
+
${A}
|
|
453
|
+
'`)}catch{}v||h(`${T} ${St(i.text)}`)}}return g()}},GV={info:{key:"httpie",title:"HTTPie",link:"http://httpie.org/",description:"a CLI, cURL-like tool for humans"},convert:({allHeaders:e,postData:t,queryObj:n,fullUrl:r,method:a,url:i},o)=>{const s={body:!1,cert:!1,headers:!1,indent:" ",pretty:!1,print:!1,queryParams:!1,short:!1,style:!1,timeout:!1,verbose:!1,verify:!1,...o},{push:l,join:u,unshift:d}=new Re({indent:s.indent,join:s.indent!==!1?` \\
|
|
454
|
+
${s.indent}`:" "});let c=!1;const f=[];s.headers&&f.push(s.short?"-h":"--headers"),s.body&&f.push(s.short?"-b":"--body"),s.verbose&&f.push(s.short?"-v":"--verbose"),s.print&&f.push(`${s.short?"-p":"--print"}=${s.print}`),s.verify&&f.push(`--verify=${s.verify}`),s.cert&&f.push(`--cert=${s.cert}`),s.pretty&&f.push(`--pretty=${s.pretty}`),s.style&&f.push(`--style=${s.style}`),s.timeout&&f.push(`--timeout=${s.timeout}`),s.queryParams&&Object.keys(n).forEach(h=>{const g=n[h];Array.isArray(g)?g.forEach(b=>{l(`${h}==${St(b)}`)}):l(`${h}==${St(g)}`)}),Object.keys(e).sort().forEach(h=>{l(`${h}:${St(e[h])}`)}),(t==null?void 0:t.mimeType)==="application/x-www-form-urlencoded"?t.params&&t.params.length&&(f.push(s.short?"-f":"--form"),t.params.forEach(h=>{l(`${h.name}=${St(h.value)}`)})):c=!0;const m=f.length?`${f.join(" ")} `:"";if(i=St(s.queryParams?i:r),d(`http ${m}${a} ${i}`),c&&(t!=null&&t.text)){const h=St(t.text);d(`echo ${h} | `)}return u()}},VV={info:{key:"wget",title:"Wget",link:"https://www.gnu.org/software/wget/",description:"a free software package for retrieving files using HTTP, HTTPS"},convert:({method:e,postData:t,allHeaders:n,fullUrl:r},a)=>{const i={indent:" ",short:!1,verbose:!1,...a},{push:o,join:s}=new Re({indent:i.indent,join:i.indent!==!1?` \\
|
|
455
|
+
${i.indent}`:" "});return i.verbose?o(`wget ${i.short?"-v":"--verbose"}`):o(`wget ${i.short?"-q":"--quiet"}`),o(`--method ${St(e)}`),Object.keys(n).forEach(l=>{const u=`${l}: ${n[l]}`;o(`--header ${St(u)}`)}),t!=null&&t.text&&o(`--body-data ${$V(St(t.text))}`),o(i.short?"-O":"--output-document"),o(`- ${St(r)}`),s()}},WV={info:{key:"shell",title:"Shell",extname:".sh",default:"curl"},clientsById:{curl:zV,httpie:GV,wget:VV}},Kx=(e,t)=>t.repeat(e),Xx=(e,t,n,r)=>{const a=Kx(r,n),i=Kx(r-1,n),o=t?`,
|
|
456
|
+
${a}`:", ";return t?`[
|
|
457
|
+
${a}${e.join(o)}
|
|
458
|
+
${i}]`:`[${e.join(o)}]`},vc=(e,t,n)=>`let ${e} = ${Od(t,n)}`,Od=(e,t,n)=>{switch(n=n===void 0?1:n+1,Object.prototype.toString.call(e)){case"[object Number]":return e;case"[object Array]":{let r=!1;const a=e.map(i=>(Object.prototype.toString.call(i)==="[object Object]"&&(r=Object.keys(i).length>1),Od(i,t,n)));return Xx(a,r,t.indent,n)}case"[object Object]":{const r=[];for(const a in e)r.push(`"${a}": ${Od(e[a],t,n)}`);return Xx(r,t.pretty&&r.length>1,t.indent,n)}case"[object Boolean]":return e.toString();default:return e==null?"":`"${e.toString().replace(/"/g,'\\"')}"`}},qV={info:{key:"nsurlsession",title:"NSURLSession",link:"https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLSession_class/index.html",description:"Foundation's NSURLSession request"},convert:({allHeaders:e,postData:t,fullUrl:n,method:r},a)=>{var i;const o={indent:" ",pretty:!0,timeout:"10",...a},{push:s,blank:l,join:u}=new Re({indent:o.indent}),d={hasHeaders:!1,hasBody:!1};if(s("import Foundation"),Object.keys(e).length&&(d.hasHeaders=!0,l(),s(vc("headers",e,o))),t&&(t.text||t.jsonObj||t.params))switch(d.hasBody=!0,t.mimeType){case"application/x-www-form-urlencoded":if(l(),!((i=t.params)===null||i===void 0)&&i.length){const[c,...f]=t.params;s(`let postData = NSMutableData(data: "${c.name}=${c.value}".data(using: String.Encoding.utf8)!)`),f.forEach(({name:m,value:h})=>{s(`postData.append("&${m}=${h}".data(using: String.Encoding.utf8)!)`)})}else d.hasBody=!1;break;case"application/json":t.jsonObj&&(s(`${vc("parameters",t.jsonObj,o)} as [String : Any]`),l(),s("let postData = JSONSerialization.data(withJSONObject: parameters, options: [])"));break;case"multipart/form-data":s(vc("parameters",t.params,o)),l(),s(`let boundary = "${t.boundary}"`),l(),s('var body = ""'),s("var error: NSError? = nil"),s("for param in parameters {"),s('let paramName = param["name"]!',1),s('body += "--\\(boundary)\\r\\n"',1),s('body += "Content-Disposition:form-data; name=\\"\\(paramName)\\""',1),s('if let filename = param["fileName"] {',1),s('let contentType = param["content-type"]!',2),s("let fileContent = String(contentsOfFile: filename, encoding: String.Encoding.utf8)",2),s("if (error != nil) {",2),s("print(error as Any)",3),s("}",2),s('body += "; filename=\\"\\(filename)\\"\\r\\n"',2),s('body += "Content-Type: \\(contentType)\\r\\n\\r\\n"',2),s("body += fileContent",2),s('} else if let paramValue = param["value"] {',1),s('body += "\\r\\n\\r\\n\\(paramValue)"',2),s("}",1),s("}");break;default:l(),s(`let postData = NSData(data: "${t.text}".data(using: String.Encoding.utf8)!)`)}return l(),s(`let request = NSMutableURLRequest(url: NSURL(string: "${n}")! as URL,`),s(" cachePolicy: .useProtocolCachePolicy,"),s(` timeoutInterval: ${parseInt(o.timeout,10).toFixed(1)})`),s(`request.httpMethod = "${r}"`),d.hasHeaders&&s("request.allHTTPHeaderFields = headers"),d.hasBody&&s("request.httpBody = postData as Data"),l(),s("let session = URLSession.shared"),s("let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in"),s("if (error != nil) {",1),s("print(error as Any)",2),s("} else {",1),s("let httpResponse = response as? HTTPURLResponse",2),s("print(httpResponse)",2),s("}",1),s("})"),l(),s("dataTask.resume()"),u()}},YV={info:{key:"swift",title:"Swift",extname:".swift",default:"nsurlsession"},clientsById:{nsurlsession:qV}},KV={c:BG,clojure:jG,csharp:VG,go:qG,http:KG,java:eV,javascript:dV,kotlin:fV,node:yV,objc:TV,ocaml:SV,php:CV,powershell:RV,python:PV,r:MV,ruby:UV,shell:WV,swift:YV};function XV(e){const t=e.split("/");return t[t.length-1]}const ZV=e=>typeof e=="object"&&"log"in e&&typeof e.log=="object"&&"entries"in e.log&&Array.isArray(e.log.entries);class QV{constructor(t){let n=[];ZV(t)?n=t.log.entries:n=[{request:t}],this.requests=Promise.all(n.map(({request:r})=>{var a;const i={bodySize:0,headersSize:0,headers:[],cookies:[],httpVersion:"HTTP/1.1",queryString:[],postData:{mimeType:((a=r.postData)===null||a===void 0?void 0:a.mimeType)||"application/octet-stream"},...r};return this.prepare(i)}))}async prepare(t){var n,r,a,i;const o={...t,fullUrl:"",queryObj:{},headersObj:{},cookiesObj:{},allHeaders:{}};if(o.queryString&&o.queryString.length&&(o.queryObj=o.queryString.reduce($x,{})),o.headers&&o.headers.length){const m=/^HTTP\/2/;o.headersObj=o.headers.reduce((h,{name:g,value:b})=>{const E=m.exec(o.httpVersion)?g.toLocaleLowerCase():g;return{...h,[E]:b}},{})}o.cookies&&o.cookies.length&&(o.cookiesObj=o.cookies.reduceRight((m,{name:h,value:g})=>({...m,[h]:g}),{}));const s=(n=o.cookies)===null||n===void 0?void 0:n.map(({name:m,value:h})=>`${encodeURIComponent(m)}=${encodeURIComponent(h)}`);switch(s!=null&&s.length&&(o.allHeaders.cookie=s.join("; ")),(r=o.postData)===null||r===void 0?void 0:r.mimeType){case"multipart/mixed":case"multipart/related":case"multipart/form-data":case"multipart/alternative":if(o.postData.text="",o.postData.mimeType="multipart/form-data",!((a=o.postData)===null||a===void 0)&&a.params){const m=new NG,h="---011000010111000001101001";(i=o.postData)===null||i===void 0||i.params.forEach(E=>{const T=E.name,v=E.value||"",S=E.fileName;IG(v)?m.append(T,v,S):m.append(T,new CG([v],{type:E.contentType}),S&&XV(S))});const{postData:g}=o;for await(const E of DG(m,h))g.text+=E;o.postData.boundary=h;const b=Ct(o.headersObj,"content-type")||"content-type";o.headersObj[b]=`multipart/form-data; boundary=${h}`}break;case"application/x-www-form-urlencoded":o.postData.params?(o.postData.paramsObj=o.postData.params.reduce($x,{}),o.postData.text=jx(o.postData.paramsObj).toString()):o.postData.text="";break;case"text/json":case"text/x-json":case"application/json":case"application/x-json":if(o.postData.mimeType="application/json",o.postData.text)try{o.postData.jsonObj=JSON.parse(o.postData.text)}catch{o.postData.mimeType="text/plain"}break}const l={...o.allHeaders,...o.headersObj},u=new URL(o.url),d=Object.fromEntries(u.searchParams);o.queryObj={...o.queryObj,...d};const c=jx(o.queryObj),f=new URL(o.url);return f.search=c.toString(),u.search="",{...o,allHeaders:l,fullUrl:f.toString(),url:u.toString(),uriObj:new FG(f.toString())}}async convert(t,n,r){!r&&n&&(r=n);const a=KV[t];if(!a)return null;const{convert:i}=a.clientsById[n||a.info.default],o=(await this.requests).map(s=>i(s,r));return o.length===1?o[0]:o}}const Sc=[{label:"cURL",target:"shell",client:"curl",syntax:"bash"},{label:"HTTPie",target:"shell",client:"httpie",syntax:"bash"},{label:"Wget",target:"shell",client:"wget",syntax:"bash"},{label:"JavaScript (fetch)",target:"javascript",client:"fetch",syntax:"javascript"},{label:"JavaScript (XHR)",target:"javascript",client:"xhr",syntax:"javascript"},{label:"Node.js (fetch)",target:"node",client:"fetch",syntax:"javascript"},{label:"Node.js (axios)",target:"node",client:"axios",syntax:"javascript"},{label:"Python",target:"python",client:"requests",syntax:"python"},{label:"PHP",target:"php",client:"curl",syntax:"php"},{label:"Ruby",target:"ruby",client:"native",syntax:"ruby"},{label:"Go",target:"go",client:"native",syntax:"go"},{label:"Java (OkHttp)",target:"java",client:"okhttp",syntax:"java"},{label:"C#",target:"csharp",client:"restsharp",syntax:"csharp"},{label:"Swift",target:"swift",client:"nsurlsession",syntax:"swift"},{label:"Kotlin",target:"kotlin",client:"okhttp",syntax:"kotlin"}];function JV(e,t,n){const r={headers:[],queryParams:{}};if(!t)return r;const a=e!=null&&e.length?e:Object.keys(n).length?Object.keys(n).map(i=>({[i]:[]})):[];for(const i of a){const o=Object.keys(i);if(!o.every(u=>n[u]))continue;const s=[],l={};for(const u of o){const d=n[u];d&&(d.type==="bearer"?s.push({key:"Authorization",value:`Bearer ${d.token}`}):d.type==="basic"?s.push({key:"Authorization",value:`Basic ${btoa(`${d.username}:${d.password}`)}`}):d.type==="oauth2"?s.push({key:"Authorization",value:`${d.tokenType} ${d.accessToken}`}):d.type==="apiKey"&&(d.in==="header"?s.push({key:d.name,value:d.key}):d.in==="query"&&(l[d.name]=d.key)))}if(s.length||Object.keys(l).length)return{headers:s,queryParams:l}}return r}const eW=({method:e,path:t,requestBody:n,hasRequestBody:r,defaultContentType:a,security:i,exampleQueryParams:o,exampleHeaderParams:s})=>{const{computedUrl:l,credentials:u,spec:d,preferredContentType:c}=lt(),[f,m]=R.useState(Sc[0]),[h,g]=R.useState("");return R.useEffect(()=>{if(!l)return;let b=!1;return(async()=>{var E;try{const{headers:T,queryParams:v}=JV(i,(E=d.components)==null?void 0:E.securitySchemes,u),S={...o,...v},w=Object.keys(S).length?`${l}${t}?${new URLSearchParams(S)}`:`${l}${t}`,A=c??a??"application/json",_=[...s??[],...T,...r?[{key:"Content-Type",value:A}]:[]],D={method:e.toUpperCase(),url:w,httpVersion:"HTTP/1.1",headers:_.map(M=>({name:M.key,value:M.value})),queryString:[],cookies:[],postData:r&&n?{mimeType:A,text:n}:void 0,headersSize:0,bodySize:0},O=await new QV(D).convert(f.target,f.client);if(!b){const M=Array.isArray(O)?O[0]??"":O??"";g(M)}}catch(T){console.error("[CodeExamples] snippet error:",T),b||g("Could not generate snippet.")}})(),()=>{b=!0}},[e,t,n,r,f,l,u,i,d,c,o,s,a]),p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("h3",{className:"text-lg font-medium",children:"Code Examples"}),p.jsxs(En,{value:f.label,onValueChange:b=>{const E=Sc.find(T=>T.label===b);E&&m(E)},children:[p.jsx(tn,{className:"w-48",children:p.jsx(yn,{})}),p.jsx(nn,{children:Sc.map(b=>p.jsx(rn,{value:b.label,children:b.label},b.label))})]})]}),p.jsx("div",{className:"max-h-[60vh] overflow-y-auto rounded-lg",children:p.jsx(st,{markdown:h,languageCode:f.syntax,maxLines:20,className:"[&_code]:!whitespace-pre-wrap"})})]})},Dd=({url:e})=>p.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-blue-600 dark:text-blue-400 hover:underline",onClick:t=>t.stopPropagation(),children:[p.jsx(dr,{className:"h-3 w-3"}),"Documentation"]}),CN=e=>{const t=e.toLowerCase();return t==="unknown"?"border-slate-200 dark:border-slate-600 text-muted-foreground":t==="null"?"border-slate-200 dark:border-slate-600 text-slate-400 dark:text-slate-500":t.startsWith("string")?"border-violet-200 dark:border-violet-800 text-violet-700 dark:text-violet-300 bg-violet-50 dark:bg-violet-950/40":t.startsWith("integer")||t.startsWith("number")?"border-blue-200 dark:border-blue-800 text-blue-700 dark:text-blue-300 bg-blue-50 dark:bg-blue-950/40":t.startsWith("boolean")?"border-emerald-200 dark:border-emerald-800 text-emerald-700 dark:text-emerald-300 bg-emerald-50 dark:bg-emerald-950/40":t.startsWith("array")||t.startsWith("[")?"border-cyan-200 dark:border-cyan-800 text-cyan-700 dark:text-cyan-300 bg-cyan-50 dark:bg-cyan-950/40":t.startsWith("oneof")||t.startsWith("anyof")||t.startsWith("allof")||t==="conditional"?"border-indigo-200 dark:border-indigo-800 text-indigo-600 dark:text-indigo-300 bg-indigo-50 dark:bg-indigo-950/40":"border-amber-200 dark:border-amber-800 text-amber-700 dark:text-amber-300 bg-amber-50 dark:bg-amber-950/40"},kN=({schema:e})=>{var r;const t=Pa(e),n=tl(t);return p.jsxs(p.Fragment,{children:[p.jsx(ge,{variant:"outline",className:`text-[10px] px-1.5 py-0 h-4 font-medium ${CN(n)}`,children:n}),t.format&&p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4bg-blue-50 dark:bg-blue-900/30 border-blue-200 dark:border-blue-800",children:t.format}),t.deprecated&&p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4bg-yellow-50 dark:bg-yellow-900/30 border-yellow-200 dark:border-yellow-800",children:"deprecated"}),t.readOnly&&p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4bg-gray-50 dark:bg-gray-900/30 border-gray-200 dark:border-gray-800",children:"readonly"}),t.writeOnly&&p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4bg-gray-50 dark:bg-gray-900/30 border-gray-200 dark:border-gray-800",children:"writeOnly"}),t.default!==void 0&&p.jsxs(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4bg-gray-50 dark:bg-gray-900/30 border-gray-200 dark:border-gray-800",children:["default: ",JSON.stringify(t.default)]}),t.minLength!==void 0&&p.jsxs(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4font-mono text-muted-foreground",children:["min: ",t.minLength]}),t.maxLength!==void 0&&p.jsxs(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4font-mono text-muted-foreground",children:["max: ",t.maxLength]}),t.minimum!==void 0&&p.jsxs(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4font-mono text-muted-foreground",children:[t.exclusiveMinimum===!0?">":"≥"," ",t.minimum]}),typeof t.exclusiveMinimum=="number"&&p.jsxs(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4font-mono text-muted-foreground",children:["> ",t.exclusiveMinimum]}),t.maximum!==void 0&&p.jsxs(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4font-mono text-muted-foreground",children:[t.exclusiveMaximum===!0?"<":"≤"," ",t.maximum]}),typeof t.exclusiveMaximum=="number"&&p.jsxs(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4font-mono text-muted-foreground",children:["< ",t.exclusiveMaximum]}),t.multipleOf!==void 0&&p.jsxs(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4font-mono text-muted-foreground",children:["×",t.multipleOf]}),t.minItems!==void 0&&p.jsxs(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4font-mono text-muted-foreground",children:["minItems: ",t.minItems]}),t.maxItems!==void 0&&p.jsxs(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4font-mono text-muted-foreground",children:["maxItems: ",t.maxItems]}),t.minProperties!==void 0&&p.jsxs(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4font-mono text-muted-foreground",children:["minProps: ",t.minProperties]}),t.maxProperties!==void 0&&p.jsxs(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4font-mono text-muted-foreground",children:["maxProps: ",t.maxProperties]}),t.const!==void 0&&p.jsxs(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4font-mono bg-violet-50 dark:bg-violet-950/40 border-violet-200 dark:border-violet-800 text-violet-700 dark:text-violet-300",children:["const: ",JSON.stringify(t.const)]}),t.uniqueItems&&p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4text-muted-foreground",children:"unique"}),t.pattern&&p.jsxs(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4font-mono text-muted-foreground max-w-[200px] truncate",title:t.pattern,children:["/",t.pattern,"/"]}),t.contentMediaType&&p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4font-mono text-muted-foreground",children:t.contentMediaType}),t.contentEncoding&&p.jsxs(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4font-mono text-muted-foreground",children:["encoding: ",t.contentEncoding]}),t.minContains!==void 0&&p.jsxs(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4font-mono text-muted-foreground",children:["minContains: ",t.minContains]}),t.maxContains!==void 0&&p.jsxs(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4font-mono text-muted-foreground",children:["maxContains: ",t.maxContains]}),t.additionalProperties===!1&&p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4text-muted-foreground",children:"no additional props"}),t.unevaluatedProperties===!1&&p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4text-muted-foreground",children:"no unevaluated props"}),t.unevaluatedItems===!1&&p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4text-muted-foreground",children:"no unevaluated items"}),((r=t.externalDocs)==null?void 0:r.url)&&p.jsx(Dd,{url:t.externalDocs.url})]})},uu=R.createContext(null),Zx=[{border:"border-l-slate-300 dark:border-l-slate-600",openBg:"bg-slate-50 dark:bg-slate-800/50",separator:"border-b-slate-200 dark:border-b-slate-700"},{border:"border-l-blue-300 dark:border-l-blue-700",openBg:"bg-blue-50/50 dark:bg-blue-950/25",separator:"border-b-blue-200 dark:border-b-blue-800"},{border:"border-l-violet-300 dark:border-l-violet-700",openBg:"bg-violet-50/50 dark:bg-violet-950/25",separator:"border-b-violet-200 dark:border-b-violet-800"},{border:"border-l-emerald-300 dark:border-l-emerald-700",openBg:"bg-emerald-50/50 dark:bg-emerald-950/25",separator:"border-b-emerald-200 dark:border-b-emerald-800"},{border:"border-l-amber-300 dark:border-l-amber-700",openBg:"bg-amber-50/50 dark:bg-amber-950/25",separator:"border-b-amber-200 dark:border-b-amber-800"}],Qx=e=>Zx[e%Zx.length],tW=8,Jx=e=>!!e.properties||e.type==="object"||Array.isArray(e.oneOf)&&e.oneOf.length>0||Array.isArray(e.anyOf)&&e.anyOf.length>0||Array.isArray(e.allOf)&&e.allOf.length>0||!!e.not||!!e.additionalProperties&&typeof e.additionalProperties=="object"||!!e.patternProperties||!!e.propertyNames||Array.isArray(e.prefixItems)&&e.prefixItems.length>0||!!e.if||!!e.contains||typeof e.unevaluatedProperties=="object"&&!!e.unevaluatedProperties||typeof e.unevaluatedItems=="object"&&!!e.unevaluatedItems,eT=e=>{const t={},n=[];for(const r of e)r.properties&&Object.assign(t,r.properties),r.required&&n.push(...r.required);return{properties:t,required:n.filter((r,a,i)=>i.indexOf(r)===a)}},Xe=({name:e,schema:t,required:n,isRoot:r=!1,depth:a=0})=>{const i=Pa(t),o=Qx(a),s=i.type==="array"||!i.type&&!!i.items,l=!!(i.properties||i.additionalProperties&&typeof i.additionalProperties=="object"||i.patternProperties);if(a>=tW)return p.jsxs("div",{className:"flex items-center gap-2 p-2 text-xs text-muted-foreground italic",children:[p.jsx("div",{className:"w-4 shrink-0"}),"Max depth reached"]});const u=l||s&&!!i.items&&Jx(i.items)||Array.isArray(i.oneOf)&&i.oneOf.length>0||Array.isArray(i.anyOf)&&i.anyOf.length>0||Array.isArray(i.allOf)&&i.allOf.length>0&&i.allOf.some(w=>!!w.properties)||!!i.not||!!i.additionalProperties&&typeof i.additionalProperties=="object"||!!i.patternProperties||!!i.propertyNames||Array.isArray(i.prefixItems)&&i.prefixItems.length>0||!!i.if||!!i.contains||typeof i.unevaluatedProperties=="object"&&!!i.unevaluatedProperties||typeof i.unevaluatedItems=="object"&&!!i.unevaluatedItems,[d,c]=R.useState(r&&u),f=R.useContext(uu),m=(f==null?void 0:f.version)??0,h=(f==null?void 0:f.allOpen)??!1;R.useEffect(()=>{m===0||!u||c(h)},[m,h,u]);const g=R.useMemo(()=>{var w;if(!u)return null;if(l){const A=Object.keys(i.properties||{}).length,_=typeof i.additionalProperties=="object"&&i.additionalProperties?1:0,D=i.patternProperties?Object.keys(i.patternProperties).length:0,I=typeof i.unevaluatedProperties=="object"&&i.unevaluatedProperties?1:0,O=A+_+D+I;return O>0?{count:O,label:O===1?"property":"properties"}:null}if(s&&((w=i.items)!=null&&w.properties)){const A=Object.keys(i.items.properties).length;return A>0?{count:A,label:A===1?"field":"fields"}:null}if(Array.isArray(i.oneOf)&&i.oneOf.length>0)return{count:i.oneOf.length,label:"variants"};if(Array.isArray(i.anyOf)&&i.anyOf.length>0)return{count:i.anyOf.length,label:"variants"};if(i.not)return{count:1,label:"constraint"};if(Array.isArray(i.allOf)&&i.allOf.length>0){const{properties:A}=eT(i.allOf),_=Object.keys(A).length;return _>0?{count:_,label:_===1?"property":"properties"}:null}return Array.isArray(i.prefixItems)&&i.prefixItems.length>0?{count:i.prefixItems.length,label:i.prefixItems.length===1?"item":"items"}:i.if?{count:1,label:"conditional"}:null},[u,l,s,i]),b=(w,A)=>p.jsx("div",{className:a>0?Ee("border-l-2 pl-4",o.border):void 0,children:A},w),E=(w,A,_)=>{const D=w.type==="array"&&w.items?w.items:w,I=Pa(D),O=Jx(I),M=a+1,P=Qx(M),j=p.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[p.jsxs(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4",children:[_," ",A+1]}),w.title&&p.jsx("span",{className:"font-mono text-xs font-medium text-gray-900 dark:text-gray-100",children:w.title}),p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4 border-slate-200 dark:border-slate-700",children:tl(w)}),w.description&&p.jsx("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:w.description})]});if(!O)return p.jsxs("div",{className:"flex flex-col gap-1.5 p-2 rounded text-sm",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"w-4 shrink-0"}),j]}),I.enum&&I.enum.length>0&&p.jsxs("div",{className:"flex flex-wrap items-center gap-1 pl-6",children:[p.jsx("span",{className:"text-xs text-muted-foreground",children:"enum:"}),I.enum.map((W,H)=>p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4 font-monobg-violet-50 dark:bg-violet-950/40 border-violet-200 dark:border-violet-800 text-violet-700 dark:text-violet-300",children:JSON.stringify(W)},H))]})]},A);const z=Object.entries(I.properties??{}).sort(([W],[H])=>{var G,k;const X=(G=I.required)!=null&&G.includes(W)?0:1,Z=(k=I.required)!=null&&k.includes(H)?0:1;return X-Z});return p.jsx("div",{children:p.jsxs(Hn,{children:[p.jsxs(zn,{className:Ee("group flex items-center gap-2 w-full p-2 cursor-pointer transition-colors","data-[state=open]:rounded-t data-[state=closed]:rounded","data-[state=open]:"+P.openBg,"data-[state=open]:border-b data-[state=open]:"+P.separator,"hover:bg-slate-50 dark:hover:bg-slate-800"),children:[p.jsx(Yi,{className:"h-4 w-4 shrink-0 text-gray-400 group-data-[state=open]:rotate-90 transition-transform"}),j]}),p.jsx(Gn,{className:"mt-1 pl-4",children:p.jsxs("div",{className:Ee("border-l-2 pl-4",P.border),children:[z.map(([W,H])=>{var X;return p.jsx(Xe,{name:W,schema:H,required:(X=I.required)==null?void 0:X.includes(W),depth:M},W)}),typeof I.additionalProperties=="object"&&I.additionalProperties&&p.jsx(Xe,{name:"[key: string]",schema:I.additionalProperties,depth:M}),I.patternProperties&&Object.entries(I.patternProperties).map(([W,H])=>p.jsx(Xe,{name:`[/${W}/]`,schema:H,depth:M},`pattern:${W}`)),!I.properties&&!I.additionalProperties&&!I.patternProperties&&p.jsx(Xe,{schema:I,depth:M})]})})]})},A)},T=(w,A,_,D)=>p.jsxs("div",{className:"pl-4 mt-1",children:[p.jsx("p",{className:"text-xs text-muted-foreground px-2 pb-1",children:A}),_.map((I,O)=>E(I,O,D))]},w),v=()=>{var _;const w=[],A=a+1;if(l){const D=Object.entries(i.properties||{}).sort(([I],[O])=>{var j,z;const M=(j=i.required)!=null&&j.includes(I)?0:1,P=(z=i.required)!=null&&z.includes(O)?0:1;return M-P});w.push(p.jsxs("div",{className:a===0?"pl-2":"pl-4",children:[D.map(([I,O])=>{var M;return b(I,p.jsx(Xe,{name:I,schema:O,required:(M=i.required)==null?void 0:M.includes(I),depth:A}))}),i.additionalProperties&&typeof i.additionalProperties=="object"&&b("[key: string]",p.jsx(Xe,{name:"[key: string]",schema:i.additionalProperties,depth:A})),i.patternProperties&&Object.entries(i.patternProperties).map(([I,O])=>b(`pattern:${I}`,p.jsx(Xe,{name:`[/${I}/]`,schema:O,depth:A})))]},"props"))}else if(s&&i.items){const D=i.items;w.push(p.jsx("div",{className:a===0?"pl-2":"pl-4",children:D.properties?Object.entries(D.properties).map(([I,O])=>{var M;return b(I,p.jsx(Xe,{name:I,schema:O,required:(M=D.required)==null?void 0:M.includes(I),depth:A}))}):p.jsx(Xe,{schema:D,depth:A})},"items"))}if((_=i.discriminator)!=null&&_.mapping&&Object.keys(i.discriminator.mapping).length>0&&w.push(p.jsxs("div",{className:"pl-4 pt-1 pb-0.5",children:[p.jsx("p",{className:"text-xs text-muted-foreground px-2 pb-1",children:"Mapping"}),p.jsx("div",{className:"flex flex-col gap-0.5 px-2",children:Object.entries(i.discriminator.mapping).map(([D,I])=>p.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4 font-mono",children:D}),p.jsx("span",{className:"text-muted-foreground",children:"→"}),p.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:I.split("/").pop()})]},D))})]},"discriminator-mapping")),i.propertyNames&&w.push(p.jsxs("div",{className:"pl-4 mt-1",children:[p.jsx("p",{className:"text-xs text-muted-foreground px-2 pb-1",children:"Property names:"}),p.jsx(Xe,{schema:i.propertyNames,depth:A})]},"propertyNames")),i.not&&w.push(p.jsxs("div",{className:"pl-4 mt-1",children:[p.jsx("p",{className:"text-xs text-muted-foreground px-2 pb-1",children:"Not:"}),p.jsx(Xe,{schema:i.not,depth:A})]},"not")),i.contains&&w.push(p.jsxs("div",{className:"pl-4 mt-1",children:[p.jsx("p",{className:"text-xs text-muted-foreground px-2 pb-1",children:"Contains:"}),p.jsx(Xe,{schema:i.contains,depth:A})]},"contains")),typeof i.unevaluatedProperties=="object"&&i.unevaluatedProperties&&w.push(p.jsxs("div",{className:"pl-4 mt-1",children:[p.jsx("p",{className:"text-xs text-muted-foreground px-2 pb-1",children:"Unevaluated properties:"}),p.jsx(Xe,{name:"[unevaluated: string]",schema:i.unevaluatedProperties,depth:A})]},"unevaluatedProperties")),typeof i.unevaluatedItems=="object"&&i.unevaluatedItems&&w.push(p.jsxs("div",{className:"pl-4 mt-1",children:[p.jsx("p",{className:"text-xs text-muted-foreground px-2 pb-1",children:"Unevaluated items:"}),p.jsx(Xe,{schema:i.unevaluatedItems,depth:A})]},"unevaluatedItems")),Array.isArray(i.prefixItems)&&i.prefixItems.length>0&&w.push(p.jsxs("div",{className:"pl-4 mt-1",children:[p.jsx("p",{className:"text-xs text-muted-foreground px-2 pb-1",children:"Tuple items:"}),i.prefixItems.map((D,I)=>b(`prefixItem-${I}`,p.jsx(Xe,{name:`[${I}]`,schema:D,depth:A},I))),i.items&&b("prefixItems-rest",p.jsx(Xe,{name:"[...]",schema:i.items,depth:A}))]},"prefixItems")),i.if&&w.push(p.jsxs("div",{className:"pl-4 mt-1 space-y-1",children:[p.jsx("p",{className:"text-xs text-muted-foreground px-2 pb-1",children:"Conditional:"}),p.jsxs("div",{children:[p.jsx("p",{className:"text-xs text-muted-foreground px-2",children:"if"}),p.jsx(Xe,{schema:i.if,depth:A})]}),i.then&&p.jsxs("div",{children:[p.jsx("p",{className:"text-xs text-muted-foreground px-2",children:"then"}),p.jsx(Xe,{schema:i.then,depth:A})]}),i.else&&p.jsxs("div",{children:[p.jsx("p",{className:"text-xs text-muted-foreground px-2",children:"else"}),p.jsx(Xe,{schema:i.else,depth:A})]})]},"if-then-else")),Array.isArray(i.oneOf)&&i.oneOf.length>0&&w.push(T("oneOf","One of:",i.oneOf,"Option")),Array.isArray(i.anyOf)&&i.anyOf.length>0&&w.push(T("anyOf","Any of:",i.anyOf,"Option")),Array.isArray(i.allOf)&&i.allOf.length>0){const{properties:D,required:I}=eT(i.allOf);Object.keys(D).length>0&&w.push(p.jsx("div",{className:"pl-4",children:Object.entries(D).map(([O,M])=>b(O,p.jsx(Xe,{name:O,schema:M,required:I.includes(O),depth:A})))},"allOf"))}return w.length>0?p.jsx("div",{className:"space-y-0.5 py-1",children:w}):null},S=p.jsxs("div",{className:"flex flex-col gap-1 text-left min-w-0 flex-1",children:[p.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e&&p.jsxs("span",{className:"font-mono text-sm font-medium text-gray-900 dark:text-gray-100",children:[e,s&&"[]",n&&p.jsx("span",{className:"text-red-500 ml-0.5",children:"*"})]}),p.jsx(kN,{schema:i})]}),i.title&&i.title!==e&&!(i.type==="object"||!i.type&&i.properties)&&p.jsx("span",{className:"text-xs text-muted-foreground italic",children:i.title}),i.description&&p.jsx("div",{onClick:w=>w.stopPropagation(),children:p.jsx(st,{className:"!text-xs !text-gray-600 dark:!text-gray-400",markdown:i.description})}),i.discriminator&&p.jsxs("div",{className:"flex items-center gap-1.5 mt-0.5",children:[p.jsx("span",{className:"text-xs text-muted-foreground",children:"discriminator:"}),p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4 font-mono bg-orange-50 dark:bg-orange-950/30 border-orange-200 dark:border-orange-800 text-orange-700 dark:text-orange-300",children:i.discriminator.propertyName})]}),i.enum&&i.enum.length>0&&p.jsxs("div",{className:"flex flex-wrap items-center gap-1 mt-0.5",children:[p.jsx("span",{className:"text-xs text-muted-foreground",children:"enum:"}),i.enum.map((w,A)=>p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4 font-monobg-violet-50 dark:bg-violet-950/40 border-violet-200 dark:border-violet-800 text-violet-700 dark:text-violet-300",children:JSON.stringify(w)},A))]})]});return p.jsx("div",{className:"py-0.5",children:u?p.jsxs(Hn,{open:d,onOpenChange:c,children:[p.jsxs(zn,{className:Ee("group flex items-center gap-2 w-full p-2 cursor-pointer transition-colors",d?Ee("rounded-t",o.openBg,"border-b",o.separator):"rounded hover:bg-slate-50 dark:hover:bg-slate-800"),children:[p.jsx(Yi,{className:"h-4 w-4 shrink-0 text-gray-400 group-data-[state=open]:rotate-90 transition-transform"}),S,r&&p.jsxs("div",{className:"flex items-center gap-1 ml-auto shrink-0",onClick:w=>w.stopPropagation(),children:[!d&&g&&p.jsxs("span",{className:"text-xs text-muted-foreground mr-1",children:[g.count," ",g.label]}),(f==null?void 0:f.dispatch)&&p.jsxs(p.Fragment,{children:[p.jsxs("button",{onClick:()=>f.dispatch(!0),className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground px-1.5 py-0.5 rounded hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",children:[p.jsx(qa,{className:"h-3 w-3"}),"Expand all"]}),p.jsxs("button",{onClick:()=>f.dispatch(!1),className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground px-1.5 py-0.5 rounded hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",children:[p.jsx(Ud,{className:"h-3 w-3"}),"Collapse all"]})]})]}),!r&&!d&&g&&p.jsxs("span",{className:"shrink-0 self-center text-xs text-muted-foreground",children:[g.count," ",g.label]})]}),p.jsx(Gn,{children:v()})]}):p.jsxs("div",{className:"flex items-start gap-2 p-2",children:[p.jsx("div",{className:"w-4 shrink-0"}),S]})})},nW=e=>e.includes("json")?"json":e.includes("xml")?"xml":e.includes("yaml")?"yaml":e.includes("html")?"html":"text",rW=({schema:e,examples:t,example:n,contentType:r})=>{const[a,i]=R.useState(()=>!t||Object.keys(t).length===0?null:Object.keys(t)[0]||null),o=e==null?void 0:e.examples,[s,l]=R.useState(0),[u,d]=R.useState({version:0,allOpen:!1}),c=()=>{var f;return t&&a?(f=t[a])==null?void 0:f.value:Array.isArray(o)&&o.length>0?o[s]:n!==void 0?n:(e==null?void 0:e.example)||Yt(e)};return p.jsxs("div",{className:"grid grid-cols-1 gap-6",children:[p.jsxs("div",{className:"space-y-2",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("h3",{className:"text-base font-medium text-foreground",children:"Response Schema"}),p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsxs("button",{onClick:()=>d(f=>({version:f.version+1,allOpen:!0})),className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground px-2 py-1 rounded hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",children:[p.jsx(qa,{className:"h-3.5 w-3.5"}),"Expand all"]}),p.jsxs("button",{onClick:()=>d(f=>({version:f.version+1,allOpen:!1})),className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground px-2 py-1 rounded hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",children:[p.jsx(Ud,{className:"h-3.5 w-3.5"}),"Collapse all"]})]})]}),p.jsx("div",{className:"p-2 border rounded-lg border-slate-200 dark:border-slate-700 space-y-1",children:p.jsx(uu.Provider,{value:u,children:p.jsx(Xe,{schema:e,isRoot:!0})})})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("h3",{className:"text-base font-medium text-foreground",children:"Example Response"}),t&&Object.keys(t).length>1&&p.jsxs(En,{value:a||void 0,onValueChange:i,children:[p.jsx(tn,{className:"w-48 h-7 text-xs",children:p.jsx(yn,{placeholder:"Select example"})}),p.jsx(nn,{children:Object.keys(t).map(f=>p.jsx(rn,{value:f,className:"text-xs",children:f},f))})]}),!t&&Array.isArray(o)&&o.length>1&&p.jsxs(En,{value:String(s),onValueChange:f=>l(Number(f)),children:[p.jsx(tn,{className:"w-[180px] h-7 text-xs",children:p.jsx(yn,{})}),p.jsx(nn,{children:o.map((f,m)=>p.jsxs(rn,{value:String(m),className:"text-xs",children:["Example ",m+1]},m))})]})]}),p.jsx("div",{children:(()=>{const f=c();return p.jsx(st,{markdown:typeof f=="string"?f:JSON.stringify(f,null,2),languageCode:nW(r),maxLines:20,className:"[&_code]:!whitespace-pre-wrap p-2 !border !rounded-lg !border-slate-200 dark:!border-slate-700"})})()})]})]})},tT={1:{base:"text-blue-600 dark:text-blue-400 hover:text-white data-[state=active]:text-white",hover:"hover:bg-blue-500 dark:text-white",active:"data-[state=active]:bg-blue-500 bg-blue-500 dark:text-white"},2:{base:"text-green-600 dark:text-green-400 hover:text-white data-[state=active]:text-white",hover:"hover:bg-green-500 dark:text-white",active:"data-[state=active]:bg-green-500 bg-green-500 dark:text-white"},3:{base:"text-yellow-600 dark:text-yellow-400 hover:text-white data-[state=active]:text-white",hover:"hover:bg-yellow-500 dark:text-white",active:"data-[state=active]:bg-yellow-500 bg-yellow-500 dark:text-white"},4:{base:"text-orange-600 dark:text-orange-400 hover:text-white data-[state=active]:text-white",hover:"hover:bg-orange-500 dark:text-white",active:"data-[state=active]:bg-orange-500 bg-orange-500 dark:text-white"},5:{base:"text-red-600 dark:text-red-400 hover:text-white data-[state=active]:text-white",hover:"hover:bg-red-500 dark:text-white",active:"data-[state=active]:bg-red-500 bg-red-500 dark:text-white"}},aW=({headers:e})=>!e||Object.keys(e).length===0?null:p.jsxs(In,{className:"mt-4",children:[p.jsx(Gi,{children:p.jsx(mN,{className:"text-base",children:"Headers"})}),p.jsx(Vi,{children:p.jsx("div",{className:"space-y-4",children:Object.entries(e).map(([t,n])=>{var r,a;return p.jsxs("div",{className:"space-y-2",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"font-mono text-sm",children:t}),n.required&&p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4 bg-red-50 dark:bg-red-900/30 border-red-200 dark:border-red-800",children:"required"}),p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4",children:n.type||n.schema?n.schema?tl(n.schema):"unknown":""}),((r=n.schema)==null?void 0:r.pattern)&&p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4 bg-blue-50 dark:bg-blue-900/30 border-blue-200 dark:border-blue-800",children:"pattern"})]}),n.description&&p.jsx(st,{markdown:n.description,className:"!text-xs text-gray-600 dark:text-gray-400"}),((a=n.schema)==null?void 0:a.pattern)&&p.jsxs("div",{className:"text-xs font-mono bg-gray-50 dark:bg-gray-900 p-2 rounded",children:["Pattern: ",n.schema.pattern]})]},t)})})})]}),iW=({links:e})=>{const{spec:t}=lt(),n=sl(),r=a=>{const i=nl(t.paths);for(const[o,s]of Object.entries(i)){const l=s.find(u=>u.operationId===a);if(l)return{tag:o,operationIdentifier:Wa(l)}}return null};return p.jsxs("div",{className:"space-y-2 pt-1",children:[p.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"See also"}),p.jsx("div",{className:"flex flex-wrap gap-2",children:Object.entries(e).map(([a,i])=>{const o=i.operationId?r(i.operationId):null;return p.jsxs("button",{title:i.description,onClick:()=>o&&n({to:"/$tag/$operationIdentifier",params:o}),className:Ee("flex items-center gap-1.5 text-xs px-2.5 py-1 rounded-full border transition-colors",o?"border-primary/50 text-primary hover:bg-primary/10 cursor-pointer":"border-muted-foreground/30 text-muted-foreground cursor-default"),children:[p.jsx(ET,{className:"h-3 w-3 shrink-0"}),a]},a)})})]})},oW=({response:e})=>{var u,d,c,f,m,h;const{preferredContentType:t,setPreferredContentType:n}=lt(),r=e.content?Object.keys(e.content):[],a=()=>t&&r.includes(t)?t:r[0]??"",[i,o]=R.useState(a);R.useEffect(()=>{o(a())},[e,t]);const s=g=>{o(g),n(g)},l=i?(d=(u=e.content)==null?void 0:u[i])==null?void 0:d.schema:void 0;return p.jsxs("div",{className:"space-y-4",children:[e.description&&p.jsx("div",{className:"prose dark:prose-invert max-w-none",children:p.jsx(st,{markdown:e.description})}),e.headers&&p.jsx(aW,{headers:e.headers}),e.links&&Object.keys(e.links).length>0&&p.jsx(iW,{links:e.links}),r.length>0?p.jsxs("div",{className:"space-y-3",children:[r.length>1?p.jsxs(En,{value:i,onValueChange:s,children:[p.jsx(tn,{className:"w-48 h-7 text-xs",children:p.jsx(yn,{})}),p.jsx(nn,{children:r.map(g=>p.jsx(rn,{value:g,className:"text-xs",children:g},g))})]}):p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4 font-mono",children:r[0]}),l?$N(l)?p.jsx("p",{className:"text-sm text-muted-foreground italic",children:"No schema defined."}):p.jsx(rW,{contentType:i,schema:l,description:e.description,examples:(f=(c=e.content)==null?void 0:c[i])==null?void 0:f.examples,example:(h=(m=e.content)==null?void 0:m[i])==null?void 0:h.example}):null]}):!e.headers&&p.jsx("p",{className:"text-sm text-muted-foreground italic",children:"No response body."})]})},mo=({responses:e})=>{const t=R.useMemo(()=>e?Object.keys(e):[],[e]),[n,r]=R.useState(t[0]??"");return R.useEffect(()=>{t.length>0&&!t.includes(n)&&r(t[0])},[e,n,t]),!e||t.length===0?null:p.jsxs(iS,{value:n,onValueChange:r,className:"w-full",children:[p.jsx(mp,{className:"w-full flex-wrap justify-center gap-2 h-auto p-1 bg-muted",children:Object.entries(e).map(([a])=>{const i=a.charAt(0),o=tT[i]??tT[5];return p.jsx(hp,{value:a,className:Ee("flex-1 transition-colors font-medium",o.base,o.hover,n===a&&o.active),children:a},a)})}),Object.entries(e).map(([a,i])=>p.jsx(gp,{value:a,className:"mt-4",children:p.jsx(oW,{response:i})},a))]})},nT=["path","query","header","cookie"],rT={path:"border-orange-200 dark:border-orange-800 text-orange-700 dark:text-orange-300 bg-orange-50 dark:bg-orange-950/40",query:"border-sky-200 dark:border-sky-800 text-sky-700 dark:text-sky-300 bg-sky-50 dark:bg-sky-950/40",header:"border-slate-200 dark:border-slate-700 text-slate-600 dark:text-slate-400 bg-slate-50 dark:bg-slate-900/40",cookie:"border-pink-200 dark:border-pink-800 text-pink-700 dark:text-pink-300 bg-pink-50 dark:bg-pink-950/40"},sW=({schema:e,parameterLocation:t})=>{const n=(r,a,i)=>p.jsxs("div",{className:"space-y-1 mt-2",children:[p.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-400 mb-2",children:a}),r.map((o,s)=>p.jsx("div",{className:"border-l-2 border-slate-300 dark:border-slate-600 pl-4",children:p.jsx(Os,{parameter:{name:`${i}${s+1}`,in:t,schema:o},isRoot:!1})},s))]});if(e.type==="array"&&e.items){const r=e.items;return p.jsxs("div",{className:"space-y-1 mt-2",children:[p.jsx("div",{className:"text-xs text-gray-600 dark:text-gray-400 mb-2",children:"Array items:"}),r.type==="object"&&r.properties&&Object.entries(r.properties).map(([a,i])=>{var o;return p.jsx("div",{className:"border-l-2 border-slate-300 dark:border-slate-600 pl-4",children:p.jsx(Os,{parameter:{name:a,in:t,schema:i,required:(o=r.required)==null?void 0:o.includes(a)},isRoot:!1})},a)})]})}return e.type==="object"&&e.properties?p.jsx("div",{className:"space-y-1 mt-2",children:Object.entries(e.properties).map(([r,a])=>{var i;return p.jsx("div",{className:"border-l-2 border-slate-300 dark:border-slate-600 pl-4",children:p.jsx(Os,{parameter:{name:r,in:t,schema:a,required:(i=e.required)==null?void 0:i.includes(r)},isRoot:!1})},r)})}):e.oneOf?n(e.oneOf,"One of:","option"):e.anyOf?n(e.anyOf,"Any of:","option"):e.allOf?n(e.allOf,"All of:","condition"):null},Os=({parameter:e,isRoot:t=!1})=>{const[n,r]=R.useState(t),a=e.schema,i=e.in,o=(a==null?void 0:a.type)==="object"&&!!a.properties||(a==null?void 0:a.type)==="array"&&Array.isArray(a.items)&&a.items.length>0||Array.isArray(a==null?void 0:a.oneOf)&&a.oneOf.length>0||Array.isArray(a==null?void 0:a.anyOf)&&a.anyOf.length>0||Array.isArray(a==null?void 0:a.allOf)&&a.allOf.length>0,s=()=>a!=null&&a.enum?p.jsxs("div",{className:"flex flex-wrap items-center gap-1 mt-1",onClick:d=>d.stopPropagation(),children:[p.jsx("span",{className:"text-xs text-gray-600 dark:text-gray-400",children:"enum:"}),a.enum.map((d,c)=>p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4 bg-purple-50 dark:bg-purple-900/30 border-purple-200 dark:border-purple-800",children:JSON.stringify(d)},c))]}):null,l=e.deprecated===!0,u=p.jsxs("div",{className:`flex flex-col gap-1 text-left ${l?"opacity-60":""}`,children:[p.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[p.jsxs("span",{className:`font-mono text-sm text-gray-900 dark:text-gray-100 ${l?"line-through":""}`,children:[e.name,e.required&&p.jsx("span",{className:"text-red-500 ml-0.5",children:"*"})]}),l&&p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4 font-normal border-slate-300 text-slate-500",children:"deprecated"}),t&&i&&rT[i]&&p.jsx(ge,{variant:"outline",className:`text-[10px] px-1.5 py-0 h-4 font-normal ${rT[i]}`,children:i}),p.jsx("div",{className:"flex flex-wrap gap-1 items-center",children:a&&p.jsx(kN,{schema:a})})]}),(e.description||(a==null?void 0:a.enum))&&p.jsxs("div",{className:"space-y-1",onClick:d=>d.stopPropagation(),children:[e.description&&p.jsx(st,{className:"!text-xs !text-gray-600 dark:!text-gray-400",markdown:e.description}),s()]})]});return p.jsx("div",{className:"py-1",children:p.jsx(Hn,{open:n,onOpenChange:r,children:o?p.jsxs(p.Fragment,{children:[p.jsxs(zn,{className:"group flex items-start gap-2 w-full hover:bg-slate-50 dark:hover:bg-slate-800 p-2 rounded",children:[p.jsx(Yi,{className:"h-4 w-4 mt-1 shrink-0 text-gray-500 dark:text-gray-400 group-data-[state=open]:rotate-90 transition-transform"}),u]}),p.jsx(Gn,{className:"ml-6",children:p.jsx(sW,{schema:a,parameterLocation:i})})]}):p.jsxs("div",{className:"flex items-start gap-2 p-2",children:[p.jsx("div",{className:"w-4 shrink-0"}),u]})})})},Ld=({parameters:e})=>{const t=R.useMemo(()=>[...e].sort((n,r)=>nT.indexOf(n.in)-nT.indexOf(r.in)),[e]);return e.length===0?p.jsx("div",{className:"text-sm text-muted-foreground p-4 text-center bg-slate-50 dark:bg-slate-800 rounded-lg",children:"No parameters required for this endpoint."}):p.jsx("div",{className:"divide-y divide-border/60",children:t.map((n,r)=>p.jsx(Os,{parameter:n,isRoot:!0},`${n.name}-${r}`))})},lW=({examples:e,onSelect:t,selectedExample:n})=>p.jsx("div",{className:"mb-2",children:p.jsxs(En,{defaultValue:n,onValueChange:t,children:[p.jsx(tn,{className:"w-[200px] h-7 text-xs",children:p.jsx(yn,{placeholder:"Select an example"})}),p.jsx(nn,{children:Object.entries(e).map(([r,a])=>p.jsx(rn,{value:r,className:"text-xs",children:a.summary||r},r))})]})}),b0=({requestBody:e,hideExample:t=!1})=>{var S,w;const{preferredContentType:n,setPreferredContentType:r}=lt(),a=Object.keys(e.content),i=a[0],o=()=>n&&a.includes(n)?n:i,[s,l]=R.useState(o),u=(S=e.content[i])!=null&&S.examples&&Object.keys(e.content[i].examples)[0]||"",[d,c]=R.useState(u),[f,m]=R.useState(0),[h,g]=R.useState({version:0,allOpen:!1});R.useEffect(()=>{l(o())},[n,i]);const b=A=>{l(A),r(A)},E=e.content[s],T=(w=E==null?void 0:E.schema)==null?void 0:w.examples,v=A=>{var D,I,O;if(A.examples&&d)return(D=A.examples[d])==null?void 0:D.value;if(A.example)return A.example;const _=(I=A.schema)==null?void 0:I.examples;return Array.isArray(_)&&_.length>0?_[f]:(O=A.schema)!=null&&O.example?A.schema.example:Yt(A.schema)};return p.jsxs("div",{className:"space-y-6",children:[e.description&&p.jsx("div",{className:"prose dark:prose-invert max-w-none",children:p.jsx(st,{markdown:e.description})}),p.jsxs("div",{className:"flex items-center gap-3",children:[a.length>1?p.jsxs(En,{value:s,onValueChange:b,children:[p.jsx(tn,{className:"w-48 h-7 text-xs",children:p.jsx(yn,{})}),p.jsx(nn,{children:a.map(A=>p.jsx(rn,{value:A,className:"text-xs",children:A},A))})]}):p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4 font-mono",children:i}),e.required&&p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4 bg-red-50 dark:bg-red-900/30 border-red-200 dark:border-red-800",children:"required"})]}),(E==null?void 0:E.schema)&&p.jsxs("div",{className:"space-y-2",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("h4",{className:"text-sm font-medium text-foreground",children:"Schema"}),p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsxs("button",{onClick:()=>g(A=>({version:A.version+1,allOpen:!0})),className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground px-2 py-1 rounded hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",children:[p.jsx(qa,{className:"h-3.5 w-3.5"}),"Expand all"]}),p.jsxs("button",{onClick:()=>g(A=>({version:A.version+1,allOpen:!1})),className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground px-2 py-1 rounded hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors",children:[p.jsx(Ud,{className:"h-3.5 w-3.5"}),"Collapse all"]})]})]}),p.jsx("div",{className:"space-y-1",children:p.jsx(uu.Provider,{value:h,children:p.jsx(Xe,{schema:E.schema,isRoot:!0})})})]}),E&&!t&&p.jsxs("div",{className:"space-y-2",children:[p.jsx("h4",{className:"text-sm font-medium text-foreground",children:"Example"}),E.examples&&Object.keys(E.examples).length>0&&p.jsx(lW,{examples:E.examples,onSelect:c,selectedExample:d}),!E.examples&&Array.isArray(T)&&T.length>1&&p.jsxs(En,{value:String(f),onValueChange:A=>m(Number(A)),children:[p.jsx(tn,{className:"w-[180px] h-7 text-xs",children:p.jsx(yn,{})}),p.jsx(nn,{children:T.map((A,_)=>p.jsxs(rn,{value:String(_),className:"text-xs",children:["Example ",_+1]},_))})]}),p.jsx(st,{markdown:JSON.stringify(v(E),null,2),languageCode:"json",className:"[&_code]:!whitespace-pre-wrap"})]}),(E==null?void 0:E.encoding)&&p.jsxs("div",{className:"space-y-2",children:[p.jsx("h4",{className:"text-sm font-medium text-foreground",children:"Encoding"}),p.jsx("div",{className:"p-2 border rounded-lg border-slate-200 dark:border-slate-700",children:Object.entries(E.encoding).map(([A,_])=>p.jsxs("div",{className:"space-y-1",children:[p.jsx("h5",{className:"font-medium text-sm",children:A}),p.jsxs("div",{className:"flex flex-wrap gap-2",children:[_.contentType&&p.jsx(ge,{variant:"outline",children:_.contentType}),_.style&&p.jsxs(ge,{variant:"outline",children:["style: ",_.style]})]})]},A))})]})]})},uW=["get","post","put","patch","delete","options","head","trace"],cW=({method:e,operation:t})=>{const[n,r]=R.useState(!1);return p.jsxs(Hn,{open:n,onOpenChange:r,children:[p.jsxs(zn,{className:"flex items-center gap-2 w-full text-left py-1.5 group",children:[p.jsx(ge,{className:`${Zr(e)} text-white font-mono text-[10px] px-2 py-0.5 shrink-0`,children:e.toUpperCase()}),(t.summary||t.description)&&p.jsx("span",{className:"text-sm text-muted-foreground truncate flex-1",children:t.summary||t.description}),p.jsx(Fa,{className:`h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform ml-auto ${n?"rotate-180":""}`})]}),p.jsx(Gn,{children:p.jsxs("div",{className:"pl-4 pt-2 space-y-4 border-l ml-3",children:[t.description&&t.summary&&p.jsx("div",{className:"prose dark:prose-invert max-w-none text-sm",children:p.jsx(st,{markdown:t.description})}),t.requestBody&&p.jsxs("div",{className:"space-y-2",children:[p.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Payload"}),p.jsx(b0,{requestBody:t.requestBody,hideExample:!0})]}),t.responses&&p.jsxs("div",{className:"space-y-2",children:[p.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Responses"}),p.jsx(mo,{responses:t.responses})]})]})})]})},dW=({callbacks:e})=>{const[t,n]=R.useState(new Set),r=a=>n(i=>{const o=new Set(i);return o.has(a)?o.delete(a):o.add(a),o});return p.jsx("div",{className:"space-y-2",children:Object.entries(e).map(([a,i])=>p.jsxs(Hn,{open:t.has(a),onOpenChange:()=>r(a),children:[p.jsxs(zn,{className:"flex items-center gap-2 w-full text-left px-3 py-2 rounded-lg bg-muted/50 hover:bg-muted transition-colors group",children:[p.jsx("span",{className:"text-sm font-medium flex-1",children:a}),p.jsx(Fa,{className:`h-4 w-4 shrink-0 text-muted-foreground transition-transform ${t.has(a)?"rotate-180":""}`})]}),p.jsx(Gn,{children:p.jsx("div",{className:"px-3 pt-3 space-y-4",children:Object.entries(i).map(([o,s])=>p.jsxs("div",{className:"space-y-2",children:[p.jsx("code",{className:"text-xs bg-muted px-2 py-0.5 rounded font-mono text-muted-foreground",children:o}),p.jsx("div",{className:"space-y-1",children:uW.filter(l=>s[l]).map(l=>p.jsx(cW,{method:l,operation:s[l]},l))})]},o))})})]},a))})},aT={path:"border-orange-200 dark:border-orange-800 text-orange-700 dark:text-orange-300 bg-orange-50 dark:bg-orange-950/40",query:"border-sky-200 dark:border-sky-800 text-sky-700 dark:text-sky-300 bg-sky-50 dark:bg-sky-950/40",header:"border-slate-200 dark:border-slate-700 text-slate-600 dark:text-slate-400 bg-slate-50 dark:bg-slate-900/40"},gs=({label:e})=>p.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:e}),Ac=({param:e,value:t,onChange:n,isInvalid:r,enabled:a,onToggle:i})=>{var o,s;return p.jsxs("div",{className:Ee("space-y-1",!a&&"opacity-40"),children:[p.jsxs("div",{className:"flex items-center justify-between gap-2",children:[p.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[p.jsxs("span",{className:`font-mono text-xs font-medium ${e.deprecated?"line-through opacity-50":""}`,children:[e.name,e.required&&p.jsx("span",{className:"text-red-500 ml-0.5",children:"*"})]}),aT[e.in]&&p.jsx(ge,{variant:"outline",className:`text-[10px] px-1.5 py-0 h-4 font-normal ${aT[e.in]}`,children:e.in}),((o=e.schema)==null?void 0:o.type)&&p.jsx(ge,{variant:"outline",className:`text-[10px] px-1.5 py-0 h-4 font-mono font-normal ${CN(String(e.schema.type))}`,children:String(e.schema.type)})]}),!e.required&&e.in!=="path"&&p.jsx(Qd,{checked:a,onCheckedChange:i,className:"shrink-0 scale-75"})]}),Array.isArray((s=e.schema)==null?void 0:s.enum)&&e.schema.enum.length>0?p.jsxs(En,{value:t,onValueChange:l=>n(e.name,l),disabled:!a||e.deprecated===!0,children:[p.jsx(tn,{className:Ee("h-7 text-xs font-mono w-full",r&&"border-red-400 focus-visible:ring-red-400"),children:p.jsx(yn,{placeholder:e.description??e.name})}),p.jsx(nn,{children:e.schema.enum.map(l=>p.jsx(rn,{value:String(l),className:"text-xs font-mono",children:String(l)},String(l)))})]}):p.jsx(Pt,{value:t,onChange:l=>n(e.name,l.target.value),placeholder:e.description??e.name,className:Ee("h-7 text-xs font-mono w-full",r&&"border-red-400 focus-visible:ring-red-400"),disabled:!a||e.deprecated===!0})]})},pW=({parameters:e,requestBody:t,pathValues:n,setPathValues:r,queryValues:a,setQueryValues:i,headerValues:o,setHeaderValues:s,body:l,setBody:u,contentType:d,setContentType:c,contentTypes:f,validationErrors:m,enabledParams:h,setParamEnabled:g})=>{const b=e.filter(I=>I.in==="path"),E=e.filter(I=>I.in==="query"),T=e.filter(I=>I.in==="header"),v=!!t,S=b.length>0||E.length>0||T.length>0||v,w=(I,O)=>r(M=>({...M,[I]:O})),A=(I,O)=>i(M=>({...M,[I]:O})),_=(I,O)=>s(M=>({...M,[I]:O})),D=I=>h[`${I.in}:${I.name}`]!==!1;return p.jsxs("div",{className:"space-y-5",children:[!S&&p.jsx("p",{className:"text-sm text-muted-foreground italic text-center py-4",children:"No parameters."}),b.length>0&&p.jsxs("div",{className:"space-y-3",children:[p.jsx(gs,{label:"Path"}),b.map(I=>p.jsx(Ac,{param:I,value:n[I.name]??"",onChange:w,isInvalid:m.includes(`${I.in}:${I.name}`),enabled:D(I),onToggle:()=>g(`${I.in}:${I.name}`,!D(I))},I.name))]}),E.length>0&&p.jsxs("div",{className:"space-y-3",children:[p.jsx(gs,{label:"Query"}),E.map(I=>p.jsx(Ac,{param:I,value:a[I.name]??"",onChange:A,isInvalid:m.includes(`${I.in}:${I.name}`),enabled:D(I),onToggle:()=>g(`${I.in}:${I.name}`,!D(I))},I.name))]}),T.length>0&&p.jsxs("div",{className:"space-y-3",children:[p.jsx(gs,{label:"Headers"}),T.map(I=>p.jsx(Ac,{param:I,value:o[I.name]??"",onChange:_,isInvalid:m.includes(`${I.in}:${I.name}`),enabled:D(I),onToggle:()=>g(`${I.in}:${I.name}`,!D(I))},I.name))]}),v&&p.jsxs("div",{className:"space-y-2",children:[p.jsxs("div",{className:"flex items-center justify-between gap-2",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(gs,{label:"Body"}),d.includes("json")&&p.jsxs("button",{type:"button",onClick:()=>{try{u(JSON.stringify(JSON.parse(l),null,2))}catch{He.error("Invalid JSON — cannot format.")}},className:"flex items-center gap-1 text-[10px] text-muted-foreground hover:text-foreground transition-colors",children:[p.jsx(CC,{className:"h-3 w-3"}),"Format"]})]}),f.length>1?p.jsxs(En,{value:d,onValueChange:c,children:[p.jsx(tn,{className:"w-40 h-6 text-xs",children:p.jsx(yn,{})}),p.jsx(nn,{children:f.map(I=>p.jsx(rn,{value:I,className:"text-xs",children:I},I))})]}):f[0]&&p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4 font-mono",children:f[0]})]}),p.jsx("textarea",{value:l,onChange:I=>u(I.target.value),rows:8,spellCheck:!1,placeholder:'{"key": "value"}',className:Ee("w-full text-xs font-mono rounded-md border border-input bg-background px-3 py-2 placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring resize-y",m.includes("__body__")&&"border-red-400 focus-visible:ring-red-400")})]})]})},fW={1:"bg-blue-500",2:"bg-green-500",3:"bg-yellow-500",4:"bg-orange-500",5:"bg-red-500"},mW=e=>{const t=e.headers["content-type"]??"";if(t.includes("json")&&e.body)try{return{body:JSON.stringify(JSON.parse(e.body),null,2),lang:"json"}}catch{}return t.includes("xml")?{body:e.body,lang:"xml"}:t.includes("html")?{body:e.body,lang:"html"}:{body:e.body,lang:"text"}},hW=({result:e,loading:t,error:n,previewUrl:r,method:a,expectedStatusCodes:i,onSend:o})=>{const[s,l]=R.useState(!1),u=R.useMemo(()=>e?mW(e):null,[e]),d=(b,E)=>p.jsxs("div",{className:"flex items-center gap-2 min-w-0 rounded-md bg-muted/60 px-2.5 py-1.5",children:[p.jsx(ge,{className:`${Zr(E.toLowerCase())} text-white font-mono text-[10px] px-2 py-0.5 shrink-0`,children:E}),p.jsx("span",{className:"text-xs font-mono text-muted-foreground truncate",children:b})]}),c=p.jsxs(Qe,{onClick:o,disabled:t,className:"w-full gap-2 rounded-xl",children:[t?p.jsx(Ya,{className:"h-4 w-4 animate-spin"}):p.jsx(xC,{className:"h-4 w-4"}),t?"Sending…":"Send"]});if(t)return p.jsxs("div",{className:"space-y-3",children:[d(r,a),c]});if(n)return p.jsxs("div",{className:"space-y-3",children:[d(r,a),c,p.jsxs("div",{className:"flex items-start gap-2.5 px-4 py-3.5 rounded-lg bg-red-50 dark:bg-red-950/40 border border-red-200 dark:border-red-800",children:[p.jsx(NC,{className:"h-4 w-4 text-red-500 shrink-0 mt-0.5"}),p.jsx("p",{className:"text-sm text-red-700 dark:text-red-400",children:n})]})]});if(!e||!u)return p.jsxs("div",{className:"space-y-3",children:[d(r,a),c,p.jsx("div",{className:"flex items-center justify-center py-6 text-sm text-muted-foreground italic",children:"Send a request to see the response."})]});const f=fW[String(e.status).charAt(0)]??"bg-gray-500",m=i.length>0&&!i.includes(String(e.status)),h=e.body?new TextEncoder().encode(e.body).length:0,g=h<1024?`${h} B`:h<1024*1024?`${(h/1024).toFixed(1)} KB`:`${(h/(1024*1024)).toFixed(1)} MB`;return p.jsxs("div",{className:"space-y-3",children:[d(r,a),c,p.jsxs("p",{className:"text-[10px] text-muted-foreground font-mono truncate",children:["Sent: ",e.url]}),p.jsxs("div",{className:"flex flex-col gap-1",children:[p.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[p.jsxs(ge,{className:`${f} text-white font-mono px-3 py-1 shrink-0`,children:[e.status," ",e.statusText]}),m&&p.jsxs(ge,{variant:"outline",className:"gap-1 border-amber-400 text-amber-600 dark:text-amber-400 text-[10px]",children:[p.jsx(_T,{className:"h-3 w-3"}),"Unexpected status"]})]}),p.jsxs("span",{className:"text-xs text-muted-foreground",children:["Finished in ",p.jsxs("span",{className:"font-semibold",children:[e.duration," ms"]})," · ",p.jsx("span",{className:"font-semibold",children:g})]})]}),Object.keys(e.headers).length>0&&p.jsxs(Hn,{open:s,onOpenChange:l,children:[p.jsxs(zn,{className:"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[p.jsx(Yi,{className:`h-3.5 w-3.5 transition-transform ${s?"rotate-90":""}`}),"Response headers (",Object.keys(e.headers).length,")"]}),p.jsx(Gn,{children:p.jsx("div",{className:"mt-2 rounded-md border border-border/60 divide-y divide-border/40 text-xs font-mono overflow-hidden",children:Object.entries(e.headers).map(([b,E])=>p.jsxs("div",{className:"flex gap-3 px-3 py-1.5 odd:bg-muted/30",children:[p.jsx("span",{className:"text-muted-foreground shrink-0 w-36 truncate",children:b}),p.jsx("span",{className:"text-foreground break-all",children:E})]},b))})})]}),u.body?p.jsx(st,{markdown:u.body,languageCode:u.lang==="text"?void 0:u.lang,maxLines:20,className:"[&_code]:!whitespace-pre-wrap !border !rounded-lg !border-slate-200 dark:!border-slate-700"}):p.jsx("p",{className:"text-xs text-muted-foreground italic",children:"Empty response body."})]})},ba=e=>{const t=e.schema;return(t==null?void 0:t.default)!==void 0?String(t.default):Array.isArray(t==null?void 0:t.enum)&&t.enum.length===1?String(t.enum[0]):""};function gW({method:e,path:t,parameters:n,security:r,requestBody:a}){const{computedUrl:i,credentials:o,preferredContentType:s,setPreferredContentType:l}=lt(),u=n.filter(U=>U.in==="path"),d=n.filter(U=>U.in==="query"),c=n.filter(U=>U.in==="header"),[f,m]=R.useState(()=>Object.fromEntries(u.map(U=>[U.name,ba(U)]))),[h,g]=R.useState(()=>Object.fromEntries(d.map(U=>[U.name,ba(U)]))),[b,E]=R.useState(()=>Object.fromEntries(c.map(U=>[U.name,ba(U)]))),T=a?Object.keys(a.content):[],v=s&&T.includes(s)?s:T[0]??"application/json",[S,w]=R.useState(v),A=R.useCallback(U=>{w(U),l(U)},[l]);R.useEffect(()=>{s&&T.includes(s)&&w(s)},[s]);const _=R.useCallback(U=>{if(!a)return"";const K=a.content[U];if(!K)return"";if(K.examples){const J=Object.values(K.examples)[0];if((J==null?void 0:J.value)!==void 0)return JSON.stringify(J.value,null,2)}if(K.example!==void 0)return JSON.stringify(K.example,null,2);const Q=K.schema;return(Q==null?void 0:Q.example)!==void 0?JSON.stringify(Q.example,null,2):Q?JSON.stringify(Yt(Q),null,2):""},[a]),[D,I]=R.useState(()=>_(T[0]??""));R.useEffect(()=>{I(_(S))},[S]);const[O,M]=R.useState(()=>Object.fromEntries(n.map(U=>[`${U.in}:${U.name}`,!0]))),P=R.useCallback((U,K)=>{M(Q=>({...Q,[U]:K}))},[]),j=U=>O[`${U.in}:${U.name}`]!==!1,[z,W]=R.useState(null),[H,X]=R.useState(!1),[Z,G]=R.useState(null),[k,ae]=R.useState([]);R.useEffect(()=>{m(Object.fromEntries(n.filter(U=>U.in==="path").map(U=>[U.name,ba(U)]))),g(Object.fromEntries(n.filter(U=>U.in==="query").map(U=>[U.name,ba(U)]))),E(Object.fromEntries(n.filter(U=>U.in==="header").map(U=>[U.name,ba(U)]))),M(Object.fromEntries(n.map(U=>[`${U.in}:${U.name}`,!0]))),I(_(S)),W(null),G(null),ae([])},[t,e]);const V=R.useMemo(()=>{let U=t;for(const[Q,J]of Object.entries(f)){const oe=n.find(de=>de.in==="path"&&de.name===Q);oe&&!j(oe)||(U=U.replace(`{${Q}}`,J?encodeURIComponent(J):Q))}const K=(i||window.location.origin).replace(/\/$/,"");try{const Q=new URL(K+U);for(const[J,oe]of Object.entries(h)){const de=n.find(ie=>ie.in==="query"&&ie.name===J);de&&!j(de)||oe!==""&&Q.searchParams.set(J,oe)}return Q.toString()}catch{return K+U}},[t,f,h,i,O]),N=R.useMemo(()=>{let U=t;for(const[re,se]of Object.entries(f)){const pe=n.find(ye=>ye.in==="path"&&ye.name===re);pe&&!j(pe)||(U=U.replace(`{${re}}`,se?encodeURIComponent(se):re))}const K=(i||window.location.origin).replace(/\/$/,"");let Q;try{Q=new URL(K+U)}catch{return""}const J={},oe={};for(const re of r)for(const se of Object.keys(re)){const pe=o[se];pe&&(pe.type==="bearer"?J.Authorization=`Bearer ${pe.token}`:pe.type==="basic"?J.Authorization=`Basic ${btoa(`${pe.username}:${pe.password}`)}`:pe.type==="oauth2"?J.Authorization=`${pe.tokenType} ${pe.accessToken}`:pe.type==="openIdConnect"?J.Authorization=`Bearer ${pe.accessToken}`:pe.type==="apiKey"&&pe.in==="header"?J[pe.name]=pe.key:pe.type==="apiKey"&&pe.in==="query"&&(oe[pe.name]=pe.key))}for(const[re,se]of Object.entries({...oe,...h})){const pe=n.find(ye=>ye.in==="query"&&ye.name===re);pe&&!j(pe)||se!==""&&Q.searchParams.set(re,se)}const de={...J};for(const[re,se]of Object.entries(b)){const pe=n.find(ye=>ye.in==="header"&&ye.name===re);pe&&!j(pe)||se!==""&&(de[re]=se)}const ie=!!a&&e!=="GET"&&e!=="HEAD"&&D!=="";ie&&(de["Content-Type"]=S);const $=[`curl -X ${e}`];for(const[re,se]of Object.entries(de))$.push(` -H "${re}: ${se}"`);return ie&&$.push(` --data-raw '${D.replace(/'/g,"'\\''")}'`),$.push(` "${Q.toString()}"`),$.join(` \\
|
|
459
|
+
`)},[e,t,f,h,b,D,S,i,r,o,a,O]),te=R.useCallback(async()=>{var K,Q,J;const U=[];for(const oe of n)j(oe)&&oe.required&&(oe.in==="path"&&!((K=f[oe.name])!=null&&K.trim())&&U.push(`path:${oe.name}`),oe.in==="query"&&!((Q=h[oe.name])!=null&&Q.trim())&&U.push(`query:${oe.name}`),oe.in==="header"&&!((J=b[oe.name])!=null&&J.trim())&&U.push(`header:${oe.name}`));if(a!=null&&a.required&&!D.trim()&&U.push("__body__"),ae(U),U.length>0){He.error("Fill in required fields before sending.");return}X(!0),G(null);try{const oe={},de={};let ie=!1;for(const Me of r)for(const Ue of Object.keys(Me)){const Ce=o[Ue];Ce&&(Ce.type==="bearer"?oe.Authorization=`Bearer ${Ce.token}`:Ce.type==="basic"?oe.Authorization=`Basic ${btoa(`${Ce.username}:${Ce.password}`)}`:Ce.type==="oauth2"?oe.Authorization=`${Ce.tokenType} ${Ce.accessToken}`:Ce.type==="openIdConnect"?oe.Authorization=`Bearer ${Ce.accessToken}`:Ce.type==="apiKey"&&(Ce.in==="header"?oe[Ce.name]=Ce.key:Ce.in==="query"?de[Ce.name]=Ce.key:Ce.in==="cookie"&&(ie=!0)))}let $=t;for(const[Me,Ue]of Object.entries(f)){const Ce=n.find(ee=>ee.in==="path"&&ee.name===Me);Ce&&!j(Ce)||($=$.replace(`{${Me}}`,Ue?encodeURIComponent(Ue):Me))}const re=(i||window.location.origin).replace(/\/$/,""),se=new URL(re+$);for(const[Me,Ue]of Object.entries({...de,...h})){const Ce=n.find(ee=>ee.in==="query"&&ee.name===Me);Ce&&!j(Ce)||Ue!==""&&se.searchParams.set(Me,Ue)}const pe={...oe};for(const[Me,Ue]of Object.entries(b)){const Ce=n.find(ee=>ee.in==="header"&&ee.name===Me);Ce&&!j(Ce)||Ue!==""&&(pe[Me]=Ue)}const ye=!!a&&e!=="GET"&&e!=="HEAD"&&D!=="";ye&&(pe["Content-Type"]=S);const be=se.toString(),Le=`https://proxy.scalar.com?scalar_url=${encodeURIComponent(be)}`,xe=performance.now(),Te=await fetch(Le,{method:e,headers:pe,body:ye?D:void 0,credentials:ie?"include":"same-origin"}),De=Math.round(performance.now()-xe),Be={};Te.headers.forEach((Me,Ue)=>{Be[Ue]=Me}),W({status:Te.status,statusText:Te.statusText,headers:Be,body:await Te.text(),duration:De,url:be,method:e})}catch(oe){const de=oe instanceof Error?oe.message:"Unknown error",ie=de==="Failed to fetch"||de.includes("NetworkError");G(ie?"Network error — the API likely blocks browser requests from this origin (CORS). Check the browser console for details.":de)}finally{X(!1)}},[e,t,f,h,b,D,S,i,r,o,a,O]);return{pathValues:f,setPathValues:m,queryValues:h,setQueryValues:g,headerValues:b,setHeaderValues:E,body:D,setBody:I,contentType:S,setContentType:A,contentTypes:T,enabledParams:O,setParamEnabled:P,previewUrl:V,curlCommand:N,result:z,loading:H,error:Z,validationErrors:k,send:te}}const kr=({title:e,action:t,children:n})=>p.jsxs("div",{className:"rounded-xl bg-muted/50 p-4 space-y-3",children:[(e||t)&&p.jsxs("div",{className:"flex items-center justify-between",children:[e&&p.jsx("h3",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:e}),t]}),n]}),bW=({curlCommand:e})=>{const[t,n]=R.useState(!1),r=()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)};return p.jsxs("button",{onClick:r,className:"flex items-center gap-1.5 text-[10px] font-mono px-2 py-1 rounded border border-border/60 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",children:[t?p.jsx(Er,{className:"h-3 w-3 text-green-500"}):p.jsx(wC,{className:"h-3 w-3"}),t?"Copied!":"Copy cURL"]})},EW=({path:e})=>{const[t,n]=R.useState(!1),r=()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)};return p.jsx("button",{onClick:r,className:"shrink-0 p-1 rounded text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",title:"Copy path",children:t?p.jsx(Er,{className:"h-3.5 w-3.5 text-green-500"}):p.jsx(xT,{className:"h-3.5 w-3.5"})})},yW=({operation:e})=>{const[t,n]=R.useState(()=>new URLSearchParams(window.location.search).get("mode")==="try"?"playground":"reference"),r=A=>{const _=new URL(window.location.href);A==="playground"?_.searchParams.set("mode","try"):_.searchParams.delete("mode"),window.history.replaceState({},"",_.toString())},a=A=>{n(A),r(A)};R.useEffect(()=>{r(t)},[e.path,e.method]);const{parameters:i=[],requestBody:o,responses:s}=e,{spec:l}=lt(),u=R.useMemo(()=>{var D;if(!o)return"";const A=Object.keys(o.content)[0],_=A?(D=o.content[A])==null?void 0:D.schema:void 0;return _?JSON.stringify(Yt(_),null,2):""},[o]),d=R.useMemo(()=>{let A=e.path;for(const _ of i)if(_.in==="path"&&_.schema){const D=Yt(_.schema);A=A.replace(`{${_.name}}`,String(D??_.name))}return A},[e.path,i]),c=R.useMemo(()=>{const A={};for(const _ of i)if(_.in==="query"&&_.schema){const D=_.schema.default;D!=null&&(A[_.name]=String(D))}return A},[i]),f=R.useMemo(()=>{const A=[];for(const _ of i)if(_.in==="header"&&_.schema){const D=Yt(_.schema);D!=null&&A.push({key:_.name,value:String(D)})}return A},[i]),m=e.security!==void 0?e.security:l.security??[],h=m.length>0,g=gW({method:e.method,path:e.path,parameters:i,security:m,requestBody:o}),b=e.description??e.pathDescription,E=e.summary||e.pathSummary,T=!!(b||e.deprecated||e.externalDocs),v=i.length>0||!!o||!!(e.callbacks&&Object.keys(e.callbacks).length>0),S=T||v,w=T&&!v;return p.jsxs(In,{className:"w-full rounded-none border-x-0 border-t-0 md:rounded-lg md:border",children:[p.jsxs("div",{className:"sticky top-0 md:top-16 z-40 bg-card flex flex-wrap items-center gap-3 px-6 py-4 border-b rounded-t-lg",children:[p.jsx(ge,{className:`${Zr(e.method.toLowerCase())} text-white font-mono px-3 py-1 shrink-0`,children:e.method}),p.jsxs("div",{className:"min-w-0 flex-1 flex items-center gap-2",children:[p.jsx("h2",{className:"text-base font-semibold font-mono leading-snug truncate",children:e.path}),p.jsx(EW,{path:e.path})]}),h&&p.jsxs(ge,{variant:"outline",className:"ml-auto shrink-0 gap-1.5 border-amber-400 text-amber-600 dark:text-amber-400",children:[p.jsx(ho,{className:"h-3.5 w-3.5"}),"Authentication Required"]}),!h&&p.jsxs("div",{className:"ml-auto flex rounded-md border overflow-hidden text-xs shrink-0",children:[p.jsxs("button",{onClick:()=>a("reference"),className:Ee("w-28 flex items-center justify-center gap-1.5 py-1.5 transition-colors",t==="reference"?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-muted"),children:[p.jsx(T0,{className:"h-3.5 w-3.5"}),"Reference"]}),p.jsxs("button",{onClick:()=>a("playground"),className:Ee("w-28 flex items-center justify-center gap-1.5 py-1.5 transition-colors border-l",t==="playground"?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-muted"),children:[p.jsx(S0,{className:"h-3.5 w-3.5"}),"Try it"]})]}),(E||h)&&p.jsxs("div",{className:"w-full flex items-center justify-between gap-3 -mt-1",children:[E?p.jsx("p",{className:"text-sm text-muted-foreground",children:E}):p.jsx("span",{}),h&&p.jsxs("div",{className:"flex rounded-md border overflow-hidden text-xs shrink-0",children:[p.jsxs("button",{onClick:()=>a("reference"),className:Ee("w-28 flex items-center justify-center gap-1.5 py-1.5 transition-colors",t==="reference"?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-muted"),children:[p.jsx(T0,{className:"h-3.5 w-3.5"}),"Reference"]}),p.jsxs("button",{onClick:()=>a("playground"),className:Ee("w-28 flex items-center justify-center gap-1.5 py-1.5 transition-colors border-l",t==="playground"?"bg-primary text-primary-foreground":"text-muted-foreground hover:bg-muted"),children:[p.jsx(S0,{className:"h-3.5 w-3.5"}),"Try it"]})]})]})]}),t==="playground"?p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-4 p-4",children:[p.jsxs("div",{className:"lg:col-span-3 space-y-4",children:[p.jsx("div",{className:"rounded-xl bg-muted/50 p-4",children:p.jsx(pW,{parameters:i,requestBody:o,pathValues:g.pathValues,setPathValues:g.setPathValues,queryValues:g.queryValues,setQueryValues:g.setQueryValues,headerValues:g.headerValues,setHeaderValues:g.setHeaderValues,body:g.body,setBody:g.setBody,contentType:g.contentType,setContentType:g.setContentType,contentTypes:g.contentTypes,validationErrors:g.validationErrors,enabledParams:g.enabledParams,setParamEnabled:g.setParamEnabled})}),p.jsx(kr,{title:"Expected Responses",children:p.jsx(mo,{responses:s})})]}),p.jsx("div",{className:"lg:col-span-2",children:p.jsx(kr,{title:"Response",action:p.jsx(bW,{curlCommand:g.curlCommand}),children:p.jsx(hW,{result:g.result,loading:g.loading,error:g.error,previewUrl:g.previewUrl,method:e.method,expectedStatusCodes:Object.keys(s??{}),onSend:g.send})})})]}):p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-4 p-4",children:[S&&p.jsxs("div",{className:`${w?"lg:col-span-5":"lg:col-span-3"} space-y-4`,children:[T&&p.jsxs("section",{className:"space-y-3 px-1",children:[e.deprecated&&p.jsx(SN,{variant:"destructive",children:p.jsx(AN,{children:"This endpoint is deprecated and might be removed in future versions."})}),b&&p.jsx("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:p.jsx(st,{markdown:b,maxLength:1e3})}),e.externalDocs&&p.jsxs("a",{href:e.externalDocs.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 text-sm text-blue-500 hover:underline",children:[p.jsx(dr,{className:"h-4 w-4"}),e.externalDocs.description||"External Documentation"]})]}),i.length>0&&p.jsx(kr,{title:"Parameters",children:p.jsx(Ld,{parameters:i})}),o&&p.jsx(kr,{title:"Request Body",children:p.jsx(b0,{requestBody:o})}),e.callbacks&&Object.keys(e.callbacks).length>0&&p.jsx(kr,{title:"Callbacks",children:p.jsx(dW,{callbacks:e.callbacks})})]}),p.jsxs("div",{className:`${!S||w?"lg:col-span-5":"lg:col-span-2"} space-y-4`,children:[p.jsx(kr,{children:p.jsx(eW,{method:e.method,path:d,requestBody:u,hasRequestBody:!!o,defaultContentType:o?Object.keys(o.content)[0]:void 0,security:e.security,exampleQueryParams:c,exampleHeaderParams:f})}),p.jsx(kr,{title:"Responses",children:p.jsx(mo,{responses:s})})]})]})]})},xW=()=>{const{tag:e,operationId:t}=qd({from:"/$tag/$operationId"}),{spec:n,loading:r}=lt(),a=sl(),i=R.useMemo(()=>{if(!r&&n)return BN(n.paths,t,e)},[r,n,t,e]);return R.useEffect(()=>{!r&&(!n||!i)&&a({to:"/"})},[r,n,i,a]),i?p.jsx(yW,{operation:i}):null},TW=({name:e,schema:t})=>{const[n,r]=R.useState(!1),[a,i]=R.useState({version:0,allOpen:!1});return p.jsx(Hn,{open:n,onOpenChange:r,children:p.jsxs("div",{className:"rounded-xl bg-muted/50 overflow-hidden",children:[p.jsxs(zn,{className:"group w-full flex items-center gap-3 px-4 py-3 text-left hover:bg-muted/80 transition-colors",children:[p.jsx(Yi,{className:"h-4 w-4 shrink-0 text-muted-foreground group-data-[state=open]:rotate-90 transition-transform"}),p.jsx("span",{className:"font-mono font-semibold text-sm",children:e}),p.jsx(ge,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-4 font-normal font-mono",children:tl(t)}),t.description&&p.jsx("span",{className:"text-xs text-muted-foreground truncate flex-1 hidden sm:block",children:t.description})]}),p.jsx(Gn,{children:p.jsxs("div",{className:"px-4 pb-4 border-t border-border/40 pt-3",children:[t.description&&p.jsx(st,{className:"!text-sm text-muted-foreground mb-3",markdown:t.description}),p.jsx(uu.Provider,{value:{...a,dispatch:o=>i(s=>({version:s.version+1,allOpen:o}))},children:p.jsx(Xe,{schema:t,isRoot:!0})})]})})]})})},vW=()=>{var r;const{spec:e}=lt(),t=((r=e.components)==null?void 0:r.schemas)??{},n=Object.entries(t);return p.jsxs(In,{className:"w-full rounded-none border-x-0 border-t-0 md:rounded-lg md:border",children:[p.jsxs("div",{className:"sticky top-0 md:top-16 z-40 bg-card flex items-center gap-3 px-6 py-4 border-b rounded-t-lg",children:[p.jsx($d,{className:"h-5 w-5 text-muted-foreground"}),p.jsx("h2",{className:"text-base font-semibold",children:"Models"}),p.jsx(ge,{variant:"outline",className:"font-mono",children:n.length})]}),p.jsx("div",{className:"p-4 space-y-2",children:n.length===0?p.jsx("p",{className:"text-sm text-muted-foreground text-center py-10",children:"No schemas defined in this spec."}):n.map(([a,i])=>p.jsx(TW,{name:a,schema:i},a))})]})},Ea=({title:e,children:t})=>p.jsxs("div",{className:"rounded-xl bg-muted/50 p-4 space-y-3",children:[e&&p.jsx("h3",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:e}),t]}),SW=({name:e})=>{const[t,n]=R.useState(!1);return p.jsx("button",{onClick:()=>{navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)},className:"shrink-0 p-1 rounded text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",title:"Copy webhook name",children:t?p.jsx(Er,{className:"h-3.5 w-3.5 text-green-500"}):p.jsx(xT,{className:"h-3.5 w-3.5"})})},AW=({requestBody:e})=>{var l;const t=Object.keys(e.content),[n,r]=R.useState(t[0]??""),a=e.content[n],i=a==null?void 0:a.schema,o=a!=null&&a.examples?(l=Object.values(a.examples)[0])==null?void 0:l.value:(a==null?void 0:a.example)??(i==null?void 0:i.example)??Yt(i),s=n!=null&&n.includes("json")?"json":n!=null&&n.includes("xml")?"xml":n!=null&&n.includes("yaml")?"yaml":"json";return p.jsxs("div",{className:"space-y-2",children:[t.length>1?p.jsxs(En,{value:n,onValueChange:r,children:[p.jsx(tn,{className:"w-48 h-7 text-xs",children:p.jsx(yn,{})}),p.jsx(nn,{children:t.map(u=>p.jsx(rn,{value:u,className:"text-xs",children:u},u))})]}):n&&p.jsx(ge,{variant:"outline",className:"text-xs font-mono",children:n}),p.jsx(st,{markdown:typeof o=="string"?o:JSON.stringify(o,null,2),languageCode:s,className:"[&_code]:!whitespace-pre-wrap"})]})},wW=({operation:e,webhookName:t})=>{const{parameters:n=[],requestBody:r,responses:a}=e,i=!!(e.description||e.deprecated||e.externalDocs),o=!!r;return p.jsxs(In,{className:"w-full rounded-none border-x-0 border-t-0 md:rounded-lg md:border",children:[p.jsxs("div",{className:"sticky top-0 md:top-16 z-40 bg-card flex flex-wrap items-center gap-3 px-6 py-4 border-b rounded-t-lg",children:[p.jsx(ge,{className:`${Zr(e.method.toLowerCase())} text-white font-mono px-3 py-1 shrink-0`,children:e.method}),p.jsxs("div",{className:"min-w-0 flex-1 flex items-center gap-2",children:[p.jsx("h2",{className:"text-base font-semibold font-mono leading-snug truncate",children:t}),p.jsx(SW,{name:t})]}),p.jsx("div",{className:"ml-auto flex items-center gap-2 shrink-0",children:p.jsxs(ge,{variant:"outline",className:"gap-1.5 border-violet-400 text-violet-600 dark:text-violet-400 font-mono",children:[p.jsx(NT,{className:"h-3.5 w-3.5"}),"webhook"]})}),e.summary&&p.jsx("p",{className:"w-full text-sm text-muted-foreground -mt-1",children:e.summary})]}),o?p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-5 gap-4 p-4",children:[p.jsxs("div",{className:"lg:col-span-3 space-y-4",children:[i&&p.jsxs("div",{className:"prose dark:prose-invert max-w-none text-sm",children:[e.deprecated&&p.jsx(ge,{variant:"outline",className:"mb-2 border-orange-400 text-orange-500",children:"Deprecated"}),e.description&&p.jsx(st,{markdown:e.description}),e.externalDocs&&p.jsx(Dd,{url:e.externalDocs.url})]}),n.length>0&&p.jsx(Ea,{title:"Parameters",children:p.jsx(Ld,{parameters:n})}),p.jsx(Ea,{title:"Schema",children:p.jsx(b0,{requestBody:r,hideExample:!0})})]}),p.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[p.jsx(Ea,{title:"Incoming payload",children:p.jsx(AW,{requestBody:r})}),p.jsx(Ea,{title:"Responses",children:p.jsx(mo,{responses:a})})]})]}):p.jsxs("div",{className:"space-y-4 p-4",children:[i&&p.jsxs("div",{className:"prose dark:prose-invert max-w-none text-sm",children:[e.deprecated&&p.jsx(ge,{variant:"outline",className:"mb-2 border-orange-400 text-orange-500",children:"Deprecated"}),e.description&&p.jsx(st,{markdown:e.description}),e.externalDocs&&p.jsx(Dd,{url:e.externalDocs.url})]}),n.length>0&&p.jsx(Ea,{title:"Parameters",children:p.jsx(Ld,{parameters:n})}),p.jsx(Ea,{title:"Responses",children:p.jsx(mo,{responses:a})})]})]})},_W=()=>{const{webhookName:e,operationId:t}=qd({from:"/webhooks/$webhookName/$operationId"}),{spec:n,loading:r}=lt(),a=sl(),i=R.useMemo(()=>{if(!r&&(n!=null&&n.webhooks))return UN(n.webhooks,e,t)},[r,n,e,t]);return R.useEffect(()=>{!r&&!i&&a({to:"/"})},[r,i,a]),i?p.jsx(wW,{operation:i,webhookName:e}):null};function NW(e){const t=new eI({component:()=>p.jsx(CW,{openApiUrl:e})}),n=new _i({getParentRoute:()=>t,path:"/",component:SG}),r=new _i({getParentRoute:()=>t,path:"/$tag/$operationId",component:xW}),a=new _i({getParentRoute:()=>t,path:"/models",component:vW}),i=new _i({getParentRoute:()=>t,path:"/webhooks/$webhookName/$operationId",component:_W}),o=t.addChildren([n,r,a,i]);return new Vk({routeTree:o})}const CW=({openApiUrl:e})=>{const{spec:t,error:n,loading:r,retry:a}=HN({openApiUrl:e}),i=Yd(),[o,s]=R.useState(!1);if(R.useEffect(()=>{s(!1)},[i.pathname]),r)return p.jsx(cz,{});if(n)return p.jsxs("div",{className:"h-screen flex flex-col items-center justify-center gap-6 px-4 text-center",children:[p.jsx(fC,{className:"h-12 w-12 text-muted-foreground"}),p.jsxs("div",{className:"space-y-1",children:[p.jsx("h2",{className:"text-lg font-semibold",children:"Failed to load documentation"}),p.jsx("p",{className:"text-sm text-muted-foreground max-w-md",children:n.message})]}),p.jsxs(Qe,{variant:"outline",onClick:a,className:"gap-2",children:[p.jsx(AT,{className:"h-4 w-4"}),"Retry"]})]});if(!t)return null;const l=i.pathname!=="/";return p.jsx("div",{className:"h-screen flex flex-col",children:p.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[o&&p.jsx("div",{className:Ee("fixed inset-x-0 bottom-0 bg-black/40 z-30 md:hidden",l?"top-24":"top-12"),onClick:()=>s(!1)}),p.jsx("div",{className:Ee("overflow-y-auto bg-background transition-transform duration-300 ease-in-out",l?"fixed top-24 bottom-0 left-0 w-72 z-40 shadow-2xl rounded-r-xl border-r md:rounded-r-none md:shadow-none":"fixed top-12 bottom-0 left-0 w-72 z-40 shadow-2xl rounded-r-xl border-r md:rounded-r-none md:shadow-none","md:sticky md:top-0 md:h-screen md:w-80 md:z-auto md:translate-x-0",o?"translate-x-0":"-translate-x-full md:translate-x-0"),children:p.jsx(AI,{})}),p.jsxs("div",{className:"flex-1 overflow-y-auto flex flex-col min-w-0",children:[l&&p.jsx(az,{onToggleSidebar:()=>s(u=>!u)}),!l&&p.jsxs("div",{className:"md:hidden sticky top-0 z-50 bg-muted/60 backdrop-blur-md shadow-sm flex items-center gap-2 px-4 py-2",children:[p.jsx(Qe,{variant:"ghost",size:"icon",className:"h-8 w-8 shrink-0",onClick:()=>s(u=>!u),children:p.jsx(ST,{className:"h-4 w-4"})}),p.jsx("span",{className:"text-sm font-semibold truncate",children:t.info.title})]}),p.jsx("div",{className:"p-0 md:p-4 flex-1",children:p.jsx(GT,{})})]})]})})},kW=({openApiUrl:e,theme:t="system"})=>{const n=R.useMemo(()=>NW(e),[e]);return p.jsx(pI,{defaultTheme:t,storageKey:"skuse-ui-theme",children:p.jsx(u8,{delayDuration:300,children:p.jsxs(RN,{children:[p.jsx(cI,{router:n}),p.jsx(hz,{richColors:!0,closeButton:!0,position:"bottom-right"})]})})})};exports.SkuseDocumentation=kW;
|