1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,757373,358785,786444,551014,959079,209906,e=>{"use strict";e.i(761626);var t=e.i(875418),r=e.i(80250),n=e.i(112111);e.i(917885);var o=e.i(749377),a=e.i(453806),i=e.i(849856);e.i(555824);var s=e.i(776196),l=(0,t.defineComponent)({__name:"HttpMethod",props:{isSquare:{type:Boolean,default:!1},method:{},isEditable:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:l}){let c=(0,t.computed)(()=>(0,a.getHttpMethodInfo)(e.method)),u=(0,t.computed)(()=>{let t=(0,i.objectEntries)(a.REQUEST_METHODS).map(([e])=>({id:String(e),label:e.toUpperCase(),color:(0,a.getHttpMethodInfo)(e).colorClass}));return t.some(({id:t})=>t===e.method)||t.push({id:e.method,label:e.method,color:c.value.colorClass}),t}),d=(0,t.computed)({get:()=>u.value.find(({id:t})=>t===e.method),set:e=>e?.id&&l("change",e.id)}),h=(0,s.cva)({base:"text-center font-code text-3xs justify-center items-center flex",variants:{isSquare:{true:"px-2.5 whitespace-nowrap font-bold border-r h-fit m-auto",false:"rounded-full"},isEditable:{true:"http-bg-gradient rounded-md border",false:"cursor-auto"}}}),p=(0,t.computed)(()=>c.value.short);return(a,i)=>e.isEditable?((0,t.openBlock)(),(0,t.createBlock)((0,n.unref)(o.ScalarListbox),{key:0,modelValue:d.value,"onUpdate:modelValue":i[0]||(i[0]=e=>d.value=e),class:"font-code scalar-client mt-1 text-sm",options:u.value},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",{class:(0,r.normalizeClass)(["h-full",{"pointer-events-none":!e.isEditable}])},[(0,t.createElementVNode)("button",{class:(0,r.normalizeClass)(["relative h-full",(0,n.unref)(s.cx)((0,n.unref)(h)({isSquare:e.isSquare,isEditable:e.isEditable}),c.value.colorClass)]),type:"button"},[(0,t.createElementVNode)("span",null,(0,r.toDisplayString)(p.value),1)],2)],2)]),_:1},8,["modelValue","options"])):((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:1,class:(0,r.normalizeClass)(["relative gap-1 whitespace-nowrap",(0,n.unref)(s.cx)((0,n.unref)(h)({isSquare:e.isSquare,isEditable:e.isEditable}),c.value.colorClass)]),type:"button"},(0,r.toDisplayString)(c.value.short),3))}}),c=e.i(142653),u=(0,c.default)(l,[["__scopeId","data-v-e7883636"]]);e.s(["default",0,u],757373);var d=/^\/_scalar_temp[a-f0-9]*$/i;e.s(["isPlaceholderPath",0,(e,t)=>"drafts"===t.toLowerCase()&&"/"===e||d.test(e)],358785),e.s(["refocusBlurTarget",0,e=>{if(!e)return;let t=document.querySelector(e);t instanceof HTMLButtonElement?t.click():(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&"true"===t.getAttribute("contenteditable"))&&t.focus()}],786444);e.s(["useLoadingAnimation",0,()=>{let e=(0,n.ref)(100),t=(0,n.ref)(0),r=(0,n.ref)(!1),o=(0,n.ref)(),a=()=>{r.value?e.value-=(e.value-15)/60:e.value-=t.value/20,e.value<=0&&(clearInterval(o.value),o.value=void 0,e.value=100,r.value=!1)};return{startLoading:()=>{if(o.value){r.value=!0;return}r.value=!0,o.value=setInterval(a,20)},stopLoading:()=>{t.value=e.value,r.value=!1},percentage:e,isLoading:r}}],551014),e.s(["usePathMasking",0,({isReady:e,operationKey:r,shouldMask:n,onMask:o})=>{(0,t.watch)([e,r],([e])=>{e&&n()&&o()},{flush:"post"})}],959079);var h=e.i(143187),p=e.i(562649),f=e.i(921553);e.i(916819);var m=e.i(708910),O=["aria-expanded"],g={class:"overflow-hidden text-ellipsis whitespace-nowrap"},v=["id"],y={key:0},b={class:"description text-c-3 px-3 py-1.5"},S=(0,t.defineComponent)({__name:"ServerDropdownItem",props:{server:{},serverOption:{}},emits:["update:variable","update:selectedServer"],setup(e,{emit:o}){let a=(0,t.useId)(),i=(0,t.computed)(()=>e.serverOption.id===e.server?.url),s=(0,t.computed)(()=>i.value&&Object.keys(e.server?.variables??{}).length>0);return(l,c)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,r.normalizeClass)(["group/item flex min-h-fit flex-col rounded border",{"border-transparent":!i.value}])},[(0,t.createElementVNode)("button",(0,t.mergeProps)(s.value?{"aria-controls":(0,n.unref)(a)}:{},{"aria-expanded":s.value,class:["flex min-h-8 cursor-pointer items-center gap-1.5 rounded px-1.5",i.value?"text-c-1 bg-b-2":"hover:bg-b-2"],type:"button",onClick:c[0]||(c[0]=e=>o("update:selectedServer"))}),[(0,t.createVNode)((0,n.unref)(f.ScalarListboxCheckbox),{selected:i.value},null,8,["selected"]),(0,t.createElementVNode)("span",g,(0,r.toDisplayString)(e.serverOption.label),1)],16,O),s.value?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,id:(0,n.unref)(a),class:"bg-b-2 divide divide-y rounded-b border-t *:pl-4",onClick:c[2]||(c[2]=(0,p.withModifiers)(()=>{},["stop"]))},[(0,t.createVNode)(h.default,{variables:e.server?.variables,"onUpdate:variable":c[1]||(c[1]=(e,t)=>o("update:variable",e,t))},null,8,["variables"]),e.server?.description?((0,t.openBlock)(),(0,t.createElementBlock)("div",y,[(0,t.createElementVNode)("div",b,[(0,t.createVNode)((0,n.unref)(m.ScalarMarkdown),{value:e.server.description},null,8,["value"])])])):(0,t.createCommentVNode)("",!0)],8,v)):(0,t.createCommentVNode)("",!0)],2))}}),x=(0,c.default)(S,[["__scopeId","data-v-9775eaaf"]]);e.s(["default",0,x],209906)},761214,993328,494242,e=>{"use strict";e.i(761626);var t=e.i(875418),r=e.i(80250),n=e.i(112111);e.i(555824);var o=e.i(79842),a=(0,t.defineComponent)({__name:"ViewLayout",setup(e){let{cx:a}=(0,o.useBindCx)();return(e,o)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",(0,r.normalizeProps)((0,t.guardReactiveProps)((0,n.unref)(a)("flex flex-col min-h-0 flex-1 *:border-t first:*:border-t-0 md:*:border-t-0 xl:overflow-hidden md:flex-row leading-5"))),[(0,t.renderSlot)(e.$slots,"default")],16))}});e.s(["default",0,a],761214);var i=e.i(142653),s={class:"custom-scroll flex flex-col pr-0 *:border-t *:first:border-t-0 xl:flex-row *:xl:border-t-0 *:xl:border-l *:first:xl:border-l-0"},l=(0,i.default)({},[["render",function(e,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",s,[(0,t.renderSlot)(e.$slots,"default")])}]]);e.s(["default",0,l],993328);var c={key:0,class:"request-response-header bg-b-1 -mb-1/2 sticky top-0 z-1 flex min-h-11 items-center border-b px-2.5 text-base font-medium xl:rounded-none"},u=(0,t.defineComponent)({inheritAttrs:!1,__name:"ViewLayoutSection",setup(e){let{cx:a}=(0,o.useBindCx)();return(e,o)=>((0,t.openBlock)(),(0,t.createElementBlock)("section",(0,r.normalizeProps)((0,t.guardReactiveProps)((0,n.unref)(a)("xl:custom-scroll bg-b-1 flex flex-1 flex-col xl:h-full xl:min-w-0"))),[e.$slots.title?((0,t.openBlock)(),(0,t.createElementBlock)("div",c,[(0,t.renderSlot)(e.$slots,"title")])):(0,t.createCommentVNode)("",!0),(0,t.renderSlot)(e.$slots,"default")],16))}});e.s(["default",0,u],494242)},727967,685345,e=>{"use strict";var t=e.i(193141),r=e.i(761214),n=e.i(993328),o=e.i(494242),a=e.i(557875),i=e.i(645944),s=e.i(493824),l=e.i(528680),c=e.i(167957),u=e.i(797972),d=e.i(619849),h=e.i(152148),p=e.i(859934),f=e.i(142653),m=e.i(64041),O=e.i(757373),g=e.i(998926),v=e.i(358785),y=e.i(786444),b=e.i(551014),S=e.i(959079),x=e.i(317957),k=e.i(346910);e.i(761626);var w=e.i(875418),$=e.i(80250),P=e.i(112111),Q=e.i(562649);e.i(453217);var C=e.i(989880),T=e.i(630254),B=e.i(696569),A=e.i(453806);e.i(37055);var R=e.i(965487);e.i(868255);var E=e.i(588395),V={class:"order-last flex h-auto w-full max-w-3xl grow-3 flex-wrap items-stretch [--scalar-address-bar-height:32px] @3xl:order-0 @3xl:flex-nowrap"},Z=["id"],j={class:"hidden @3xl:flex"},X={class:"scroll-timeline-x scroll-timeline-x-hidden relative flex w-full bg-blend-normal",dir:"ltr"},_={class:"sr-only"},M={key:0,class:"z-context absolute inset-x-0 top-[calc(100%+4px)] flex flex-col items-center rounded px-6"},q={class:"text-c-danger bg-b-danger border-c-danger flex items-center gap-1 rounded border p-1"},N={class:"min-w-0 flex-1"},D={"aria-hidden":"true",class:"inline-flex items-center gap-1"},U={class:"text-xxs flex"},z={class:"sr-only"},W={class:"mt-2 flex h-(--scalar-address-bar-height) w-full items-stretch gap-1 @3xl:hidden"},L={class:"sr-only"},H={"aria-hidden":"true",class:"inline-flex items-center gap-1"},I={class:"text-xxs"},Y={class:"sr-only"},G=(0,w.defineComponent)({name:"AddressBar",props:{executionDisabled:{type:Boolean},path:{},method:{},isWebhook:{type:Boolean,default:!1},documentSlug:{},exampleKey:{},server:{},servers:{},history:{},layout:{},eventBus:{},environment:{},serverMeta:{}},emits:["execute","select:history:item","update:webhook-url"],setup(e,{expose:r,emit:n}){let{translate:o}=(0,t.useLocalization)(),a=(0,w.useId)(),i=(0,w.useTemplateRef)("sendButtonRef"),s=(0,w.useTemplateRef)("mobileSendButtonRef"),l=(0,w.useTemplateRef)("addressBarRef"),{percentage:c,startLoading:d,stopLoading:h,isLoading:p}=(0,b.useLoadingAnimation)(),f=(0,P.ref)(null),m=(0,P.ref)(null),G=(0,P.ref)(!1),F=(0,P.ref)(!1),K=(0,P.ref)(!1),J=E.EditorView.scrollMargins.of(()=>({right:24})),ee=(0,w.computed)(()=>({backgroundColor:`color-mix(in srgb, transparent 90%, ${(0,A.getHttpMethodInfo)(e.method).colorVar})`,transform:`translate3d(-${c.value}%,0,0)`})),et=(0,w.computed)(()=>m.value||f.value),er=(0,w.computed)(()=>e.server?"":e.isWebhook?o("apiClient.addressBar.webhookUrlPlaceholder"):o("apiClient.addressBar.urlPlaceholder")),en=(0,w.computed)(()=>F.value||K.value),eo=(0,w.computed)(()=>(0,u.getOperationExampleKey)(e.method,e.path,e.exampleKey,e.documentSlug));(0,w.watch)(eo,()=>{f.value=null,m.value=null});let ea=()=>{let e=i.value?.$el,t=s.value?.$el;e&&null!==e.offsetParent?e.focus():t?.focus()},ei=t=>{(!l.value?.isFocused||"desktop"===e.layout)&&(l.value?.focus("end"),t&&"clear"in t&&t.clear&&l.value?.setCodeMirrorC
1ontent(""),t&&"event"in t&&t.event.preventDefault())};(0,S.usePathMasking)({isReady:()=>l.value?.codeMirror,operationKey:()=>eo.value,shouldMask:()=>(0,v.isPlaceholderPath)(e.path,e.documentSlug),onMask:()=>requestAnimationFrame(()=>{let t=l.value?.codeMirror?.state.doc.toString();t&&t!==e.path||ei({clear:!0})})});let es=(t,r,o=null)=>{if(e.isWebhook){let e=r.trim();l.value?.setCodeMirrorContent(e),n("update:webhook-url",e),m.value=null,f.value=null,(0,w.nextTick)(()=>(0,y.refocusBlurTarget)(o));return}let a=(t=>{let r=((e="")=>{if(!e.trim())return null;if(!e.startsWith("/")&&!/^[a-z][a-z0-9+\-.]*:\/\//i.test(e)){let t=e.search(/[/?#]/),r=-1===t?e:e.slice(0,t);if(r.includes("."))try{let t=new URL(`https://${e}`);if("null"===t.origin)return null;let n=t.host,o=r.match(/:(\d+)$/);o&&!t.port&&(n=`${t.hostname}:${o[1]}`);let a=decodeURIComponent(t.pathname)+t.search+t.hash;return[n,a]}catch{return null}}if(e.startsWith("//"))try{let t=new URL(`https:${e}`);if("null"===t.origin)return null;let r=t.origin.replace(/^https?:/,""),n=decodeURIComponent(t.pathname)+t.search+t.hash;return[r,n]}catch{return null}try{let t=new URL(e);if("null"===t.origin)return null;let r=decodeURIComponent(t.pathname)+t.search+t.hash;return[t.origin,r]}catch{return null}})(t);if(!r)return t;let[n,o]=r;return n===e.server?.url||(e.servers.find(e=>e.url===n)?e.eventBus.emit("server:update:selected",{url:n,meta:e.serverMeta}):e.eventBus.emit("server:add:server",{url:n,select:!0,meta:{type:"operation",path:e.path,method:e.method}})),o})(r),i=a.startsWith("/")?a:`/${a}`;l.value?.setCodeMirrorContent(i),e.eventBus.emit("operation:update:pathMethod",{meta:{method:e.method,path:e.path},blurTargetSelector:o,payload:{method:t,path:i},callback:(r,n)=>{if("success"===r||"no-change"===r)m.value=null,f.value=null;else if("conflict"===r){t!==e.method&&(m.value=t),i!==e.path&&(f.value=i);return}let o=l.value?.codeMirrorRef?.textContent;"no-change"===r&&o&&o!==a&&l.value?.setCodeMirrorContent(a),(0,w.nextTick)(()=>(0,y.refocusBlurTarget)(n))}})},el=t=>es(t,f.value??e.path),ec=(t,r)=>{let n=r.relatedTarget instanceof Element?r.relatedTarget:null,o=G.value||"sourceCapabilities"in r&&null===r.sourceCapabilities?null:(e=>{if(!e||!(e instanceof Element))return null;let t=[],r=e;for(;r instanceof Element;){let e=r.localName,n=1,o=r.previousElementSibling;for(;o;)o.localName===e&&n++,o=o.previousElementSibling;t.unshift(n>1?`${e}:nth-of-type(${n})`:e),r=r.parentElement}return t.join(" > ")})(n);G.value=!1,es(m.value??e.method,t,o)},eu=(t,r)=>{r.stopPropagation(),es(m.value??e.method,t,'[data-addressbar-action="send"]')},ed=t=>{t.target instanceof HTMLElement&&"\n"===t.target.innerText&&(e.isWebhook||e.eventBus.emit("server:update:selected",{url:"",meta:e.serverMeta}))},eh=t=>{e.eventBus.emit("server:update:selected",t)},ep=t=>{e.eventBus.emit("server:update:variables",t)},ef=()=>{e.eventBus.emit("copy-url:address-bar")},em=()=>{"operation"===e.serverMeta.type?e.eventBus.emit("ui:navigate",{page:"operation",path:"servers",operationPath:e.serverMeta.path,method:e.serverMeta.method}):e.eventBus.emit("ui:navigate",{page:"document",path:"servers"})},eO=[];return(0,w.onMounted)(()=>{eO.push(e.eventBus.on("ui:focus:address-bar",ei),e.eventBus.on("ui:focus:send-button",ea),e.eventBus.on("hooks:on:request:sent",d),e.eventBus.on("hooks:on:request:complete",h))}),(0,w.onBeforeUnmount)(()=>{for(let e of eO)e();h()}),r({methodConflict:m,pathConflict:f}),(t,r)=>((0,w.openBlock)(),(0,w.createElementBlock)("div",V,[(0,w.createElementVNode)("div",{id:(0,P.unref)(a),class:(0,$.normalizeClass)(["address-bar-bg-states text-xxs group relative flex h-(--scalar-address-bar-height) w-full flex-1 flex-row items-stretch rounded-lg p-0.75",{"outline-c-danger outline":et.value,"rounded-b-none":en.value}])},[(0,w.createElementVNode)("div",{class:(0,$.normalizeClass)(["pointer-events-none absolute top-0 left-0 block h-full w-full overflow-hidden rounded-lg border",{"rounded-b-none":en.value}])},[(0,w.createElementVNode)("div",{class:"absolute top-0 left-0 h-full w-full",style:(0,$.normalizeStyle)(ee.value)},null,4)],2),(0,w.createElementVNode)("div",j,[(0,w.createVNode)((0,P.unref)(O.default),{isEditable:"modal"!==e.layout&&!e.isWebhook,isSquare:"",method:m.value??e.method,teleport:"",onChange:el},null,8,["isEditable","method"])]),(0,w.createElementVNode)("div",X,[e.servers.length?((0,w.openBlock)(),(0,w.createBlock)((0,P.unref)(x.default),{key:0,layout:e.isWebhook?"modal":e.layout,meta:e.serverMeta,server:e.server,servers:e.servers,target:(0,P.unref)(a),"onUpdate:open":r[0]||(r[0]=e=>F.value=e),"onUpdate:selectedServer":eh,"onUpdate:servers":em,"onUpdate:variable":ep},null,8,["layout","meta","server","servers","target"])):(0,w.createCommentVNode)("",!0),(0,w.createVNode)((0,P.unref)(g.default),{ref_key:"addressBarRef",ref:l,alwaysEmitChange:"","aria-label":(0,P.unref)(o)("apiClient.addressBar.path"),class:"ml-1 min-w-fit pl-px outline-none",disableCloseBrackets:"",disabled:"modal"===e.layout&&!e.isWebhook,disableEnter:"",disableTabIndent:"",emitOnBlur:!1,environment:e.environment,extensions:[(0,P.unref)(J)],importCurl:"",layout:e.layout,modelValue:e.path,placeholder:er.value,server:"",onBlur:ec,onKeydown:[(0,Q.withKeys)(ed,["delete"]),r[1]||(r[1]=(0,Q.withKeys)(e=>G.value=!0,["tab"]))],onSubmit:eu},null,8,["aria-label","disabled","environment","extensions","layout","modelValue","placeholder"])]),(0,w.createVNode)((0,P.unref)(C.ScalarButton),{class:"hover:bg-b-3 mx-1 hidden @3xl:flex",
1size:"xs",variant:"ghost",onClick:ef},{default:(0,w.withCtx)(()=>[(0,w.createVNode)((0,P.unref)(T.ScalarIconCopy)),(0,w.createElementVNode)("span",_,(0,$.toDisplayString)((0,P.unref)(o)("apiClient.addressBar.copyUrl")),1)]),_:1}),(0,w.createVNode)(k.default,{history:e.history,target:(0,P.unref)(a),"onSelect:history:item":r[2]||(r[2]=e=>n("select:history:item",e)),"onUpdate:open":r[3]||(r[3]=e=>K.value=e)},null,8,["history","target"]),et.value?((0,w.openBlock)(),(0,w.createElementBlock)("div",M,[(0,w.createElementVNode)("div",q,[(0,w.createVNode)((0,P.unref)(B.ScalarIconWarningCircle),{size:"sm"}),(0,w.createElementVNode)("div",N,(0,$.toDisplayString)((0,P.unref)(o)("apiClient.addressBar.duplicateRequest",{method:(m.value??e.method).toUpperCase(),path:f.value??e.path})),1)])])):(0,w.createCommentVNode)("",!0),(0,w.createVNode)((0,P.unref)(C.ScalarButton),{ref_key:"sendButtonRef",ref:i,class:"relative hidden h-auto shrink-0 overflow-hidden py-1 pr-2.5 pl-2 font-bold @3xl:flex","data-addressbar-action":"send",disabled:(0,P.unref)(p)||e.executionDisabled,onClick:r[4]||(r[4]=e=>n("execute"))},{default:(0,w.withCtx)(()=>[(0,w.createElementVNode)("span",D,[(0,w.createVNode)((0,P.unref)(R.ScalarIcon),{class:"relative shrink-0 fill-current",icon:"Play",size:"xs"}),(0,w.createElementVNode)("span",U,(0,$.toDisplayString)((0,P.unref)(o)("apiClient.addressBar.send")),1)]),(0,w.createElementVNode)("span",z,(0,$.toDisplayString)((0,P.unref)(o)("apiClient.addressBar.sendRequest",{method:e.method,url:`${e.server?.url??""}${e.path}`})),1)]),_:1},8,["disabled"])],10,Z),(0,w.createElementVNode)("div",W,[(0,w.createVNode)((0,P.unref)(O.default),{isEditable:"modal"!==e.layout&&!e.isWebhook,isSquare:"",method:m.value??e.method,teleport:"",onChange:el},null,8,["isEditable","method"]),(0,w.createVNode)((0,P.unref)(C.ScalarButton),{class:"hover:bg-b-3 ml-auto",size:"xs",variant:"ghost",onClick:ef},{default:(0,w.withCtx)(()=>[(0,w.createVNode)((0,P.unref)(T.ScalarIconCopy)),(0,w.createElementVNode)("span",L,(0,$.toDisplayString)((0,P.unref)(o)("apiClient.addressBar.copyUrl")),1)]),_:1}),(0,w.createVNode)((0,P.unref)(C.ScalarButton),{ref_key:"mobileSendButtonRef",ref:s,class:"relative h-auto shrink-0 overflow-hidden py-1 pr-2.5 pl-2 font-bold","data-addressbar-action":"send",disabled:(0,P.unref)(p)||e.executionDisabled,onClick:r[5]||(r[5]=e=>n("execute"))},{default:(0,w.withCtx)(()=>[(0,w.createElementVNode)("span",H,[(0,w.createVNode)((0,P.unref)(R.ScalarIcon),{class:"relative shrink-0 fill-current",icon:"Play",size:"xs"}),(0,w.createElementVNode)("span",I,(0,$.toDisplayString)((0,P.unref)(o)("apiClient.addressBar.send")),1)]),(0,w.createElementVNode)("span",Y,(0,$.toDisplayString)((0,P.unref)(o)("apiClient.addressBar.sendRequest",{method:e.method,url:`${e.server?.url??""}${e.path}`})),1)]),_:1},8,["disabled"])])]))}}),F=(0,f.default)(G,[["__scopeId","data-v-0e96b5b8"]]);e.i(235013);var K=e.i(776322),J=e.i(252448),ee=e.i(556528),et={class:"relative flex items-center"},er={class:"flex max-w-[220px] min-w-0 items-center gap-1.5"},en={class:"text-xxs block max-w-[160px] min-w-0 truncate text-left font-medium"},eo={class:"text-c-2"},ea={class:"min-w-0 flex-1 truncate"},ei={class:"bg-c-accent text-b-1 mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded-full p-[3px]"},es={class:"min-w-0 flex-1 text-left"},el={class:"block truncate"},ec={class:"text-c-3 block truncate text-xs"},eu={class:"flex h-4 w-4 items-center justify-center"},ed={key:5,class:"text-c-3 px-2 py-1.5 text-xs"},eh={class:"mb-1"},ep=(0,w.defineComponent)({__name:"EnvironmentSelector",props:{environments:{default:()=>[]},activeEnvironment:{}},emits:["select:environment","add:environment"],setup(e,{emit:r}){let{translate:n}=(0,t.useLocalization)(),o=(0,w.computed)(()=>!!e.activeEnvironment),a=(0,w.computed)(()=>e.environments.length>0),i=(0,w.computed)(()=>!!e.activeEnvironment&&e.environments.includes(e.activeEnvironment)),s=(0,w.computed)(()=>o.value&&!i.value),l=(0,w.computed)(()=>s.value?n("apiClient.environmentSelector.unavailable",{name:e.activeEnvironment??""}):o.value?e.activeEnvironment:a.value?n("apiClient.environmentSelector.select"):n("apiClient.environmentSelector.add")),c=(0,w.computed)(()=>s.value?"hover:bg-b-2 text-c-2 border-transparent":o.value?"bg-c-accent/10 text-c-accent hover:bg-c-accent/20 border-c-accent/30":a.value?"hover:bg-b-2 text-c-2 border-transparent":"hover:bg-b-2 text-c-3 border-transparent"),u=()=>{r("add:environment")},d=e=>{r("select:environment",e)};return(t,r)=>((0,w.openBlock)(),(0,w.createElementBlock)("div",et,[(0,w.createVNode)((0,P.unref)(K.ScalarDropdown),null,{items:(0,w.withCtx)(()=>[o.value?((0,w.openBlock)(),(0,w.createBlock)((0,P.unref)(ee.ScalarDropdownItem),{key:0,class:"group/item flex w-full items-center gap-1.5",onClick:r[0]||(r[0]=e=>d(""))},{default:(0,w.withCtx)(()=>[(0,w.createElementVNode)("div",{class:(0,$.normalizeClass)(["flex h-4 w-4 items-center justify-center rounded-full p-[3px]",e.activeEnvironment?"shadow-border text-transparent":"bg-c-accent text-b-1"])},[(0,w.createVNode)((0,P.unref)(R.ScalarIcon),{class:"size-2.5",icon:"Checkmark",thickness:"3"})],2),(0,w.createElementVNode)("span",eo,(0,$.toDisplayString)((0,P.unref)(n)("apiClient.environmentSelector.noEnvironment")),1)]),_:1})):(0,w.createCommentVNode)("",!0),o.value&&a.value?((0,w.openBlock)(),(0,w.createBlock)((0,P.unref)(J.ScalarDropdownDivider),{key:1})):(0,w.createCommentVNode)("",!0),((0,w.openBlock)(!0),(0,w.createElementBlock)(w.Fragment,null,(0,w.renderList)(e.environments,t=>((0,w.openBlock)(),(0,w.createBlock)((0,P.unref)(ee.ScalarDropdownItem),{key:t,class:"group/item flex w-full min-w-0 items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",onClick:e=>d(t)},{default:(0,w.withCtx)(()=>[(0,w.createElementVNode)("div",{class:(0,$.normalizeClass)(["flex h-4 w-4 items-center justify-center rounded-full p-[3px]",e.activeEnvironment===t?"bg-c-accent text-b-1":"shadow-border text-transparent"])},[(0,w.createVNode)((0,P.unref)(R.ScalarIcon),{class:"size-2.5",icon:"Checkmark",thickness:"3"})],2),(0,w.createElementVNode)("span",ea,(0,$.toDisplayString)(t),
11)]),_:2},1032,["onClick"]))),128)),s.value?((0,w.openBlock)(),(0,w.createBlock)((0,P.unref)(J.ScalarDropdownDivider),{key:2})):(0,w.createCommentVNode)("",!0),s.value?((0,w.openBlock)(),(0,w.createBlock)((0,P.unref)(ee.ScalarDropdownItem),{key:3,class:"group/item flex h-auto w-full min-w-0 items-start gap-1.5 overflow-hidden",disabled:""},{default:(0,w.withCtx)(()=>[(0,w.createElementVNode)("div",ei,[(0,w.createVNode)((0,P.unref)(R.ScalarIcon),{class:"size-2.5",icon:"Checkmark",thickness:"3"})]),(0,w.createElementVNode)("div",es,[(0,w.createElementVNode)("span",el,(0,$.toDisplayString)(e.activeEnvironment),1),(0,w.createElementVNode)("span",ec,(0,$.toDisplayString)((0,P.unref)(n)("apiClient.environmentSelector.notAvailableInThisContext")),1)])]),_:1})):(0,w.createCommentVNode)("",!0),a.value?((0,w.openBlock)(),(0,w.createBlock)((0,P.unref)(J.ScalarDropdownDivider),{key:4})):(0,w.createCommentVNode)("",!0),(0,w.createVNode)((0,P.unref)(ee.ScalarDropdownItem),{class:"text-c-accent flex items-center gap-1.5",onClick:u},{default:(0,w.withCtx)(()=>[(0,w.createElementVNode)("div",eu,[(0,w.createVNode)((0,P.unref)(R.ScalarIcon),{icon:"Add",size:"sm"})]),(0,w.createElementVNode)("span",null,(0,$.toDisplayString)(a.value?"New Environment":"Create Environment"),1)]),_:1}),a.value||o.value?(0,w.createCommentVNode)("",!0):((0,w.openBlock)(),(0,w.createElementBlock)("div",ed,[(0,w.createElementVNode)("p",eh,(0,$.toDisplayString)((0,P.unref)(n)("apiClient.environmentSelector.environmentHint")),1)]))]),default:(0,w.withCtx)(()=>[(0,w.createVNode)((0,P.unref)(C.ScalarButton),{"aria-label":(0,P.unref)(n)("apiClient.environmentSelector.current",{name:l.value??""}),class:(0,$.normalizeClass)(["line-clamp-1 h-full w-fit justify-start border px-2 py-1 font-normal transition-colors",c.value]),size:"sm",variant:"ghost"},{default:(0,w.withCtx)(()=>[(0,w.createElementVNode)("div",er,[(0,w.createVNode)((0,P.unref)(R.ScalarIcon),{class:(0,$.normalizeClass)(["shrink-0",o.value&&!s.value?"text-c-accent":"text-c-3"]),icon:"Globe",size:"sm"},null,8,["class"]),(0,w.createElementVNode)("span",en,(0,$.toDisplayString)(l.value),1),(0,w.createVNode)((0,P.unref)(R.ScalarIcon),{class:"shrink-0",icon:"ChevronDown",size:"xs"})])]),_:1},8,["aria-label","class"])]),_:1})]))}}),ef=e.i(95952),em={key:0},eO={key:1},eg={key:2},ev={key:3},ey={key:4},eb={key:5},eS=(0,w.defineComponent)({name:"ScalarIconGearSix",props:{label:{},weight:{}},setup(e){let{bind:t,weight:r}=(0,ef.useScalarIcon)(e);return(e,n)=>((0,w.openBlock)(),(0,w.createElementBlock)("svg",(0,w.mergeProps)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},(0,P.unref)(t)),[(0,w.renderSlot)(e.$slots,"default"),"bold"===(0,P.unref)(r)?((0,w.openBlock)(),(0,w.createElementBlock)("g",em,[...n[0]||(n[0]=[(0,w.createElementVNode)("path",{d:"M128,76a52,52,0,1,0,52,52A52.06,52.06,0,0,0,128,76Zm0,80a28,28,0,1,1,28-28A28,28,0,0,1,128,156Zm113.86-49.57A12,12,0,0,0,236,98.34L208.21,82.49l-.11-31.31a12,12,0,0,0-4.25-9.12,116,116,0,0,0-38-21.41,12,12,0,0,0-9.68.89L128,37.27,99.83,21.53a12,12,0,0,0-9.7-.9,116.06,116.06,0,0,0-38,21.47,12,12,0,0,0-4.24,9.1l-.14,31.34L20,98.35a12,12,0,0,0-5.85,8.11,110.7,110.7,0,0,0,0,43.11A12,12,0,0,0,20,157.66l27.82,15.85.11,31.31a12,12,0,0,0,4.25,9.12,116,116,0,0,0,38,21.41,12,12,0,0,0,9.68-.89L128,218.73l28.14,15.74a12,12,0,0,0,9.7.9,116.06,116.06,0,0,0,38-21.47,12,12,0,0,0,4.24-9.1l.14-31.34,27.81-15.81a12,12,0,0,0,5.85-8.11A110.7,110.7,0,0,0,241.86,106.43Zm-22.63,33.18-26.88,15.28a11.94,11.94,0,0,0-4.55,4.59c-.54,1-1.11,1.93-1.7,2.88a12,12,0,0,0-1.83,6.31L184.13,199a91.83,91.83,0,0,1-21.07,11.87l-27.15-15.19a12,12,0,0,0-5.86-1.53h-.29c-1.14,0-2.3,0-3.44,0a12.08,12.08,0,0,0-6.14,1.51L93,210.82A92.27,92.27,0,0,1,71.88,199l-.11-30.24a12,12,0,0,0-1.83-6.32c-.58-.94-1.16-1.91-1.7-2.88A11.92,11.92,0,0,0,63.7,155L36.8,139.63a86.53,86.53,0,0,1,0-23.24l26.88-15.28a12,12,0,0,0,4.55-4.58c.54-1,1.11-1.94,1.7-2.89a12,12,0,0,0,1.83-6.31L71.87,57A91.83,91.83,0,0,1,92.94,45.17l27.15,15.19a11.92,11.92,0,0,0,6.15,1.52c1.14,0,2.3,0,3.44,0a12.08,12.08,0,0,0,6.14-1.51L163,45.18A92.27,92.27,0,0,1,184.12,57l.11,30.24a12,12,0,0,0,1.83,6.32c.58.94,1.16,1.91,1.7,2.88A11.92,11.92,0,0,0,192.3,101l26.9,15.33A86.53,86.53,0,0,1,219.23,139.61Z"},null,-1)])])):"duotone"===(0,P.unref)(r)?((0,w.openBlock)(),(0,w.createElementBlock)("g",eO,[...n[1]||(n[1]=[(0,w.createElementVNode)("path",{d:"M230.1,108.76,198.25,90.62c-.64-1.16-1.31-2.29-2-3.41l-.12-36A104.61,104.61,0,0,0,162,32L130,49.89c-1.34,0-2.69,0-4,0L94,32A104.58,104.58,0,0,0,59.89,51.25l-.16,36c-.7,1.12-1.37,2.26-2,3.41l-31.84,18.1a99.15,99.15,0,0,0,0,38.46l31.85,18.14c.64,1.16,1.31,2.29,2,3.41l.12,36A104.61,104.61,0,0,0,94,224l32-17.87c1.34,0,2.69,0,4,0L162,224a104.58,104.58,0,0,0,34.08-19.25l.16-36c.7-1.12,1.37-2.26,2-3.41l31.84-18.1A99.15,99.15,0,0,0,230.1,108.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",opacity:"0.2"},null,-1),(0,w.createElementVNode)("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.1,8.1,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8,8,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"},null,-1)])])):"fill"===(0,P.unref)(r)?((0,w.openBlock)(),(0,w.createElementBlock)("g",eg,[...n[2]||(n[2]=[(0,w.createElementVNode)("path",{d:"M237.94,107.21a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A111.92,111.92,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.63a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z"},null,-1)])])):"light"===(0,P.unref)(r)?((0,w.openBlock)(),(0,w.createElementBlock)("g",ev,[...n[3]||(n[3]=[(0,w.createElementVNode)("path",{d:"M128,82a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Zm108-54.4a6,6,0,0,0-2.92-4L202.64,86.22l-.42-.71L202.1,51.2A6,6,0,0,0,200,46.64a110.12,110.12,0,0,0-36.07-20.31,6,6,0,0,0-4.84.45L128.46,43.86h-1L96.91,26.76a6,6,0,0,0-4.86-.44A109.92,109.92,0,0,0,56,46.68a6,6,0,0,0-2.12,4.55l-.16,34.34c-.14.23-.28.47-.41.71L22.91,103.57A6,6,0,0,0,20,107.62a104.81,104.81,0,0,0,0,40.78,6,6,0,0,0,2.92,4l30.42,17.33.42.71.12,34.31A6,6,0,0,0,56,209.36a110.12,110.12,0,0,0,36.07,20.31,6,6,0,0,0,4.84-.45l30.61-17.08h1l30.56,17.1A6.09,6.09,0,0,0,162,230a5.83,5.83,0,0,0,1.93-.32,109.92,109.92,0,0,0,36-20.36,6,6,0,0,0,2.12-4.55l.16-34.34c.14-.23.28-.47.41-.71l30.42-17.29a6,6,0,0,0,2.92-4.05A104.81,104.81,0,0,0,236,107.6Zm-11.25,35.79L195.32,160.1a6.07,6.07,0,0,0-2.28,2.3c-.59,1-1.21,2.11-1.86,3.14a6,6,0,0,0-.91,3.16l-.16,33.21a98.15,98.15,0,0,1-27.52,15.53L133,200.88a6,6,0,0,0-2.93-.77h-.14c-1.24,0-2.5,0-3.74,0a6,
16,0,0,0-3.07.76L93.45,217.43a98,98,0,0,1-27.56-15.49l-.12-33.17a6,6,0,0,0-.91-3.16c-.64-1-1.27-2.08-1.86-3.14a6,6,0,0,0-2.27-2.3L31.3,143.4a93,93,0,0,1,0-30.79L60.68,95.9A6.07,6.07,0,0,0,63,93.6c.59-1,1.21-2.11,1.86-3.14a6,6,0,0,0,.91-3.16l.16-33.21A98.15,98.15,0,0,1,93.41,38.56L123,55.12a5.81,5.81,0,0,0,3.07.76c1.24,0,2.5,0,3.74,0a6,6,0,0,0,3.07-.76l29.65-16.56a98,98,0,0,1,27.56,15.49l.12,33.17a6,6,0,0,0,.91,3.16c.64,1,1.27,2.08,1.86,3.14a6,6,0,0,0,2.27,2.3L224.7,112.6A93,93,0,0,1,224.73,143.39Z"},null,-1)])])):"regular"===(0,P.unref)(r)?((0,w.openBlock)(),(0,w.createElementBlock)("g",ey,[...n[4]||(n[4]=[(0,w.createElementVNode)("path",{d:"M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm109.94-52.79a8,8,0,0,0-3.89-5.4l-29.83-17-.12-33.62a8,8,0,0,0-2.83-6.08,111.91,111.91,0,0,0-36.72-20.67,8,8,0,0,0-6.46.59L128,41.85,97.88,25a8,8,0,0,0-6.47-.6A112.1,112.1,0,0,0,54.73,45.15a8,8,0,0,0-2.83,6.07l-.15,33.65-29.83,17a8,8,0,0,0-3.89,5.4,106.47,106.47,0,0,0,0,41.56,8,8,0,0,0,3.89,5.4l29.83,17,.12,33.62a8,8,0,0,0,2.83,6.08,111.91,111.91,0,0,0,36.72,20.67,8,8,0,0,0,6.46-.59L128,214.15,158.12,231a7.91,7.91,0,0,0,3.9,1,8.09,8.09,0,0,0,2.57-.42,112.1,112.1,0,0,0,36.68-20.73,8,8,0,0,0,2.83-6.07l.15-33.65,29.83-17a8,8,0,0,0,3.89-5.4A106.47,106.47,0,0,0,237.94,107.21Zm-15,34.91-28.57,16.25a8,8,0,0,0-3,3c-.58,1-1.19,2.06-1.81,3.06a7.94,7.94,0,0,0-1.22,4.21l-.15,32.25a95.89,95.89,0,0,1-25.37,14.3L134,199.13a8,8,0,0,0-3.91-1h-.19c-1.21,0-2.43,0-3.64,0a8.08,8.08,0,0,0-4.1,1l-28.84,16.1A96,96,0,0,1,67.88,201l-.11-32.2a8,8,0,0,0-1.22-4.22c-.62-1-1.23-2-1.8-3.06a8.09,8.09,0,0,0-3-3.06l-28.6-16.29a90.49,90.49,0,0,1,0-28.26L61.67,97.63a8,8,0,0,0,3-3c.58-1,1.19-2.06,1.81-3.06a7.94,7.94,0,0,0,1.22-4.21l.15-32.25a95.89,95.89,0,0,1,25.37-14.3L122,56.87a8,8,0,0,0,4.1,1c1.21,0,2.43,0,3.64,0a8.08,8.08,0,0,0,4.1-1l28.84-16.1A96,96,0,0,1,188.12,55l.11,32.2a8,8,0,0,0,1.22,4.22c.62,1,1.23,2,1.8,3.06a8.09,8.09,0,0,0,3,3.06l28.6,16.29A90.49,90.49,0,0,1,222.9,142.12Z"},null,-1)])])):"thin"===(0,P.unref)(r)?((0,w.openBlock)(),(0,w.createElementBlock)("g",eb,[...n[5]||(n[5]=[(0,w.createElementVNode)("path",{d:"M128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Zm106-56a4,4,0,0,0-2-2.7l-30.89-17.6q-.47-.82-1-1.62L200.1,51.2a3.94,3.94,0,0,0-1.42-3,107.8,107.8,0,0,0-35.41-19.94,4,4,0,0,0-3.23.29L129,45.87h-2l-31-17.36a4,4,0,0,0-3.23-.3,108.05,108.05,0,0,0-35.39,20,4,4,0,0,0-1.41,3l-.16,34.9-1,1.62L23.9,105.3A4,4,0,0,0,22,108a102.76,102.76,0,0,0,0,40,4,4,0,0,0,1.95,2.7l30.89,17.6q.47.83,1,1.62l.12,34.87a3.94,3.94,0,0,0,1.42,3,107.8,107.8,0,0,0,35.41,19.94,4,4,0,0,0,3.23-.29L127,210.13h2l31,17.36a4,4,0,0,0,3.23.3,108.05,108.05,0,0,0,35.39-20,4,4,0,0,0,1.41-3l.16-34.9,1-1.62L232.1,150.7a4,4,0,0,0,2-2.71A102.76,102.76,0,0,0,234,108Zm-7.48,36.67L196.3,161.84a4,4,0,0,0-1.51,1.53c-.61,1.09-1.25,2.17-1.91,3.24a3.92,3.92,0,0,0-.61,2.1l-.16,34.15a99.8,99.8,0,0,1-29.7,16.77l-30.4-17a4.06,4.06,0,0,0-2-.51H130c-1.28,0-2.57,0-3.84,0a4.1,4.1,0,0,0-2.05.51l-30.45,17A100.23,100.23,0,0,1,63.89,202.9l-.12-34.12a3.93,3.93,0,0,0-.61-2.11c-.66-1-1.3-2.14-1.91-3.23a4,4,0,0,0-1.51-1.53L29.49,144.68a94.78,94.78,0,0,1,0-33.34L59.7,94.16a4,4,0,0,0,1.51-1.53c.61-1.09,1.25-2.17,1.91-3.23a4,4,0,0,0,.61-2.11l.16-34.15a99.8,99.8,0,0,1,29.7-16.77l30.4,17a4.1,4.1,0,0,0,2.05.51c1.28,0,2.57,0,3.84,0a4,4,0,0,0,2.05-.51l30.45-17A100.23,100.23,0,0,1,192.11,53.1l.12,34.12a3.93,3.93,0,0,0,.61,2.11c.66,1,1.3,2.14,1.91,3.23a4,4,0,0,0,1.51,1.53l30.25,17.23A94.78,94.78,0,0,1,226.54,144.66Z"},null,-1)])])):(0,w.createCommentVNode)("",!0)],16))}});e.i(530580);var ex=e.i(179935),ek={class:"lg:min-h-header t-app__top-container @container flex w-full flex-wrap items-center justify-center p-2"},ew={class:"mb-2 flex flex-1 items-center justify-end gap-2 @3xl:mb-0"},e$={class:"sr-only"},eP={class:"sr-only"},eQ=(0,w.defineComponent)({__name:"Header",props:{executionDisabled:{type:Boolean},path:{},method:{},isWebhook:{type:Boolean},layout:{},hideClientButton:{type:Boolean,default:!1},integration:{},documentSlug:{},exampleKey:{},documentUrl:{},source:{},server:{},servers:{},history:{},eventBus:{},environments:{},activeEnvironment:{},environment:{},serverMeta:{}},emits:["execute","select:history:item","add:environment","navigate:settings","update:webhook-url"],setup(e,{emit:r}){let{translate:n}=(0,t.useLocalization)(),o=t=>{e.eventBus.emit("workspace:update:active-environment",t)},a=()=>{e.eventBus.emit("ui:navigate",{page:"document",path:"environment"})};return(t,i)=>((0,w.openBlock)(),(0,w.createElementBlock)("div",ek,[i[7]||(i[7]=(0,w.createElementVNode)("div",{class:"flex flex-1"},null,-1)),(0,w.createVNode)((0,P.unref)(F),{activeEnvironment:e.activeEnvironment,documentSlug:e.documentSlug,environment:e.environment,environments:e.environments,eventBus:e.eventBus,exampleKey:e.exampleKey,executionDisabled:e.executionDisabled,history:e.history,isWebhook:e.isWebhook,layout:e.layout,method:e.method,path:e.path,server:e.server,serverMeta:e.serverMeta,servers:e.servers,"onAdd:environment":i[0]||(i[0]=e=>r("add:environment")),onExecute:i[1]||(i[1]=e=>r("execute")),"onSelect:history:item":i[2]||(i[2]=e=>r("select:history:item",e)),"onUpdate:webhookUrl":i[3]||(i[3]=e=>r("update:webhook-url",e))},null,8,["activeEnvironment","documentSlug","environment","environments","eventBus","exampleKey","executionDisabled","history","isWebhook","layout","method","path","server","serverMeta","servers"]),(0,w.createElementVNode)("div",ew,["modal"!==e.layout?((0,w.openBlock)(),(0,w.createBlock)(ep,{key:0,activeEnvironment:e.activeEnvironment,environments:e.environments,"onAdd:environment":a,"onSelect:environment":o},null,8,["activeEnvironment","environments"])):(0,w.createCommentVNode)("",!0),"modal"===e.layout||e.isWebhook?(0,w.createCommentVNode)("",!0):((0,w.openBlock)(),(0,w.createBlock)((0,P.unref)(ex.ScalarIconButton),{key:1,icon:(0,P.unref)(eS),label:(0,P.unref)(n)("apiClient.header.operationSettings"),size:"sm",weight:"bold",onClick:i[4]||(i[4]=e=>r("navigate:settings"))},null,8,["icon","label"])),"modal"===e.layout&&e.documentUrl&&!e.hideClientButton?((0,w.openBlock)(),(0,w.createBlock)(m.default,{key:2,buttonSource:"modal",class:"!w-fit lg:-mr-1",integration:e.integration??null,operationMethod:e.method,operationPath:e.path,source:e.source??"api-reference",url:e.documentUrl},null,8,["integration","operationMethod","operationPath","source","url"])):(0,w.createCommentVNode)("",!0),"modal"===e.layout&&"g
1itbook"!==e.source?((0,w.openBlock)(),(0,w.createElementBlock)("button",{key:3,class:"app-exit-button zoomed:static zoomed:p-1 fixed top-2 right-2 rounded-full p-2",type:"button",onClick:i[5]||(i[5]=t=>e.eventBus.emit("ui:close:client-modal"))},[(0,w.createVNode)((0,P.unref)(R.ScalarIcon),{icon:"Close",size:"lg",thickness:"2"}),(0,w.createElementVNode)("span",e$,(0,$.toDisplayString)((0,P.unref)(n)("apiClient.header.closeClient")),1)])):(0,w.createCommentVNode)("",!0),"modal"===e.layout&&"gitbook"===e.source?((0,w.openBlock)(),(0,w.createElementBlock)("button",{key:4,class:"text-c-1 hover:bg-b-2 active:text-c-1 -mr-1.5 rounded p-2",type:"button",onClick:i[6]||(i[6]=t=>e.eventBus.emit("ui:close:client-modal"))},[(0,w.createVNode)((0,P.unref)(R.ScalarIcon),{icon:"Close",size:"md",thickness:"1.75"}),(0,w.createElementVNode)("span",eP,(0,$.toDisplayString)((0,P.unref)(n)("apiClient.header.closeClient")),1)])):(0,w.createCommentVNode)("",!0)])]))}}),eC=(0,f.default)(eQ,[["__scopeId","data-v-cf0538d1"]]);e.i(766688);var eT=e.i(274657),eB=e.i(594492),eA=e.i(940832),eR=e.i(861784),eE=e.i(427338),eV=e.i(258522);e.i(210776);var eZ=e.i(261475),ej=e.i(847226);e.i(44185);let eX=async(e,t,r)=>{let n=e;for(let e of r){let r=e.hooks?.[t];r&&(n=await r(n)??n)}return n},e_=async(e,t)=>{let r=e;for(let e of t){let t=e.hooks?.responseReceived;if(t){let e,n=r.response,o=n.clone();try{e=await t({...r,response:o})??n,r={...r,response:e}}finally{for(let t of[n.body,o.body])t&&t!==e?.body&&!t.locked&&t.cancel().catch(()=>{})}}}return r};e.s(["executeHook",0,eX,"executeResponseHook",0,e_,"subscribePluginEvents",0,(e,t)=>t.on?e.onAny(t.on):()=>{}],685345),e.i(32064);var eM=e.i(838550);e.i(143669);var eq=e.i(951156),eN=e.i(730739),eD={class:"bg-b-1 flex h-full flex-col"},eU={class:"lg:min-h-header flex w-full flex-wrap items-center justify-center p-2 lg:p-0"},ez={class:"text-c-2 p-4",role:"status"},eW=(0,w.defineComponent)({name:"OperationBlock",props:{externalExamplesPending:{type:Boolean,default:!1},externalExamplesFailed:{type:Boolean,default:!1},eventBus:{},appVersion:{},document:{},documentSlug:{},workspaceCookies:{default:()=>[]},documentCookies:{default:()=>[]},path:{},method:{},isWebhook:{type:Boolean,default:!1},httpClients:{default:()=>eM.AVAILABLE_CLIENTS},history:{default:()=>[]},layout:{},server:{},selectedClient:{},servers:{},serverMeta:{},hideClientButton:{type:Boolean},integration:{},documentUrl:{},source:{},operation:{},sourceOperation:{},exampleKey:{},authMeta:{},securitySchemes:{},plugins:{default:()=>[]},environments:{},activeEnvironment:{},environment:{},proxyUrl:{},selectedSecurity:{},selectedSecuritySchemes:{},securityRequirements:{},defaultHeaders:{},requestBodyCompositionSelection:{},options:{}},emits:["retry:externalExamples"],setup(e){let{translate:f}=(0,t.useLocalization)(),m=(0,w.computed)(()=>(0,eZ.generateClientOptions)(e.httpClients)),{toast:O}=(0,eN.useToasts)(),{copyToClipboard:g}=(0,eq.useClipboard)(),v=(0,P.ref)(null),y=(0,P.ref)(null),b=(0,P.ref)(null),S=(0,P.ref)("");(0,w.watch)([()=>e.path,()=>e.method,()=>e.isWebhook],()=>{S.value=""},{immediate:!0});let x=(0,w.computed)(()=>e.isWebhook?S.value:e.path),k=(0,w.computed)(()=>e.isWebhook?null:e.server),$=()=>v.value?.abort(eR.ERRORS.REQUEST_ABORTED),Q=async()=>{let{request:t}=(0,eA.requestFactory)({defaultHeaders:e.defaultHeaders,environment:e.environment,exampleName:e.exampleKey,globalCookies:[...e.workspaceCookies,...e.documentCookies],method:e.method,operation:e.operation,path:x.value,proxyUrl:e.proxyUrl,server:k.value,selectedSecuritySchemes:e.selectedSecuritySchemes,isElectron:(0,eE.isElectron)(),openapiVersion:e.document.openapi,requestBodyCompositionSelection:e.requestBodyCompositionSelection});await g((0,eT.resolveExecutableRequestUrl)(t,(0,eB.getEnvironmentVariables)(e.environment)))},T=async()=>{let t,r,n,o;if(e.externalExamplesPending)return;if(e.eventBus.flushDebouncedEmits?.(),await (0,w.nextTick)(),e.isWebhook&&!x.value.trim())return void O(f("apiClient.operationBlock.webhookUrlRequired"),"error");if(!1===(0,d.validatePathParameters)(e.operation.parameters??[],e.exampleKey).ok)return void O(f("apiClient.operationBlock.pathParametersRequired"),"error");let i=[...e.workspaceCookies,...e.documentCookies],{request:s}=(0,eA.requestFactory)({defaultHeaders:e.defaultHeaders,environment:e.environment,exampleName:e.exampleKey,globalCookies:i,method:e.method,operation:e.operation,path:x.value,proxyUrl:e.proxyUrl,server:k.value,selectedSecuritySchemes:e.selectedSecuritySchemes,isElectron:(0,eE.isElectron)(),openapiVersion:e.document.openapi,requestBodyCompositionSelection:e.requestBodyCompositionSelection});y.value&&"reader"in y.value&&y.value.reader.cancel();let h=(t=[],r=[],n=[],o=[],{getEnvironment:()=>t,getGlobals:()=>n,getCollectionVariables:()=>r,getData:()=>({}),getLocalVariables:()=>o,setLocalVariables:e=>{o.length=0,o.push(...e)},setCollectionVariables:e=>{r.length=0,r.push(...e)},setEnvironment:e=>{t.length=0,t.push(...e)},setGlobals:e=>{n.length=0,n.push(...e)},getVariables:()=>Object.fromEntries([...n,...r,...t,...o].map(e=>[e.key,e.value]))}),p=(0,eB.getEnvironmentVariables)(e.environment);h.setEnvironment?.(Object.entries(p).map(([e,t])=>({key:e,value:t})));let m=e.activeEnvironment?{environmentName:e.activeEnvironment,mergedVariables:[...e.environment.variables],documentVariables:[...e.document["x-scalar-environments"]?.[e.activeEnvironment]?.variables??[]],environmentExistsOnDocument:!!e.document["x-scalar-environments"]?.[e.activeEnvironment]}:null;await eX({requestBuilder:s,document:e.document,operation:e.operation,variablesStore:h,server:k.value,customFetch:(0,P.toValue)(e.options)?.customFetch},"beforeRequest",e.plugins);let g=()=>{if(m)for(let t of(0,c.getEnvironmentPersistenceActions)({...m,seededVariables:p,scriptVariables:h.getEnvironment()}))"delete"===t.type?e.eventBus.emit("environment:delete:environment-variable",{environmentName:t.environmentName,index:t.index,collectionType:t.collectionType}):e.eventBus.emit("environment:upsert:environment-variable",{environmentName:t.environmentName,variable:t.variable,index:t.index,collectionType:t.collectionType})},S=(0,eT.buildRequest)(s,{envVariables:h.getVariables(),allowMissingRequestServerBase:"modal"===e.layout});if(!S.ok){g(),O(S.message??S.error,"error");return}let $=S.data.requestPayload[1].method??"GET";if((0,ej.isForbiddenHttpMethod)($)){g(),O(f("apiClient.operationBlock.forbiddenMethod",{method:$.toUpperCase()}),"error");return}v.value=S.data.controller;let Q=(0,eV.buildSafeBodyRequest)(...S.data.requestPayload);await eX({request:Q,requestBuilder:s,document:e.document,operation:e.operation,variablesStore:h},"requestBuilt",e.plugins),e.eventBus.emit("hooks:on:request:sent",{meta:{method:e.method,path:e.path,exampleKey:e.exampleKey}});
1let[C,T]=await (0,a.sendRequest)({isUsingProxy:S.data.isUsingProxy,requestPayload:S.data.requestPayload,request:Q,plugins:e.plugins,customFetch:(0,P.toValue)(e.options)?.customFetch,onResponseReceived:async(t,r)=>(await e_({response:t,responseDuration:r,requestBuilder:s,request:(0,eV.buildSafeBodyRequest)(...S.data.requestPayload),document:e.document,operation:e.operation,variablesStore:h},e.plugins)).response});if(g(),e.eventBus.emit("hooks:on:request:complete",{payload:T?{response:T.originalResponse.clone(),requestPayload:T.requestPayload,duration:T.response.duration,timestamp:T.timestamp}:void 0,meta:{method:e.method,path:e.path,exampleKey:e.exampleKey}}),C){y.value=null,b.value=null,v.value=null,O(C.message,"error");return}y.value=T.response,b.value=T.requestPayload;for(let t of(0,l.getResponseCookieActions)({cookieHeaderKeys:T.response.cookieHeaderKeys??[],documentCookies:e.documentCookies,requestUrl:(0,l.getCookieRequestUrl)(String(T.requestPayload[0]))})){if("delete"===t.type){e.eventBus.emit("cookie:delete:cookie",{collectionType:"document",cookieName:t.cookieName,index:t.index});continue}e.eventBus.emit("cookie:upsert:cookie",{collectionType:"document",payload:t.cookie,...void 0===t.index?{}:{index:t.index}})}(0,u.isStreamingResponse)(T.response)||u.responseCache.set((0,u.getOperationExampleKey)(e.method,e.path,e.exampleKey),{response:T.response,requestPayload:T.requestPayload})};(0,w.onMounted)(()=>{e.eventBus.on("operation:send:request:hotkey",T),e.eventBus.on("operation:cancel:request",$),e.eventBus.on("copy-url:address-bar",Q),eX({document:e.document,operation:e.operation},"onRequestMount",e.plugins)}),(0,w.onBeforeUnmount)(()=>{e.eventBus.off("operation:send:request:hotkey",T),e.eventBus.off("operation:cancel:request",$),e.eventBus.off("copy-url:address-bar",Q)});let B=(0,w.computed)(()=>e.history.map(e=>({method:e.request.method,path:e.request.url,duration:e.time,status:e.response.status})).reverse()),A=({index:t})=>{let r=(e.history.length??0)-t-1,n=e.history[r];n&&e.eventBus.emit("operation:reload:history",{meta:{path:e.path,method:e.method},index:r,callback:()=>e.eventBus.emit("ui:navigate",{page:"example",method:e.method,path:e.path,exampleName:"draft",callback:t=>{if("success"!==t)return;let r=(0,s.harToFetchResponse)({harResponse:n.response,url:n.request.url,method:e.method,path:e.path,duration:n.time}),o=(0,i.harToFetchRequest)({harRequest:n.request});y.value=r,b.value=o}})})},R=()=>{e.eventBus.emit("ui:navigate",{page:"operation",path:"overview",operationPath:e.path,method:e.method})};return(0,w.watch)([()=>e.path,()=>e.method,()=>e.exampleKey],([t,r,n])=>{let o=u.responseCache.get((0,u.getOperationExampleKey)(r,t,n));if(o)y.value=o.response,b.value=o.requestPayload;else{let o=(()=>{for(let t=e.history.length-1;t>=0;t--){let r=e.history[t];if(r?.meta.example===n)return r}})();o?y.value=(0,s.harToFetchResponse)({harResponse:o.response,url:o.request.url,method:r,path:t,duration:o.time}):y.value=null,b.value=null}$()},{immediate:!0}),(0,w.onBeforeUnmount)(()=>{$()}),(t,a)=>((0,w.openBlock)(),(0,w.createElementBlock)("div",eD,[(0,w.createElementVNode)("div",eU,[(0,w.createVNode)(eC,{activeEnvironment:e.activeEnvironment,documentSlug:e.documentSlug,documentUrl:e.documentUrl,environment:e.environment,environments:e.environments,eventBus:e.eventBus,exampleKey:e.exampleKey,executionDisabled:e.externalExamplesPending,hideClientButton:e.hideClientButton,history:B.value,integration:e.integration,isWebhook:e.isWebhook,layout:e.layout,method:e.method,path:x.value,server:k.value,serverMeta:e.serverMeta,servers:e.servers,source:e.source,onExecute:T,"onNavigate:settings":R,"onSelect:history:item":A,"onUpdate:webhookUrl":a[0]||(a[0]=e=>S.value=e)},null,8,["activeEnvironment","documentSlug","documentUrl","environment","environments","eventBus","exampleKey","executionDisabled","hideClientButton","history","integration","isWebhook","layout","method","path","server","serverMeta","servers","source"])]),(0,w.createVNode)(r.default,{class:"border-t"},{default:(0,w.withCtx)(()=>[(0,w.createVNode)(n.default,{class:"flex-1"},{default:(0,w.withCtx)(()=>[e.externalExamplesPending?((0,w.openBlock)(),(0,w.createBlock)(o.default,{key:0,"aria-label":"Request"},{title:(0,w.withCtx)(()=>[...a[2]||(a[2]=[(0,w.createTextVNode)("Request",-1)])]),default:(0,w.withCtx)(()=>[(0,w.createElementVNode)("div",ez,[e.externalExamplesFailed?((0,w.openBlock)(),(0,w.createElementBlock)(w.Fragment,{key:0},[a[4]||(a[4]=(0,w.createTextVNode)(" Could not load this example. ",-1)),(0,w.createVNode)((0,P.unref)(C.ScalarButton),{size:"sm",variant:"ghost",onClick:a[1]||(a[1]=e=>t.$emit("retry:externalExamples"))},{default:(0,w.withCtx)(()=>[...a[3]||(a[3]=[(0,w.createTextVNode)(" Retry ",-1)])]),_:1})],64)):((0,w.openBlock)(),(0,w.createElementBlock)(w.Fragment,{key:1},[(0,w.createTextVNode)("Loading exampleâ¦")],64))])]),_:1})):((0,w.openBlock)(),(0,w.createBlock)((0,P.unref)(h.default),{key:1,authMeta:e.authMeta,clientOptions:m.value,defaultHeaders:e.defaultHeaders,defaultRequestBodyView:e.document["x-scalar-default-request-body-view"],documentCookies:e.documentCookies,documentSlug:e.documentSlug,environment:e.environment,eventBus:e.eventBus,exampleKey:e.exampleKey,layout:e.layout,method:e.method,openapiVersion:e.document.openapi,operation:e.operation,options:(0,P.toValue)(e.options),path:x.value,plugins:e.plugins,proxyUrl:e.proxyUrl,requestBodyCompositionSelection:e.requestBodyCompositionSelection,securityRequirements:e.securityRequirements,securitySchemes:e.securitySchemes,selectedClient:e.selectedClient,selectedSecurity:e.selectedSecurity,selectedSecuritySchemes:e.selectedSecuritySchemes,server:k.value,sourceOperation:e.sourceOperation,workspaceCookies:e.workspaceCookies},null,8,["authMeta","clientOptions","defaultHeaders","defaultRequestBodyView","documentCookies","documentSlug","environment","eventBus","exampleKey","layout","method","openapiVersion","operation","options","path","plugins","proxyUrl","requestBodyCompositionSelection","securityRequirements","securitySchemes","selectedClient","selectedSecurity","selectedSecuritySchemes","server","sourceOperation","workspaceCookies"])),(0,w.createVNode)((0,P.unref)(p.default),{appVersion:e.appVersion,eventBus:e.eventBus,executionDisabled:e.externalExamplesPending,layout:e.layout,plugins:e.plugins,requestPayload:b.value,response:y.value,totalPerformedRequests:B.value.length},null,8,["appVersion","eventBus","executionDisabled","layout","plugins","requestPayload","response","totalPerformedRequests"])]),_:1})]),_:1})]))}});e.s(["default",0,eW],727967)},64041,e=>{"use strict";var t=e.i(142653),r=e.i(193141);e.i(761626);var n=e.i(875418),o=e.i(80250),a=e.i(112111),i=e.i(908651),s=e.i(837786),l=e.i(294859),c=["href"],u=(0,n.defineComponent)({__name:"OpenApiClientButton",props:{buttonSource:{},source:{default:"api-reference"},isDevelopment:{type:Boolean},integration:{},url:{},operationPath:{},operationMethod:{}},setup(e){let{translate:t}=(0,r.useLocalization)(),u=(0,n.computed)(()=>{let t=e.url??("u">typeof window?window.location.href:void 0);if(!t)return;let r=(0,l.makeUrlAbsolute)(t);if(!r?.length)return;let n=new URL(e.isDevelopment?"http://localhost:5065":"https://client.scalar.com");if(n.searchParams.set("url",r),e.operationPath?.length&&e.operationMethod?.length&&(n.searchParams.set("operation_path",e.operationPath),n.searchParams.set("operation_method",e.operationMethod===e.operationMethod.toUpperCase()&&(0,s.isHttpMethod)(e.operationMethod)?e.operationMethod.toLowerCase():e.operationMethod)),null!==e.integration&&n.searchParams.set("integration",e.integration??"vue"),n.searchParams.set("utm_source","api-reference"),n.searchParams.set("utm_medium","button"),n.searchParams.set("utm_campaign",e.buttonSource),"gitbook"===e.source){n.searchParams.set("utm_source","gitbook");let e=document.querySelector("img.dark\\:block[alt='Logo']"),t=document.querySelector("img.dark\\:hidden[alt='Logo']");e&&e instanceof HTMLImageElement&&n.searchParams.set("dark_logo",encodeURIComponent(e.src)),t&&t instanceof HTMLImageElement&&n.searchParams.set("light_logo",encodeURIComponent(t.src))}return n.toString()});return(e,r)=>u.value?((0,n.openBlock)(),(0,n.createElementBlock)("a",{key:0,class:"open-api-client-button",href:u.value,target:"_blank"},[(0,n.createVNode)((0,a.unref)(i.ScalarIconArrowUpRight),{class:"size-3",weight:"regular"}),(0,n.createTextVNode)((0,o.toDisplayString)((0,a.unref)(t)("apiClient.openApiClientButton.openAPIClient")),1)],8,c)):(0,n.createCommentVNode)("",!0)}}),d=(0,t.default)(u,[["__scopeId","data-v-746e7aef"]]);e.s(["default",0,d],64041)},645944,493824,528680,167957,797972,619849,847321,905282,552375,588395,329808,868255,511735,998926,526883,385,122626,e=>{"use strict";let t,r,n,o;
1e.s(["harToFetchRequest",0,({harRequest:e})=>{let t=(e=>{let t=new Headers;if(e.headers.forEach(({name:e,value:r})=>{t.append(e,r)}),e.cookies?.length){let r=e.cookies.map(({name:e,value:t})=>`${e}=${t}`).join("; ");t.append("Cookie",r)}return t})(e),r=(e=>{if(!e)return null;let{params:t,text:r,mimeType:n}=e;if(t?.length){let e=n?.includes("multipart/form-data")?new FormData:new URLSearchParams;return t.forEach(({name:t,value:r})=>{e.append(t,r||"")}),e}return r?new TextEncoder().encode(r):null})(e.postData);return[e.url,{method:e.method,headers:t,body:r}]}],645944);var a,i,s,l,c,u,d,h,p,f=e.i(57474);e.s(["harToFetchResponse",0,({harResponse:e,url:t="",method:r,path:n,duration:o=0})=>{var a;let i,s=(a=e,i=new Headers,a.headers.forEach(({name:e,value:t})=>{i.append(e,t)}),i),{body:l,data:c,size:u}=(e=>{if(!e.content.text)return{body:null,data:"",size:0};let{text:t,encoding:r}=e.content;if(r)return{body:null,data:t,size:t.length};let n=new TextEncoder().encode(t).buffer;return{body:n,data:t,size:n.byteLength}})(e),d=(0,f.getCookieHeaderKeys)(s);return{...new Response(l,{status:e.status,statusText:e.statusText,headers:s}),headers:Object.fromEntries(s.entries()),cookieHeaderKeys:d,duration:o,status:e.status,statusText:e.statusText,method:r,path:n,data:c,size:u,url:t}}],493824);var m=e.i(674474),O=(e,t)=>e.name===t.name&&(e.domain??"")===(t.domain??"")&&(e.path??"")===(t.path??"");e.s(["getCookieRequestUrl",0,e=>{try{return new URL(e).searchParams.get("scalar_url")||e}catch{return e}},"getResponseCookieActions",0,({cookieHeaderKeys:e,documentCookies:t,requestUrl:r,now:n=Date.now()})=>{let{hostname:o,defaultPath:a}=(e=>{try{let{hostname:t,pathname:r}=new URL(e,"https://example.com");return{hostname:t,defaultPath:(e=>{if(!e.startsWith("/"))return"/";let t=e.lastIndexOf("/");return t<=0?"/":e.slice(0,t)})(r)}}catch{return{hostname:"",defaultPath:"/"}}})(r),i=new Map;for(let t of e){let[e]=(0,m.parseSetCookie)(t);if(!e?.name)continue;let r=e.domain||o,s=e.path||a,l=void 0!==e.maxAge&&e.maxAge<=0||e.expires instanceof Date&&e.expires.getTime()<=n;i.set(`${e.name} 2${r} 3${s}`,{cookie:{name:e.name,value:e.value,domain:r,path:s},expired:l})}let s=[],l=[];for(let{cookie:e,expired:r}of i.values()){let n=t.findIndex(t=>O(e,t));if(r){-1!==n&&l.push({type:"delete",cookieName:e.name,index:n});continue}s.push({type:"upsert",cookie:e,...-1===n?{}:{index:n}})}return[...[...s.filter(e=>void 0!==e.index),...l].sort((e,t)=>(t.index??0)-(e.index??0)),...s.filter(e=>void 0===e.index)]}],528680),e.s(["getEnvironmentPersistenceActions",0,({environmentName:e,seededVariables:t,scriptVariables:r,mergedVariables:n,documentVariables:o,environmentExistsOnDocument:a})=>{let i=Math.max(0,n.length-o.length),s=new Map(o.map((e,t)=>[e.name,t])),l=new Map(n.slice(0,i).map((e,t)=>[e.name,t])),c=e=>{let t=s.get(e);if(void 0!==t)return{collectionType:"document",index:t};let r=l.get(e);if(void 0!==r)return{collectionType:"workspace",index:r}},u=[],d=[],h=new Set;for(let{key:n,value:o}of Array.isArray(r)?r:Object.entries(r).map(([e,t])=>({key:e,value:t}))){if(h.add(n),t[n]===o)continue;let r=c(n);r?u.push({type:"upsert",environmentName:e,variable:{name:n,value:o},...r}):u.push({type:"upsert",environmentName:e,variable:{name:n,value:o},collectionType:a?"document":"workspace"})}for(let r of Object.keys(t)){if(h.has(r))continue;let t=s.get(r);void 0!==t&&d.push({type:"delete",environmentName:e,index:t,collectionType:"document"});let n=l.get(r);void 0!==n&&d.push({type:"delete",environmentName:e,index:n,collectionType:"workspace"})}return d.sort((e,t)=>t.index-e.index),[...u,...d]}],167957);var g=e.i(117670),v=new Map;e.s(["getOperationExampleKey",0,function(e,t,r,n){return[n,e,t,r].filter(g.isDefined).join("|")},"isStreamingResponse",0,function(e){return"reader"in e},"responseCache",0,v],797972),e.i(766688);var y=e.i(147224),b=e.i(890396),S=e.i(304780),x=e=>null==e||"string"==typeof e&&""===e.trim();e.s(["validatePathParameters",0,(e=[],t="default")=>{let r=[];for(let n of e){let e=(0,S.getResolvedRef)(n);if(!e||"path"!==e.in)continue;let o=(0,y.getExample)(e,t,void 0);!(0,b.isParamDisabled)(e,o)&&x(o?.value)&&r.push(e.name)}return r.length>0?{ok:!1,invalidParams:r}:{ok:!0}
3}],619849);var k=e.i(142653),w=e.i(193141);e.i(761626);var $=e.i(875418),P=e.i(80250),Q=["aria-controls","aria-selected","tabindex"],C=(0,$.defineComponent)({__name:"SectionFilterButton",props:{selected:{type:Boolean},controls:{}},setup:e=>(t,r)=>((0,$.openBlock)(),(0,$.createElementBlock)("button",{"aria-controls":e.controls??"","aria-selected":!!e.selected,class:(0,P.normalizeClass)(["hover:bg-b-2 flex w-fit cursor-pointer items-center rounded p-1 px-2 text-center font-medium whitespace-nowrap has-[:focus-visible]:outline",{"text-c-1 pointer-events-none":e.selected}]),role:"tab",tabindex:e.selected?0:-1,type:"button"},[(0,$.renderSlot)(t.$slots,"default")],10,Q))}),T=e.i(112111),B=e.i(562649);e.i(37055);var A=e.i(965487),R={class:"request-section-content request-section-content-filter fade-request-section-content text-c-3 pointer-events-auto relative hidden w-full justify-end gap-[1.5px] rounded py-1.75 text-xs xl:flex"},E={class:"filter-button context-bar-group-hover:text-c-1 absolute -end-[30px] flex items-center"},V={class:"context-bar-group-hover:hidden me-1.5"},Z=(0,$.defineComponent)({__name:"SectionFilter",props:(0,$.mergeModels)({filters:{default:()=>[]},labels:{},filterIds:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){let t=(0,$.useModel)(e,"modelValue"),r=(0,T.ref)(),{direction:n}=(0,w.useLocalization)(),o=o=>{let a=("left"===o?-1:1)*("rtl"===n.value?-1:1),i=t.value?e.filters.indexOf(t.value):0,s=e.filters.length;t.value=e.filters[(i+a+s)%s],(0,$.nextTick)(()=>{if(r.value){let e=r.value.querySelector('button[aria-selected="true"]');e&&e.focus()}})};return(n,a)=>((0,$.openBlock)(),(0,$.createElementBlock)("div",{ref_key:"tablist",ref:r,class:"filter-hover context-bar-group ms-auto hidden lg:flex",role:"tablist",onKeydown:[a[0]||(a[0]=(0,B.withKeys)(e=>o("left"),["left"])),a[1]||(a[1]=(0,B.withKeys)(e=>o("right"),["right"]))]},[(0,$.createElementVNode)("div",R,[((0,$.openBlock)(!0),(0,$.createElementBlock)($.Fragment,null,(0,$.renderList)(e.filters,r=>((0,$.openBlock)(),(0,$.createBlock)(C,{key:r,class:"filter-hover-item",controls:e.filterIds?.[r],role:"tab",selected:t.value===r,onClick:e=>t.value=r},{default:(0,$.withCtx)(()=>[(0,$.createTextVNode)((0,P.toDisplayString)(e.labels?.[r]??r),1)]),_:2},1032,["controls","selected","onClick"]))),128)),(0,$.createElementVNode)("div",E,[(0,$.createElementVNode)("span",V,(0,P.toDisplayString)(t.value?e.labels?.[t.value]??t.value:t.value),1),(0,$.createVNode)((0,T.unref)(A.ScalarIcon),{icon:"FilterList",size:"md",thickness:"2"})])])],544))}}),j=(0,k.default)(Z,[["__scopeId","data-v-48147b15"]]);e.s(["default",0,j],847321);var X=e.i(61397);e.i(293764);var _=e.i(786662),M={language:"json",parse:e=>JSON.parse(e),stringify:e=>JSON.stringify(e,null,2)},q={language:"yaml",parse:e=>(0,_.parse)(e),stringify:e=>(0,_.stringify)(e)},N=new Set(["application/yaml","application/x-yaml","text/yaml","text/x-yaml"]);e.s(["getStructuredBodyCodec",0,e=>{let t=(0,X.parseMimeType)(e).essence;return"application/json"===t||t.endsWith("+json")?M:N.has(t)||t.endsWith("+yaml")?q:void 0}],905282),e.s(["useFileDialog",0,function({multiple:e,accept:t,onChange:r,onError:n}={}){let o,a=(0,T.ref)(null);return"u">typeof document&&((o=document.createElement("input")).type="file",o.onchange=e=>{e.target instanceof HTMLInputElement&&(a.value=e.target.files,r?.(a.value))},o.onerror=()=>n?.(),o.multiple=e,o.accept=t),{files:(0,T.readonly)(a),open:()=>{if(!o)return n?.();o.click()}}}],552375);var D=e.i(609652),U=e.i(478693),z=e.i(193778);let W=[],L=[],H="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,1n,9,16,o,,x,1i,3,,i,,7,a,2,t,3,1k,,,7,2,2,2,3,9,,a,2,q,,2,3,1k,,,5,4,2,2,3,3,,u,2,3,,b,3,1k,,,8,,3,,3,k,2,m,6,,3,1k,,,7,2,2,2,3,7,3,a,2,u,,1n,5,3,3,,4,9,,14,5,1j,,,7,,3,,4,7,2,b,2,t,3,1k,,,7,,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e,36):1);for(let e=0,t=0;e<H.length;e++)(e%2?L:W).push(t+=H[e]);function I(e){return e>=127462&&e<=127487}function Y(e,t,r){if(t==e.length)return t;t&&F(e.charCodeAt(t))&&K(e.charCodeAt(t-1))&&t--;let n=G(e,t);for(t+=J(n);t<e.length;){let o=G(e,t);if(8205==n||8205==o||r&&function(e){if(e<768)return!1;for(let t=0,r=W.length;;){let n=t+r>>1;if(e<W[n])r=n;else{if(!(e>=L[n]))return!0;t=n+1}if(t==r)return!1}}(o))t+=J(o),n=o;else if(I(o)){let r=0,n=t-2;for(;n>=0&&I(G(e,n));)r++,n-=2;if(r%2==0)break;t+=2}else break}return t}function G(e,t){let r=e.charCodeAt(t);if(!K(r)||t+1==e.length)return r;let n=e.charCodeAt(t+1);return F(n)?(r-55296<<10)+(n-56320)+65536:r}function F(e){return e>=56320&&e<57344}function K(e){return e>=55296&&e<56320}function J(e){return e<65536?1:2}class ee{lineAt(e){if(e<0||e>this.length)throw RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,r){[e,t]=el(this,e,t);let n=[];return this.decompose(0,e,n,2),r.length&&r.decompose(0,r.length,n,3),this.decompose(t,this.length,n,1),er.from(n,this.length-(t-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=el(this,e,t);let r=[];return this.decompose(e,t,r,0),er.from(r,t-e)}eq(e){if(e==this)return!0;
3if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1),n=new eo(this),o=new eo(e);for(let e=t,a=t;;){if(n.next(e),o.next(e),e=0,n.lineBreak!=o.lineBreak||n.done!=o.done||n.value!=o.value)return!1;if(a+=n.value.length,n.done||a>=r)return!0}}iter(e=1){return new eo(this,e)}iterRange(e,t=this.length){return new ea(this,e,t)}iterLines(e,t){let r;if(null==e)r=this.iter();else{null==t&&(t=this.lines+1);let n=this.line(e).from;r=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new ei(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(0==e.length)throw RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new et(e):er.from(et.split(e,[])):ee.empty}}class et extends ee{constructor(e,t=function(e){let t=-1;for(let r of e)t+=r.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,r,n){for(let o=0;;o++){let a=this.text[o],i=n+a.length;if((t?r:i)>=e)return new es(n,i,r,a);n=i+1,r++}}decompose(e,t,r,n){var o;let a=e<=0&&t>=this.length?this:new et((o=this.text,en(o,[""],e,t)),Math.min(t,this.length)-Math.max(0,e));if(1&n){let e=r.pop(),t=en(a.text,e.text.slice(),0,a.length);if(t.length<=32)r.push(new et(t,e.length+a.length));else{let e=t.length>>1;r.push(new et(t.slice(0,e)),new et(t.slice(e)))}}else r.push(a)}replace(e,t,r){var n;if(!(r instanceof et))return super.replace(e,t,r);[e,t]=el(this,e,t);let o=en(this.text,en(r.text,(n=this.text,en(n,[""],0,e))),t),a=this.length+r.length-(t-e);return o.length<=32?new et(o,a):er.from(et.split(o,[]),a)}sliceString(e,t=this.length,r="\n"){[e,t]=el(this,e,t);let n="";for(let o=0,a=0;o<=t&&a<this.text.length;a++){let i=this.text[a],s=o+i.length;o>e&&a&&(n+=r),e<s&&t>o&&(n+=i.slice(Math.max(0,e-o),t-o)),o=s+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let r=[],n=-1;for(let o of e)r.push(o),n+=o.length+1,32==r.length&&(t.push(new et(r,n)),r=[],n=-1);return n>-1&&t.push(new et(r,n)),t}}class er extends ee{constructor(e,t){for(let r of(super(),this.children=e,this.length=t,this.lines=0,e))this.lines+=r.lines}lineInner(e,t,r,n){for(let o=0;;o++){let a=this.children[o],i=n+a.length,s=r+a.lines-1;if((t?s:i)>=e)return a.lineInner(e,t,r,n);n=i+1,r=s+1}}decompose(e,t,r,n){for(let o=0,a=0;a<=t&&o<this.children.length;o++){let i=this.children[o],s=a+i.length;if(e<=s&&t>=a){let o=n&(a<=e|2*(s>=t));a>=e&&s<=t&&!o?r.push(i):i.decompose(e-a,t-a,r,o)}a=s+1}}
vendor: 4,505 bytes, line 3
3replace(e,t,r){if([e,t]=el(this,e,t),r.lines<this.lines)for(let n=0,o=0;n<this.children.length;n++){let a=this.children[n],i=o+a.length;if(e>=o&&t<=i){let s=a.replace(e-o,t-o,r),l=this.lines-a.lines+s.lines;if(s.lines<l>>4&&s.lines>l>>6){let o=this.children.slice();return o[n]=s,new er(o,this.length-(t-e)+r.length)}return super.replace(o,i,s)}o=i+1}return super.replace(e,t,r)}sliceString(e,t=this.length,r="\n"){[e,t]=el(this,e,t);let n="";for(let o=0,a=0;o<this.children.length&&a<=t;o++){let i=this.children[o],s=a+i.length;a>e&&o&&(n+=r),e<s&&t>a&&(n+=i.sliceString(e-a,t-a,r)),a=s+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof er))return 0;let r=0,[n,o,a,i]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,o+=t){if(n==a||o==i)return r;let s=this.children[n],l=e.children[o];if(s!=l)return r+s.scanIdentical(l,t);r+=s.length+1}}static from(e,t=e.reduce((e,t)=>e+t.length+1,-1)){let r=0;for(let t of e)r+=t.lines;if(r<32){let r=[];for(let t of e)t.flatten(r);return new et(r,t)}let n=Math.max(32,r>>5),o=n<<1,a=n>>1,i=[],s=0,l=-1,c=[];function u(){0!=s&&(i.push(1==c.length?c[0]:er.from(c,l)),l=-1,s=c.length=0)}for(let t of e)!function e(t){let r;if(t.lines>o&&t instanceof er)for(let r of t.children)e(r);else t.lines>a&&(s>a||!s)?(u(),i.push(t)):t instanceof et&&s&&(r=c[c.length-1])instanceof et&&t.lines+r.lines<=32?(s+=t.lines,l+=t.length+1,c[c.length-1]=new et(r.text.concat(t.text),r.length+1+t.length)):(s+t.lines>n&&u(),s+=t.lines,l+=t.length+1,c.push(t))}(t);return u(),1==i.length?i[0]:new er(i,t)}}function en(e,t,r=0,n=1e9){for(let o=0,a=0,i=!0;a<e.length&&o<=n;a++){let s=e[a],l=o+s.length;l>=r&&(l>n&&(s=s.slice(0,n-o)),o<r&&(s=s.slice(r-o)),i?(t[t.length-1]+=s,i=!1):t.push(s)),o=l+1}return t}ee.empty=new et([""],0);class eo{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof et?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,n=this.nodes[r],o=this.offsets[r],a=o>>1,i=n instanceof et?n.text.length:n.children.length;if(a==(t>0?i:0)){if(0==r)return this.done=!0,this.value="",this;t>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(t>0?0:1)){if(this.offsets[r]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(n instanceof et){let o=n.text[a+(t<0?-1:0)];if(this.offsets[r]+=t,o.length>Math.max(0,e))return this.value=0==e?o:t>0?o.slice(e):o.slice(0,o.length-e),this;e-=o.length}else{let o=n.children[a+(t<0?-1:0)];e>o.length?(e-=o.length,this.offsets[r]+=t):(t<0&&this.offsets[r]--,this.nodes.push(o),this.offsets.push(t>0?1:(o instanceof et?o.text.length:o.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class ea{constructor(e,t,r){this.value="",this.done=!1,this.cursor=new eo(e,t>r?-1:1),this.pos=t>r?e.length:0,this.from=Math.min(t,r),this.to=Math.max(t,r)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let r=t<0?this.pos-this.from:this.to-this.pos;e>r&&(e=r),r-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=r?n:t<0?n.slice(n.length-r):n.slice(0,r),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class ei{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:r,value:n}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}"u">typeof Symbol&&(ee.prototype[Symbol.iterator]=function(){return this.iter()},eo.prototype[Symbol.iterator]=ea.prototype[Symbol.iterator]=ei.prototype[Symbol.iterator]=function(){return this});class es{constructor(e,t,r,n){this.from=e,this.to=t,this.number=r,this.text=n}get length(){return this.to-this.from}}function el(e,t,r){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,r))]}function ec(e,t,r=!0,n=!0){return function(e,t,r=!0,n=!0){return(r?Y:function(e,t,r){for(;t>1;){let n=Y(e,t-2,r);
3if(n<t)return n;t--}return 0})(e,t,n)}(e,t,r,n)}function eu(e,t){let r=e.charCodeAt(t);if(!(r>=55296&&r<56320)||t+1==e.length)return r;let n=e.charCodeAt(t+1);return n>=56320&&n<57344?(r-55296<<10)+(n-56320)+65536:r}function ed(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}function eh(e){return e<65536?1:2}let ep=/\r\n?|\n/;var ef=((s=ef||(ef={}))[s.Simple=0]="Simple",s[s.TrackDel=1]="TrackDel",s[s.TrackBefore=2]="TrackBefore",s[s.TrackAfter=3]="TrackAfter",s);class em{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let r=this.sections[t+1];e+=r<0?this.sections[t]:r}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,r=0,n=0;t<this.sections.length;){let o=this.sections[t++],a=this.sections[t++];a<0?(e(r,n,o),n+=o):n+=a,r+=o}}iterChangedRanges(e,t=!1){ey(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let r=this.sections[t++],n=this.sections[t++];n<0?e.push(r,n):e.push(n,r)}return new em(e)}composeDesc(e){return this.empty?e:e.empty?this:eS(this,e)}mapDesc(e,t=!1){return e.empty?this:eb(this,e,t)}mapPos(e,t=-1,r=ef.Simple){let n=0,o=0;for(let a=0;a<this.sections.length;){let i=this.sections[a++],s=this.sections[a++],l=n+i;if(s<0){if(l>e)return o+(e-n);o+=i}else{if(r!=ef.Simple&&l>=e&&(r==ef.TrackDel&&n<e&&l>e||r==ef.TrackBefore&&n<e||r==ef.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!i)return e==n||t<0?o:o+s;o+=s}n=l}if(e>n)throw RangeError(`Position ${e} is out of range for changeset of length ${n}`);return o}touchesRange(e,t=e){for(let r=0,n=0;r<this.sections.length&&n<=t;){let o=this.sections[r++],a=this.sections[r++],i=n+o;if(a>=0&&n<=t&&i>=e)return!(n<e)||!(i>t)||"cover";n=i}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let r=this.sections[t++],n=this.sections[t++];e+=(e?" ":"")+r+(n>=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw RangeError("Invalid JSON representation of ChangeDesc");return new em(e)}static create(e){return new em(e)}}class eO extends em{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError("Applying change set to a document with the wrong length");return ey(this,(t,r,n,o,a)=>e=e.replace(n,n+(r-t),a),!1),e}mapDesc(e,t=!1){return eb(this,e,t,!0)}invert(e){let t=this.sections.slice(),r=[];for(let n=0,o=0;n<t.length;n+=2){let a=t[n],i=t[n+1];if(i>=0){t[n]=i,t[n+1]=a;let s=n>>1;for(;r.length<s;)r.push(ee.empty);r.push(a?e.slice(o,o+a):ee.empty)}o+=a}return new eO(t,r)}compose(e){return this.empty?e:e.empty?this:eS(this,e,!0)}map(e,t=!1){return e.empty?this:eb(this,e,t,!0)}iterChanges(e,t=!1){ey(this,e,t)}get desc(){return em.create(this.sections)}filter(e){let t=[],r=[],n=[],o=new ex(this);e:for(let a=0,i=0;;){let s=a==e.length?1e9:e[a++];for(;i<s||i==s&&0==o.len;){if(o.done)break e;let e=Math.min(o.len,s-i);eg(n,e,-1);let a=-1==o.ins?-1:0==o.off?o.ins:0;eg(t,e,a),a>0&&ev(r,t,o.text),o.forward(e),i+=e}let l=e[a++];for(;i<l;){if(o.done)break e;let e=Math.min(o.len,l-i);eg(t,e,-1),eg(n,e,-1==o.ins?-1:0==o.off?o.ins:0),o.forward(e),i+=e}}return{changes:new eO(t,r),filtered:em.create(n)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let r=this.sections[t],n=this.sections[t+1];n<0?e.push(r):0==n?e.push([r]):e.push([r].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,r){let n=[],o=[],a=0,i=null;function s(e=!1){if(!e&&!n.length)return;a<t&&eg(n,t-a,-1);let r=new eO(n,o);i=i?i.compose(r.map(i)):r,n=[],o=[],a=0}return!function e(l){if(Array.isArray(l))for(let t of l)e(t);else if(l instanceof eO){if(l.length!=t)throw RangeError(`Mismatched change set length (got ${l.length}, expected ${t})`);s(),i=i?i.compose(l.map(i)):l}else{let{from:e,to:i=e,insert:c}=l;if(e>i||e<0||i>t)throw RangeError(`Invalid change range ${e} to ${i} (in doc of length ${t})`);let u=c?"string"==typeof c?ee.of(c.split(r||ep)):c:ee.empty,d=u.length;if(e==i&&0==d)return;e<a&&s(),e>a&&eg(n,e-a,-1),eg(n,i-e,d),ev(o,n,u),a=i}}(e),s(!i),i}static empty(e){return new eO(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw RangeError("Invalid JSON representation of ChangeSet");let t=[],r=[];for(let n=0;n<e.length;n++){let o=e[n];if("number"==typeof o)t.push(o,-1);else if(!Array.isArray(o)||"number"!=typeof o[0]||o.some((e,t)=>t&&"string"!=typeof e))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==o.length)t.push(o[0],0);else{for(;r.length<n;)r.push(ee.empty);r[n]=ee.of(o.slice(1)),t.push(o[0],r[n].length)}}return new eO(t,r)}static createSet(e,t){return new eO(e,t)}}function eg(e,t,r,n=!1){if(0==t&&r<=0)return;let o=e.length-2;o>=0&&r<=0&&r==e[o+1]?e[o]+=t:o>=0&&0==t&&0==e[o]?e[o+1]+=r:n?(e[o]+=t,e[o+1]+=r):e.push(t,r)}function ev(e,t,r){if(0==r.length)return;let n=t.length-2>>1;if(n<e.length)e[e.length-1]=e[e.length-1].append(r);else{for(;e.length<n;)e.push(ee.empty);e.push(r)}}function ey(e,t,r){let n=e.inserted;for(let o=0,a=0,i=0;i<e.sections.length;){let s=e.sections[i++],l=e.sections[i++];if(l<0)o+=s,a+=s;else{let c=o,u=a,d=ee.empty;for(;c+=s,u+=l,l&&n&&(d=d.append(n[i-2>>1])),!r&&i!=e.sections.length&&!(e.sections[i+1]<0);)s=e.sections[i++],l=e.sections[i++];t(o,c,a,u,d),o=c,a=u}}}function eb(e,t,r,n=!1){let o=[],a=n?[]:null,i=new ex(e),s=new ex(t);for(let e=-1;;)if(i.done&&s.len||s.done&&i.len)throw Error("Mismatched change set lengths");else if(-1==i.ins&&-1==s.ins){let e=Math.min(i.len,s.len);eg(o,e,-1),i.forward(e),s.forward(e)}else if(s.ins>=0&&(i.ins<0||e==i.i||0==i.off&&(s.len<i.len||s.len==i.len&&!r))){let t=s.len;for(eg(o,s.ins,-1);t;){let r=Math.min(i.len,t);i.ins>=0&&e<i.i&&i.len<=r&&(eg(o,0,i.ins),a&&ev(a,o,i.text),e=i.i),i.forward(r),t-=r}s.next()}else if(i.ins>=0){let t=0,r=i.len;for(;r;)if(-1==s.ins){let e=Math.min(r,s.len);t+=e,r-=e,s.forward(e)}else if(0==s.ins&&s.len<r)r-=s.len,s.next();else break;eg(o,t,e<i.i?i.ins:0),a&&e<i.i&&ev(a,o,i.text),e=i.i,i.forward(i.len-r)}else if(i.done&&s.done)return a?eO.createSet(o,a):em.create(o);else throw Error("Mismatched change set lengths")}function eS(e,t,r=!1){let n=[],o=r?[]:null,a=new ex(e),i=new ex(t);for(let e=!1;;)if(a.done&&i.done)return o?eO.createSet(n,o):em.create(n);else if(0==a.ins)eg(n,a.len,0,e),a.next();else if(0!=i.len||i.done)if(a.done||i.done)throw Error("Mismatched change set lengths");else{let t=Math.min(a.len2,i.len),r=n.length;if(-1==a.ins){let r=-1==i.ins?-1:i.off?0:i.ins;eg(n,t,r,e),o&&r&&ev(o,n,i.text)}else -1==i.ins?(eg(n,a.off?0:a.len,t,e),o&&ev(o,n,a.textBit(t))):(eg(n,a.off?0:a.len,i.off?0:i.ins,e),o&&!i.off&&ev(o,n,i.text));e=(a.ins>t||i.ins>=0&&i.len>t)&&(e||n.length>r),a.forward2(t),i.forward(t)}else eg(n,0,i.ins,e),o&&ev(o,n,i.text),i.next()}class ex{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return -2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?ee.empty:e[t]}textBit(e){let{inserted:t}=this.set,r=this.i-2>>1;return r>=t.length&&!e?ee.empty:t[r].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}
3forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class ek{constructor(e,t,r,n){this.from=e,this.to=t,this.flags=r,this.goalColumn=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get undirectional(){return(64&this.flags)>0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}map(e,t=-1){let r,n;return this.empty?r=n=e.mapPos(this.from,t):(r=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),r==this.from&&n==this.to?this:new ek(r,n,this.flags,this.goalColumn)}extend(e,t=e,r=0){if(e<=this.anchor&&t>=this.anchor)return ew.range(e,t,void 0,void 0,r);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return ew.range(this.anchor,n,void 0,void 0,r)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw RangeError("Invalid JSON representation for SelectionRange");return ew.range(e.anchor,e.head)}static create(e,t,r,n){return new ek(e,t,r,n)}}class ew{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:ew.create(this.ranges.map(r=>r.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let r=0;r<this.ranges.length;r++)if(!this.ranges[r].eq(e.ranges[r],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new ew([this.main],0)}addRange(e,t=!0){return ew.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let r=this.ranges.slice();return r[t]=e,ew.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new ew(e.ranges.map(e=>ek.fromJSON(e)),e.main)}static single(e,t=e){return new ew([ew.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw RangeError("A selection needs at least one range");for(let r=0,n=0;n<e.length;n++){let o=e[n];if(o.empty?o.from<=r:o.from<r)return ew.normalized(e.slice(),t);r=o.to}return new ew(e,t)}static cursor(e,t=0,r,n){return ek.create(e,e,(0==t?0:t<0?8:16)|(null==r?7:Math.min(6,r)),n)}static range(e,t,r,n,o){let a=null==n?7:Math.min(6,n);return o||e==t||(o=t<e?1:-1),o&&(a|=o<0?8:16),t<e?ek.create(t,e,32|a,r):ek.create(e,t,a,r)}static undirectionalRange(e,t){return ek.create(e,t,64,void 0)}static normalized(e,t=0){let r=e[t];e.sort((e,t)=>e.from-t.from),t=e.indexOf(r);for(let r=1;r<e.length;r++){let n=e[r],o=e[r-1];if(n.empty?n.from<=o.to:n.from<o.to){let a=o.from,i=Math.max(n.to,o.to);r<=t&&t--,e.splice(--r,2,n.anchor>n.head?ew.range(i,a):ew.range(a,i))}}return new ew(e,t)}}function e$(e,t){for(let r of e.ranges)if(r.to>t)throw RangeError("Selection points outside of document")}let eP=0;class eQ{constructor(e,t,r,n,o){this.combine=e,this.compareInput=t,this.compare=r,this.isStatic=n,this.id=eP++,this.default=e([]),this.extensions="function"==typeof o?o(this):o}get reader(){return this}static define(e={}){return new eQ(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(!e.combine?eC:(e,t)=>e===t),!!e.static,e.enables)}of(e){return new eT([],this,0,e)}compute(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new eT(e,this,1,t)}computeN(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new eT(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],r=>t(r.field(e)))}}function eC(e,t){return e==t||e.length==t.length&&e.every((e,r)=>e===t[r])}class eT{constructor(e,t,r,n){this.dependencies=e,this.facet=t,this.type=r,this.value=n,this.id=eP++}dynamicSlot(e){var t;let r=this.value,n=this.facet.compareInput,o=this.id,a=e[o]>>1,i=2==this.type,s=!1,l=!1,c=[];for(let r of this.dependencies)"doc"==r?s=!0:"selection"==r?l=!0:((null!=(t=e[r.id])?t:1)&1)==0&&c.push(e[r.id]);return{create:e=>(e.values[a]=r(e),1),update(e,t){if(s&&t.docChanged||l&&(t.docChanged||t.selection)||eA(e,c)){let t=r(e);if(i?!eB(t,e.values[a],n):!n(t,e.values[a]))return e.values[a]=t,1}return 0},reconfigure:(e,t)=>
3{let s,l=t.config.address[o];if(null!=l){let o=eN(t,l);if(this.dependencies.every(r=>r instanceof eQ?t.facet(r)===e.facet(r):!(r instanceof eE)||t.field(r,!1)==e.field(r,!1))||(i?eB(s=r(e),o,n):n(s=r(e),o)))return e.values[a]=o,0}else s=r(e);return e.values[a]=s,1}}}get extension(){return this}}function eB(e,t,r){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1;return!0}function eA(e,t){let r=!1;for(let n of t)1&eq(e,n)&&(r=!0);return r}let eR=eQ.define({static:!0});class eE{constructor(e,t,r,n,o){this.id=e,this.createF=t,this.updateF=r,this.compareF=n,this.spec=o,this.provides=void 0}static define(e){let t=new eE(eP++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(eR).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,r)=>{let n=e.values[t],o=this.updateF(n,r);return this.compareF(n,o)?0:(e.values[t]=o,1)},reconfigure:(e,r)=>{let n=e.facet(eR),o=r.facet(eR),a;return(a=n.find(e=>e.field==this))&&a!=o.find(e=>e.field==this)?(e.values[t]=a.create(e),1):null!=r.config.address[this.id]?(e.values[t]=r.field(this),0):(e.values[t]=this.create(e),1)}}}init(e){return[this,eR.of({field:this,create:e})]}get extension(){return this}}function eV(e){return t=>new ej(t,e)}let eZ={highest:eV(0),high:eV(1),default:eV(2),low:eV(3),lowest:eV(4)};class ej{constructor(e,t){this.inner=e,this.prec=t}get extension(){return this}}class eX{of(e){return new e_(this,e)}reconfigure(e){return eX.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class e_{constructor(e,t){this.compartment=e,this.inner=t}get extension(){return this}}class eM{constructor(e,t,r,n,o,a){for(this.base=e,this.compartments=t,this.dynamicSlots=r,this.address=n,this.staticValues=o,this.facets=a,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,r){var n,o,a;let i,s,l=[],c=Object.create(null),u=new Map;for(let r of(n=e,o=t,a=u,i=[[],[],[],[],[]],s=new Map,!function e(t,r){let n=s.get(t);if(null!=n){if(n<=r)return;let e=i[n].indexOf(t);e>-1&&i[n].splice(e,1),t instanceof e_&&a.delete(t.compartment)}if(s.set(t,r),Array.isArray(t))for(let n of t)e(n,r);else if(t instanceof e_){if(a.has(t.compartment))throw RangeError("Duplicate use of compartment in extensions");let n=o.get(t.compartment)||t.inner;a.set(t.compartment,n),e(n,r)}else if(t instanceof ej)e(t.inner,t.prec);else if(t instanceof eE)i[r].push(t),t.provides&&e(t.provides,r);else if(t instanceof eT)i[r].push(t),t.facet.extensions&&e(t.facet.extensions,2);else{let n=t.extension;if(!n)throw Error(`Unrecognized extension value in extension set (${t}).`);if(n==t)throw Error(`Unrecognized extension value in extension set (${t}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(n,r)}}(n,2),i.reduce((e,t)=>e.concat(t))))r instanceof eE?l.push(r):(c[r.facet.id]||(c[r.facet.id]=[])).push(r);let d=Object.create(null),h=[],p=[];for(let e of l)d[e.id]=p.length<<1,p.push(t=>e.slot(t));let f=null==r?void 0:r.config.facets;for(let e in c){let t=c[e],n=t[0].facet,o=f&&f[e]||[];if(t.every(e=>0==e.type))if(d[n.id]=h.length<<1|1,eC(o,t))h.push(r.facet(n));else{let e=n.combine(t.map(e=>e.value));h.push(r&&n.compare(e,r.facet(n))?r.facet(n):e)}else{for(let e of t)0==e.type?(d[e.id]=h.length<<1|1,h.push(e.value)):(d[e.id]=p.length<<1,p.push(t=>e.dynamicSlot(t)));d[n.id]=p.length<<1,p.push(e=>(function(e,t,r){let n=r.map(t=>e[t.id]),o=r.map(e=>e.type),a=n.filter(e=>!(1&e)),i=e[t.id]>>1;function s(e){let r=[];for(let t=0;t<n.length;t++){let a=eN(e,n[t]);if(2==o[t])for(let e of a)r.push(e);else r.push(a)}return t.combine(r)}return{create(e){for(let t of n)eq(e,t);return e.values[i]=s(e),1},update(e,r){if(!eA(e,a))return 0;let n=s(e);return t.compare(n,e.values[i])?0:(e.values[i]=n,1)},reconfigure(e,o){let a=eA(e,n),l=o.config.facets[t.id],c=o.facet(t);if(l&&!a&&eC(r,l))return e.values[i]=c,0;let u=s(e);return t.compare(u,c)?(e.values[i]=c,0):(e.values[i]=u,1)}}})(e,n,t))}}return new eM(e,u,p.map(e=>e(d)),d,h,c)}}function eq(e,t){if(1&t)return 2;let r=t>>1,n=e.status[r];if(4==n)throw Error("Cyclic dependency between fields and/or facets");if(2&n)return n;e.status[r]=4;let o=e.computeSlot(e,e.config.dynamicSlots[r]);return e.status[r]=2|o}function eN(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}let eD=eQ.define(),eU=eQ.define({combine:e=>e.some(e=>e),static:!0}),ez=eQ.define({combine:e=>e.length?e[0]:void 0,static:!0}),eW=eQ.define(),eL=eQ.define(),eH=eQ.define(),eI=eQ.define({combine:e=>!!e.length&&e[0]});class eY{constructor(e,t){this.type=e,this.value=t}static define(){return new eG}}class eG{of(e){return new eY(this,e)}}class eF{constructor(e){this.map=e}of(e){return new eK(this,e)}}class eK{constructor(e,t){this.type=e,this.value=t}
vendor: 1,985 bytes, line 3
3map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new eK(this.type,t)}is(e){return this.type==e}static define(e={}){return new eF(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let r=[];for(let n of e){let e=n.map(t);e&&r.push(e)}return r}}eK.reconfigure=eK.define(),eK.appendConfig=eK.define();class eJ{constructor(e,t,r,n,o,a){this.startState=e,this.changes=t,this.selection=r,this.effects=n,this.annotations=o,this.scrollIntoView=a,this._doc=null,this._state=null,r&&e$(r,t.newLength),o.some(e=>e.type==eJ.time)||(this.annotations=o.concat(eJ.time.of(Date.now())))}static create(e,t,r,n,o,a){return new eJ(e,t,r,n,o,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(eJ.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function e0(e,t,r){var n;let o,a,i;return r?(o=t.changes,a=eO.empty(t.changes.length),i=e.changes.compose(t.changes)):(o=t.changes.map(e.changes),a=e.changes.mapDesc(t.changes,!0),i=e.changes.compose(o)),{changes:i,selection:t.selection?t.selection.map(a):null==(n=e.selection)?void 0:n.map(o),effects:eK.mapEffects(e.effects,o).concat(eK.mapEffects(t.effects,a)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function e1(e,t,r){let n=t.selection,o=e8(t.annotations);return t.userEvent&&(o=o.concat(eJ.userEvent.of(t.userEvent))),{changes:t.changes instanceof eO?t.changes:eO.of(t.changes||[],r,e.facet(ez)),selection:n&&(n instanceof ew?n:ew.single(n.anchor,
3n.head)),effects:e8(t.effects),annotations:o,scrollIntoView:!!t.scrollIntoView}}eJ.time=eY.define(),eJ.userEvent=eY.define(),eJ.addToHistory=eY.define(),eJ.remote=eY.define();let e2=[];function e8(e){return null==e?e2:Array.isArray(e)?e:[e]}var e5=((l=e5||(e5={}))[l.Word=0]="Word",l[l.Space=1]="Space",l[l.Other=2]="Other",l);let e4=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{t=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class e3{constructor(e,t,r,n,o,a){this.config=e,this.doc=t,this.selection=r,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=o,a&&(a._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)eq(this,e<<1);this.computeSlot=null}field(e,t=!0){let r=this.config.address[e.id];if(null==r){if(t)throw RangeError("Field is not present in this state");return}return eq(this,r),eN(this,r)}update(...e){return function e(t,r,n){let o=e1(t,r.length?r[0]:{},t.doc.length);r.length&&!1===r[0].filter&&(n=!1);for(let e=1;e<r.length;e++){!1===r[e].filter&&(n=!1);let a=!!r[e].sequential;o=e0(o,e1(t,r[e],a?o.changes.newLength:t.doc.length),a)}let a=eJ.create(t,o.changes,o.selection,o.effects,o.annotations,o.scrollIntoView);return function(e){let t=e.startState,r=t.facet(eH),n=e;for(let o=r.length-1;o>=0;o--){let a=r[o](e);a&&Object.keys(a).length&&(n=e0(n,e1(t,a,e.changes.newLength),!0))}return n==e?e:eJ.create(t,e.changes,e.selection,n.effects,n.annotations,n.scrollIntoView)}(n?function(t){let r=t.startState,n=!0;for(let e of r.facet(eW)){let r=e(t);if(!1===r){n=!1;break}Array.isArray(r)&&(n=!0===n?r:function(e,t){let r=[];for(let n=0,o=0;;){let a,i;if(n<e.length&&(o==t.length||t[o]>=e[n]))a=e[n++],i=e[n++];else{if(!(o<t.length))return r;a=t[o++],i=t[o++]}!r.length||r[r.length-1]<a?r.push(a,i):r[r.length-1]<i&&(r[r.length-1]=i)}}(n,r))}if(!0!==n){let e,o;if(!1===n)o=t.changes.invertedDesc,e=eO.empty(r.doc.length);else{let r=t.changes.filter(n);e=r.changes,o=r.filtered.mapDesc(r.changes).invertedDesc}t=eJ.create(r,e,t.selection&&t.selection.map(o),eK.mapEffects(t.effects,o),t.annotations,t.scrollIntoView)}let o=r.facet(eL);for(let n=o.length-1;n>=0;n--){let a=o[n](t);t=a instanceof eJ?a:Array.isArray(a)&&1==a.length&&a[0]instanceof eJ?a[0]:e(r,e8(a),!1)}return t}(a):a)}(this,e,!0)}applyTransaction(e){let t,r=this.config,{base:n,compartments:o}=r;for(let t of e.effects)t.is(eX.reconfigure)?(r&&(o=new Map,r.compartments.forEach((e,t)=>o.set(t,e)),r=null),o.set(t.value.compartment,t.value.extension)):t.is(eK.reconfigure)?(r=null,n=t.value):t.is(eK.appendConfig)&&(r=null,n=e8(n).concat(t.value));t=r?e.startState.values.slice():new e3(r=eM.resolve(n,o,this),this.doc,this.selection,r.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values;let a=e.startState.facet(eU)?e.newSelection:e.newSelection.asSingle();new e3(r,e.newDoc,a,t,(t,r)=>r.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:ew.cursor(t.from+e.length,-1)}))}changeByRange(e){let t=this.selection,r=e(t.ranges[0]),n=this.changes(r.changes),o=[r.range],a=e8(r.effects);for(let r=1;r<t.ranges.length;r++){let i=e(t.ranges[r]),s=this.changes(i.changes),l=s.map(n);for(let e=0;e<r;e++)o[e]=o[e].map(l);let c=n.mapDesc(s,!0);o.push(i.range.map(c)),n=n.compose(l),a=eK.mapEffects(a,l).concat(eK.mapEffects(e8(i.effects),c))}return{changes:n,selection:ew.create(o,t.mainIndex),effects:a}}changes(e=[]){return e instanceof eO?e:eO.of(e,this.doc.length,this.facet(e3.lineSeparator))}toText(e){return ee.of(e.split(this.facet(e3.lineSeparator)||ep))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(eq(this,t),eN(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let r in e){let n=e[r];n instanceof eE&&null!=this.config.address[n.id]&&(t[r]=n.spec.toJSON(this.field(e[r]),this))}return t}static fromJSON(e,t={},r){if(!e||"string"!=typeof e.doc)throw RangeError("Invalid JSON representation for EditorState");let n=[];if(r){for(let t in r)if(Object.prototype.hasOwnProperty.call(e,t)){let o=r[t],a=e[t];n.push(o.init(e=>o.spec.fromJSON(a,e)))}}return e3.create({doc:e.doc,selection:ew.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=eM.resolve(e.extensions||[],new Map),r=e.doc instanceof ee?e.doc:ee.of((e.doc||"").split(t.staticFacet(e3.lineSeparator)||ep)),n=e.selection?e.selection instanceof ew?e.selection:ew.single(e.selection.anchor,e.selection.head):ew.single(0);return e$(n,r.length),t.staticFacet(eU)||(n=n.asSingle()),new e3(t,r,n,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(e3.tabSize)}get lineBreak(){return this.facet(e3.lineSeparator)||"\n"}get readOnly(){return this.facet(eI)}phrase(e,...t){for(let t of this.facet(e3.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,r)=>{if("$"==r)return"$";let n=+(r||1);return!n||n>t.length?e:t[n-1]})),e}languageDataAt(e,t,r=-1){let n=[];for(let o of this.facet(eD))for(let a of o(this,t,r))Object.prototype.hasOwnProperty.call(a,e)&&n.push(a[e]);return n}charCategorizer(e){var r;let n=this.languageDataAt("wordChars",e);return r=n.length?n[0]:"",e=>
3{if(!/\S/.test(e))return e5.Space;if(function(e){if(t)return t.test(e);for(let t=0;t<e.length;t++){let r=e[t];if(/\w/.test(r)||r>"Â"&&(r.toUpperCase()!=r.toLowerCase()||e4.test(r)))return!0}return!1}(e))return e5.Word;for(let t=0;t<r.length;t++)if(e.indexOf(r[t])>-1)return e5.Word;return e5.Other}}wordAt(e){let{text:t,from:r,length:n}=this.doc.lineAt(e),o=this.charCategorizer(e),a=e-r,i=e-r;for(;a>0;){let e=ec(t,a,!1);if(o(t.slice(e,a))!=e5.Word)break;a=e}for(;i<n;){let e=ec(t,i);if(o(t.slice(i,e))!=e5.Word)break;i=e}return a==i?null:ew.range(a+r,i+r)}}function e6(e,t,r={}){let n={};for(let t of e)for(let e of Object.keys(t)){let o=t[e],a=n[e];if(void 0===a)n[e]=o;else if(a===o||void 0===o);else if(Object.hasOwnProperty.call(r,e))n[e]=r[e](a,o);else throw Error("Config merge conflict for field "+e)}for(let e in t)void 0===n[e]&&(n[e]=t[e]);return n}e3.allowMultipleSelections=eU,e3.tabSize=eQ.define({combine:e=>e.length?e[0]:4}),e3.lineSeparator=ez,e3.readOnly=eI,e3.phrases=eQ.define({compare(e,t){let r=Object.keys(e),n=Object.keys(t);return r.length==n.length&&r.every(r=>e[r]==t[r])}}),e3.languageData=eD,e3.changeFilter=eW,e3.transactionFilter=eL,e3.transactionExtender=eH,eX.reconfigure=eK.define();class e9{eq(e){return this==e}range(e,t=e){return te.create(e,t,this)}}function e7(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}e9.prototype.startSide=e9.prototype.endSide=0,e9.prototype.point=!1,e9.prototype.mapMode=ef.TrackDel;class te{constructor(e,t,r){this.from=e,this.to=t,this.value=r}static create(e,t,r){return new te(e,t,r)}}function tt(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class tr{constructor(e,t,r,n){this.from=e,this.to=t,this.value=r,this.maxPoint=n}get length(){return to(this.to)}findIndex(e,t,r,n=0){let o=r?this.to:this.from;for(let a=n,i=o.length;;){if(a==i)return a;let n=a+i>>1,s=o[n]-e||(r?this.value[n].endSide:this.value[n].startSide)-t;if(n==a)return s>=0?a:i;s>=0?i=n:a=n+1}}between(e,t,r,n){for(let o=this.findIndex(t,-1e9,!0),a=this.findIndex(r,1e9,!1,o);o<a;o++)if(!1===n(this.from[o]+e,this.to[o]+e,this.value[o]))return!1}map(e,t,r,n,o){let a=[],i=[],s=[],l=-1,c=-1;t:for(let u=0;u<this.value.length;u++){let d=this.value[u],h=this.from[u]+e,p=this.to[u]+e,f,m;if(h==p){let e=t.mapPos(h,d.startSide,d.mapMode);if(null==e||(f=m=e,d.startSide!=d.endSide&&(m=t.mapPos(h,d.endSide))<f))continue}else if((f=t.mapPos(h,d.startSide))>(m=t.mapPos(p,d.endSide))||f==m&&d.startSide>0&&d.endSide<=0)continue;if(!(0>(m-f||d.endSide-d.startSide)))if(l<0&&(l=f),d.point&&(c=Math.max(c,m-f)),(f-r||d.startSide-n)>=0)a.push(d),i.push(f-l),s.push(m-l),r=m,n=d.endSide;else{if(f==m)for(let e=a.length;e>0;e--){if((f-(s[e-1]+l)||d.startSide-a[e-1].endSide)>=0){a.splice(e,0,d),i.splice(e,0,f-l),s.splice(e,0,m-l);continue t}if((f-(i[e-1]+l)||d.endSide-a[e-1].startSide)>0)break}o(f,m,d)}}return{mapped:a.length?new tr(i,s,a,c):null,pos:l}}}class tn{constructor(e,t,r,n){this.chunkPos=e,this.chunk=t,this.nextLayer=r,this.maxPoint=n}static create(e,t,r,n){return new tn(e,t,r,n)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:r=!1,filterFrom:n=0,filterTo:o=this.length}=e,a=e.filter;if(0==t.length&&!a)return this;if(r&&(t=t.slice().sort(tt)),this.isEmpty)return t.length?tn.of(t):this;let i=new ts(this,null,-1).goto(0),s=0,l=[],c=new ta;for(;i.value||s<t.length;)if(s<t.length&&(i.from-t[s].from||i.startSide-t[s].value.startSide)>=0){let e=t[s++];c.addInner(e.from,e.to,e.value,!1)||l.push(e)}else 1==i.rangeIndex&&i.chunkIndex<this.chunk.length&&(s==t.length||this.chunkEnd(i.chunkIndex)<t[s].from)&&(!a||n>this.chunkEnd(i.chunkIndex)||o<this.chunkPos[i.chunkIndex])&&c.addChunk(this.chunkPos[i.chunkIndex],this.chunk[i.chunkIndex])?i.nextChunk():((!a||n>i.to||o<i.from||a(i.from,i.to,i.value))&&!c.addInner(i.from,i.to,i.value,!1)&&l.push(te.create(i.from,i.to,i.value)),i.next());return c.finishInner(this.nextLayer.isEmpty&&!l.length?tn.empty:this.nextLayer.update({add:l,filter:a,filterFrom:n,filterTo:o}))}map(e){let t;if(e.empty||this.isEmpty)return this;let r=[],n=[],o=-1,a=(e,r,n)=>{t||(t=new ta),t.addRange(e,r,n,!1)};for(let t=0;t<this.chunk.length;t++){let i=this.chunkPos[t],s=this.chunk[t],l=e.touchesRange(i,i+s.length);if(!1===l)o=Math.max(o,s.maxPoint),r.push(s),n.push(e.mapPos(i));else if(!0===l){let[t,l]=r.length?[to(n)+to(r).length,to(to(r).value).endSide]:[-1,-1],{mapped:c,pos:u}=s.map(i,e,t,l,a);c&&(o=Math.max(o,c.maxPoint),r.push(c),n.push(u))}}let i=this.nextLayer.map(e);
vendor: 7,304 bytes, line 3
3return t&&(i=t.finishInner(i)),0==r.length?i:new tn(n,r,i||tn.empty,o)}between(e,t,r){if(!this.isEmpty){for(let n=0;n<this.chunk.length;n++){let o=this.chunkPos[n],a=this.chunk[n];if(t>=o&&e<=o+a.length&&!1===a.between(o,e-o,t-o,r))return}this.nextLayer.between(e,t,r)}}iter(e=0){return tl.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return tl.from(e).goto(t)}static compare(e,t,r,n,o=-1){let a=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=o),i=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=o),s=ti(a,i,r),l=new tu(a,s,o),c=new tu(i,s,o);r.iterGaps((e,t,r)=>td(l,e,c,t,r,n)),r.empty&&0==r.length&&td(l,0,c,0,0,n)}static eq(e,t,r=0,n){null==n&&(n=0x3b9ac9ff);let o=e.filter(e=>!e.isEmpty&&0>t.indexOf(e)),a=t.filter(t=>!t.isEmpty&&0>e.indexOf(t));if(o.length!=a.length)return!1;if(!o.length)return!0;let i=ti(o,a),s=new tu(o,i,0).goto(r),l=new tu(a,i,0).goto(r);for(;;){if(s.to!=l.to||!th(s.active,l.active)||s.point&&(!l.point||!e7(s.point,l.point)))return!1;if(s.to>n)return!0;s.next(),l.next()}}static spans(e,t,r,n,o=-1){let a=new tu(e,null,o).goto(t),i=t,s=a.openStart;for(;;){let e=Math.min(a.to,r);if(a.point){let r=a.activeForPoint(a.to),o=a.pointFrom<t?r.length+1:a.point.startSide<0?r.length:Math.min(r.length,s);n.point(i,e,a.point,r,o,a.pointRank),s=Math.min(a.openEnd(e),r.length)}else e>i&&(n.span(i,e,a.active,s),s=a.openEnd(e));if(a.to>r)return s+(a.point&&a.to>r?1:0);i=a.to,a.next()}}static of(e,t=!1){let r=new ta;for(let n of e instanceof te?[e]:t?function(e){if(e.length>1)for(let t=e[0],r=1;r<e.length;r++){let n=e[r];if(tt(t,n)>0)return e.slice().sort(tt);t=n}return e}(e):e)r.add(n.from,n.to,n.value);return r.finish()}static join(e){if(!e.length)return tn.empty;let t=to(e);for(let r=e.length-2;r>=0;r--)for(let n=e[r];n!=tn.empty;n=n.nextLayer)t=new tn(n.chunkPos,n.chunk,t,Math.max(n.maxPoint,t.maxPoint));return t}}function to(e){return e[e.length-1]}tn.empty=new tn([],[],null,-1),tn.empty.nextLayer=tn.empty;class ta{finishChunk(e){this.chunks.push(new tr(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,r){this.addRange(e,t,r,!0)}addRange(e,t,r,n){this.addInner(e,t,r,n)||(this.nextLayer||(this.nextLayer=new ta)).addRange(e,t,r,n)}addInner(e,t,r,n){let o=e-this.lastTo||r.startSide-this.last.endSide;if(n&&o<=0&&0>(e-this.lastFrom||r.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(o<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=r,this.lastFrom=e,this.lastTo=t,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if(0>(e-this.lastTo||t.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let r=t.value.length-1;return this.last=t.value[r],this.lastFrom=t.from[r]+e,this.lastTo=t.to[r]+e,!0}finish(){return this.finishInner(tn.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=tn.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function ti(e,t,r){let n=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&n.set(t.chunk[e],t.chunkPos[e]);let o=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let a=n.get(e.chunk[t]);null==a||(r?r.mapPos(a):a)!=e.chunkPos[t]||(null==r?void 0:r.touchesRange(a,a+e.chunk[t].length))||o.add(e.chunk[t])}return o}class ts{constructor(e,t,r,n=0){this.layer=e,this.skip=t,this.minPoint=r,this.rank=n}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,r){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,r=!1}if(this.chunkIndex<this.layer.chunk.length){let n=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!r||this.rangeIndex<n)&&this.setRangeIndex(n)}this.next()}forward(e,t){0>(this.to-e||this.endSide-t)&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],r=e+t.from[this.rangeIndex];if(this.from=r,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class tl{constructor(e){this.heap=e}static from(e,t=null,r=-1){let n=[];for(let o=0;o<e.length;o++)for(let a=e[o];!a.isEmpty;a=a.nextLayer)a.maxPoint>=r&&n.push(new ts(a,t,r,o));return 1==n.length?n[0]:new tl(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let r of this.heap)r.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)tc(this.heap,e);return this.next(),this}forward(e,t){for(let r of this.heap)r.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)tc(this.heap,e);0>(this.to-e||this.value.endSide-t)&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),tc(this.heap,0)}}}function tc(e,t){for(let r=e[t];;){let n=(t<<1)+1;if(n>=e.length)break;let o=e[n];if(n+1<e.length&&o.compare(e[n+1])>=0&&(o=e[n+1],n++),0>r.compare(o))break;e[n]=r,e[t]=o,t=n}}class tu{constructor(e,t,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=tl.from(e,t,r)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t);)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){tp(this.active,e),tp(this.activeTo,e),tp(this.activeRank,e),this.minActive=tm(this.active,this.activeTo)}
3addActive(e){let t=0,{value:r,to:n,rank:o}=this.cursor;for(;t<this.activeRank.length&&(o-this.activeRank[t]||n-this.activeTo[t])>0;)t++;tf(this.active,t,r),tf(this.activeTo,t,n),tf(this.activeRank,t,o),e&&tf(e,t,this.cursor.from),this.minActive=tm(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&0>(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)){if(this.activeTo[n]>e){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),r&&tp(r,n)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let e=this.cursor.value;if(e.point)if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}else this.addActive(r),this.cursor.next()}else{this.to=this.endSide=1e9;break}}if(r){this.openStart=0;for(let t=r.length-1;t>=0&&r[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let r=this.active.length-1;r>=0&&!(this.activeRank[r]<this.pointRank);r--)(this.activeTo[r]>e||this.activeTo[r]==e&&this.active[r].endSide>=this.point.endSide)&&t.push(this.active[r]);return t.reverse()}openEnd(e){let t=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>e;r--)t++;return t}}function td(e,t,r,n,o,a){e.goto(t),r.goto(n);let i=n+o,s=n,l=n-t,c=!!a.boundChange;for(let t=!1;;){let n=e.to+l-r.to,o=n||e.endSide-r.endSide,u=o<0?e.to+l:r.to,d=Math.min(u,i);if(e.point||r.point?(e.point&&r.point&&e7(e.point,r.point)&&th(e.activeForPoint(e.to),r.activeForPoint(r.to))||a.comparePoint(s,d,e.point,r.point),t=!1):(t&&(a.boundChange(s),t=!1),d>s&&!th(e.active,r.active)&&a.compareRange(s,d,e.active,r.active),c&&d<i&&(n||e.openEnd(u)!=r.openEnd(u))&&(t=!0)),u>i)break;s=u,o<=0&&e.next(),o>=0&&r.next()}}function th(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=t[r]&&!e7(e[r],t[r]))return!1;return!0}function tp(e,t){for(let r=t,n=e.length-1;r<n;r++)e[r]=e[r+1];e.pop()}function tf(e,t,r){for(let r=e.length-1;r>=t;r--)e[r+1]=e[r];e[t]=r}function tm(e,t){let r=-1,n=1e9;for(let o=0;o<t.length;o++)0>(t[o]-n||e[o].endSide-e[r].endSide)&&(r=o,n=t[o]);return r}function tO(e,t,r=e.length){let n=0;for(let o=0;o<r&&o<e.length;)9==e.charCodeAt(o)?(n+=t-n%t,o++):(n++,o=ec(e,o));return n}let tg="u"<typeof Symbol?"__ͼ":Symbol.for("ͼ"),tv="u"<typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),ty="u">typeof globalThis?globalThis:"u">typeof window?window:{};class tb{constructor(e,t){this.rules=[];let{finish:r}=t||{};function n(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}for(let t in e)!function e(t,o,a,i){let s=[],l=/^@(\w+)\b/.exec(t[0]),c=l&&"keyframes"==l[1];if(l&&null==o)return a.push(t[0]+";");for(let r in o){let i=o[r];if(/&/.test(r))e(r.split(/,\s*/).map(e=>t.map(t=>e.replace(/&/,t))).reduce((e,t)=>e.concat(t)),i,a);else if(i&&"object"==typeof i){if(!l)throw RangeError("The value of a property ("+r+") should be a primitive value.");e(n(r),i,s,c)}else null!=i&&s.push(r.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+i+";")}(s.length||c)&&a.push((r&&!l&&!i?t.map(r):t).join(", ")+" {"+s.join(" ")+"}")}(n(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=ty[tg]||1;return ty[tg]=e+1,"ͼ"+e.toString(36)}static mount(e,t,r){let n=e[tv],o=r&&r.nonce;n?o&&n.setNonce(o):n=new tx(e,o),n.mount(Array.isArray(t)?t:[t],e)}}let tS=new Map;class tx{constructor(e,t){let r=e.ownerDocument||e,n=r.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){let t=tS.get(r);if(t)return e[tv]=t;this.sheet=new n.CSSStyleSheet,tS.set(r,this)}else this.styleTag=r.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[tv]=this}mount(e,t){let r=this.sheet,n=0,o=0,a=!1;for(let t=0;t<e.length;t++){let i=e[t],s=this.modules.indexOf(i);if(s<o&&s>-1&&(this.modules.splice(s,1),a=!0,o--,s=-1),-1==s){if(this.modules.splice(o++,0,i),a=!0,r)for(let e=0;e<i.rules.length;e++)r.insertRule(i.rules[e],n++)}else{for(;o<s;)n+=this.modules[o++].rules.length;n+=i.rules.length,o++}}if(r)0>t.adoptedStyleSheets.indexOf(this.sheet)&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{if(a){let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e}let e=t.head||t;this.styleTag.parentNode!=e&&e.insertBefore(this.styleTag,e.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}for(var tk={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},tw={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},t$="u">typeof navigator&&/Mac/.test(navigator.platform),tP="u">typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),tQ=0;tQ<10;
3tQ++)tk[48+tQ]=tk[96+tQ]=String(tQ);for(var tQ=1;tQ<=24;tQ++)tk[tQ+111]="F"+tQ;for(var tQ=65;tQ<=90;tQ++)tk[tQ]=String.fromCharCode(tQ+32),tw[tQ]=String.fromCharCode(tQ);for(var tC in tk)tw.hasOwnProperty(tC)||(tw[tC]=tk[tC]);function tT(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,r=arguments[1];if(r&&"object"==typeof r&&null==r.nodeType&&!Array.isArray(r)){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var o=r[n];"string"==typeof o?e.setAttribute(n,o):null!=o&&(e[n]=o)}t++}for(;t<arguments.length;t++)!function e(t,r){if("string"==typeof r)t.appendChild(document.createTextNode(r));else if(null==r);else if(null!=r.nodeType)t.appendChild(r);else if(Array.isArray(r))for(var n=0;n<r.length;n++)e(t,r[n]);else throw RangeError("Unsupported child node: "+r)}(e,arguments[t]);return e}let tB="u">typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},tA="u">typeof document?document:{documentElement:{style:{}}},tR=/Edge\/(\d+)/.exec(tB.userAgent),tE=/MSIE \d/.test(tB.userAgent),tV=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(tB.userAgent),tZ=!!(tE||tV||tR),tj=!tZ&&/gecko\/(\d+)/i.test(tB.userAgent),tX=!tZ&&/Chrome\/(\d+)/.exec(tB.userAgent),t_="webkitFontSmoothing"in tA.documentElement.style,tM=!tZ&&/Apple Computer/.test(tB.vendor),tq=tM&&(/Mobile\/\w+/.test(tB.userAgent)||tB.maxTouchPoints>2);var tN={mac:tq||/Mac/.test(tB.platform),windows:/Win/.test(tB.platform),linux:/Linux|X11/.test(tB.platform),ie:tZ,ie_version:tE?tA.documentMode||6:tV?+tV[1]:tR?+tR[1]:0,gecko:tj,gecko_version:tj?+(/Firefox\/(\d+)/.exec(tB.userAgent)||[0,0])[1]:0,chrome:!!tX,chrome_version:tX?+tX[1]:0,ios:tq,android:/Android\b/.test(tB.userAgent),webkit:t_,webkit_version:t_?+(/\bAppleWebKit\/(\d+)/.exec(tB.userAgent)||[0,0])[1]:0,safari:tM,safari_version:tM?+(/\bVersion\/(\d+(\.\d+)?)/.exec(tB.userAgent)||[0,0])[1]:0,tabSize:null!=tA.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};function tD(e,t){for(let r in e)"class"==r&&t.class?t.class+=" "+e.class:"style"==r&&t.style?t.style+=";"+e.style:t[r]=e[r];return t}let tU=Object.create(null);function tz(e,t,r){if(e==t)return!0;e||(e=tU),t||(t=tU);let n=Object.keys(e),o=Object.keys(t);if(n.length-(r&&n.indexOf(r)>-1?1:0)!=o.length-(r&&o.indexOf(r)>-1?1:0))return!1;for(let a of n)if(a!=r&&(-1==o.indexOf(a)||e[a]!==t[a]))return!1;return!0}function tW(e,t,r){let n=!1;if(t)for(let o in t)r&&o in r||(n=!0,"style"==o?e.style.cssText="":e.removeAttribute(o));if(r)for(let o in r)t&&t[o]==r[o]||(n=!0,"style"==o?e.style.cssText=r[o
3]:e.setAttribute(o,r[o]));return n}class tL{eq(e){return!1}updateDOM(e,t,r){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return -1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var tH=((c=tH||(tH={}))[c.Text=0]="Text",c[c.WidgetBefore=1]="WidgetBefore",c[c.WidgetAfter=2]="WidgetAfter",c[c.WidgetRange=3]="WidgetRange",c);class tI extends e9{constructor(e,t,r,n){super(),this.startSide=e,this.endSide=t,this.widget=r,this.spec=n}get heightRelevant(){return!1}static mark(e){return new tY(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),r=!!e.block;return t+=r&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new tF(e,t,t,r,e.widget||null,!1)}static replace(e){let t=!!e.block,r,n;if(e.isBlockGap)r=-5e8,n=4e8;else{let{start:o,end:a}=tK(e,t);r=(o?t?-3e8:-1:5e8)-1,n=(a?t?2e8:1:-6e8)+1}return new tF(e,r,n,t,e.widget||null,!0)}static line(e){return new tG(e)}static set(e,t=!1){return tn.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}tI.none=tn.empty;class tY extends tI{constructor(e){let{start:t,end:r}=tK(e);super(t?-1:5e8,r?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?tD(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||tU}eq(e){return this==e||e instanceof tY&&this.tagName==e.tagName&&tz(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw RangeError("Mark decorations may not be empty");return super.range(e,t)}}tY.prototype.point=!1;class tG extends tI{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof tG&&this.spec.class==e.spec.class&&tz(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}tG.prototype.mapMode=ef.TrackBefore,tG.prototype.point=!0;class tF extends tI{constructor(e,t,r,n,o,a){super(t,r,o,e),this.block=n,this.isReplace=a,this.mapMode=n?t<=0?ef.TrackBefore:ef.TrackAfter:ef.TrackDel}get type(){return this.startSide!=this.endSide?tH.WidgetRange:this.startSide<=0?tH.WidgetBefore:tH.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){var t,r;return e instanceof tF&&(t=this.widget,t==(r=e.widget)||!!(t&&r&&t.compare(r)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function tK(e,t=!1){let{inclusiveStart:r,inclusiveEnd:n}=e;return null==r&&(r=e.inclusive),null==n&&(n=e.inclusive),{start:null!=r?r:t,end:null!=n?n:t}}function tJ(e,t,r,n=0){let o=r.length-1;o>=0&&r[o]+n>=e?r[o]=Math.max(r[o],t):r.push(e,t)}tF.prototype.point=!0;class t0 extends e9{constructor(e,t,r){super(),this.tagName=e,this.attributes=t,this.rank=r}eq(e){return e==this||e instanceof t0&&this.tagName==e.tagName&&tz(this.attributes,e.attributes)}static create(e){return new t0(e.tagName,e.attributes||tU,null==e.rank?50:Math.max(0,Math.min(e.rank,100)))}static set(e,t=!1){return tn.of(e,t)}}function t1(e){return(11==e.nodeType?e.getSelection?e:e.ownerDocument:e).getSelection()}function t2(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function t8(e,t){if(!t.anchorNode)return!1;try{return t2(e,t.anchorNode)}catch(e){return!1}}function t5(e){return 3==e.nodeType?rl(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function t4(e,t,r,n){return!!r&&(t9(e,t,r,n,-1)||t9(e,t,r,n,1))}function t3(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function t6(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function t9(e,t,r,n,o){for(;;){if(e==r&&t==n)return!0;if(t==(o<0?0:t7(e))){if("DIV"==e.nodeName)return!1;let r=e.parentNode;if(!r||1!=r.nodeType)return!1;t=t3(e)+(o<0?0:1),e=r}
3else{if(1!=e.nodeType||1==(e=e.childNodes[t+(o<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=o<0?t7(e):0}}}function t7(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function re(e,t){let{left:r,right:n}=e;if(r==n)return e;let o=t?r:n;return{left:o,right:o,top:e.top,bottom:e.bottom}}function rt(e,t){let r=t.width/e.offsetWidth,n=t.height/e.offsetHeight;return(r>.995&&r<1.005||!isFinite(r)||1>Math.abs(t.width-e.offsetWidth))&&(r=1),(n>.995&&n<1.005||!isFinite(n)||1>Math.abs(t.height-e.offsetHeight))&&(n=1),{scaleX:r,scaleY:n}}function rr(e,t=!0){let r=e.ownerDocument,n=null,o=null;for(let a=e.parentNode;a;)if(a==r.body||(!t||n)&&o)break;else if(1==a.nodeType)!o&&a.scrollHeight>a.clientHeight&&(o=a),t&&!n&&a.scrollWidth>a.clientWidth&&(n=a),a=a.assignedSlot||a.parentNode;else if(11==a.nodeType)a=a.host;else break;return{x:n,y:o}}t0.prototype.startSide=t0.prototype.endSide=-1;class rn{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:r}=e;this.set(t,Math.min(e.anchorOffset,t?t7(t):0),r,Math.min(e.focusOffset,r?t7(r):0))}set(e,t,r,n){this.anchorNode=e,this.anchorOffset=t,this.focusNode=r,this.focusOffset=n}}function ro(e){let t=[];for(let r=e;r;r=11==r.nodeType?r.host:r.parentNode)1==r.nodeType&&t.push({node:r,left:r.scrollLeft,top:r.scrollTop});return t}function ra(e,t=!0){for(let{node:r,left:n,top:o}of e)t&&r.scrollTop!=o&&(r.scrollTop=o),r.scrollLeft!=n&&(r.scrollLeft=n)}let ri=null;function rs(e){if(e.setActive)return e.setActive();if(ri)return e.focus(ri);let t=ro(e);e.focus(null==ri?{get preventScroll(){return ri={preventScroll:!0},!0}}:void 0),ri||(ri=!1,ra(t))}function rl(e,t,n=t){let o=r||(r=document.createRange());return o.setEnd(e,n),o.setStart(e,t),o}function rc(e,t,r,n){let o={key:t,code:t,keyCode:r,which:r,cancelable:!0};n&&({altKey:o.altKey,ctrlKey:o.ctrlKey,shiftKey:o.shiftKey,metaKey:o.metaKey}=n);let a=new KeyboardEvent("keydown",o);a.synthetic=!0,e.dispatchEvent(a);let i=new KeyboardEvent("keyup",o);return i.synthetic=!0,e.dispatchEvent(i),a.defaultPrevented||i.defaultPrevented}function ru(e){return e instanceof Window?e.pageYOffset>Math.max(0,e.document.documentElement.scrollHeight-e.innerHeight-4):e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function rd(e,t){for(let r=e,n=t;;)if(3==r.nodeType&&n>0)return{node:r,offset:n};else if(1==r.nodeType&&n>0){if("false"==r.contentEditable)return null;n=t7(r=r.childNodes[n-1])}else{if(!r.parentNode||t6(r))return null;n=t3(r),r=r.parentNode}}function rh(e,t){for(let r=e,n=t;;)if(3==r.nodeType&&n<r.nodeValue.length)return{node:r,offset:n};else if(1==r.nodeType&&n<r.childNodes.length){if("false"==r.contentEditable)return null;r=r.childNodes[n],n=0}else{if(!r.parentNode||t6(r))return null;n=t3(r)+1,r=r.parentNode}}tN.safari&&tN.safari_version>=26&&(ri=!1);class rp{constructor(e,t,r=!0){this.node=e,this.offset=t,this.precise=r}static before(e,t){return new rp(e.parentNode,t3(e),t)}static after(e,t){return new rp(e.parentNode,t3(e)+1,t)}}var rf=((u=rf||(rf={}))[u.LTR=0]="LTR",u[u.RTL=1]="RTL",u);let rm=rf.LTR,rO=rf.RTL;function rg(e){let t=[];for(let r=0;r<e.length;r++)t.push(1<<e[r]);return t}let rv=rg("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),ry=rg("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),rb=Object.create(null),rS=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),r=e.charCodeAt(1);rb[t]=r,rb[r]=-t}function rx(e){return e<=247?rv[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?ry[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}let rk=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class rw{get dir(){return this.level%2?rO:rm}constructor(e,t,r){this.from=e,this.to=t,this.level=r}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,r,n){let o=-1;for(let a=0;a<e.length;a++){let i=e[a];if(i.from<=t&&i.to>=t){if(i.level==r)return a;(o<0||(0!=n?n<0?i.from<t:i.to>t:e[o].level>i.level))&&(o=a)}}if(o<0)throw RangeError("Index out of range");return o}}let r$=[];function rP(e){return[new rw(0,e,0)]}let rQ="",rC=eQ.define(),rT=eQ.define(),rB=eQ.define(),rA=eQ.define(),rR=eQ.define(),rE=eQ.define(),rV=eQ.define(),rZ=eQ.define(),rj=eQ.define(),rX=eQ.define({combine:e=>e.some(e=>e)}),r_=eQ.define({combine:e=>e.some(e=>e)}),rM=eQ.define();class rq{constructor(e,t,r,n,o,a=!1){this.range=e,this.y=t,this.x=r,this.yMargin=n,this.xMargin=o,this.isSnapshot=a}map(e){return e.empty?this:new rq(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new rq(ew.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}let rN=eK.define({map:(e,t)=>e.map(t)}),rD=eK.define();function rU(e,t,r){let n=e.facet(rA);
vendor: 10,804 bytes, line 3
3n.length?n[0](t):window.onerror&&window.onerror(String(t),r,void 0,void 0,t)||(r?console.error(r+":",t):console.error(t))}let rz=eQ.define({combine:e=>!e.length||e[0]}),rW=0,rL=eQ.define({combine:e=>e.filter((t,r)=>{for(let n=0;n<r;n++)if(e[n].plugin==t.plugin)return!1;return!0})});class rH{constructor(e,t,r,n,o){this.id=e,this.create=t,this.domEventHandlers=r,this.domEventObservers=n,this.baseExtensions=o(this),this.extension=this.baseExtensions.concat(rL.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(rL.of({plugin:this,arg:e}))}static define(e,t){let{eventHandlers:r,eventObservers:n,provide:o,decorations:a}=t||{};return new rH(rW++,e,r,n,e=>{let t=[];return a&&t.push(rF.of(t=>{let r=t.plugin(e);return r?a(r):tI.none})),o&&t.push(o(e)),t})}static fromClass(e,t){return rH.define((t,r)=>new e(t,r),t)}}class rI{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(rU(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){rU(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null==(t=this.value)?void 0:t.destroy)try{this.value.destroy()}catch(t){rU(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}let rY=eQ.define(),rG=eQ.define(),rF=eQ.define(),rK=eQ.define(),rJ=eQ.define(),r0=eQ.define(),r1=eQ.define();function r2(e,t){let r=e.state.facet(r1);if(!r.length)return r;let n=r.map(t=>t instanceof Function?t(e):t),o=[];return tn.spans(n,t.from,t.to,{point(){},span(e,r,n,a){let i=e-t.from,s=r-t.from,l=o;for(let e=n.length-1;e>=0;e--,a--){let r=n[e].spec.bidiIsolate,o;if(null==r&&(r=function(e,t,r){for(let n=t;n<r;n++){let t=rx(e.charCodeAt(n));if(1==t)break;if(2==t||4==t)return rO}return rm}(t.text,i,s)),a>0&&l.length&&(o=l[l.length-1]).to==i&&o.direction==r)o.to=s,l=o.inner;else{let e={from:i,to:s,direction:r,inner:[]};l.push(e),l=e.inner}}}}),o}let r8=eQ.define();function r5(e){let t=0,r=0,n=0,o=0;for(let a of e.state.facet(r8)){let i=a(e);i&&(null!=i.left&&(t=Math.max(t,i.left)),null!=i.right&&(r=Math.max(r,i.right)),null!=i.top&&(n=Math.max(n,i.top)),null!=i.bottom&&(o=Math.max(o,i.bottom)))}return{left:t,right:r,top:n,bottom:o}}let r4=eQ.define();class r3{constructor(e,t,r,n){this.fromA=e,this.toA=t,this.fromB=r,this.toB=n}join(e){return new r3(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,r=this;for(;t>0;t--){let n=e[t-1];if(!(n.fromA>r.toA)){if(n.toA<r.fromA)break;r=r.join(n),e.splice(t-1,1)}}return e.splice(t,0,r),e}static extendWithRanges(e,t){if(0==t.length)return e;let r=[];for(let n=0,o=0,a=0;;){let i=Math.min(n<e.length?e[n].fromB:1e9,o<t.length?t[o]:1e9);if(1e9==i)break;let s=i+a,l=i,c=s;for(;;)if(o<t.length&&t[o]<=l){let r=t[o+1];o+=2,l=Math.max(l,r);for(let t=n;t<e.length&&e[t].fromB<=l;t++)a=e[t].toA-e[t].toB;c=Math.max(c,r+a)}else if(n<e.length&&e[n].fromB<=l){let t=e[n++];l=Math.max(l,t.toB),c=Math.max(c,t.toA),a=t.toA-t.toB}else break;r.push(new r3(s,c,i,l))}return r}}class r6{constructor(e,t,r){for(let n of(this.view=e,this.state=t,this.transactions=r,this.flags=0,this.startState=e.state,this.changes=eO.empty(this.startState.doc.length),r))this.changes=this.changes.compose(n.changes);let n=[];this.changes.iterChangedRanges((e,t,r,o)=>n.push(new r3(e,t,r,o))),this.changedRanges=n}static create(e,t,r){return new r6(e,t,r)}get viewportChanged(){return(4&this.flags)>0}get viewportMoved(){return(8&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(18&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}let r9=[];class r7{constructor(e,t,r=0){this.dom=e,this.length=t,this.flags=r,this.parent=null,e.cmTile=this}get breakAfter(){return 1&this.flags}get children(){return r9}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,4&this.flags){this.flags&=-5;let e=this.domAttrs;e&&function(e,t){for(let r=e.attributes.length-1;r>=0;r--){let n=e.attributes[r].name;null==t[n]&&e.removeAttribute(n)}for(let r in t){let n=t[r];"style"==r?e.style.cssText=n:e.getAttribute(r)!=n&&e.setAttribute(r,n)}}(this.dom,e)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let r=t;for(let t of this.children){if(t==e)return r;r+=t.length+t.breakAfter}throw RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,t,r){return null}domPosFor(e,t){let r=t3(this.dom),n=this.length?e>0:t>0;return new rp(this.parent.dom,r+ +!!n,0==e||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&2&this.parent.flags&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof nr)return e;return null}static get(e){return e.cmTile}}class ne extends r7{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(2&this.flags)return;super.sync(e);let t=this.dom,r=null,n,o=(null==e?void 0:e.node)==t?e:null,a=0;for(let i of this.children){if(i.sync(e),a+=i.length+i.breakAfter,n=r?r.nextSibling:t.firstChild,o&&n!=i.dom&&(o.written=!0),i.dom.parentNode==t)for(;n&&n!=i.dom;)n=nt(n);else t.insertBefore(i.dom,n);r=i.dom}for(n=r?r.nextSibling:t.firstChild,o&&n&&(o.written=!0);n;)n=nt(n);this.length=a}}function nt(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class nr extends ne{constructor(e,t){super(t),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let t=r7.get(e);if(t&&this.owns(t))return t;e=e.parentNode}}blockTiles(e){for(let t=[],r=this,n=0,o=0;;)if(n==r.children.length){if(!t.length)return;(r=r.parent).breakAfter&&o++,n=t.pop()}else{let a=r.children[n++];if(a instanceof nn)t.push(n),r=a,n=0;else{let t=o+a.length,r=e(a,o);if(void 0!==r)return r;o=t+a.breakAfter}}}resolveBlock(e,t){let r,n=-1,o,a=-1;if(this.blockTiles((i,s)=>{let l=s+i.length;if(e>=s&&e<=l){if(i.isWidget()&&t>=-1&&t<=1){if(32&i.flags)return!0;16&i.flags&&(r=void 0)}(s<e||e==l&&(t<-1?i.length:i.covers(1)))&&(!r||!i.isWidget()&&r.isWidget())&&(r=i,n=e-s),(l>e||e==s&&(t>1?i.length:i.covers(-1)))&&(!o||!i.isWidget()&&o.isWidget())&&(o=i,a=e-s)}}),!r&&!o)throw Error("No tile at position "+e);return r&&t<0||!o?{tile:r,offset:n}:{tile:o,offset:a}}}class nn extends ne{constructor(e,t){super(e),this.wrapper=t}isBlock(){return!0}covers(e){return!!this.children.length&&(e<0?this.children[0].covers(-1):this.lastChild.covers(1))}get domAttrs(){return this.wrapper.attributes}static of(e,t){let r=new nn(t||document.createElement(e.tagName),e);return t||(r.flags|=4),r}}class no extends ne{constructor(e,t){super(e),this.attrs=t}isLine(){return!0}static start(e,t,r){let n=new no(t||document.createElement("div"),e);return t&&r||(n.flags|=4),n}get domAttrs(){return this.attrs}resolveInline(e,t,r){let n=null,o=-1,a=null,i=-1;!function e(s,l){for(let c=0,u=0;c<s.children.length&&u<=l;c++){let d=s.children[c],h=u+d.length;h>=l&&(d.isComposite()?e(d,l-u):(!a||a.isHidden&&(t>0&&!(32&a.flags)||r&&function(e,t){let r=e.coordsIn(0,1),n=t.coordsIn(0,1);return r&&n&&n.top<r.bottom}(a,d)))&&(h>l||32&d.flags&&t<=1)?(a=d,i=l-u):(u<l||16&d.flags&&!d.isHidden&&t>=-1)&&(n=d,o=l-u)),u=h}}(this,e);let s=(t<0?n:a)||n||a;return s?{tile:s,offset:s==n?o:i}:null}coordsIn(e,t,r){let n=this.resolveInline(e,t,!0);return n?n.tile.coordsIn(Math.max(0,n.offset),t,r):function(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let r=t5(t);return r[r.length-1]||null}(this)}domIn(e,t){let r=this.resolveInline(e,t);if(r){let{tile:e,offset:n}=r;if(this.dom.contains(e.dom))return e.isText()?new rp(e.dom,Math.min(e.dom.nodeValue.length,n)):e.domPosFor(n,16&e.flags?1:32&e.flags?-1:t);let o=r.tile.parent,a=!1;for(let e of o.children){if(a)return new rp(e.dom,0);e==r.tile&&(a=!0)}}return new rp(this.dom,0)}}class na extends ne{constructor(e,t){super(e),this.mark=t}get domAttrs(){return this.mark.attrs}static of(e,t){let r=new na(t||document.createElement(e.tagName),e);return t||(r.flags|=4),r}}class ni extends r7{constructor(e,t){super(e,t.length),this.text=t}sync(e){2&this.flags||(super.sync(e),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(e,t,r){let n=this.dom.nodeValue.length;e>n&&(e=n);let o=e,a=e,i=0;0==e&&t<0||e==n&&t>=0?!(tN.chrome||tN.gecko)&&(e?(o--,i=1):a<n&&(a++,i=-1)):t<0?o--:a<n&&a++;let s=rl(this.dom,o,a).getClientRects();if(!s.length)return null;let l=s[(i?i<0:t>=0)?0:s.length-1];return tN.safari&&!i&&0==l.width&&(l=Array.prototype.find.call(s,e=>e.width)||l),null==r?l:re(l,(i?i>0:t<0)==r)}static of(e,t){let r=new ni(t||document.createTextNode(e),e);return t||(r.flags|=2),r}}class ns extends r7{constructor(e,t,r,n){super(e,t,n),this.widget=r}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return!(48&this.flags)&&(this.flags&(e<0?64:128))>0}coordsIn(e,t){return this.coordsInWidget(e,t,!1)}coordsInWidget(e,t,r){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;if(r)return re(this.dom.getBoundingClientRect(),this.length?0==e:t<=0);{let t=this.dom.getClientRects(),r=null;if(!t.length)return null;let n=!!(16&this.flags)||!(32&this.flags)&&e>0;for(let o=n?t.length-1:0;r=t[o],e>0?0!=o:o!=t.length-1&&!(r.top<r.bottom);o+=n?-1:1);return re(r,!n)}}get overrideDOMText(){if(!this.length)return ee.empty;let{root:e}=this;if(!e)return ee.empty;let t=this.posAtStart;return e.view.state.doc.slice(t,t+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(e,t,r,n,o){return!o&&(o=e.toDOM(t),e.editable||(o.contentEditable="false")),new ns(o,r,e,n)}}class nl extends r7{constructor(e){let t=document.createElement("img");
3t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),super(t,0,e)}get isHidden(){return!0}get overrideDOMText(){return ee.empty}coordsIn(e,t,r){let n=this.dom.getBoundingClientRect();return null==r?n:re(n,t>0==r)}}class nc{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,t,r){let{tile:n,index:o,beforeBreak:a,parents:i}=this;for(;e||t>0;)if(n.isComposite())if(a){if(!e)break;r&&r.break(),e--,a=!1}else if(o==n.children.length){if(!e&&!i.length)break;r&&r.leave(n),a=!!n.breakAfter,({tile:n,index:o}=i.pop()),o++}else{let s=n.children[o],l=s.breakAfter;(t>0?s.length<=e:s.length<e)&&(!r||!1!==r.skip(s,0,s.length)||!s.isComposite)?(a=!!l,o++,e-=s.length):(i.push({tile:n,index:o}),n=s,o=0,r&&s.isComposite()&&r.enter(s))}else{let t=n.length;if(o<t&&e){let a=Math.min(e,t-o);r&&r.skip(n,o,o+a),e-=a,o+=a}if(o==t)a=!!n.breakAfter,({tile:n,index:o}=i.pop()),o++;else if(!e)break}return this.tile=n,this.index=o,this.beforeBreak=a,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}}class nu{constructor(e,t,r,n){this.from=e,this.to=t,this.wrapper=r,this.rank=n}}class nd{constructor(e,t,r){this.cache=e,this.root=t,this.blockWrappers=r,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(e,t,r,n){var o;this.flushBuffer();let a=this.ensureMarks(t,r),i=a.lastChild;i&&i.isText()&&!(8&i.flags)&&i.length+e.length<512?(this.cache.reused.set(i,2),(a.children[a.children.length-1]=new ni(i.dom,i.text+e)).parent=a):a.append(n||ni.of(e,null==(o=this.cache.find(ni))?void 0:o.dom)),this.pos+=e.length,this.afterWidget=null}addComposition(e,t){let r=this.curLine;r.dom!=t.line.dom&&(r.setDOM(this.cache.reused.has(t.line)?nv(t.line.dom):t.line.dom),this.cache.reused.set(t.line,2));let n=r;for(let e=t.marks.length-1;e>=0;e--){let r=t.marks[e],o=n.lastChild;if(o instanceof na&&o.mark.eq(r.mark))o.dom!=r.dom&&o.setDOM(nv(r.dom)),n=o;else{let{dom:e}=r;this.cache.reused.get(r)&&r7.get(r.dom)&&(e=nv(r.dom));let t=na.of(r.mark,e);n.append(t),n=t}this.cache.reused.set(r,2)}let o=r7.get(e.text);o&&this.cache.reused.set(o,2);let a=new ni(e.text,e.text.nodeValue);a.flags|=8,this.pos=e.range.toB,n.append(a)}addInlineWidget(e,t,r){let n=this.afterWidget&&48&e.flags&&(48&this.afterWidget.flags)==(48&e.flags);n||this.flushBuffer();let o=this.ensureMarks(t,r);n||16&e.flags||o.append(this.getBuffer(1)),o.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,t,r){this.flushBuffer(),this.ensureMarks(t,r).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){let t=this.afterWidget||this.lastBlock;t.length+=e,this.pos+=e}addLineStart(e,t){var r;e||(e=ng);let n=no.start(e,t||(null==(r=this.cache.find(no))?void 0:r.dom),!!t);this.getBlockPos().append(this.lastBlock=this.curLine=n)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,t){var r;let n=this.curLine;for(let o=e.length-1;o>=0;o--){let a=e[o],i;if(t>0&&(i=n.lastChild)&&i instanceof na&&i.mark.eq(a))n=i,t--;else{let e=na.of(a,null==(r=this.cache.find(na,e=>e.mark.eq(a)))?void 0:r.dom);n.append(e),n=e,t=0}}return n}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;(!e||!nO(this.curLine,!1)||"BR"!=e.dom.nodeName&&e.isWidget()&&!(tN.ios&&nO(this.curLine,!0))
vendor: 4,255 bytes, line 3
3)&&this.curLine.append(this.cache.findWidget(nb,0,32)||new ns(nb.toDOM(),0,nb,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to<this.pos&&this.wrappers.splice(e,1);for(let e=this.blockWrappers;e.value&&e.from<=this.pos;e.next())if(e.to>=this.pos){let t=102*e.rank+e.value.rank,r=new nu(e.from,e.to,e.value,t),n=this.wrappers.length;for(;n>0&&0>(this.wrappers[n-1].rank-r.rank||this.wrappers[n-1].to-r.to);)n--;this.wrappers.splice(n,0,r)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let t=this.root;for(let r of this.wrappers){let n=t.lastChild;if(r.from<this.pos&&n instanceof nn&&n.wrapper.eq(r.wrapper))t=n;else{let n=nn.of(r.wrapper,null==(e=this.cache.find(nn,e=>e.wrapper.eq(r.wrapper)))?void 0:e.dom);t.append(n),t=n}}return t}blockPosCovered(){let e=this.lastBlock;return null!=e&&!e.breakAfter&&(!e.isWidget()||(160&e.flags)>0)}getBuffer(e){let t=2|(e<0?16:32),r=this.cache.find(nl,void 0,1);return r&&(r.flags=t),r||new nl(t)}flushBuffer(){this.afterWidget&&!(32&this.afterWidget.flags)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class nh{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:t,lineBreak:r,done:n}=this.cursor.next(this.skipCount);if(this.skipCount=0,n)throw Error("Ran out of text content when drawing inline views");this.text=t;let o=this.textOff=Math.min(e,t.length);return r?null:t.slice(0,o)}let t=Math.min(this.text.length,this.textOff+e),r=this.text.slice(this.textOff,t);return this.textOff=t,r}}let np=[ns,no,ni,na,nl,nn,nr];for(let e=0;e<np.length;e++)np[e].bucket=e;class nf{constructor(e){this.view=e,this.buckets=np.map(()=>[]),this.index=np.map(()=>0),this.reused=new Map}add(e){let t=e.constructor.bucket,r=this.buckets[t];r.length<6?r.push(e):r[this.index[t]=(this.index[t]+1)%6]=e}find(e,t,r=2){let n=e.bucket,o=this.buckets[n],a=this.index[n];for(let e=0;e<o.length;e++){let i=(e+a)%o.length,s=o[i];if((!t||t(s))&&!this.reused.has(s))return o.splice(i,1),i<a&&this.index[n]--,this.reused.set(s,r),s}return null}findWidget(e,t,r){let n=this.buckets[0];if(n.length)for(let o=0,a=0;;o++){if(o==n.length){if(a)return null;a=1,o=0}let i=n[o];if(!this.reused.has(i)&&(0==a?i.widget.compare(e):i.widget.constructor==e.constructor&&e.updateDOM(i.dom,this.view,i.widget))){if(n.splice(o,1),o<this.index[0]&&this.index[0]--,i.widget==e&&i.length==t&&(497&i.flags)==r)return this.reused.set(i,1),i;return this.reused.set(i,2),new ns(i.dom,t,e,-498&i.flags|r)}}}reuse(e){return this.reused.set(e,1),e}maybeReuse(e,t=2){if(!this.reused.has(e))return this.reused.set(e,t),e.dom}clear(){for(let e=0;e<this.buckets.length;e++)this.buckets[e].length=this.index[e]=0}}class nm{constructor(e,t,r,n,o){this.view=e,this.decorations=n,this.disallowBlockEffectsFor=o,this.openWidget=!1,this.openMarks=0,this.cache=new nf(e),this.text=new nh(e.state.doc),this.builder=new nd(this.cache,new nr(e,e.contentDOM),tn.iter(r)),this.cache.reused.set(t,2),this.old=new nc(t),this.reuseWalker={skip:(e,t,r)=>{if(this.cache.add(e),e.isComposite())return!1},enter:e=>this.cache.add(e),leave:()=>{},break:()=>{}}}run(e,t){let r=t&&this.getCompositionContext(t.text);for(let n=0,o=0,a=0;;){let i=a<e.length?e[a++]:null,s=i?i.fromA:this.old.root.length;if(s>n){let e=s-n;this.preserve(e,!a,!i),n=s,o+=e}if(!i)break;t&&i.fromA<=t.range.fromA&&i.toA>=t.range.toA?(this.forward(i.fromA,t.range.fromA,t.range.fromA<t.range.toA?1:-1),this.emit(o,t.range.fromB),this.builder.flushBuffer(),this.cache.clear(),this.builder.addComposition(t,r),this.text.skip(t.range.toB-t.range.fromB),this.forward(t.range.fromA,i.toA),this.emit(t.range.toB,i.toB)):(this.forward(i.fromA,i.toA),this.emit(o,i.toB)),o=i.toB,n=i.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,t,r){let n=function(e){let t=[];for(let r=e.parents.length;r>1;r--){let n=r==e.parents.length?e.tile:e.parents[r].tile;
3n instanceof na&&t.push(n.mark)}return t}(this.old),o=this.openMarks;this.old.advance(e,r?1:-1,{skip:(e,t,r)=>{if(e.isWidget())if(this.openWidget)this.builder.continueWidget(r-t);else{let a=r>0||t<e.length?ns.of(e.widget,this.view,r-t,496&e.flags,this.cache.maybeReuse(e)):this.cache.reuse(e);256&a.flags?(a.flags&=-2,this.builder.addBlockWidget(a)):(this.builder.ensureLine(null),this.builder.addInlineWidget(a,n,o),o=n.length)}else if(e.isText())this.builder.ensureLine(null),t||r!=e.length||this.cache.reused.has(e)?(this.cache.add(e),this.builder.addText(e.text.slice(t,r),n,o)):this.builder.addText(e.text,n,o,this.cache.reuse(e)),o=n.length;else if(e.isLine())e.flags&=-2,this.cache.reused.set(e,1),this.builder.addLine(e);else if(e instanceof nl)this.cache.add(e);else{if(!(e instanceof na))return!1;this.builder.ensureLine(null),this.builder.addMark(e,n,o),this.cache.reused.set(e,1),o=n.length}this.openWidget=!1},enter:e=>{e.isLine()?this.builder.addLineStart(e.attrs,this.cache.maybeReuse(e)):(this.cache.add(e),e instanceof na&&n.unshift(e.mark)),this.openWidget=!1},leave:e=>{e.isLine()?n.length&&(n.length=o=0):e instanceof na&&(n.shift(),o=Math.min(o,n.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,t){let r=null,n=this.builder,o=-1,a=tn.spans(this.decorations,e,t,{point:(e,t,a,i,s,l)=>{var c,u,d;if(a instanceof tF){if(this.disallowBlockEffectsFor[l]){if(a.block)throw RangeError("Block decorations may not be specified via plugins");if(t>this.view.state.doc.lineAt(e).to)throw RangeError("Decorations that replace line breaks may not be specified via plugins")}if(o=i.length,s>i.length)n.continueWidget(t-e);else{let o,l=a.widget||(a.block?ny.block:ny.inline),u=(o=(c=a).isReplace?64*(c.startSide<0)|128*(c.endSide>0):c.startSide>0?32:16,c.block&&(o|=256),o),d=this.cache.findWidget(l,t-e,u)||ns.of(l,this.view,t-e,u);a.block?(a.startSide>0&&n.addLineStartIfNotCovered(r),n.addBlockWidget(d)):(n.ensureLine(r),n.addInlineWidget(d,i,s))}r=null}else{let e,t;u=r,e=(d=a).spec.attributes,t=d.spec.class,(e||t)&&(u||(u={class:"cm-line"}),e&&tD(e,u),t&&(u.class+=" "+t)),r=u}t>e&&this.text.skip(t-e)},span:(e,t,a,i)=>{for(let o=e;o<t;){let s=this.text.next(Math.min(512,t-o));null==s?(n.addLineStartIfNotCovered(r),n.addBreak(),o++):(n.ensureLine(r),n.addText(s,a,o==e?i:a.length),o+=s.length),r=null}o=a.length}});o>-1&&(this.openWidget=a>o),this.openWidget||n.addLineStartIfNotCovered(r),this.openMarks=a}forward(e,t,r=1){t-e<=10?this.old.advance(t-e,r,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(t-e-10,-1),this.old.advance(5,r,this.reuseWalker))}getCompositionContext(e){let t=[],r=null;for(let n=e.parentNode;;n=n.parentNode){let e=r7.get(n);if(n==this.view.contentDOM)break;e instanceof na?t.push(e):(null==e?void 0:e.isLine())?r=e:e instanceof nn||("DIV"!=n.nodeName||r?r||t.push(na.of(new tY({tagName:n.nodeName.toLowerCase(),attributes:function(e){let t=Object.create(null);for(let r=0;r<e.attributes.length;r++){let n=e.attributes[r];t[n.name]=n.value}return t}(n)}),n)):r=new no(n,ng))}return r?{line:r,marks:t}:null}}function nO(e,t){let r=e=>{for(let n of e.children)if((t?n.isText():n.length)||r(n))return!0;return!1};return r(e)}let ng={class:"cm-line"};function nv(e){let t=r7.get(e);return t&&t.setDOM(e.cloneNode()),e}class ny extends tL{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}ny.inline=new ny("span"),ny.block=new ny("div");let nb=new class extends tL{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class nS{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=tI.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new nr(e,e.contentDOM),this.updateInner([new r3(0,0,0,e.state.doc.length)],null)}update(e){var t,r,n,o,a,i,s,l,c;let u,d,h,p=e.changedRanges;this.minWidth>0&&p.length&&(p.every(({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let f=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((null==(t=this.domChanged)?void 0:t.newSel)?f=this.domChanged.newSel.head:(r=e.changes,n=this.hasComposition,u=!1,n&&r.iterChangedRanges((e,t)=>{e<n.to&&t>n.from&&(u=!0)}),u||e.selectionSet||(f=e.state.selection.main.head)));let m=f>-1?function(e,t,r){let n=nk(e,r);if(!n)return null;let{node:o,from:a,to:i}=n,s=o.nodeValue;if(/[\n\r]/.test(s)||e.state.doc.sliceString(n.from,n.to)!=s)return null;let l=t.invertedDesc;return{range:new r3(l.mapPos(a),l.mapPos(i),a,i),text:o}}(this.view,e.changes,f):null;if(this.domChanged=null,this.hasComposition){let{from:t,to:r}=this.hasComposition;p=new r3(t,r,e.changes.mapPos(t,-1),e.changes.mapPos(r,1)).addToSet(p.slice())}this.hasComposition=m?{from:m.range.fromB,to:m.range.toB}:null,(tN.ie||tN.chrome)&&!m&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let O=this.decorations,g=this.blockWrappers;this.updateDeco();let v=(o=O,a=this.decorations,i=e.changes,d=new nw,tn.compare(o,a,i,d),d.changes);v.length&&(p=r3.extendWithRanges(p,v));let y=(s=g,l=this.blockWrappers,c=e.changes,h=new n$,tn.compare(s,l,c,h),h.changes);return y.length&&(p=r3.extendWithRanges(p,y)),m&&!p.some(e=>e.fromA<=m.range.fromA&&e.toA>=m.range.toA)&&(p=m.range.addToSet(p.slice())),(!(2&this.tile.flags)||0!=p.length)&&(this.updateInner(p,m),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0;let{observer:r}=this.view;r.ignore(()=>{if(t||e.length){let r=this.tile,n=new nm(this.view,r,this.blockWrappers,this.decorations,this.dynamicDecorationMap);t&&r7.get(t.text)&&n.cache.reused.set(r7.get(t.text),2),this.tile=n.run(e,t),nx(r,n.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let n=tN.chrome||tN.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(n),n&&(n.written||r.selectionRange.focusNode!=n.node||!this.tile.dom.contains(n.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let n=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.tile.children)e.isWidget()&&e.widget instanceof nP&&n.push(e.dom);r.updateGaps(n)}updateEditContextFormatting(e){for(let t of(this.editContextFormatting=this.editContextFormatting.map(e.changes),e.transactions))for(let e of t.effects)e.is(rD)&&(this.editContextFormatting=e.value)}updateSelection(e=!1,t=!1){var r;(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let{dom:n}=this.tile,o=this.view.root.activeElement,a=o==n,i=!a&&!(this.view.state.facet(rz)||n.tabIndex>-1)&&t8(n,this.view.observer.selectionRange)&&!(o&&n.contains(o));if(!(a||t||i))return;let s=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,c,u;
3if(l.empty?u=c=this.inlineDOMNearPos(l.anchor,l.assoc||1):(u=this.inlineDOMNearPos(l.head,l.head==l.from?1:-1),c=this.inlineDOMNearPos(l.anchor,l.anchor==l.from?1:-1)),tN.gecko&&l.empty&&!this.hasComposition&&1==(r=c).node.nodeType&&r.node.firstChild&&(0==r.offset||"false"==r.node.childNodes[r.offset-1].contentEditable)&&(r.offset==r.node.childNodes.length||"false"==r.node.childNodes[r.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore(()=>c.node.insertBefore(e,c.node.childNodes[c.offset]||null)),c=u=new rp(e,0),s=!0}let d=this.view.observer.selectionRange;!s&&d.focusNode&&(t4(c.node,c.offset,d.anchorNode,d.anchorOffset)&&t4(u.node,u.offset,d.focusNode,d.focusOffset)||this.suppressWidgetCursorChange(d,l))||(this.view.observer.ignore(()=>{tN.android&&tN.chrome&&n.contains(d.focusNode)&&function(e,t){for(let r=e;r&&r!=t;r=r.assignedSlot||r.parentNode)if(1==r.nodeType&&"false"==r.contentEditable)return!0;return!1}(d.focusNode,n)&&(n.blur(),n.focus({preventScroll:!0}));let e=t1(this.view.root);if(e)if(l.empty){if(tN.gecko){var t,r;let e=(t=c.node,r=c.offset,1!=t.nodeType?0:(r&&"false"==t.childNodes[r-1].contentEditable?1:0)|2*(r<t.childNodes.length&&"false"==t.childNodes[r].contentEditable));if(e&&3!=e){let t=(1==e?rd:rh)(c.node,c.offset);t&&(c=new rp(t.node,t.offset))}}e.collapse(c.node,c.offset),null!=l.bidiLevel&&void 0!==e.caretBidiLevel&&(e.caretBidiLevel=l.bidiLevel)}else if(e.extend){e.collapse(c.node,c.offset);try{e.extend(u.node,u.offset)}catch(e){}}else{let t=document.createRange();l.anchor>l.head&&([c,u]=[u,c]),t.setEnd(u.node,u.offset),t.setStart(c.node,c.offset),e.removeAllRanges(),e.addRange(t)}
vendor: 5,079 bytes, line 3
3i&&this.view.root.activeElement==n&&(n.blur(),o&&o.focus())}),this.view.observer.setSelectionRange(c,u)),this.impreciseAnchor=c.precise?null:new rp(d.anchorNode,d.anchorOffset),this.impreciseHead=u.precise?null:new rp(d.focusNode,d.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&t4(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,r=t1(e.root),{anchorNode:n,anchorOffset:o}=e.observer.selectionRange;if(!r||!t.empty||!t.assoc||!r.modify)return;let a=this.lineAt(t.head,t.assoc);if(!a)return;let i=a.posAtStart;if(t.head==i||t.head==i+a.length)return;let s=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!s||!l||s.bottom>l.top)return;let c=this.domAtPos(t.head+t.assoc,t.assoc);r.collapse(c.node,c.offset),r.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let u=e.observer.selectionRange;e.docView.posFromDOM(u.anchorNode,u.anchorOffset)!=t.from&&r.collapse(n,o)}posFromDOM(e,t){let r=this.tile.nearest(e);if(!r)return 2&this.tile.dom.compareDocumentPosition(e)?0:this.view.state.doc.length;let n=r.posAtStart;if(r.isComposite()){let o;if(e==r.dom)o=r.dom.childNodes[t];else{let n=0==t7(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==r.dom)break;0==n&&t.firstChild!=t.lastChild&&(n=e==t.firstChild?-1:1),e=t}o=n<0?e:e.nextSibling}if(o==r.dom.firstChild)return n;for(;o&&!r7.get(o);)o=o.nextSibling;if(!o)return n+r.length;for(let e=0,t=n;;e++){let n=r.children[e];if(n.dom==o)return t;t+=n.length+n.breakAfter}}else if(r.isText())return e==r.dom?n+t:n+(t?r.length:0);else return n}domAtPos(e,t){let{tile:r,offset:n}=this.tile.resolveBlock(e,t);return r.isWidget()?r.domPosFor(n,t):r.domIn(n,t)}inlineDOMNearPos(e,t){let r,n=-1,o=!1,a,i=-1,s=!1;return(this.tile.blockTiles((t,l)=>{if(t.isWidget()){if(32&t.flags&&l>=e)return!0;16&t.flags&&(o=!0)}else{let c=l+t.length;if(l<=e&&(r=t,n=e-l,o=c<e),c>=e&&!a&&(a=t,i=e-l,s=l>e),l>e&&a)return!0}}),r||a)?(o&&a?r=null:s&&r&&(a=null),r&&t<0||!a?r.domIn(n,t):a.domIn(i,t)):this.domAtPos(e,t)}coordsAt(e,t,r){let{tile:n,offset:o}=this.tile.resolveBlock(e,t);return n.isWidget()?n.widget instanceof nP?null:n.coordsInWidget(o,t,!0):n.coordsIn(o,t,r)}lineAt(e,t){let{tile:r}=this.tile.resolveBlock(e,t);return r.isLine()?r:null}coordsForChar(e){let{tile:t,offset:r}=this.tile.resolveBlock(e,1);return t.isLine()?function e(t,r){if(t.isComposite())for(let n of t.children){if(n.length>=r){let t=e(n,r);if(t)return t}if((r-=n.length)<0)break}else if(t.isText()&&r<t.length){let e=ec(t.text,r);if(e==r)return null;let n=rl(t.dom,r,e).getClientRects();for(let e=0;e<n.length;e++){let t=n[e];if(e==n.length-1||t.top<t.bottom&&t.left<t.right)return t}}return null}(t,r):null}measureVisibleLineHeights(e){let t=[],{from:r,to:n}=e,o=this.view.contentDOM.clientWidth,a=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,i=-1,s=this.view.textDirection==rf.LTR,l=0,c=(e,u,d)=>{for(let h=0;h<e.children.length&&!(u>n);h++){let n=e.children[h],p=u+n.length,f=n.dom.getBoundingClientRect(),{height:m}=f;if(d&&!h&&(l+=f.top-d.top),n instanceof nn)p>r&&c(n,u,f);else if(u>=r&&(l>0&&t.push(-l),t.push(m+l),l=0,a)){let e=n.dom.lastChild,t=e?t5(e):[];if(t.length){let e=t[t.length-1],r=s?e.right-f.left:f.right-e.left;r>i&&(i=r,this.minWidth=o,this.minWidthFrom=u,this.minWidthTo=p)}}d&&h==e.children.length-1&&(l+=d.bottom-f.bottom),u=p+n.breakAfter}};return c(this.tile,0,null),t}textDirectionAt(e){let{tile:t}=this.tile.resolveBlock(e,1);return"rtl"==getComputedStyle(t.dom).direction?rf.RTL:rf.LTR}measureTextSize(){let e=this.tile.blockTiles(e=>{if(e.isLine()&&e.children.length&&e.length<=20){let t=0,r;for(let n of e.children){if(!n.isText()||/[^ -~]/.test(n.text))return;let e=t5(n.dom);if(1!=e.length)return;t+=e[0].width,r=e[0].height}if(t)return{lineHeight:e.dom.getBoundingClientRect().height,charWidth:t/e.length,textHeight:r}}});if(e)return e;let t=document.createElement("div"),r,n,o;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(t);let e=t5(t.firstChild)[0];r=t.getBoundingClientRect().height,n=e&&e.width?e.width/27:7,o=e&&e.height?e.height:r,t.remove()}),{lineHeight:r,charWidth:n,textHeight:o}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let r=0,n=0;;n++){let o=n==t.viewports.length?null:t.viewports[n],a=o?o.from-1:this.view.state.doc.length;if(a>r){let n=(t.lineBlockAt(a).bottom-t.lineBlockAt(r).top)/this.view.scaleY;e.push(tI.replace({widget:new nP(n),block:!0,inclusive:!0,isBlockGap:!0}).range(r,a))}if(!o)break;r=o.to+1}return tI.set(e)}updateDeco(){let e=1,t=this.view.state.facet(rF).map(t=>(this.dynamicDecorationMap[e++]="function"==typeof t)?t(this.view):t),r=!1,n=this.view.state.facet(rJ).map((e,t)=>{let n="function"==typeof e;return n&&(r=!0),n?e(this.view):e});for(n.length&&(this.dynamicDecorationMap[e++]=r,t.push(tn.join(n))
3),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;this.blockWrappers=this.view.state.facet(rK).map(e=>"function"==typeof e?e(this.view):e)}scrollIntoView(e){if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=t.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let t of this.view.state.facet(rM))try{if(t(this.view,e.range,e))return!0}catch(e){rU(this.view.state,e,"scroll handler")}let{range:t}=e,r=this.coordsAt(t.head,t.assoc||(t.head>t.anchor?-1:1)),n;if(!r)return;!t.empty&&(n=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(r={left:Math.min(r.left,n.left),top:Math.min(r.top,n.top),right:Math.max(r.right,n.right),bottom:Math.max(r.bottom,n.bottom)});let o=r5(this.view),a={left:r.left-o.left,top:r.top-o.top,right:r.right+o.right,bottom:r.bottom+o.bottom},{offsetWidth:i,offsetHeight:s}=this.view.scrollDOM;if(!function(e,t,r,n,o,a,i,s){let l=e.ownerDocument,c=l.defaultView||window;for(let u=e,d=!1;u&&!d;)if(1==u.nodeType){let e,h=u==l.body,p=1,f=1;if(h)e=function(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(d=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let t=u.getBoundingClientRect();({scaleX:p,scaleY:f}=rt(u,t)),e={left:t.left,right:t.left+u.clientWidth*p,top:t.top,bottom:t.top+u.clientHeight*f}}let m=0,O=0;if("nearest"==o)t.top<e.top+i?(O=t.top-(e.top+i),r>0&&t.bottom>e.bottom+O&&(O=t.bottom-e.bottom+i)):t.bottom>e.bottom-i&&(O=t.bottom-e.bottom+i,r<0&&t.top-O<e.top&&(O=t.top-(e.top+i)));else{let n=t.bottom-t.top,a=e.bottom-e.top;O=("center"==o&&n<=a?t.top+n/2-a/2:"start"==o||"center"==o&&r<0?t.top-i:t.bottom-a+i)-e.top}if("nearest"==n?t.left<e.left+a?(m=t.left-(e.left+a),r>0&&t.right>e.right+m&&(m=t.right-e.right+a)):t.right>e.right-a&&(m=t.right-e.right+a,r<0&&t.left<e.left+m&&(m=t.left-(e.left+a))):m=("center"==n?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==n==s?t.left-a:t.right-(e.right-e.left)+a)-e.left,m||O)if(h)c.scrollBy(m,O);else{let e=0,r=0;if(O){let e=u.scrollTop;u.scrollTop+=O/f,r=(u.scrollTop-e)*f}if(m){let t=u.scrollLeft;u.scrollLeft+=m/p,e=(u.scrollLeft-t)*p}t={left:t.left-e,top:t.top-r,right:t.right-e,bottom:t.bottom-r},e&&1>Math.abs(e-m)&&(n="nearest"),r&&1>Math.abs(r-O)&&(o="nearest")}if(h)break;(t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)&&(t={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)}),u=u.assignedSlot||u.parentNode}else if(11==u.nodeType)u=u.host;else break}(this.view.scrollDOM,a,t.head<t.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,i),-i),Math.max(Math.min(e.yMargin,s),-s),this.view.textDirection==rf.LTR),window.visualViewport&&window.innerHeight-window.visualViewport.height>1&&(r.top>window.visualViewport.offsetTop+window.visualViewport.height||r.bottom<window.visualViewport.offsetTop)){let e=this.view.docView.lineAt(t.head,1);if(e){let t=ro(e.dom);e.dom.scrollIntoView({block:"nearest"}),ra(t,!1)}}}lineHasWidget(e){let t=e=>e.isWidget()||e.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){nx(this.tile)}}function nx(e,t){let r=null==t?void 0:t.get(e);if(1!=r)for(let n of(null==r&&e.destroy(),e.children))nx(n,t)}function nk(e,t){let r=e.observer.selectionRange;if(!r.focusNode)return null;let n=rd(r.focusNode,r.focusOffset),o=rh(r.focusNode,r.focusOffset),a=n||o;if(o&&n&&o.node!=n.node){let t=r7.get(o.node);if(!t||t.isText()&&t.text!=o.node.nodeValue)a=o;else if(e.docView.lastCompositionAfterCursor){let e=r7.get(n.node);!e||e.isText()&&e.text!=n.node.nodeValue||(a=o)}}if(e.docView.lastCompositionAfterCursor=a!=n,!a)return null;let i=t-a.offset;return{from:i,to:i+a.node.nodeValue.length,node:a.node}}let nw=class{constructor(){this.changes=[]}compareRange(e,t){tJ(e,t,this.changes)}comparePoint(e,t){tJ(e,t,this.changes)}boundChange(e){tJ(e,e,this.changes)}};
3class n${constructor(){this.changes=[]}compareRange(e,t){tJ(e,t,this.changes)}comparePoint(){}boundChange(e){tJ(e,e,this.changes)}}class nP extends tL{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function nQ(e,t,r){let n=e.lineBlockAt(t);if(Array.isArray(n.type)){let e;for(let o of n.type){if(o.from>t)break;if(!(o.to<t)){if(o.from<t&&o.to>t)return o;(!e||o.type==tH.Text&&(e.type!=o.type||(r<0?o.from<t:o.to>t)))&&(e=o)}}return e||n}return n}function nC(e,t,r,n){let o=e.state.doc.lineAt(t.head),a=e.bidiSpans(o),i=e.textDirectionAt(o.from);for(let s=t,l=null;;){let t=function(e,t,r,n,o){var a;if(!e.length)return null;let i=n.head-e.from,s;if(n.head==e.from&&n.assoc<0){if(!o)return null;i=t[s=0].side(!1,r)}else if(n.head==e.to&&n.assoc>0){if(o)return null;i=t[s=t.length-1].side(!0,r)}else s=rw.find(t,i,null!=(a=n.bidiLevel)?a:-1,n.assoc);let l=t[s],c=l.side(o,r);if(i==c){let e=s+=o?1:-1;if(e<0||e>=t.length)return null;i=(l=t[s=e]).side(!o,r),c=l.side(o,r)}let u=ec(e.text,i,l.forward(o,r));(u<l.from||u>l.to)&&(u=c),rQ=e.text.slice(Math.min(i,u),Math.max(i,u));let d=s==(o?t.length-1:0)?null:t[s+(o?1:-1)];if(u==c){if(!d)return o?ew.cursor(e.to,1):ew.cursor(e.from,-1);if(d.level+ +!o<l.level)return ew.cursor(d.side(!o,r)+e.from,d.forward(o,r)?1:-1,d.level)}return ew.cursor(u+e.from,l.forward(o,r)?-1:1,l.level)}(o,a,i,s,r),c=rQ;if(!t){if(o.number==(r?e.state.doc.lines:1))return s;c="\n",o=e.state.doc.line(o.number+(r?1:-1)),a=e.bidiSpans(o),t=r?ew.cursor(o.from,-1):ew.cursor(o.to,1)}if(l){if(!l(c))return s}else{if(!n)return t;l=n(c)}s=t}}function nT(e,t,r){for(;;){let n=0;for(let o of e)o.between(t-1,t+1,(e,o,a)=>{if(t>e&&t<o){let a=n||r||(t-e<o-t?-1:1);t=a<0?e:o,n=a}});if(!n)return t}}function nB(e,t){let r=null;for(let n=0;n<t.ranges.length;n++){let o=t.ranges[n],a=null;if(o.empty){let t=nT(e,o.from,0);t!=o.from&&(a=ew.cursor(t,-1))}else{let t=nT(e,o.from,-1),r=nT(e,o.to,1);(t!=o.from||r!=o.to)&&(a=o.undirectional?ew.undirectionalRange(o.from,o.to):ew.range(o.from==o.anchor?t:r,o.from==o.head?t:r))}a&&(r||(r=t.ranges.slice()),r[n]=a)}return r?ew.create(r,t.mainIndex):t}function nA(e,t,r){let n=nT(e.state.facet(r0).map(t=>t(e)),r.from,t.head>r.from?-1:1);return n==r.from?r:ew.cursor(n,n<r.from?1:-1)}class nR{constructor(e,t){this.pos=e,this.assoc=t}}function nE(e,t,r,n){let o=e.contentDOM.getBoundingClientRect(),a=o.top+e.viewState.paddingTop,{x:i,y:s}=t,l=s-a,c;for(;;){if(l<0)return new nR(0,1);if(l>e.viewState.docHeight)return new nR(e.state.doc.length,-1);if(c=e.elementAtHeight(l),null==n)break;if(c.type==tH.Text){if(n<0?c.to<e.viewport.from:c.from>e.viewport.to)break;let t=e.docView.coordsAt(n<0?c.from:c.to,n>0?-1:1);if(t&&(n<0?t.top<=l+a:t.bottom>=l+a))break}let t=e.viewState.heightOracle.textHeight/2;l=n>0?c.bottom+t:c.top-t}if(e.viewport.from>=c.to||e.viewport.to<=c.from){if(r)return null;if(c.type==tH.Text){let t=function(e,t,r,n,o){let a=Math.round((n-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&r.height>1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;a+=Math.floor((o-r.top-(e.defaultLineHeight-t)*.5)/t)*e.viewState.heightOracle.lineLength}let i=e.state.sliceDoc(r.from,r.to);return r.from+function(e,t,r){for(let n=0,o=0;;){if(o>=t)return n;if(n==e.length)break;o+=9==e.charCodeAt(n)?r-o%r:1,n=ec(e,n)}return e.length}(i,a,e.state.tabSize)}(e,o,c,i,s);return new nR(t,t==c.from?1:-1)}}if(c.type!=tH.Text)return l<(c.top+c.bottom)/2?new nR(c.from,1):new nR(c.to,-1);let u=e.docView.lineAt(c.from,2);return u&&u.length==c.length||(u=e.docView.lineAt(c.from,-2)),new nV(e,i,s,e.textDirectionAt(c.from)).scanTile(u,c.from)}class nV{constructor(e,t,r,n){this.view=e,this.x=t,this.y=r,this.baseDir=n,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:r,spans:n}=this.bidiSpansAt(e);return n[rw.find(n,e-r.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:r,spans:n}=this.bidiSpansAt(e);return n[rw.find(n,e-r.from,-1,t)].dir}bidiIn(e,t){let{spans:r,line:n}
3=this.bidiSpansAt(e);return r.length>1||r.length&&(r[0].level!=this.baseDir||r[0].to+n.from<t)}scan(e,t,r=!1){let n,o,a=0,i=e.length-1,s=new Set,l=this.bidiIn(e[0],e[i]),c=-1,u=1e9,d;for(;a<i;){let r=i-a,h=a+i>>1;r:if(s.has(h)){for(let e=1;e<r;e++){let t=h+e;if(t>=i&&(t-=r),!s.has(t)){h=t;break r}}break}s.add(h);let p=t(h),f=0;if(p)for(let e=0;e<p.length;e++){let t=p[e];if(0!=t.width||!(p.length>1))if(t.bottom<this.y)(!n||n.bottom<t.bottom)&&(n=t),f=1;else if(t.top>this.y)(!o||o.top>t.top)&&(o=t),f=-1;else{let e=t.left>this.x?this.x-t.left:t.right<this.x?this.x-t.right:0,r=Math.abs(e);r<u&&(c=h,u=r,d=t),e&&(f=e<0==(this.baseDir==rf.LTR)?-1:1)}}-1==f&&(!l||this.baseDirAt(e[h],1))?i=h:1==f&&(!l||this.baseDirAt(e[h+1],-1))&&(a=h+1)}if(!d){if(!o&&!n)return{i:0,after:!1};let r=n&&(!o||this.y-n.bottom<o.top-this.y)?n:o;return this.y=(r.top+r.bottom)/2,this.scan(e,t,!0)}if(u&&!r){let{top:r,bottom:a}=d;if(n&&n.bottom>(r+r+a)/3)return this.y=n.bottom-1,this.scan(e,t,!0);if(o&&o.top<(r+a+a)/3)return this.y=o.top+1,this.scan(e,t,!0)}let h=(l?this.dirAt(e[c],1):this.baseDir)==rf.LTR;return{i:c,after:this.x>(d.left+d.right)/2==h}}scanText(e,t){let r=[];for(let n=0;n<e.length;n=ec(e.text,n))r.push(t+n);r.push(t+e.length);let n=this.scan(r,n=>{let o=r[n]-t,a=r[n+1]-t;return rl(e.dom,o,a).getClientRects()});return n.after?new nR(r[n.i+1],-1):new nR(r[n.i],1)}scanTile(e,t){if(!e.length)return new nR(t,1);if(1==e.children.length){let r=e.children[0];if(r.isText())return this.scanText(r,t);if(r.isComposite())return this.scanTile(r,t)}let r=[t];for(let n=0,o=t;n<e.children.length;n++)r.push(o+=e.children[n].length);let n=this.scan(r,t=>{let r=e.children[t];return 48&r.flags?null:(1==r.dom.nodeType?r.dom:rl(r.dom,0,r.length)).getClientRects()}),o=e.children[n.i],a=r[n.i];return o.isText()?this.scanText(o,a):o.isComposite()?this.scanTile(o,a):n.after?new nR(r[n.i+1],-1):new nR(a,1)}}class nZ{constructor(e,t){this.points=e,this.view=t,this.text="",this.lineSeparator=t.state.facet(e3.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+="ï¿¿"}readRange(e,t){if(!e)return this;let r=e.parentNode;for(let n=e;;){this.findPointBefore(r,n);let e=this.text.length;this.readNode(n);let o=r7.get(n),a=n.nextSibling;if(a==t){(null==o?void 0:o.breakAfter)&&!a&&r!=this.view.contentDOM&&this.lineBreak();break}let i=r7.get(a);(o&&i?o.breakAfter:(o?o.breakAfter:t6(n))||t6(a)&&("BR"!=n.nodeName||(null==o?void 0:o.isWidget()))&&this.text.length>e)&&!function(e,t){let r;for(;e!=t&&e;e=e.nextSibling){let t=r7.get(e);if(!(null==t?void 0:t.isWidget()))return!1;t&&(r||(r=[])).push(t)}if(r)for(let e of r){let t=e.overrideDOMText;if(null==t?void 0:t.length)return!1}return!0}(a,t)&&this.lineBreak(),n=a}return this.findPointBefore(r,t),this}readTextNode(e){let t=e.nodeValue;for(let r of this.points)r.node==e&&(r.pos=this.text.length+Math.min(r.offset,t.length));for(let r=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,a=1,i;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,r),a=this.lineSeparator.length):(i=n.exec(t))&&(o=i.index,a=i[0].length),this.append(t.slice(r,o<0?t.length:o)),o<0)break;if(this.lineBreak(),a>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=a-1);r=o+a}}readNode(e){let t=r7.get(e),r=t&&t.overrideDOMText;if(null!=r){this.findPointInside(e,r.length);for(let e=r.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let r of this.points)r.node==e&&e.childNodes[r.offset]==t&&(r.pos=this.text.length)}findPointInside(e,t){for(let r of this.points)(3==e.nodeType?r.node==e:e.contains(r.node))&&(r.pos=this.text.length+(!function(e,t,r){for(;;){if(!t||r<t7(t))return!1;if(t==e)return!0;r=t3(t)+1,t=t.parentNode}}(e,r.node,r.offset)?0:t))}}class nj{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class nX{constructor(e,t,r,n){this.typeOver=n,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:o,impreciseAnchor:a}=e.docView,i=e.state.selection;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=function e(t,r,n,o){if(t.isComposite()){let a=-1,i=-1,s=-1,l=-1;for(let c=0,u=o,d=o;c<t.children.length;c++){let o=t.children[c],h=u+o.length;if(u<r&&h>n)return e(o,r,n,u);if(h>=r&&-1==a&&(a=c,i=u),u>n&&o.dom.parentNode==t.dom){s=c,l=d;break}d=h,u=h+o.breakAfter}return{from:i,to:l<0?o+t.length:l,startDOM:(a?t.children[a-1].dom.nextSibling:null)||t.dom.firstChild,endDOM:s<t.children.length&&s>=0?t.children[s].dom:null}}return t.isText()?{from:o,to:o+t.length,startDOM:t.dom,endDOM:t.dom.nextSibling}:null}
3(e.docView.tile,t,r,0))){let t=o||a?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:r,anchorOffset:n,focusNode:o,focusOffset:a}=e.observer.selectionRange;return r&&(t.push(new nj(r,n)),(o!=r||a!=n)&&t.push(new nj(o,a))),t}(e),r=new nZ(t,e);r.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=r.text,this.newSel=function(e,t){if(0==e.length)return null;let r=e[0].pos,n=2==e.length?e[1].pos:r;return r<0||n<0?null:r==n?ew.create([ew.cursor(n+t,-1)]):ew.single(r+t,n+t)}(t,this.bounds.from)}else{let t=e.observer.selectionRange,r=o&&o.node==t.focusNode&&o.offset==t.focusOffset||!t2(e.contentDOM,t.focusNode)?i.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),n=a&&a.node==t.anchorNode&&a.offset==t.anchorOffset||!t2(e.contentDOM,t.anchorNode)?i.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),s=e.viewport;if((tN.ios||tN.chrome)&&r!=n&&Math.min(r,n)<=i.main.from&&Math.max(r,n)>=i.main.to&&(s.from>0||s.to<e.state.doc.length)){let t=Math.min(r,n),o=Math.max(r,n),a=s.from-t,i=s.to-o;(0==a||1==a||0==t)&&(0==i||-1==i||o==e.state.doc.length)&&(r=0,n=e.state.doc.length)}if(e.inputState.composing>-1&&i.ranges.length>1)this.newSel=i.replaceRange(ew.range(n,r));else if(e.lineWrapping&&n==r&&!(i.main.empty&&i.main.head==r)&&e.inputState.lastTouchTime>Date.now()-100){let t=e.coordsAtPos(r,-1),n=0;t&&(n=e.inputState.lastTouchY<=t.bottom?-1:1),this.newSel=ew.create([ew.cursor(r,n)])}else this.newSel=ew.single(n,r)}}}function n_(e,t){let r,{newSel:n}=t,{state:o}=e,a=o.selection.main,i=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:e,to:n}=t.bounds,s=a.from,l=null;(8===i||tN.android&&t.text.length<n-e)&&(s=a.to,l="end");let c=o.doc.sliceString(e,n,"ï¿¿"),u,d;!a.empty&&a.from>=e&&a.to<=n&&(t.typeOver||c!=t.text)&&c.slice(0,a.from-e)==t.text.slice(0,a.from-e)&&c.slice(a.to-e)==t.text.slice(u=t.text.length-(c.length-(a.to-e)))?r={from:a.from,to:a.to,insert:ee.of(t.text.slice(a.from-e,u).split("ï¿¿"))}:(d=nq(c,t.text,s-e,l))&&(tN.chrome&&13==i&&d.toB==d.from+2&&"ï¿¿ï¿¿"==t.text.slice(d.from,d.toB)&&d.toB--,r={from:e+d.from,to:e+d.toA,insert:ee.of(t.text.slice(d.from,d.toB).split("ï¿¿"))})}else n&&(!e.hasFocus&&o.facet(rz)||nN(n,a))&&(n=null);if(!r&&!n)return!1;if((tN.mac||tN.android)&&r&&r.from==r.to&&r.from==a.head-1&&/^\. ?$/.test(r.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(n&&2==r.insert.length&&(n=ew.single(n.main.anchor-1,n.main.head-1)),r={from:r.from,to:r.to,insert:ee.of([r.insert.toString().replace("."," ")])}):o.doc.lineAt(a.from).to<a.to&&e.docView.lineHasWidget(a.to)&&e.inputState.insertingTextAt>Date.now()-50?r={from:a.from,to:a.to,insert:o.toText(e.inputState.insertingText)}:tN.chrome&&r&&r.from==r.to&&r.from==a.head&&"\n "==r.insert.toString()&&e.lineWrapping&&(n&&(n=ew.single(n.main.anchor-1,n.main.head-1)),r={from:a.from,to:a.to,insert:ee.of([" "])}),r)return nM(e,r,n,i);if(!n||nN(n,a))return!1;{let t=!1,r="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),"select.pointer"==(r=e.inputState.lastSelectionOrigin)&&(n=nB(o.facet(r0).map(t=>t(e)),n))),e.dispatch({selection:n,scrollIntoView:t,userEvent:r}),!0}}function nM(e,t,r,n=-1){let o;if(tN.ios&&e.inputState.flushIOSKey(t))return!0;let a=e.state.selection.main;if(tN.android&&(t.to==a.to&&(t.from==a.from||t.from==a.from-1&&" "==e.state.sliceDoc(t.from,a.from))&&1==t.insert.length&&2==t.insert.lines&&rc(e.contentDOM,"Enter",13)||(t.from==a.from-1&&t.to==a.to&&0==t.insert.length||8==n&&t.insert.length<t.to-t.from&&t.to>a.head)&&rc(e.contentDOM,"Backspace",8)||t.from==a.from&&t.to==a.to+1&&0==t.insert.length&&rc(e.contentDOM,"Delete",46)))return!0;let i=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let s=()=>o||(o=function(e,t,r){let n,o=e.state,a=o.selection.main,i=-1;if(t.from==t.to&&t.from<a.from||t.from>a.to){let r=t.from<a.from?-1:1,n=r<0?a.from:a.to,s=nT(o.facet(r0).map(t=>t(e)),n,r);t.from==s&&(i=s)}if(i>-1)n={changes:t,selection:ew.cursor(t.from+t.insert.length,-1)};else if(t.from>=a.from&&t.to<=a.to&&t.to-t.from>=(a.to-a.from)/3&&(!r||r.main.empty&&r.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let r=a.from<t.from?o.sliceDoc(a.from,t.from):"",i=a.to>t.to?o.sliceDoc(t.to,a.to):"";n=o.replaceSelection(e.state.toText(r+t.insert.sliceString(0,void 0,e.state.lineBreak)+i))}else{let i=o.changes(t),s=r&&r.main.to<=i.newLength?r.main:void 0;if(o.selection.ranges.length>1&&(e.inputState.composing>=0||e.inputState.compositionPendingChange)&&t.to<=a.to+10&&t.to>=a.to-10){let l=e.state.sliceDoc(t.from,t.to),c,u=r&&nk(e,r.main.head);if(u){let e=t.insert.length-(t.to-t.from);c={from:u.from,to:u.to-e}}else c=e.state.doc.lineAt(a.head);let d=a.to-t.to;n=o.changeByRange(r=>{if(r.from==a.from&&r.to==a.to)return{changes:i,range:s||r.map(i)};let n=r.to-d,u=n-l.length;if(e.state.sliceDoc(u,n)!=l||n>=c.from&&u<=c.to)return{range:r};let h=o.changes({from:u,to:n,insert:t.insert}),p=r.to-a.to;return{changes:h,range:s?ew.range(Math.max(0,s.anchor+p),Math.max(0,s.head+
3p)):r.map(h)}})}else n={changes:i,selection:s&&o.selection.replaceRange(s)}}let s="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),o.update(n,{userEvent:s,scrollIntoView:!0})}(e,t,r));return e.state.facet(rE).some(r=>r(e,t.from,t.to,i,s))||e.dispatch(s()),!0}function nq(e,t,r,n){let o=Math.min(e.length,t.length),a=0;for(;a<o&&e.charCodeAt(a)==t.charCodeAt(a);)a++;if(a==o&&e.length==t.length)return null;let i=e.length,s=t.length;for(;i>0&&s>0&&e.charCodeAt(i-1)==t.charCodeAt(s-1);)i--,s--;if("end"==n){let e=Math.max(0,a-Math.min(i,s));r-=i+e-a}if(i<a&&e.length<t.length){let e=r<=a&&r>=i?a-r:0;a-=e,s=a+(s-i),i=a}else if(s<a){let e=r<=a&&r>=s?a-r:0;a-=e,i=a+(i-s),s=a}return{from:a,toA:i,toB:s}}function nN(e,t){return t.head==e.main.head&&t.anchor==e.main.anchor}class nD{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.touchActive=!1,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.lastIOSMomentumScroll=0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,tN.safari&&e.contentDOM.addEventListener("input",()=>null),tN.gecko&&function(e){ot.has(e)||(ot.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}(e.contentDOM.ownerDocument)}handleEvent(e){!function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let r=t.target,n;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=r7.get(r))&&n.isWidget()&&!n.isHidden&&n.widget.ignoreEvent(t))return!1;return!0}(this.view,e)||this.ignoreDuringComposition(e)||"keydown"==e.type&&this.keydown(e)||(0!=this.view.updateState?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let r=this.handlers[e];if(r){for(let e of r.observers)e(this.view,t);for(let e of r.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=function(e){let t=Object.create(null);function r(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let t of e){let e=t.spec,n=e&&e.plugin.domEventHandlers,o=e&&e.plugin.domEventObservers;if(n)for(let e in n){let o=n[e];o&&r(e).handlers.push(nU(t.value,o))}if(o)for(let e in o){let n=o[e];n&&r(e).observers.push(nU(t.value,n))}}for(let e in nY)r(e).handlers.push(nY[e]);for(let e in nG)r(e).observers.push(nG[e]);return t}(e),r=this.handlers,n=this.view.contentDOM;for(let e in t)if("scroll"!=e){let o=!t[e].handlers.length,a=r[e];a&&!a.handlers.length!=o&&(n.removeEventListener(e,this.handleEvent),a=null),a||n.addEventListener(e,this.handleEvent,{passive:o})}for(let e in r)"scroll"==e||t[e]||n.removeEventListener(e,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&27!=e.keyCode&&0>nL.indexOf(e.keyCode)&&(this.tabFocusMode=-1),tN.android&&tN.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;if(tN.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&(nz.some(t=>t.keyCode==e.keyCode)&&!e.ctrlKey||nW.indexOf(e.key)>-1&&e.ctrlKey)){var t;let r={ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey,shiftKey:e.shiftKey};r.shiftKey&&tN.ios&&!/^(off|none)$/.test(this.view.contentDOM.autocapitalize)&&(t=this.view.win).visualVie
3wport&&t.visualViewport.height*t.visualViewport.scale/t.document.documentElement.clientHeight<.85&&(r.shiftKey=!1);let n=this.pendingIOSKey={key:e.key,keyCode:e.keyCode,mods:r};return setTimeout(()=>{this.pendingIOSKey==n&&this.flushIOSKey()},50),!0}return 229!=e.keyCode&&this.view.observer.forceFlush(),!1}flushIOSKey(e){let t=this.pendingIOSKey;return!(!t||this.view.observer.pendingRecords().length||"Enter"==t.key&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString()))&&(this.pendingIOSKey=void 0,rc(this.view.contentDOM,t.key,t.keyCode,t.mods))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&!e.synthetic&&(this.composing>0||!!(tN.safari&&!tN.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function nU(e,t){return(r,n)=>{try{return t.call(e,n,r)}catch(e){rU(r.state,e)}}}let nz=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],nW="dthko",nL=[16,17,18,20,91,92,224,225];function nH(e){return .7*Math.max(0,e)+8}class nI{constructor(e,t,r,n){this.view=e,this.startEvent=t,this.style=r,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=rr(e.contentDOM),this.atoms=e.state.facet(r0).map(t=>t(e));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(e3.allowMultipleSelections)&&function(e,t){let r=e.state.facet(rC);return r.length?r[0](t):tN.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!!function(e,t){let{main:r}=e.state.selection;if(r.empty)return!1;let n=t1(e.root);if(!n||0==n.rangeCount)return!0;let o=n.getRangeAt(0).getClientRects();for(let e=0;e<o.length;e++){let r=o[e];if(r.left<=t.clientX&&r.right>=t.clientX&&r.top<=t.clientY&&r.bottom>=t.clientY)return!0}return!1}(e,t)&&1==n4(t)&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var t;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&10>(t=this.startEvent,Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))))return;this.select(this.lastEvent=e);let r=0,n=0,o=0,a=0,i=this.view.win.innerWidth,s=this.view.win.innerHeight;this.scrollParents.x&&({left:o,right:i}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:a,bottom:s}=this.scrollParents.y.getBoundingClientRect());let l=r5(this.view);e.clientX-l.left<=o+6?r=-nH(o-e.clientX):e.clientX+l.right>=i-6&&(r=nH(e.clientX-i)),e.clientY-l.top<=a+6?n=-nH(a-e.clientY):e.clientY+l.bottom>=s-6&&(n=nH(e.clientY-s)),this.setScrollSpeed(r,n)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),!1===this.dragging&&this.select(this.lastEvent)}select(e){let{view:t}=this,r=nB(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!r.eq(t.state.selection,!1===this.dragging))&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(e=>e.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}let nY=Object.create(null),nG=Object.create(null),nF=tN.ie&&tN.ie_version<15||tN.ios&&tN.webkit_version<604;function nK(e,t,r){for(let n of e.facet(t))r=n(r,e);return r}function nJ(e,t){t=nK(e.state,rZ,t);let{state:r}=e,n,o=1,a=r.toText(t),i=a.lines==r.selection.ranges.length;if(null!=n6&&r.selection.ranges.every(e=>e.empty)&&n6==a.toString()){let e=-1;n=r.changeByRange(n=>{let s=r.doc.lineAt(n.from);if(s.from==e)return{range:n};e=s.from;let l=r.toText((i?a.line(o++).text:t)+r.lineBreak);return{changes:{from:s.from,insert:l},range:ew.cursor(n.from+l.length,-1)}})}else n=i?r.changeByRange(e=>{let t=a.line(o++);return{changes:{from:e.from,to:e.to,insert:t.text},range:ew.cursor(e.from+t.length,-1)}}):r.replaceSelection(a);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function n0(e,t,r,n){if(1==n)return ew.cursor(t,r);{if(2==n)return function(e,t,r=1){let n=e.charCategorizer(t),o=e.doc.lineAt(t),a=t-o.from;if(0==o.length)return ew.cursor(t);0==a?r=1:a==o.length&&(r=-1);let i=a,s=a;r<0?i=ec(o.text,a,!1):s=ec(o.text,a);let l=n(o.text.slice(i,s));for(;i>0;){let e=ec(o.text,i,!1);if(n(o.text.slice(e,i))!=l)break;i=e}for(;s<o.length;){let e=ec(o.text,s);if(n(o.text.slice(s,e))!=l)break;s=e}return ew.undirectionalRange(i+o.from,s+o.from)}(e.state,t,r);let o=e.docView.lineAt(t,r),a=e.state.doc.lineAt(o?o.posAtEnd:t),i=o?o.posAtStart:a.from,s=o?o.posAtEnd:a.to;return s<e.state.doc.length&&s==a.to&&s++,ew.undirectionalRange(i,s)}}nG.scroll=e=>{let t=e.inputState;t.lastScrollTop=e.scrollDOM.scrollTop,t.lastScrollLeft=e.scrollDOM.scrollLeft,tN.ios&&!t.touchActive&&(t.lastIOSMomentumScroll=Date.now())},nG.wheel=nG.mousewheel=e=>{e.inputState.lastWheelEvent=Date.now()},nY.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&0!=e.inputState.tabFocusMode&&(e.inputState.tabFocusMode=Date.now()+2e3),!1),nG.touchstart=(e,t)=>{let r=e.inputState,n=t.targetTouches[0];r.touchActive=!0,r.lastTouchTime=Date.now(),n&&(r.lastTouchX=n.clientX,r.lastTouchY=n.clientY),r.setSelectionOrigin("select.pointer")},nG.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},nG.touchend=(e,t)=>{e.inputState.touchActive=!1},nY.mousedown=(e,t)=>{var r,n;let o,a,i;if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let s=null;for(let r of e.state.facet(rB))if(s=r(e,t))break;if(s||0!=t.button||(r=e,n=t,o=r.posAndSideAtCoords({x:n.clientX,y:n.clientY},!1),a=n4(n),i=r.state.selection,s={update(e){e.docChanged&&(o.pos=e.changes.mapPos(o.pos),i=i.map(e.changes))},get(e,t,n){let s=r.posAndSideAtCoords({x:e.clientX,y:e.clientY},!1),l,c=n0(r,s.pos,s.assoc,a);if(o.pos!=s.pos&&!t){let e=n0(r,o.pos,o.assoc,a),t=Math.min(e.from,c.from),n=Math.max(e.to,c.to);c=t<c.from?ew.range(t,n,c.assoc):ew.range(n,t,c.assoc)}return t?i.replaceRange(i.main.extend(c.from,c.to,c.assoc)):n&&1==a&&i.ranges.length>1&&(l=function(e,t){for(let r=0;r<e.ranges.length;r++){let{from:n,to:o}=e.ranges[r];if(n<=t&&o>=t)return ew.create(e.ranges.slice(0,r).concat(e.ranges.slice(r+1)),e.mainIndex==r?0:e.mainIndex-(e.mainIndex>r))}return null}(i,s.pos))?l:n?i.addRange(c):ew.create([c])}}),s){let r=!e.hasFocus;e.inputState.startMouseSelection(new nI(e,t,s,r)),r&&e.observer.ignore(()=>{rs(e.contentDOM);let t=e.root.activeElement;t&&!t.contains(e.contentDOM)&&t.blur()});let n=e.inputState.mouseSelection;if(n)return n.start(t),!1===n.dragging}else e.inputState.setSelectionOrigin("select.pointer");return!1};let n1=tN.ie&&tN.ie_version<=11,n2=null,n8=0,n5=0;function n4(e){if(!n1)return e.detail;let t=n2,r=n5;return n2=e,n5=Date.now(),n8=!t||r>Date.now()-400&&2>Math.abs(t.clientX-e.clientX)&&2>Math.abs(t.clientY-e.clientY)?(n8+1)%3:1}function n3(e,t,r,n){let o;if(!(r=nK(e.state,rZ,r)))return;let a=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:i}=e.inputState,s=n&&i&&((o=e.state.facet(rT)).length?o[0](t):tN.mac?!t.altKey:!t.ctrlKey)?{from:i.from,to:i.to}:null,l={from:a,insert:r},c=e.state.changes(s?[s,l]:l);e.focus(),e.dispatch({changes:c,selection:{anchor:c.mapPos(a,-1),head:c.mapPos(a,1)},userEvent:s?"move.drop":"input.drop"}),e.inputState.draggedContent=null}nY.dragstart=(e,t)=>{let{selection:{main:r}}=e.state;if(t.target.draggable){let n=e.docView.tile.nearest(t.target);if(n&&n.isWidget()){let e=n.posAtStart,t=e+n.length;(e>=r.to||t<=r.from)&&(r=ew.undirectionalRange(e,t))}}let{inputState:n}=e;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=r,t.dataTransfer&&(t.dataTransfer.setData("Text",nK(e.state,rj,e.state.sliceDoc(r.from,r.to))),t.dataTransfer.effectAllowed="copyMove"),!1},nY.dragend=e=>(e.inputState.draggedContent=null,!1),nY.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let r=t.dataTransfer.files;if(r&&r.length){let n=Array(r.length),o=0,a=()=>{++o==r.length&&n3(e,t,n.filter(e=>null!=e).join(e.state.lineBreak),!1)};for(let e=0;e<r.length;e++){let t=new FileReader;t.onerror=a,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(n[e]=t.result),a()},t.readAsText(r[e])}return!0}{let r=t.dataTransfer.getData("Text");if(r)return n3(e,t,r,!0),!0}return!1},nY.paste=(e,t)=>
3{if(e.state.readOnly)return!0;e.observer.flush();let r=nF?null:t.clipboardData;return r?(nJ(e,r.getData("text/plain")||r.getData("text/uri-list")),!0):(!function(e){let t=e.dom.parentNode;if(!t)return;let r=t.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout(()=>{e.focus(),r.remove(),nJ(e,r.value)},50)}(e),!1)};let n6=null;nY.copy=nY.cut=(e,t)=>{if(!t8(e.contentDOM,e.observer.selectionRange))return!1;let{text:r,ranges:n,linewise:o}=function(e){let t=[],r=[],n=!1;for(let n of e.selection.ranges)n.empty||(t.push(e.sliceDoc(n.from,n.to)),r.push(n));if(!t.length){let o=-1;for(let{from:n}of e.selection.ranges){let a=e.doc.lineAt(n);a.number>o&&(t.push(a.text),r.push({from:a.from,to:Math.min(e.doc.length,a.to+1)})),o=a.number}n=!0}return{text:nK(e,rj,t.join(e.lineBreak)),ranges:r,linewise:n}}(e.state);if(!r&&!o)return!1;n6=o?r:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let a=nF?null:t.clipboardData;return a?(a.clearData(),a.setData("text/plain",r),!0):(!function(e,t){let r=e.dom.parentNode;if(!r)return;let n=r.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=t,n.focus(),n.selectionEnd=t.length,n.selectionStart=0,setTimeout(()=>{n.remove(),e.focus()},50)}(e,r),!1)};let n9=eY.define();function n7(e,t){let r=[];for(let n of e.facet(rV)){let o=n(e,t);o&&r.push(o)}return r.length?e.update({effects:r,annotations:n9.of(!0)}):null}function oe(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let r=n7(e.state,t);r?e.dispatch(r):e.update([])}},10)}nG.focus=e=>{e.inputState.lastFocusTime=Date.now(),!e.scrollDOM.scrollTop&&(e.inputState.lastScrollTop||e.inputState.lastScrollLeft)&&(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),oe(e)},nG.blur=e=>{e.observer.clearSelectionRange(),oe(e)},nG.compositionstart=nG.compositionupdate=e=>{if(!e.observer.editContext&&(null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0)){let{main:t}=e.state.selection;t.empty||e.lineBlockAt(t.from).from==e.lineBlockAt(t.to).from||e.dispatch({changes:e.state.selection.ranges.filter(e=>!e.empty).map(e=>({from:e.from,to:e.to})),userEvent:"input"}),e.inputState.composing=0}},nG.compositionend=e=>{e.observer.editContext||(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,tN.chrome&&tN.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50))},nG.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},nY.beforeinput=(e,t)=>{var r,n;let o;if(("insertText"==t.inputType||"insertCompositionText"==t.inputType)&&(e.inputState.insertingText=t.data,e.inputState.insertingTextAt=Date.now()),"insertReplacementText"==t.inputType&&e.observer.editContext){let n=null==(r=t.dataTransfer)?void 0:r.getData("text/plain"),o=t.getTargetRanges();if(n&&o.length){let t=o[0],r=e.posAtDOM(t.startContainer,t.startOffset),a=e.posAtDOM(t.endContainer,t.endOffset);return nM(e,{from:r,to:a,insert:e.state.toText(n)},null),!0}}if(tN.chrome&&tN.android&&(o=nz.find(e=>e.inputType==t.inputType))&&(e.observer.delayAndroidKey(o.key,o.keyCode),"Backspace"==o.key||"Delete"==o.key)){let t=(null==(n=window.visualViewport)?void 0:n.height)||0;setTimeout(()=>{var r;((null==(r=window.visualViewport)?void 0:r.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return tN.ios&&"deleteContentForward"==t.inputType&&e.observer.flushSoon(),tN.safari&&"insertText"==t.inputType&&e.inputState.composing>=0&&setTimeout(()=>nG.compositionend(e,t),20),!1};let ot=new Set,or=["pre-wrap","normal","pre-line","break-spaces"],on=!1;class oo{constructor(e){this.lineWrapping=e,this.doc=ee.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let r=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((t-e-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return or.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let r=0;r<e.length;r++){let n=e[r];n<0?r++:this.heightSamples[Math.floor(10*n)]||(t=!0,this.heightSamples[Math.floor(10*n)]=!0)}return t}refresh(e,t,r,n,o,a){let i=or.indexOf(e)>-1,s=Math.abs(t-this.lineHeight)>.3||this.lineWrapping!=i;
vendor: 6,595 bytes, line 3
3if(this.lineWrapping=i,this.lineHeight=t,this.charWidth=r,this.textHeight=n,this.lineLength=o,s){this.heightSamples={};for(let e=0;e<a.length;e++){let t=a[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return s}}class oa{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class oi{constructor(e,t,r,n,o){this.from=e,this.length=t,this.top=r,this.height=n,this._content=o}get type(){return"number"==typeof this._content?tH.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof tF?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new oi(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var os=((d=os||(os={}))[d.ByPos=0]="ByPos",d[d.ByHeight=1]="ByHeight",d[d.ByPosNoHeight=2]="ByPosNoHeight",d);class ol{constructor(e,t,r=2){this.length=e,this.height=t,this.flags=r}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=2*!!e|-3&this.flags}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>.001&&(on=!0),this.height=e)}replace(e,t,r){return ol.of(r)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,r,n){let o=this,a=r.doc;for(let i=n.length-1;i>=0;i--){let{fromA:s,toA:l,fromB:c,toB:u}=n[i],d=o.lineAt(s,os.ByPosNoHeight,r.setDoc(t),0,0),h=d.to>=l?d:o.lineAt(l,os.ByPosNoHeight,r,0,0);for(u+=h.to-l,l=h.to;i>0&&d.from<=n[i-1].toA;)s=n[i-1].fromA,c=n[i-1].fromB,i--,s<d.from&&(d=o.lineAt(s,os.ByPosNoHeight,r,0,0));c+=d.from-s,s=d.from;let p=oO.build(r.setDoc(a),e,c,u);o=oc(o,o.replace(s,l,p))}return o.updateHeight(r,0)}static empty(){return new oh(0,0,0)}static of(e){if(1==e.length)return e[0];let t=0,r=e.length,n=0,o=0;for(;;)if(t==r)if(n>2*o){let o=e[t-1];o.break?e.splice(--t,1,o.left,null,o.right):e.splice(--t,1,o.left,o.right),r+=1+o.break,n-=o.size}else if(o>2*n){let t=e[r];t.break?e.splice(r,1,t.left,null,t.right):e.splice(r,1,t.left,t.right),r+=2+t.break,o-=t.size}else break;else if(n<o){let r=e[t++];r&&(n+=r.size)}else{let t=e[--r];t&&(o+=t.size)}let a=!1;return null==e[t-1]?(a=!0,t--):null==e[t]&&(a=!0,r++),new of(ol.of(e.slice(0,t)),a,ol.of(e.slice(r)))}}function oc(e,t){return e==t?e:(e.constructor!=t.constructor&&(on=!0),t)}ol.prototype.size=1;let ou=tI.replace({});class od extends ol{constructor(e,t,r){super(e,t),this.deco=r,this.spaceAbove=0}mainBlock(e,t){return new oi(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(e,t,r,n){return this.spaceAbove&&e<r+this.spaceAbove?new oi(n,0,r,this.spaceAbove,ou):this.mainBlock(r,n)}lineAt(e,t,r,n,o){let a=this.mainBlock(n,o);return this.spaceAbove?this.blockAt(0,r,n,o).join(a):a}forEachLine(e,t,r,n,o,a){e<=o+this.length&&t>=o&&a(this.lineAt(0,os.ByPos,r,n,o))}setMeasuredHeight(e){let t=e.heights[e.index++];t<0?(this.spaceAbove=-t,t=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(t)}updateHeight(e,t=0,r=!1,n){return n&&n.from<=t&&n.more&&this.setMeasuredHeight(n),this.outdated=!1,this}toString(){return`block(${this.length})`}}class oh extends od{constructor(e,t,r){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=r}mainBlock(e,t){return new oi(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,t,r){let n=r[0];return 1==r.length&&(n instanceof oh||n instanceof op&&4&n.flags)&&10>Math.abs(this.length-n.length)?(n instanceof op?n=new oh(n.length,this.height,this.spaceAbove):n.height=this.height,this.outdated||(n.outdated=!1),n):ol.of(r)}updateHeight(e,t=0,r=!1,n){return n&&n.from<=t&&n.more?this.setMeasuredHeight(n):(r||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class op extends ol{constructor(e){super(e,0)}heightMetrics(e,t){let r=e.doc.lineAt(t).number,n=e.doc.lineAt(t+this.length).number,o=n-r+1,a,i=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*o);a=t/o,this.length>o+1&&(i=(this.height-t)/(this.length-o-1))}else a=this.height/o;return{firstLine:r,lastLine:n,perLine:a,perChar:i}}blockAt(e,t,r,n){let{firstLine:o,lastLine:a,perLine:i,perChar:s}=this.heightMetrics(t,n);if(t.lineWrapping){let o=n+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-r)/this.height))*this.length)),a=t.doc.lineAt(o),l=i+a.length*s,c=Math.max(r,e-l/2);return new oi(a.from,a.length,c,l,0)}{let n=Math.max(0,Math.min(a-o,Math.floor((e-r)/i))),{from:s,length:l}=t.doc.line(o+n);return new oi(s,l,r+i*n,i,0)}}lineAt(e,t,r,n,o){if(t==os.ByHeight)return this.blockAt(e,r,n,o);if(t==os.ByPosNoHeight){let{from:t,to:n}=r.doc.lineAt(e);return new oi(t,n-t,0,0,0)}let{firstLine:a,perLine:i,perChar:s}=this.heightMetrics(r,o),l=r.doc.lineAt(e),c=i+l.length*s,u=l.number-a,d=n+i*u+s*(l.from-o-u);return new oi(l.from,l.length,Math.max(n,Math.min(d,n+this.height-c)),c,0)}forEachLine(e,t,r,n,o,a){e=Math.max(e,o),t=Math.min(t,o+this.length);let{firstLine:i,perLine:s,perChar:l}=this.heightMetrics(r,o);for(let c=e,u=n;c<=t;){let t=r.doc.lineAt(c);if(c==e){let r=t.number-i;u+=s*r+l*(e-o-r)}let n=s+l*t.length;a(new oi(t.from,t.length,u,n,0)),u+=n,c=t.to+1}}replace(e,t,r){let n=this.length-t;if(n>0){let e=r[r.length-1];e instanceof op?r[r.length-1]=new op(e.length+n):r.push(null,new op(n-1))}if(e>0){let t=r[0];t instanceof op?r[0]=new op(e+t.length):r.unshift(new op(e-1),null)}return ol.of(r)}decomposeLeft(e,t){t.push(new op(e-1),null)}decomposeRight(e,t){t.push(null,new op(this.length-e-1))}updateHeight(e,t=0,r=!1,n){let o=t+this.length;if(n&&n.from<=t+this.length&&n.more){let r=[],a=Math.max(t,n.from),i=-1;for(n.from>t&&r.push(new op(n.from-t-1).updateHeight(e,t));a<=o&&n.more;){let t=e.doc.lineAt(a).length;r.length&&r.push(null);let o=n.heights[n.index++],s=0;o<0&&(s=-o,o=n.heights[n.index++]),-1==i?i=o:Math.abs(o-i)>=.001&&(i=-2);let l=new oh(t,o,s);l.outdated=!1,r.push(l),a+=t+1}a<=o&&r.push(null,new op(o-a).updateHeight(e,a));let s=ol.of(r);return(i<0||Math.abs(s.height-this.height)>=.001||Math.abs(i-this.heightMetrics(e,t).perLine)>=.001)&&(on=!0),oc(this,s)}return(r||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}
3class of extends ol{constructor(e,t,r){super(e.length+ +!!t+r.length,e.height+r.height,!!t|(e.outdated||r.outdated?2:0)),this.left=e,this.right=r,this.size=e.size+r.size}get break(){return 1&this.flags}blockAt(e,t,r,n){let o=r+this.left.height;return e<o?this.left.blockAt(e,t,r,n):this.right.blockAt(e,t,o,n+this.left.length+this.break)}lineAt(e,t,r,n,o){let a=n+this.left.height,i=o+this.left.length+this.break,s=t==os.ByHeight?e<a:e<i,l=s?this.left.lineAt(e,t,r,n,o):this.right.lineAt(e,t,r,a,i);if(this.break||(s?l.to<i:l.from>i))return l;let c=t==os.ByPosNoHeight?os.ByPosNoHeight:os.ByPos;return s?l.join(this.right.lineAt(i,c,r,a,i)):this.left.lineAt(i,c,r,n,o).join(l)}forEachLine(e,t,r,n,o,a){let i=n+this.left.height,s=o+this.left.length+this.break;if(this.break)e<s&&this.left.forEachLine(e,t,r,n,o,a),t>=s&&this.right.forEachLine(e,t,r,i,s,a);else{let l=this.lineAt(s,os.ByPos,r,n,o);e<l.from&&this.left.forEachLine(e,Math.min(t,l.from-1),r,n,o,a),l.to>=e&&l.from<=t&&a(l),t>l.to&&this.right.forEachLine(Math.max(e,l.to+1),t,r,i,s,a)}}replace(e,t,r){let n=this.left.length+this.break;if(t<n)return this.balanced(this.left.replace(e,t,r),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-n,t-n,r));let o=[];e>0&&this.decomposeLeft(e,o);let a=o.length;for(let e of r)o.push(e);if(e>0&&om(o,a-1),t<this.length){let e=o.length;this.decomposeRight(t,o),om(o,e)}return ol.of(o)}decomposeLeft(e,t){let r=this.left.length;if(e<=r)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&e>=++r&&t.push(null),e>r&&this.right.decomposeLeft(e-r,t)}decomposeRight(e,t){let r=this.left.length,n=r+this.break;if(e>=n)return this.right.decomposeRight(e-n,t);e<r&&this.left.decomposeRight(e,t),this.break&&e<n&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?ol.of(this.break?[e,null,t]:[e,t]):(this.left=oc(this.left,e),this.right=oc(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,r=!1,n){let{left:o,right:a}
vendor: 4,172 bytes, line 3
3=this,i=t+o.length+this.break,s=null;return(n&&n.from<=t+o.length&&n.more?s=o=o.updateHeight(e,t,r,n):o.updateHeight(e,t,r),n&&n.from<=i+a.length&&n.more?s=a=a.updateHeight(e,i,r,n):a.updateHeight(e,i,r),s)?this.balanced(o,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function om(e,t){let r,n;null==e[t]&&(r=e[t-1])instanceof op&&(n=e[t+1])instanceof op&&e.splice(t-1,3,new op(r.length+1+n.length))}class oO{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof oh?r.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new oh(e-this.pos,-1,0)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,r){if(e<t||r.heightRelevant){let n=r.widget?r.widget.estimatedHeight:0,o=r.widget?r.widget.lineBreaks:0;n<0&&(n=this.oracle.lineHeight);let a=t-e;r.block?this.addBlock(new od(a,n,r)):(a||o||n>=5)&&this.addLineDeco(n,o,a)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new oh(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,t){let r=new op(t-e);return this.oracle.doc.lineAt(e).to==t&&(r.flags|=4),r}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof oh)return e;let t=new oh(0,-1,0);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,r){let n=this.ensureLine();n.length+=r,n.collapsed+=r,n.widgetHeight=Math.max(n.widgetHeight,e),n.breaks+=t,this.writtenTo=this.pos=this.pos+r}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof oh||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new oh(0,-1,0));let r=e;for(let e of this.nodes)e instanceof oh&&e.updateHeight(this.oracle,r),r+=e?e.length:1;return this.nodes}static build(e,t,r,n){let o=new oO(r,e);return tn.spans(t,r,n,o,0),o.finish(r)}}class og{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,r,n){(e<t||r&&r.heightRelevant||n&&n.heightRelevant)&&tJ(e,t,this.changes,5)}}class ov{constructor(e,t,r,n){this.from=e,this.to=t,this.size=r,this.displaySize=n}static same(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],o=t[r];if(n.from!=o.from||n.to!=o.to||n.size!=o.size)return!1}return!0}draw(e,t){return tI.replace({widget:new oy(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class oy extends tL{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class ob{constructor(e,t){this.view=e,this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaleX=1,this.scaleY=1,this.scrollOffset=0,this.scrolledToBottom=!1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=ow,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=rf.LTR,this.visibleRanges=[],this.mustEnfor
3ceCursorAssoc=!1;let r=t.facet(rG).some(e=>"function"!=typeof e&&"cm-lineWrapping"==e.class);this.heightOracle=new oo(r),this.stateDeco=o$(t),this.heightMap=ol.empty().applyChanges(this.stateDeco,ee.empty,this.heightOracle.setDoc(t.doc),[new r3(0,0,0,t.doc.length)]);for(let e=0;e<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());e++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=tI.set(this.lineGaps.map(e=>e.draw(this,!1))),this.scrollParent=e.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let r=0;r<=1;r++){let n=r?t.head:t.anchor;if(!e.some(({from:e,to:t})=>n>=e&&n<=t)){let{from:t,to:r}=this.lineBlockAt(n);e.push(new oS(t,r))}}return this.viewports=e.sort((e,t)=>e.from-t.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?ow:new oP(this.heightOracle,this.heightMap,this.viewports),2*!e.eq(this.scaler)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(oQ(e,this.scaler))})}update(e,t=null){var r,n;let o;this.state=e.state;let a=this.stateDeco;this.stateDeco=o$(this.state);let i=e.changedRanges,s=r3.extendWithRanges(i,(r=this.stateDeco,n=e?e.changes:eO.empty(this.state.doc.length),o=new og,tn.compare(a,r,n,o,0),o.changes)),l=this.heightMap.height,c=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);on=!1,this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),(this.heightMap.height!=l||on)&&(e.flags|=2),c?(this.scrollAnchorPos=e.changes.mapPos(c.from,-1),this.scrollAnchorHeight=c.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=l);let u=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<u.from||t.range.head>u.to)||!this.viewportIsAppropriate(u))&&(u=this.getViewport(0,t));let d=u.from!=this.viewport.from||u.to!=this.viewport.to;this.viewport=u,e.flags|=this.updateForViewport(),(d||!e.changes.empty||2&e.flags)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(r_)&&(this.mustEnforceCursorAssoc=!0)}measure(){var e;let t,r,{view:n}=this,o=n.contentDOM,a=window.getComputedStyle(o),i=this.heightOracle,s=a.whiteSpace;this.defaultTextDirection="rtl"==a.direction?rf.RTL:rf.LTR;let l=this.heightOracle.mustRefreshForWrapping(s)||"refresh"===this.mustMeasureContent,c=o.getBoundingClientRect(),u=l||this.mustMeasureContent||this.contentDOMHeight!=c.height;this.contentDOMHeight=c.height,this.mustMeasureContent=!1;let d=0,h=0;if(c.width&&c.height){let{scaleX:e,scaleY:t}=rt(o,c);(e>.005&&Math.abs(this.scaleX-e)>.005||t>.005&&Math.abs(this.scaleY-t)>.005)&&(this.scaleX=e,this.scaleY=t,d|=16,l=u=!0)}let p=(parseInt(a.paddingTop)||0)*this.scaleY,f=(parseInt(a.paddingBottom)||0)*this.scaleY;(this.paddingTop!=p||this.paddingBottom!=f)&&(this.paddingTop=p,this.paddingBottom=f,d|=18),this.editorWidth!=n.scrollDOM.clientWidth&&(i.lineWrapping&&(u=!0),this.editorWidth=n.scrollDOM.clientWidth,d|=16);let m=rr(this.view.contentDOM,!1).y;m!=this.scrollParent&&(this.scrollParent=m,this.scrollAnchorHeight=-1,this.scrollOffset=0);let O=this.getScrollOffset();this.scrollOffset!=O&&(this.scrollAnchorHeight=-1,this.scrollOffset=O),this.scrolledToBottom=ru(this.scrollParent||n.win);let g=(this.printing?function(e,t){let r=e.getBoundingClientRect();return{left:0,right:r.right-r.left,top:t,bottom:r.bottom-(r.top+t)}}:function(e,t){let r=e.getBoundingClientRect(),n=e.ownerDocument,o=n.defaultView||window,a=Math.max(0,r.left),i=Math.min(o.innerWidth,r.right),s=Math.max(0,r.top),l=Math.min(o.innerHeight,r.bottom);for(let t=e.parentNode;t&&t!=n.body;)if(1==t.nodeType){let r=t,n=window.getComputedStyle(r);
3if((r.scrollHeight>r.clientHeight||r.scrollWidth>r.clientWidth)&&"visible"!=n.overflow){let n=r.getBoundingClientRect();a=Math.max(a,n.left),i=Math.min(i,n.right),s=Math.max(s,n.top),l=Math.min(t==e.parentNode?o.innerHeight:l,n.bottom)}t="absolute"==n.position||"fixed"==n.position?r.offsetParent:r.parentNode}else if(11==t.nodeType)t=t.host;else break;return{left:a-r.left,right:Math.max(a,i)-r.left,top:s-(r.top+t),bottom:Math.max(s,l)-(r.top+t)}})(o,this.paddingTop),v=g.top-this.pixelViewport.top,y=g.bottom-this.pixelViewport.bottom;this.pixelViewport=g;let b=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(b!=this.inView&&(this.inView=b,b&&(u=!0)),!this.inView&&!this.scrollTarget&&(t=(e=n.dom).getBoundingClientRect(),r=e.ownerDocument.defaultView||window,!(t.left<r.innerWidth)||!(t.right>0)||!(t.top<r.innerHeight)||!(t.bottom>0)))return 0;let S=c.width;if((this.contentDOMWidth!=S||this.editorHeight!=n.scrollDOM.clientHeight)&&(this.contentDOMWidth=c.width,this.editorHeight=n.scrollDOM.clientHeight,d|=16),u){let e=n.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(e)&&(l=!0),l||i.lineWrapping&&Math.abs(S-this.contentDOMWidth)>i.charWidth){let{lineHeight:t,charWidth:r,textHeight:o}=n.docView.measureTextSize();(l=t>0&&i.refresh(s,t,r,o,Math.max(5,S/r),e))&&(n.docView.minWidth=0,d|=16)}for(let t of(v>0&&y>0?h=Math.max(v,y):v<0&&y<0&&(h=Math.min(v,y)),on=!1,this.viewports)){let r=t.from==this.viewport.from?e:n.docView.measureVisibleLineHeights(t);this.heightMap=(l?ol.empty().applyChanges(this.stateDeco,ee.empty,this.heightOracle,[new r3(0,0,0,n.state.doc.length)]):this.heightMap).updateHeight(i,0,l,new oa(t.from,r))}on&&(d|=2)}let x=!this.viewportIsAppropriate(this.viewport,h)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return x&&(2&d&&(d|=this.updateScaler()),this.viewport=this.getViewport(h,this.scrollTarget),d|=this.updateForViewport()),(2&d||x)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(l?[]:this.lineGaps,n)),d|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,n.docView.enforceCursorAssoc()),d}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let r=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),n=this.heightMap,o=this.heightOracle,{visibleTop:a,visibleBottom:i}=this,s=new oS(n.lineAt(a-1e3*r,os.ByHeight,o,0,0).from,n.lineAt(i+(1-r)*1e3,os.ByHeight,o,0,0).to);if(t){let{head:e}=t.range;if(e<s.from||e>s.to){let r=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),a=n.lineAt(e,os.ByPos,o,0,0),i;i="center"==t.y?(a.top+a.bottom)/2-r/2:"start"==t.y||"nearest"==t.y&&e<s.from?a.top:a.bottom-r,s=new oS(n.lineAt(i-500,os.ByHeight,o,0,0).from,n.lineAt(i+r+500,os.ByHeight,o,0,0).to)}}return s}mapViewport(e,t){let r=t.mapPos(e.from,-1),n=t.mapPos(e.to,1);return new oS(this.heightMap.lineAt(r,os.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(n,os.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},r=0){if(!this.inView)return!0;let{top:n}=this.heightMap.lineAt(e,os.ByPos,this.heightOracle,0,0),{bottom:o}=this.heightMap.lineAt(t,os.ByPos,this.heightOracle,0,0),{visibleTop:a,visibleBottom:i}=this;return(0==e||n<=a-Math.max(10,Math.min(-r,250)))&&(t==this.state.doc.length||o>=i+Math.max(10,Math.min(r,250)))&&n>a-2e3&&o<i+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let r=[];for(let n of e)t.touchesRange(n.from,n.to)||r.push(new ov(t.mapPos(n.from),t.mapPos(n.to),n.size,n.displaySize));return r}ensureLineGaps(e,t){let r=this.heightOracle.lineWrapping,n=r?1e4:2e3,o=n>>1,a=n<<1;if(this.defaultTextDirection!=rf.LTR&&!r)return[];let i=[],s=(n,a,l,c)=>{if(a-n<o)return;let u=this.state.selection.main,d=[u.from];for(let e of(u.empty||d.push(u.to),d))if(e>n&&e<a){s(n,e-10,l,c),s(e+10,a,l,c);return}let h=function(e,t){for(let r of e)if(t(r))return r}(e,e=>e.from>=l.from&&e.to<=l.to&&Math.abs(e.from-n)<o&&Math.abs(e.to-a)<o&&!d.some(t=>e.from<t&&e.to>t));if(!h){if(a<l.to&&t&&r&&t.visibleRanges.some(e=>e.from<=a&&e.to>=a)){let e=t.moveToLineBoundary(ew.cursor(a),!1,!0).head;e>n&&(a=e)}let e=this.gapSize(l,n,a,c),o=r||e<2e6?e:2e6;h=new ov(n,a,e,o)}i.push(h)},l=t=>{var o,i,l;let c,u,d,h,p;if(t.length<a||t.type!=tH.Text)return;let f=(o=t.from,i=t.to,l=this.stateDeco,d=[],h=o,p=0,tn.spans(l,o,i,{span(){},point(e,t){e>
vendor: 5,817 bytes, line 3
3h&&(d.push({from:h,to:e}),p+=e-h),h=t}},20),h<i&&(d.push({from:h,to:i}),p+=i-h),{total:p,ranges:d});if(f.total<a)return;let m=this.scrollTarget?this.scrollTarget.range.head:null;if(r){let e,r,o=n/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=m){let n=ok(f,m),a=((this.visibleBottom-this.visibleTop)/2+o)/t.height;e=n-a,r=n+a}else e=(this.visibleTop-t.top-o)/t.height,r=(this.visibleBottom-t.top+o)/t.height;c=ox(f,e),u=ox(f,r)}else{let r,o,a=f.total*this.heightOracle.charWidth,i=n*this.heightOracle.charWidth,s=0;if(a>2e6)for(let r of e)r.from>=t.from&&r.from<t.to&&r.size!=r.displaySize&&r.from*this.heightOracle.charWidth+s<this.pixelViewport.left&&(s=r.size-r.displaySize);let l=this.pixelViewport.left+s,d=this.pixelViewport.right+s;if(null!=m){let e=ok(f,m),t=((d-l)/2+i)/a;r=e-t,o=e+t}else r=(l-i)/a,o=(d+i)/a;c=ox(f,r),u=ox(f,o)}c>t.from&&s(t.from,c,t,f),u<t.to&&s(u,t.to,t,f)};for(let e of this.viewportLines)Array.isArray(e.type)?e.type.forEach(l):l(e);return i}gapSize(e,t,r,n){let o=ok(n,r)-ok(n,t);return this.heightOracle.lineWrapping?e.height*o:n.total*this.heightOracle.charWidth*o}updateLineGaps(e){ov.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=tI.set(e.map(e=>e.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let r=[];tn.spans(t,this.viewport.from,this.viewport.to,{span(e,t){r.push({from:e,to:t})},point(){}},20);let n=0;if(r.length!=this.visibleRanges.length)n=12;else for(let t=0;t<r.length&&!(8&n);t++){let o=this.visibleRanges[t],a=r[t];(o.from!=a.from||o.to!=a.to)&&(n|=4,e&&e.mapPos(o.from,-1)==a.from&&e.mapPos(o.to,1)==a.to||(n|=8))}return this.visibleRanges=r,n}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||oQ(this.heightMap.lineAt(e,os.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||oQ(this.heightMap.lineAt(this.scaler.fromDOM(e),os.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop*this.scaleY:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return oQ(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class oS{constructor(e,t){this.from=e,this.to=t}}function ox({total:e,ranges:t},r){if(r<=0)return t[0].from;if(r>=1)return t[t.length-1].to;let n=Math.floor(e*r);for(let e=0;;e++){let{from:r,to:o}=t[e],a=o-r;if(n<=a)return r+n;n-=a}}function ok(e,t){let r=0;for(let{from:n,to:o}of e.ranges){if(t<=o){r+=t-n;break}r+=o-n}return r/e.total}let ow={toDOM:e=>e,fromDOM:e=>e,scale:1,eq(e){return e==this}};function o$(e){let t=e.facet(rF).filter(e=>"function"!=typeof e),r=e.facet(rJ).filter(e=>"function"!=typeof e);return r.length&&t.push(tn.join(r)),t}class oP{constructor(e,t,r){let n=0,o=0,a=0;for(let i of(this.viewports=r.map(({from:r,to:o})=>{let a=t.lineAt(r,os.ByPos,e,0,0).top,i=t.lineAt(o,os.ByPos,e,0,0).bottom;return n+=i-a,{from:r,to:o,top:a,bottom:i,domTop:0,domBottom:0}}),this.scale=(7e6-n)/(t.height-n),this.viewports))i.domTop=a+(i.top-o)*this.scale,a=i.domBottom=i.domTop+(i.bottom-i.top),o=i.bottom}toDOM(e){for(let t=0,r=0,n=0;;t++){let o=t<this.viewports.length?this.viewports[t]:null;if(!o||e<o.top)return n+(e-r)*this.scale;if(e<=o.bottom)return o.domTop+(e-o.top);r=o.bottom,n=o.domBottom}}fromDOM(e){for(let t=0,r=0,n=0;;t++){let o=t<this.viewports.length?this.viewports[t]:null;if(!o||e<o.domTop)return r+(e-n)/this.scale;if(e<=o.domBottom)return o.top+(e-o.domTop);r=o.bottom,n=o.domBottom}}eq(e){return e instanceof oP&&this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,r)=>t.from==e.viewports[r].from&&t.to==e.viewports[r].to)}}function oQ(e,t){if(1==t.scale)return e;let r=t.toDOM(e.top),n=t.toDOM(e.bottom);return new oi(e.from,e.length,r,n-r,Array.isArray(e._content)?e._content.map(e=>oQ(e,t)):e._content)}let oC=eQ.define({combine:e=>e.join(" ")}),oT=eQ.define({combine:e=>e.indexOf(!0)>-1}),oB=tb.newName(),oA=tb.newName(),oR=tb.newName(),oE={"&light":"."+oA,"&dark":"."+oR};function oV(e,t,r){return new tb(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,t=>{if("&"==t)return e;if(!r||!r[t])throw RangeError(`Unsupported selector: ${t}`);return r[t]}):e+" "+t})}let oZ=oV("."+oB,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{userSelect:"none",position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}}
vendor: 5,136 bytes, line 3
3,"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-selectionHandle":{backgroundColor:"currentColor",width:"1.5px"},".cm-selectionHandle-start::before, .cm-selectionHandle-end::before":{content:'""',backgroundColor:"inherit",borderRadius:"50%",width:"8px",height:"8px",position:"absolute",left:"-3.25px"},".cm-selectionHandle-start::before":{top:"-8px"},".cm-selectionHandle-end::before":{bottom:"-8px"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},".cm-panels-top":{top:"0"},".cm-panels-bottom":{bottom:"0"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{background:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 0) no-repeat",backgroundSize:".4em",backgroundPosition:"calc(min(50%, 0px)) center"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},oE),oj={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},oX=tN.ie&&tN.ie_version<=11;class o_{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new rn,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let e of t)this.queue.push(e);(tN.ie&&tN.ie_version<=11||tN.ios&&e.composing)&&t.some(e=>
3"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&tN.android&&!1!==e.constructor.EDIT_CONTEXT&&!(tN.chrome&&tN.chrome_version<126)&&(this.editContext=new oN(e),e.state.facet(rz)&&(e.contentDOM.editContext=this.editContext.editContext)),oX&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var e;(null==(e=this.view.docView)?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver(e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){("change"!=e.type&&e.type||e.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,r)=>t!=e[r]))){for(let t of(this.gapIntersection.disconnect(),e))this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,n=this.selectionRange;if(r.state.facet(rz)?r.root.activeElement!=this.dom:!t8(this.dom,n))return;let o=n.anchorNode&&r.docView.tile.nearest(n.anchorNode);if(o&&o.isWidget()&&o.widget.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(tN.ie&&tN.ie_version<=11||tN.android&&tN.chrome)&&!r.state.selection.main.empty&&n.focusNode&&t4(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=t1(e.root);if(!t)return!1;let r=tN.safari&&11==e.root.nodeType&&e.root.activeElement==this.dom&&function(e,t){if(t.getComposedRanges){let r=t.getComposedRanges(e.root)[0];if(r)return oq(e,r)}let r=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),r=e.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),r?oq(e,r):null}(this.view,t)||t;if(!r||this.selectionRange.eq(r))return!1;let n=t8(this.dom,r);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let r=t.focusNode,n=t.focusOffset;if(!r||t.anchorNode!=r||t.anchorOffset!=n)return!1;for(n=Math.min(n,t7(r));;)if(n){if(1!=r.nodeType)return!1;let e=r.childNodes[n-1];"false"==e.contentEditable?n--:n=t7(r=e)}else{if(r==e)return!0;n=t3(r),r=r.parentNode}}(this.dom,r)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(r),n&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let r=this.dom;r;)if(1==r.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==r?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(r),r=r.assignedSlot||r.parentNode;else if(11==r.nodeType)r=r.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,oj),oX&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),oX&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var r;if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&rc(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null==(r=this.delayedAndroidKey)?void 0:r.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,r=-1,n=!1;for(let o of e){let e=this.readMutation(o);e&&(e.typeOver&&(n=!0),-1==t?{from:t,to:r}=e:(t=Math.min(e.from,t),r=Math.max(e.to,r)))}return{from:t,to:r,typeOver:n}}readChange(){let{from:e,to:t,typeOver:r}=this.processRecords(),n=this.selectionChanged&&t8(this.dom,this.selectionRange);
vendor: 4,763 bytes, line 3
3if(e<0&&!n)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new nX(this.view,e,t,r);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let r=this.view.state,n=n_(this.view,t);return this.view.state==r&&(t.domChanged||t.newSel&&!nN(this.view.state.selection,t.newSel.main))&&this.view.update([]),n}readMutation(e){let t=this.view.docView.tile.nearest(e.target);if(!t||t.isWidget())return null;if(t.markDirty("attributes"==e.type),"childList"==e.type){let r=oM(t,e.previousSibling||e.target.previousSibling,-1),n=oM(t,e.nextSibling||e.target.nextSibling,1);return{from:r?t.posAfter(r):t.posAtStart,to:n?t.posBefore(n):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(rz)!=e.state.facet(rz)&&(e.view.contentDOM.editContext=e.state.facet(rz)?this.editContext.editContext:null))}destroy(){var e,t,r;for(let n of(this.stop(),null==(e=this.intersection)||e.disconnect(),null==(t=this.gapIntersection)||t.disconnect(),null==(r=this.resizeScroll)||r.disconnect(),this.scrollTargets))n.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function oM(e,t,r){for(;t;){let n=r7.get(t);if(n&&n.parent==e)return n;let o=t.parentNode;t=o!=e.dom?o:r>0?t.nextSibling:t.previousSibling}return null}function oq(e,t){let r=t.startContainer,n=t.startOffset,o=t.endContainer,a=t.endOffset,i=e.docView.domAtPos(e.state.selection.main.anchor,1);return t4(i.node,i.offset,o,a)&&([r,n,o,a]=[o,a,r,n]),{anchorNode:r,anchorOffset:n,focusNode:o,focusOffset:a}}class oN{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});for(let r in this.handlers.textupdate=r=>{let n=e.state.selection.main,{anchor:o,head:a}=n,i=this.toEditorPos(r.updateRangeStart),s=this.toEditorPos(r.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:r.updateRangeStart,editorBase:i,drifted:!1});let l=s-i>r.text.length;i==this.from&&o<this.from?i=o:s==this.to&&o>this.to&&(s=o);let c=nq(e.state.sliceDoc(i,s),r.text,(l?n.from:n.to)-i,l?"end":null);if(!c){let t=ew.single(this.toEditorPos(r.selectionStart),this.toEditorPos(r.selectionEnd));nN(t,n)||e.dispatch({selection:t,userEvent:"select"});return}let u={from:c.from+i,to:c.toA+i,insert:ee.of(r.text.slice(c.from,c.toB).split("\n"))};if((tN.mac||tN.android)&&u.from==a-1&&/^\. ?$/.test(r.text)&&"off"==e.contentDOM.getAttribute("autocorrect")&&(u={from:i,to:s,insert:ee.of([r.text.replace("."," ")])}),this.pendingContextChange=u,!e.state.readOnly){let t=this.to-this.from+(u.to-u.from+u.insert.length);nM(e,u,ew.single(this.toEditorPos(r.selectionStart,t),this.toEditorPos(r.selectionEnd,t)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),u.from<u.to&&!u.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,r.updateRangeStart-1),Math.min(t.text.length,r.updateRangeStart+1)))&&this.handlers.compositionend(r)}
vendor: 4,420 bytes, line 3
3,this.handlers.characterboundsupdate=r=>{let n=[],o=null;for(let t=this.toEditorPos(r.rangeStart),a=this.toEditorPos(r.rangeEnd);t<a;t++){let r=e.coordsForChar(t);o=r&&new DOMRect(r.left,r.top,r.right-r.left,r.bottom-r.top)||o||new DOMRect,n.push(o)}t.updateCharacterBounds(r.rangeStart,n)},this.handlers.textformatupdate=t=>{let r=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,n=e.underlineThickness;if(!/none/i.test(t)&&!/none/i.test(n)){let o=this.toEditorPos(e.rangeStart),a=this.toEditorPos(e.rangeEnd);if(o<a){let e=`text-decoration: underline ${/^[a-z]/.test(t)?t+" ":"Dashed"==t?"dashed ":"Squiggle"==t?"wavy ":""}${/thin/i.test(n)?1:2}px`;r.push(tI.mark({attributes:{style:e}}).range(o,a))}}}e.dispatch({effects:rD.of(tI.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:t}=this.composing;this.composing=null,t&&this.reset(e.state)}},this.handlers)t.addEventListener(r,this.handlers[r]);this.measureReq={read:e=>{let t=t1(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,r=!1,n=this.pendingContextChange;return e.changes.iterChanges((o,a,i,s,l)=>{if(r)return;let c=l.length-(a-o);if(n&&a>=n.to)if(n.from==o&&n.to==a&&n.insert.eq(l)){n=this.pendingContextChange=null,t+=c,this.to+=c;return}else n=null,this.revertPending(e.state);if(o+=t,(a+=t)<=this.from)this.from+=c,this.to+=c;else if(o<this.to){if(o<this.from||a>this.to||this.to-this.from+l.length>3e4){r=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(a),l.toString()),this.to+=c}t+=c}),n&&!r&&this.revertPending(e.state),!r}update(e){let t=this.pendingContextChange,r=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(r.from,r.to)&&e.transactions.some(e=>!e.isUserEvent("input.type")&&e.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):this.applyEdits(e)&&this.rangeIsValid(e.state)?(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state):(this.pendingContextChange=null,this.reset(e.state)),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,r=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),n=this.toContextPos(t.head);(this.editContext.selectionStart!=r||this.editContext.selectionEnd!=n)&&this.editContext.updateSelection(r,n)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>3e4)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let r=this.composing;return r&&r.drifted?r.editorBase+(e-r.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class oD{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.clearAnnouncement=-1,this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="
3cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:r}=e;for(let t of(this.dispatchTransactions=e.dispatchTransactions||r&&(e=>e.forEach(e=>r(e,this)))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new ob(this,e.state||e3.create(e)),e.scrollTo&&e.scrollTo.is(rN)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(rL).map(e=>new rI(e)),this.plugins))t.update(this);this.observer=new o_(this),this.inputState=new nD(this),this.inputState.ensureHandlers(this.plugins),this.docView=new nS(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),(null==(t=document.fonts)?void 0:t.ready)&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...e){let t=1==e.length&&e[0]instanceof eJ?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,r=!1,n,o=this.state;for(let t of e){if(t.startState!=o)throw RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=t.state}if(this.destroyed){this.viewState.state=o;return}let a=this.hasFocus,i=0,s=null;e.some(e=>e.annotation(n9))?(this.inputState.notifiedFocused=a,i=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,(s=n7(o,a))||(i=1));let l=this.observer.delayedAndroidKey,c=null;if(l?(this.observer.clearDelayedAndroidKey(),((c=this.observer.readChange())&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(e3.phrases)!=this.state.facet(e3.phrases))return this.setState(o);n=r6.create(this,o,e),n.flags|=i;let u=this.viewState.scrollTarget;try{for(let t of(this.updateState=2,e)){if(u&&(u=u.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection,{x:r,y:n}=this.state.facet(oD.cursorScrollMargin);u=new rq(e.empty?e:ew.cursor(e.head,e.head>e.anchor?-1:1),"nearest","nearest",n,r)}for(let e of t.effects)e.is(rN)&&(u=e.value.clip(this.state))}this.viewState.update(n,u),this.bidiCache=oW.update(this.bidiCache,n.changes),n.empty||(this.updatePlugins(n),this.inputState.update(n)),t=this.docView.update(n),this.state.facet(r4)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(e=>e.isUserEvent("select.pointer")))}finally{this.updateState=0}if(n.startState.facet(oC)!=n.state.facet(oC)&&(this.viewState.mustMeasureContent=!0),(t||r||u||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!n.empty)for(let e of this.state.facet(rR))try{e(n)}catch(e){rU(this.state,e,"update listener")}(s||c)&&Promise.resolve().then(()=>{s&&this.state==s.startState&&this.dispatch(s),c&&!n_(this,c)&&l.force&&rc(this.contentDOM,l.key,l.keyCode)})}setState(e){if(0!=this.updateState)throw Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);for(let t of(this.viewState=new ob(this,e),this.plugins=e.facet(rL).map(e=>new rI(e)),this.pluginMap.clear(),this.plugins))t.update(this);this.docView.destroy(),this.docView=new nS(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(rL),r=e.state.facet(rL);if(t!=r){let n=[];for(let o of r){let r=t.indexOf(o);if(r<0)n.push(new rI(o));else{let t=this.plugins[r];t.mustUpdate=e,n.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=n,this.pluginMap.clear()}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this);t!=r&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(e){rU(this.state,e,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,r=this.viewState.scrollParent,n=this.viewState.getScrollOffset(),{scrollAnchorPos:o,scrollAnchorHeight:a,scaleY:i}=this.viewState;Math.abs(n-this.viewState.scrollOffset)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(a<0){if(ru(r||this.win))o=-1,a=this.viewState.heightMap.height/this.viewState.scaleY;else{let e=this.viewState.scrollAnchorAt(n);o=e.from,a=e.top}i=this.viewState.scaleY}this.updateState=1;let s=this.viewState.measure();if(!s&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let l=[];4&s||([this.measureRequests,l]=[l,this.measureRequests]);let c=l.map(e=>{try{return e.read(this)}catch(e){return rU(this.state,e),oz}}),u=r6.create(this,this.state,[]),d=!1;u.flags|=s,t?t.flags|=s:t=u,this.updateState=2,!u.empty&&(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),(d=this.docView.update(u))&&this.docViewUpdate());for(let e=0;e<l.length;e++)if(c[e]!=oz)try{let t=l[e];t.write&&t.write(c[e],this)}catch(e){rU(this.state,e)}if(d&&this.docView.updateSelection(!0),!u.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,a=-1;continue}else{let e=(o<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(o).top)/this.viewState.scaleY-a/i;if((e>1||e<-1)&&!(tN.ios&&this.inputState.lastIOSMomentumScroll>Date.now()-100)&&(r==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){n+=e,r?o<0?r.scrollTop=r.scrollHeight:r.scrollTop+=e:this.win.scrollBy(0,e),a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(rR))e(t)}get themeClasses(){return oB+" "+(this.state.facet(oT)?oR:oA)+" "+this.state.facet(oC)}updateAttrs(){let e=oL(this,rY,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(rz)?"true":"false",class:"cm-content",style:`${tN.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),oL(this,rG,t);let r=this.observer.ignore(()=>{let r=tW(this.contentDOM,this.contentAttrs,t),n=tW(this.dom,this.editorAttrs,e);return r||n});return this.editorAttrs=e,this.contentAttrs=t,r}showAnnouncements(e){let t=!0;for(let r of e)for(let e of r.effects)e.is(oD.announce)&&(t&&(this.announceDOM.textContent="",this.win.clearTimeout(this.clearAnnouncement),this.clearAnnouncement=this.win.setTimeout(()=>{this.announceDOM.textContent="Â "},200),t=!1),this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(r4);let e=this.state.facet(oD.cspNonce);tb.mount(this.root,this.styleModules.concat(oZ).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if((this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e)&&!(this.measureRequests.indexOf(e)>
3-1)){if(null!=e.key){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.plugin!=e)&&this.pluginMap.set(e,t=this.plugins.find(t=>t.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,r){return nA(this,e,nC(this,e,t,r))}moveByGroup(e,t){return nA(this,e,nC(this,e,t,t=>{var r;let n,o;return r=e.head,o=(n=this.state.charCategorizer(r))(t),e=>{let t=n(e);return o==e5.Space&&(o=t),o==t}}))}visualLineSide(e,t){return t?ew.cursor(e.to,1):ew.cursor(e.from,-1)}moveToLineBoundary(e,t,r=!0){return function(e,t,r,n){let o=nQ(e,t.head,t.assoc||-1),a=n&&o.type==tH.Text&&(e.lineWrapping||o.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>o.from?t.head-1:t.head):null;if(a){let t=e.dom.getBoundingClientRect(),n=e.textDirectionAt(o.from),i=e.posAtCoords({x:r==(n==rf.LTR)?t.right-1:t.left+1,y:(a.top+a.bottom)/2});if(null!=i)return ew.cursor(i,r?-1:1)}return ew.cursor(r?o.to:o.from,r?-1:1)}(this,e,t,r)}moveVertically(e,t,r){return nA(this,e,function(e,t,r,n){let o=t.head,a=r?1:-1;if(o==(r?e.state.doc.length:0))return ew.cursor(o,t.assoc);let i=t.goalColumn,s,l=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(o,t.assoc||((t.empty?r:t.head==t.from)?1:-1)),u=e.documentTop;if(c)null==i&&(i=c.left-l.left),s=a<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(o);null==i&&(i=Math.min(l.right-l.left,e.defaultCharacterWidth*(o-t.from))),s=(a<0?t.top:t.bottom)+u}let d=l.left+i,h=e.viewState.heightOracle.textHeight>>1,p=null!=n?n:h;for(let t=0;;t+=h){let n=s+(p+t)*a,o=nE(e,{x:d,y:n},!1,a);if(r?n>l.bottom:n<l.top)return ew.cursor(o.pos,o.assoc);let c=e.coordsAtPos(o.pos,o.assoc),u=c?(c.top+c.bottom)/2:0;if(!c||(r?u>s:u<s))return ew.cursor(o.pos,o.assoc,void 0,i)}}(this,e,t,r))}domAtPos(e,t=1){return this.docView.domAtPos(e,t)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){this.readMeasured();let r=nE(this,e,t);return r&&r.pos}posAndSideAtCoords(e,t=!0){return this.readMeasured(),nE(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let r=this.state.doc.lineAt(e),n=this.bidiSpans(r),o=n[rw.find(n,e-r.from,-1,t)];return r.length&&(e==r.from&&t<0||e==r.to&&t>0)&&o.dir!=this.textDirectionAt(r.from)&&(e==r.to?(e=r.from+o.from,t=1):(e=r.from+o.to,t=-1)),this.docView.coordsAt(e,t,o.dir==rf.RTL)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(rX)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>oU)return rP(e.length);let t=this.textDirectionAt(e.from),r;for(let n of this.bidiCache)if(n.from==e.from&&n.dir==t&&(n.fresh||function e(t,r){if(t.length!=r.length)return!1;for(let n=0;n<t.length;n++){let o=t[n],a=r[n];if(o.from!=a.from||o.to!=a.to||o.direction!=a.direction||!e(o.inner,a.inner))return!1}return!0}(n.isolates,r=r2(this,e))))return n.order;r||(r=r2(this,e));let n=function(e,t,r){if(!e)return[new rw(0,0,+(t==rO))];if(t==rm&&!r.length&&!rk.test(e))return rP(e.length);if(r.length)for(;e.length>r$.length;)r$[r$.length]=256;let n=[],o=+(t!=rm);return function e(t,r,n,o,a,i,s){let l=r%2?2:1;!function(e,t,r,n,o){for(let a=0;a<=n.length;a++){let i=a?n[a-1].to:t,s=a<n.length?n[a].from:r,l=a?256:o;for(let t=i,r=l,n=l;t<s;t++){let o=rx(e.charCodeAt(t));512==o?o=r:8==o&&4==n&&(o=16),r$[t]=4==o?2:o,7&o&&(n=o),r=o}for(let e=i,t=l,n=l;e<s;e++){let o=r$[e];if(128==o)e<s-1&&t==r$[e+1]&&24&t?o=r$[e]=t:r$[e]=256;else if(64==o){let o=e+1;for(;o<s&&64==r$[o];)o++;let a=e&&8==t||o<r&&8==r$[o]?1==n?1:8:256;for(let t=e;t<o;t++)r$[t]=a;e=o-1}else 8==o&&1==n&&(r$[e]=1);t=o,7&o&&(n=o)}}}(t,a,i,o,l),function(e,t,r,n,o){let a=1==o?2:1;for(let i=0,s=0,l=0;i<=n.length;i++){let c=i?n[i-1].to:t,u=i<n.length?n[i].from:r;for(let t=c,r,n,i;t<u;t++)if(n=rb[r=e.charCodeAt(t)])if(n<0){for(let e=s-3;e>=0;e-=3)if(rS[e+1]==-n){let r=rS[e+2],n=2&r?o:4&r?1&r?a:o:0;n&&(r$[t]=r$[rS[e]]=n),s=e;break}}else if(189==rS.length)break;else rS[s++]=t,rS[s++]=r,rS[s++]=l;else if(2==(i=r$[t])||1==i){let e=i==o;l=+!e;for(let t=s-3;t>=0;t-=3){let r=rS[t+2];
3if(2&r)break;if(e)rS[t+2]|=2;else{if(4&r)break;rS[t+2]|=4}}}}}(t,a,i,o,l),function(e,t,r,n){for(let o=0,a=n;o<=r.length;o++){let i=o?r[o-1].to:e,s=o<r.length?r[o].from:t;for(let l=i;l<s;){let i=r$[l];if(256==i){let i=l+1;for(;;)if(i==s){if(o==r.length)break;i=r[o++].to,s=o<r.length?r[o].from:t}else if(256==r$[i])i++;else break;let c=1==a,u=c==((i<t?r$[i]:n)==1)?c?1:2:n;for(let t=i,n=o,a=n?r[n-1].to:e;t>l;)t==a&&(t=r[--n].from,a=n?r[n-1].to:e),r$[--t]=u;l=i}else a=i,l++}}}(a,i,o,l),function t(r,n,o,a,i,s,l){let c=a%2?2:1;if(a%2==i%2)for(let u=n,d=0;u<o;){let n=!0,h=!1;if(d==s.length||u<s[d].from){let e=r$[u];e!=c&&(n=!1,h=16==e)}let p=n||1!=c?null:[],f=n?a:a+1,m=u;n:for(;;)if(d<s.length&&m==s[d].from){if(h)break;let t=s[d];if(!n)for(let e=t.to,r=d+1;;){if(e==o)break n;if(r<s.length&&s[r].from==e)e=s[r++].to;else if(r$[e]==c)break n;else break}d++,p?p.push(t):(t.from>u&&l.push(new rw(u,t.from,f)),e(r,t.direction==rm!=!(f%2)?a+1:a,i,t.inner,t.from,t.to,l),u=t.to),m=t.to}else if(m==o||(n?r$[m]!=c:r$[m]==c))break;else m++;p?t(r,u,m,a+1,i,p,l):u<m&&l.push(new rw(u,m,f)),u=m}else for(let u=o,d=s.length;u>n;){let o=!0,h=!1;if(!d||u>s[d-1].to){let e=r$[u-1];e!=c&&(o=!1,h=16==e)}let p=o||1!=c?null:[],f=o?a:a+1,m=u;n:for(;;)if(d&&m==s[d-1].to){if(h)break;let t=s[--d];if(!o)for(let e=t.from,r=d;;){if(e==n)break n;if(r&&s[r-1].to==e)e=s[--r].from;else if(r$[e-1]==c)break n;else break}p?p.push(t):(t.to<u&&l.push(new rw(t.to,u,f)),e(r,t.direction==rm!=!(f%2)?a+1:a,i,t.inner,t.from,t.to,l),u=t.from),m=t.from}else if(m==n||(o?r$[m-1]!=c:r$[m-1]==c))break;else m--;p?t(r,m,u,a+1,i,p,l):m<u&&l.push(new rw(m,u,f)),u=m}}(t,a,i,r,n,o,s)}(e,o,o,r,0,e.length,n),n}(e.text,t,r);return this.bidiCache.push(new oW(e.from,e.to,t,r,!0,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||tN.safari&&(null==(e=this.inputState)?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{rs(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of(this.root.activeElement==this.contentDOM&&this.contentDOM.blur(),this.plugins))e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.win.clearTimeout(this.clearAnnouncement),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){var r,n,o,a;return rN.of(new rq("number"==typeof e?ew.cursor(e):e,null!=(r=t.y)?r:"nearest",null!=(n=t.x)?n:"nearest",null!=(o=t.yMargin)?o:5,null!=(a=t.xMargin)?a:5))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,r=this.viewState.scrollAnchorAt(e);return rN.of(new rq(ew.cursor(r.from),"start","start",r.top-e,t,!0))}setTabFocusMode(e){null==e?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof e?this.inputState.tabFocusMode=e?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return rH.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return rH.define(()=>({}),{eventObservers:e})}static theme(e,t){let r=tb.newName(),n=[oC.of(r),r4.of(oV(`.${r}`,e))];return t&&t.dark&&n.push(oT.of(!0)),n}static baseTheme(e){return eZ.lowest(r4.of(oV("."+oB,e,oE)))}static findFromDOM(e){var t;let r=e.querySelector(".cm-content"),n=r&&r7.get(r)||r7.get(e);return(null==(t=null==n?void 0:n.root)?void 0:t.view)||null}}oD.styleModule=r4,oD.inputHandler=rE,oD.clipboardInputFilter=rZ,oD.clipboardOutputFilter=rj,oD.scrollHandler=rM,oD.focusChangeEffect=rV,oD.perLineTextDirection=rX,oD.exceptionSink=rA,oD.updateListener=rR,oD.editable=rz,oD.mouseSelectionStyle=rB,oD.dragMovesSelection=rT,oD.clickAddsSelectionRange=rC,oD.decorations=rF,oD.blockWrappers=rK,oD.outerDecorations=rJ,oD.atomicRanges=r0,oD.bidiIsolatedRanges=r1,oD.cursorScrollMargin=eQ.define({combine:e=>{let t=5,r=5;for(let n of e)"number"==typeof n?t=r=n:{x:t,y:r}=n;return{x:t,y:r}}}),oD.scrollMargins=r8,oD.darkTheme=oT,oD.cspNonce=eQ.define({combine:e=>e.length?e[0]:""}),oD.contentAttributes=rG,oD.editorAttributes=rY,oD.lineWrapping=oD.contentAttributes.of({class:"cm-lineWrapping"}),oD.announce=eK.define();let oU=4096,oz={};class oW{constructor(e,t,r,n,o,a){this.from=e,this.to=t,this.dir=r,this.isolates=n,this.fresh=o,this.order=a}static update(e,t){if(t.empty&&!e.some(e=>e.fresh))return e;let r=[],n=e.length?e[e.length-1].dir:rf.LTR;for(let o=Math.max(0,e.length-10);o<e.length;o++){let a=e[o];a.dir!=n||t.touchesRange(a.from,a.to)||r.push(new oW(t.mapPos(a.from,1),t.mapPos(a.to,-1),a.dir,a.isolates,!1,a.order))}return r}}function oL(e,t,r){for(let n=e.state.facet(t),o=n.length-1;o>=0;o--){let t=n[o],a="function"==typeof t?t(e):t;a&&tD(a,r)}return r}let oH=tN.mac?"mac":tN.windows?"win":tN.linux?"linux":"key";
3function oI(e,t,r){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==r&&t.shiftKey&&(e="Shift-"+e),e}let oY=eZ.default(oD.domEventHandlers({keydown:(e,t)=>{let r,n;return function(e,t,r,n){var o;oJ=t;let a=("Esc"==(o=!(t$&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||tP&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?tw:tk)[t.keyCode]||t.key||"Unidentified")&&(o="Escape"),"Del"==o&&(o="Delete"),"Left"==o&&(o="ArrowLeft"),"Up"==o&&(o="ArrowUp"),"Right"==o&&(o="ArrowRight"),"Down"==o&&(o="ArrowDown"),o),i=eh(eu(a,0))==a.length&&" "!=a,s="",l=!1,c=!1,u=!1;oK&&oK.view==r&&oK.scope==n&&(s=oK.prefix+" ",0>nL.indexOf(t.keyCode)&&(c=!0,oK=null));let d=new Set,h=e=>{if(e){for(let t of e.run)if(!d.has(t)&&(d.add(t),t(r)))return e.stopPropagation&&(u=!0),!0;e.preventDefault&&(e.stopPropagation&&(u=!0),c=!0)}return!1},p=e[n],f,m;return p&&(h(p[s+oI(a,t,!i)])?l=!0:i&&(t.altKey||t.metaKey||t.ctrlKey)&&!(tN.windows&&t.ctrlKey&&t.altKey)&&!(tN.mac&&t.altKey&&!(t.ctrlKey||t.metaKey))&&(f=tk[t.keyCode])&&f!=a?h(p[s+oI(f,t,!0)])?l=!0:t.shiftKey&&(m=tw[t.keyCode])!=a&&m!=f&&h(p[s+oI(m,t,!1)])&&(l=!0):i&&t.shiftKey&&h(p[s+oI(a,t,!0)])&&(l=!0),!l&&h(p._any)&&(l=!0)),c&&(l=!0),l&&u&&t.stopPropagation(),oJ=null,l}((r=t.state.facet(oG),(n=oF.get(r))||oF.set(r,n=function(e,t=oH){let r=Object.create(null),n=Object.create(null),o=(e,t)=>{let r=n[e];if(null==r)n[e]=t;else if(r!=t)throw Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},a=(e,n,a,i,s)=>{var l,c;let u=r[e]||(r[e]=Object.create(null)),d=n.split(/ (?!$)/).map(e=>(function(e,t){let r,n,o,a,i=e.split(/-(?!$)/),s=i[i.length-1];"Space"==s&&(s=" ");for(let e=0;e<i.length-1;++e){let s=i[e];if(/^(cmd|meta|m)$/i.test(s))a=!0;else if(/^a(lt)?$/i.test(s))r=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else if(/^s(hift)?$/i.test(s))o=!0;else if(/^mod$/i.test(s))"mac"==t?a=!0:n=!0;else throw Error("Unrecognized modifier name: "+s)}return r&&(s="Alt-"+s),n&&(s="Ctrl-"+s),a&&(s="Meta-"+s),o&&(s="Shift-"+s),s})(e,t));for(let t=1;t<d.length;t++){let r=d.slice(0,t).join(" ");o(r,!0),u[r]||(u[r]={preventDefault:!0,stopPropagation:!1,run:[t=>{let n=oK={view:t,prefix:r,scope:e};return setTimeout(()=>{oK==n&&(oK=null)},4e3),!0}]})}let h=d.join(" ");o(h,!1);let p=u[h]||(u[h]={preventDefault:!1,stopPropagation:!1,run:(null==(c=null==(l=u._any)?void 0:l.run)?void 0:c.slice())||[]});a&&p.run.push(a),i&&(p.preventDefault=!0),s&&(p.stopPropagation=!0)};for(let n of e){let e=n.scope?n.scope.split(" "):["editor"];if(n.any)for(let t of e){let e=r[t]||(r[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:o}=n;for(let t in e)e[t].run.push(e=>o(e,oJ))}let o=n[t]||n.key;if(o)for(let t of e)a(t,o,n.run,n.preventDefault,n.stopPropagation),n.shift&&a(t,"Shift-"+o,n.shift,n.preventDefault,n.stopPropagation)}return r}(r.reduce((e,t)=>e.concat(t),[]))),n),e,t,"editor")}})),oG=eQ.define({enables:oY}),oF=new WeakMap,oK=null,oJ=null;function o0(e,t,r,n,o){t.lastIndex=0;for(let a=e.iterRange(r,n),i=r,s;!a.next().done;i+=a.value.length)if(!a.lineBreak)for(;s=t.exec(a.value);)o(i+s.index,s)}tN.gecko&&tN.gecko_version;class o1{constructor(e){const{regexp:t,decoration:r,decorate:n,boundary:o,maxLength:a=1e3}=e;if(!t.global)throw RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,n)this.addMatch=(e,t,r,o)=>n(o,r,r+e[0].length,e,t);else if("function"==typeof r)this.addMatch=(e,t,n,o)=>{let a=r(e,t,n);a&&o(n,n+e[0].length,a)};else if(r)this.addMatch=(e,t,n,o)=>o(n,n+e[0].length,r);else throw RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=a}createDeco(e){let t=new ta,r=t.add.bind(t);for(let{from:t,to:n}of function(e,t){let r=e.visibleRanges;if(1==r.length&&r[0].from==e.viewport.from&&r[0].to==e.viewport.to)return r;let n=[];for(let{from:o,to:a}of r)o=Math.max(e.state.doc.lineAt(o).from,o-t),a=Math.min(e.state.doc.lineAt(a).to,a+t),n.length&&n[n.length-1].to>=o?n[n.length-1].to=a:n.push({from:o,to:a});return n}(e,this.maxLength))o0(e.state.doc,this.regexp,t,n,(t,n)=>this.addMatch(n,e,t,r));return t.finish()}updateDeco(e,t){let r=1e9,n=-1;return(e.docChanged&&e.changes.iterChanges((t,o,a,i)=>{i>=e.view.viewport.from&&a<=e.view.viewport.to&&(r=Math.min(a,r),n=Math.max(i,n))}),e.viewportMoved||n-r>1e3)?this.createDeco(e.view):n>-1?this.updateRange(e.view,t.map(e.changes),r,n):t}updateRange(e,t,r,n){for(let o of e.visibleRanges){let a=Math.max(o.from,r),i=Math.min(o.to,n);if(i>=a){let r=e.state.doc.lineAt(a),n=r.to<i?e.state.doc.lineAt(i):r,s=Math.max(o.from,r.from),l=Math.min(o.to,n.to);if(this.boundary){for(;a>r.from;a--)if(this.boundary.test(r.text[a-1-r.from])){s=a;break}for(;i<n.to;i++)if(this.boundary.test(n.text[i-n.from])){l=i;break}}let c=[],u,d=(e,t,r)=>c.push(r.range(e,t));if(r==n)for(this.regexp.lastIndex=s-r.from;(u=this.regexp.exec(r.text))&&u.index<l-r.from;)this.addMatch(u,e,u.index+r.from,d);else o0(e.state.doc,this.regexp,s,l,(t,r)=>this.addMatch(r,e,t,d));t=t.update({filterFrom:s,filterTo:l,filter:(e,t)=>e<s||t>l,add:c})}}return t}}let o2=null!=/x/.unicode?"gu":"g",o8=RegExp("[\0-\b\n-\x1f�-ÂÂØâââ\u2028\u2029ââ®â¦â§â©\uFEFF-]",o2),o5={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},o4=null,o3=eQ.define({combine(e){let t=e6(e,{render:null,specialChars:o8,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==o4&&"u">typeof document&&document.body){let t=document.body.style;o4=(null!=(e=t.tabSize)?e:t.MozTabSize)!=null}return o4||!1}())&&(t.specialChars=RegExp(" |"+t.specialChars.source,o2)),t.addSpecialChars&&(t.specialChars=RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,o2)),t}});function o6(e={}){return[o3.of(e),o9||(o9=rH.fromClass(class{constructor(e){this.view=e,this.decorations=tI.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(o3)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new o1({regexp:e.specialChars,decoration:(t,r,n)=>{let{doc:o}=r.state,a=eu(t[0],0);if(9==a){let e=o.lineAt(n),t=r.state.tabSize,a=tO(e.text,t,n-e.from);return tI.replace({widget:new ae((t-a%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[a]||(this.decorationCache[a]=tI.replace({widget:new o7(e,a)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(o3);e.startState.facet(o3)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}let o9=null;class o7 extends tL{constructor(e,t){super(),this.options=e,this.co
3de=t}eq(e){return e.code==this.code}toDOM(e){var t;let r=(t=this.code)>=32?"â¢":10==t?"â¤":String.fromCharCode(9216+t),n=e.state.phrase("Control character")+" "+(o5[this.code]||"0x"+this.code.toString(16)),o=this.options.render&&this.options.render(this.code,n,r);if(o)return o;let a=document.createElement("span");return a.textContent=r,a.title=n,a.setAttribute("aria-label",n),a.className="cm-specialChar",a}ignoreEvent(){return!1}}class ae extends tL{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}class at extends tL{constructor(e){super(),this.content=e}toDOM(e){let t=document.createElement("span");return t.className="cm-placeholder",t.style.pointerEvents="none",t.appendChild("string"==typeof this.content?document.createTextNode(this.content):"function"==typeof this.content?this.content(e):this.content.cloneNode(!0)),t.setAttribute("aria-hidden","true"),t}coordsAt(e){let t=e.firstChild?t5(e.firstChild):[];if(!t.length)return null;let r=window.getComputedStyle(e.parentNode),n=re(t[0],"rtl"!=r.direction),o=parseInt(r.lineHeight);return n.bottom-n.top>1.5*o?{left:n.left,right:n.right,top:n.top,bottom:n.top+o}:n}ignoreEvent(){return!1}}function ar(e){let t=rH.fromClass(class{constructor(t){this.view=t,this.placeholder=e?tI.set([tI.widget({widget:new at(e),side:1}).range(0)]):tI.none}get decorations(){return this.view.state.doc.length?tI.none:this.placeholder}},{decorations:e=>e.decorations});return"string"==typeof e?[t,oD.contentAttributes.of({"aria-placeholder":e})]:t}let an="-10000px";class ao{constructor(e,t,r,n){this.facet=t,this.createTooltipView=r,this.removeTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter(e=>e);let o=null;this.tooltipViews=this.tooltips.map(e=>o=r(e,o))}update(e,t){var r;let n=e.state.facet(this.facet),o=n.filter(e=>e);if(n===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let a=[],i=t?[]:null;for(let r=0;r<o.length;r++){let n=o[r],s=-1;if(n){for(let e=0;e<this.tooltips.length;e++){let t=this.tooltips[e];t&&t.create==n.create&&(s=e)}if(s<0)a[r]=this.createTooltipView(n,r?a[r-1]:null),i&&(i[r]=!!n.above);else{let n=a[r]=this.tooltipViews[s];i&&(i[r]=t[s]),n.update&&n.update(e)}}}for(let e of this.tooltipViews)0>a.indexOf(e)&&(this.removeTooltipView(e),null==(r=e.destroy)||r.call(e));return t&&(i.forEach((e,r)=>t[r]=e),t.length=i.length),this.input=n,this.tooltips=o,this.tooltipViews=a,!0}}function aa(e){let t=e.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:t.clientHeight,right:t.clientWidth}}let ai=eQ.define({combine:e=>{var t,r,n;return{position:tN.ios?"absolute":(null==(t=e.find(e=>e.position))?void 0:t.position)||"fixed",parent:(null==(r=e.find(e=>e.parent))?void 0:r.parent)||null,tooltipSpace:(null==(n=e.find(e=>e.tooltipSpace))?void 0:n.tooltipSpace)||aa}}}),as=new WeakMap,al=rH.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(ai);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new ao(e,ah,(e,t)=>this.createTooltip(e,t),e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()}),this.above=this.manager.tooltips.map(e=>!!e.above),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.theme
3Classes,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver)for(let e of(this.intersectionObserver.disconnect(),this.manager.tooltipViews))this.intersectionObserver.observe(e.dom)}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let r=t||e.geometryChanged,n=e.state.facet(ai);if(n.position!=this.position&&!this.madeAbsolute){for(let e of(this.position=n.position,this.manager.tooltipViews))e.dom.style.position=this.position;r=!0}if(n.parent!=this.parent){for(let e of(this.parent&&this.container.remove(),this.parent=n.parent,this.createContainer(),this.manager.tooltipViews))this.container.appendChild(e.dom);r=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);r&&this.maybeMeasure()}createTooltip(e,t){let r=e.create(this.view),n=t?t.dom:null;if(r.dom.classList.add("cm-tooltip"),e.arrow&&!r.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",r.dom.appendChild(e)}return r.dom.style.position=this.position,r.dom.style.top=an,r.dom.style.left="0px",this.container.insertBefore(r.dom,n),r.mount&&r.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(r.dom),r}destroy(){var e,t,r;for(let t of(this.view.win.removeEventListener("resize",this.measureSoon),this.manager.tooltipViews))t.dom.remove(),null==(e=t.destroy)||e.call(t);this.parent&&this.container.remove(),null==(t=this.resizeObserver)||t.disconnect(),null==(r=this.intersectionObserver)||r.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=1,t=1,r=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(tN.safari){let t=e.getBoundingClientRect();r=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}else r=!!e.offsetParent&&e.offsetParent!=this.container.ownerDocument.body}if(r||"absolute"==this.position)if(this.parent){let r=this.parent.getBoundingClientRect();r.width&&r.height&&(e=r.width/this.parent.offsetWidth,t=r.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:t}=this.view.viewState);let n=this.view.scrollDOM.getBoundingClientRect(),o=r5(this.view);return{visible:{left:n.left+o.left,top:n.top+o.top,right:n.right-o.right,bottom:n.bottom-o.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((e,t)=>{let r=this.manager.tooltipViews[t];return r.getCoords?r.getCoords(e.pos):this.view.coordsAtPos(e.pos)}),size:this.manager.tooltipViews.map(({dom:e})=>e.getBoundingClientRect()),space:this.view.state.facet(ai).tooltipSpace(this.view),scaleX:e,scaleY:t,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute)for(let e of(this.madeAbsolute=!0,this.position="absolute",this.manager.tooltipViews))e.dom.style.position="absolute";let{visible:r,space:n,scaleX:o,scaleY:a}=e,i=[];for(let s=0;s<this.manager.tooltips.length;s++){let l=this.manager.tooltips[s],c=this.manager.tooltipViews[s],{dom:u}=c,d=e.pos[s],h=e.size[s];if(!d||!1!==l.clip&&(d.bottom<=Math.max(r.top,n.top)||d.top>=Math.min(r.bottom,n.bottom)||d.right<Math.max(r.left,n.left)-.1||d.left>Math.min(r.right,n.right)+.1)){u.style.top=an;continue}let p=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,f=7*!!p,m=h.right-h.left,O=null!=(t=as.get(c))?t:h.bottom-h.top,g=c.offset||ad,v=this.view.textDirection==rf.LTR,y=h.width>n.right-n.left?v?n.left:n.right-h.width:v?Math.max(n.left,Math.min(d.left-14*!!p+g.x,n.right-m)):Math.min(Math.max(n.left,d.left-m+14*!!p-g.x),n.right-m),b=this.above[s];!l.strictSide&&(b?d.top-O-f-g.y<n.top:d.bottom+O+f+g.y>n.bottom)&&b==n.bottom-d.bottom>d.top-n.top&&(b=this.above[s]=!b);let S=(b?d.top-n.top:n.bottom-d.bottom)-f;if(S<O&&!1!==c.resize){if(S<this.view.defaultLineHeight){u.style.top=an;continue}as.set(c,O),u.style.height=(O=S)/a+"px"}else u.style.height&&(u.style.height="");let x=b?d.top-O-f-g.y:d.bottom+f+g.y,k=y+m;if(!0!==c.overlap)for(let e of i)e.left<k&&e.right>y&&e.top<x+O&&e.bottom>x&&(x=b?e.top-O-2-f:e.bottom+f+2);if("absolute"==this.position?(u.style.top=(x-e.parent.top)/a+"px",ac(u,(y-e.parent.left)/o)):(u.style.top=x/a+"px",ac(u,y/o)),p){let e=d.left+(v?g.x:-g.x)-(y+14-7);p.style.left=e/o+"px"}!0!==c.overlap&&i.push({left:y,top:x,right:k,bottom:x+O}),u.classList.toggle("cm-tooltip-above",b),u.classList.toggle("cm-tooltip-below",!b),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView)&&(this.inView=this.view.inView,!this.inView))for(let e of this.manager.tooltipViews)e.dom.style.top=an}},{eventObservers:{scroll(){this.maybeMeasure()}}});function ac(e,t){let r=parseInt(e.style.left,10);(isNaN(r)||Math.abs(t-r)>1)&&(e.style.left=t+"px")}let au=oD.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),ad={x:0,y:0},ah=eQ.define({enables:[al,au]}),ap=eQ.define({combine:e=>e.reduce((e,t)=>
3e.concat(t),[])});class af{static create(e){return new af(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new ao(e,ap,(e,t)=>this.createHostedView(e,t),e=>e.dom.remove())}createHostedView(e,t){let r=e.create(this.view);return r.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(r.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&r.mount&&r.mount(this.view),r}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null==(e=t.destroy)||e.call(t)}passProp(e){let t;for(let r of this.manager.tooltipViews){let n=r[e];if(void 0!==n){if(void 0===t)t=n;else if(t!==n)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}let am=ah.compute([ap],e=>{let t=e.facet(ap);return 0===t.length?null:{pos:Math.min(...t.map(e=>e.pos)),end:Math.max(...t.map(e=>{var t;return null!=(t=e.end)?t:e.pos})),create:af.create,above:t[0].above,arrow:t.some(e=>e.arrow)}}),aO=eQ.define();class ag{constructor(e,t,r,n,o,a){this.view=e,this.source=t,this.field=r,this.locked=n,this.setHover=o,this.hoverTime=a,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(e){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,r=e.docView.tile.nearest(t.target);if(!r)return;let n,o=1;if(r.isWidget())n=r.posAtStart;else{if(null==(n=e.posAtCoords(t)))return;let r=e.coordsAtPos(n);if(!r||t.y<r.top||t.y>r.bottom||t.x<r.left-e.defaultCharacterWidth||t.x>r.right+e.defaultCharacterWidth)return;let a=e.bidiSpans(e.state.doc.lineAt(n)).find(e=>e.from<=n&&e.to>=n),i=a&&a.dir==rf.RTL?-1:1;o=t.x<r.left?-i:i}this.activateHover(e,n,o)}activateHover(e,t,r,n){let o=this.source(e,t,r),a=t=>{if(t&&!(Array.isArray(t)&&!t.length)){let r=Array.isArray(t)?t:[t];n&&this.locked.set(r,n),e.dispatch({effects:this.setHover.of(r)})}};if(o&&"then"in o){let r=this.pending={pos:t};o.then(e=>{this.pending==r&&(this.pending=null,a(e))},t=>rU(e.state,t,"hover tooltip"))}else a(o)}get tooltip(){let e=this.view.plugin(al),t=e?e.manager.tooltips.findIndex(e=>e.create==af.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,r;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:n,tooltip:o}=this;if(n.length&&!this.locked.has(n)&&o&&!function(e,t){let{left:r,right:n,top:o,bottom:a}=e.getBoundingClientRect(),i;if(i=e.querySelector(".cm-tooltip-arrow")){let e=i.getBoundingClientRect();o=Math.min(e.top,o),a=Math.max(e.bottom,a)}return t.clientX>=r-4&&t.clientX<=n+4&&t.clientY>=o-4&&t.clientY<=a+4}(o.dom,e)||this.pending){let{pos:o}=n[0]||this.pending,a=null!=(r=null==(t=n[0])?void 0:t.end)?r:o;(o==a?this.view.posAtCoords(this.lastMove)!=o:!function(e,t,r,n,o){let a=e.scrollDOM.getBoundingClientRect(),i=e.documentTop+e.documentPadding.top+e.contentHeight;if(a.left>n||a.right<n||a.top>o||Math.min(a.bottom,i)<o)return!1;let s=e.posAtCoords({x:n,y:o},!1);return s>=t&&s<=r}(this.view,o,a,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length&&!this.locked.has(t)){let{tooltip:t}=this;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=r=>{e.removeEventListener("mouseleave",t);let{active:n}=this;!n.length||this.locked.has(n)||this.view.dom.contains(r.relatedTarget)||this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),clearTimeout(this.restartTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function av(e,t={}){let r=eK.define(),n=new WeakMap,o=eE.define({create:()=>[],update(e,a){let i=n.get(e);if(e.length&&(t.hideOnChange&&(a.docChanged||a.selection)||i&&i(a)?e=[]:t.hideOn&&(e=e.filter(e=>!t.hideOn(a,e)))),a.docChanged&&e.length){let t=[];for(let r of e){let e=a.changes.mapPos(r.pos,-1,ef.TrackDel);if(null!=e){let n=Object.assign(Object.create(null),r);n.pos=e,null!=n.end&&(n.end=a.changes.mapPos(n.end)),t.push(n)}}e=t}for(let t of a.effects)t.is(r)&&(e=t.value,i=void 0),(t.is(ab)&&!t.value||t.value==o)&&(e=[]);return e.length&&i&&n.set(e,i),e},provide:e=>ap.from(e)}),a=rH.define(a=>new ag(a,e,o,n,r,t.hoverTime||300));return{active:o,extension:[o,a,aO.of(a),am]}}function ay(e,t){let r=e.plugin(al);if(!r)return null;let n=r.manager.tooltips.indexOf(t);return n<0?null:r.manager.tooltipViews[n]}let ab=eK.define(),aS=eQ.define({combine(e){let t,r;for(let n of e)t=t||n.topContainer,r=r||n.bottomContainer;return{topContainer:t,bottomContainer:r}}}),ax=rH.fromClass(class{constructor(e){this.input=e.state.facet(a$),this.specs=this.input.filter(e=>e),this.panels=this.specs.map(t=>t(e));let t=e.state.facet(aS);for(let r of(this.top=new ak(e,!0,t.topContainer),this.bottom=new ak(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(e=>e.top)),this.bottom.sync(this.panels.filter(e=>!e.top)),this.panels))r.dom.classList.add("cm-panel"),r.mount&&r.mount()}update(e){let t=e.state.facet(aS);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new ak(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new ak(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let r=e.state.facet(a$);if(r!=this.input){let t=r.filter(e=>e),n=[],o=[],a=[],i=[];for(let r of t){let t=this.specs.indexOf(r),s;t<0?(s=r(e.view),i.push(s)):(s=this.panels[t]).update&&s.update(e),n.push(s),(s.top?o:a).push(s)}for(let e of(this.specs=t,this.panels=n,this.top.sync(o),this.bottom.sync(a),i)
3)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>oD.scrollMargins.of(t=>{let r=t.plugin(e);return r&&{top:r.top.scrollMargin(),bottom:r.bottom.scrollMargin()}})});class ak{constructor(e,t,r){this.view=e,this.top=t,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&0>e.indexOf(t)&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=aw(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=aw(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function aw(e){let t=e.nextSibling;return e.remove(),t}let a$=eQ.define({enables:ax});class aP extends e9{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}aP.prototype.elementClass="",aP.prototype.toDOM=void 0,aP.prototype.mapMode=ef.TrackBefore,aP.prototype.startSide=aP.prototype.endSide=-1,aP.prototype.point=!0;let aQ=eQ.define(),aC=eQ.define(),aT={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>tn.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},aB=eQ.define();function aA(e){return[aE(),aB.of({...aT,...e})]}let aR=eQ.define({combine:e=>e.some(e=>e)});function aE(e){let t=[aV];return e&&!1===e.fixed&&t.push(aR.of(!0)),t}let aV=rH.fromClass(class{constructor(e){for(let t of(this.view=e,this.domAfter=null,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(aB).map(t=>new a_(e,t)),this.fixed=!e.state.facet(aR),this.gutters))"after"==t.config.side?this.getDOMAfter().appendChild(t.dom):this.dom.appendChild(t.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(e){if(this.updateGutters(e)){let t=this.prevViewport,r=e.view.viewport,n=Math.min(t.to,r.to)-Math.max(t.from,r.from);this.syncGutters(n<(r.to-r.from)*.8)}if(e.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(aR)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let r=tn.iter(this.view.state.facet(aQ),this.view.viewport.from),n=[],o=this.gutters.map(e=>new aX(e,this.view.viewport,-this.view.documentPadding.top));for(let e of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(e.type)){let t=!0;for(let a of e.type)if(a.type==tH.Text&&t){for(let e of(aj(r,n,a.from),o))e.line(this.view,a,n);t=!1}else if(a.widget)for(let e of o)e.widget(this.view,a)}else if(e.type==tH.Text)for(let t of(aj(r,n,e.from),o))t.line(this.view,e,n);else if(e.widget)for(let t of o)t.widget(this.view,e);for(let e of o)e.finish();e&&(this.view.scrollDOM.insertBefore(this.dom,t),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(e){let t=e.startState.facet(aB),r=e.state.facet(aB),n=e.docChanged||e.heightChanged||e.viewportChanged||!tn.eq(e.startState.facet(aQ),e.state.facet(aQ),e.view.viewport.from,e.view.viewport.to);if(t==r)for(let t of this.gutters)t.update(e)&&(n=!0);else{n=!0;let o=[];for(let n of r){let r=t.indexOf(n);r<0?o.push(new a_(this.view,n)):(this.gutters[r].update(e),o.push(this.gutters[r]))}for(let e of this.gutters)e.dom.remove(),0>o.indexOf(e)&&e.destroy();for(let e of o)"after"==e.config.side?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.gutters=o}return n}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:e=>oD.scrollMargins.of(t=>{let r=t.plugin(e);if(!r||0==r.gutters.length||!r.fixed)return null;let n=r.dom.offsetWidth*t.scaleX,o=r.domAfter?r.domAfter.offsetWidth*t.scaleX:0;return t.textDirection==rf.LTR?{left:n,right:o}:{right:n,left:o}})});function aZ(e){return Array.isArray(e)?e:[e]}function aj(e,t,r){for(;e.value&&e.from<=r;)e.from==r&&t.push(e.value),e.next()}class aX{constructor(e,t,r){this.gutter=e,this.height=r,this.i=0,this.cursor=tn.iter(e.markers,t.from)}addElement(e,t,r){let{gutter:n}=this,o=(t.top-this.height)/e.scaleY,a=t.height/e.scaleY;if(this.i==n.elements.length){let t=new aM(e,a,o,r);n.elements.push(t),n.dom.appendChild(t.dom)}else n.elements[this.i].update(e,a,o,r);this.height=t.bottom,this.i++}line(e,t,r){let n=[];aj(this.cursor,n,t.from),r.length&&(n=n.concat(r));let o=this.gutter.config.lineMarker(e,t,n);o&&n.unshift(o);let a=this.gutter;(0!=n.length||a.config.renderEmptyElements)&&this.addElement(e,t,n)}widget(e,t){let r=this.gutter.config.widgetMarker(e,t.widget,t),n=r?[r]:null;
3for(let r of e.state.facet(aC)){let o=r(e,t.widget,t);o&&(n||(n=[])).push(o)}n&&this.addElement(e,t,n)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class a_{constructor(e,t){for(let r in this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:""),t.domEventHandlers)this.dom.addEventListener(r,n=>{let o=n.target,a;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let e=o.getBoundingClientRect();a=(e.top+e.bottom)/2}else a=n.clientY;let i=e.lineBlockAtHeight(a-e.documentTop);t.domEventHandlers[r](e,i,n)&&n.preventDefault()});this.markers=aZ(t.markers(e)),t.initialSpacer&&(this.spacer=new aM(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=aZ(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let r=e.view.viewport;return!tn.eq(this.markers,t,r.from,r.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class aM{constructor(e,t,r,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,r,n)}update(e,t,r,n){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),!function(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].compare(t[r]))return!1;return!0}(this.markers,n)&&this.setMarkers(e,n)}setMarkers(e,t){let r="cm-gutterElement",n=this.dom.firstChild;for(let o=0,a=0;;){let i=a,s=o<t.length?t[o++]:null,l=!1;if(s){let e=s.elementClass;e&&(r+=" "+e);for(let e=a;e<this.markers.length;e++)if(this.markers[e].compare(s)){i=e,l=!0;break}}else i=this.markers.length;for(;a<i;){let e=this.markers[a++];if(e.toDOM){e.destroy(n);let t=n.nextSibling;n.remove(),n=t}}if(!s)break;s.toDOM&&(l?n=n.nextSibling:this.dom.insertBefore(s.toDOM(e),n)),l&&a++}this.dom.className=r,this.markers=t}destroy(){this.setMarkers(null,[])}}let aq=eQ.define(),aN=eQ.define(),aD=eQ.define({combine:e=>e6(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let r=Object.assign({},e);for(let e in t){let n=r[e],o=t[e];r[e]=n?(e,t,r)=>n(e,t,r)||o(e,t,r):o}return r}})});class aU extends aP{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function az(e,t){return e.state.facet(aD).formatNumber(t,e.state)}let aW=aB.compute([aD],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(aq),lineMarker:(e,t,r)=>r.some(e=>e.toDOM)?null:new aU(az(e,e.state.doc.lineAt(t.from).number)),widgetMarker:(e,t,r)=>{for(let n of e.state.facet(aN)){let o=n(e,t,r);if(o)return o}return null},lineMarkerChange:e=>e.startState.facet(aD)!=e.state.facet(aD),initialSpacer:e=>new aU(az(e,aH(e.state.doc.lines))),updateSpacer(e,t){let r=az(t.view,aH(t.view.state.doc.lines));return r==e.number?e:new aU(r)},domEventHandlers:e.facet(aD).domEventHandlers,side:"before"}));function aL(e={}){return[aD.of(e),aE(),aW]}function aH(e){let t=9;for(;t<e;)t=10*t+9;return t}e.s(["Decoration",0,tI,"Direction",0,rf,"EditorView",0,oD,"GutterMarker",0,aP,"MatchDecorator",0,o1,"ViewPlugin",0,rH,"WidgetType",0,tL,"activateHover",0,function(e,t,r,n={}){var o;let a=e.state.facet(aO).map(t=>e.plugin(t)).filter(e=>!!e);if(n.tooltip&&n.tooltip.active){let e=a.find(e=>e.field==n.tooltip.active);e&&(a=[e])}for(let i of a)i.activateHover(e,t,r,null!=(o=n.until)?o:()=>!1)},"getPanel",0,function(e,t){let r=e.plugin(ax),n=r?r.specs.indexOf(t):-1;return n>-1?r.panels[n]:null},"getTooltip",0,ay,"gutter",0,aA,"highlightSpecialChars",0,o6,"hoverTooltip",0,av,"keymap",0,oG,"lineNumbers",0,aL,"logException",0,rU,"placeholder",0,ar,"showPanel",0,a$,"showTooltip",0,ah],588395);let aI=0;class aY{constructor(e,t){this.from=e,this.to=t}}class aG{constructor(e={}){this.id=aI++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=aJ.match(e)),t=>{let r=e(t);return void 0===r?null:[this,r]}}}aG.closedBy=new aG({deserialize:e=>e.split(" ")}),aG.openedBy=new aG({deserialize:e=>e.split(" ")}),aG.group=new aG({deserialize:e=>e.split(" ")}),aG.isolate=new aG({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw RangeError("Invalid value for isolate: "+e);return e||"auto"}}),aG.contextHash=new aG({perNode:!0}),aG.lookAhead=new aG({perNode:!0}),aG.mounted=new aG({perNode:!0});class aF{constructor(e,t,r,n=!1){this.tree=e,this.overlay=t,this.parser=r,this.bracketed=n}static get(e){return e&&e.props&&e.props[aG.mounted.id]}}let aK=Object.create(null);class aJ{constructor(e,t,r,n=0){this.name=e,this.props=t,this.id=r,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):aK,r=!!e.top|2*!!e.ski
3pped|4*!!e.error|8*(null==e.name),n=new aJ(e.name||"",t,e.id,r);if(e.props){for(let r of e.props)if(Array.isArray(r)||(r=r(n)),r){if(r[0].perNode)throw RangeError("Can't store a per-node prop on a node type");t[r[0].id]=r[1]}}return n}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(aG.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let r in e)for(let n of r.split(" "))t[n]=e[r];return e=>{for(let r=e.prop(aG.group),n=-1;n<(r?r.length:0);n++){let o=t[n<0?e.name:r[n]];if(o)return o}}}}aJ.none=new aJ("",Object.create(null),0,8);class a0{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let r of this.types){let n=null;for(let t of e){let e=t(r);if(e){n||(n=Object.assign({},r.props));let t=e[1],o=e[0];o.combine&&o.id in n&&(t=o.combine(n[o.id],t)),n[o.id]=t}}t.push(n?new aJ(r.name,n,r.id,r.flags):r)}return new a0(t)}}let a1=new WeakMap,a2=new WeakMap;(h=a||(a={}))[h.ExcludeBuffers=1]="ExcludeBuffers",h[h.IncludeAnonymous=2]="IncludeAnonymous",h[h.IgnoreMounts=4]="IgnoreMounts",h[h.IgnoreOverlays=8]="IgnoreOverlays",h[h.EnterBracketed=16]="EnterBracketed";class a8{constructor(e,t,r,n,o){if(this.type=e,this.children=t,this.positions=r,this.length=n,this.props=null,o&&o.length)for(let[e,t]of(this.props=Object.create(null),o))this.props["number"==typeof e?e:e.id]=t}toString(){let e=aF.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let r=e.toString();r&&(t&&(t+=","),t+=r)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new is(this.topNode,e)}cursorAt(e,t=0,r=0){let n=new is(a1.get(this)||this.topNode);return n.moveTo(e,t),a1.set(this,n._tree),n}get topNode(){return new a7(this,0,0,null)}resolve(e,t=0){let r=a6(a1.get(this)||this.topNode,e,t,!1);return a1.set(this,r),r}resolveInner(e,t=0){let r=a6(a2.get(this)||this.topNode,e,t,!0);return a2.set(this,r),r}resolveStack(e,t=0){return function(e,t,r){let n=e.resolveInner(t,r),o=null;for(let e=n instanceof a7?n:n.context.parent;e;e=e.parent)if(e.index<0){let a=e.parent;(o||(o=[n])).push(a.resolve(t,r)),e=a}else{let a=aF.get(e.tree);if(a&&a.overlay&&a.overlay[0].from<=t&&a.overlay[a.overlay.length-1].to>=t){let i=new a7(a.tree,a.overlay[0].from+e.from,-1,e);(o||(o=[n])).push(a6(i,t,r,!1))}}return o?ia(o):n}(this,e,t)}iterate(e){let{enter:t,leave:r,from:n=0,to:o=this.length}=e,i=e.mode||0,s=(i&a.IncludeAnonymous)>0;for(let e=this.cursor(i|a.IncludeAnonymous);;){let a=!1;if(e.from<=o&&e.to>=n&&(!s&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;a=!0}for(;a&&r&&(s||!e.type.isAnonymous)&&r(e),!e.nextSibling();){if(!e.parent())return;a=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];
3if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:id(aJ.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,r)=>new a8(this.type,e,t,r,this.propValues),e.makeTree||((e,t,r)=>new a8(aJ.none,e,t,r)))}static build(e){return function(e){var t;let{buffer:r,nodeSet:n,maxBufferLength:o=1024,reused:a=[],minRepeatType:i=n.types.length}=e,s=Array.isArray(r)?new a5(r,r.length):r,l=n.types,c=0,u=0;function d(e,t,r,o,a,i,s,l,c){let u=[],d=[];for(;e.length>o;)u.push(e.pop()),d.push(t.pop()+r-a);e.push(h(n.types[s],u,d,i-a,l-i,c)),t.push(a-r)}function h(e,t,r,n,o,a,i){if(a){let e=[aG.contextHash,a];i=i?[e].concat(i):[e]}if(o>25){let e=[aG.lookAhead,o];i=i?[e].concat(i):[e]}return new a8(e,t,r,n,i)}let p=[],f=[];for(;s.pos>0;)!function e(t,r,p,f,m,O){let{id:g,start:v,end:y,size:b}=s,S=u,x=c;if(b<0){if(s.next(),-1==b){let e=a[g];p.push(e),f.push(v-t);return}if(-3==b){c=g;return}if(-4==b){u=g;return}else throw RangeError(`Unrecognized record size: ${b}`)}let k=l[g],w,$,P=v-t;if(y-v<=o&&($=function(e,t){let r=s.fork(),n=0,a=0,l=0,c=r.end-o,u={size:0,start:0,skip:0};o:for(let o=r.pos-e;r.pos>o;){let e=r.size;if(r.id==t&&e>=0){u.size=n,u.start=a,u.skip=l,l+=4,n+=4,r.next();continue}let s=r.pos-e;if(e<0||s<o||r.start<c)break;let d=4*(r.id>=i),h=r.start;for(r.next();r.pos>s;){if(r.size<0)if(-3==r.size||-4==r.size)d+=4;else break o;else r.id>=i&&(d+=4);r.next()}a=h,n+=e,l+=d}return(t<0||n==e)&&(u.size=n,u.start=a,u.skip=l),u.size>4?u:void 0}(s.pos-r,m))){let e=new Uint16Array($.size-$.skip),r=s.pos-$.size,o=e.length;for(;s.pos>r;)o=function e(t,r,n){let{id:o,start:a,end:l,size:d}=s;if(s.next(),d>=0&&o<i){let i=n;if(d>4){let o=s.pos-(d-4);for(;s.pos>o;)n=e(t,r,n)}r[--n]=i,r[--n]=l-t,r[--n]=a-t,r[--n]=o}else -3==d?c=o:-4==d&&(u=o);return n}($.start,e,o);w=new a4(e,y-$.start,n),P=$.start-t}else{let t=s.pos-b;s.next();let r=[],a=[],l=g>=i?g:-1,c=0,u=y;for(;s.pos>t;)l>=0&&s.id==l&&s.size>=0?(s.end<=u-o&&(d(r,a,v,c,s.end,u,l,S,x),c=r.length,u=s.end),s.next()):O>2500?function(e,t,r,a){let i=[],l=0,c=-1;for(;s.pos>t;){let{id:e,start:t,end:r,size:n}=s;if(n>4)s.next();else if(c>-1&&t<c)break;else c<0&&(c=r-o),i.push(e,t,r),l++,s.next()}if(l){let t=new Uint16Array(4*l),o=i[i.length-2];for(let e=i.length-3,r=0;e>=0;e-=3)t[r++]=i[e],t[r++]=i[e+1]-o,t[r++]=i[e+2]-o,t[r++]=r;r.push(new a4(t,i[2]-o,n)),a.push(o-e)}}(v,t,r,a):e(v,t,r,a,l,O+1);if(l>=0&&c>0&&c<r.length&&d(r,a,v,c,v,u,l,S,x),r.reverse(),a.reverse(),l>-1&&c>0){let e=function(e,t){return(r,n,o)=>{let a=0,i=r.length-1,s,l;if(i>=0&&(s=r[i])instanceof a8){if(!i&&s.type==e&&s.length==o)return s;(l=s.prop(aG.lookAhead))&&(a=n[i]+s.length+l)}return h(e,r,n,o,a,t)}}(k,x);w=id(k,r,a,0,r.length,0,y-v,e,e)}else w=h(k,r,a,y-v,S-y,x)}p.push(w),f.push(P)}(e.start||0,e.bufferStart||0,p,f,-1,0);let m=null!=(t=e.length)?t:p.length?f[0]+p[0].length:0;return new a8(l[e.topID],p.reverse(),f.reverse(),m)}(e)}}a8.empty=new a8(aJ.none,[],[],0);class a5{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new a5(this.buffer,this.index)}}class a4{constructor(e,t,r){this.buffer=e,this.length=t,this.set=r}get type(){return aJ.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],r=this.buffer[e+3],n=this.set.types[t],o=n.name;if(/\W/.test(o)&&!n.isError&&(o=JSON.stringify(o)),r==(e+=4))return o;let a=[];for(;e<r;)a.push(this.childString(e)),e=this.buffer[e+3];return o+"("+a.join(",")+")"}findChild(e,t,r,n,o){let{buffer:a}=this,i=-1;for(let s=e;s!=t&&(!a3(o,n,a[s+1],a[s+2])||(i=s,!(r>0)));s=a[s+3]);return i}slice(e,t,r){let n=this.buffer,o=new Uint16Array(t-e),a=0;for(let i=e,s=0;i<t;){o[s++]=n[i++],o[s++]=n[i++]-r;let t=o[s++]=n[i++]-r;o[s++]=n[i++]-e,a=Math.max(a,t)}return new a4(o,a,this.set)}}function a3(e,t,r,n){switch(e){case -2:return r<t;case -1:return n>=t&&r<t;case 0:return r<t&&n>t;case 1:return r<=t&&n>t;case 2:return n>t;case 4:return!0}}function a6(e,t,r,n){for(var o;e.from==e.to||(r<1?e.from>=t:e.from>t)||(r>-1?e.to<=t:e.to<t);){let t=!n&&e instanceof a7&&e.index<0?null:e.parent;if(!t)return e;e=t}let i=n?0:a.IgnoreOverlays;if(n)for(let n=e,a=n.parent;a;a=(n=a).parent)n instanceof a7&&n.index<0&&(null==(o=a.enter(t,r,i))?void 0:o.from)!=n.from&&(e=a);for(;;){let n=e.enter(t,r,i);if(!n)return e;e=n}}class a9{cursor(e=0){return new is(this,e)}getChild(e,t=null,r=null){let n=ie(this,e,t,r);return n.length?n[0]:null}getChildren(e,t=null,r=null){return ie(this,e,t,r)}resolve(e,t=0){return a6(this,e,t,!1)}resolveInner(e,t=0){return a6(this,e,t,!0)}matchContext(e){return it(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),r=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(r=t,t=e.prevSibling):t=e}return r}get node(){return this}get next(){return this.parent}}class a7 extends a9{constructor(e,t,r,n){super(),this._tree=e,this.from=t,this.index=r,this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,r,n,o=0){for(let i=this;;){for(let{children:s,positions:l}=i._tree,c=t>0?s.length:-1;e!=c;e+=t){let c=s[e],u=l[e]+i.from,d;if(o&a.EnterBracketed&&c instanceof a8&&(d=aF.get(c))&&!d.overlay&&d.bracketed&&r>=u&&r<=u+c.length||a3(n,r,u,u+c.length)){if(c instanceof a4){if(o&a.ExcludeBuffers)continue;let s=c.findChild(0,c.buffer.length,t,r-u,n);if(s>-1)return new io(new ir(i,c,e,u),null,s)}else if(o&a.IncludeAnonymous||!c.type.isAnonymous||il(c)){let s;if(!(o&a.IgnoreMounts)&&(s=aF.get(c))&&!s.overlay)return new a7(s.tree,u,e,i);let l=new a7(c,u,e,i);return o&a.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?c.children.length-1:0,t,r,n,o)}}}if(o&a.IncludeAnonymous||!i.type.isAnonymous||(e=i.index>=0?i.index+t:t<0?-1:i._parent._tree.children.length,!(i=i._parent)))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,r=0){let n;if(!(r&a.IgnoreOverlays)&&(n=aF.get(this._tree))&&n.overlay){let o=e-this.from,i=r&a.EnterBracketed&&n.bracketed;for(let{from:e,to:r}of n.overlay)if((t>0||i?e<=o:e<o)&&(t<0||i?r>=o:r>
vendor: 3,365 bytes, line 3
3o))return new a7(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function ie(e,t,r,n){let o=e.cursor(),a=[];if(!o.firstChild())return a;if(null!=r){for(let e=!1;!e;)if(e=o.type.is(r),!o.nextSibling())return a}for(;;){if(null!=n&&o.type.is(n))return a;if(o.type.is(t)&&a.push(o.node),!o.nextSibling())return null==n?a:[]}}function it(e,t,r=t.length-1){for(let n=e;r>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[r]&&t[r]!=n.name)return!1;r--}}return!0}class ir{constructor(e,t,r,n){this.parent=e,this.buffer=t,this.index=r,this.start=n}}class io extends a9{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,r){super(),this.context=e,this._parent=t,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,t,r){let{buffer:n}=this.context,o=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,r);return o<0?null:new io(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,r=0){if(r&a.ExcludeBuffers)return null;let{buffer:n}=this.context,o=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return o<0?null:new io(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new io(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new io(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:r}=this.context,n=this.index+4,o=r.buffer[this.index+3];if(o>n){let a=r.buffer[this.index+1];e.push(r.slice(n,o,a)),t.push(0)}return new a8(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function ia(e){if(!e.length)return null;let t=0,r=e[0];for(let n=1;n<e.length;n++){let o=e[n];(o.from>r.from||o.to<r.to)&&(r=o,t=n)}let n=r instanceof a7&&r.index<0?null:r.parent,o=e.slice();return n?o[t]=n:o.splice(t,1),new ii(o,r)}class ii{constructor(e,t){this.heads=e,this.node=t}get next(){return ia(this.heads)}}class is{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~a.EnterBracketed,e instanceof a7)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;
vendor: 2,104 bytes, line 3
3for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:r,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=r+n.buffer[e+1],this.to=r+n.buffer[e+2],!0}yield(e){return!!e&&(e instanceof a7?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,r,this.mode));let{buffer:n}=this.buffer,o=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,r);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,r=this.mode){return this.buffer?!(r&a.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&a.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&a.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,r=this.stack.length-1;if(e<0){let e=r<0?0:this.stack[r]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(r<0?t.buffer.length:t.buffer[this.stack[r]+3]))return this.yieldBuf(e)}return r<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,r,{buffer:n}
vendor: 6,405 bytes, line 3
3=this;if(n){if(e>0){if(this.index<n.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(n.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:r}=n)}else({index:t,_parent:r}=this._tree);for(;r;{index:t,_parent:r}=r)if(t>-1)for(let n=t+e,o=e<0?-1:r._tree.children.length;n!=o;n+=e){let e=r._tree.children[n];if(this.mode&a.IncludeAnonymous||e instanceof a4||!e.type.isAnonymous||il(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,r=0;if(e&&e.context==this.buffer)o:for(let n=this.index,o=this.stack.length;o>=0;){for(let a=e;a;a=a._parent)if(a.index==n){if(n==this.index)return a;t=a,r=o+1;break o}n=this.stack[--o]}for(let e=r;e<this.stack.length;e++)t=new io(this.buffer,t,this.stack[e]);return this.bufferNode=new io(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let r=0;;){let n=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){r++;continue}this.type.isAnonymous||(n=!0)}for(;;){if(n&&t&&t(this),n=this.type.isAnonymous,!r)return;if(this.nextSibling())break;this.parent(),r--,n=!0}}}matchContext(e){if(!this.buffer)return it(this.node.parent,e);let{buffer:t}=this.buffer,{types:r}=t.set;for(let n=e.length-1,o=this.stack.length-1;n>=0;o--){if(o<0)return it(this._tree,e,n);let a=r[t.buffer[this.stack[o]]];if(!a.isAnonymous){if(e[n]&&e[n]!=a.name)return!1;n--}}return!0}}function il(e){return e.children.some(e=>e instanceof a4||!e.type.isAnonymous||il(e))}let ic=new WeakMap;function iu(e,t){if(!e.isAnonymous||t instanceof a4||t.type!=e)return 1;let r=ic.get(t);if(null==r){for(let n of(r=1,t.children)){if(n.type!=e||!(n instanceof a8)){r=1;break}r+=iu(e,n)}ic.set(t,r)}return r}function id(e,t,r,n,o,a,i,s,l){let c=0;for(let r=n;r<o;r++)c+=iu(e,t[r]);let u=Math.ceil(1.5*c/8),d=[],h=[];return!function t(r,n,o,i,s){for(let c=o;c<i;){let o=c,p=n[c],f=iu(e,r[c]);for(c++;c<i;c++){let t=iu(e,r[c]);if(f+t>=u)break;f+=t}if(c==o+1){if(f>u){let e=r[o];t(e.children,e.positions,0,e.children.length,n[o]+s);continue}d.push(r[o])}else{let t=n[c-1]+r[c-1].length-p;d.push(id(e,r,n,o,c,p,t,null,l))}h.push(p+s-a)}}(t,r,n,o,0),(s||l)(d,h,i)}class ih{constructor(){this.map=new WeakMap}setBuffer(e,t,r){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(t,r)}getBuffer(e,t){let r=this.map.get(e);return r&&r.get(t)}set(e,t){e instanceof io?this.setBuffer(e.context.buffer,e.index,t):e instanceof a7&&this.map.set(e.tree,t)}get(e){return e instanceof io?this.getBuffer(e.context.buffer,e.index):e instanceof a7?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class ip{constructor(e,t,r,n,o=!1,a=!1){this.from=e,this.to=t,this.tree=r,this.offset=n,this.open=!!o|2*!!a}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],r=!1){let n=[new ip(0,e.length,e,0,!1,r)];for(let r of t)r.to>e.length&&n.push(r);return n}static applyChanges(e,t,r=128){if(!t.length)return e;let n=[],o=1,a=e.length?e[0]:null;for(let i=0,s=0,l=0;;i++){let c=i<t.length?t[i]:null,u=c?c.fromA:1e9;if(u-s>=r)for(;a&&a.from<u;){let t=a;if(s>=t.from||u<=t.to||l){let e=Math.max(t.from,s)-l,r=Math.min(t.to,u)-l;t=e>=r?null:new ip(e,r,t.tree,t.offset+l,i>0,!!c)}if(t&&n.push(t),a.to>u)break;a=o<e.length?e[o++]:null}if(!c)break;s=c.toA,l=c.toA-c.toB}return n}}class im{startParse(e,t,r){return"string"==typeof e&&(e=new iO(e)),r=r?r.length?r.map(e=>new aY(e.from,e.to)):[new aY(0,0)]:[new aY(0,e.length)],this.createParse(e,t||[],r)}parse(e,t,r){let n=this.startParse(e,t,r);for(;;){let e=n.advance();if(e)return e}}}class iO{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}class ig{constructor(e,t,r,n,o,a){this.parser=e,this.parse=t,this.overlay=r,this.bracketed=n,this.target=o,this.from=a}}function iv(e){if(!e.length||e.some(e=>e.from>=e.to))throw RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class iy{constructor(e,t,r,n,o,a,i,s){this.parser=e,this.predicate=t,this.mounts=r,this.index=n,this.start=o,this.bracketed=a,this.target=i,this.prev=s,this.depth=0,this.ranges=[]}}let ib=new aG({perNode:!0});class iS{constructor(e,t,r,n,o){this.nest=t,this.input=r,this.fragments=n,this.ranges=o,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new a8(e.type,e.children,e.positions,e.length,e.propValues.concat([[ib,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let r=Object.assign(Object.create(null),e.target.props);r[aG.mounted.id]=new aF(t,e.overlay,e.parser,e.bracketed),e.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new iw(this.fragments),t=null,r=null,n=new is(new a7(this.baseTree,this.ranges[0].from,0,null),a.IncludeAnonymous|a.IgnoreMounts);o:for(let o,a;;){let i=!0,s;if(null!=this.stoppedAt&&n.from>=this.stoppedAt)i=!1;else if(e.hasNode(n)){if(t){let e=t.mounts.find(e=>e.frag.from<=n.from&&e.frag.to>=n.to&&e.mount.overlay);if(e)for(let r of e.mount.overlay){let o=r.from+e.pos,a=r.to+e.pos;o>=n.from&&a<=n.to&&!t.ranges.some(e=>e.from<a&&e.to>o)&&t.ranges.push({from:o,to:a})}}i=!1}else if(r&&(a=function(e,t,r){for(let n of e){if(n.from>=r)break;
3if(n.to>t)return n.from<=t&&n.to>=r?2:1}return 0}(r.ranges,n.from,n.to)))i=2!=a;else if(!n.type.isAnonymous&&(o=this.nest(n,this.input))&&(n.from<n.to||!o.overlay)){!n.tree&&(function(e){let{node:t}=e,r=[],n=t.context.buffer;do r.push(e.index),e.parent();while(!e.tree)let o=e.tree,a=o.children.indexOf(n),i=o.children[a],s=i.buffer,l=[a];for(let n of(o.children[a]=function e(n,o,a,c,u,d){let h=r[d],p=[],f=[];ix(i,n,h,p,f,c);let m=s[h+1],O=s[h+2];l.push(p.length);let g=d?e(h+4,s[h+3],i.set.types[s[h]],m,O-m,d-1):t.toTree();return p.push(g),f.push(m-c),ix(i,s[h+3],o,p,f,c),new a8(a,p,f,u)}(0,s.length,aJ.none,0,i.length,r.length-1),l)){let t=e.tree.children[n],r=e.tree.positions[n];e.yield(new a7(t,r+e.from,n,e._tree))}}(n),t&&t.depth++,r&&r.depth++);let a=e.findMounts(n.from,o.parser);if("function"==typeof o.overlay)t=new iy(o.parser,o.overlay,a,this.inner.length,n.from,!!o.bracketed,n.tree,t);else{let e=i$(this.ranges,o.overlay||(n.from<n.to?[new aY(n.from,n.to)]:[]));e.length&&iv(e),(e.length||!o.overlay)&&this.inner.push(new ig(o.parser,e.length?o.parser.startParse(this.input,iP(a,e),e):o.parser.startParse(""),o.overlay?o.overlay.map(e=>new aY(e.from-n.from,e.to-n.from)):null,!!o.bracketed,n.tree,e.length?e[0].from:n.from)),o.overlay?e.length&&(r={ranges:e,depth:0,prev:r}):i=!1}}else if(t&&(s=t.predicate(n))&&(!0===s&&(s=new aY(n.from,n.to)),s.from<s.to)){let e=t.ranges.length-1;e>=0&&t.ranges[e].to==s.from?t.ranges[e]={from:t.ranges[e].from,to:s.to}:t.ranges.push(s)}if(i&&n.firstChild())t&&t.depth++,r&&r.depth++;else for(;!n.nextSibling();){if(!n.parent())break o;if(t&&!--t.depth){let e=i$(this.ranges,t.ranges);e.length&&(iv(e),this.inner.splice(t.index,0,new ig(t.parser,t.parser.startParse(this.input,iP(t.mounts,e),e),t.ranges.map(e=>new aY(e.from-t.start,e.to-t.start)),t.bracketed,t.target,e[0].from))),t=t.prev}!r||--r.depth||(r=r.prev)}}}}function ix(e,t,r,n,o,a){if(t<r){let i=e.buffer[t+1];n.push(e.slice(t,r,i)),o.push(i-a)}}class ik{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(a.IncludeAnonymous|a.IgnoreMounts|a.ExcludeBuffers)}moveTo(e){let{cursor:t}=this,r=e-this.offset;for(;!this.done&&t.from<r;)if(t.to>=r&&t.enter(r,1,a.IncludeAnonymous|a.IgnoreOverlays|a.ExcludeBuffers));else if(t.to<=r)t.next(!1)||(this.done=!0);else break}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(t.children.length&&0==t.positions[0]&&t.children[0]instanceof a8)t=t.children[0];else break}return!1}}class iw{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let r=this.curFrag=e[0];this.curTo=null!=(t=r.tree.prop(ib))?t:r.to,this.inner=new ik(r.tree,-r.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!=(e=t.tree.prop(ib))?e:t.to,this.inner=new ik(t.tree,-t.offset)}}findMounts(e,t){var r;let n=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let o=null==(r=e.tree)?void 0:r.prop(aG.mounted);if(o&&o.parser==t)for(let t=this.fragI;t<this.fragments.length;t++){let r=this.fragments[t];if(r.from>=e.to)break;r.tree==this.curFrag.tree&&n.push({frag:r,pos:e.from-r.offset,mount:o})}}}return n}}function i$(e,t){let r=null,n=t;for(let o=1,a=0;o<e.length;o++){let i=e[o-1].to,s=e[o].from;for(;a<n.length;a++){let e=n[a];if(e.from>=s)break;!(e.to<=i)&&(r||(n=r=t.slice()),e.from<i?(r[a]=new aY(e.from,i),e.to>s&&r.splice(a+1,0,new aY(s,e.to))):e.to>s?r[a--]=new aY(s,e.to):r.splice(a--,1))}}return n}function iP(e,t){let r=[];for(let{pos:n,mount:o,frag:a}of e){let e=n+(o.overlay?o.overlay[0].from:0),i=e+o.tree.length,s=Math.max(a.from,e),l=Math.min(a.to,i);if(o.overlay){let i=function(e,t,r,n){let o=0,a=0,i=!1,s=!1,l=-1e9,c=[];for(;;){let u=o==e.length?1e9:i?e[o].to:e[o].from,d=a==t.length?1e9:s?t[a].to:t[a].from;if(i!=s){let e=Math.max(l,r),t=Math.min(u,d,n);e<t&&c.push(new aY(e,t))}if(1e9==(l=Math.min(u,d)))break;u==l&&(i?(i=!1,o++):i=!0),d==l&&(s?(s=!1,a++):s=!0)}return c}(t,o.overlay.map(e=>new aY(e.from+n,e.to+n)),s,l);for(let t=0,n=s;;t++){let s=t==i.length,c=s?l:i[t].from;if(c>n&&r.push(new ip(n,c,o.tree,-e,a.from>=n||a.openStart,a.to<=c||a.openEnd)),s)break;n=i[t].to}}else r.push(new ip(s,l,o.tree,-e,a.from>=e||a.openStart,a.to<=i||a.openEnd))}return r}let iQ=0;class iC{constructor(e,t,r,n){this.name=e,this.set=t,this.base=r,this.modified=n,this.id=iQ++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){if(e instanceof iC&&(t=e),null==t?void 0:t.base)throw Error("Can not derive from a modified tag");let r=new iC("string"==typeof e?e:"?",[],null,[]);if(r.set.push(r),t)for(let e of t.set)r.set.push(e);return r}static defineModifier(e){let t=new iB(e);return e=>e.modified.indexOf(t)>-1?e:iB.get(e.base||e,e.modified.concat(t).sort((e,t)=>
3e.id-t.id))}}let iT=0;class iB{constructor(e){this.name=e,this.instances=[],this.id=iT++}static get(e,t){if(!t.length)return e;let r=t[0].instances.find(r=>{var n,o;return r.base==e&&(n=t,o=r.modified,n.length==o.length&&n.every((e,t)=>e==o[t]))});if(r)return r;let n=[],o=new iC(e.name,n,e,t);for(let e of t)e.instances.push(o);let a=function(e){let t=[[]];for(let r=0;r<e.length;r++)for(let n=0,o=t.length;n<o;n++)t.push(t[n].concat(e[r]));return t.sort((e,t)=>t.length-e.length)}(t);for(let t of e.set)if(!t.modified.length)for(let e of a)n.push(iB.get(t,e));return o}}function iA(e){let t=Object.create(null);for(let r in e){let n=e[r];for(let e of(Array.isArray(n)||(n=[n]),r.split(" ")))if(e){let r=[],o=2,a=e;for(let t=0;;){if("..."==a&&t>0&&t+3==e.length){o=1;break}let n=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);if(!n)throw RangeError("Invalid path: "+e);if(r.push("*"==n[0]?"":'"'==n[0][0]?JSON.parse(n[0]):n[0]),(t+=n[0].length)==e.length)break;let i=e[t++];if(t==e.length&&"!"==i){o=0;break}if("/"!=i)throw RangeError("Invalid path: "+e);a=e.slice(t)}let i=r.length-1,s=r[i];if(!s)throw RangeError("Invalid path: "+e);let l=new iE(n,o,i>0?r.slice(0,i):null);t[s]=l.sort(t[s])}}return iR.add(t)}let iR=new aG({combine(e,t){let r,n,o;for(;e||t;){if(!e||t&&e.depth<t.depth?(o=t,t=t.next):(o=e,e=e.next),r&&r.mode==o.mode&&!o.context&&!r.context)continue;let a=new iE(o.tags,o.mode,o.context);r?r.next=a:n=a,r=a}return n}});class iE{constructor(e,t,r,n){this.tags=e,this.mode=t,this.context=r,this.next=n}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function iV(e,t){let r=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)r[e.id]=t.class;else r[t.tag.id]=t.class;let{scope:n,all:o=null}=t||{};return{style:e=>{let t=o;for(let n of e)for(let e of n.set){let n=r[e.id];if(n){t=t?t+" "+n:n;break}}return t},scope:n}}iE.empty=new iE([],2,null);class iZ{constructor(e,t,r){this.at=e,this.highlighters=t,this.span=r,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,r,n,o){let{type:a,from:i,to:s}=e;if(i>=r||s<=t)return;a.isTop&&(o=this.highlighters.filter(e=>!e.scope||e.scope(a)));let l=n,c=function(e){let t=e.type.prop(iR);for(;t&&t.context&&!e.matchContext(t.context);
vendor: 13,373 bytes, line 3
3)t=t.next;return t||null}(e)||iE.empty,u=function(e,t){let r=null;for(let n of e){let e=n.style(t);e&&(r=r?r+" "+e:e)}return r}(o,c.tags);if(u&&(l&&(l+=" "),l+=u,1==c.mode&&(n+=(n?" ":"")+u)),this.startSpan(Math.max(t,i),l),c.opaque)return;let d=e.tree&&e.tree.prop(aG.mounted);if(d&&d.overlay){let a=e.node.enter(d.overlay[0].from+i,1),c=this.highlighters.filter(e=>!e.scope||e.scope(d.tree.type)),u=e.firstChild();for(let h=0,p=i;;h++){let f=h<d.overlay.length?d.overlay[h]:null,m=f?f.from+i:s,O=Math.max(t,p),g=Math.min(r,m);if(O<g&&u)for(;e.from<g&&(this.highlightRange(e,O,g,n,o),this.startSpan(Math.min(g,e.to),l),!(e.to>=m)&&e.nextSibling()););if(!f||m>r)break;(p=f.to+i)>t&&(this.highlightRange(a.cursor(),Math.max(t,f.from+i),Math.min(r,p),"",c),this.startSpan(Math.min(r,p),l))}u&&e.parent()}else if(e.firstChild()){d&&(n="");do{if(e.to<=t)continue;if(e.from>=r)break;this.highlightRange(e,t,r,n,o),this.startSpan(Math.min(r,e.to),l)}while(e.nextSibling())e.parent()}}}let ij=iC.define,iX=ij(),i_=ij(),iM=ij(i_),iq=ij(i_),iN=ij(),iD=ij(iN),iU=ij(iN),iz=ij(),iW=ij(iz),iL=ij(),iH=ij(),iI=ij(),iY=ij(iI),iG=ij(),iF={comment:iX,lineComment:ij(iX),blockComment:ij(iX),docComment:ij(iX),name:i_,variableName:ij(i_),typeName:iM,tagName:ij(iM),propertyName:iq,attributeName:ij(iq),className:ij(i_),labelName:ij(i_),namespace:ij(i_),macroName:ij(i_),literal:iN,string:iD,docString:ij(iD),character:ij(iD),attributeValue:ij(iD),number:iU,integer:ij(iU),float:ij(iU),bool:ij(iN),regexp:ij(iN),escape:ij(iN),color:ij(iN),url:ij(iN),keyword:iL,self:ij(iL),null:ij(iL),atom:ij(iL),unit:ij(iL),modifier:ij(iL),operatorKeyword:ij(iL),controlKeyword:ij(iL),definitionKeyword:ij(iL),moduleKeyword:ij(iL),operator:iH,derefOperator:ij(iH),arithmeticOperator:ij(iH),logicOperator:ij(iH),bitwiseOperator:ij(iH),compareOperator:ij(iH),updateOperator:ij(iH),definitionOperator:ij(iH),typeOperator:ij(iH),controlOperator:ij(iH),punctuation:iI,separator:ij(iI),bracket:iY,angleBracket:ij(iY),squareBracket:ij(iY),paren:ij(iY),brace:ij(iY),content:iz,heading:iW,heading1:ij(iW),heading2:ij(iW),heading3:ij(iW),heading4:ij(iW),heading5:ij(iW),heading6:ij(iW),contentSeparator:ij(iz),list:ij(iz),quote:ij(iz),emphasis:ij(iz),strong:ij(iz),link:ij(iz),monospace:ij(iz),strikethrough:ij(iz),inserted:ij(),deleted:ij(),changed:ij(),invalid:ij(),meta:iG,documentMeta:ij(iG),annotation:ij(iG),processingInstruction:ij(iG),definition:iC.defineModifier("definition"),constant:iC.defineModifier("constant"),function:iC.defineModifier("function"),standard:iC.defineModifier("standard"),local:iC.defineModifier("local"),special:iC.defineModifier("special")};for(let e in iF){let t=iF[e];t instanceof iC&&(t.name=e)}iV([{tag:iF.link,class:"tok-link"},{tag:iF.heading,class:"tok-heading"},{tag:iF.emphasis,class:"tok-emphasis"},{tag:iF.strong,class:"tok-strong"},{tag:iF.keyword,class:"tok-keyword"},{tag:iF.atom,class:"tok-atom"},{tag:iF.bool,class:"tok-bool"},{tag:iF.url,class:"tok-url"},{tag:iF.labelName,class:"tok-labelName"},{tag:iF.inserted,class:"tok-inserted"},{tag:iF.deleted,class:"tok-deleted"},{tag:iF.literal,class:"tok-literal"},{tag:iF.string,class:"tok-string"},{tag:iF.number,class:"tok-number"},{tag:[iF.regexp,iF.escape,iF.special(iF.string)],class:"tok-string2"},{tag:iF.variableName,class:"tok-variableName"},{tag:iF.local(iF.variableName),class:"tok-variableName tok-local"},{tag:iF.definition(iF.variableName),class:"tok-variableName tok-definition"},{tag:iF.special(iF.variableName),class:"tok-variableName2"},{tag:iF.definition(iF.propertyName),class:"tok-propertyName tok-definition"},{tag:iF.typeName,class:"tok-typeName"},{tag:iF.namespace,class:"tok-namespace"},{tag:iF.className,class:"tok-className"},{tag:iF.macroName,class:"tok-macroName"},{tag:iF.propertyName,class:"tok-propertyName"},{tag:iF.operator,class:"tok-operator"},{tag:iF.comment,class:"tok-comment"},{tag:iF.meta,class:"tok-meta"},{tag:iF.invalid,class:"tok-invalid"},{tag:iF.punctuation,class:"tok-punctuation"}]);let iK=new aG;function iJ(e){return eQ.define({combine:e?t=>t.concat(e):void 0})}let i0=new aG;class i1{constructor(e,t,r=[],n=""){this.data=e,this.name=n,e3.prototype.hasOwnProperty("tree")||Object.defineProperty(e3.prototype,"tree",{get(){return i5(this)}}),this.parser=t,this.extension=[sn.of(this),e3.languageData.of((e,t,r)=>{let n=i2(e,t,r),o=n.type.prop(iK);if(!o)return[];let a=e.facet(o),i=n.type.prop(i0);if(i){let o=n.resolve(t-n.from,r);for(let t of i)if(t.test(o,e)){let r=e.facet(t.facet);return"replace"==t.type?r:r.concat(a)}}return a})].concat(r)}isActiveAt(e,t,r=-1){return i2(e,t,r).type.prop(iK)==this.data}findRegions(e){let t=e.facet(sn);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let r=[],n=(e,t)=>{if(e.prop(iK)==this.data)return void r.push({from:t,to:t+e.length});let o=e.prop(aG.mounted);if(o){if(o.tree.prop(iK)==this.data){if(o.overlay)for(let e of o.overlay)r.push({from:e.from+t,to:e.to+t});else r.push({from:t,to:t+e.length});return}else if(o.overlay){let e=r.length;if(n(o.tree,o.overlay[0].from+t),r.length>e)return}}for(let r=0;r<e.children.length;r++){let o=e.children[r];o instanceof a8&&n(o,e.positions[r]+t)}};return n(i5(e),0),r}get allowsNesting(){return!0}}function i2(e,t,r){let n=e.facet(sn),o=i5(e).topNode;if(!n||n.allowsNesting)for(let e=o;e;e=e.enter(t,r,a.ExcludeBuffers|a.EnterBracketed))e.type.isTop&&(o=e);return o}i1.setState=eK.define();class i8 extends i1{constructor(e,t,r){super(e,t,[],r),this.parser=t}static define(e){let t=iJ(e.languageData);return new i8(t,e.parser.configure({props:[iK.add(e=>e.isTop?t:void 0)]}),e.name)}configure(e,t){return new i8(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function i5(e){let t=e.field(i1.state,!1);return t?t.tree:a8.empty}class i4{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let r=this.cursorPos-this.string.length;return e<r||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-r,t-r)}}let i3=null;class i6{constructor(e,t,r=[],n,o,a,i,s){this.parser=e,this.state=t,this.fragments=r,this.tree=n,this.treeLen=o,this.viewport=a,this.skipped=i,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}static create(e,t,r){return new i6(e,t,[],a8.empty,0,r,[],null)}startParse(){return this.parser.startParse(new i4(this.state.doc),this.fragments)}work(e,t){return(null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=a8.empty&&this.isDone(null!=t?t:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var r;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let n=this.parse.advance();if(n){if(this.fragments=this.withoutTempSkipped(ip.addTree(n,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!=(r=this.parse.stoppedAt)?r:this.state.doc.length,this.tree=n,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(ip.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=i3;i3=this;try{return e()}finally{i3=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=i9(e,t.from,t.to);return e}changes(e,t){let{fragments:r,tree:n,treeLen:o,viewport:a,skipped:i}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,r,n,o)=>t.push({fromA:e,toA:r,fromB:n,toB:o})),r=ip.applyChanges(r,t),n=a8.empty,o=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length)for(let t of(i=[],this.skipped)){let r=e.mapPos(t.from,1),n=e.mapPos(t.to,-1);r<n&&i.push({from:r,to:n})}}return new i6(this.parser,t,r,n,o,a,i,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:r,to:n}=this.skipped[t];r<e.to&&n>e.from&&(this.fragments=i9(this.fragments,r,n),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends im{createParse(t,r,n){let o=n[0].from,a=n[n.length-1].to;return{parsedPos:o,advance(){let t=i3;if(t){for(let e of n)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=a,new a8(aJ.none,[],[],a-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return i3}}function i9(e,t,r){return ip.applyChanges(e,[{fromA:t,toA:r,fromB:t,toB:r}])}class i7{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,r)||t.takeTree(),new i7(t)}static init(e){let t=Math.min(3e3,e.doc.length),r=i6.create(e.facet(sn).parser,e,{from:0,to:t});return r.work(20,t)||r.takeTree(),new i7(r)}}i1.state=eE.define({create:i7.init,update(e,t){for(let e of t.effects)if(e.is(i1.setState))return e.value;return t.startState.facet(sn)!=t.state.facet(sn)?i7.init(t.state):e.apply(t)}});let se=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"u">typeof requestIdleCallback&&(se=e=>{let t=-1,r=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(r):cancelIdleCallback(t)});let st="u">typeof navigator&&(null==(i=navigator.scheduling)?void 0:i.isInputPending)?()=>navigator.scheduling.isInputPending():null,sr=rH.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(i1.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(i1.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=se(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:n}}=this.view,o=r.field(i1.state);if(o.tree==o.context.tree&&o.context.isDone(n+1e5))return;let a=Date.now()+Math.min(this.chunkBudget,100,e&&!st?Math.max(25,e.timeRemaining()-5):1e9),i=o.context.treeLen<n&&r.doc.length>n+1e3,s=o.context.work(()=>st&&st()||Date.now()>a,n+1e5*!i);this.chunkBudget-=Date.now()-t,(s||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:i1.setState.of(new i7(o.context))})),this.chunkBudget>0&&!(s&&!i)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>rU(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),sn=eQ.define({combine:e=>e.length?e[0]:null,enables:e=>[i1.state,sr,oD.contentAttributes.compute([e],t=>{let r=t.facet(e);return r&&r.name?{"data-language":r.name}:{}})]});class so{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}let sa=eQ.define(),si=eQ.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function ss(e){let t=e.facet(si);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function sl(e,t){let r="",n=e.tabSize,o=e.facet(si)[0];if(" "==o){for(;t>=n;)r+=" ",t-=n;o=" "}for(let e=0;e<t;e++)r+=o;return r}function sc(e,t){for(let r of(e instanceof e3&&(e=new su(e)),e.state.facet(sa))){let n=r(e,t);if(void 0!==n)return n}let r=i5(e.state);return r.length>=t?function(e,t,r){let n=t.resolveStack(r),o=t.resolveInner(r,-1).resolve(r,0).enterUnfinishedNodesBefore(r);if(o!=n.node){let e=[];for(let t=o;t&&!(t.from<n.node.from||t.to>n.node.to||t.from==n.node.from&&t.type==n.node.type);t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)n={node:e[t],next:n}}return sh(n,e,r)}(e,r,t):null}class su{constructor(e,t={}){this.state=e,this.options=t,this.unit=ss(e)}lineAt(e,t=1){let r=this.state.doc.lineAt(e),{simulateBreak:n,simulateDoubleBreak:o}=this.options;if(null!=n&&n>=r.from&&n<=r.to)if(o&&n==e)return{text:"",from:e};
3else if(t<0?n<e:n<=e)return{text:r.text.slice(n-r.from),from:n};else return{text:r.text.slice(0,n-r.from),from:r.from};return r}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:r,from:n}=this.lineAt(e,t);return r.slice(e-n,Math.min(r.length,e+100-n))}column(e,t=1){let{text:r,from:n}=this.lineAt(e,t),o=this.countColumn(r,e-n),a=this.options.overrideIndentation?this.options.overrideIndentation(n):-1;return a>-1&&(o+=a-this.countColumn(r,r.search(/\S|$/))),o}countColumn(e,t=e.length){return tO(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:r,from:n}=this.lineAt(e,t),o=this.options.overrideIndentation;if(o){let e=o(n);if(e>-1)return e}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}let sd=new aG;function sh(e,t,r){for(let n=e;n;n=n.next){let e=function(e){let t=e.type.prop(sd);if(t)return t;let r=e.firstChild,n;if(r&&(n=r.type.prop(aG.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>sO(e,!0,1,void 0,r&&!(e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak)?t.from:void 0)}return null==e.parent?sp:null}(n.node);if(e)return e(sf.create(t,r,n))}return 0}function sp(){return 0}class sf extends su{constructor(e,t,r){super(e.state,e.options),this.base=e,this.pos=t,this.context=r}get node(){return this.context.node}static create(e,t,r){return new sf(e,t,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let r=e.resolve(t.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(function(e,t){for(let r=t;r;r=r.parent)if(e==r)return!0;return!1}(r,e))break;t=this.state.doc.lineAt(r.from)}return this.lineIndent(t.from)}continue(){return sh(this.context.next,this.base,this.pos)}}function sm({closing:e,align:t=!0,units:r=1}){return n=>sO(n,t,r,e)}function sO(e,t,r,n,o){let a=e.textAfter,i=a.match(/^\s*/)[0].length,s=n&&a.slice(i,i+n.length)==n||o==e.pos+i,l=t?function(e){let t=e.node,r=t.childAfter(t.from),n=t.lastChild;if(!r)return null;let o=e.options.simulateBreak,a=e.state.doc.lineAt(r.from),i=null==o||o<=a.from?a.to:Math.min(a.to,o);for(let e=r.to;;){let o=t.childAfter(e);if(!o||o==n)return null;if(!o.type.isSkipped){if(o.from>=i)return null;let e=/^ */.exec(a.text.slice(r.to-a.from))[0].length;return{from:r.from,to:r.to+e}}e=o.to}}(e):null;return l?s?e.column(l.from):e.column(l.to):e.baseIndent+(s?0:e.unit*r)}function sg({except:e,units:t=1}={}){return r=>{let n=e&&e.test(r.textAfter);return r.baseIndent+(n?0:t*r.unit)}}let sv=eQ.define(),sy=new aG;function sb(e){let t=e.firstChild,r=e.lastChild;return t&&t.to<r.from?{from:t.to,to:r.type.isError?e.to:r.from}:null}function sS(e,t,r){for(let n of e.facet(sv)){let o=n(e,t,r);if(o)return o}return function(e,t,r){let n=i5(e);if(n.length<r)return null;let o=n.resolveStack(r,1),a=null;for(let i=o;i;i=i.next){let o=i.node;if(o.to<=r||o.from>r)continue;if(a&&o.from<t)break;let s=o.type.prop(sy);if(s&&(o.to<n.length-50||n.length==e.doc.length||!function(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}(o))){let n=s(o,e);n&&n.from<=r&&n.from>=t&&n.to>r&&(a=n)}}return a}(e,t,r)}function sx(e,t){let r=t.mapPos(e.from,1),n=t.mapPos(e.to,-1);return r>=n?void 0:{from:r,to:n}}let sk=eK.define({map:sx}),sw=eK.define({map:sx}),s$=eE.define({create:()=>tI.none,update(e,t){t.isUserEvent("delete")&&t.changes.iterChangedRanges((t,r)=>e=sP(e,t,r)),e=e.map(t.changes);let r=[];for(let n of t.effects)n.is(sk)&&!function(e,t,r){let n=!1;return e.between(t,t,(e,o)=>{e==t&&o==r&&(n=!0)}),n}(e,n.value.from,n.value.to)?r.push(n.value):n.is(sw)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(r.length){let{preparePlaceholder:n}=t.state.facet(sT),o=r.map(e=>(n?tI.replace({widget:new sE(n(t.state,e))}):sR).range(e.from,e.to));e=e.update({add:o})}return t.selection&&(e=sP(e,t.selection.main.head)),e},provide:e=>oD.decorations.from(e),toJSON(e,t){let r=[];return e.between(0,t.doc.length,(e,t)=>{r.push(e,t)}),r},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw RangeError("Invalid JSON for fold state");let t=[];for(let r=0;r<e.length;){let n=e[r++],o=e[r++];if("number"!=typeof n||"number"!=typeof o)throw RangeError("Invalid JSON for fold state");t.push(sR.range(n,o))}return tI.set(t,!0)}});function sP(e,t,r=t){let n=!1;return e.between(t,r,(e,o)=>{e<r&&o>t&&(n=!0)}),n?e.update({filterFrom:t,filterTo:r,filter:(e,n)=>e>=r||n<=t}):e}function sQ(e,t,r){var n;let o=null;return null==(n=e.field(s$,!1))||n.between(t,r,(e,t)=>{(!o||o.from>e)&&(o={from:e,to:t})}),o}let sC={placeholderDOM:null,preparePlaceholder:null,placeholderText:"â¦"},sT=eQ.define({combine:e=>e6(e,sC)});function sB(e){let t=[s$,sX];return e&&t.push(sT.of(e)),t}function sA(e,t){let{state:r}=e,n=r.facet(sT),o=t=>{let r=e.lineBlockAt(e.posAtDOM(t.target)),n=sQ(e.state,r.from,r.to);n&&e.dispatch({effects:sw.of(n)}),t.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(e,o,t);let a=document.createElement("span");return a.textContent=n.placeholderText,a.setAttribute("aria-label",r.phrase("folded code")),a.title=r.phrase("unfold"),a.className="
3cm-foldPlaceholder",a.onclick=o,a}let sR=tI.replace({widget:new class extends tL{toDOM(e){return sA(e,null)}}});class sE extends tL{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return sA(e,this.value)}}let sV={openText:"â",closedText:"âº",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class sZ extends aP{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function sj(e={}){let t={...sV,...e},r=new sZ(t,!0),n=new sZ(t,!1),o=rH.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(sn)!=e.state.facet(sn)||e.startState.field(s$,!1)!=e.state.field(s$,!1)||i5(e.startState)!=i5(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new ta;for(let o of e.viewportLineBlocks){let a=sQ(e.state,o.from,o.to)?n:sS(e.state,o.from,o.to)?r:null;a&&t.add(o.from,o.from,a)}return t.finish()}}),{domEventHandlers:a}=t;return[o,aA({class:"cm-foldGutter",markers(e){var t;return(null==(t=e.plugin(o))?void 0:t.markers)||tn.empty},initialSpacer:()=>new sZ(t,!1),domEventHandlers:{...a,click:(e,t,r)=>{if(a.click&&a.click(e,t,r))return!0;let n=sQ(e.state,t.from,t.to);if(n)return e.dispatch({effects:sw.of(n)}),!0;let o=sS(e.state,t.from,t.to);return!!o&&(e.dispatch({effects:sk.of(o)}),!0)}}}),sB()]}let sX=oD.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class s_{constructor(e,t){let r;function n(e){let t=tb.newName();return(r||(r=Object.create(null)))["."+t]=e,t}this.specs=e;const o="string"==typeof t.all?t.all:t.all?n(t.all):void 0,a=t.scope;this.scope=a instanceof i1?e=>e.prop(iK)==a.data:a?e=>e==a:void 0,this.style=iV(e.map(e=>({tag:e.tag,class:e.class||n(Object.assign({},e,{tag:null}))})),{all:o}).style,this.module=r?new tb(r):null,this.themeType=t.themeType}static define(e,t){return new s_(e,t||{})}}let sM=eQ.define(),sq=eQ.define({combine:e=>e.length?[e[0]]:null});function sN(e){let t=e.facet(sM);return t.length?t:e.facet(sq)}function sD(e,t){let r=[sU],n;return e instanceof s_&&(e.module&&r.push(oD.styleModule.of(e.module)),n=e.themeType),(null==t?void 0:t.fallback)?r.push(sq.of(e)):n?r.push(sM.computeN([oD.darkTheme],t=>t.facet(oD.darkTheme)==("dark"==n)?[e]:[])):r.push(sM.of(e)),r}let sU=eZ.high(rH.fromClass(class{constructor(e){this.markCache=Object.create(null),this.tree=i5(e.state),this.decorations=this.buildDeco(e,sN(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=i5(e.state),r=sN(e.state),n=r!=sN(e.startState),{viewport:o}=e.view,a=e.changes.mapPos(this.decoratedTo,1);t.length<o.to&&!n&&t.type==this.tree.type&&a>=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=a):(t!=this.tree||e.viewportChanged||n)&&(this.tree=t,this.decorations=this.buildDeco(e.view,r),this.decoratedTo=o.to)}buildDeco(e,t){if(!t||!this.tree.length)return tI.none;let r=new ta;for(let{from:n,to:o}of e.visibleRanges)!function(e,t,r,n=0,o=e.length){let a=new iZ(n,Array.isArray(t)?t:[t],r);a.highlightRange(e.cursor(),n,o,"",a.highlighters),a.flush(o)}(this.tree,t,(e,t,n)=>{r.add(e,t,this.markCache[n]||(this.markCache[n]=tI.mark({class:n})))},n,o);return r.finish()}},{decorations:e=>e.decorations})),sz=s_.define([{tag:iF.meta,color:"#404740"},{tag:iF.link,textDecoration:"underline"},{tag:iF.heading,textDecoration:"underline",fontWeight:"bold"},{tag:iF.emphasis,fontStyle:"italic"},{tag:iF.strong,fontWeight:"bold"},{tag:iF.strikethrough,textDecoration:"line-through"},{tag:iF.keyword,color:"#708"},{tag:[iF.atom,iF.bool,iF.url,iF.contentSeparator,iF.labelName],color:"#219"},{tag:[iF.literal,iF.inserted],color:"#164"},{tag:[iF.string,iF.deleted],color:"#a11"},{tag:[iF.regexp,iF.escape,iF.special(iF.string)],color:"#e40"},{tag:iF.definition(iF.variableName),color:"#00f"},{tag:iF.local(iF.variableName),color:"#30a"},{tag:[iF.typeName,iF.namespace],color:"#085"},{tag:iF.className,color:"#167"},{tag:[iF.special(iF.variableName),iF.macroName],color:"#256"},{tag:iF.definition(iF.propertyName),color:"#00c"},{tag:iF.comment,color:"#940"},{tag:iF.invalid,color:"#f00"}]),sW=oD.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),sL="()[]{}",sH=eQ.define({combine:e=>
3e6(e,{afterCursor:!0,brackets:sL,maxScanDistance:1e4,renderMatch:sG})}),sI=tI.mark({class:"cm-matchingBracket"}),sY=tI.mark({class:"cm-nonmatchingBracket"});function sG(e){let t=[],r=e.matched?sI:sY;return t.push(r.range(e.start.from,e.start.to)),e.end&&t.push(r.range(e.end.from,e.end.to)),t}function sF(e){let t=[],r=e.facet(sH);for(let n of e.selection.ranges){if(!n.empty)continue;let o=s8(e,n.head,-1,r)||n.head>0&&s8(e,n.head-1,1,r)||r.afterCursor&&(s8(e,n.head,1,r)||n.head<e.doc.length&&s8(e,n.head+1,-1,r));o&&(t=t.concat(r.renderMatch(o,e)))}return tI.set(t,!0)}let sK=[rH.fromClass(class{constructor(e){this.paused=!1,this.decorations=sF(e.state)}update(e){(e.docChanged||e.selectionSet||this.paused)&&(e.view.composing?(this.decorations=this.decorations.map(e.changes),this.paused=!0):(this.decorations=sF(e.state),this.paused=!1))}},{decorations:e=>e.decorations}),sW];function sJ(e={}){return[sH.of(e),sK]}let s0=new aG;function s1(e,t,r){let n=e.prop(t<0?aG.openedBy:aG.closedBy);if(n)return n;if(1==e.name.length){let n=r.indexOf(e.name);if(n>-1&&n%2==+(t<0))return[r[n+t]]}return null}function s2(e){let t=e.type.prop(s0);return t?t(e.node):e}function s8(e,t,r,n={}){let o=n.maxScanDistance||1e4,a=n.brackets||sL,i=i5(e),s=i.resolveInner(t,r);for(let e=s;e;e=e.parent){let n=s1(e.type,r,a);if(n&&e.from<e.to){let o=s2(e);if(o&&(r>0?t>=o.from&&t<o.to:t>o.from&&t<=o.to))return function(e,t,r,n,o){let a=t.parent,i={from:r.from,to:r.to},s=0,l=null==a?void 0:a.cursor();if(l&&(e<0?l.childBefore(t.from):l.childAfter(t.to)))do if(e<0?l.to<=t.from:l.from>=t.to){if(0==s&&n.indexOf(l.type.name)>-1&&l.from<l.to){let e=s2(l);return{start:i,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}else if(s1(l.type,e,o))s++;else if(s1(l.type,-e,o)){if(0==s){let e=s2(l);return{start:i,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}s--}}while(e<0?l.prevSibling():l.nextSibling())return{start:i,matched:!1}}(r,e,o,n,a)}}return function(e,t,r,n,o,a,i){if(r<0?!t:t==e.doc.length)return null;let s=r<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=i.indexOf(s);if(l<0||l%2==0!=r>0)return null;let c={from:r<0?t-1:t,to:r>0?t+1:t},u=e.doc.iterRange(t,r>0?e.doc.length:0),d=0;for(let e=0;!u.next().done&&e<=a;){let a=u.value;r<0&&(e+=a.length);let s=t+e*r;for(let e=r>0?0:a.length-1,t=r>0?a.length:-1;e!=t;e+=r){let t=i.indexOf(a[e]);if(!(t<0)&&n.resolveInner(s+e,1).type==o)if(t%2==0==r>0)d++;else{if(1==d)return{start:c,end:{from:s+e,to:s+e+1},matched:t>>1==l>>1};d--}}r>0&&(e+=a.length)}return u.done?{start:c,matched:!1}:null}(e,t,r,i,s.type,o,a)}let s5=Object.create(null),s4=[aJ.none],s3=[],s6=Object.create(null),s9=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])s9[e]=function(e,t){let r=[];for(let n of t.split(" ")){let t=[];for(let r of n.split(".")){let n=e[r]||iF[r];n?"function"==typeof n?t.length?t=t.map(n):s7(r,`Modifier ${r} used at start of tag`):t.length?s7(r,`Tag ${r} used as modifier`):t=Array.isArray(n)?n:[n]:s7(r,`Unknown highlighting tag ${r}`)}for(let e of t)r.push(e)}if(!r.length)return 0;let n=t.replace(/ /g,"_"),o=n+" "+r.map(e=>e.id),a=s6[o];if(a)return a.id;let i=s6[o]=aJ.define({id:s4.length,name:n,props:[iA({[n]:r})]});return s4.push(i),i.id}(s5,t);function s7(e,t){s3.indexOf(e)>-1||(s3.push(e),console.warn(t))}rf.RTL,rf.LTR;class le{constructor(e,t,r,n){this.state=e,this.pos=t,this.explicit=r,this.view=n,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=i5(this.state).resolveInner(this.pos,-1);for(;t&&0>e.indexOf(t.name);)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),r=Math.max(t.from,this.pos-250),n=t.text.slice(r-t.from,this.pos-t.from),o=n.search(la(e,!1));return o<0?null:{from:r+o,to:this.pos,text:n.slice(o)}}get aborted(){return null==this.abortListeners}addEventListener(e,t,r){"abort"==e&&this.abortListeners&&(this.abortListeners.push(t),r&&r.onDocChange&&(this.abortOnDocChange=!0))}}function lt(e){let t=Object.keys(e).join(""),r=/\w/.test(t);return r&&(t=t.replace(/\w/g,"")),`[${r?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function lr(e){let t=e.map(e=>"string"==typeof e?{label:e}:e),[r,n]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),r=Object.create(null);for(let{label:n}of e){t[n[0]]=!0;for(let e=1;e<n.length;e++)r[n[e]]=!0}let n=lt(t)+lt(r)+"*$";return[RegExp("^"+n),new RegExp(n)]}(t);return e=>{let o=e.matchBefore(n);return o||e.explicit?{from:o?o.from:e.pos,options:t,validFor:r}:null}}class ln{constructor(e,t,r,n){this.completion=e,this.source=t,this.match=r,this.score=n}}function lo(e){return e.selection.main.from}function la(e,t){var r;let{source:n}=e,o=t&&"^"!=n[0],a="$"!=n[n.length-1];return o||a?RegExp(`${o?"^":""}(?:${n})${a?"$":""}`,null!=(r=e.flags)?r:e.ignoreCase?"i":""):e}let li=eY.define(),ls=new WeakMap;function ll(e){if(!Array.isArray(e))return e;let t=ls.get(e);return t||ls.set(e,t=lr(e)),t}let lc=eK.define(),lu=eK.define();class ld{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let r=eu(e,t),n=eh(r);this.chars.push(r);let o=e.slice(t,t+n),a=o.toUpperCase();this.folded.push(eu(a==o?o.toLowerCase():a,0)),t+=n}
3this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(0==this.pattern.length)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:r,any:n,precise:o,byWord:a}=this;if(1==t.length){let n=eu(e,0),o=eh(n),a=o==e.length?0:-100;if(n==t[0]);else{if(n!=r[0])return null;a+=-200}return this.ret(a,[0,o])}let i=e.indexOf(this.pattern);if(0==i)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let s=t.length,l=0;if(i<0){for(let o=0,a=Math.min(e.length,200);o<a&&l<s;){let a=eu(e,o);(a==t[l]||a==r[l])&&(n[l++]=o),o+=eh(a)}if(l<s)return null}let c=0,u=0,d=!1,h=0,p=-1,f=-1,m=/[a-z]/.test(e),O=!0;for(let n=0,l=Math.min(e.length,200),g=0;n<l&&u<s;){let l=eu(e,n);i<0&&(c<s&&l==t[c]&&(o[c++]=n),h<s&&(l==t[h]||l==r[h]?(0==h&&(p=n),f=n+1,h++):h=0));let v,y=l<255?l>=48&&l<=57||l>=97&&l<=122?2:+(l>=65&&l<=90):(v=ed(l))!=v.toLowerCase()?1:2*(v!=v.toUpperCase());(!n||1==y&&m||0==g&&0!=y)&&(t[u]==l||r[u]==l&&(d=!0)?a[u++]=n:a.length&&(O=!1)),g=y,n+=eh(l)}return u==s&&0==a[0]&&O?this.result(-100+(d?-200:0),a,e):h==s&&0==p?this.ret(-200-e.length+(f==e.length?0:-100),[0,f]):i>-1?this.ret(-700-e.length,[i,i+this.pattern.length]):h==s?this.ret(-900-e.length,[p,f]):u==s?this.result(-100+(d?-200:0)+-700+(O?0:-1100),a,e):2==t.length?null:this.result((n[0]?-700:0)+-200+-1100,n,e)}result(e,t,r){let n=[],o=0;for(let e of t){let t=e+(this.astral?eh(eu(r,e)):1);o&&n[o-1]==e?n[o-1]=t:(n[o++]=e,n[o++]=t)}return this.ret(e-r.length,n)}}class lh{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),r=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return null==r?null:(this.matched=[0,t.length],this.score=r+(e.length==this.pattern.length?0:-100),this)}}let lp=eQ.define({combine:e=>e6(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:lm,filterStrict:!1,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>r=>lf(e(r),t(r)),optionClass:(e,t)=>r=>lf(e(r),t(r)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})});function lf(e,t){return e?t?e+" "+t:e:t}function lm(e,t,r,n,o,a){let i=e.textDirection==rf.RTL,s=i,l=!1,c="top",u,d,h=t.left-o.left,p=o.right-t.right,f=n.right-n.left,m=n.bottom-n.top;if(s&&h<Math.min(f,p)?s=!1:!s&&p<Math.min(f,h)&&(s=!0),f<=(s?h:p))u=Math.max(o.top,Math.min(r.top,o.bottom-m))-t.top,d=Math.min(400,s?h:p);else{l=!0,d=Math.min(400,(i?t.right:o.right-t.left)-30);let e=o.bottom-t.bottom;e>=m||e>t.top?u=r.bottom-t.top:(c="bottom",u=t.bottom-r.top)}let O=(t.bottom-t.top)/a.offsetHeight,g=(t.right-t.left)/a.offsetWidth;return{style:`${c}: ${u/O}px; max-width: ${d/g}px`,class:"cm-completionInfo-"+(l?i?"left-narrow":"right-narrow":s?"left":"right")}}let lO=eK.define();function lg(e,t,r){if(e<=r)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/r);return{from:e*r,to:(e+1)*r}}let n=Math.ceil((e-t)/r);return{from:e-n*r,to:e-(n-1)*r}}class lv{constructor(e,t,r){this.view=e,this.stateField=t,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let n=e.state.field(t),{options:o,selected:a}=n.open,i=e.state.facet(lp);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>"cm-completionIcon-"+e)),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,r,n){let o=document.createElement("span");o.className="cm-completionLabel";let a=e.displayLabel||e.label,i=0;for(let e=0;e<n.length;){let t=n[e++],r=n[e++];t>i&&o.appendChild(document.createTextNode(a.slice(i,t)));let s=o.appendChild(document.createElement("span"));s.appendChild(document.createTextNode(a.slice(t,r))),s.className="
3cm-completionMatchedText",i=r}return i<a.length&&o.appendChild(document.createTextNode(a.slice(i))),o},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),t.sort((e,t)=>e.position-t.position).map(e=>e.render)}(i),this.optionClass=i.optionClass,this.tooltipClass=i.tooltipClass,this.range=lg(o.length,a,i.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",r=>{let{options:n}=e.state.field(t).open;for(let t=r.target,o;t&&t!=this.dom;t=t.parentNode)if("LI"==t.nodeName&&(o=/-(\d+)$/.exec(t.id))&&+o[1]<n.length){this.applyCompletion(e,n[+o[1]]),r.preventDefault();return}if(r.target==this.list){let t=this.list.classList.contains("cm-completionListIncompleteTop")&&r.clientY<this.list.firstChild.getBoundingClientRect().top?this.range.from-1:this.list.classList.contains("cm-completionListIncompleteBottom")&&r.clientY>this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;null!=t&&(e.dispatch({effects:lO.of(t)}
vendor: 1,535 bytes, line 3
3),r.preventDefault())}}),this.dom.addEventListener("focusout",t=>{let r=e.state.field(this.stateField,!1);r&&r.tooltip&&e.state.facet(lp).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:lu.of(null)})}),this.showOptions(o,n.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let r=e.state.field(this.stateField),n=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),r!=n){let{options:o,selected:a,disabled:i}=r.open;n.open&&n.open.options==o||(this.range=lg(o.length,a,e.state.facet(lp).maxRenderedOptions),this.showOptions(o,r.id)),this.updateSel(),i!=(null==(t=n.open)?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!i)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=lg(t.options.length,t.selected,this.view.state.facet(lp).maxRenderedOptions),this.showOptions(t.options,e.id));let r=this.updateSelectedOption(t.selected);if(r){this.destroyInfo();
3let{completion:n}=t.options[t.selected],{info:o}=n;if(!o)return;let a="string"==typeof o?document.createTextNode(o):o(n);if(!a)return;"then"in a?a.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,n)}).catch(e=>rU(this.view.state,e,"completion info")):(this.addInfoPane(a,n),r.setAttribute("aria-describedby",this.info.id))}}addInfoPane(e,t){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",r.id="cm-completionInfo-"+Math.floor(65535*Math.random()).toString(16),null!=e.nodeType)r.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:n}=e;r.appendChild(t),this.infoDestroy=n||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){var t,r;let n,o,a,i=null;for(let t=this.list.firstChild,r=this.range.from;t;t=t.nextSibling,r++)"LI"==t.nodeName&&t.id?r==e?t.hasAttribute("aria-selected")||(t.setAttribute("aria-selected","true"),i=t):t.hasAttribute("aria-selected")&&(t.removeAttribute("aria-selected"),t.removeAttribute("aria-describedby")):r--;return i&&(t=this.list,r=i,n=t.getBoundingClientRect(),o=r.getBoundingClientRect(),a=n.height/t.offsetHeight,o.top<n.top?t.scrollTop-=(n.top-o.top)/a:o.bottom>n.bottom&&(t.scrollTop+=(o.bottom-n.bottom)/a)),i}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),n=e.getBoundingClientRect(),o=this.space;if(!o){let e=this.dom.ownerDocument.documentElement;o={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}return n.top>Math.min(o.bottom,t.bottom)-10||n.bottom<Math.max(o.top,t.top)+10?null:this.view.state.facet(lp).positionInfo(this.view,t,n,r,o,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,r){let n=document.createElement("ul");n.id=t,n.setAttribute("role","listbox"),n.setAttribute("aria-expanded","true"),n.setAttribute("aria-label",this.view.state.phrase("Completions")),n.addEventListener("mousedown",e=>{e.target==n&&e.preventDefault()});let o=null;for(let a=r.from;a<r.to;a++){let{completion:i,match:s}=e[a],{section:l}=i;if(l){let e="string"==typeof l?l:l.name;e!=o&&(a>r.from||0==r.from)&&(o=e,"string"!=typeof l&&l.header?n.appendChild(l.header(l)):n.appendChild(document.createElement("completion-section")).textContent=e)}let c=n.appendChild(document.createElement("li"));c.id=t+"-"+a,c.setAttribute("role","option");let u=this.optionClass(i);for(let e of(u&&(c.className=u),this.optionContent)){let t=e(i,this.view.state,this.view,s);t&&c.appendChild(t)}}return r.from&&n.classList.add("cm-completionListIncompleteTop"),r.to<e.length&&n.classList.add("cm-completionListIncompleteBottom"),n}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function ly(e){return 100*(e.boost||0)+10*!!e.apply+5*!!e.info+ +!!e.type}class lb{constructor(e,t,r,n,o,a){this.options=e,this.attrs=t,this.tooltip=r,this.timestamp=n,this.selected=o,this.disabled=a}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new lb(this.options,lw(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,r,n,o,a){if(n&&!a&&e.some(e=>e.isPending))return n.setDisabled();let i=function(e,t){let r=[],n=null,o=null,a=e=>{r.push(e);let{section:t}=e.completion;if(t){n||(n=[]);let e="string"==typeof t?t:t.name;n.some(t=>t.name==e)||n.push("string"==typeof t?{name:e}:t)}},i=t.facet(lp);for(let n of e)if(n.hasResult()){let e=n.result.getMatch;if(!1===n.result.filter)for(let t of n.result.options)a(new ln(t,n.source,e?e(t):[],1e9-r.length));else{let r=t.sliceDoc(n.from,n.to),s,l=i.filterStrict?new lh(r):new ld(r);for(let t of n.result.options)if(s=l.match(t.label)){let r=t.displayLabel?e?e(t,s.matched):[]:s.matched,i=s.score+(t.boost||0);if(a(new ln(t,n.source,r,i)),"object"==typeof t.section&&"dynamic"===t.section.rank){let{name:e}=t.section;o||(o=Object.create(null)),o[e]=Math.max(i,o[e]||-1e9)}}}}if(n){let e=Object.create(null),t=0;for(let r of n.sort((e,t)=>
3("dynamic"===e.rank&&"dynamic"===t.rank?o[t.name]-o[e.name]:0)||("number"==typeof e.rank?e.rank:1e9)-("number"==typeof t.rank?t.rank:1e9)||(e.name<t.name?-1:1)))t-=1e5,e[r.name]=t;for(let t of r){let{section:r}=t.completion;r&&(t.score+=e["string"==typeof r?r:r.name])}}let s=[],l=null,c=i.compareCompletions;for(let e of r.sort((e,t)=>t.score-e.score||c(e.completion,t.completion))){let t=e.completion;l&&l.label==t.label&&l.detail==t.detail&&(null==l.type||null==t.type||l.type==t.type)&&l.apply==t.apply&&l.boost==t.boost?ly(e.completion)>ly(l)&&(s[s.length-1]=e):s.push(e),l=e.completion}return s}(e,t);if(!i.length)return n&&e.some(e=>e.isPending)?n.setDisabled():null;let s=t.facet(lp).selectOnOpen?0:-1;if(n&&n.selected!=s&&-1!=n.selected){let e=n.options[n.selected].completion;for(let t=0;t<i.length;t++)if(i[t].completion==e){s=t;break}}return new lb(i,lw(r,s),{pos:e.reduce((e,t)=>t.hasResult()?Math.min(e,t.from):e,1e8),create:lR,above:o.aboveCursor},n?n.timestamp:Date.now(),s,!1)}map(e){return new lb(this.options,this.attrs,{...this.tooltip,pos:e.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new lb(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class lS{constructor(e,t,r){this.active=e,this.id=t,this.open=r}static start(){return new lS(l$,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,r=t.facet(lp),n=(r.override||t.languageDataAt("autocomplete",lo(t)).map(ll)).map(t=>(this.active.find(e=>e.source==t)||new lQ(t,+!!this.active.some(e=>0!=e.state))).update(e,r));n.length==this.active.length&&n.every((e,t)=>e==this.active[t])&&(n=this.active);let o=this.open,a=e.effects.some(e=>e.is(lT));for(let i of(o&&e.docChanged&&(o=o.map(e.changes)),e.selection||n.some(t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to))||!function(e,t){if(e==t)return!0;for(let r=0,n=0;;){for(;r<e.length&&!e[r].hasResult();)r++;for(;n<t.length&&!t[n].hasResult();)n++;let o=r==e.length,a=n==t.length;if(o||a)return o==a;if(e[r++].result!=t[n++].result)return!1}}(n,this.active)||a?o=lb.build(n,t,this.id,o,r,a):o&&o.disabled&&!n.some(e=>e.isPending)&&(o=null),!o&&n.every(e=>!e.isPending)&&n.some(e=>e.hasResult())&&(n=n.map(e=>e.hasResult()?new lQ(e.source,0):e)),e.effects))i.is(lO)&&(o=o&&o.setSelected(i.value,this.id));return n==this.active&&o==this.open?this:new lS(n,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?lx:lk}}let lx={"aria-autocomplete":"list"},lk={};function lw(e,t){let r={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(r["aria-activedescendant"]=e+"-"+t),r}let l$=[];function lP(e,t){if(e.isUserEvent("input.complete")){let r=e.annotation(li);if(r&&t.activateOnCompletion(r))return 12}let r=e.isUserEvent("input.type");return r&&t.activateOnTyping?5:r?1:e.isUserEvent("delete.backward")?2:e.selection?8:16*!!e.docChanged}class lQ{constructor(e,t,r=!1){this.source=e,this.state=t,this.explicit=r}hasResult(){return!1}get isPending(){return 1==this.state}update(e,t){let r=lP(e,t),n=this;for(let t of((8&r||16&r&&this.touches(e))&&(n=new lQ(n.source,0)),4&r&&0==n.state&&(n=new lQ(this.source,1)),n=n.updateFor(e,r),e.effects))if(t.is(lc))n=new lQ(n.source,1,t.value);else if(t.is(lu))n=new lQ(n.source,0);else if(t.is(lT))for(let e of t.value)e.source==n.source&&(n=e);return n}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(lo(e.state))}}class lC extends lQ{constructor(e,t,r,n,o,a){super(e,3,t),this.limit=r,this.result=n,this.from=o,this.to=a}hasResult(){return!0}updateFor(e,t){var r;if(!(3&t))return this.map(e.changes);let n=this.result;n.map&&!e.changes.empty&&(n=n.map(n,e.changes));let o=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),i=lo(e.state);if(i>a||!n||2&t&&(lo(e.startState)==this.from||i<this.limit))return new lQ(this.source,4&t?1:0);let s=e.changes.mapPos(this.limit);return!function(e,t,r,n){if(!e)return!1;let o=t.sliceDoc(r,n);return"function"==typeof e?e(o,r,n,t):la(e,!0).test(o)}(n.validFor,e.state,o,a)?n.update&&(n=n.update(n,o,a,new le(e.state,i,!1)))?new lC(this.source,this.explicit,s,n,n.from,null!=(r=n.to)?r:lo(e.state)):new lQ(this.source,1,this.explicit):new lC(this.source,this.explicit,s,n,o,a)}map(e){if(e.empty)return this;let t=this.result.map?this.result.map(this.result,e):this.result;return t?new lC(this.source,this.explicit,e.mapPos(this.limit),t,e.mapPos(this.from),e.mapPos(this.to,1)):new lQ(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}let lT=eK.define({map:(e,t)=>e.map(e=>e.map(t))}),lB=eE.define({create:()=>lS.start(),update:(e,t)=>
vendor: 4,808 bytes, line 3
3e.update(t),provide:e=>[ah.from(e,e=>e.tooltip),oD.contentAttributes.from(e,e=>e.attrs)]});function lA(e,t){let r=t.completion.apply||t.completion.label,n=e.state.field(lB).active.find(e=>e.source==t.source);return n instanceof lC&&("string"==typeof r?e.dispatch({...function(e,t,r,n){let{main:o}=e.selection,a=r-o.from,i=n-o.from;return{...e.changeByRange(s=>{if(s!=o&&r!=n&&e.sliceDoc(s.from+a,s.from+i)!=e.sliceDoc(r,n))return{range:s};let l=e.toText(t);return{changes:{from:s.from+a,to:n==o.from?s.to:s.from+i,insert:l},range:ew.cursor(s.from+a+l.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}(e.state,r,n.from,n.to),annotations:li.of(t.completion)}):r(e,t.completion,n.from,n.to),!0)}let lR=e=>new lv(e,lB,lA);function lE(e,t="option"){return r=>{let n=r.state.field(lB,!1);if(!n||!n.open||n.open.disabled||Date.now()-n.open.timestamp<r.state.facet(lp).interactionDelay)return!1;let o=1,a;"page"==t&&(a=ay(r,n.open.tooltip))&&(o=Math.max(2,Math.floor(a.dom.offsetHeight/a.dom.querySelector("li").offsetHeight)-1));let{length:i}=n.open.options,s=n.open.selected>-1?n.open.selected+o*(e?1:-1):e?0:i-1;return s<0?s="page"==t?0:i-1:s>=i&&(s="page"==t?i-1:0),r.dispatch({effects:lO.of(s)}),!0}}let lV=e=>!!e.state.field(lB,!1)&&(e.dispatch({effects:lc.of(!0)}),!0);class lZ{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}let lj=rH.fromClass(class{constructor(e){for(let t of(this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0,e.state.field(lB).active))t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(lB),r=e.state.facet(lp);if(!e.selectionSet&&!e.docChanged&&e.startState.field(lB)==t)return;let n=e.transactions.some(e=>{let t=lP(e,r);return 8&t||(e.selection||e.docChanged)&&!(3&t)});for(let t=0;t<this.running.length;t++){let r=this.running[t];if(n||r.context.abortOnDocChange&&e.docChanged||r.updates.length+e.transactions.length>50&&Date.now()-r.time>1e3){for(let e of r.context.abortListeners)try{e()}catch(e){rU(this.view.state,e)}r.context.abortListeners=null,this.running.splice(t--,1)}else r.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(e=>e.effects.some(e=>e.is(lc)))&&(this.pendingStart=!0);let o=this.pendingStart?50:r.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(e=>e.isPending&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),o):-1,0!=this.composing)for(let t of e.transactions)t.isUserEvent("input.type")?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(lB);for(let e of t.active)e.isPending&&!this.running.some(t=>t.active.source==e.source)&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(lp).updateSyncTime))}startQuery(e){let{state:t}=this.view,r=lo(t),n=new le(t,r,e.explicit,this.view),o=new lZ(e,n);this.running.push(o),Promise.resolve(e.source(n)).then(e=>{o.context.aborted||(o.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:lu.of(null)}),rU(this.view.state,e)})}scheduleAccept(){this.running.every(e=>void 0!==e.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(lp).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],r=this.view.state.facet(lp),n=this.view.state.field(lB);for(let o=0;o<this.running.length;o++){let a=this.running[o];if(void 0===a.done)continue;if(this.running.splice(o--,1),a.done){let n=lo(a.updates.length?a.updates[0].startState:this.view.state),o=Math.min(n,a.done.from+ +!a.active.explicit),i=new lC(a.active.source,a.active.explicit,o,a.done,a.done.from,null!=(e=a.done.to)?e:n);for(let e of a.updates)i=i.update(e,r);if(i.hasResult()){t.push(i);continue}}let i=n.active.find(e=>e.source==a.active.source);if(i&&i.isPending)if(null==a.done){let e=new lQ(a.active.source,0);for(let t of a.updates)e=e.update(t,r);e.isPending||t.push(e)}else this.startQuery(i)}(t.length||n.open&&n.open.disabled)&&this.view.dispatch({effects:lT.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(lB,!1);if(t&&t.tooltip&&this.view.state.facet(lp).closeOnBlur){let r=t.open&&ay(this.view,t.open.tooltip);r&&r.dom.contains(e.relatedTarget)||setTimeout(()=>this.view.dispatch({effects:lu.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:lc.of(!1)}),20),this.composing=0}}}),lX="object"==typeof navigator&&/Win/.test(navigator.platform),l_=eZ.highest(oD.domEventHandlers({ke
vendor: 4,204 bytes, line 3
3ydown(e,t){let r=t.state.field(lB,!1);if(!r||!r.open||r.open.disabled||r.open.selected<0||e.key.length>1||e.ctrlKey&&!(lX&&e.altKey)||e.metaKey)return!1;let n=r.open.options[r.open.selected],o=r.active.find(e=>e.source==n.source),a=n.completion.commitCharacters||o.result.commitCharacters;return a&&a.indexOf(e.key)>-1&&lA(t,n),!1}})),lM=oD.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center",cursor:"pointer"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'Æ'"}},".cm-completionIcon-class":{"&:after":{content:"'â'"}},".cm-completionIcon-interface":{"&:after":{content:"'â'"}},".cm-completionIcon-variable":{"&:after":{content:"'ð¥'"}},".cm-completionIcon-constant":{"&:after":{content:"'ð¶'"}},".cm-completionIcon-type":{"&:after":{content:"'ð¡'"}},".cm-completionIcon-enum":{"&:after":{content:"'âª'"}},".cm-completionIcon-property":{"&:after":{content:"'â¡'"}},".cm-completionIcon-keyword":{"&:after":{content:"'ðï¸'"}},".cm-completionIcon-namespace":{"&:after":{content:"'â¢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class lq{constructor(e,t,r,n){this.field=e,this.line=t,this.from=r,this.to=n}}class lN{constructor(e,t,r){this.field=e,this.from=t,this.to=r}map(e){let t=e.mapPos(this.from,-1,ef.TrackDel),r=e.mapPos(this.to,1,ef.TrackDel);return null==t||null==r?null:new lN(this.field,t,r)}}class lD{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let r=[],n=[t],o=e.doc.lineAt(t),a=/^\s*/.exec(o.text)[0];for(let o of this.lines){if(r.length){let r=a,i=/^\t*/.exec(o)[0].length;for(let t=0;t<i;t++)r+=e.facet(si);n.push(t+r.length-i),o=r+o.slice(i)}r.push(o),t+=o.length+1}return{text:r,ranges:this.fieldPositions.map(e=>new lN(e.field,n[e.line]+e.from,n[e.line]+e.to))}}static parse(e){let t=[],r=[],n=[],o;for(let a of e.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(a);){let e=o[1]?+o[1]:null,i=o[2]||o[3]||"",s=-1;0===e&&(e=1e9);let l=i.replace(/\\[{}]/g,e=>e[1]);for(let r=0;r<t.length;r++)(null!=e?t[r].seq==e:l&&t[r].name==l)&&(s=r);if(s<0){let r=0;for(;r<t.length&&(null==e||null!=t[r].seq&&t[r].seq<e);)r++;for(let o of(t.splice(r,0,{seq:e,name:l}),s=r,n))o.field>=s&&o.field++}for(let e of n)if(e.line==r.length&&e.from>
vendor: 4,596 bytes, line 3
3o.index){let t=o[2]?3+(o[1]||"").length:2;e.from-=t,e.to-=t}n.push(new lq(s,r.length,o.index,o.index+l.length)),a=a.slice(0,o.index)+i+a.slice(o.index+o[0].length)}a=a.replace(/\\([{}])/g,(e,t,o)=>{for(let e of n)e.line==r.length&&e.from>o&&(e.from--,e.to--);return t}),r.push(a)}return new lD(r,n)}}let lU=tI.widget({widget:new class extends tL{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),lz=tI.mark({class:"cm-snippetField"});class lW{constructor(e,t){this.ranges=e,this.active=t,this.deco=tI.set(e.map(e=>(e.from==e.to?lU:lz).range(e.from,e.to)),!0)}map(e){let t=[];for(let r of this.ranges){let n=r.map(e);if(!n)return null;t.push(n)}return new lW(t,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}}let lL=eK.define({map:(e,t)=>e&&e.map(t)}),lH=eK.define(),lI=eE.define({create:()=>null,update(e,t){for(let r of t.effects){if(r.is(lL))return r.value;if(r.is(lH)&&e)return new lW(e.ranges,r.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>oD.decorations.from(e,e=>e?e.deco:tI.none)});function lY(e,t){return ew.create(e.filter(e=>e.field==t).map(e=>ew.range(e.from,e.to)))}function lG(e){return({state:t,dispatch:r})=>{let n=t.field(lI,!1);if(!n||e<0&&0==n.active)return!1;let o=n.active+e,a=e>0&&!n.ranges.some(t=>t.field==o+e);return r(t.update({selection:lY(n.ranges,o),effects:lL.of(a?null:new lW(n.ranges,o)),scrollIntoView:!0})),!0}}let lF=[{key:"Tab",run:lG(1),shift:lG(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(lI,!1)&&(t(e.update({effects:lL.of(null)})),!0)}],lK=eQ.define({combine:e=>e.length?e[0]:lF}),lJ=eZ.highest(oG.compute([lK],e=>e.facet(lK)));function l0(e,t){let r;return{...t,apply:(r=lD.parse(e),(e,t,n,o)=>{let{text:a,ranges:i}=r.instantiate(e.state,n),{main:s}=e.state.selection,l={changes:{from:n,to:o==s.from?s.to:o,insert:ee.of(a)},scrollIntoView:!0,annotations:t?[li.of(t),eJ.userEvent.of("input.complete")]:void 0};if(i.length&&(l.selection=lY(i,0)),i.some(e=>e.field>0)){let t=new lW(i,0),r=l.effects=[lL.of(t)];void 0===e.state.field(lI,!1)&&r.push(eK.appendConfig.of([lI,lJ,l1,lM]))}e.dispatch(e.state.update(l))})}}let l1=oD.domEventHandlers({mousedown(e,t){let r=t.state.field(lI,!1),n;if(!r||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let o=r.ranges.find(e=>e.from<=n&&e.to>=n);return!!o&&o.field!=r.active&&(t.dispatch({selection:lY(r.ranges,o.field),effects:lL.of(r.ranges.some(e=>e.field>o.field)?new lW(r.ranges,o.field):null),scrollIntoView:!0}),!0)}}),l2={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},l8=eK.define({map(e,t){let r=t.mapPos(e,-1,ef.TrackAfter);return null==r?void 0:r}}),l5=new class extends e9{};l5.startSide=1,l5.endSide=-1;let l4=eE.define({create:()=>tn.empty,update(e,t){if(e=e.map(t.changes),t.selection){let r=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=r.from&&e<=r.to})}for(let r of t.effects)r.is(l8)&&(e=e.update({add:[l5.range(r.value,r.value+1)]}));return e}}),l3="()[]{}<>«»»«[]ï½ï½";function l6(e){for(let t=0;t<l3.length;t+=2)if(l3.charCodeAt(t)==e)return l3.charAt(t+1);return ed(e<128?e:e+1)}function l9(e,t){return e.languageDataAt("closeBrackets",t)[0]||l2}let l7="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),ce=oD.inputHandler.of((e,t,r,n)=>{if((l7?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let o=e.state.selection.main;if(n.length>2||2==n.length&&1==eh(eu(n,0))||t!=o.from||r!=o.to)return!1;let a=function(e,t){let r=l9(e,e.selection.main.head),n=r.brackets||l2.brackets;for(let o of n){let a=l6(eu(o,0));if(t==o)return a==o?function(e,t,r,n){let o=n.stringPrefixes||l2.stringPrefixes,a=null,i=e.changeByRange(n=>{if(!n.empty)return{changes:[{insert:t,from:n.from},{insert:t,from:n.to}],effects:l8.of(n.to+t.length),range:ew.range(n.anchor+t.length,n.head+t.length)};let i=n.head,s=cn(e.doc,i),l;if(s==t){if(co(e,i))return{changes:{insert:t+t,from:i},effects:l8.of(i+t.length),range:ew.cursor(i+t.length)};else if(cr(e,i)){let n=r&&e.sliceDoc(i,i+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:i,to:i+n.length,insert:n},range:ew.cursor(i+n.length)}}}else if(r&&e.sliceDoc(i-2*t.length,i)==t+t&&(l=ca(e,i-2*t.length,o))>-1&&co(e,l))return{changes:{insert:t+t+t+t,from:i},effects:l8.of(i+t.length),range:ew.cursor(i+t.length)};else if(e.charCategorizer(i)(s)!=e5.Word&&ca(e,i,o)>-1&&!function(e,t,r,n){let o=i5(e).resolveInner(t,-1),a=n.reduce((e,t)=>
3Math.max(e,t.length),0);for(let i=0;i<5;i++){let i=e.sliceDoc(o.from,Math.min(o.to,o.from+r.length+a)),s=i.indexOf(r);if(!s||s>-1&&n.indexOf(i.slice(0,s))>-1){let t=o.firstChild;for(;t&&t.from==o.from&&t.to-t.from>r.length+s;){if(e.sliceDoc(t.to-r.length,t.to)==r)return!1;t=t.firstChild}return!0}let l=o.to==t&&o.parent;if(!l)break;o=l}return!1}(e,i,t,o))return{changes:{insert:t+t,from:i},effects:l8.of(i+t.length),range:ew.cursor(i+t.length)};return{range:a=n}});return a?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}(e,o,n.indexOf(o+o+o)>-1,r):function(e,t,r,n){let o=null,a=e.changeByRange(a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:r,from:a.to}],effects:l8.of(a.to+t.length),range:ew.range(a.anchor+t.length,a.head+t.length)};let i=cn(e.doc,a.head);return!i||/\s/.test(i)||n.indexOf(i)>-1?{changes:{insert:t+r,from:a.head},effects:l8.of(a.head+t.length),range:ew.cursor(a.head+t.length)}:{range:o=a}});return o?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}(e,o,a,r.before||l2.before);if(t==a&&cr(e,e.selection.main.from))return function(e,t){let r=null,n=e.changeByRange(n=>n.empty&&cn(e.doc,n.head)==t?{changes:{from:n.head,to:n.head+t.length,insert:t},range:ew.cursor(n.head+t.length)}:r={range:n});return r?null:e.update(n,{scrollIntoView:!0,userEvent:"input.type"})}(e,a)}return null}(e.state,n);return!!a&&(e.dispatch(a),!0)}),ct=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=l9(e,e.selection.main.head).brackets||l2.brackets,n=null,o=e.changeByRange(t=>{if(t.empty){var o,a;let n,i=(o=e.doc,a=t.head,eh(eu(n=o.sliceString(a-2,a),0))==n.length?n:n.slice(1));for(let n of r)if(n==i&&cn(e.doc,t.head)==l6(eu(n,0)))return{changes:{from:t.head-n.length,to:t.head+n.length},range:ew.cursor(t.head-n.length)}}return{range:n=t}});return n||t(e.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!n}}];function cr(e,t){let r=!1;return e.field(l4).between(0,e.doc.length,e=>{e==t&&(r=!0)}),r}function cn(e,t){let r=e.sliceString(t,t+2);return r.slice(0,eh(eu(r,0)))}function co(e,t){let r=i5(e).resolveInner(t+1);return r.parent&&r.from==t}function ca(e,t,r){let n=e.charCategorizer(t);if(n(e.sliceDoc(t-1,t))!=e5.Word)return t;for(let o of r){let r=t-o.length;if(e.sliceDoc(r,t)==o&&n(e.sliceDoc(r-1,r))!=e5.Word)return r}return -1}let ci=[{key:"Ctrl-Space",run:lV},{mac:"Alt-`",run:lV},{mac:"Alt-i",run:lV},{key:"Escape",run:e=>{let t=e.state.field(lB,!1);return!!t&&!!t.active.some(e=>0!=e.state)&&(e.dispatch({effects:lu.of(null)}),!0)}},{key:"ArrowDown",run:lE(!0)},{key:"ArrowUp",run:lE(!1)},{key:"PageDown",run:lE(!0,"page")},{key:"PageUp",run:lE(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(lB,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(lp).interactionDelay)&&lA(e,t.open.options[t.open.selected])}}],cs=eZ.highest(oG.computeN([lp],e=>e.facet(lp).defaultKeymap?[ci]:[]));function cl(e,t){return({state:r,dispatch:n})=>{if(r.readOnly)return!1;let o=e(t,r);return!!o&&(n(r.update(o)),!0)}}function cc(e,t){let r=e.languageDataAt("commentTokens",t,1);return r.length?r[0]:{}}(e,t)=>(function(e,t,r=t.selection.ranges){let n=r.map(e=>cc(t,e.from).block);if(!n.every(e=>e))return null;let o=r.map((e,r)=>(function(e,{open:t,close:r},n,o){let a,i,s=e.sliceDoc(n-50,n),l=e.sliceDoc(o,o+50),c=/\s*$/.exec(s)[0].length,u=/^\s*/.exec(l)[0].length,d=s.length-c;if(s.slice(d-t.length,d)==t&&l.slice(u,u+r.length)==r)return{open:{pos:n-c,margin:c&&1},close:{pos:o+u,margin:u&&1}};o-n<=100?a=i=e.sliceDoc(n,o):(a=e.sliceDoc(n,n+50),i=e.sliceDoc(o-50,o));let h=/^\s*/.exec(a)[0].length,p=/\s*$/.exec(i)[0].length,f=i.length-p-r.length;return a.slice(h,h+t.length)==t&&i.slice(f,f+r.length)==r?{open:{pos:n+h+t.length,margin:+!!/\s/.test(a.charAt(h+t.length))},close:{pos:o-p-r.length,margin:+!!/\s/.test(i.charAt(f-1))}}:null})(t,n[r],e.from,e.to));if(2!=e&&!o.every(e=>e))return{changes:t.changes(r.map((e,t)=>o[t]?[]:[{from:e.from,insert:n[t].open+" "},{from:e.to,insert:" "+n[t].close}]))};if(1!=e&&o.some(e=>e)){let e=[];for(let t=0,r;t<o.length;t++)if(r=o[t]){let o=n[t],{open:a,close:i}=r;e.push({from:a.pos-o.open.length,to:a.pos+a.margin},{from:i.pos-i.margin,to:i.pos+o.close.length})}return{changes:e}}return null})(e,t,function(e){let t=[];for(let r of e.selection.ranges){let n=e.doc.lineAt(r.from),o=r.to<=n.to?n:e.doc.lineAt(r.to);o.from>n.from&&o.from==r.to&&(o=r.to==n.to+1?n:e.doc.lineAt(r.to-1));let a=t.length-1;a>=0&&t[a].to>n.from?t[a].to=o.to:t.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:o.to})}return t}(t));let cu=eY.define(),cd=eY.define(),ch=eQ.define(),cp=eQ.define({combine:e=>e6(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>
3t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(r,n)=>e(r,n)||t(r,n)})}),cf=eE.define({create:()=>cQ.empty,update(e,t){let r=t.state.facet(cp),n=t.annotation(cu);if(n){let o=cb.fromTransaction(t,n.selection),a=n.side,i=0==a?e.undone:e.done;return i=o?cS(i,i.length,r.minDepth,o):cw(i,t.startState.selection),new cQ(0==a?n.rest:i,0==a?i:n.rest)}let o=t.annotation(cd);if(("full"==o||"before"==o)&&(e=e.isolate()),!1===t.annotation(eJ.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let a=cb.fromTransaction(t),i=t.annotation(eJ.time),s=t.annotation(eJ.userEvent);return a?e=e.addChanges(a,i,s,r,t):t.selection&&(e=e.addSelection(t.startState.selection,i,s,r.newGroupDelay)),("full"==o||"after"==o)&&(e=e.isolate()),e},toJSON:e=>({done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}),fromJSON:e=>new cQ(e.done.map(cb.fromJSON),e.undone.map(cb.fromJSON))});function cm(e,t){return function({state:r,dispatch:n}){if(!t&&r.readOnly)return!1;let o=r.field(cf,!1);if(!o)return!1;let a=o.pop(e,r,t);return!!a&&(n(a),!0)}}let cO=cm(0,!1),cg=cm(1,!1),cv=cm(0,!0),cy=cm(1,!0);class cb{constructor(e,t,r,n,o){this.changes=e,this.effects=t,this.mapped=r,this.startSelection=n,this.selectionsAfter=o}setSelAfter(e){return new cb(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,r;return{changes:null==(e=this.changes)?void 0:e.toJSON(),mapped:null==(t=this.mapped)?void 0:t.toJSON(),startSelection:null==(r=this.startSelection)?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(e){return new cb(e.changes&&eO.fromJSON(e.changes),[],e.mapped&&em.fromJSON(e.mapped),e.startSelection&&ew.fromJSON(e.startSelection),e.selectionsAfter.map(ew.fromJSON))}static fromTransaction(e,t){let r=ck;for(let t of e.startState.facet(ch)){let n=t(e);n.length&&(r=r.concat(n))}return!r.length&&e.changes.empty?null:new cb(e.changes.invert(e.startState.doc),r,void 0,t||e.startState.selection,ck)}static selection(e){return new cb(void 0,ck,void 0,void 0,e)}}function cS(e,t,r,n){let o=e.slice(t+1>r+20?t-r-1:0,t);return o.push(n),o}function cx(e,t){return e.length?t.length?e.concat(t):e:t}let ck=[];function cw(e,t){if(!e.length)return[cb.selection([t])];{let r=e[e.length-1],n=r.selectionsAfter.slice(Math.max(0,r.selectionsAfter.length-200));return n.length&&n[n.length-1].eq(t)?e:(n.push(t),cS(e,e.length-1,1e9,r.setSelAfter(n)))}}function c$(e,t){if(!e.length)return e;let r=e.length,n=ck;for(;r;){let o=function(e,t,r){let n=cx(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):ck,r);if(!e.changes)return cb.selection(n);let o=e.changes.map(t),a=t.mapDesc(e.changes,!0),i=e.mapped?e.mapped.composeDesc(a):a;return new cb(o,eK.mapEffects(e.effects,t),i,e.startSelection.map(a),n)}(e[r-1],t,n);if(o.changes&&!o.changes.empty||o.effects.length){let t=e.slice(0,r);return t[r-1]=o,t}t=o.mapped,r--,n=o.selectionsAfter}return n.length?[cb.selection(n)]:ck}let cP=/^(input\.type|delete)($|\.)/;class cQ{constructor(e,t,r=0,n){this.done=e,this.undone=t,this.prevTime=r,this.prevUserEvent=n}isolate(){return this.prevTime?new cQ(this.done,this.undone):this}addChanges(e,t,r,n,o){var a,i;let s,l,c=this.done,u=c[c.length-1];return new cQ(c=u&&u.changes&&!u.changes.empty&&e.changes&&(!r||cP.test(r))&&(!u.selectionsAfter.length&&t-this.prevTime<n.newGroupDelay&&n.joinToEvent(o,(a=u.changes,i=e.changes,s=[],l=!1,a.iterChangedRanges((e,t)=>s.push(e,t)),i.iterChangedRanges((e,t,r,n)=>{for(let e=0;e<s.length;){let t=s[e++],o=s[e++];n>=t&&r<=o&&(l=!0)}}),l))||"input.type.compose"==r)?cS(c,c.length-1,n.minDepth,new cb(e.changes.compose(u.changes),cx(eK.mapEffects(e.effects,u.changes),u.effects),u.mapped,u.startSelection,ck)):cS(c,c.length,n.minDepth,e),ck,t,r)}addSelection(e,t,r,n){var o;let a=this.done.length?this.done[this.done.length-1].selectionsAfter:ck;return a.length>0&&t-this.prevTime<n&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&(o=a[a.length-1],o.ranges.length==e.ranges.length&&0===o.ranges.filter((t,r)=>t.empty!=e.ranges[r].empty).length)?this:new cQ(cw(this.done,e),this.undone,t,r)}addMapping(e){return new cQ(c$(this.done,e),c$(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,r){let n=0==e?this.done:this.undone;if(0==n.length)return null;let o=n[n.length-1],a=o.selectionsAfter[0]||(o.startSelection?o.startSelection.map(o.changes.invertedDesc,1):t.selection);if(r&&o.selectionsAfter.length){let r,i;return t.update({selection:o.selectionsAfter[o.selectionsAfter.length-1],annotations:cu.of({side:e,rest:(r=n[n.length-1],(i=n.slice())[n.length-1]=r.setSelAfter(r.selectionsAfter.slice(0,r.selectionsAfter.length-1)),i),selection:a}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0})}{if(!o.changes)return null;let r=1==n.length?ck:n.slice(0,n.length-1);return o.mapped&&(r=c$(r,o.mapped)),t.update({changes:o.changes,selection:o.startSelection,effects:o.effects,annotations:cu.of({side:e,rest:r,selection:a}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}}}cQ.empty=new cQ(ck,ck);let cC=[{key:"Mod-z",run:cO,preventDefault:!0}
3,{key:"Mod-y",mac:"Mod-Shift-z",run:cg,preventDefault:!0},{linux:"Ctrl-Shift-z",run:cg,preventDefault:!0},{key:"Mod-u",run:cv,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:cy,preventDefault:!0}];"u">typeof Intl&&Intl.Segmenter;let cT=({state:e,dispatch:t})=>(t(e.update(e.replaceSelection(e.lineBreak),{scrollIntoView:!0,userEvent:"input"})),!0);function cB(e,t){let r=-1;return e.changeByRange(n=>{let o=[];for(let a=n.from;a<=n.to;){let i=e.doc.lineAt(a);i.number>r&&(n.empty||n.to>i.from)&&(t(i,o,n),r=i.number),a=i.to+1}let a=e.changes(o);return{changes:o,range:ew.range(a.mapPos(n.anchor,1),a.mapPos(n.head,1))}})}let cA={key:"Tab",run:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(cB(e,(t,r)=>{r.push({from:t.from,insert:e.facet(si)})}),{userEvent:"input.indent"})),!0),shift:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(cB(e,(t,r)=>{let n=/^\s*/.exec(t.text)[0];if(!n)return;let o=tO(n,e.tabSize),a=0,i=sl(e,Math.max(0,o-ss(e)));for(;a<n.length&&a<i.length&&n.charCodeAt(a)==i.charCodeAt(a);)a++;r.push({from:t.from+a,to:t.from+n.length,insert:i.slice(a)})}),{userEvent:"delete.dedent"})),!0)};var cR=e.i(901290);class cE{constructor(e,t,r,n,o,a,i,s,l,c=0,u){this.p=e,this.stack=t,this.state=r,this.reducePos=n,this.pos=o,this.score=a,this.buffer=i,this.bufferBase=s,this.curContext=l,this.lookAhead=c,this.parent=u}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,r=0){let n=e.parser.context;return new cE(e,[],t,r,r,0,[],0,n?new cV(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let r=e>>19,n=65535&e,{parser:o}=this.p,a=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),i=o.dynamicPrecedence(n);if(i&&(this.score+=i),0==r){n<o.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(o.getGoto(this.state,n,!0),this.reducePos),n<o.minRepeatTerm&&this.storeNode(n,this.reducePos,this.reducePos,a?8:4,!0),this.reduceContext(n,this.reducePos);return}let s=this.stack.length-(r-1)*3-(262144&e?6:0),l=s?this.stack[s-2]:this.p.ranges[0].from;n<o.minRepeatTerm&&l==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let c=this.reducePos-l;c>=2e3&&!(null==(t=this.p.parser.nodeSet.types[n])?void 0:t.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=c));let u=s?this.stack[s-1]:0,d=this.bufferBase+this.buffer.length-u;if(n<o.minRepeatTerm||131072&e){let e=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,l,e,d+4,!0)}if(262144&e)this.state=this.stack[s];else{let e=this.stack[s-3];this.state=o.getGoto(e,n,!0)}for(;this.stack.length>s;)this.stack.pop();this.reduceContext(n,l)}storeNode(e,t,r,n=4,o=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this.buffer.length;if(e>0&&0==this.buffer[e-4]&&this.buffer[e-1]>-1){if(t==r)return;if(this.buffer[e-2]>=t){this.buffer[e-2]=r;return}}}if(o&&this.pos!=r){let o=this.buffer.length;if(o>0&&(0!=this.buffer[o-4]||this.buffer[o-1]<0)){let e=!1;for(let t=o;t>0&&this.buffer[t-2]>r;t-=4)if(this.buffer[t-1]>=0){e=!0;break}if(e)for(;o>0&&this.buffer[o-2]>r;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,n>4&&(n-=4)}this.buffer[o]=e,this.buffer[o+1]=t,this.buffer[o+2]=r,this.buffer[o+3]=n}else this.buffer.push(e,t,r,n)}shift(e,t,r,n){if(131072&e)this.pushState(65535&e,this.pos);else if((262144&e)==0){let{parser:o}=this.p;this.pos=n;let a=o.stateFlag(e,1);!a&&(n>r||t<=o.maxNode)&&(this.reducePos=n),this.pushState(e,a?r:Math.min(r,this.reducePos)),this.shiftContext(t,r),t<=o.maxNode&&this.buffer.push(t,r,n,4)}else this.pos=n,this.shiftContext(t,r),t<=this.p.parser.maxNode&&this.buffer.push(t,r,n,4)}apply(e,t,r,n){65536&e?this.reduce(e):this.shift(e,t,r,n)}useNode(e,t){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let n=this.pos;this.reducePos=this.pos=n+e.length,this.pushState(t,n),this.buffer.push(r,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(t&&0==e.buffer[t-4]&&(t-=4);t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let r=e.buffer.slice(t),n=e.bufferBase+t;for(;e&&n==e.bufferBase;)e=e.parent;return new cE(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,n,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let r=e<=this.p.parser.maxNode;r&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,r?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new cZ(this);;){let r=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==r)return!1;if((65536&r)==0)return!0;t.reduce(r)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let r=[];for(let n=0,o;n<t.length;n+=2)(o=t[n+1])!=this.state&&this.p.parser.hasAction(o,e)&&r.push(t[n],o);if(this.stack.length<120)for(let e=0;r.length<8&&e<t.length;e+=2){let n=t[e+1];r.some((e,t)=>1&t&&e==n)||r.push(t[e],n)}t=r}let r=[];for(let e=0;e<t.length&&r.length<4;e+=2){let n=t[e+1];if(n==this.state)continue;let o=this.split();o.pushState(n,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(t[e],this.pos),o.reducePos=this.pos,o.score-=200,r.push(o)}return r}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if((65536&t)==0)return!1;if(!e.validAction(this.state,t)){let r=t>>19,n=65535&t,o=this.stack.length-3*r;if(o<0||0>e.getGoto(this.stack[o],n,!1)){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],r=(n,o)=>
vendor: 5,131 bytes, line 3
3{if(!t.includes(n))return t.push(n),e.allActions(n,t=>{if(393216&t);else if(65536&t){let r=(t>>19)-o;if(r>1){let n=65535&t,o=this.stack.length-3*r;if(o>=0&&e.getGoto(this.stack[o],n,!1)>=0)return r<<19|65536|n}}else{let e=r(t,o+1);if(null!=e)return e}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new cV(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){return!(e<=this.lookAhead)&&(this.emitLookAhead(),this.lookAhead=e,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class cV{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class cZ{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e>>19;0==t?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(t-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],65535&e,!0);this.state=r}}class cj{constructor(e,t,r){this.stack=e,this.pos=t,this.index=r,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new cj(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new cj(this.stack,this.pos,this.index)}}function cX(e,t=Uint16Array){if("string"!=typeof e)return e;let r=null;for(let n=0,o=0;n<e.length;){let a=0;for(;;){let t=e.charCodeAt(n++),r=!1;if(126==t){a=65535;break}t>=92&&t--,t>=34&&t--;let o=t-32;if(o>=46&&(o-=46,r=!0),a+=o,r)break;a*=46}r?r[o++]=a:r=new t(a)}return r}class c_{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}let cM=new c_;class cq{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=cM,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let r=this.range,n=this.rangeIndex,o=this.pos+e;for(;o<r.from;){if(!n)return null;let e=this.ranges[--n];o-=r.from-e.to,r=e}for(;t<0?o>r.to:o>=r.to;){if(n==this.ranges.length-1)return null;let e=this.ranges[++n];o+=e.from-r.to,r=e}return o}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,r,n;if(t>=0&&t<this.chunk.length)r=this.pos+e,n=this.chunk.charCodeAt(t);else{let t=this.resolveOffset(e,1);if(null==t)return -1;if((r=t)>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)n=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let e=this.rangeIndex,t=this.range;for(;t.to<=r;)t=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>t.to&&(this.chunk2=this.chunk2.slice(0,t.to-r)),n=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),n}acceptToken(e,t=0){let r=t?this.resolveOffset(t,-1):this.pos;if(null==r||r<this.token.start)throw RangeError("Token end out of bounds");this.token.value=e,this.token.end=r}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}
3readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=cM,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let r="";for(let n of this.ranges){if(n.from>=t)break;n.to>e&&(r+=this.input.read(Math.max(n.from,e),Math.min(n.to,t)))}return r}}class cN{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:r}=t.p;cz(this.data,e,t,this.id,r.data,r.tokenPrecTable)}}cN.prototype.contextual=cN.prototype.fallback=cN.prototype.extend=!1;class cD{constructor(e,t,r){this.precTable=t,this.elseToken=r,this.data="string"==typeof e?cX(e):e}token(e,t){let r=e.pos,n=0;for(;;){let r=e.next<0,o=e.resolveOffset(1,1);if(cz(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(!r&&n++,null==o)break;e.reset(o,e.token)}n&&(e.reset(r,e.token),e.acceptToken(this.elseToken,n))}}cD.prototype.contextual=cN.prototype.fallback=cN.prototype.extend=!1;class cU{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function cz(e,t,r,n,o,a){let i=0,s=1<<n,{dialect:l}=r.p.parser;o:for(;(s&e[i])!=0;){let r=e[i+1];for(let n=i+3;n<r;n+=2)if((e[n+1]&s)>0){let r=e[n];if(l.allows(r)&&(-1==t.token.value||t.token.value==r||function(e,t,r,n){let o=cW(r,n,t);return o<0||cW(r,n,e)<o}(r,t.token.value,o,a))){t.acceptToken(r);break}}let n=t.next,c=0,u=e[i+2];if(t.next<0&&u>c&&65535==e[r+3*u-3]){i=e[r+3*u-1];continue}for(;c<u;){let o=c+u>>1,a=r+o+(o<<1),s=e[a],l=e[a+1]||65536;if(n<s)u=o;else if(n>=l)c=o+1;else{i=e[a+2],t.advance();continue o}}break}}function cW(e,t,r){for(let n=t,o;65535!=(o=e[n]);n++)if(o==r)return n-t;return -1}let cL=void 0!==cR.default&&cR.default.env&&/\bparse\b/.test(cR.default.env.LOG),cH=null;function cI(e,t,r){let n=e.cursor(a.IncludeAnonymous);for(n.moveTo(t);;)if(!(r<0?n.childBefore(t):n.childAfter(t)))for(;;){if((r<0?n.to<t:n.from>t)&&!n.type.isError)return r<0?Math.max(0,Math.min(n.to-1,t-25)):Math.min(e.length,Math.max(n.from+1,t+25));if(r<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return r<0?0:e.length}}class cY{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?cI(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?cI(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let r=this.trees[t],n=this.index[t];if(n==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=r.children[n],a=this.start[t]+r.positions[n];if(a>e)return this.nextStart=a,null;if(o instanceof a8){if(a==e){if(a<this.safeFrom)return null;let e=a+o.length;
3if(e<=this.safeTo){let t=o.prop(aG.lookAhead);if(!t||e+t<this.fragment.to)return o}}this.index[t]++,a+o.length>=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(a),this.index.push(0))}else this.index[t]++,this.nextStart=a+o.length}}}class cG{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new c_)}getActions(e){let t=0,r=null,{parser:n}=e.p,{tokenizers:o}=n,a=n.stateSlot(e.state,3),i=e.curContext?e.curContext.hash:0,s=0;for(let n=0;n<o.length;n++){if((1<<n&a)==0)continue;let l=o[n],c=this.tokens[n];if((!r||l.fallback)&&((l.contextual||c.start!=e.pos||c.mask!=a||c.context!=i)&&(this.updateCachedToken(c,l,e),c.mask=a,c.context=i),c.lookAhead>c.end+25&&(s=Math.max(c.lookAhead,s)),0!=c.value)){let n=t;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),!l.extend&&(r=c,t>n))break}}for(;this.actions.length>t;)this.actions.pop();return s&&e.setLookAhead(s),r||e.pos!=this.stream.end||((r=new c_).value=e.p.parser.eofTerm,r.start=r.end=e.pos,t=this.addActions(e,r.value,r.end,t)),this.mainToken=r,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new c_,{pos:r,p:n}=e;return t.start=r,t.end=Math.min(r+1,n.stream.end),t.value=r==n.stream.end?n.parser.eofTerm:0,t}updateCachedToken(e,t,r){let n=this.stream.clipPos(r.pos);if(t.token(this.stream.reset(n,e),r),e.value>-1){let{parser:t}=r.p;for(let n=0;n<t.specialized.length;n++)if(t.specialized[n]==e.value){let o=t.specializers[n](this.stream.read(e.start,e.end),r);if(o>=0&&r.p.parser.dialect.allows(o>>1)){(1&o)==0?e.value=o>>1:e.extended=o>>1;break}}}else e.value=0,e.end=this.stream.clipPos(n+1)}putAction(e,t,r,n){for(let t=0;t<n;t+=3)if(this.actions[t]==e)return n;return this.actions[n++]=e,this.actions[n++]=t,this.actions[n++]=r,n}addActions(e,t,r,n){let{state:o}=e,{parser:a}=e.p,{data:i}=a;for(let e=0;e<2;e++)for(let s=a.stateSlot(o,e?2:1);;s+=3){if(65535==i[s])if(1==i[s+1])s=c8(i,s+2);else{0==n&&2==i[s+1]&&(n=this.putAction(c8(i,s+2),t,r,n));break}i[s]==t&&(n=this.putAction(c8(i,s+1),t,r,n))}return n}}class cF{constructor(e,t,r,n){this.parser=e,this.input=t,this.ranges=n,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new cq(t,n),this.tokens=new cG(e,this.stream),this.topTerm=e.top[1];let{from:o}=n[0];this.stacks=[cE.start(this,e.top[0],o)],this.fragments=r.length&&this.stream.end-o>4*e.bufferLength?new cY(r,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,r=this.stacks,n=this.minStackPos,o=this.stacks=[];if(this.bigReductionCount>300&&1==r.length){let[e]=r;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;a<r.length;a++){let i=r[a];for(;;){if(this.tokens.mainToken=null,i.pos>n)o.push(i);else{if(this.advanceStack(i,o,r))continue;e||(e=[],t=[]),e.push(i);let n=this.tokens.getMainToken(i);t.push(n.value,n.end)}break}}if(!o.length){let t=e&&function(e){let t=null;for(let r of e){let e=r.p.stoppedAt;(r.pos==r.p.stream.end||null!=e&&r.pos>e)&&r.p.parser.stateFlag(r.state,2)&&(!t||t.score<r.score)&&(t=r)}return t}(e);if(t)return cL&&console.log("Finish with "+this.stackID(t)),this.stackToTree(t);if(this.parser.strict)throw cL&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&e){let r=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,o);if(r)return cL&&console.log("Force-finish "+this.stackID(r)),this.stackToTree(r.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(o.length>e)for(o.sort((e,t)=>t.score-e.score);o.length>e;)o.pop();o.some(e=>e.reducePos>n)&&this.recovering--}
3else if(o.length>1){a:for(let e=0;e<o.length-1;e++){let t=o[e];for(let r=e+1;r<o.length;r++){let n=o[r];if(t.sameState(n)||t.buffer.length>500&&n.buffer.length>500)if((t.score-n.score||t.buffer.length-n.buffer.length)>0)o.splice(r--,1);else{o.splice(e--,1);continue a}}}o.length>12&&(o.sort((e,t)=>t.score-e.score),o.splice(12,o.length-12))}this.minStackPos=o[0].pos;for(let e=1;e<o.length;e++)o[e].pos<this.minStackPos&&(this.minStackPos=o[e].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,r){let n=e.pos,{parser:o}=this,a=cL?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&n>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,r=t?e.curContext.hash:0;for(let i=this.fragments.nodeAt(n);i;){let n=this.parser.nodeSet.types[i.type.id]==i.type?o.getGoto(e.state,i.type.id):-1;if(n>-1&&i.length&&(!t||(i.prop(aG.contextHash)||0)==r))return e.useNode(i,n),cL&&console.log(a+this.stackID(e)+` (via reuse of ${o.getName(i.type.id)})`),!0;if(!(i instanceof a8)||0==i.children.length||i.positions[0]>0)break;let s=i.children[0];if(s instanceof a8&&0==i.positions[0])i=s;else break}}let i=o.stateSlot(e.state,4);if(i>0)return e.reduce(i),cL&&console.log(a+this.stackID(e)+` (via always-reduce ${o.getName(65535&i)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let s=this.tokens.getActions(e);for(let i=0;i<s.length;){let l=s[i++],c=s[i++],u=s[i++],d=i==s.length||!r,h=d?e:e.split(),p=this.tokens.mainToken;if(h.apply(l,c,p?p.start:h.pos,u),cL&&console.log(a+this.stackID(h)+` (via ${(65536&l)==0?"shift":`reduce of ${o.getName(65535&l)}`} for ${o.getName(c)} @ ${n}${h==e?"":", split"})`),d)return!0;h.pos>n?t.push(h):r.push(h)}return!1}advanceFully(e,t){let r=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>r)return cK(e,t),!0}}runRecovery(e,t,r){let n=null,o=!1;for(let a=0;a<e.length;a++){let i=e[a],s=t[a<<1],l=t[(a<<1)+1],c=cL?this.stackID(i)+" -> ":"";if(i.deadEnd&&(o||(o=!0,i.restart(),cL&&console.log(c+this.stackID(i)+" (restarted)"),this.advanceFully(i,r))))continue;let u=i.split(),d=c;for(let e=0;e<10&&u.forceReduce()&&(cL&&console.log(d+this.stackID(u)+" (via force-reduce)"),!this.advanceFully(u,r));e++)cL&&(d=this.stackID(u)+" -> ");for(let e of i.recoverByInsert(s))cL&&console.log(c+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,r);this.stream.end>i.pos?(l==i.pos&&(l++,s=0),i.recoverByDelete(s,l),cL&&console.log(c+this.stackID(i)+` (via recover-delete ${this.parser.getName(s)})`),cK(i,r)):(!n||n.score<u.score)&&(n=u)}return n}stackToTree(e){return e.close(),a8.build({buffer:cj.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(cH||(cH=new WeakMap)).get(e);return t||cH.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function cK(e,t){for(let r=0;r<t.length;r++){let n=t[r];if(n.pos==e.pos&&n.sameState(e)){t[r].score<e.score&&(t[r]=e);return}}t.push(e)}class cJ{constructor(e,t,r){this.source=e,this.flags=t,this.disabled=r}allows(e){return!this.disabled||0==this.disabled[e]}}let c0=e=>e;class c1{constructor(e){this.start=e.start,this.shift=e.shift||c0,this.reduce=e.reduce||c0,this.reuse=e.reuse||c0,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class c2 extends im{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let r=0;r<e.repeatNodeCount;r++)t.push("");let r=Object.keys(e.topRules).map(t=>e.topRules[t][1]),n=[];for(let e=0;e<t.length;e++)n.push([]);function o(e,t,r){n[e].push([t,t.deserialize(String(r))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];"string"==typeof e&&(e=aG[e]);for(let r=1;r<t.length;){let n=t[r++];if(n>=0)o(n,e,t[r++]);else{let a=t[r+-n];for(let i=-n;i>0;i--)o(t[r++],e,a);r++}}}this.nodeSet=new a0(t.map((t,o)=>aJ.define({name:o>=this.minRepeatTerm?void 0:t,id:o,props:n[o],top:r.indexOf(o)>-1,error:0==o,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=1024;let a=cX(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(c5),this.states=cX(e.states,Uint32Array),this.data=cX(e.stateData),this.goto=cX(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(e=>"number"==typeof e?new cN(a,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,r){let n=new cF(this,e,t,r);for(let o of this.wrappers)n=o(n,e,t,r);return n}getGoto(e,t,r=!1){let n=this.goto;if(t>=n[0])return -1;for(let o=n[t+1];;){let t=n[o++],a=1&t,i=n[o++];if(a&&r)return i;for(let r=o+(t>>1);o<r;o++)if(n[o]==e)return i;if(a)return -1}}hasAction(e,t){let r=this.data;for(let n=0;n<2;n++)for(let o=this.stateSlot(e,n?2:1),a;;o+=3){if(65535==(a=r[o]))if(1==r[o+1])a=r[o=c8(r,o+2)];else if(2==r[o+1])return c8(r,o+2);else break;if(a==t||0==a)return c8(r,o+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let r=this.stateSlot(e,4),n=r?t(r):void 0;for(let r=this.stateSlot(e,1);null==n;r+=3){if(65535==this.data[r])if(1==this.data[r+1])r=c8(this.data,r+2);else break;n=t(c8(this.data,r+1))}return n}nextStates(e){let t=[];for(let r=this.stateSlot(e,1);;r+=3){if(65535==this.data[r])if(1==this.data[r+1])r=c8(this.data,r+2);else break;if((1&this.data[r+2])==0){let e=this.data[r+1];t.some((t,r)=>1&r&&t==e)||t.push(this.data[r],e)}}return t}configure(e){let t=Object.assign(Object.create(c2.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let r=this.topRules[e.top];if(!r)throw RangeError(`Invalid top rule name ${e.top}`);t.top=r}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(t=>{let r=e.tokenizers.find(e=>e.from==t);return r?r.to:t})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((r,n)=>{let o=e.specializers.find(e=>e.from==r.external);
3if(!o)return r;let a=Object.assign(Object.assign({},r),{external:o.to});return t.specializers[n]=c5(a),a})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),r=t.map(()=>!1);if(e)for(let n of e.split(" ")){let e=t.indexOf(n);e>=0&&(r[e]=!0)}let n=null;for(let e=0;e<t.length;e++)if(!r[e])for(let r=this.dialects[t[e]],o;65535!=(o=this.data[r++]);)(n||(n=new Uint8Array(this.maxTerm+1)))[o]=1;return new cJ(e,r,n)}static deserialize(e){return new c2(e)}}function c8(e,t){return e[t]|e[t+1]<<16}function c5(e){if(e.external){let t=+!!e.extend;return(r,n)=>e.external(r,n)<<1|t}return e.get}let c4=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function c3(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function c6(e){return e>=48&&e<=57}function c9(e){return c6(e)||e>=97&&e<=102||e>=65&&e<=70}let c7=(e,t,r)=>(n,o)=>{for(let a=!1,i=0,s=0;;s++){let{next:l}=n;if(c3(l)||45==l||95==l||a&&c6(l))!a&&(45!=l||s>0)&&(a=!0),i===s&&45==l&&i++,n.advance();else if(92==l&&10!=n.peek(1)){if(n.advance(),c9(n.next)){do n.advance();while(c9(n.next))32==n.next&&n.advance()}else n.next>-1&&n.advance();a=!0}else{a&&n.acceptToken(i>=2&&o.canShift(2)?t:40==l?r:e);break}}},ue=new cU(c7(149,2,150),{contextual:!0}),ut=new cU(c7(151,3,4),{contextual:!0}),ur=new cU(e=>{if(c4.includes(e.peek(-1))){let{next:t}=e;(c3(t)||95==t||35==t||46==t||42==t||91==t||58==t&&c3(e.peek(1))||45==t||38==t)&&e.acceptToken(148)}}),un=new cU(e=>{if(!c4.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),c3(t)){do e.advance();while(c3(e.next)||c6(e.next))e.acceptToken(1)}}});function uo(e){return/^#[a-f\d]{3}([a-f\d]{3}([a-f\d]{2})?)?$/i.test(e)?152:-1}let ua=iA({"AtKeyword import charset namespace keyframes media supports font-feature-values":iF.definitionKeyword,"from to selector scope MatchFlag":iF.keyword,NamespaceName:iF.namespace,KeyframeName:iF.labelName,KeyframeRangeName:iF.operatorKeyword,TagName:iF.tagName,ClassName:iF.className,PseudoClassName:iF.constant(iF.className),IdName:iF.labelName,"FeatureName PropertyName":iF.propertyName,AttributeName:iF.attributeName,NumberLiteral:iF.number,KeywordQuery:iF.keyword,UnaryQueryOp:iF.operatorKeyword,"CallTag ValueName FontName":iF.atom,VariableName:iF.variableName,Callee:iF.operatorKeyword,Unit:iF.unit,"UniversalSelector NestingSelector":iF.definitionOperator,"MatchOp CompareOp":iF.compareOperator,"ChildOp SiblingOp, LogicOp":iF.logicOperator,BinOp:iF.arithmeticOperator,Important:iF.modifier,Comment:iF.blockComment,ColorLiteral:iF.color,"ParenthesizedContent StringLiteral":iF.string,":":iF.punctuation,PseudoOp:iF.derefOperator,"; , |":iF.separator,"( )":iF.paren,"[ ]":iF.squareBracket,"{ }":iF.brace}),ui={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:88,url:158,"url-prefix":158,domain:158,regexp:158},us={__proto__:null,or:102,and:102,not:112,only:112,layer:212},ul={__proto__:null,selector:118,style:124,layer:208},uc={__proto__:null,"@import":204,"@media":216,"@charset":220,"@namespace":224,"@keyframes":230,"@supports":242,"@scope":246,"@font-feature-values":252},uu={__proto__:null,to:249},ud=c2.deserialize({version:14,states:"MrQYQdOOO$TQdOOP$[O`OOO%XQaO'#CfOOQP'#Ce'#CeO%`QdO'#CgO%eQ`O'#CgO%jQaO'#FrO&eQdO'#CkO'XQaO'#CcO'cQdO'#CnOOQP'#ES'#ESOOQP'#ER'#ERO'nQdO'#ETO'yQdO'#E[O'yQdO'#E_OOQP'#Fr'#FrO)`QhO'#FQOOQS'#Fq'#FqOOQS'#FT'#FTQYQdOOO)gQdO'#EeO*vQhO'#EkO)gQdO'#EmO*}QdO'#EoO+YQdO'#ErO*[QhO'#ExO+bQdO'#EzO+mQdO'#E}O+rQaO'#CfO+yQ`O'#EbO,OQ`O'#GPO,ZQdO'#GPQOQ`OOP,eO&jO'#CaPOOO)CAa)CAaOOQP'#Ci'#CiOOQP,59R,59RO%`QdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&eQdO,59VO,pQdO,59YOOQP,5:m,5:mO'nQdO,5:oO'yQdO,5:vO'yQdO,5:xO'yQdO,5:yO'yQdO'#F[O,{Q`O,58}O-T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${R'c&dQ#]oS%Q#]%RR%R#^Q'z'RR(]'zQ$m!yR&U$mQ&]$rR'_&]Q']&[R(R']Q#XlR$y#XQ$P!cR%f$P_cOPdp!S#[%P^XOPdp!S#[%PQ!_^Q!`_Q#h}Q#i!OQ#j!PQ#k!QQ$u#SQ%Y#oR'g&iR%^#pQ!reQ!{g[$X!m!n!o$[$^$`Q${#Zh%[#p%]%a&m&r&w'O'i'r'x(V(bQ%`#uQ%z$cS&b${&dQ&h%WQ'b&cR'|'T]$Z!m!n!o$[$^$`Q!caU!yf!r$gQ#RjQ#x!bS#|!c$PQ$R!dQ%d#}Q%e$OQ%i$SS&O$i&QQ&T$lR'o&uQ#{!bW%s$W%m&z'uQ&t%bQ'w&}Q(U'mR(d(ZQ%u$WQ&y%mQ't&zR(Y'uR%k$SR%Z#oQqPR#n!SQ!zfQ$f!rR%}$g",nodeNames:"â Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery ColorLiteral CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector StyleQuery style ParenthesedQuery CallQuery ArgList PropertyName , PropertyName UnaryQuery ParenthesedQuery BinaryQuery ParenthesedQuery ParenthesedQuery StyleFeature PropertyName StyleRange PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName Arg
3List IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",maxTerm:176,nodeProps:[["isolate",-2,5,38,""],["openedBy",23,"(",30,"[",33,"{"],["closedBy",24,")",31,"]",34,"}"]],propSources:[ua],skippedNodes:[0,5,130],repeatNodeCount:17,tokenData:"IO~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu/wuv%Zvw0qwx1Sxy2qyz3Sz{3X{|3r|}8e}!O8v!O!P9e!P!Q9|!Q![:u![!];p!]!^<l!^!_<}!_!`=y!`!a>^!a!b%Z!b!c?_!c!k%Z!k!lAl!l!u%Z!u!vAl!v!}%Z!}#OA}#O#P%Z#P#QB`#Q#R/w#R#]%Z#]#^Bq#^#g%Z#g#hAl#h#o%Z#o#pGU#p#qGg#q#rHO#r#sHa#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`Hx<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!r`Oy%jz;'S%j;'S;=`%{<%lO%j`&OP;=`<%l%j~&Wh$`~OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=`%{<%lO%j~'yh$`~!r`OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S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T#o@o#o;'S%j;'S;=`%{<%lO%jhAqS!}WOy%jz;'S%j;'S;=`%{<%lO%jjBSSoYOy%jz;'S%j;'S;=`%{<%lO%jnBeSn^Oy%jz;'S%j;'S;=`%{<%lO%jjBvU!}WOy%jz#a%j#a#bCY#b;'S%j;'S;=`%{<%lO%jbC_U!r`Oy%jz#d%j#d#eCq#e;'S%j;'S;=`%{<%lO%jbCvU!r`Oy%jz#c%j#c#dDY#d;'S%j;'S;=`%{<%lO%jbD_U!r`Oy%jz#f%j#f#gDq#g;'S%j;'S;=`%{<%lO%jbDvU!r`Oy%jz#h%j#h#iEY#i;'S%j;'S;=`%{<%lO%jbE_U!r`Oy%jz#T%j#T#UEq#U;'S%j;'S;=`%{<%lO%jbEvU!r`Oy%jz#b%j#b#cFY#c;'S%j;'S;=`%{<%lO%jbF_U!r`Oy%jz#h%j#h#iFq#i;'S%j;'S;=`%{<%lO%jbFxS$tQ!r`Oy%jz;'S%j;'S;=`%{<%lO%jjGZSrYOy%jz;'S%j;'S;=`%{<%lO%jfGlU$gUOy%jz!_%j!_!`0^!`;'S%j;'S;=`%{<%lO%jjHTSqYOy%jz;'S%j;'S;=`%{<%lO%jfHfU#SQOy%jz!_%j!_!`0^!`;'S%j;'S;=`%{<%lO%j`H{P;=`<%l%Z",tokenizers:[ur,un,ue,ut,1,2,3,4,new cD("m~RRYZ[z{a~~g~aO$c~~dP!P!Qg~lO$d~~",28,156)],topRules:{StyleSheet:[0,6],Styles:[1,129]},dynamicPrecedences:{97:1},specialized:[{term:172,get:(e,t)=>uo(e)<<1,external:uo},{term:150,get:e=>ui[e]||-1},{term:151,get:e=>us[e]||-1},{term:4,get:e=>ul[e]||-1},{term:28,get:e=>uc[e]||-1},{term:149,get:e=>uu[e]||-1}],tokenPrec:2433}),uh=null;function up(){if(!uh&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],r=new Set;for(let n in e)"cssText"!=n&&"cssFloat"!=n&&"string"==typeof e[n]&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),r.has(n)||(t.push(n),r.add(n)));uh=t.sort().map(e=>({type:"property",label:e,apply:e+": "}))}return uh||[]}let uf=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invali
3d","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),um=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb
3-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","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","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),uO=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),ug=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(e=>({type:"keyword",label:e})),uv=/^(\w[\w-]*|-\w[\w-]*|)$/,uy=/^-(-[\w-]*)?$/,ub=new ih,uS=["Declaration"],ux=(n=e=>"VariableName"==e.name,e=>{let{state:t,pos:r}=e,o=i5(t).resolveInner(r,-1),i=o.type.isError&&o.from==o.to-1&&"-"==t.doc.sliceString(o.from,o.to);if("PropertyName"==o.name||(i||"TagName"==o.name)&&/^(Block|Styles)$/.test(o.resolve(o.to).name))return{from:o.from,options:up(),validFor:uv};if("ValueName"==o.name)return{from:o.from,options:um,validFor:uv};if("PseudoClassName"==o.name)return{from:o.from,options:uf,validFor:uv};if(n(o)||(e.explicit||i)&&function(e,t){var r;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let n=null==(r=e.parent)?void 0:r.firstChild;return(null==n?void 0:n.name)=="Callee"&&"var"==t.sliceString(n.from,n.to)}(o,t.doc))return{from:n(o)||i?o.from:r,options:function e(t,r,n){if(r.to-r.from>4096){let o=ub.get(r);if(o)return o;let i=[],s=new Set,l=r.cursor(a.IncludeAnonymous);if(l.firstChild())do for(let r of e(t,l.node,n))s.has(r.label)||(s.add(r.label),i.push(r));while(l.nextSibling())return ub.set(r,i),i}{let e=[],o=new Set;return r.cursor().iterate(r=>{var a;
3if(n(r)&&r.matchContext(uS)&&(null==(a=r.node.nextSibling)?void 0:a.name)==":"){let n=t.sliceString(r.from,r.to);o.has(n)||(o.add(n),e.push({label:n,type:"variable"}))}}),e}}(t.doc,function(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}(o),n),validFor:uy};if("TagName"==o.name){for(let{parent:e}=o;e;e=e.parent)if("Block"==e.name)return{from:o.from,options:up(),validFor:uv};return{from:o.from,options:uO,validFor:uv}}if("AtKeyword"==o.name)return{from:o.from,options:ug,validFor:uv};if(!e.explicit)return null;let s=o.resolve(r),l=s.childBefore(r);return l&&":"==l.name&&"PseudoClassSelector"==s.name?{from:r,options:uf,validFor:uv}:l&&":"==l.name&&"Declaration"==s.name||"ArgList"==s.name?{from:r,options:um,validFor:uv}:"Block"==s.name||"Styles"==s.name?{from:r,options:up(),validFor:uv}:null}),uk=i8.define({name:"css",parser:ud.configure({props:[sd.add({Declaration:sg()}),sy.add({"Block KeyframeList":sb})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function uw(){return new so(uk,uk.data.of({autocomplete:ux}))}let u$={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},uP={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},uQ={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},uC=null,uT=null,uB=0;function uA(e,t){var r;let n=e.pos+t;if(uB==n&&uT==e)return uC;let o=e.peek(t),a="";for(;45==(r=o)||46==r||58==r||r>=65&&r<=90||95==r||r>=97&&r<=122||r>=161;)a+=String.fromCharCode(o),o=e.peek(++t);return uT=e,uB=n,uC=a?a.toLowerCase():o==uR||o==uE?void 0:null}let uR=63,uE=33;function uV(e,t){this.name=e,this.parent=t}let uZ=[6,10,7,8,9],uj=new c1({start:null,shift:(e,t,r,n)=>uZ.indexOf(t)>-1?new uV(uA(n,1)||"",e):e,reduce:(e,t)=>21==t&&e?e.parent:e,reuse(e,t,r,n){let o=t.type.id;return 6==o||37==o?new uV(uA(n,1)||"",e):e},strict:!1}),uX=new cU((e,t)=>{if(60!=e.next){e.next<0&&t.context&&e.acceptToken(58);return}e.advance();let r=47==e.next;r&&e.advance();let n=uA(e,0);if(void 0===n)return;if(!n)return e.acceptToken(r?15:14);let o=t.context?t.context.name:null;if(r){if(n==o)return e.acceptToken(11);if(o&&uP[o])return e.acceptToken(58,-2);if(t.dialectEnabled(0))return e.acceptToken(12);for(let e=t.context;e;e=e.parent)if(e.name==n)return;e.acceptToken(13)}else{if("script"==n)return e.acceptToken(7);if("style"==n)return e.acceptToken(8);if("textarea"==n)return e.acceptToken(9);if(u$.hasOwnProperty(n))return e.acceptToken(10);o&&uQ[o]&&uQ[o][n]?e.acceptToken(58,-1):e.acceptToken(6)}},{contextual:!0}),u_=new cU(e=>{for(let t=0,r=0;;r++){if(e.next<0){r&&e.acceptToken(59);break}if(45==e.next)t++;else if(62==e.next&&t>=2){r>=3&&e.acceptToken(59,-2);break}else t=0;e.advance()}}),uM=new cU((e,t)=>{if(47==e.next&&62==e.peek(1)){let r=t.dialectEnabled(1)||function(e){for(;e;e=e.parent)if("svg"==e.name||"math"==e.name)return!0;return!1}(t.context);e.acceptToken(r?5:4,2)}else 62==e.next&&e.acceptToken(4,1)});function uq(e,t,r){let n=2+e.length;return new cU(o=>{for(let a=0,i=0,s=0;;s++){if(o.next<0){s&&o.acceptToken(t);break}if(0==a&&60==o.next||1==a&&47==o.next||a>=2&&a<n&&o.next==e.charCodeAt(a-2))a++,i++;else if(a==n&&62==o.next){s>i?o.acceptToken(t,-i):o.acceptToken(r,-(i-2));break}else if((10==o.next||13==o.next)&&s){o.acceptToken(t,1);break}else a=i=0;o.advance()}})}let uN=uq("script",55,1),uD=uq("style",56,2),uU=uq("textarea",57,3),uz=iA({"Text RawText IncompleteTag IncompleteCloseTag":iF.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":iF.angleBracket,TagName:iF.tagName,"MismatchedCloseTag/TagName":[iF.tagName,iF.invalid],AttributeName:iF.attributeName,"AttributeValue UnquotedAttributeValue":iF.attributeValue,Is:iF.definitionOperator,"EntityReference CharacterReference":iF.character,Comment:iF.blockComment,ProcessingInst:iF.processingInstruction,DoctypeDecl:iF.documentMeta}),uW=c2.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQ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gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"â StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:uj,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["o
3penedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[uz],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qX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%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[uN,uD,uU,uM,uX,u_,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function uL(e,t){let r=Object.create(null);for(let n of e.getChildren(24)){let e=n.getChild(25),o=n.getChild(27)||n.getChild(28);e&&(r[t.read(e.from,e.to)]=o?27==o.type.id?t.read(o.from+1,o.to-1):t.read(o.from,o.to):"")}return r}function uH(e,t){let r=e.getChild(23);return r?t.read(r.from,r.to):" "}function uI(e,t,r){let n;for(let o of r)if(!o.attrs||o.attrs(n||(n=uL(e.node.parent.firstChild,t))))return{parser:o.parser,bracketed:!0};return null}function uY(e=[],t=[]){var r;let n=[],o=[],a=[],i=[];for(let t of e)("script"==t.tag?n:"style"==t.tag?o:"textarea"==t.tag?a:i).push(t);let s=t.length?Object.create(null):null;for(let e of t)(s[e.name]||(s[e.name]=[])).push(e);return r=(e,t)=>{let r=e.type.id;if(29==r)return uI(e,t,n);if(32==r)return uI(e,t,o);if(35==r)return uI(e,t,a);if(21==r&&i.length){let r=e.node,n=r.firstChild,o=n&&uH(n,t),a;if(o){for(let e of i)if(e.tag==o&&(!e.attrs||e.attrs(a||(a=uL(n,t))))){let t=r.lastChild,o=38==t.type.id?t.from:r.to;if(o>n.to)return{parser:e.parser,overlay:[{from:n.to,to:o}]}}}}if(s&&24==r){let r=e.node,n;if(n=r.firstChild){let e=s[t.read(n.from,n.to)];if(e)for(let n of e){if(n.tagName&&n.tagName!=uH(r.parent,t))continue;let e=r.lastChild;if(27==e.type.id){let t=e.from+1,r=e.lastChild,o=e.to-(r&&r.isError?0:1);if(o>t)return{parser:n.parser,overlay:[{from:t,to:o}],bracketed:!0}}else if(28==e.type.id)return{parser:n.parser,overlay:[{from:e.from,to:e.to}]}}}}return null},(e,t,n,o)=>new iS(e,r,t,n,o)}let uG=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],uF=new c1({start:!1,shift:(e,t)=>5==t||6==t||321==t?e:322==t,strict:!1}),uK=new cU((e,t)=>{let{next:r}=e;(125==r||-1==r||t.context)&&e.acceptToken(319)},{contextual:!0,fallback:!0}),uJ=new cU((e,t)=>{let{next:r}=e,n;uG.indexOf(r)>-1||(47!=r||47!=(n=e.peek(1))&&42!=n)&&(125==r||59==r||-1==r||t.context||e.acceptToken(317))},{contextual:!0}),u0=new cU((e,t)=>{91!=e.next||t.context||e.acceptToken(318)},{contextual:!0}),u1=new cU((e,t)=>{let{next:r}=e;if(43==r||45==r){if(e.advance(),r==e.next){e.advance();let r=!t.context&&t.canShift(1);e.acceptToken(r?1:2)}}else 63==r&&46==e.peek(1)&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(3))},{contextual:!0});function u2(e,t){return e>=65&&e<=90||e>=97&&e<=122||95==e||e>=192||!t&&e>=48&&e<=57}let u8=new cU((e,t)=>{if(60!=e.next||!t.dialectEnabled(0)||(e.advance(),47==e.next))return;let r=0;for(;uG.indexOf(e.next)>-1;)e.advance(),r++;if(u2(e.next,!0)){for(e.advance(),r++;u2(e.next,!1);)e.advance(),r++;for(;uG.indexOf(e.next)>-1;)e.advance(),r++;if(44==e.next)return;for(let t=0;;
vendor: 10,858 bytes, line 3
3t++){if(7==t){if(!u2(e.next,!0))return;break}if(e.next!="extends".charCodeAt(t))break;e.advance(),r++}}e.acceptToken(4,-r)}),u5=iA({"get set async static":iF.modifier,"for while do if else switch try catch finally return throw break continue default case defer":iF.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":iF.operatorKeyword,"let var const using function class extends":iF.definitionKeyword,"import export from":iF.moduleKeyword,"with debugger new":iF.keyword,TemplateString:iF.special(iF.string),super:iF.atom,BooleanLiteral:iF.bool,this:iF.self,null:iF.null,Star:iF.modifier,VariableName:iF.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":iF.function(iF.variableName),VariableDefinition:iF.definition(iF.variableName),Label:iF.labelName,PropertyName:iF.propertyName,PrivatePropertyName:iF.special(iF.propertyName),"CallExpression/MemberExpression/PropertyName":iF.function(iF.propertyName),"FunctionDeclaration/VariableDefinition":iF.function(iF.definition(iF.variableName)),"ClassDeclaration/VariableDefinition":iF.definition(iF.className),"NewExpression/VariableName":iF.className,PropertyDefinition:iF.definition(iF.propertyName),PrivatePropertyDefinition:iF.definition(iF.special(iF.propertyName)),UpdateOp:iF.updateOperator,"LineComment Hashbang":iF.lineComment,BlockComment:iF.blockComment,Number:iF.number,String:iF.string,Escape:iF.escape,ArithOp:iF.arithmeticOperator,LogicOp:iF.logicOperator,BitOp:iF.bitwiseOperator,CompareOp:iF.compareOperator,RegExp:iF.regexp,Equals:iF.definitionOperator,Arrow:iF.function(iF.punctuation),": Spread":iF.punctuation,"( )":iF.paren,"[ ]":iF.squareBracket,"{ }":iF.brace,"InterpolationStart InterpolationEnd":iF.special(iF.brace),".":iF.derefOperator,", ;":iF.separator,"@":iF.meta,TypeName:iF.typeName,TypeDefinition:iF.definition(iF.typeName),"type enum interface implements namespace module declare":iF.definitionKeyword,"abstract global Privacy readonly override":iF.modifier,"is keyof unique infer asserts":iF.operatorKeyword,JSXAttributeValue:iF.attributeValue,JSXText:iF.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":iF.angleBracket,"JSXIdentifier JSXNameSpacedName":iF.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":iF.attributeName,"JSXBuiltin/JSXIdentifier":iF.standard(iF.tagName)}),u4={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:237,private:237,protected:237,readonly:239,instanceof:258,satisfies:261,import:294,keyof:351,unique:355,infer:361,asserts:397,is:399,abstract:419,implements:421,type:423,let:426,var:428,using:431,interface:437,enum:441,namespace:447,module:449,declare:453,global:457,defer:473,for:478,of:487,while:490,with:494,do:498,if:502,else:504,switch:508,case:514,try:520,catch:524,finally:528,return:532,throw:536,break:540,continue:544,debugger:548},u3={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:403},u6={__proto__:null,"<":193},u9=c2.deserialize({version:14,states:"$FvQ%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Im'#ImO1XQ`O'#GtO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JsO6[Q!0MxO'#JtO6uQ`O'#F^O6zQ,UO'#FuOOQ!0Lf'#Fg'#FgO7VO7dO'#FgO9XQMhO'#F}O9`Q`O'#F|OOQ!0Lf'#Jt'#JtOOQ!0Lb'#Js'#JsO9eQ`O'#GxOOQ['#K`'#K`O9pQ`O'#IZO9uQ!0LrO'#I[OOQ['#Ja'#JaOOQ['#I`'#I`Q`QlOOQ`QlOOO9}Q!L^O'#DvO:UQlO'#EOO:]QlO'#EQO9kQ`O'#GtO:dQMhO'#CoO:rQ`O'#EnO:}Q`O'#EzO;hQMhO'#FfO;xQ`O'#GtOOQO'#Ka'#KaO;}Q`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&i&r&t&u&w,u,z2]2`R,q&oT%lm,qR1l,ZR,i&gQ&U|S,P&V&WR1_,QR+u&PT&p!W&sT&q!W&sT2_,z2`",nodeNames:"â ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty VariableDefinition Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature Param
3List NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:381,context:uF,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,208,212,216,217,219,222,225,235,238,244,246,248,250,253,259,265,267,269,271,273,275,276,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,121,122,137,140,142,143,144,145,146,148,149,168,170,172,"Expression",-23,31,33,37,41,43,45,174,176,178,179,181,182,183,185,186,187,189,190,191,202,204,206,207,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",161,"JSXStartCloseTag"],["closedBy",-2,24,169,">",40,"InterpolationEnd",50,"]",61,"}",74,")",166,"JSXEndTag"]],propSources:[u5],skippedNodes:[0,5,6,279],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#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;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$j&j(Xp([!b(O0/l$^#t(U,2j(f$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[uJ,u0,u1,u8,2,3,4,5,6,7,8,9,10,11,12,13,14,uK,new cD("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(d~~",141,341),new cD("j~RQYZXz{^~^O(R~~aP!P!Qd~iO(S~~",25,324)],topRules:{Script:[0,7],SingleExpression:[1,277],SingleClassItem:[2,278]},dialects:{jsx:0,ts:15152},dynamicPrecedences:{80:1,82:1,94:1,170:1,200:1},specialized:[{term:328,get:e=>u4[e]||-1},{term:344,get:e=>u3[e]||-1},{term:95,get:e=>u6[e]||-1}],tokenPrec:15178}),u7=[l0("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),l0("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),l0("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),l0("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),l0("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),l0("try {\n ${}\n} catch (${error}) {\n ${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),l0("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),l0("if (${}) {\n ${}\n} else {\n ${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),l0("class ${name} {\n constructor(${params}) {\n ${}\n }\n}",{label:"class",detail:"definition",type:"keyword"}),l0('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),l0('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],de=u7.concat([l0("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),l0("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),l0("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),dt=new ih,dr=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function dn(e){return(t,r)=>{let n=t.node.getChild("VariableDefinition");return n&&r(n,e),!0}}let da=["FunctionDeclaration"],di={FunctionDeclaration:dn("function"),ClassDeclaration:dn("class"),ClassExpression:()=>!0,EnumDeclaration:dn("constant"),TypeAliasDeclaration:dn("type"),NamespaceDeclaration:dn("namespace"),VariableDefinition(e,t){e.matchContext(da)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null},ds=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,dl=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function dc(e){let t=i5(e.state).resolveInner(e.pos,-1);if(dl.indexOf(t.name)>-1)return null;let r="VariableName"==t.name||t.to-t.from<20&&ds.test(e.state.sliceDoc(t.from,t.to));if(!r&&!e.explicit)return null;let n=[];for(let r=t;r;r=r.parent)dr.has(r.name)&&(n=n.concat(function e(t,r){let n=dt.get(r);if(n)return n;let o=[],i=!0;function s(e,r){let n=t.sliceString(e.from,e.to);o.push({label:n,type:r})}return r.cursor(a.IncludeAnonymous).iterate(r=>{if(i)i=!1;else if(r.name){let e=di[r.name];if(e&&e(r,s)||dr.has(r.name))return!1}else if(r.to-r.from>8192){for(let n of e(t,r.node))o.push(n);return!1}}),dt.set(r,o),o}(e.state.doc,r)));return{options:n,from:r?t.from:e.pos,validFor:ds}}let du=i8.define({name:"javascript",parser:u9.configure({props:[sd.add({IfStatement:sg({except:/^\s*({|else\b)/}),TryStatement:sg({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:e=>e.baseIndent,SwitchBody:e=>{let t=e.textAfter,r=/^\s*\}/.test(t),n=/^\s*(case|default)\b/.test(t);return e.baseIndent+(r?0:n?1:2)*e.unit},Block:sm({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":sg({except:/^\s*{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>
3e.column(e.node.from)+e.unit}),sy.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":sb,BlockComment:e=>({from:e.from+2,to:e.to-2}),JSXElement(e){let t=e.firstChild;if(!t||"JSXSelfClosingTag"==t.name)return null;let r=e.lastChild;return{from:t.to,to:r.type.isError?e.to:r.from}},"JSXSelfClosingTag JSXOpenTag"(e){var t;let r=null==(t=e.firstChild)?void 0:t.nextSibling,n=e.lastChild;return!r||r.type.isError?null:{from:r.to,to:n.type.isError?e.to:n.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),dd={test:e=>/^JSX/.test(e.name),facet:iJ({commentTokens:{block:{open:"{/*",close:"*/}"}}})},dh=du.configure({dialect:"ts"},"typescript"),dp=du.configure({dialect:"jsx",props:[i0.add(e=>e.isTop?[dd]:void 0)]}),df=du.configure({dialect:"jsx ts",props:[i0.add(e=>e.isTop?[dd]:void 0)]},"typescript"),dm=e=>({label:e,type:"keyword"}),dO="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(dm),dg=dO.concat(["declare","implements","private","protected","public"].map(dm));function dv(e,t,r=e.length){for(let n=null==t?void 0:t.firstChild;n;n=n.nextSibling)if("JSXIdentifier"==n.name||"JSXBuiltin"==n.name||"JSXNamespacedName"==n.name||"JSXMemberExpression"==n.name)return e.sliceString(n.from,Math.min(n.to,r));return""}let dy="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),db=oD.inputHandler.of((e,t,r,n,o)=>{if((dy?e.composing:e.compositionStarted)||e.state.readOnly||t!=r||">"!=n&&"/"!=n||!du.isActiveAt(e.state,t,-1))return!1;let a=o(),{state:i}=a,s=i.changeByRange(e=>{var t;let{head:r}=e,o=i5(i).resolveInner(r-1,-1),a;if("JSXStartTag"==o.name&&(o=o.parent),i.doc.sliceString(r-1,r)!=n||"JSXAttributeValue"==o.name&&o.to>r);else if(">"==n&&"JSXFragmentTag"==o.name)return{range:e,changes:{from:r,insert:"</>"}};else if("/"==n&&"JSXStartCloseTag"==o.name){let e=o.parent,n=e.parent;if(n&&e.from==r-2&&((a=dv(i.doc,n.firstChild,r))||(null==(t=n.firstChild)?void 0:t.name)=="JSXFragmentTag")){let e=`${a}>`;return{range:ew.cursor(r+e.length,-1),changes:{from:r,insert:e}}}}else if(">"==n){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(o);if(t&&"JSXOpenTag"==t.name&&!/^\/?>|^<\//.test(i.doc.sliceString(r,r+2))&&(a=dv(i.doc,t,r)))return{range:e,changes:{from:r,insert:`</${a}>`}}}return{range:e}});return!s.changes.empty&&(e.dispatch([a,i.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),dS=["_blank","_self","_top","_parent"],dx=["ascii","utf-8","utf-16","latin1","latin1"],dk=["get","post","put","delete"],dw=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],d$=["true","false"],dP={},dQ={a:{attrs:{href:null,ping:null,type:null,media:null,target:dS,hreflang:null}},abbr:dP,address:dP,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:dP,aside:dP,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:dP,base:{attrs:{href:null,target:dS}},bdi:dP,bdo:dP,blockquote:{attrs:{cite:null}},body:dP,br:dP,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:dw,formmethod:dk,formnovalidate:["novalidate"],formtarget:dS,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:dP,center:dP,cite:dP,code:dP,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:dP,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:dP,div:dP,dl:dP,dt:dP,em:dP,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}}
vendor: 5,919 bytes, line 3
3,figcaption:dP,figure:dP,footer:dP,form:{attrs:{action:null,name:null,"accept-charset":dx,autocomplete:["on","off"],enctype:dw,method:dk,novalidate:["novalidate"],target:dS}},h1:dP,h2:dP,h3:dP,h4:dP,h5:dP,h6:dP,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:dP,hgroup:dP,hr:dP,html:{attrs:{manifest:null}},i:dP,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:dw,formmethod:dk,formnovalidate:["novalidate"],formtarget:dS,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:dP,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:dP,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:dP,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:dx,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:dP,noscript:dP,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:dP,param:{attrs:{name:null,value:null}},pre:dP,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:dP,rt:dP,ruby:dP,samp:dP,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:dx}},section:dP,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:dP,source:{attrs:{src:null,type:null,media:null}},span:dP,strong:dP,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:dP,summary:dP,sup:dP,table:dP,tbody:dP,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:dP,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:dP,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:dP,time:{attrs:{datetime:null}},title:dP,tr:dP,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:dP,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:dP},dC={accesskey:null,class:null,contenteditable:d$,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:d$,autocorrect:d$,autocapitalize:d$,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":d$,"aria-autocomplete":["inline","list","both","none"],"aria-busy":d$,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":d$,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":d$,"aria-hidden":d$,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":d$,"aria-multiselectable":d$,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":d$,"aria-relevant":null,"aria-required":d$,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},dT="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".
3split(" ").map(e=>"on"+e);for(let e of dT)dC[e]=null;class dB{constructor(e,t){this.tags={...dQ,...e},this.globalAttrs={...dC,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function dA(e,t,r=e.length){if(!t)return"";let n=t.firstChild,o=n&&n.getChild("TagName");return o?e.sliceString(o.from,Math.min(o.to,r)):""}function dR(e,t=!1){for(;e;e=e.parent)if("Element"==e.name)if(!t)return e;else t=!1;return null}function dE(e,t,r){let n=r.tags[dA(e,dR(t))];return(null==n?void 0:n.children)||r.allTags}function dV(e,t){let r=[];for(let n=dR(t);n&&!n.type.isTop;n=dR(n.parent)){let o=dA(e,n);if(o&&"CloseTag"==n.lastChild.name)break;o&&0>r.indexOf(o)&&("EndTag"==t.name||t.from>=n.firstChild.to)&&r.push(o)}return r}dB.default=new dB;let dZ=/^[:\-\.\w\u00b7-\uffff]*$/;function dj(e,t,r,n,o){let a=/\s*>/.test(e.sliceDoc(o,o+5))?"":">",i=dR(r,"StartTag"==r.name||"TagName"==r.name);return{from:n,to:o,options:dE(e.doc,i,t).map(e=>({label:e,type:"type"})).concat(dV(e.doc,r).map((e,t)=>({label:"/"+e,apply:"/"+e+a,type:"type",boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function dX(e,t,r,n){let o=/\s*>/.test(e.sliceDoc(n,n+5))?"":">";return{from:r,to:n,options:dV(e.doc,t).map((e,t)=>({label:e,apply:e+o,type:"type",boost:99-t})),validFor:dZ}}let d_=du.parser.configure({top:"SingleExpression"}),dM=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:dh.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:dp.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:df.parser},{tag:"script",attrs:e=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type),parser:d_},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:du.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:uk.parser}],dq=[{name:"style",parser:uk.parser.configure({top:"Styles"})}].concat(dT.map(e=>({name:e,parser:du.parser}))),dN=i8.define({name:"html",parser:uW.configure({props:[sd.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t=null,r;for(let r=e.node;;){let e=r.lastChild;if(!e||"Element"!=e.name||e.to!=r.to)break;t=r=e}return t&&!((r=t.lastChild)&&("CloseTag"==r.name||"SelfClosingTag"==r.name))?e.lineIndent(t.from)+e.unit:null}}),sy.add({Element(e){let t=e.firstChild,r=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==r.name?r.from:e.to}:null}}),s0.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),dD=dN.configure({wrap:uY(dM,dq)}),dU=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),dz=oD.inputHandler.of((e,t,r,n,o)=>{if(e.composing||e.state.readOnly||t!=r||">"!=n&&"/"!=n||!dD.isActiveAt(e.state,t,-1))return!1;let a=o(),{state:i}=a,s=i.changeByRange(e=>{var t;let r=i.doc.sliceString(e.from-1,e.to)==n,{head:o}=e,a=i5(i).resolveInner(o,-1),s;if(r&&">"==n&&"EndTag"==a.name){let t=a.parent;if((s=dA(i.doc,t.parent,o))&&!dU.has(s)&&!function(e,t,r){for(var n;;){if((null==(n=t.lastChild)?void 0:n.name)!="CloseTag")return!1;let o=t.parent;if(!o||dA(e,o)!=r)return!0;t=o}}(i.doc,t.parent,s)){let t=o+ +(">"===i.doc.sliceString(o,o+1));return{range:e,changes:{from:o,to:t,insert:`</${s}>`}}}}else if(r&&"/"==n&&"IncompleteCloseTag"==a.name){let e=a.parent;if(a.from==o-2&&(null==(t=e.lastChild)?void 0:t.name)!="CloseTag"&&(s=dA(i.doc,e,o))&&!dU.has(s)){let e=o+ +(">"===i.doc.sliceString(o,o+1)),t=`${s}>`;return{range:ew.cursor(o+t.length,-1),changes:{from:o,to:e,insert:t}}}}return{range:e}});return!s.changes.empty&&(e.dispatch([a,i.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),dW=iA({String:iF.string,Number:iF.number,"True False":iF.bool,PropertyName:iF.propertyName,Null:iF.null,", :":iF.separator,"[ ]":iF.squareBracket,"{ }":iF.brace}),dL=c2.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"â JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[dW],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),dH=i8.define({name:"json",parser:dL.configure({props:[sd.add({Object:sg({except:/^\s*\}/}),Array:sg({except:/^\s*\]/})}),sy.add({"Object Array":sb})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}}),dI=null,dY=null,dG=0;function dF(e,t){var r;let n=e.pos+t;if(dY==e&&dG==n)return dI;for(;9==(r=e.peek(t))||10==r||13==r||32==r;)t++;let o="";for(;;){let r=e.peek(t);if(!(45==r||46==r||58==r||r>=65&&r<=90||95==r||r>=97&&r<=122||r>=161))break;o+=String.fromCharCode(r),t++}return dY=e,dG=n,dI=o||null}function dK(e,t){this.name=e,this.parent=t}let dJ=new c1({start:null,shift:(e,t,r,n)=>1==t?new dK(dF(n,1)||"",e):e,reduce:(e,t)=>11==t&&e?e.parent:e,reuse(e,t,r,n){let o=t.type.id;return 1==o||13==o?new dK(dF(n,1)||"",e):e},strict:!1}),d0=new cU((e,t)=>{if(60==e.next){if(e.advance(),47==e.next){e.advance();let r=dF(e,0);if(!r)return e.acceptToken(5);if(t.context&&r==t.context.name)return e.acceptToken(2);for(let n=t.context;n;n=n.parent)if(n.name==r)return e.acceptToken(3,-2);e.acceptToken(4)}else if(33!=e.next&&63!=e.next)return e.acceptToken(1)}},{contextual:!0});function d1(e,t){return new cU(r=>{let n=0,o=t.charCodeAt(0);o:for(;!(r.next<0);r.advance(),n++)if(r.next==o){for(let e=1;e<t.length;e++)if(r.peek(e)!=t.charCodeAt(e))continue o;break}n&&r.acceptToken(e)})}let d2=d1(36,"-->"),d8=d1(37,"?>"),d5=d1(38,"]]>"),d4=iA({Text:iF.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":iF.angleBracket,TagName:iF.tagName,"MismatchedCloseTag/TagName":[iF.tagName,iF.invalid],AttributeName:iF.attributeName,AttributeValue:iF.attributeValue,Is:iF.definitionOperator,"EntityReference CharacterReference":iF.character,Comment:iF.blockComment,ProcessingInst:iF.processingInstruction,DoctypeDecl:iF.documentMeta,Cdata:iF.special(iF.string)}),d3=c2.deserialize({version:14,states:",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C}'#C}O$dOrO,59^OOOP,59^,59^OOOS'#DO'#DOO$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6z-E6zOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6{-E6{OOOP1G.x1G.xOOOS-E6|-E6|OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'mO!bO,59eOOOO-E6w-E6wO'{OpO1G.uO'{OpO1G.uOOOP1G.u1G.uO(TOpO7+$fOOOP7+$f7+$fO(]O!bO<<GuOOOP<<Gu<<GuOOOP<<G}<<G}O'b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CloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",maxTerm:50,context:dJ,nodeProps:[["closedBy",1,"SelfCloseEndTag EndTag",13,"CloseTag MissingCloseTag"],["o
3penedBy",12,"StartTag StartCloseTag",19,"OpenTag",20,"StartTag"],["isolate",-6,13,18,19,21,22,24,""]],propSources:[d4
vendor: 4,503 bytes, line 3
3],skippedNodes:[0],repeatNodeCount:9,tokenData:"!)v~R!YOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs*vsv$qvw+fwx/ix}$q}!O0[!O!P$q!P!Q2z!Q![$q![!]4n!]!^$q!^!_8U!_!`!#t!`!a!$l!a!b!%d!b!c$q!c!}4n!}#P$q#P#Q!'W#Q#R$q#R#S4n#S#T$q#T#o4n#o%W$q%W%o4n%o%p$q%p&a4n&a&b$q&b1p4n1p4U$q4U4d4n4d4e$q4e$IS4n$IS$I`$q$I`$Ib4n$Ib$Kh$q$Kh%#t4n%#t&/x$q&/x&Et4n&Et&FV$q&FV;'S4n;'S;:j8O;:j;=`)c<%l?&r$q?&r?Ah4n?Ah?BY$q?BY?Mn4n?MnO$qi$zXVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qa%nVVP!O`Ov%gwx&Tx!^%g!^!_&o!_;'S%g;'S;=`'W<%lO%gP&YTVPOv&Tw!^&T!_;'S&T;'S;=`&i<%lO&TP&lP;=`<%l&T`&tS!O`Ov&ox;'S&o;'S;=`'Q<%lO&o`'TP;=`<%l&oa'ZP;=`<%l%gX'eWVP|WOr'^rs&Tsv'^w!^'^!^!_'}!_;'S'^;'S;=`(i<%lO'^W(ST|WOr'}sv'}w;'S'};'S;=`(c<%lO'}W(fP;=`<%l'}X(lP;=`<%l'^h(vV|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`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x#d(o#d#e!!b#e;'S(o;'S;=`)]<%lO(oi!!iX|W!O`Or(ors&osv(owx'}x#X(o#X#Y?y#Y;'S(o;'S;=`)]<%lO(oi!#_V!SP|W!O`Or(ors&osv(owx'}x;'S(o;'S;=`)]<%lO(ok!$PXaQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qo!$wX[UVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!%mZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!&`!a;'S$q;'S;=`)c<%lO$qk!&kX!RQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$qk!'aZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_#P$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",tokenizers:[
3d0,d2,d8,d5,0,1,2,3,4],topRules:{Document:[0,6]},tokenPrec:0});function d6(e,t){let r=t&&t.getChild("TagName");return r?e.sliceString(r.from,r.to):""}function d9(e,t){let r=t&&t.firstChild;return r&&"OpenTag"==r.name?d6(e,r):""}function d7(e){for(let t=e&&e.parent;t;t=t.parent)if("Element"==t.name)return t;return null}class he{constructor(e,t,r){this.attrs=t,this.attrValues=r,this.children=[],this.name=e.name,this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"</"+this.name+">",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=e.textContent?e.textContent.map(e=>({label:e,type:"text"})):[]}}let ht=/^[:\-\.\w\u00b7-\uffff]*$/;function hr(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function hn(e){return"string"==typeof e?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}let ho=i8.define({name:"xml",parser:d3.configure({props:[sd.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit}),sy.add({Element(e){let t=e.firstChild,r=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==r.name?r.from:e.to}:null}}),s0.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/$/}});function ha(e,t,r=e.length){if(!t)return"";let n=t.firstChild,o=n&&n.getChild("TagName");return o?e.sliceString(o.from,Math.min(o.to,r)):""}let hi=oD.inputHandler.of((e,t,r,n,o)=>{if(e.composing||e.state.readOnly||t!=r||">"!=n&&"/"!=n||!ho.isActiveAt(e.state,t,-1))return!1;let a=o(),{state:i}=a,s=i.changeByRange(e=>{var t,r,o;let{head:a}=e,s=i.doc.sliceString(a-1,a)==n,l=i5(i).resolveInner(a,-1),c;if(s&&">"==n&&"EndTag"==l.name){let n=l.parent;if((null==(r=null==(t=n.parent)?void 0:t.lastChild)?void 0:r.name)!="CloseTag"&&(c=ha(i.doc,n.parent,a))){let t=a+ +(">"===i.doc.sliceString(a,a+1));return{range:e,changes:{from:a,to:t,insert:`</${c}>`}}}}else if(s&&"/"==n&&"StartCloseTag"==l.name){let e=l.parent;if(l.from==a-2&&(null==(o=e.lastChild)?void 0:o.name)!="CloseTag"&&(c=ha(i.doc,e,a))){let e=a+ +(">"===i.doc.sliceString(a,a+1)),t=`${c}>`;return{range:ew.cursor(a+t.length,-1),changes:{from:a,to:e,insert:t}}}}return{range:e}});return!s.changes.empty&&(e.dispatch([a,i.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});class hs{constructor(e,t,r){this.parent=e,this.depth=t,this.type=r,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)+r}}function hl(e,t){for(let r=0,n=t-e.pos-1;;n--,r++){let t=e.peek(n);if(hu(t)||-1==t)return r}}function hc(e){return 32==e||9==e}function hu(e){return 10==e||13==e}function hd(e){var t;return e<0||hc(t=e)||hu(t)}hs.top=new hs(null,-1,0);let hh=new c1({start:hs.top,reduce:(e,t)=>3==e.type&&(20==t||34==t)?e.parent:e,shift(e,t,r,n){if(3==t)return new hs(e,hl(n,n.pos),1);if(65==t||5==t)return new hs(e,hl(n,n.pos),2);if(63==t)return e.parent;if(19==t||33==t)return new hs(e,0,3);if(13==t&&4==e.type)return e.parent;if(47==t){let t=/[1-9]/.exec(n.read(n.pos,r.pos));if(t)return new hs(e,e.depth+ +t[0],4)}return e},hash:e=>e.hash});function hp(e,t,r=0){return e.peek(r)==t&&e.peek(r+1)==t&&e.peek(r+2)==t&&hd(e.peek(r+3))}let hf=new cU((e,t)=>{if(-1==e.next&&t.canShift(64))return e.acceptToken(64);let r=e.peek(-1);if((hu(r)||r<0)&&3!=t.context.type){if(hp(e,45))if(!t.canShift(63))return e.acceptToken(1,3);else e.acceptToken(63);if(hp(e,46))if(!t.canShift(63))return e.acceptToken(2,3);else e.acceptToken(63);let r=0;for(;32==e.next;)r++,e.advance();!(r<t.context.depth)&&(r!=t.context.depth||1!=t.context.type||45==e.next&&hd(e.peek(1)))||-1==e.next||hu(e.next)||35==e.next||e.acceptToken(63,-r)}},{contextual:!0}),hm=new cU((e,t)=>{if(3==t.context.type){63==e.next&&(e.advance(),hd(e.next)&&e.acceptToken(7));return}if(45==e.next)e.advance(),hd(e.next)&&e.acceptToken(1==t.context.type&&t.context.depth==hl(e,e.pos-1)?4:3);else if(63==e.next)e.advance(),hd(e.next)&&e.acceptToken(2==t.context.type&&t.context.depth==hl(e,e.pos-1)?6:5);else{let r=e.pos;for(;;)if(hc(e.next)){if(e.pos==r)return;e.advance()}else if(33==e.next)hv(e);else if(38==e.next)hy(e);else if(42==e.next){hy(e);break}else if(39==e.next||34==e.next){if(hb(e,!0))break;return}else if(91==e.next||123==e.next){if(!function(e){for(let t=[],r=e.pos+1024;;)if(91==e.next||123==e.next)t.push(e.next),e.advance();else if(39==e.next||34==e.next){if(!hb(e,!0))return!1}else if(93==e.next||125==e.next){if(t[t.length-1]!=e.next-2)return!1;if(t.pop(),e.advance(),!t.length)return!0}else{if(e.next<0||e.pos>r||hu(e.next))return!1;e.advance()}}(e))return;break}else{hk(e,!0,!1,0);break}for(;hc(e.next);)e.advance();if(58==e.next){if(e.pos==r&&t.canShift(29))return;hd(e.peek(1))&&e.acceptTokenTo(2==t.context.type&&t.context.depth==hl(e,r)?66:65,r)}}},{contextual:!0});function hO(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function hg(e,t){var r;return 37==e.next?(e.advance(),hO(e.next)&&e.advance(),hO(e.next)&&e.advance(),!0):(!!((r=e.next)>32)&&!!(r<127)&&34!=r&&37!=r&&44!=r&&60!=r&&62!=r&&92!=r&&94!=r&&96!=r&&123!=r&&124!=r&&125!=r||!!t&&44==e.next)&&(e.advance(),!0)}function hv(e){if(e.advance(),60==e.next){for(e.advance();;)if(!hg(e,!0)){62==e.next&&e.advance();break}}else for(;hg(e,!1););}function hy(e){for(e.advance();!hd(e.next)&&"f"!=hS(e.next);)e.advance()}function hb(e,t){let r=e.next,n=!1,o=e.pos;for(e.advance();;){let a=e.next;if(a<0)break;if(e.advance(),a==r)if(39==a)if(39==e.next)e.advance();else break;else break;else if(92==a&&34==r)e.next>=0&&e.advance();else if(hu(a)){if(t)return!1;n=!0}else if(t&&e.pos>=o+1024)return!1}return!n}function hS(e){return e<33?"u":e>125?"s":"iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif"[e-33]}function hx(e,t){let r=hS(e);return"u"!=r&&!(t&&"f"==r)}
3function hk(e,t,r,n){if(!("s"==hS(e.next)||(63==e.next||58==e.next||45==e.next)&&hx(e.peek(1),r)))return!1;e.advance();let o=e.pos;for(;;){var a;let i=e.next,s=0,l=n+1;for(;hc(a=i)||hu(a);){if(hu(i)){if(t)return!1;l=0}else l++;i=e.peek(++s)}if(!(i>=0&&(58==i?hx(e.peek(s+1),r):35==i?32!=e.peek(s-1):hx(i,r)))||!r&&l<=n||0==l&&!r&&(hp(e,45,s)||hp(e,46,s)))break;if(t&&"f"==hS(i))return!1;for(let t=s;t>=0;t--)e.advance();if(t&&e.pos>o+1024)return!1}return!0}let hw=new cU((e,t)=>{if(33==e.next)hv(e),e.acceptToken(12);else if(38==e.next||42==e.next){let t=38==e.next?10:11;hy(e),e.acceptToken(t)}else 39==e.next||34==e.next?(hb(e,!1),e.acceptToken(9)):hk(e,!1,3==t.context.type,t.context.depth)&&e.acceptToken(8)}),h$=new cU((e,t)=>{let r=4==t.context.type?t.context.depth:-1,n=e.pos;o:for(;;){let o=0,a=e.next;for(;32==a;)a=e.peek(++o);if(!o&&(hp(e,45,o)||hp(e,46,o))||!hu(a)&&(r<0&&(r=Math.max(t.context.depth+1,o)),o<r))break;for(;;){if(e.next<0)break o;let t=hu(e.next);if(e.advance(),t)continue o;n=e.pos}}e.acceptTokenTo(13,n)}),hP=iA({DirectiveName:iF.keyword,DirectiveContent:iF.attributeValue,"DirectiveEnd DocEnd":iF.meta,QuotedLiteral:iF.string,BlockLiteralHeader:iF.special(iF.string),BlockLiteralContent:iF.content,Literal:iF.content,"Key/Literal Key/QuotedLiteral":iF.definition(iF.propertyName),"Anchor Alias":iF.labelName,Tag:iF.typeName,Comment:iF.lineComment,": , -":iF.separator,"?":iF.punctuation,"[ ]":iF.squareBracket,"{ }":iF.brace}),hQ=c2.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#D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|a~P#|O!b$cO!g$cO~O",goto:",]!mPPPPPPPPPPPPPPPPP!nPP!v#v#|$`#|$c$f$j$nP%VPPP!v%Y%^%a%{&O%a&R&U&X&_&b%aP&e&{&e'O'RPP']'a'g'm's'y(XPPPPPPPP(_)e*X+c,VUaObcR#e!c!{ROPQSTUXY_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:"â DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",ma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z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[hf,hm,hw,h$,0,1],topRules:{Stream:[0,15]},tokenPrec:0}),hC=i8.define({name:"yaml",parser:hQ.configure({props:[sd.add({Stream:e=>{for(let t=e.node.resolve(e.pos,-1);t&&t.to>=e.pos;t=t.parent){if("BlockLiteralContent"==t.name&&t.from<t.to)return e.baseIndentFor(t);if("BlockLiteral"==t.name)return e.baseIndentFor(t)+e.unit;if("BlockSequence"==t.name||"BlockMapping"==t.name)return e.column(t.firstChild.from,1);if("QuotedLiteral"==t.name)break;if("Literal"==t.name){let r=e.column(t.from,1);if(r==e.lineIndent(t.from,1))return r;if(t.to>e.pos)break}}return null},FlowMapping:sm({closing:"}"}),FlowSequence:sm({closing:"]"})}),sy.add({"FlowMapping FlowSequence":sb,"Item Pair BlockLiteral":(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});iF.meta;class hT{constructor(e,t,r){this.from=e,this.to=t,this.diagnostic=r}}class hB{constructor(e,t,r){this.diagnostics=e,this.panel=t,this.selected=r}static init(e,t,r){let n=r.facet(hN).markerFilter;n&&(e=n(e,r));let o=e.slice().sort((e,t)=>e.from-t.from||e.to-t.to),a=new ta,i=[],s=0,l=r.doc.iter(),c=0,u=r.doc.length;for(let e=0;;){let t,r,n=e==o.length?null:o[e];if(!n&&!i.length)break;if(i.length)t=s,r=i.reduce((e,t)=>Math.min(e,t.to),n&&n.from>t?n.from:1e8);else{if((t=n.from)>u)break;r=n.to,i.push(n),e++}for(;e<o.length;){let n=o[e];if(n.from==t&&(n.to>n.from||n.to==t))i.push(n),e++,r=Math.min(n.to,r);else{r=Math.min(n.from,r);break}}r=Math.min(r,u);let d=!1;if(i.some(e=>e.from==t&&(e.to==r||r==u))&&!(d=t==r)&&r-t<10){let e=t-(c+l.value.length);e>0&&(l.next(e),c=t);for(let e=t;;){if(e>=r){d=!0;break}if(!l.lineBreak&&c+l.value.length>e)break;e=c+l.value.length,c+=l.value.length,l.next()}}let h=hG(i);if(d)a.add(t,t,tI.widget({widget:new hW(h),diagnostics:i.slice()}));else{let e=i.reduce((e,t)=>
3t.markClass?e+" "+t.markClass:e,"");a.add(t,r,tI.mark({class:"cm-lintRange cm-lintRange-"+h+e,diagnostics:i.slice(),inclusiveEnd:i.some(e=>e.to>r)}))}if((s=r)==u)break;for(let e=0;e<i.length;e++)i[e].to<=s&&i.splice(e--,1)}let d=a.finish();return new hB(d,t,hA(d))}}function hA(e,t=null,r=0){let n=null;return e.between(r,1e9,(e,r,{spec:o})=>{if(!(t&&0>o.diagnostics.indexOf(t)))if(n){if(0>o.diagnostics.indexOf(n.diagnostic))return!1;n=new hT(n.from,r,n.diagnostic)}else n=new hT(e,r,t||o.diagnostics[0])}),n}function hR(e,t){let r=t.pos,n=t.end||r,o=e.state.facet(hN).hideOn(e,r,n);if(null!=o)return o;let a=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(e=>e.is(hE))||e.changes.touchesRange(a.from,Math.max(a.to,n)))}let hE=eK.define(),hV=eK.define(),hZ=eK.define(),hj=eE.define({create:()=>new hB(tI.none,null,null),update(e,t){if(t.docChanged&&e.diagnostics.size){let r=e.diagnostics.map(t.changes),n=null,o=e.panel;if(e.selected){let o=t.changes.mapPos(e.selected.from,1);n=hA(r,e.selected.diagnostic,o)||hA(r,null,o)}!r.size&&o&&t.state.facet(hN).autoPanel&&(o=null),e=new hB(r,o,n)}for(let r of t.effects)if(r.is(hE)){let n=t.state.facet(hN).autoPanel?r.value.length?hH.open:null:e.panel;e=hB.init(r.value,n,t.state)}else r.is(hV)?e=new hB(e.diagnostics,r.value?hH.open:null,e.selected):r.is(hZ)&&(e=new hB(e.diagnostics,e.panel,r.value));return e},provide:e=>[a$.from(e,e=>e.panel),oD.decorations.from(e,e=>e.diagnostics)]}),hX=tI.mark({class:"cm-lintRange cm-lintRange-active"});function h_(e,t){return tT("ul",{class:"cm-tooltip-lint"},t.map(t=>hz(e,t,!1)))}let hM=e=>{let t=e.state.field(hj,!1);return!!t&&!!t.panel&&(e.dispatch({effects:hV.of(!1)}),!0)},hq=rH.fromClass(class{constructor(e){this.view=e,this.timeout=-1,this.set=!0;let{delay:t}=e.state.facet(hN);this.lintTime=Date.now()+t,this.run=this.run.bind(this),this.timeout=setTimeout(this.run,t)}run(){clearTimeout(this.timeout);let e=Date.now();if(e<this.lintTime-10)this.timeout=setTimeout(this.run,this.lintTime-e);else{this.set=!1;let{state:e}=this.view,{sources:t}=e.facet(hN);t.length&&function(e,t,r){let n=[],o=-1;for(let a of e)a.then(r=>{n.push(r),clearTimeout(o),n.length==e.length?t(n):o=setTimeout(()=>t(n),200)},r)}(t.map(e=>Promise.resolve(e(this.view))),t=>{var r,n,o,a;this.view.state.doc==e.doc&&this.view.dispatch((r=this.view.state,n=t.reduce((e,t)=>e.concat(t)),{effects:(o=r,a=[hE.of(n)],o.field(hj,!1)?a:a.concat(eK.appendConfig.of(h0)))}))},e=>{rU(this.view.state,e)})}}update(e){let t=e.state.facet(hN);(e.docChanged||t!=e.startState.facet(hN)||t.needsRefresh&&t.needsRefresh(e))&&(this.lintTime=Date.now()+t.delay,this.set||(this.set=!0,this.timeout=setTimeout(this.run,t.delay)))}force(){this.set&&(this.lintTime=Date.now(),this.run())}destroy(){clearTimeout(this.timeout)}}),hN=eQ.define({combine:e=>({sources:e.map(e=>e.source).filter(e=>null!=e),...e6(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:hD,tooltipFilter:hD,needsRefresh:(e,t)=>e?t?r=>e(r)||t(r):e:t,hideOn:(e,t)=>e?t?(r,n,o)=>e(r,n,o)||t(r,n,o):e:t,autoPanel:(e,t)=>e||t})})});function hD(e,t){return e?t?(r,n)=>t(e(r,n),n):e:t}function hU(e){let t=[];if(e)i:for(let{name:r}of e){for(let e=0;e<r.length;e++){let n=r[e];if(/[a-zA-Z]/.test(n)&&!t.some(e=>e.toLowerCase()==n.toLowerCase())){t.push(n);continue i}}t.push("")}return t}function hz(e,t,r){var n;let o=r?hU(t.actions):[];return tT("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},tT("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null==(n=t.actions)?void 0:n.map((r,n)=>{let a=!1,i=n=>{if(n.preventDefault(),a)return;a=!0;let o=hA(e.state.field(hj).diagnostics,t);o&&r.apply(e,o.from,o.to)},{name:s}=r,l=o[n]?s.indexOf(o[n]):-1,c=l<0?s:[s.slice(0,l),tT("u",s.slice(l,l+1)),s.slice(l+1)];return tT("button",{type:"button",class:"cm-diagnosticAction"+(r.markClass?" "+r.markClass:""),onclick:i,onmousedown:i,"aria-label":` Action: ${s}${l<0?"":` (access key "${o[n]})"`}.`},c)}),t.source&&tT("div",{class:"cm-diagnosticSource"},t.source))}class hW extends tL{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return tT("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class hL{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(0xffffffff*Math.random()).toString(16),this.dom=hz(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class hH{constructor(e){this.view=e,this.items=[];let t=t=>{if(!t.ctrlKey&&!t.altKey&&!t.metaKey){if(27==t.keyCode)hM(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65)||!(t.keyCode<=90)||!(this.selectedIndex>=0))return;let{diagnostic:r}=this.items[this.selectedIndex],n=hU(r.actions);for(let o=0;o<n.length;
3o++)if(n[o].toUpperCase().charCodeAt(0)==t.keyCode){let t=hA(this.view.state.field(hj).diagnostics,r);t&&r.actions[o].apply(e,t.from,t.to)}}t.preventDefault()}},r=e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)};this.list=tT("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t,onclick:r}),this.dom=tT("div",{class:"cm-panel-lint"},this.list,tT("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>hM(this.view)},"Ã")),this.update()}get selectedIndex(){let e=this.view.state.field(hj).selected;if(!e)return -1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return -1}update(){let{diagnostics:e,selected:t}=this.view.state.field(hj),r=0,n=!1,o=null,a=new Set;for(e.between(0,this.view.state.doc.length,(e,i,{spec:s})=>{for(let e of s.diagnostics){if(a.has(e))continue;a.add(e);let i=-1,s;for(let t=r;t<this.items.length;t++)if(this.items[t].diagnostic==e){i=t;break}i<0?(s=new hL(this.view,e),this.items.splice(r,0,s),n=!0):(s=this.items[i],i>r&&(this.items.splice(r,i-r),n=!0)),t&&s.diagnostic==t.diagnostic?s.dom.hasAttribute("aria-selected")||(s.dom.setAttribute("aria-selected","true"),o=s):s.dom.hasAttribute("aria-selected")&&s.dom.removeAttribute("aria-selected"),r++}});r<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)n=!0,this.items.pop();0==this.items.length&&(this.items.push(new hL(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),n=!0),o?(this.list.setAttribute("aria-activedescendant",o.id),this.view.requestMeasure({key:this,read:()=>({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let r=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/r:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/r)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),n&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;e!=r.dom;)t();e=r.dom.nextSibling}else this.list.insertBefore(r.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=hA(this.view.state.field(hj).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:hZ.of(t)})}static open(e){return new hH(e)}}function hI(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}let hY=oD.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:hI("#f11")},".cm-lintRange-warning":{backgroundImage:hI("orange")},".cm-lintRange-info":{backgroundImage:hI("#999")},".cm-lintRange-hint":{backgroundImage:hI("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:"#86714a80"},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:"#2e343e"}}});function hG(e){let t="hint",r=1;for(let o of e){var n;let e="error"==(n=o.severity)?4:"warning"==n?3:"info"==n?2:1;e>r&&(r=e,t=o.severity)}return t}let hF=eK.define(),hK=eE.define({create:()=>null,update:(e,t)=>
3(e&&t.docChanged&&(e=hR(t,e)?null:{...e,pos:t.changes.mapPos(e.pos)}),t.effects.reduce((e,t)=>t.is(hF)?t.value:e,e)),provide:e=>ah.from(e)}),hJ=av(function(e,t,r){let{diagnostics:n}=e.state.field(hj),o,a=-1,i=-1;n.between(t-(r<0),t+ +(r>0),(e,n,{spec:s})=>{if(t>=e&&t<=n&&(e==n||(t>e||r>0)&&(t<n||r<0)))return o=s.diagnostics,a=e,i=n,!1});let s=e.state.facet(hN).tooltipFilter;return(o&&s&&(o=s(o,e.state)),o)?{pos:a,end:i,above:!0,create:()=>({dom:h_(e,o)})}:null},{hideOn:hR}),h0=[hj,oD.decorations.compute([hj],e=>{let{selected:t,panel:r}=e.field(hj);return t&&r&&t.from!=t.to?tI.set([hX.range(t.from,t.to)]):tI.none}),hJ,hY],h1=eQ.define({combine:e=>e6(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})}),h2=(({theme:e,settings:t={},styles:r=[]})=>{let n={".cm-gutters":{}},o={};t.background&&(o.backgroundColor=t.background),t.backgroundImage&&(o.backgroundImage=t.backgroundImage),t.foreground&&(o.color=t.foreground),t.fontSize&&(o.fontSize=t.fontSize),(t.background||t.foreground)&&(n["&"]=o),t.fontFamily&&(n["&.cm-editor .cm-scroller"]={fontFamily:t.fontFamily}),t.gutterBackground&&n[".cm-gutters"]&&(n[".cm-gutters"].backgroundColor=t.gutterBackground),t.gutterForeground&&n[".cm-gutters"]&&(n[".cm-gutters"].color=t.gutterForeground),t.gutterBorder&&n[".cm-gutters"]&&(n[".cm-gutters"].borderRightColor=t.gutterBorder),t.caret&&(n[".cm-content"]={caretColor:t.caret},n[".cm-cursor, .cm-dropCursor"]={borderLeftColor:t.caret});let a={};return t.gutterActiveForeground&&(a.color=t.gutterActiveForeground),t.lineHighlight&&(n[".cm-activeLine"]={backgroundColor:t.lineHighlight},a.backgroundColor=t.lineHighlight),n[".cm-activeLineGutter"]=a,t.selection&&(n["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:t.selection+" !important"}),t.selectionMatch&&(n["& .cm-selectionMatch"]={backgroundColor:t.selectionMatch}),[oD.theme(n,{dark:"dark"===e}),sD(s_.define(r))]})({theme:"light",settings:{background:"var(--scalar-background-2)",foreground:"var(--scalar-color-1)",caret:"var(--scalar-color-1)",selectionMatch:"#e3dcce",gutterBackground:"var(--scalar-background-2)",gutterForeground:"var(--scalar-color-3)",gutterBorder:"transparent",lineHighlight:"var(--scalar-background-3)",fontFamily:"var(--scalar-font-code)"},styles:[{tag:[iF.standard(iF.tagName),iF.tagName],color:"var(--scalar-color-purple)"},{tag:[iF.comment],color:"var(--scalar-color-3)"},{tag:[iF.className],color:"var(--scalar-color-orange)"},{tag:[iF.variableName,iF.propertyName,iF.attributeName],color:"var(--scalar-color-1)"},{tag:[iF.operator],color:"var(--scalar-color-2)"},{tag:[iF.keyword,iF.typeName,iF.typeOperator],color:"var(--scalar-color-green)"},{tag:[iF.string],color:"var(--scalar-color-blue)"},{tag:[iF.bracket,iF.regexp,iF.meta],color:"var(--scalar-color-3)"},{tag:[iF.number],color:"var(--scalar-color-orange)"},{tag:[iF.name,iF.quote],color:"var(--scalar-color-3)"},{tag:[iF.heading],color:"var(--scalar-color-3)",fontWeight:"bold"},{tag:[iF.emphasis],color:"var(--scalar-color-3)",fontStyle:"italic"},{tag:[iF.deleted],color:"var(--scalar-color-3)",backgroundColor:"transparent"},{tag:[iF.atom,iF.bool,iF.special(iF.variableName)],color:"var(--scalar-color-3)"},{tag:[iF.url,iF.escape,iF.regexp,iF.link],color:"var(--scalar-color-1)"},{tag:iF.link,textDecoration:"underline"},{tag:iF.strikethrough,textDecoration:"line-through"},{tag:iF.invalid,color:"var(--scalar-color-3)"}]}),h8=new o1({regexp:/(\{[^}]+\})/g,decoration:()=>tI.mark({attributes:{class:"api-client-url-variable"}})}),h5='<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m18 10-6 6-6-6" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"/></svg>',h4='<svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="m9 18 6-6-6-6" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"/></svg>';oD.EDIT_CONTEXT=!1;let h3=e=>"provider"in e&&!!(0,T.toValue)(e.provider),h6={key:"Mod-a",run:e=>(e.dispatch({selection:{anchor:0,head:e.state.doc.length},scrollIntoView:!1}),!0)},h9=e=>{let t=(0,T.ref)(null),r=(e="")=>{t.value&&t.value.state.doc.toString()!==e&&t.value.dispatch({changes:{from:0,to:t.value.state.doc.length,insert:e},selection:{anchor:Math.min(t.value.state.selection.main.anchor,e.length)}})},n=(0,$.computed)(()=>({onChange:e.onChange,onBlur:e.onBlur,onFocus:e.onFocus,disableTabIndent:(0,T.toValue)(e.disableTabIndent),language:(0,T.toValue)(e.language),classes:(0,T.toValue)(e.classes),readOnly:(0,T.toValue)(e.readOnly),lineNumbers:(0,T.toValue)(e.lineNumbers),withVariables:(0,T.toValue)(e.withVariables),forceFoldGutter:(0,T.toValue)(e.forceFoldGutter),disableEnter:(0,T.toValue)(e.disableEnter),disableCloseBrackets:(0,T.toValue)(e.disableCloseBrackets),withoutTheme:(0,T.toValue)(e.withoutTheme),lint:(0,T.toValue)(e.lint),additionalExtensions:(0,T.toValue)(e.extensions),placeholder:(0,T.toValue)(e.placeholder)}));function o(){if(e.codeMirrorRef.value){let o=h3(e)?(0,T.toValue)(e.provider):null,a=pe({...n.value,provider:o});t.value=new oD({parent:e.codeMirrorRef.value,extensions:a}),h3(e)||r((0,T.toValue)(e.content))}}return(0,$.watch)(e.codeMirrorRef,()=>{t.value?.destroy(),o()},{immediate:!0}),(0,$.onBeforeUnmount)(()=>t.value?.destroy()),(0,$.watch)(()=>h3(e)?(0,T.toValue)(e.provider):null,()=>{h3(e)&&(t.value?.destroy(),o())}),(0,$.watch)(n,()=>{if(!t.value)return;let r=h3(e)?(0,T.toValue)(e.provider):null,o=pe({...n.value,provider:r});requestAnimationFrame(()=>{t.value?.dispatch({effects:eK.reconfigure.of(o)})})},{immediate:!0}),(0,$.watch)(()=>(0,T.toValue)(e.content),()=>{h3(e)||r((0,T.toValue)(e.content))},{immediate:!0}
3),{setCodeMirrorContent:r,codeMirror:t}},h7={html:function(e={}){let t="",r;return!1===e.matchClosingTags&&(t="noMatch"),!0===e.selfClosingTags&&(t=(t?t+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(r=uY((e.nestedLanguages||[]).concat(dM),(e.nestedAttributes||[]).concat(dq))),new so(r?dN.configure({wrap:r,dialect:t}):t?dD.configure({dialect:t}):dD,[dD.data.of({autocomplete:function(e){let{extraTags:t,extraGlobalAttributes:r}=e,n=r||t?new dB(t,r):dB.default;return e=>(function(e,t){let{state:r,pos:n}=t,o=i5(r).resolveInner(n,-1),a=o.resolve(n);for(let e=n,t;a==o&&(t=o.childBefore(e));){let r=t.lastChild;if(!r||!r.type.isError||r.from<r.to)break;a=o=t,e=r.from}if("TagName"==o.name)return o.parent&&/CloseTag$/.test(o.parent.name)?dX(r,o,o.from,n):dj(r,e,o,o.from,n);if("StartTag"==o.name||"IncompleteTag"==o.name)return dj(r,e,o,n,n);if("StartCloseTag"==o.name||"IncompleteCloseTag"==o.name)return dX(r,o,n,n);if("OpenTag"==o.name||"SelfClosingTag"==o.name||"AttributeName"==o.name){var i,s;let t,a,l;return i=o,s="AttributeName"==o.name?o.from:n,l=(a=(t=dR(i))?e.tags[dA(r.doc,t)]:null)&&a.attrs?Object.keys(a.attrs):[],{from:s,to:n,options:(a&&!1===a.globalAttrs?l:l.length?l.concat(e.globalAttrNames):e.globalAttrNames).map(e=>({label:e,type:"property"})),validFor:dZ}}{if("Is"==o.name||"AttributeValue"==o.name||"UnquotedAttributeValue"==o.name)return function(e,t,r,n,o){var a;let i=null==(a=r.parent)?void 0:a.getChild("AttributeName"),s=[],l;if(i){let a=e.sliceDoc(i.from,i.to),c=t.globalAttrs[a];if(!c){let n=dR(r),o=n?t.tags[dA(e.doc,n)]:null;c=(null==o?void 0:o.attrs)&&o.attrs[a]}if(c){let t=e.sliceDoc(n,o).toLowerCase(),r='"',a='"';for(let i of(/^['"]/.test(t)?(l='"'==t[0]?/^[^"]*$/:/^[^']*$/,r="",a=e.sliceDoc(o,o+1)==t[0]?"":t[0],t=t.slice(1),n++):l=/^[^\s<>='"]*$/,c))s.push({label:i,apply:r+i+a,type:"constant"})}}return{from:n,to:o,options:s,validFor:l}}(r,e,o,"Is"==o.name?n:o.from,n);if(!t.explicit||"Element"!=a.name&&"Text"!=a.name&&"Document"!=a.name)return null;var l=o;let i=[],s=0;for(let t of dE(r.doc,l,e))i.push({label:"<"+t,type:"type"});for(let e of dV(r.doc,l))i.push({label:"</"+e+">",type:"type",boost:99-s++});return{from:n,to:n,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}})(n,e)}(e)}),!1!==e.autoCloseTags?dz:[],function(e={}){var t;let r=e.jsx?e.typescript?df:dp:e.typescript?dh:du,n=e.typescript?de.concat(dg):u7.concat(dO);return new so(r,[du.data.of({autocomplete:(t=lr(n),e=>{for(let t=i5(e.state).resolveInner(e.pos,-1);t;t=t.parent){if(dl.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(e)})}),du.data.of({autocomplete:dc}),e.jsx?db:[]])}().support,uw().support])},json:function(){return new so(dH)},yaml:function(){return new so(hC)},css:uw,xml:function(e={}){let t=[ho.data.of({autocomplete:function(e,t){let r=[],n=[],o=Object.create(null);for(let e of t){let t=hr(e);r.push(t),e.global&&n.push(t),e.values&&(o[e.name]=e.values.map(hn))}let a=[],i=[],s=Object.create(null);for(let t of e){let e=n,l=o;t.attributes&&(e=e.concat(t.attributes.map(e=>"string"==typeof e?r.find(t=>t.label==e)||{label:e,type:"property"}:(e.values&&(l==o&&(l=Object.create(l)),l[e.name]=e.values.map(hn)),hr(e)))));let c=new he(t,e,l);s[c.name]=c,a.push(c),t.top&&i.push(c)}i.length||(i=a);for(let t=0;t<a.length;t++){let r=e[t],n=a[t];if(r.children)for(let e of r.children)s[e]&&n.children.push(s[e]);else n.children=a}return e=>{var t;let{doc:r}=e.state,l=function(e,t){var r;let n=i5(e).resolveInner(t,-1),o=null;for(let e=n;!o&&e.parent;e=e.parent)("OpenTag"==e.name||"CloseTag"==e.name||"SelfClosingTag"==e.name||"MismatchedCloseTag"==e.name)&&(o=e);if(o&&(o.to>t||o.lastChild.type.isError)){let e=o.parent;if("TagName"==n.name)return"CloseTag"==o.name||"MismatchedCloseTag"==o.name?{type:"closeTag",from:n.from,context:e}:{type:"openTag",from:n.from,context:d7(e)};if("AttributeName"==n.name)return{type:"attrName",from:n.from,context:o};if("AttributeValue"==n.name)return{type:"attrValue",from:n.from,context:o};let r=n==o||"Attribute"==n.name?n.childBefore(t):n;return(null==r?void 0:r.name)=="StartTag"?{type:"openTag",from:t,context:d7(e)}:(null==r?void 0:r.name)=="StartCloseTag"&&r.to<=t?{type:"closeTag",from:t,context:e}:(null==r?void 0:r.name)=="Is"?{type:"attrValue",from:t,context:o}:r?{type:"attrName",from:t,context:o}:null}if("StartCloseTag"==n.name)return{type:"closeTag",from:t,context:n.parent};for(;n.parent&&n.to==t&&!(null==(r=n.lastChild)?void 0:r.type.isError);)n=n.parent;return"Element"==n.name||"Text"==n.name||"Document"==n.name?{type:"tag",from:t,context:"Element"==n.name?n:d7(n)}:null}(e.state,e.pos);if(!l||"tag"==l.type&&!e.explicit)return null;let{type:c,from:u,context:d}=l;if("openTag"==c){let e=i,t=d9(r,d);if(t){let r=s[t];e=(null==r?void 0:r.children)||a}return{from:u,options:e.map(e=>e.completion),validFor:ht}}if("closeTag"==c){let n=d9(r,d);return n?{from:u,to:e.pos+ +(">"==r.sliceString(e.pos,e.pos+1)),options:[(null==(t=s[n])?void 0:t.closeNameCompletion)||{label:n+">",type:"type"}],validFor:ht}:null}if("attrName"==c){let e=s[d6(r,d)];return{from:u,options:(null==e?void 0:e.attrs)||n,validFor:ht}}if("attrValue"==c){let t,n,a=(n=(t=d&&d.getChildren("Attribute").find(e=>e.from<=u&&e.to>=u))&&t.getChild("AttributeName"))?r.sliceString(n.from,n.to):"";if(!a)return null;let i=s[d6(r,d)],l=((null==i?void 0:i.attrValues)||o)[a];return l&&l.length?{from:u,to:e.pos+ +('"'==r.sliceString(e.pos,e.pos+1)),options:l,validFor:/^"[^"]*"?$/}:null}{if("tag"!=c)return null;let t=d9(r,d),n=s[t],o=[],l=d&&d.lastChild;t&&(!l||"CloseTag"!=l.name||d6(r,l)!=t)&&o.push(n?n.closeCompletion:{label:"</"+t+">",type:"type",boost:2});let h=o.concat(((null==n?void 0:n.children)||(d?a:i)).map(e=>e.openCompletion));if(d&&(null==n?void 0:n.text.length)){let t=d.firstChild;t.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(t.to,e.pos))&&(h=h.concat(n.text))}
3return{from:u,options:h,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}}}(e.elements||[],e.attributes||[])})];return!1!==e.autoCloseTags&&t.push(hi),new so(ho,t)}};function pe({onChange:e,onBlur:t,onFocus:r,provider:n,language:o,classes:a=[],readOnly:i=!1,lineNumbers:s=!1,withVariables:l=!1,forceFoldGutter:c=!1,disableEnter:u=!1,disableCloseBrackets:d=!1,disableTabIndent:h=!1,withoutTheme:p=!1,lint:f=!1,additionalExtensions:m=[],placeholder:O}){let g=[o6(),function(e={}){return[cf,cp.of(e),oD.domEventHandlers({beforeinput(e,t){let r="historyUndo"==e.inputType?cO:"historyRedo"==e.inputType?cg:null;return!!r&&(e.preventDefault(),r(t))}})]}(),oG.of(cC),sD(sz,{fallback:!0}),oD.theme({".cm-line":{lineHeight:"22px",padding:"0 2px 0 4px"},".cm-gutterElement":{lineHeight:"22px"},".cm-foldGutter .cm-gutterElement":{display:"flex",alignItems:"center",paddingLeft:"4px"},".cm-foldMarker":{display:"flex",alignItems:"center",justifyContent:"center",height:"22px",color:"var(--scalar-color-3)",cursor:"pointer"},".cm-foldMarker:hover":{color:"var(--scalar-color-1)"},".cm-foldMarker svg":{width:"16px",height:"16px"},".cm-tooltip":{background:"var(--scalar-background-1)",border:"1px solid var(--scalar-border-color)",borderRadius:"var(--scalar-radius)",boxShadow:"var(--scalar-shadow-2)",fontSize:"12px",overflow:"hidden"},".cm-tooltip-autocomplete ul":{padding:"6px"},".cm-tooltip-autocomplete ul li":{padding:"3px 6px",color:"var(--scalar-color-1)",borderRadius:"3px"},".cm-tooltip-autocomplete ul li[aria-selected]":{background:"var(--scalar-background-2)",color:"var(--scalar-color-1)"},".cm-tooltip-autocomplete ul li:hover":{background:"var(--scalar-background-3)",color:"var(--scalar-color-1)"},".cm-completionLabel":{color:"var(--scalar-color-1)"},".cm-completionDetail":{color:"var(--scalar-color-3)"},".cm-tooltip-lint":{backgroundColor:"var(--scalar-background-1)"},".cm-diagnostic-error":{borderLeft:"0",color:"#dc1b19"},".cm-foldPlaceholder":{background:"var(--scalar-background-1)",border:"none",fontFamily:"var(--scalar-font)"}}),oD.updateListener.of(t=>{t.docChanged&&e?.(t.state.doc.toString())}),oD.domEventHandlers({blur:(e,r)=>{t?.(r.state.doc.toString(),e)},focus:(e,t)=>{r?.(t.state.doc.toString(),e)}}),oD.editorAttributes.of({class:a.join(" ")}),...m];if(n&&g.push(n),p||g.push(h2),i?g.push(oD.editable.of(!1)):(g.push(e3.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let r=e.newDoc,{head:n}=e.newSelection.main,o=r.lineAt(n);if(n>o.from+200)return e;let a=r.sliceString(o.from,n);if(!t.some(e=>e.test(a)))return e;let{state:i}=e,s=-1,l=[];for(let{head:e}of i.selection.ranges){let t=i.doc.lineAt(e);if(t.from==s)continue;s=t.from;let r=sc(i,t.from);if(null==r)continue;let n=/^\s*/.exec(t.text)[0],o=sl(i,r);n!=o&&l.push({from:t.from,to:t.from+n.length,insert:o})}return l.length?[e,{changes:l,sequential:!0}]:e}),sJ(),function(e={}){return[l_,lB,lp.of(e),lj,cs,lM]}(),oG.of([...ci,h6]),sJ()),d||g.push([ce,l4],oG.of([...ct])),h?g.push(oG.of([{key:"Tab",run:()=>!1,shift:()=>!1}])):g.push(oG.of([cA]))),O&&g.push(ar(O)),s&&g.push(aL()),c&&g.push(sj({markerDOM:e=>{let t=document.createElement("div");return t.classList.add("cm-foldMarker"),t.innerHTML=e?h5:h4,t}})),o&&h7[o]&&(g.push(h7[o]()),c||g.push(sj({markerDOM:e=>{let t=document.createElement("div");return t.classList.add("cm-foldMarker"),t.innerHTML=e?h5:h4,t}}))),f&&"json"===o){let e=function(e,t={}){return[hN.of({source:e,config:t}),hq,h0]}(e=>{let t=[],r=e.state.doc.toString();if(r.trim())try{JSON.parse(r)}catch(r){r instanceof Error&&t.push({from:0,to:e.state.doc.length,severity:"error",message:r.message})}return t});g.push(e)}return l&&g.push(rH.fromClass(class{variables;constructor(e){this.variables=h8.createDeco(e)}update(e){this.variables=h8.updateDeco(e,this.variables)}},{decorations:e=>e.variables,provide:e=>oD.atomicRanges.of(t=>t.plugin(e)?.variables||tI.none)})),u?g.push(oG.of([{key:"Enter",run:()=>!0},{key:"Ctrl-Enter",mac:"Cmd-Enter",run:()=>!0},{key:"Shift-Enter",run:()=>!0}])):g.push(oG.of([{key:"Enter",run:cT}])),g}e.s(["useCodeMirror",0,h9],329808),e.s([],868255);var pt=e.i(789893),pr=e.i(952337),pn=class e extends tL{variableName;translate;app;pillColor;variableInfo;constructor(e,t,r,n){if(super(),this.variableName=e,this.translate=n,"contextFunction"===r){this.pillColor="var(--scalar-color-3)",this.variableInfo={type:"contextFunction",identifier:e,details:(0,pt.getContextFunctionComment)(e)};return}this.pillColor=t?.color||"var(--scalar-color-1)";const o=t?.variables?.find(t=>t.name===e),a=o?"string"==typeof o.value?o.value:o.value?.default:void 0;this.variableInfo={type:"environment",name:e,value:a||"No value",isDefined:!!a}}toDOM(){let e=document.createElement("span");
3return e.className="contextFunction"===this.variableInfo.type?"cm-pill cm-pill--context-fn":"cm-pill",e.textContent=this.variableName,e.style.setProperty("--tw-bg-base",this.pillColor),"environment"===this.variableInfo.type&&(e.style.opacity=this.variableInfo.isDefined?"1":"0.5"),this.app=(0,B.createApp)(z.default,{context:this.variableInfo,target:e,translate:this.translate}),this.app.mount(document.createElement("div")),e}destroy(){this.app&&(this.app.unmount(),this.app=null)}eq(t){if(!(t instanceof e)||t.variableName!==this.variableName||t.pillColor!==this.pillColor||t.variableInfo.type!==this.variableInfo.type)return!1;let r=t.variableInfo,n=this.variableInfo;return r.type===n.type&&("environment"===r.type&&"environment"===n.type?r.name===n.name&&r.value===n.value&&r.isDefined===n.isDefined:"contextFunction"===r.type&&"contextFunction"===n.type&&r.identifier===n.identifier&&r.details===n.details)}ignoreEvent(){return!1}},po=oD.domEventHandlers({keydown(e,t){if("Backspace"!==e.key)return!1;let{state:r}=t,{from:n,to:o}=r.selection.main;return 0===n&&o===r.doc.length?(t.dispatch({changes:{from:0,to:r.doc.length},selection:{anchor:0}}),e.preventDefault(),!0):n===o&&n>=2&&"}}"===r.doc.sliceString(n-2,n)&&(t.dispatch({changes:{from:n-2,to:n},selection:{anchor:n-2}}),e.preventDefault(),!0)}}),pa=e.i(95952),pi={key:0},ps={key:1},pl={key:2},pc={key:3},pu={key:4},pd={key:5},ph=(0,$.defineComponent)({name:"ScalarIconArrowElbowDownLeft",props:{label:{},weight:{}},setup(e){let{bind:t,weight:r}=(0,pa.useScalarIcon)(e);return(e,n)=>((0,$.openBlock)(),(0,$.createElementBlock)("svg",(0,$.mergeProps)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},(0,T.unref)(t)),[(0,$.renderSlot)(e.$slots,"default"),"bold"===(0,T.unref)(r)?((0,$.openBlock)(),(0,$.createElementBlock)("g",pi,[...n[0]||(n[0]=[(0,$.createElementVNode)("path",{d:"M204,32V176a12,12,0,0,1-12,12H77l27.52,27.51a12,12,0,0,1-17,17l-48-48a12,12,0,0,1,0-17l48-48a12,12,0,1,1,17,17L77,164H180V32a12,12,0,0,1,24,0Z"},null,-1)])])):"duotone"===(0,T.unref)(r)?((0,$.openBlock)(),(0,$.createElementBlock)("g",ps,[...n[1]||(n[1]=[(0,$.createElementVNode)("path",{d:"M96,128v96L48,176Z",opacity:"0.2"},null,-1),(0,$.createElementVNode)("path",{d:"M192,24a8,8,0,0,0-8,8V168H104V128a8,8,0,0,0-13.66-5.66l-48,48a8,8,0,0,0,0,11.32l48,48A8,8,0,0,0,104,224V184h88a8,8,0,0,0,8-8V32A8,8,0,0,0,192,24ZM88,204.69,59.31,176,88,147.31Z"},null,-1)])])):"fill"===(0,T.unref)(r)?((0,$.openBlock)(),(0,$.createElementBlock)("g",pl,[...n[2]||(n[2]=[(0,$.createElementVNode)("path",{d:"M200,32V176a8,8,0,0,1-8,8H104v40a8,8,0,0,1-13.66,5.66l-48-48a8,8,0,0,1,0-11.32l48-48A8,8,0,0,1,104,128v40h80V32a8,8,0,0,1,16,0Z"},null,-1)])])):"light"===(0,T.unref)(r)?((0,$.openBlock)(),(0,$.createElementBlock)("g",pc,[...n[3]||(n[3]=[(0,$.createElementVNode)("path",{d:"M198,32V176a6,6,0,0,1-6,6H62.49l37.75,37.76a6,6,0,1,1-8.48,8.48l-48-48a6,6,0,0,1,0-8.48l48-48a6,6,0,1,1,8.48,8.48L62.49,170H186V32a6,6,0,0,1,12,0Z"},null,-1)])])):"regular"===(0,T.unref)(r)?((0,$.openBlock)(),(0,$.createElementBlock)("g",pu,[...n[4]||(n[4]=[(0,$.createElementVNode)("path",{d:"M200,32V176a8,8,0,0,1-8,8H67.31l34.35,34.34a8,8,0,0,1-11.32,11.32l-48-48a8,8,0,0,1,0-11.32l48-48a8,8,0,0,1,11.32,11.32L67.31,168H184V32a8,8,0,0,1,16,0Z"},null,-1)])])):"thin"===(0,T.unref)(r)?((0,$.openBlock)(),(0,$.createElementBlock)("g",pd,[...n[5]||(n[5]=[(0,$.createElementVNode)("path",{d:"M196,32V176a4,4,0,0,1-4,4H57.66l41.17,41.17a4,4,0,0,1-5.66,5.66l-48-48a4,4,0,0,1,0-5.66l48-48a4,4,0,1,1,5.66,5.66L57.66,172H188V32a4,4,0,0,1,8,0Z"},null,-1)])])):(0,$.createCommentVNode)("",!0)],16))}});e.s(["ScalarIconArrowElbowDownLeft",0,ph],511735),e.i(530580);var pp=e.i(179935);let pf=new Map([["aliceblue","#f0f8ff"],["antiquewhite","#faebd7"],["aqua","#00ffff"],["aquamarine","#7fffd4"],["azure","#f0ffff"],["beige","#f5f5dc"],["bisque","#ffe4c4"],["black","#000000"],["blanchedalmond","#ffebcd"],["blue","#0000ff"],["blueviolet","#8a2be2"],["brown","#a52a2a"],["burlywood","#deb887"],["cadetblue","#5f9ea0"],["chartreuse","#7fff00"],["chocolate","#d2691e"],["coral","#ff7f50"],["cornflowerblue","#6495ed"],["cornsilk","#fff8dc"],["crimson","#dc143c"],["cyan","#00ffff"],["darkblue","#00008b"],["darkcyan","#008b8b"],["darkgoldenrod","#b8860b"],["darkgray","#a9a9a9"],["darkgreen","#006400"],["darkgrey","#a9a9a9"],["darkkhaki","#bdb76b"],["darkmagenta","#8b008b"],["darkolivegreen","#556b2f"],["darkorange","#ff8c00"],["darkorchid","#9932cc"],["darkred","#8b0000"],["darksalmon","#e9967a"],["darkseagreen","#8fbc8f"],["darkslateblue","#483d8b"],["darkslategray","#2f4f4f"],["darkslategrey","#2f4f4f"],["darkturquoise","#00ced1"],["darkviolet","#9400d3"],["deeppink","#ff1493"],["deepskyblue","#00bfff"],["dimgray","#696969"],["dimgrey","#696969"],["dodgerblue","#1e90ff"],["firebrick","#b22222"],["floralwhite","#fffaf0"],["forestgreen","#228b22"],["fuchsia","#ff00ff"],["gainsboro","#dcdcdc"],["ghostwhite","#f8f8ff"],["goldenrod","#daa520"],["gold","#ffd700"],["gray","#808080"],["green","#008000"],["greenyellow","#adff2f"],["grey","#808080"],["honeydew","#f0fff0"],["hotpink","#ff69b4"],["indianred","#cd5c5c"],["
3indigo","#4b0082"],["ivory","#fffff0"],["khaki","#f0e68c"],["lavenderblush","#fff0f5"],["lavender","#e6e6fa"],["lawngreen","#7cfc00"],["lemonchiffon","#fffacd"],["lightblue","#add8e6"],["lightcoral","#f08080"],["lightcyan","#e0ffff"],["lightgoldenrodyellow","#fafad2"],["lightgray","#d3d3d3"],["lightgreen","#90ee90"],["lightgrey","#d3d3d3"],["lightpink","#ffb6c1"],["lightsalmon","#ffa07a"],["lightseagreen","#20b2aa"],["lightskyblue","#87cefa"],["lightslategray","#778899"],["lightslategrey","#778899"],["lightsteelblue","#b0c4de"],["lightyellow","#ffffe0"],["lime","#00ff00"],["limegreen","#32cd32"],["linen","#faf0e6"],["magenta","#ff00ff"],["maroon","#800000"],["mediumaquamarine","#66cdaa"],["mediumblue","#0000cd"],["mediumorchid","#ba55d3"],["mediumpurple","#9370db"],["mediumseagreen","#3cb371"],["mediumslateblue","#7b68ee"],["mediumspringgreen","#00fa9a"],["mediumturquoise","#48d1cc"],["mediumvioletred","#c71585"],["midnightblue","#191970"],["mintcream","#f5fffa"],["mistyrose","#ffe4e1"],["moccasin","#ffe4b5"],["navajowhite","#ffdead"],["navy","#000080"],["oldlace","#fdf5e6"],["olive","#808000"],["olivedrab","#6b8e23"],["orange","#ffa500"],["orangered","#ff4500"],["orchid","#da70d6"],["palegoldenrod","#eee8aa"],["palegreen","#98fb98"],["paleturquoise","#afeeee"],["palevioletred","#db7093"],["papayawhip","#ffefd5"],["peachpuff","#ffdab9"],["peru","#cd853f"],["pink","#ffc0cb"],["plum","#dda0dd"],["powderblue","#b0e0e6"],["purple","#800080"],["rebeccapurple","#663399"],["red","#ff0000"],["rosybrown","#bc8f8f"],["royalblue","#4169e1"],["saddlebrown","#8b4513"],["salmon","#fa8072"],["sandybrown","#f4a460"],["seagreen","#2e8b57"],["seashell","#fff5ee"],["sienna","#a0522d"],["silver","#c0c0c0"],["skyblue","#87ceeb"],["slateblue","#6a5acd"],["slategray","#708090"],["slategrey","#708090"],["snow","#fffafa"],["springgreen","#00ff7f"],["steelblue","#4682b4"],["tan","#d2b48c"],["teal","#008080"],["thistle","#d8bfd8"],["tomato","#ff6347"],["turquoise","#40e0d0"],["violet","#ee82ee"],["wheat","#f5deb3"],["white","#ffffff"],["whitesmoke","#f5f5f5"],["yellow","#ffff00"],["yellowgreen","#9acd32"]]);var pm=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let pO=new WeakMap;var pg=((p=pg||(pg={})).rgb="RGB",p.hex="HEX",p.named="NAMED",p.hsl="HSL",p);let pv=/rgb(?:a)?\(\s*(\d{1,3}%?)\s*,?\s*(\d{1,3}%?)\s*,?\s*(\d{1,3}%?)\s*([,/]\s*0?\.?\d+%?)?\)/,py=/hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*(,\s*0?\.\d+)?\)/,pb=/(^|\b)(#[0-9a-f]{3,9})(\b|$)/i;function pS(e,t){let r=[],n=i5(e.state);for(let o of e.visibleRanges)n.iterate({from:o.from,to:o.to,enter:({type:o,from:a,to:i})=>{var s;let l=t(n,a,i,o.name,e.state.doc,null==(s=e.state.facet(sn))?void 0:s.name);if(l){if(!Array.isArray(l))return void r.push(tI.widget({widget:new pC(l),side:1}).range(l.from));for(let e of l)r.push(tI.widget({widget:new pC(e),side:1}).range(e.from))}}});return tI.set(r)}function px(e){return pk(e.endsWith("%")?Math.round(Number(e.slice(0,-1))/100*255):Number(e))}function pk(e){let t=e.toString(16);return 1===t.length?"0"+t:t}function pw(e){let t=e.slice(1,3),r=e.slice(3,5),n=e.slice(5,7);return[parseInt(t,16),parseInt(r,16),parseInt(n,16)]}function p$(e){return e<0?e+1:e>1?e-1:e}function pP(e,t,r){return 6*r<1?t+(e-t)*6*r:2*r<1?e:3*r<2?t+(e-t)*(.666-r)*6:t}let pQ="cm-css-color-picker-wrapper";class pC extends tL{constructor(e){var{color:t}=e,r=pm(e,["color"]);super(),this.state=r,this.color=t}eq(e){return e.state.colorType===this.state.colorType&&e.color===this.color&&e.state.from===this.state.from&&e.state.to===this.state.to&&e.state.alpha===this.state.alpha}toDOM(){let e=document.createElement("input");pO.set(e,this.state),e.type="color",e.value=this.color;let t=document.createElement("span");return t.appendChild(e),t.className=pQ,t}ignoreEvent(){return!1}}let pT=oD.baseTheme({[`.${pQ}`]:{display:"inline-block",outline:"1px solid #eee",marginRight:"0.6c
3h",height:"1em",width:"1em",transform:"translateY(1px)"},[`.${pQ} input[type="color"]`]:{cursor:"pointer",height:"100%",width:"100%",padding:0,border:"none","&::-webkit-color-swatch-wrapper":{padding:0},"&::-webkit-color-swatch":{border:"none"},"&::-moz-color-swatch":{border:"none"}}}),pB=[(o={discoverColors:function e(t,r,n,o,a,i){var s,l;switch(o){case"AttributeValue":{let n=t.resolveInner(r,0).tree;if(!n)return null;let o=null==(s=n.prop(aG.mounted))?void 0:s.tree;if((null==o?void 0:o.type.name)!=="Styles")return null;let i=[];return o.iterate({from:0,to:o.length,enter:({type:n,from:o,to:s})=>{let l=e(t,r+1+o,r+1+s,n.name,a);if(l){if(Array.isArray(l))throw Error("Unexpected nested overlays");i.push(l)}}}),i}case"CallExpression":{let e=function(e){switch(e.slice(0,3)){case"rgb":{var t,r,n;let o=pv.exec(e);if(!o)return null;let[a,i,s,l,c]=o,u=(t=i,r=s,n=l,`#${px(t)}${px(r)}${px(n)}`);return{colorType:pg.rgb,color:u,alpha:c||""}}case"hsl":{let t=py.exec(e);if(!t)return null;let[r,n,o,a,i]=t,s=function(e,t,r){let n=Number(t)/100,o=Number(r)/100,[a,i,s]=function(e,t,r){let n;if(0===t){let e=Math.round(255*r);return[e,e,e]}n=r<.5?r*(1+t):r+t-r*t;let o=2*r-n,a=p$((e/=360)+.333),i=e,s=p$(e-.333);return[Math.round(255*pP(n,o,a)),Math.round(255*pP(n,o,i)),Math.round(255*pP(n,o,s))]}(Number(e),n,o);return`#${pk(a)}${pk(i)}${pk(s)}`}(n,o,a);return{colorType:pg.hsl,color:s,alpha:i||""}}default:return null}}(a.sliceString(r,n));if(!e)return null;return Object.assign(Object.assign({},e),{from:r,to:n})}case"ColorLiteral":{let e=function(e){var t;if(!pb.exec(e))return null;let[r,n]=4===(t=e).length?[`#${t[1].repeat(2)}${t[2].repeat(2)}${t[3].repeat(2)}`,""]:5===t.length?[`#${t[1].repeat(2)}${t[2].repeat(2)}${t[3].repeat(2)}`,t[4].repeat(2)]:9===t.length?[`#${t.slice(1,-2)}`,t.slice(-2)]:[t,""];return{colorType:pg.hex,color:r,alpha:n}}(a.sliceString(r,n));if(!e)return null;return Object.assign(Object.assign({},e),{from:r,to:n})}case"ValueName":{let e,t=(l=a.sliceString(r,n),(e=pf.get(l))?{colorType:pg.named,color:e,alpha:""}:null);if(!t)return null;return Object.assign(Object.assign({},t),{from:r,to:n})}default:return null}}},rH.fromClass(class{constructor(e){this.decorations=pS(e,o.discoverColors)}update(e){(e.docChanged||e.viewportChanged)&&(this.decorations=pS(e.view,o.discoverColors))}},{decorations:e=>e.decorations,eventHandlers:{change:(e,t)=>
3{let r=e.target;if("INPUT"!==r.nodeName||!r.parentElement||!r.parentElement.classList.contains(pQ))return!1;let n=pO.get(r),o=r.value+n.alpha;if(n.colorType===pg.rgb)o=`rgb(${pw(r.value).join(", ")}${n.alpha})`;else if(n.colorType===pg.named)for(let[e,t]of pf.entries())t===r.value&&(o=e);else if(n.colorType===pg.hsl){let[e,t,a]=pw(r.value),[i,s,l]=function(e,t,r){let n,o,a=e/255,i=t/255,s=r/255,l=Math.min(a,i,s),c=Math.max(a,i,s),u=(c+l)/2;if(c===l)return[0,0,u];for(n=u<=.5?(c-l)/(c+l):(c-l)/(2-c-l),o=Math.round(60*(o=c===a?(i-s)/(c-l):i===c?2+(s-a)/(c-l):4+(a-i)/(c-l)));o<0;)o+=360;return[o,n,u]}(e,t,a);o=`hsl(${i}, ${Math.round(100*s)}%, ${Math.round(100*l)}%${n.alpha})`}return t.dispatch({changes:{from:n.from,to:n.to,insert:o}}),!0}}})),pT];var pA=e.i(618991),pR={class:"whitespace-nowrap"},pE=["id"],pV={key:0,class:"absolute top-2 right-2 z-10 flex items-center opacity-0 transition-opacity duration-150 group-hover/input:opacity-100 group-has-focus-visible/input:opacity-100"},pZ={key:1,class:"z-context text-c-2 absolute right-1.5 bottom-1 hidden font-sans group-has-[:focus-visible]/input:block",role:"alert"},pj={key:5,class:"centered-y text-orange absolute right-7 text-xs"},pX={key:6,class:"centered-y absolute right-0 flex h-full items-center p-1.5 group-has-[.cm-focused]:z-1"},p_={key:7,class:"required centered-y text-xxs text-c-3 group-[.error]:text-red bg-b-1 pointer-events-none absolute right-0 mr-0.5 pt-px pr-2 opacity-100 shadow-[-8px_0_4px_var(--scalar-background-1)] transition-opacity duration-150 group-[.alert]:bg-transparent group-[.alert]:shadow-none group-[.error]:bg-transparent group-[.error]:shadow-none peer-has-[.cm-focused]:opacity-0"},pM=(0,$.defineComponent)({inheritAttrs:!1,__name:"CodeInput",props:{modelValue:{type:[String,Number,Boolean,Array,Object]},environment:{},type:{},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},layout:{default:"desktop"},enum:{},examples:{},default:{type:[String,Number,Boolean,Array,Object]},nullable:{type:Boolean,default:!1},placeholder:{},required:{type:Boolean},colorPicker:{type:Boolean,default:!1},lineNumbers:{type:Boolean,default:!1},lint:{type:Boolean,default:!1},lineWrapping:{type:Boolean,default:!1},language:{},extensions:{default:()=>[]},disableTabIndent:{type:Boolean,default:!1},disableEnter:{type:Boolean,default:!1},disableCloseBrackets:{type:Boolean,default:!1},emitOnBlur:{type:Boolean,default:!0},withVariables:{type:Boolean,default:!0},withFakeData:{type:Boolean,default:!1},alwaysEmitChange:{type:Boolean,default:!1},handleFieldChange:{type:Function},handleFieldSubmit:{type:Function},linethrough:{type:Boolean}},emits:["update:modelValue","submit","navigate","blur"],setup(e,{expose:t,emit:r}){let{translate:n}=(0,w.useLocalization)(),o=(0,$.useAttrs)(),a="string"==typeof o.id&&o.id||`id-${(0,pA.nanoid)()}`,i=(0,T.ref)(!1),s=(0,$.computed)(()=>!e.enum?.length&&("boolean"===e.type||Array.isArray(e.type)&&e.type.includes("boolean"))),l=(0,$.computed)(()=>e.nullable?["true","false","null"]:["true","false"]),c=(0,$.computed)(()=>Array.isArray(e.type)?e.type.find(e=>"null"!==e)??"string":e.type),u=t=>{(e.alwaysEmitChange||t!==x(e.modelValue))&&(e.handleFieldChange?e.handleFieldChange(t):r("update:modelValue",t))},d=(t,n)=>{e.handleFieldSubmit?e.handleFieldSubmit(t):r("submit",t,n)},h=(t,n)=>{i.value=!1,e.emitOnBlur&&e.modelValue&&d(t,n),r("blur",t,n)},p=e=>r("update:modelValue",e),f=(0,$.computed)(()=>e.withFakeData?pt.CONTEXT_FUNCTION_NAMES.map(e=>({key:e,description:(0,pt.getContextFunctionComment)(e)})):[]),m=(0,$.computed)(()=>{let t;return t={environment:e.environment,isContextFunctionName:pt.isContextFunctionName,isReadOnly:"modal"===e.layout,translate:n},rH.fromClass(class{decorations;lastEnvironment;constructor(e){this.lastEnvironment=t.environment,this.decorations=this.buildDecorations(e)}update(e){if(t.environment!==this.lastEnvironment){this.lastEnvironment=t.environment,this.decorations=this.buildDecorations(e.view);return}(e.docChanged||e.viewportChanged)&&(this.decorations=this.buildDecorations(e.view))}buildDecorations(e){let r=new ta,n=t.isContextFunctionName??(()=>!1);for(let{from:o,to:a}of e.visibleRanges){let i,s=e.state.doc.sliceString(o,a),l=new RegExp(pr.REGEX.VARIABLES.source,pr.REGEX.VARIABLES.flags);for(;null!==(i=l.exec(s));){let a=o+i.index,s=a+i[0].length,l=i[1]??"";if(e.state.doc.sliceString(a,s).includes("\n"))continue;let c=n(l)?"contextFunction":"environment";r.add(a,s,tI.widget({widget:new pn(l,t.environment,c,t.translate),side:1}))}}return r.finish()}},{decorations:e=>e.decorations})}),O=(0,T.ref)(e.lineWrapping);(0,$.watch)(()=>e.lineWrapping,e=>{O.value=e});let v=()=>{O.value=!O.value},y=(0,$.computed)(()=>O.value?[oD.lineWrapping]:[]),b=(0,$.computed)(()=>{let t;return[...(t=[...e.extensions],e.colorPicker&&t.push(pB),t),...y.value,m.value,po]}),S=(0,T.ref)(null),x=e=>"string"==typeof e?e:JSON.stringify(e),{codeMirror:k,setCodeMirrorC
3ontent:Q}=h9({content:(0,T.toRef)(()=>x(e.modelValue)),onChange:e=>{u(e),Z()},onFocus:()=>{i.value=!0},onBlur:h,codeMirrorRef:S,disableTabIndent:(0,T.toRef)(()=>e.disableTabIndent),disableEnter:(0,T.toRef)(()=>e.disableEnter),disableCloseBrackets:(0,T.toRef)(()=>e.disableCloseBrackets),lineNumbers:(0,T.toRef)(()=>e.lineNumbers),language:(0,T.toRef)(()=>e.language),lint:(0,T.toRef)(()=>e.lint),extensions:b,placeholder:(0,T.toRef)(()=>e.placeholder)});(0,$.watch)(k,()=>{k.value&&Object.hasOwn(o,"autofocus")&&k.value.focus()});let C=(0,T.ref)(!1),A=(0,T.ref)(""),R=(0,T.ref)({left:0,top:0}),E=(0,T.ref)(null),{handleDropdownSelect:V,updateDropdownVisibility:Z}=function(e){let{codeMirror:t,query:r,showDropdown:n,dropdownPosition:o}=e;function a(){return t.value?.state.selection.main.head||0}function i(e){return t.value?.coordsAtPos(e)}function s(){let e=a();requestAnimationFrame(()=>{let t=i(e-r.value.length-2);t&&(o.value={left:t.left,top:Math.max(t.bottom)})})}function l(){let e=a(),l=t.value?.state.doc.sliceString(0,e)||"",c=l.lastIndexOf("{{");c>l.lastIndexOf("}}")?(r.value=l.slice(c+2),n.value=!0,o.value=i(e)||{left:0,top:0},""===r.value&&s()):n.value=!1}return(0,$.watch)(r,s),(0,$.watch)(()=>t.value?.state.doc.toString(),l),{handleDropdownSelect:function(e){let o=`{{${e}}}`,i=a(),s=Math.max(0,i-r.value.length-2);t.value?.dispatch({changes:{from:s,to:i,insert:o}}),n.value=!1},updateDropdownVisibility:l}}({codeMirror:k,query:A,showDropdown:C,dropdownPosition:R}),j=(0,$.computed)(()=>C.value&&e.withVariables&&"modal"!==e.layout&&(!!e.environment||e.withFakeData)),X=(t,r)=>{C.value?"down"===t||"up"===t?(r.preventDefault(),E.value?.handleArrowKey(t)):"enter"===t&&(r.preventDefault(),E.value?.handleSelect()):("escape"!==t||e.disableTabIndent||r.stopPropagation(),"enter"===t&&r.target instanceof HTMLDivElement&&d(k.value?.state.doc.toString()??"",r))};return t({focus:e=>{if(!k.value||(k.value.focus(),!(0,g.isDefined)(e)))return;let t="start"===e?0:"end"===e?k.value.state.doc.length:e;k.value.dispatch({selection:{anchor:t},scrollIntoView:!0})},isFocused:i,handleChange:u,handleSubmit:d,handleBlur:h,booleanOptions:l,codeMirror:k,codeMirrorRef:S,modelValue:e.modelValue,setCodeMirrorContent:Q,cursorPosition:()=>k.value?.state.selection.main.head,serializeValue:x}),(t,o)=>((0,$.openBlock)(),(0,$.createElementBlock)($.Fragment,null,[e.disabled?((0,$.openBlock)(),(0,$.createElementBlock)("div",{key:0,class:(0,P.normalizeClass)(["text-c-2 flex cursor-default items-center justify-center",{"font-code pr-2 pl-1 text-base":"modal"===e.layout,"px-2":"modal"!==e.layout,"line-through":e.linethrough}]),"data-testid":"code-input-disabled"},[(0,$.createElementVNode)("span",pR,(0,P.toDisplayString)(e.modelValue),1)],2)):e.enum?.length?((0,$.openBlock)(),(0,$.createBlock)(D.default,{key:1,default:e.default,modelValue:e.modelValue,type:c.value,value:e.enum,"onUpdate:modelValue":p},null,8,["default","modelValue","type","value"])):s.value?((0,$.openBlock)(),(0,$.createBlock)(D.default,{key:2,default:e.default,modelValue:e.modelValue,value:l.value,"onUpdate:modelValue":p},null,8,["default","modelValue","value"])):e.examples?.length?((0,$.openBlock)(),(0,$.createBlock)(D.default,{key:3,default:e.default,modelValue:e.modelValue,value:e.examples,"onUpdate:modelValue":p},null,8,["default","modelValue","value"])):((0,$.openBlock)(),(0,$.createElementBlock)("div",(0,$.mergeProps)({key:4,id:(0,T.unref)(a)},t.$attrs,{ref_key:"codeMirrorRef",ref:S,class:["group/input group-[.alert]:outline-orange group-[.error]:outline-red font-code peer relative w-full overflow-hidden text-xs leading-[1.44] whitespace-nowrap -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline",{"line-wrapping has-[:focus-visible]:bg-b-1 has-[:focus-visible]:absolute has-[:focus-visible]:z-1":e.lineWrapping,"flow-code-input--error":e.error,"line-through":e.linethrough}],onKeydown:[o[0]||(o[0]=(0,B.withKeys)((0,B.withModifiers)(e=>X("down",e),["stop"]),["down"])),o[1]||(o[1]=(0,B.withKeys)(e=>X("enter",e),["enter"])),o[2]||(o[2]=(0,B.withKeys)(e=>X("escape",e),["escape"])),o[3]||(o[3]=(0,B.withKeys)((0,B.withModifiers)(e=>X("up",e),["stop"]),["up"]))]}),[e.lineNumbers?((0,$.openBlock)(),(0,$.createElementBlock)("div",pV,[(0,$.createVNode)((0,T.unref)(pp.ScalarIconButton),{class:(0,P.normalizeClass)(["bg-b-2 text-c-2 hover:text-c-1",{"!bg-b-3 !text-c-1":O.value}]),icon:(0,T.unref)(ph),"aria-pressed":O.value,"aria-label":O.value?"Disable line wrap":"Wrap lines",label:O.value?"Disable line wrap":"Wrap lines",size:"sm",tooltip:"",variant:"ghost",onClick:(0,B.withModifiers)(v,["stop"])},null,8,["class","icon","aria-pressed","aria-label","label"])])):(0,$.createCommentVNode)("",!0),e.disableTabIndent?(0,$.createCommentVNode)("",!0):((0,$.openBlock)(),(0,$.createElementBlock)("div",pZ,(0,P.toDisplayString)((0,T.unref)(n)("apiClient.codeInput.exitHint",{escape:"Esc",tab:"Tab"})),1))],16,pE)),t.$slots.warning?((0,$.openBlock)(),(0,$.createElementBlock)("div",pj,[(0,$.renderSlot)(t.$slots,"warning",{},void 0,!0)])):(0,$.createCommentVNode)("",!0),t.$slots.icon?((0,$.openBlock)(),(0,$.createElementBlock)("div",pX,[(0,$.renderSlot)(t.$slots,"icon",{},void 0,!0)])):(0,$.createCommentVNode)("",!0),e.required?((0,$.openBlock)(),(0,$.createElementBlock)("div",p_,(0,P.toDisplayString)((0,T.unref)(n)("apiClient.codeInput.required")),1)):(0,$.createCommentVNode)("",!0),j.value?((0,$.openBlock)(),(0,$.createBlock)(U.default,{key:8,ref_key:"dropdownRef",ref:E,contextFunctionItems:f.value,dropdownPosition:R.value,environment:e.environment,query:A.value,onClose:o[4]||(o[4]=e=>C.value=!1),onRedirect:o[5]||(o[5]=e=>r("navigate",{page:"document",path:"environment"})),onSelect:(0,T.unref)(V)},null,8,["contextFunctionItems","dropdownPosition","environment","query","onSelect"])):(0,$.createCommentVNode)("",!0)],64))}}),pq=(0,k.default)(pM,[["__scopeId","data-v-2334e03b"]]);e.s(["default",0,pq],998926);var pN=e.i(690944);e.i(555824);var pD=e.i(79842),pU=(0,$.defineComponent)({__name:"DataTableHeader",setup(e){let{cx:t}=(0,pD.useBindCx)();return(e,r)=>((0,$.openBlock)(),(0,$.createBlock)(pN.default,(0,$.mergeProps)({is:"th"}
3,(0,T.unref)(t)("items-center font-medium px-2 min-w-0 -outline-offset-1")),{default:(0,$.withCtx)(()=>[(0,$.renderSlot)(e.$slots,"default")]),_:3},16))}});e.s(["default",0,pU],526883),e.s(["getFileName",0,e=>{if(e instanceof File)return e.name}],385),e.s(["validateParameter",0,(e,t)=>{if(!e||!("type"in e)||"string"!=typeof t)return{ok:!0};if("integer"===e.type||"number"===e.type){let r=Number(t);if(isNaN(r))return{ok:!1,message:"Value must be a number (e.g., 42.5)"};if("integer"===e.type&&!Number.isInteger(r))return{ok:!1,message:"Value must be a whole number (e.g., 42)"};if(void 0!==e.minimum&&r<e.minimum)return{ok:!1,message:`Value must be ${e.minimum} or greater`};if(void 0!==e.maximum&&r>e.maximum)return{ok:!1,message:`Value must be ${e.maximum} or less`}}if("string"===e.type&&e.format){if("date"===e.format&&!/^\d{4}-\d{2}-\d{2}$/.test(t??""))return{ok:!1,message:"Please enter a valid date in YYYY-MM-DD format (e.g., 2024-03-20)"};if("date-time"===e.format&&!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})$/.test(t??""))return{ok:!1,message:"Please enter a valid date and time in RFC 3339 format (e.g., 2024-03-20T13:45:30Z)"};if("email"===e.format&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t??""))return{ok:!1,message:"Please enter a valid email address (e.g., [email protected])"};if("uri"===e.format&&!/^[a-zA-Z][a-zA-Z0-9+.-]*:.+$/.test(t??""))return{ok:!1,message:"Please enter a valid URI (e.g., https://example.com)"}}return{ok:!0}}],122626)},557875,57474,283888,439531,724473,53267,35381,861784,436278,674474,e=>{"use strict";var t=e=>"getSetCookie"in e&&"function"==typeof e.getSetCookie?e.getSetCookie():[];e.s(["getCookieHeaderKeys",0,t],57474);var r=(e,t)=>{for(let r of t)if(r.responseBody){for(let t of r.responseBody)if(n(e,t.mimeTypes))return t}},n=(e,t)=>{let r=e.toLowerCase();for(let e of t){let t=e.toLowerCase();if(t===r)return!0;if(t.includes("*")){let e=t.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*");if(RegExp(`^${e}$`).test(r))return!0}}return!1};e.s(["resolveResponseBodyHandler",0,r],283888);var o=e.i(61397),a=e=>e??"text/plain;charset=UTF-8",i=e=>(0,o.parseMimeType)(a(e));e.s(["resolveResponseContentType",0,a,"resolveResponseMimeType",0,i],439531);var s=e=>Uint8Array.from(e,e=>e.charCodeAt(0)),l=(e,t,r=0,n="")=>{let a=(0,o.parseMimeType)(e).parameters.get("boundary");if(!a||!/^[0-9A-Za-z'()+_,\-./:=? ]{1,70}$/.test(a)||a.endsWith(" "))throw Error("Multipart response requires a valid boundary parameter.");if(r>=8)throw Error("Multipart nesting exceeds the display limit.");let i=new TextEncoder().encode(`--${a}`),c=new Uint8Array(1024),u=0,d=0,h=0,p=!1,f=!1,m=0,O=e=>{if(e.length>8388608)throw Error("Multipart part exceeds the 8 MiB display limit.");let a=e.startsWith("\r\n")?0:e.indexOf("\r\n\r\n");if(a<0)throw Error("Multipart part is missing its header separator.");let i=e.slice(0,a),c=e.slice(a+(0===a?2:4)),u=i.replace(/\r\n[ \t]+/g," ").match(/^content-type:\s*(.+)$/im)?.[1]?.trim()??"text/plain",d=(0,o.parseMimeType)(u);m++;let h=`${n}${m}`;if(t(`Part ${h} 4${i?`${i} 5 6`:"\n"}`),"multipart"===d.type){let e=l(u,t,r+1,`${h}.`);e.push(s(c)),e.finish()}else if("text"===d.type||/(?:json|xml)$/.test(d.subtype)){let e=new TextDecoder(d.parameters.get("charset")??"utf-8").decode(s(c)),r=e;try{r=JSON.stringify(JSON.parse(e),null,2)}catch{}t(`${r} 7`)}else t(`[Binary part: ${c.length} bytes, base64] 8${btoa(c)} 9`)},g=e=>{let t=[];for(let r=0;r<e.length;r+=8192)t.push(String.fromCharCode(...e.subarray(r,r+8192)));return t.join("")},v=e=>{for(;!f&&d+i.length<=u;){let t=d;if(!((0===t||13===c[t-2]&&10===c[t-1])&&i.every((e,r)=>c[t+r]===e))){d++;continue}let r=t+i.length;for(h=Math.max(h,r);h+1<u&&(13!==c[h]||10!==c[h+1]);)h++;let n=h+1<u?h:-1;if(n<0&&!e)break;let o=g(c.subarray(r,n<0?u:n)),a=/^--[ \t]*$/.test(o);if(!a&&!/^[ \t]*$/.test(o)){d=r,h=0;continue}p&&O(g(c.subarray(0,Math.max(0,t-2)))),p=!0;let s=n<0?u:n+2;c.copyWithin(0,s,u),u-=s,f=a,d=0,h=0}if(u>8388608+i.length+6)throw Error("Multipart part exceeds the 8 MiB display limit.");if(e&&!f)throw Error("Multipart response ended before its closing boundary.")};return{push:e=>{for(let t=0;t<e.length&&!f;t+=65536){let r=e.subarray(t,t+65536);if(u+r.length>c.length){let e=new Uint8Array(Math.max(2*c.length,u+r.length));e.set(c.subarray(0,u)),c=e}c.set(r,u),u+=r.length,v(!1)}},finish:()=>v(!0)}},c=e.i(785088);let u=e=>{let t=0;for(let r of e){let e=r.charCodeAt(0);t+=2===r.length?4:e<=127?1:e<=2047?2:3}return t};
9e.s(["getUtf8ByteLength",0,u],724473);var d=e=>{if(!(0,c.isStreamingContentType)(e))return;let{essence:t,type:r,subtype:n}=(0,o.parseMimeType)(e);return"text/event-stream"===t?"text":["application/jsonl","application/x-ndjson","application/json-lines"].includes(t)?"json-lines":"json-seq"===n||n.endsWith("+json-seq")?"json-seq":"multipart"===r?"multipart":void 0};e.s(["createResponseStreamParser",0,(e,t)=>{let r=d(e);if("multipart"===r)return l(e,t);let n=new TextDecoder("utf-8",{fatal:"text"!==r&&void 0!==r}),o="",a=0,i=!1,s=0,c=!1,h=!1,p=()=>{let e,n=o;if(o="",a=0,s=0,c=!1,h=!1,n.trim()){try{let t=JSON.parse(n);if("json-seq"===r&&"object"!=typeof t&&"string"!=typeof t&&!/\s$/.test(n))throw Error("Truncated primitive");if("json-seq"===r&&null===t&&!/\s$/.test(n))throw Error("Truncated null");e=`${JSON.stringify(t,null,2)} 10`}catch{e=`[Invalid JSON record] 11${n.trim()} 12`}t(e)}},f=e=>{if("json-lines"!==r&&"json-seq"!==r)return void t(e);for(let t of e){if("json-seq"===r&&"\x1e"===t){p(),i=!0;continue}if("json-seq"===r&&!i){if(t.trim())throw Error("JSON sequence record is missing its record separator.");continue}if(o+=t,(a+=u(t))>8388608)throw Error("Stream record exceeds the 8 MiB display limit.");if("json-lines"===r){"\n"===t&&p();continue}c?h?h=!1:"\\"===t?h=!0:'"'===t&&(c=!1):'"'===t?c=!0:"{"===t||"["===t?s++:("}"===t||"]"===t)&&s--,"\n"===t&&!c&&0===s&&o.trim()&&(p(),i=!1)}};return{push:e=>f(n.decode(e,{stream:!0})),finish:()=>{f(n.decode()),p()}}},"getResponseStreamFormat",0,d],53267);var h={"application/epub+zip":{extension:".epub"},"application/gzip":{extension:".gz"},"application/java-archive":{extension:".jar"},"application/javascript":{extension:".js",raw:!0},"application/json":{extension:".json",raw:!0,language:"json",preview:"json"},"application/ld+json":{extension:".jsonld",raw:!0,language:"json",preview:"json"},"application/problem+json":{extension:".json",raw:!0,language:"json",preview:"json"},"application/vnd.api+json":{extension:".json",raw:!0,language:"json",preview:"json"},"application/dns-json":{extension:".json",raw:!0,language:"json",preview:"json"},"application/x-ndjson":{extension:".ndjson",raw:!0,language:"json",preview:"ndjson"},"application/ndjson":{extension:".ndjson",raw:!0,language:"json",preview:"ndjson"},"application/msword":{extension:".doc"},"application/octet-stream":{extension:".bin"},"application/ogg":{extension:".ogx"},"application/pdf":{extension:".pdf",preview:"object"},"application/rtf":{extension:".rtf",raw:!0},"application/vnd.amazon.ebook":{extension:".azw"},"application/vnd.apple.installer+xml":{extension:".mpkg",raw:!0,language:"xml"},"application/vnd.mozilla.xul+xml":{extension:".xul",raw:!0,language:"xml"},"application/vnd.ms-excel":{extension:".xls"},"application/vnd.ms-fontobject":{extension:".eot"},"application/vnd.ms-powerpoint":{extension:".ppt"},"application/vnd.oasis.opendocument.presentation":{extension:".odp"},"application/vnd.oasis.opendocument.spreadsheet":{extension:".ods"},"application/vnd.oasis.opendocument.text":{extension:".odt"},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{extension:".pptx"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{extension:".xlsx"},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{extension:".docx"},"application/vnd.rar":{extension:".rar"},"application/vnd.visio":{extension:".vsd"},"application/x-7z-compressed":{extension:".7z"},"application/x-abiword":{extension:".abw"},"application/x-bzip":{extension:".bz"},"application/x-bzip2":{extension:".bz2"},"application/x-cdf":{extension:".cda"},"application/x-csh":{extension:".csh"},"application/x-freearc":{extension:".arc"},"application/x-httpd-php":{extension:".php",raw:!0},"application/x-sh":{extension:".sh",raw:!0},"application/x-tar":{extension:".tar"},"application/xhtml+xml":{extension:".xhtml",raw:!0,language:"html"},"application/xml":{extension:".xml",raw:!0,language:"xml"},"application/yaml":{extension:".yaml",raw:!0,language:"yaml"},"application/zip":{extension:".zip"},"audio/aac":{extension:".aac"},"audio/midi":{extension:".midi"},"audio/mpeg":{extension:".mp3",preview:"audio"},"audio/ogg":{extension:".oga"},"audio/wav":{extension:".wav"},"audio/webm":{extension:".weba"},"font/otf":{extension:".otf"},"font/ttf":{extension:".ttf"},"font/woff":{extension:".woff"},"font/woff2":{extension:".woff2"},"image/apng":{extension:".apng",preview:"image",alpha:!0},"image/avif":{extension:".avif",preview:"image"},"image/bmp":{extension:".bmp",preview:"image"},"image/gif":{extension:".gif",preview:"image",alpha:!0},"image/jpeg":{extension:".jpg",preview:"image"},"image/png":{extension:".png",preview:"image",alpha:!0},"image/svg+xml":{extension:".svg",raw:!0,language:"xml",preview:"image",alpha:!0},"image/tiff":{extension:".tiff"},"image/vnd.microsoft.icon":{extension:".ico",preview:"image"},"image/webp":{extension:".webp",preview:"image",alpha:!0},"text/calendar":{extension:".ics",raw:!0},"text/css":{extension:".css",raw:!0,language:"css"},"text/csv":{extension:".csv",raw:!0},"text/html":{extension:".html",raw:!0,language:"html",preview:"object"},"text/javascript":{extension:".js",raw:!0},"text/json":{extension:".json",raw:!0,language:"json",preview:"json"},"text/plain":{extension:".txt",raw:!0},"text/xml":{extension:".xml",raw:!0,language:"xml"},"text/yaml":{extension:".yaml",raw:!0,language:"yaml"},"video/3gpp":{extension:".3gp"},"audio/3gpp":{extension:".3gp"},"video/3gpp2":{extension:".3g2"},"audio/3gpp2":{extension:".3g2"},"video/mp2t":{extension:".ts"},"video/mp4":{extension:".mp4",preview:"video"},"video/mpeg":{extension:".mpeg"},"video/ogg":{extension:".ogv"},"video/webm":{extension:".webm",preview:"video"},"video/x-msvideo":{extension:".avi"}},p=Object.entries(h).filter(([,e])=>e?.raw).map(([e])=>e);function f(e){let t=h[e];return t||(e.endsWith("+json")?{extension:".json",raw:!0,language:"json",preview:"json"}:e.endsWith("+xml")?{extension:".xml",raw:!0,language:"xml"}:void 0)}function m(e){return!!f(e)?.raw}e.s(["getMediaTypeConfig",0,f,"isTextMediaType",0,m,"textMediaTypes",0,p],35381);var O=async(e,t,r)=>{let n=(0,o.parseMimeType)(t);return r?.decode?await r.decode(e,t):m(n.essence)?new TextDecoder(n.parameters.get("charset")).decode(e):new Blob([e],{type:n.essence})};let g={BUILDING_REQUEST_FAILED:"An error occurred while building the request",DEFAULT:"An unknown error has occurred.",INVA
12LID_URL:"The URL seems to be invalid. Try adding a valid URL.",INVALID_URL_PROTOCOL:"The URL must start with http:// or https://.",INVALID_HEADER:"There is an invalid header present, please double check your params.",MISSING_FILE:"File uploads are not saved in history, you must re-upload the file.",REQUEST_ABORTED:"The request has been cancelled",REQUEST_FAILED:"An error occurred while making the request",URL_EMPTY:"The address bar input seems to be empty. Try adding a URL.",ON_BEFORE_REQUEST_FAILED:"onBeforeRequest request hook failed"},v=e=>"Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'."===e?g.MISSING_FILE:"Failed to construct 'URL': Invalid URL"===e?g.INVALID_URL:e.includes("Invalid URL protocol")?g.INVALID_URL_PROTOCOL:"Failed to execute 'fetch' on 'Window': Invalid name"===e?g.INVALID_HEADER:e,y=(e,t=g.DEFAULT)=>(console.error(e),e instanceof Error)?(e.message=v(e.message),e):"string"==typeof e?Error(v(e)):Error(t);e.s(["ERRORS",0,g,"normalizeError",0,y],861784);var b=e.i(427338),S=e.i(258522);let x={100:{name:"Continue",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100",color:"var(--scalar-color-blue)"},101:{name:"Switching Protocols",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/101",color:"var(--scalar-color-blue)"},102:{name:"Processing",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/102",color:"var(--scalar-color-blue)"},103:{name:"Early Hints",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103",color:"var(--scalar-color-blue)"},200:{name:"OK",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200",color:"var(--scalar-color-green)"},201:{name:"Created",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/201",color:"var(--scalar-color-green)"},202:{name:"Accepted",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/202",color:"var(--scalar-color-green)"},203:{name:"Non-Authoritative Information",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/203",color:"var(--scalar-color-green)"},204:{name:"No Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/204",color:"var(--scalar-color-green)"},205:{name:"Reset Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/205",color:"var(--scalar-color-green)"},206:{name:"Partial Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/206",color:"var(--scalar-color-green)"},207:{name:"Multi-Status",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/207",color:"var(--scalar-color-green)"},208:{name:"Already Reported",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/208",color:"var(--scalar-color-green)"},226:{name:"IM Used",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/226",color:"var(--scalar-color-green)"},300:{name:"Multiple Choices",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/300",color:"var(--scalar-color-yellow)"},301:{name:"Moved Permanently",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301",color:"var(--scalar-color-yellow)"},302:{name:"Found",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302",color:"var(--scalar-color-yellow)"},303:{name:"See Other",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/303",color:"var(--scalar-color-yellow)"},304:{name:"Not Modified",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/304",color:"var(--scalar-color-yellow)"},305:{name:"Use Proxy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/305",color:"var(--scalar-color-yellow)"},306:{name:"(Unused)",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/306",color:"var(--scalar-color-yellow)"},307:{name:"Temporary Redirect",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/307",color:"var(--scalar-color-yellow)"},308:{name:"Permanent Redirect",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/308",color:"var(--scalar-color-yellow)"},400:{name:"Bad Request",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400",color:"var(--scalar-color-red)"},401:{name:"Unauthorized",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401",color:"var(--scalar-color-red)"},402:{name:"Payment Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/402",color:"var(--scalar-color-red)"},403:{name:"Forbidden",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403",color:"var(--scalar-color-red)"},404:{name:"Not Found",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404",color:"var(--scalar-color-red)"}
12,405:{name:"Method Not Allowed",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405",color:"var(--scalar-color-red)"},406:{name:"Not Acceptable",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406",color:"var(--scalar-color-red)"},407:{name:"Proxy Authentication Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/407",color:"var(--scalar-color-red)"},408:{name:"Request Timeout",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408",color:"var(--scalar-color-red)"},409:{name:"Conflict",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409",color:"var(--scalar-color-red)"},410:{name:"Gone",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/410",color:"var(--scalar-color-red)"},411:{name:"Length Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/411",color:"var(--scalar-color-red)"},412:{name:"Precondition Failed",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/412",color:"var(--scalar-color-red)"},413:{name:"Content Too Large",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/413",color:"var(--scalar-color-red)"},414:{name:"URI Too Long",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/414",color:"var(--scalar-color-red)"},415:{name:"Unsupported Media Type",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/415",color:"var(--scalar-color-red)"},416:{name:"Range Not Satisfiable",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/416",color:"var(--scalar-color-red)"},417:{name:"Expectation Failed",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/417",color:"var(--scalar-color-red)"},418:{name:"I'm a teapot",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/418",color:"var(--scalar-color-red)"},421:{name:"Misdirected Request",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/421",color:"var(--scalar-color-red)"},422:{name:"Unprocessable Content",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422",color:"var(--scalar-color-red)"},423:{name:"Locked",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/423",color:"var(--scalar-color-red)"},424:{name:"Failed Dependency",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/424",color:"var(--scalar-color-red)"},425:{name:"Too Early",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/425",color:"var(--scalar-color-red)"},426:{name:"Upgrade Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/426",color:"var(--scalar-color-red)"},428:{name:"Precondition Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/428",color:"var(--scalar-color-red)"},429:{name:"Too Many Requests",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429",color:"var(--scalar-color-red)"},431:{name:"Request Header Fields Too Large",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/431",color:"var(--scalar-color-red)"},451:{name:"Unavailable For Legal Reasons",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/451",color:"var(--scalar-color-red)"},500:{name:"Internal Server Error",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500",color:"var(--scalar-color-red)"},501:{name:"Not Implemented",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/501",color:"var(--scalar-color-red)"},502:{name:"Bad Gateway",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502",color:"var(--scalar-color-red)"},503:{name:"Service Unavailable",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503",color:"var(--scalar-color-red)"},504:{name:"Gateway Timeout",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504",color:"var(--scalar-color-red)"},505:{name:"HTTP Version Not Supported",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/505",color:"var(--scalar-color-red)"},506:{name:"Variant Also Negotiates",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/506",color:"var(--scalar-color-red)"},507:{name:"Insufficient Storage",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/507",color:"var(--scalar-color-red)"}
12,508:{name:"Loop Detected",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/508",color:"var(--scalar-color-red)"},510:{name:"Not Extended",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/510",color:"var(--scalar-color-red)"},511:{name:"Network Authentication Required",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/511",color:"var(--scalar-color-red)"}};e.s(["httpStatusCodes",0,x],436278);var k=e.i(297263);let w=/^[!-:<>-~]+$/,$=/^[!-:<-~]*$/,P=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,Q=/^[ -:=-~]*$/;var C={decodeValues:!0,map:!1,silent:!1,split:"auto"};function T(e){return"string"!=typeof e||e in{}}function B(){return Object.create(null)}function A(e){return"string"==typeof e&&!!e.trim()}function R(e,t){var r,n,o,a,i=e.split(";").filter(A),s=(r=i.shift(),n="",o="",(a=r.split("=")).length>1?(n=a.shift(),o=a.join("=")):o=r,{name:n,value:o}),l=s.name,c=s.value;if(t=t?Object.assign({},C,t):C,T(l))return null;try{c=t.decodeValues?decodeURIComponent(c):c}catch(e){console.error("set-cookie-parser: failed to decode cookie value. Set options.decodeValues=false to disable decoding.",e)}var u=B();return u.name=l,u.value=c,i.forEach(function(e){var t=e.split("="),r=t.shift().trimLeft().toLowerCase();if(!T(r)){var n=t.join("=");if("expires"===r)u.expires=new Date(n);else if("max-age"===r){var o=parseInt(n,10);Number.isNaN(o)||(u.maxAge=o)}else"secure"===r?u.secure=!0:"httponly"===r?u.httpOnly=!0:"samesite"===r?u.sameSite=n:"partitioned"===r?u.partitioned=!0:r&&(u[r]=n)}}),u}function E(e,t){if(t=t?Object.assign({},C,t):C,!e)if(!t.map)return[];else return B();if(e.headers)if("function"==typeof e.headers.getSetCookie)e=e.headers.getSetCookie();else if(e.headers["set-cookie"])e=e.headers["set-cookie"];else{var r=e.headers[Object.keys(e.headers).find(function(e){return"set-cookie"===e.toLowerCase()})];r||!e.headers.cookie||t.silent||console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),e=r}var n=t.split,o=Array.isArray(e);if("auto"===n&&(n=!o),o||(e=[e]),e=e.filter(A),n&&(e=e.map(V).flat()),!t.map)return e.map(function(e){return R(e,t)}).filter(Boolean);var a=B();return e.reduce(function(e,r){var n=R(r,t);return n&&!T(n.name)&&(e[n.name]=n),e},a)}function V(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,r,n,o,a,i=[],s=0;function l(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,a=!1;l();)if(","===(r=e.charAt(s))){for(n=s,s+=1,l(),o=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(a=!0,s=o,i.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!a||s>=e.length)&&i.push(e.substring(t,e.length))}return i}E.parseSetCookie=E,E.parse=E,E.parseString=R,E.splitCookiesString=V,e.s(["parseSetCookie",0,E],674474);var Z=[204,205,304],j=async({isUsingProxy:e,requestPayload:t,request:r,plugins:n=[],customFetch:o=fetch,onResponseReceived:a})=>{try{let i=performance.now(),s=(0,b.isElectron)()?await o(...t):await o(r??(0,S.buildSafeBodyRequest)(...t)),l=performance.now(),c=Date.now(),u=l-i,h=a?await a(s,u):s,p=h.headers.get("content-type"),f=((e,t=!1)=>{let r=Object.fromEntries(e);t&&["Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers"].map(e=>e.toLowerCase()).forEach(e=>delete r[e]),delete r[k.X_SCALAR_SET_COOKIE];let n=Object.keys(r).find(e=>"x-scalar-modified-headers"===e.toLowerCase()),o=n?r[n]?.toString().split(", ")?.map(e=>e.toLowerCase())??[]:[];return Object.keys(r).forEach(e=>{o.includes(e.toLowerCase())&&delete r[e]}),n&&delete r[n],Object.keys(r).forEach(e=>{let t=/^x-scalar-original-/i;if(t.test(e)){let n=e.replace(t,"");r[e]&&(r[n]=r[e],delete r[e])}}),Object.keys(r).forEach(e=>{let t=e.split("-").map(e=>e.charAt(0).toUpperCase()+e.toLowerCase().slice(1)).join("-");e!==t&&r[e]&&(r[t]=r[e],delete r[e])}),Object.fromEntries(Object.entries(r).sort(([e],[t])=>e.localeCompare(t)))})(h.headers,e),m=new URL(h.url||s.url||t[0]),O=m.pathname+m.search,g=h.statusText||x[h.status]?.name||"",v=t[1].method??"GET",y=Z.includes(h.status);if(!y&&p&&d(p)&&h.body)return _({response:h,requestPayload:t,timestamp:c,duration:u,responseHeaders:f,
12statusText:g,method:v,fullPath:O});return await M({response:h,requestPayload:t,timestamp:c,duration:u,responseHeaders:f,statusText:g,method:v,fullPath:O,contentType:p,shouldSkipBody:y,plugins:n})}catch(e){return[y(e,g.REQUEST_FAILED),null]}},X=e=>{let t=E(e.headers.get(k.X_SCALAR_SET_COOKIE)??"").map(e=>((e,t,r={})=>{if(!w.test(e))throw TypeError(`argument name is invalid: ${e}`);if(!$.test(t))throw TypeError(`argument val is invalid: ${t}`);let n=`${e}=${t}`;if(void 0!==r.maxAge){if(!Number.isInteger(r.maxAge))throw TypeError(`option maxAge is invalid: ${r.maxAge}`);n+=`; Max-Age=${r.maxAge}`}if(r.domain){if(!P.test(r.domain))throw TypeError(`option domain is invalid: ${r.domain}`);n+=`; Domain=${r.domain}`}if(r.path){if(!Q.test(r.path))throw TypeError(`option path is invalid: ${r.path}`);n+=`; Path=${r.path}`}if(r.expires){if(!(r.expires instanceof Date)||!Number.isFinite(r.expires.valueOf()))throw TypeError(`option expires is invalid: ${r.expires}`);n+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(n+="; HttpOnly"),r.secure&&(n+="; Secure"),r.partitioned&&(n+="; Partitioned"),r.priority)switch("string"==typeof r.priority?r.priority.toLowerCase():void 0){case"low":n+="; Priority=Low";break;case"medium":n+="; Priority=Medium";break;case"high":n+="; Priority=High";break;
12default:throw TypeError(`option priority is invalid: ${r.priority}`)}if(r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:case"strict":n+="; SameSite=Strict";break;case"lax":n+="; SameSite=Lax";break;case"none":n+="; SameSite=None";break;default:throw TypeError(`option sameSite is invalid: ${r.sameSite}`)}return n})(e.name,e.value,{...e,sameSite:e.sameSite}));return t.length?t:null},_=({response:e,requestPayload:r,timestamp:n,duration:o,responseHeaders:a,statusText:i,method:s,fullPath:l})=>{let c=new Response(null,{status:e.status,statusText:i,headers:e.headers}),u=X(c)??t(c.headers);return[null,{timestamp:n,requestPayload:r,response:{...c,status:e.status,statusText:i,headers:a,cookieHeaderKeys:u,reader:e.body.getReader(),duration:o,method:s,path:l},originalResponse:c.clone()}]},M=async({response:e,requestPayload:n,timestamp:o,duration:s,responseHeaders:l,statusText:c,method:u,fullPath:d,contentType:h,shouldSkipBody:p,plugins:f})=>{let m=await e.clone().arrayBuffer(),g=a(h),v=i(h).essence,y=await O(m,g,r(v,f)),b=new Response(p?null:m,{status:e.status,statusText:c,headers:e.headers}),S=X(b)??t(b.headers);return[null,{timestamp:o,requestPayload:n,response:{...b,status:e.status,statusText:c,headers:l,cookieHeaderKeys:S,data:y,size:m.byteLength,duration:s,method:u,path:d},originalResponse:e.clone()}]};e.s(["sendRequest",0,j],557875)},152148,893930,103236,435187,664612,160003,569390,e=>{"use strict";var t,r,n,o,a,i,s,l,c,u=e.i(142653),d=e.i(193141),h=e.i(494242),p=e.i(847321),f=e.i(905282),m=e.i(212983),O=e.i(819349),g=e.i(957593),v=e.i(224041);e.i(761626);var y=e.i(875418),b=e.i(80250),S=e.i(112111);e.i(453217);var x=e.i(989880),k=e.i(377970);e.i(819786);var w=e.i(837889);e.i(210776);var $=e.i(462273),P=e.i(807309),Q=e.i(454537),C=e.i(525673),T=e.i(550030);e.i(338392);var B=e.i(880022);e.i(678661);var A=e.i(343589),R={class:"flex flex-1"},E={class:"overflow-hidden"},V={key:0,class:"text-c-2 p-4",role:"status"},Z=(0,y.defineComponent)({__name:"RequestCodeSnippet",props:{codeSampleUnavailable:{},integration:{},clientOptions:{},selectedClient:{},selectedServer:{default:null},selectedContentType:{},selectedExample:{},eventBus:{},securitySchemes:{},method:{},path:{},operation:{},fallback:{type:Boolean},generateLabel:{type:Function},isWebhook:{type:Boolean},globalCookies:{},openapiVersion:{},requestBodyCompositionSelection:{}},setup(e){let{translate:t}=(0,d.useLocalization)(),r=(0,y.computed)(()=>(0,C.getCustomCodeSamples)(e.operation)),n=(0,y.computed)(()=>(0,Q.getClients)(r.value.samples,e.clientOptions,r.value.label)),o=(0,S.ref)((0,$.findClient)(n.value,e.selectedClient));(0,y.watch)([()=>e.selectedClient,n],([e])=>{let t=(0,$.findClient)(n.value,e);t&&(o.value=t)});let a=(0,y.computed)(()=>(0,T.getSecrets)(e.securitySchemes??[])),i=(0,y.computed)(()=>(0,P.generateCodeSnippet)({defaultDisabledParameters:!0,clientId:o.value?.id,customCodeSamples:r.value.samples,operation:e.operation,method:e.method,path:e.path,contentType:e.selectedContentType,server:e.selectedServer,securitySchemes:e.securitySchemes,example:e.selectedExample,globalCookies:e.globalCookies,openapiVersion:e.openapiVersion,requestBodyCompositionSelection:e.requestBodyCompositionSelection,includeDefaultHeaders:"client"===e.integration})),s=(0,y.computed)(()=>n.value.some(e=>e.options.length>0));return(r,l)=>s.value?((0,y.openBlock)(),(0,y.createBlock)((0,S.unref)(v.default),{key:0,class:"group/preview w-full border-t",defaultOpen:!1},{title:(0,y.withCtx)(()=>[(0,y.createTextVNode)((0,b.toDisplayString)((0,S.unref)(t)("apiClient.requestCodeSnippet.codeSnippet")),1)]),actions:(0,y.withCtx)(()=>[(0,y.createElementVNode)("div",R,[(0,y.createVNode)((0,S.unref)(w.ScalarCombobox),{modelValue:o.value,options:n.value,placement:"bottom-end","onUpdate:modelValue":l[0]||(l[0]=t=>{o.value=t,t&&e.eventBus.emit("workspace:update:selected-client",t.id)})},{default:(0,y.withCtx)(({open:e})=>[(0,y.createVNode)((0,S.unref)(x.ScalarButton),{class:"text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-0.5 py-0 text-base font-normal","data-testid":"client-picker",variant:"ghost"},{default:(0,y.withCtx)(()=>[(0,y.createTextVNode)((0,b.toDisplayString)(o.value?.title)+" ",1),(0,y.createVNode)((0,S.unref)(k.ScalarIconCaretDown),{class:(0,b.normalizeClass)(["mt-0.25 size-3 transition-transform duration-100",e&&"rotate-180"]),weight:"bold"},null,8,["class"])]),_:2},1024)]),_:1},8,["modelValue","options"])])]),default:(0,y.withCtx)(()=>[(0,y.createVNode)((0,S.unref)(B.ScalarErrorBoundary),null,{default:(0,y.withCtx)(()=>[(0,y.createVNode)((0,S.unref)(O.default),{columns:[""],presentational:""},{default:(0,y.withCtx)(()=>[(0,y.createVNode)((0,S.unref)(g.default),null,{default:(0,y.withCtx)(()=>[(0,y.createElementVNode)("div",E,[null===i.value?((0,y.openBlock)(),(0,y.createElementBlock)("div",V,(0,b.toDisplayString)((0,S.unref)(t)("apiClient.requestCodeSnippet.unavailable")),1)):((0,y.openBlock)(),(0,y.createBlock)((0,S.unref)(A.ScalarCodeBlock),{key:1,class:"text-base",content:i.value,hideCredentials:a.value,lang:o.value?.lang??"plaintext",lineNumbers:""},null,8,["content","hideCredentials","lang"]))])]),_:1})]),_:1})]),_:1})]),_:1})):(0,y.createCommentVNode)("",!0)}}),j=e.i(404162),X=e.i(562649);e.i(710372);var _=e.i(738508),M={class:"text-c-2 request-meta-buttons flex whitespace-nowrap opacity-0 group-hover/params:opacity-100 has-[:focus-visible]:opacity-100"},q={key:0,class:"text-c-2 px-3 py-2 text-sm"}
12,N=(0,y.defineComponent)({__name:"RequestParams",props:{rows:{},exampleKey:{},title:{},label:{},description:{},invalidParams:{},globalRoute:{},showAddRowPlaceholder:{type:Boolean,default:!0},environment:{},eventBus:{}},emits:["upsert","delete","deleteAll","selectPreset"],setup(e,{emit:t}){let{translate:r}=(0,d.useLocalization)(),n=(0,y.computed)(()=>e.rows.length>1),o=(e,r)=>{let{value:n,...o}=r;n instanceof File||t("upsert",e,{...o,value:n??""})};return(a,i)=>((0,y.openBlock)(),(0,y.createBlock)((0,S.unref)(v.default),{class:"group/params",itemCount:e.rows.length},{title:(0,y.withCtx)(()=>[(0,y.createTextVNode)((0,b.toDisplayString)(e.title),1)]),actions:(0,y.withCtx)(()=>[(0,y.createElementVNode)("div",M,[n.value?((0,y.openBlock)(),(0,y.createBlock)((0,S.unref)(_.ScalarTooltip),{key:0,content:(0,S.unref)(r)("apiClient.requestParams.clearOptionalParameters"),placement:"left"},{default:(0,y.withCtx)(()=>[(0,y.createVNode)((0,S.unref)(x.ScalarButton),{"aria-label":(0,S.unref)(r)("apiClient.requestParams.clearAll",{title:e.title}),class:"pr-0.75 pl-1 transition-none",size:"sm",variant:"ghost",onClick:i[0]||(i[0]=(0,X.withModifiers)(e=>t("deleteAll"),["stop"]))},{default:(0,y.withCtx)(()=>[(0,y.createTextVNode)((0,b.toDisplayString)((0,S.unref)(r)("apiClient.requestParams.clear")),1)]),_:1},8,["aria-label"])]),_:1},8,["content"])):(0,y.createCommentVNode)("",!0)])]),default:(0,y.withCtx)(()=>[e.description?((0,y.openBlock)(),(0,y.createElementBlock)("p",q,(0,b.toDisplayString)(e.description),1)):(0,y.createCommentVNode)("",!0),(0,y.createVNode)(j.default,{class:"flex-1",columns:["32px","",""],data:e.rows,environment:e.environment,exampleKey:e.exampleKey,globalRoute:e.globalRoute,invalidParams:e.invalidParams,label:e.label,showAddRowPlaceholder:e.showAddRowPlaceholder,onDeleteRow:i[1]||(i[1]=e=>t("delete",{index:e})),onNavigate:i[2]||(i[2]=t=>e.eventBus.emit("ui:navigate",t)),onSelectPreset:i[3]||(i[3]=(e,r)=>t("selectPreset",e,r)),onUpsertRow:o},null,8,["data","environment","exampleKey","globalRoute","invalidParams","label","showAddRowPlaceholder"])]),_:1},8,["itemCount"]))}});e.i(766688);var D=e.i(81060),U=e.i(152622),z=e=>null==e||""===e,W=e=>e.endsWith("][]"),L=(e,t,r)=>{let n=(e=>{let t=W(e)?e.slice(0,-2):e,r=[],n=t.match(/^[^[\]]*/)?.[0]??"";for(let e of(n&&r.push(n),t.matchAll(/\[([^\]]*)\]/g)))r.push(e[1]??"");return r})(e);return 0===n.length?r:t&&n[0]===t&&n.length>1?n.slice(1):n},H=(e,t,r)=>{let n={},o=e.originalParameter,a=!!(o&&"style"in o&&"deepObject"===o.style);for(let o of t){if(o.originalParameter!==e.originalParameter||!o.sourceParameterValuePath||o===e&&!r)continue;let t=o===e&&void 0!==r,i=t?r.value:o.value;if(z(i))continue;let s=t&&r.shouldRenameExpandedRow?L(r.name,e.originalParameter?.name,o.sourceParameterValuePath):o.sourceParameterValuePath,l=t&&!!r.shouldRenameExpandedRow,c=W(l?r.name:o.name)?{type:"array"}:l?void 0:o.schema;(0,U.setValueAtPath)(n,s,a&&c?(0,D.deSerializeSchemaValue)(i,c):i)}return{name:e.originalParameter?.name??r?.name??e.name,value:n,isDisabled:r?.isDisabled??e.isDisabled??!1}},I=(e,t,r,{context:n,defaultParameters:o=0,globalParameters:a=0,onDeleteExpandedRow:i,onRenameExpandedRow:s})=>{let l=o+a;return{delete:o=>{let a=n[o.index];if(a?.originalParameter){if(a.sourceParameterValuePath)return i?.(a),t.emit("operation:upsert:parameter",{type:e,payload:H(a,n),originalParameter:a.originalParameter,meta:r},{skipUnpackProxy:!0});t.emit("operation:delete:parameter",{originalParameter:a.originalParameter,meta:r},{skipUnpackProxy:!0})}},deleteAll:()=>t.emit("operation:delete-all:parameters",{type:e,meta:r}),upsert:(i,c)=>{let u=n[i],{shouldRenameExpandedRow:d,...h}=c;if(i<o+a)return t.emit("operation:update:extra-parameters",{type:i<o?"default":"global",in:e,meta:{...r,name:u?.name?.toLowerCase?.()??"NON_VALID"},payload:{isDisabled:c.isDisabled??!1}});if(i>=l){let o=!!(u?.sourceParameterValuePath&&u.originalParameter);if(o&&u&&d&&c.name!==u.name){let e=L(c.name,u.originalParameter?.name,u.sourceParameterValuePath??[]);s?.(u,e)}let a=o&&u?H(u,n,c):h;return t.emit("operation:upsert:parameter",{type:e,payload:a,originalParameter:u?.originalParameter??null,meta:r},{skipUnpackProxy:!0,debounceKey:`update:parameter-${e}-${i-l}`})}}}},Y=e.i(304780),G=e.i(78229),F=e.i(890396),K=e.i(553311),J=e.i(520073),ee=e.i(650023),et=e.i(378650),er=e=>e.join("\0"),en=({parameter:e,name:t,value:r,description:n,schema:o,isRequired:a,isDisabled:i,isDisabledByDefault:s,sourceParameterValuePath:l})=>({name:t,value:null==r?"":Array.isArray(r)?r.join(","):"object"==typeof r?JSON.stringify(r):String(r),description:n,schema:o,isRequired:a,isDisabled:i,...s?{isDisabledByDefault:!0}:{},originalParameter:e,sourceParameterValuePath:l}),eo=(e,t,r)=>"deepObject"===r?`${e.name}${t.map(e=>`[${e}]`).join("")}`:t[0]??"",ea=(e,t,r)=>"deepObject"===t&&r?`${e}[]`:e,ei=(e,t,r,n,o)=>en({parameter:e,name:e.name,value:r,description:e.description,schema:t,isRequired:e.required,isDisabled:n,isDisabledByDefault:o}),es=({parameter:e,schema:t,value:r,pathPrefix:n,namePrefix:o,mode:a,isDisabled:i,isDisabledByDefault:s,hiddenValuePaths:l,renamedValuePaths:c,renameTargetPaths:u})=>
12{if(!t.properties)return[];let d=new Set(t.required??[]);return Object.entries(t.properties).flatMap(([t,h])=>{let p=(0,Y.getResolvedRef)(h);if(!p)return[];let f=[...n,t],m=o?`${o}[${t}]`:t,O=c.get(er(f)),g=O??f;if(l.has(er(g)))return[];if(O){let t=(0,G.getValueAtPath)(r,O),n=void 0===t?(0,G.getValueAtPath)(r,f):t;return[en({parameter:e,name:ea(eo(e,O,a),a,Array.isArray(n)),value:n,description:e.description,schema:void 0,isRequired:!1,isDisabled:i,isDisabledByDefault:s,sourceParameterValuePath:O})]}if(u.has(er(f)))return[];if("deepObject"===a&&(0,J.isObjectSchema)(p)&&p.properties)return es({parameter:e,schema:p,value:r,pathPrefix:f,namePrefix:m,mode:a,isDisabled:i,isDisabledByDefault:s,hiddenValuePaths:l,renamedValuePaths:c,renameTargetPaths:u});let v=(0,G.getValueAtPath)(r,f);return[en({parameter:e,name:ea(m,a,(0,J.isArraySchema)(p)||Array.isArray(v)),value:v,description:p.description??e.description,schema:p,isRequired:d.has(t),isDisabled:i,isDisabledByDefault:s,sourceParameterValuePath:f})]})};function el(e,t,r){let n={};for(let o of(Object.setPrototypeOf(n,null),e)){let e=o[t],a=r?r(o):o,i=n[e];i?i.push(a):n[e]=[a]}return n}var ec=e.i(83152),eu=e.i(267499),ed=e.i(594492),eh=e.i(927439),ep=e.i(575331),ef=e.i(952337),em=e.i(258522),eO=e.i(143629),eg=e.i(932615);e.i(389205);var ev=e.i(676672),ey={class:"group pointer-events-none flex flex-1 items-center gap-1 lg:pe-24"},eb=["for"],eS=["id","placeholder","value"],ex={key:2,class:"text-c-1 flex h-8 items-center"},ek=["id","role"],ew=(0,y.defineComponent)({__name:"RequestBlock",props:{authMeta:{default:()=>({type:"document"})},clientOptions:{},environment:{},eventBus:{},exampleKey:{},workspaceCookies:{},documentCookies:{},documentSlug:{},layout:{},method:{},operation:{},sourceOperation:{},path:{},plugins:{},proxyUrl:{},securityRequirements:{},securitySchemes:{},openapiVersion:{},requestBodyCompositionSelection:{},selectedClient:{},selectedSecurity:{},selectedSecuritySchemes:{},server:{},defaultHeaders:{},defaultRequestBodyView:{default:"raw"},options:{}},setup(e){let{translate:t}=(0,d.useLocalization)(),r=(0,y.computed)(()=>({method:e.method,path:e.path,exampleKey:e.exampleKey})),n=(0,S.ref)({}),o=(0,S.ref)({}),a=e=>`${e.in}:${e.name}`,i=e=>{if(!e.originalParameter||!e.sourceParameterValuePath)return;let t=a(e.originalParameter);n.value={...n.value,[t]:[...n.value[t]??[],e.sourceParameterValuePath]}},s=(e,t)=>{if(!e.originalParameter||!e.sourceParameterValuePath)return;let r=e.sourceParameterValuePath,n=a(e.originalParameter),i=o.value[n]??[],s=i.find(e=>{let t;return t=e.to,t.length===r.length&&t.every((e,t)=>e===r[t])}),l=s?i.map(e=>e===s?{from:e.from,to:t}:e):[...i,{from:r,to:t}];o.value={...o.value,[n]:l}},l=(0,y.computed)(()=>e.operation.parameters?.some(e=>(0,Y.getResolvedRef)(e)?.in==="querystring")??!1),c=(0,y.computed)(()=>el(e.operation.parameters?.flatMap((t,r)=>{let i=(0,Y.getResolvedRef)(t);return i?((e,t,r={})=>{let n=(0,ee.getParameterExample)(e,t),{example:o}=n,a=null===n.value&&o?.dataValue===null?"null":n.value,i=(0,F.isParamDisabled)(e,o),s=!e.required&&"path"!==e.in&&o?.["x-disabled"]===void 0,l="schema"in e&&e.schema?(0,Y.getResolvedRef)(e.schema):(0,Y.getResolvedRef)((e=>{if("content"in e&&e.content){let t=Object.keys(e.content);if(1===t.length)return e.content[t[0]]}})(e)?.schema);if("querystring"===e.in){let r=(0,et.getQuerystringParameter)(e,t,{includeDisabled:!0});return[ei(e,void 0,r?(0,et.serializeQuerystringParameter)(r):"",i,s)]}let c=n.serialized?null:((e,t)=>{let r;if("query"!==e.in||!("schema"in e&&void 0!==e.schema)||!t||!(0,J.isObjectSchema)(t))return null;let{style:n,explode:o}={style:r="style"in e&&e.style?e.style:"form",explode:"explode"in e&&void 0!==e.explode?e.explode:"form"===r};return o?"form"===n?"form":"deepObject"===n?"deepObject":null:null})(e,l);if(null===c||!l||!(0,J.isObjectSchema)(l))return[ei(e,n.serialized?void 0:l,a,i,s)];let u=void 0===n.value?void 0:(0,D.deSerializeParameter)(n.value,e);if(!l.properties)return[ei(e,n.serialized?void 0:l,a,i,s)];let d=new Set(r.hiddenValuePaths?.map(er)??[]),h=new Map((r.renamedValuePaths??[]).map(({from:e,to:t})=>[er(e),t])),p=new Set((r.renamedValuePaths??[]).map(({to:e})=>er(e))),f=es({parameter:e,schema:l,value:u,pathPrefix:[],namePrefix:"deepObject"===c?e.name:"",mode:c,isDisabled:i,isDisabledByDefault:s,hiddenValuePaths:d,renamedValuePaths:h,renameTargetPaths:p}),m=(({parameter:e,value:t,schemaRows:r,mode:n,isDisabled:o,isDisabledByDefault:a,renamedValuePaths:i})=>{let s=new Set([...r.map(e=>er(e.sourceParameterValuePath??[])),...i.keys()]);return((e,t)=>{if(!(0,K.isObject)(e))return[];let r=[],n=(e,o)=>{for(let[a,i]of Object.entries(e)){let e=[...o,a];"deepObject"===t&&(0,K.isObject)(i)?n(i,e):r.push(e)}};return n(e,[]),r})(t,n).filter(e=>!s.has(er(e))).map(r=>{let i=(0,G.getValueAtPath)(t,r);return en({parameter:e,name:ea(eo(e,r,n),n,Array.isArray(i)),value:i,description:e.description,schema:void 0,isRequired:!1,isDisabled:o,isDisabledByDefault:a,sourceParameterValuePath:r})})})({parameter:e,value:u,schemaRows:f,mode:c,isDisabled:i,isDisabledByDefault:s,renamedValuePaths:h});return[...f,...m]})(i,e.exampleKey,{hiddenValuePaths:"query"===i.in?n.value[a(i)]??[]:[],renamedValuePaths:"query"===i.in?o.value[a(i)]??[]:[]}).map(t=>({...t,originalParameter:(0,Y.getResolvedRef)(e.sourceOperation?.parameters?.[r])??i,in:"querystring"===i.in?"query":i.in})):[]})??[],"in",({in:e,...t})=>t)),u=(0,y.computed)(()=>el(c.value.header?.map(e=>({...e,name:e.name.toLowerCase()}))??[],"name")),O=(0,y.computed)(()=>{let t=e.operation["x-scalar-disable-parameters"]?.["default-headers"]?.[e.exampleKey]??{};return Object.entries(e.defaultHeaders).map(([e,r])=>{let n;
12return{name:e,value:r,schema:void 0,isOverridden:!!(n=u.value[e.toLowerCase()]?.[0])&&!n.isDisabled,isReadonly:!0,isDisabled:t[e.toLowerCase()]??!1}})}),g=(0,y.computed)(()=>[...O.value,...c.value.header??[]]),v=(0,y.computed)(()=>{let t=(0,ed.getEnvironmentVariables)(e.environment);return(0,eO.replaceEnvVariables)((0,eh.getResolvedUrl)({server:e.server,path:e.path}),t)}),x=(0,y.computed)(()=>(({sources:e,shouldInclude:t})=>{let r=[],n=new Map;for(let{location:o,cookies:a}of e)a.forEach((e,a)=>{e.name&&t(e)&&(n.has(e.name)||(n.set(e.name,[]),r.push(e.name)),n.get(e.name)?.push({location:o,value:e.value,isDisabled:e.isDisabled??!1,index:a}))});let o=[];for(let e of r){let t=n.get(e)??[],r=t[0];if(!r)continue;let a=t.filter(e=>!e.isDisabled),i=[...new Set(t.map(e=>e.value))],s=i.length>1;(s||0!==a.length)&&o.push({name:e,selectedValue:(a[0]??r).value,options:s?i:[],isPreset:s,location:r.location,siblings:t.map(({location:e,index:t,value:r})=>({location:e,index:t,value:r}))})}return o})({sources:[{location:"workspace",cookies:e.workspaceCookies},{location:"document",cookies:e.documentCookies}],shouldInclude:e=>(0,eu.filterGlobalCookie)({cookie:{...e,isDisabled:!1},url:v.value,disabledGlobalCookies:{}})})),k=(0,y.computed)(()=>{let t=e.operation["x-scalar-disable-parameters"]?.["global-cookies"]?.[e.exampleKey]??{};return x.value.map(e=>({name:e.name,value:e.selectedValue,globalRoute:{page:e.location,path:"cookies"},isReadonly:!0,isDisabled:t[e.name.toLowerCase()]??!1,presetOptions:e.isPreset?e.options:void 0}))}),w=(t,r)=>{let n=x.value[t];if(n)for(let t of n.siblings)e.eventBus.emit("cookie:upsert:cookie",{collectionType:t.location,index:t.index,payload:{isDisabled:t.value!==r}})},$=(0,y.computed)(()=>[...k.value??[],...c.value.cookie??[]]),P=(0,S.ref)("All"),Q=["Auth","Variables","Cookies","Headers","Query","Body"],C={All:(0,y.useId)(),Auth:(0,y.useId)(),Variables:(0,y.useId)(),Cookies:(0,y.useId)(),Headers:(0,y.useId)(),Query:(0,y.useId)(),Body:(0,y.useId)()},T=(0,y.computed)(()=>{let t=new Set(["All",...Q]);return c.value.path?.length||t.delete("Variables"),(0,em.canMethodHaveBody)(e.method)||t.delete("Body"),R.value&&t.delete("Auth"),[...t]}),A=(0,y.computed)(()=>T.value.reduce((e,t)=>(e[t]=C[t],e),{})),R=(0,y.computed)(()=>"modal"===e.layout&&!Object.keys(e.securitySchemes??{}).length),E=(0,y.computed)(()=>"modal"!==e.layout||!!(e.securityRequirements?.length||e.selectedSecurity.selectedSchemes.length)),V=(0,y.computed)(()=>e.operation.summary?e.operation.summary:e.path.replace(ef.REGEX.PROTOCOL,"")||t("apiClient.requestBlock.requestName")),j=e=>"All"===P.value||P.value===e;(0,y.watch)(()=>e.method,e=>{"Body"!==P.value||(0,em.canMethodHaveBody)(e)||(P.value="All")}),(0,y.watch)(()=>[e.method,e.path,e.exampleKey],()=>{n.value={},o.value={}});let _=t=>{if(!(t.target instanceof HTMLInputElement))return;let n=t.target.value;e.eventBus.emit("operation:update:meta",{meta:r.value,payload:{summary:n.trim()}})},M=(0,y.computed)(()=>({path:I("path",e.eventBus,r.value,{context:c.value.path??[]}),cookie:{...I("cookie",e.eventBus,r.value,{context:$.value??[],globalParameters:k.value.length}),selectPreset:w},header:I("header",e.eventBus,r.value,{context:g.value,defaultParameters:O.value.length}),query:I("query",e.eventBus,r.value,{context:c.value.query??[],onDeleteExpandedRow:i,onRenameExpandedRow:s})})),q=t=>e.eventBus.emit("operation:update:requestBody:contentType",{payload:{contentType:t.value},meta:r.value}),U=({payload:t,contentType:n})=>{let o="string"==typeof t?`update:requestBody:value-${n}`:void 0;e.eventBus.emit("operation:update:requestBody:value",{payload:t,contentType:n,meta:r.value},{debounceKey:o})},z=({payload:t,contentType:n})=>{let o=`update:requestBody:${n}-form-value`;e.eventBus.emit("operation:update:requestBody:formValue",{payload:t.map(e=>(0,eg.unpackProxyObject)(e,{depth:1})),contentType:n,meta:r.value},{debounceKey:o})},W=({contentType:t})=>{let r=(0,Y.getResolvedRef)(e.operation.requestBody),n=(0,f.getStructuredBodyCodec)(t);if(!r||!n)return;let o=(0,ep.getSchemaExampleFromBody)(r,t,e.requestBodyCompositionSelection);if(null==o)return;let a=(0,ev.getUniqueExampleName)(e.operation,"Generated from schema"),i={path:e.path,method:e.method,exampleKey:a};e.eventBus.emit("operation:create:draft-example",{documentName:e.documentSlug,meta:{path:e.path,method:e.method},exampleName:a}),e.eventBus.emit("operation:update:requestBody:contentType",{payload:{contentType:t},meta:i}),e.eventBus.emit("operation:update:requestBody:value",{payload:n.stringify(o),contentType:t,meta:i}),"modal"!==e.layout&&e.eventBus.emit("ui:navigate",{page:"example",documentSlug:e.documentSlug,path:e.path,method:e.method,exampleName:a})},L=(0,y.useId)(),H=(0,y.computed)(()=>[...e.workspaceCookies,...e.documentCookies]),ew=t=>e.eventBus.emit("operation:update:extension",{payload:t,meta:r.value}),e$=(0,y.computed)(()=>({All:t("apiClient.sectionFilter.all"),Auth:t("apiClient.sectionFilter.auth"),Variables:t("apiClient.sectionFilter.variables"),Cookies:t("apiClient.sectionFilter.cookies"),Headers:t("apiClient.sectionFilter.headers"),Query:t("apiClient.sectionFilter.query"),Body:t("apiClient.sectionFilter.body")}));return(r,n)=>((0,y.openBlock)(),(0,y.createBlock)(h.default,{"aria-label":(0,S.unref)(t)("apiClient.requestBlock.label",{name:e.operation.summary??""})},{title:(0,y.withCtx)(()=>[(0,y.createElementVNode)("div",ey,["modal"!==e.layout?((0,y.openBlock)(),(0,y.createElementBlock)("label",{key:0,class:"pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",for:(0,S.unref)(L)},null,8,eb)):(0,y.createCommentVNode)("",!0),"modal"!==e.layout?((0,y.openBlock)(),(0,y.createElementBlock)("input",{key:1,id:(0,S.unref)(L),class:"text-c-1 group-hover-input pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded pl-1.25 has-[:focus-visible]:outline md:-ml-1.25",placeholder:V.value,value:e.operation.summary,onBlur:_},null,40,eS)):((0,y.openBlock)(),(0,y.createElementBlock)("span",ex,(0,b.toDisplayString)(e.operation.summary),1))]),(0,y.createVNode)(p.default,{modelValue:P.value,"onUpdate:modelValue":n[0]||(n[0]=e=>P.value=e),filterIds:A.value,filters:T.value,labels:e$.value},null,8,["modelValue","filterIds","filters","labels"])]),default:(0,y.withCtx)(()=>[(0,y.createElementVNode)("div",{id:A.value.All,class:"request-section-content custom-scroll relative flex flex-1 flex-col",role:"All"===P.value?"tabpanel":"none"},[(0,y.withDirectives)((0,y.createVNode)((0,S.unref)(ec.default),{id:A.value.Auth,createAnySecurityScheme:"modal"!==e.layout,defaultOpen:E.value,environment:e.environment,eventBus:e.eventBus,meta:e.authMeta,options:e.options,proxyUrl:e.proxyUrl,securityRequirements:e.securityRequirements,securitySchemes:e.securitySchemes,selectedSecurity:e.selectedSecurity,selectedSecuritySchemes:e.selectedSecuritySchemes,server:e.server,title:(0,S.unref)(t)("apiClient.requestBlock.authentication")},null,8,["id","createAnySecurityScheme","defaultOpen","environment","eventBus","meta","options","proxyUrl","securityRequirements","securitySchemes","selectedSecurity","selectedSecuritySchemes","server","title"]),[[X.vShow,j("Auth")&&!R.value]]),(0,y.withDirectives)((0,y.createVNode)(N,(0,y.mergeProps)({id:A.value.Variables,environment:e.environment,eventBus:e.eventBus,exampleKey:e.exampleKey,rows:c.value.path??[],showAddRowPlaceholder:!1,title:(0,S.unref)(t)("apiClient.requestBlock.variables")}
12,(0,y.toHandlers)(M.value.path)),null,16,["id","environment","eventBus","exampleKey","rows","title"]),[[X.vShow,j("Variables")&&c.value.path?.length]]),(0,y.withDirectives)((0,y.createVNode)(N,(0,y.mergeProps)({id:A.value.Cookies,environment:e.environment,eventBus:e.eventBus,exampleKey:e.exampleKey,rows:$.value??[],showAddRowPlaceholder:!0,title:(0,S.unref)(t)("apiClient.requestBlock.cookies")},(0,y.toHandlers)(M.value.cookie)),null,16,["id","environment","eventBus","exampleKey","rows","title"]),[[X.vShow,j("Cookies")]]),(0,y.withDirectives)((0,y.createVNode)(N,(0,y.mergeProps)({id:A.value.Headers,environment:e.environment,eventBus:e.eventBus,exampleKey:e.exampleKey,rows:g.value??[],title:(0,S.unref)(t)("apiClient.requestBlock.headers")},(0,y.toHandlers)(M.value.header)),null,16,["id","environment","eventBus","exampleKey","rows","title"]),[[X.vShow,j("Headers")]]),(0,y.withDirectives)((0,y.createVNode)(N,(0,y.mergeProps)({id:A.value.Query,description:l.value?(0,S.unref)(t)("apiClient.requestBlock.queryStringDescription"):void 0,environment:e.environment,eventBus:e.eventBus,exampleKey:e.exampleKey,rows:c.value.query??[],showAddRowPlaceholder:!l.value,title:l.value?(0,S.unref)(t)("apiClient.requestBlock.queryString"):(0,S.unref)(t)("apiClient.requestBlock.queryParameters")},(0,y.toHandlers)(M.value.query)),null,16,["id","description","environment","eventBus","exampleKey","rows","showAddRowPlaceholder","title"]),[[X.vShow,j("Query")]]),(0,y.withDirectives)((0,y.createVNode)(m.default,{id:A.value.Body,defaultView:e.defaultRequestBodyView,environment:e.environment,exampleKey:e.exampleKey,openapiVersion:e.openapiVersion,requestBody:(0,S.unref)(Y.getResolvedRef)(e.operation.requestBody),requestBodyCompositionSelection:e.requestBodyCompositionSelection,title:(0,S.unref)(t)("apiClient.requestBlock.requestBody"),"onGenerate:example":W,"onUpdate:contentType":q,"onUpdate:formValue":z,"onUpdate:value":U},null,8,["id","defaultView","environment","exampleKey","openapiVersion","requestBody","requestBodyCompositionSelection","title"]),[[X.vShow,j("Body")&&(0,S.unref)(em.canMethodHaveBody)(e.method)]]),((0,y.openBlock)(!0),(0,y.createElementBlock)(y.Fragment,null,(0,y.renderList)(e.plugins,(t,r)=>((0,y.openBlock)(),(0,y.createBlock)((0,S.unref)(B.ScalarErrorBoundary),{key:r},{default:(0,y.withCtx)(()=>[t?.components?.request?(0,y.withDirectives)(((0,y.openBlock)(),(0,y.createBlock)((0,y.resolveDynamicComponent)(t.components.request.component),(0,y.mergeProps)({key:0,operation:e.operation},{ref_for:!0},t.components.request.additionalProps,{"onOperation:update:extension":ew}),null,16,["operation"])),[[X.vShow,"All"===P.value]]):(0,y.createCommentVNode)("",!0)]),_:2},1024))),128)),n[1]||(n[1]=(0,y.createElementVNode)("div",{class:"flex grow"},null,-1)),(0,y.withDirectives)((0,y.createVNode)(Z,{clientOptions:e.clientOptions,eventBus:e.eventBus,globalCookies:H.value,integration:"client",method:e.method,openapiVersion:e.openapiVersion,operation:e.operation,path:e.path,requestBodyCompositionSelection:e.requestBodyCompositionSelection,securitySchemes:e.selectedSecuritySchemes,selectedClient:e.selectedClient,selectedContentType:(0,S.unref)(Y.getResolvedRef)(e.operation.requestBody)?.["x-scalar-selected-content-type"]?.[e.exampleKey],selectedExample:e.exampleKey,selectedServer:e.server??void 0},null,8,["clientOptions","eventBus","globalCookies","method","openapiVersion","operation","path","requestBodyCompositionSelection","securitySchemes","selectedClient","selectedContentType","selectedExample","selectedServer"]),[[X.vShow,"All"===P.value]])],8,ek)]),_:1},8,["aria-label"]))}}),e$=(0,u.default)(ew,[["__scopeId","data-v-1bb88607"]]);e.s(["default",0,e$],152148);var eP=e.i(526883),eQ=e.i(690944),eC={class:"flex-1 px-2 py-1.5 whitespace-nowrap"},eT=(0,y.defineComponent)({__name:"DataTableText",props:{text:{}},setup:e=>(t,r)=>((0,y.openBlock)(),(0,y.createBlock)(eQ.default,{class:"relative flex"},{default:(0,y.withCtx)(()=>[(0,y.createElementVNode)("span",eC,[(0,y.renderSlot)(t.$slots,"default",{},()=>[(0,y.createTextVNode)((0,b.toDisplayString)(e.text),1)])])]),_:3}))});e.s(["default",0,eT],893930);var eB=["href"],eA=(0,y.defineComponent)({__name:"HelpfulLink",props:{href:{}},setup:e=>(t,r)=>((0,y.openBlock)(),(0,y.createElementBlock)("a",{class:"decoration-c-3 cursor-help underline underline-offset-2",href:e.href,rel:"noopener noreferrer",target:"_blank"},[(0,y.renderSlot)(t.$slots,"default")],8,eB))});e.s(["default",0,eA],103236);let eR={accept:{name:"Accept",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept"},"accept-ch":{name:"Accept-CH",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-CH"},"accept-ch-lifetime":{name:"Accept-CH-Lifetime",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-CH-Lifetime"},"accept-charset":{name:"Accept-Charset",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Charset"},"accept-encoding":{name:"Accept-Encoding",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding"},"accept-language":{name:"Accept-Language",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language"},"accept-patch":{name:"Accept-Patch",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Patch"},"accept-post":{name:"Accept-Post",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Post"},"accept-ranges":{name:"Accept-Ranges",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Ranges"}
12,"access-control-allow-credentials":{name:"Access-Control-Allow-Credentials",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials"},"access-control-allow-headers":{name:"Access-Control-Allow-Headers",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers"},"access-control-allow-methods":{name:"Access-Control-Allow-Methods",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods"},"access-control-allow-origin":{name:"Access-Control-Allow-Origin",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin"},"access-control-expose-headers":{name:"Access-Control-Expose-Headers",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers"},"access-control-max-age":{name:"Access-Control-Max-Age",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Max-Age"},"access-control-request-headers":{name:"Access-Control-Request-Headers",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Headers"},"access-control-request-method":{name:"Access-Control-Request-Method",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Method"},age:{name:"Age",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Age"},allow:{name:"Allow",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Allow"},"alt-svc":{name:"Alt-Svc",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Alt-Svc"},"alt-used":{name:"Alt-Used",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Alt-Used"},authorization:{name:"Authorization",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization"},"cache-control":{name:"Cache-Control",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control"},"clear-site-data":{name:"Clear-Site-Data",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data"},connection:{name:"Connection",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Connection"},"content-disposition":{name:"Content-Disposition",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition"},"content-dpr":{name:"Content-DPR",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-DPR"},"content-encoding":{name:"Content-Encoding",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding"},"content-language":{name:"Content-Language",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Language"},"content-length":{name:"Content-Length",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length"},"content-location":{name:"Content-Location",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Location"},"content-range":{name:"Content-Range",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range"},"content-security-policy":{name:"Content-Security-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy"},"content-security-policy-report-only":{name:"Content-Security-Policy-Report-Only",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only"},"content-type":{name:"Content-Type",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type"},cookie:{name:"Cookie",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cookie"},"critical-ch":{name:"Critical-CH",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Critical-CH"},"cross-origin-embedder-policy":{name:"Cross-Origin-Embedder-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy"},"cross-origin-opener-policy":{name:"Cross-Origin-Opener-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Opener-Policy"},"cross-origin-resource-policy":{name:"Cross-Origin-Resource-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Resource-Policy"},date:{name:"Date",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date"},"device-memory":{name:"Device-Memory",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Device-Memory"},digest:{name:"Digest",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Digest"},dnt:{name:"DNT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/DNT"},downlink:{name:"Downlink",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Downlink"},dpr:{name:"DPR",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/DPR"},"early-data":{name:"Early-Data",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Early-Data"},ect:{name:"ECT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ECT"},etag:{name:"ETag",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag"},expect:{name:"Expect",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect"},"expect-ct":{name:"Expect-CT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expect-CT"},expires:{name:"Expires",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Expires"},forwarded:{name:"Forwarded",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded"},from:{name:"From",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/From"},host:{name:"Host",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Host"},"if-match":{name:"If-Match",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match"},"if-modified-since":{name:"If-Modified-Since",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since"},"if-none-match":{name:"If-None-Match",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match"},"if-range":{name:"If-Range",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Range"},"if-unmodified-since":{name:"If-Unmodified-Since",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since"},"keep-alive":{name:"Keep-Alive",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive"},"large-allocation":{name:"Large-Allocation",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Large-Allocation"},"last-modified":{name:"Last-Modified",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified"},link:{name:"Link",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Link"},location:{name:"Location",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location"},"max-forwards":{name:"Max-Forwards",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Max-Forwards"},nel:{name:"NEL",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/NEL"},origin:{name:"Origin",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin"},"permissions-policy":{name:"Permissions-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy"},pragma:{name:"Pragma",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Pragma"},"proxy-authenticate":{name:"Proxy-Authenticate",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authenticate"},"proxy-authorization":{name:"Proxy-Authorization",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Proxy-Authorization"},range:{name:"Range",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range"},referer:{name:"Referer",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer"},"referrer-policy":{name:"Referrer-Policy",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy"},"retry-after":{name:"Retry-After",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After"},rtt:{name:"RTT",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/RTT"},"save-data":{name:"Save-Data",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Save-Data"},"sec-ch-prefers-reduced-motion":{name:"Sec-CH-Prefers-Reduced-Motion",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Reduced-Motion"},"sec-ch-prefers-reduced-transparency":{name:"Sec-CH-Prefers-Reduced-Transparency",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-Prefers-Reduced-Transparency"},"sec-ch-ua":{name:"Sec-CH-UA",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA"},"sec-ch-ua-arch":{name:"Sec-CH-UA-Arch",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Arch"},"sec-ch-ua-bitness":{name:"Sec-CH-UA-Bitness",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Bitness"},"sec-ch-ua-full-version":{name:"Sec-CH-UA-Full-Version",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Full-Version"},"sec-ch-ua-full-version-list":{name:"Sec-CH-UA-Full-Version-List",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Full-Version-List"},"sec-ch-ua-mobile":{name:"Sec-CH-UA-Mobile",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Mobile"},"sec-ch-ua-model":{name:"Sec-CH-UA-Model",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Model"},"sec-ch-ua-platform":{name:"Sec-CH-UA-Platform",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Platform"},"sec-ch-ua-platform-version":{name:"Sec-CH-UA-Platform-Version",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-CH-UA-Platform-Version"},"sec-fetch-dest":{name:"Sec-Fetch-Dest",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Dest"},"sec-fetch-mode":{name:"Sec-Fetch-Mode",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Mode"},"sec-fetch-site":{name:"Sec-Fetch-Site",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-Site"},"sec-fetch-user":{name:"Sec-Fetch-User",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Fetch-User"},"sec-gpc":{name:"Sec-GPC",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-GPC"},"sec-purpose":{name:"Sec-Purpose",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-Purpose"},"sec-websocket-accept":{name:"Sec-WebSocket-Accept",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Sec-WebSocket-Accept"}
12,server:{name:"Server",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server"},"server-timing":{name:"Server-Timing",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing"},"service-worker-navigation-preload":{name:"Service-Worker-Navigation-Preload",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Service-Worker-Navigation-Preload"},"set-cookie":{name:"Set-Cookie",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie"},sourcemap:{name:"SourceMap",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/SourceMap"},"strict-transport-security":{name:"Strict-Transport-Security",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security"},te:{name:"TE",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/TE"},"timing-allow-origin":{name:"Timing-Allow-Origin",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Timing-Allow-Origin"},tk:{name:"Tk",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Tk"},trailer:{name:"Trailer",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Trailer"},"transfer-encoding":{name:"Transfer-Encoding",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding"},upgrade:{name:"Upgrade",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade"},"upgrade-insecure-requests":{name:"Upgrade-Insecure-Requests",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Upgrade-Insecure-Requests"},"user-agent":{name:"User-Agent",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent"},vary:{name:"Vary",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Vary"},via:{name:"Via",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Via"},"viewport-width":{name:"Viewport-Width",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Viewport-Width"},"want-digest":{name:"Want-Digest",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Want-Digest"},warning:{name:"Warning",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Warning"},width:{name:"Width",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Width"},"www-authenticate":{name:"WWW-Authenticate",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/WWW-Authenticate"},"x-content-type-options":{name:"X-Content-Type-Options",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options"},"x-dns-prefetch-control":{name:"X-DNS-Prefetch-Control",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-DNS-Prefetch-Control"},"x-forwarded-for":{name:"X-Forwarded-For",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For"},"x-forwarded-host":{name:"X-Forwarded-Host",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Host"},"x-forwarded-proto":{name:"X-Forwarded-Proto",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto"},"x-frame-options":{name:"X-Frame-Options",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options"},"x-xss-protection":{name:"X-XSS-Protection",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection"},"cf-cache-status":{name:"Cf-Cache-Status",url:"https://developers.cloudflare.com/cache/concepts/default-cache-behavior/#cloudflare-cache-responses"},"cf-ray":{name:"Cf-Ray",url:"https://developers.cloudflare.com/fundamentals/get-started/reference/http-request-headers/#cf-ray"},"report-to":{name:"Report-To",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-to"},"x-cloud-trace-context":{name:"X-Cloud-Trace-Context",url:"https://cloud.google.com/trace/docs/trace-context#legacy-http-header"},"speculation-rules":{name:"Speculation-Rules",url:"https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Speculation-Rules"}};var eE={key:0,class:"max-h-[calc(100%-32px)] overflow-y-auto"},eV={key:1,class:"text-c-3 bg-b-1 flex min-h-[64px] items-center justify-center border-t px-4 text-sm"},eZ=(0,y.defineComponent)({__name:"Headers",props:{headers:{}},setup(e){let{translate:t}=(0,d.useLocalization)(),r=e=>eR[e.toLowerCase()];return(n,o)=>((0,y.openBlock)(),(0,y.createBlock)((0,S.unref)(v.default),{class:"overflow-auto",defaultOpen:!1,itemCount:e.headers.length},{title:(0,y.withCtx)(()=>[(0,y.renderSlot)(n.$slots,"title")]),default:(0,y.withCtx)(()=>[e.headers.length?((0,y.openBlock)(),(0,y.createElementBlock)("div",eE,[(0,y.createVNode)((0,S.unref)(O.default),{columns:["minmax(auto, min-content)","minmax(50%, 1fr)"],scroll:""},{default:(0,y.withCtx)(()=>[(0,y.createVNode)((0,S.unref)(g.default),{class:"sr-only !block"},{default:(0,y.withCtx)(()=>[(0,y.createVNode)((0,S.unref)(eP.default),null,{default:(0,y.withCtx)(()=>[(0,y.createTextVNode)((0,b.toDisplayString)((0,S.unref)(t)("apiClient.headers.headerKey")),1)]),_:1}),(0,y.createVNode)((0,S.unref)(eP.default),null,{default:(0,y.withCtx)(()=>[(0,y.createTextVNode)((0,b.toDisplayString)((0,S.unref)(t)("apiClient.headers.headerValue")),1)]),_:1})]),_:1}),((0,y.openBlock)(!0),(0,y.createElementBlock)(y.Fragment,null,(0,y.renderList)(e.headers,e=>((0,y.openBlock)(),(0,y.createBlock)((0,S.unref)(g.default),{key:e.name,class:"group/row text-c-1"},{default:(0,y.withCtx)(()=>[(0,y.createVNode)((0,S.unref)(eT),{class:"bg-b-1 sticky left-0 z-1 max-w-full group-first/row:border-t-0"},{default:(0,y.withCtx)(()=>["string"==typeof r(e.name)?.url?((0,y.openBlock)(),(0,y.createBlock)(eA,{key:0,class:"decoration-c-3",href:r(e.name).url},{default:(0,y.withCtx)(()=>[(0,y.createTextVNode)((0,b.toDisplayString)(e.name),1)]),_:2},1032,["href"])):((0,y.openBlock)(),(0,y.createElementBlock)(y.Fragment,{key:1},[(0,y.createTextVNode)((0,b.toDisplayString)(e.name),1)],64))]),_:2},1024),(0,y.createVNode)((0,S.unref)(eT),{class:"z-0 group-first/row:border-t-0",text:e.value},null,8,["text"])]),_:2},1024))),128))]),_:1})])):((0,y.openBlock)(),(0,y.createElementBlock)("div",eV,(0,b.toDisplayString)((0,S.unref)(t)("apiClient.headers.noHeaders")),1))]),_:3},8,["itemCount"]))}});e.s(["default",0,eZ],435187);var ej=e.i(283888),eX=e.i(35381),e_=e.i(439531);function eM({data:e,headers:t}){let r=(0,e_.resolveResponseMimeType)(t.find(e=>"content-type"===e.name.toLowerCase())?.value);return{mimeType:r,attachmentFilename:function(e){let t="";if(e){let r=e.match(/filename\*=UTF-8''([^;]+)/)?.[1]??e.match(/filename\s*=\s*"?([^";]+)"?/)?.[1];r&&(t=(e=>{try{return decodeURIComponent(e)}catch{return e}})(r.trim()))}return t}(t.find(e=>"content-disposition"===e.name.toLowerCase())?.value??""),dataUrl:e instanceof Blob?URL.createObjectURL(e):"string"==typeof e?URL.createObjectURL(new Blob([e],{type:r?r.toString():void 0})):e instanceof Object&&Object.keys(e).length?URL.createObjectURL(new Blob([JSON.stringify(e)],{type:r?r.toString():void 0})):""}}e.s(["processResponseBody",0,eM],664612),e.i(37055);var eq=e.i(965487),eN=["aria-label","download","href"],eD={class:"sr-only"},eU=(0,y.defineComponent)({__name:"ResponseBodyDownload",props:{href:{},type:{},filename:{}},setup(e){let{translate:t}=(0,d.useLocalization)(),r=(0,y.computed)(()=>{let t=(0,eX.getMediaTypeConfig)(e.type??"")?.extension??".unknown";return e.filename?e.filename:`response${t}`});return(n,o)=>((0,y.openBlock)(),(0,y.createElementBlock)("a",{"aria-label":(0,S.unref)(t)("apiClient.responseBodyDownload.download"),class:"text-c-3 text-xxs hover:bg-b-3 flex items-center gap-1 rounded px-1.5 py-0.5 no-underline",download:`${r.value}`,href:e.href,onClick:o[0]||(o[0]=(0,X.withModifiers)(()=>{},["stop"]))},[(0,y.createVNode)((0,S.unref)(eq.ScalarIcon),{icon:"Download",size:"xs"}),(0,y.createElementVNode)("span",null,[(0,y.createElementVNode)("span",null,(0,b.toDisplayString)((0,S.unref)(t)("apiClient.responseBodyDownload.label")),1),(0,y.createElementVNode)("span",eD,(0,b.toDisplayString)((0,S.unref)(t)("apiClient.responseBodyDownload.body")),1)])],8,eN))}});e.s(["default",0,eU],160003);var ez={class:"flex justify-center px-2 py-3"},eW={class:"text-c-3 p-2 text-sm"},eL=(0,u.default)({},[["render",function(e,t){return(0,y.openBlock)(),(0,y.createElementBlock)("div",ez,[(0,y.createElementVNode)("div",eW,[(0,y.renderSlot)(e.$slots,"default")])])}]]);function eH(e){return 32===e||9===e}function eI(e){return 10===e||13===e}function eY(e){return e>=48&&e<=57}(t=a||(a={}))[t.lineFeed=10]="lineFeed",t[t.carriageReturn=13]="carriageReturn",t[t.space=32]="space",t[t._
120=48]="_0",t[t._1=49]="_1",t[t._2=50]="_2",t[t._3=51]="_3",t[t._4=52]="_4",t[t._5=53]="_5",t[t._6=54]="_6",t[t._7=55]="_7",t[t._8=56]="_8",t[t._9=57]="_9",t[t.a=97]="a",t[t.b=98]="b",t[t.c=99]="c",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.g=103]="g",t[t.h=104]="h",t[t.i=105]="i",t[t.j=106]="j",t[t.k=107]="k",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.p=112]="p",t[t.q=113]="q",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.v=118]="v",t[t.w=119]="w",t[t.x=120]="x",t[t.y=121]="y",t[t.z=122]="z",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.asterisk=42]="asterisk",t[t.backslash=92]="backslash",t[t.closeBrace=125]="closeBrace",t[t.closeBracket=93]="closeBracket",t[t.colon=58]="colon",t[t.comma=44]="comma",t[t.dot=46]="dot",t[t.doubleQuote=34]="doubleQuote",t[t.minus=45]="minus",t[t.openBrace=123]="openBrace",t[t.openBracket=91]="openBracket",t[t.plus=43]="plus",t[t.slash=47]="slash",t[t.formFeed=12]="formFeed",t[t.tab=9]="tab";let eG=Array(20).fill(0).map((e,t)=>" ".repeat(t)),eF={" ":{"\n":Array(200).fill(0).map((e,t)=>"\n"+" ".repeat(t)),"\r":Array(200).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":Array(200).fill(0).map((e,t)=>"\r\n"+" ".repeat(t))}," ":{"\n":Array(200).fill(0).map((e,t)=>"\n"+" ".repeat(t)),"\r":Array(200).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":Array(200).fill(0).map((e,t)=>"\r\n"+" ".repeat(t))}},eK=["\n","\r","\r\n"];function eJ(e,t){let r="";for(let n=0;n<t;n++)r+=e;return r}function e0(e,t){return -1!=="\r\n".indexOf(e.charAt(t))}(i||(i={})).DEFAULT={allowTrailingComma:!1},(r=s||(s={}))[r.None=0]="None",r[r.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",r[r.UnexpectedEndOfString=2]="UnexpectedEndOfString",r[r.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",r[r.InvalidUnicode=4]="InvalidUnicode",r[r.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",r[r.InvalidCharacter=6]="InvalidCharacter",(n=l||(l={}))[n.OpenBraceToken=1]="OpenBraceToken",n[n.CloseBraceToken=2]="CloseBraceToken",n[n.OpenBracketToken=3]="OpenBracketToken",n[n.CloseBracketToken=4]="CloseBracketToken",n[n.CommaToken=5]="CommaToken",n[n.ColonToken=6]="ColonToken",n[n.NullKeyword=7]="NullKeyword",n[n.TrueKeyword=8]="TrueKeyword",n[n.FalseKeyword=9]="FalseKeyword",n[n.StringLiteral=10]="StringLiteral",n[n.NumericLiteral=11]="NumericLiteral",n[n.LineCommentTrivia=12]="LineCommentTrivia",n[n.BlockCommentTrivia=13]="BlockCommentTrivia",n[n.LineBreakTrivia=14]="LineBreakTrivia",n[n.Trivia=15]="Trivia",n[n.Unknown=16]="Unknown",n[n.EOF=17]="EOF",(o=c||(c={}))[o.InvalidSymbol=1]="InvalidSymbol",o[o.InvalidNumberFormat=2]="InvalidNumberFormat",o[o.PropertyNameExpected=3]="PropertyNameExpected",o[o.ValueExpected=4]="ValueExpected",o[o.ColonExpected=5]="ColonExpected",o[o.CommaExpected=6]="CommaExpected",o[o.CloseBraceExpected=7]="CloseBraceExpected",o[o.CloseBracketExpected=8]="CloseBracketExpected",o[o.EndOfFileExpected=9]="EndOfFileExpected",o[o.InvalidCommentToken=10]="InvalidCommentToken",o[o.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",o[o.UnexpectedEndOfString=12]="UnexpectedEndOfString",o[o.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",o[o.InvalidUnicode=14]="InvalidUnicode",o[o.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",o[o.InvalidCharacter=16]="InvalidCharacter";var e1={tabSize:2,insertSpaces:!0,eol:"\n"};function e2(e){try{var t;let r=(t=void 0,function(e,t,r){let n,o,a,i,s,l;if(t){for(s=(i=t.offset)+t.length,a=i;a>0&&!e0(e,a-1);)a--;let l=s;for(;l<e.length&&!e0(e,l);)l++;n=function(e,t){let r=0,n=0,o=t.tabSize||4;for(;r<e.length;){let t=e.charAt(r);if(t===eG[1])n++;else if(" "===t)n+=o;else break;r++}return Math.floor(n/o)}(o=e.substring(a,l),r)}else o=e,n=0,a=0,i=0,s=e.length;let c=function(e,t){for(let e=0;e<t.length;e++){let r=t.charAt(e);if("\r"===r){if(e+1<t.length&&"\n"===t.charAt(e+1))return"\r\n";return"\r"}if("\n"===r)return"\n"}return e&&e.eol||"\n"}(r,e),u=eK.includes(c),d=0,h=0,p=" "===(l=r.insertSpaces?eG[r.tabSize||4]??eJ(eG[1],r.tabSize||4):" ")?" ":" ",f=function(e,t=!1){let r=e.length,n=0,o="",a=0,i=16,s=0,l=0,c=0,u=0,d=0;function h(){if(o="",d=0,a=n,l=s,u=c,n>=r)return a=r,i=17;let t=e.charCodeAt(n);if(eH(t)){do n++,o+=String.fromCharCode(t),t=e.charCodeAt(n);while(eH(t))return i=15}if(eI(t))return n++,o+=String.fromCharCode(t),13===t&&10===e.charCodeAt(n)&&(n++,o+="\n"),s++,c=n,i=14;switch(t){case 123:return n++,i=1;case 125:return n++,i=2;case 91:return n++,i=3;case 93:return n++,i=4;case 58:return n++,i=6;case 44:return n++,i=5;case 34:return n++,o=function(){let t="",o=n;for(;;){if(n>=r){t+=e.substring(o,n),d=2;break}let a=e.charCodeAt(n);if(34===a){t+=e.substring(o,n),n++;break}if(92===a){if(t+=e.substring(o,n),++n>=r){d=2;break}switch(e.charCodeAt(n++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+=" ";break;case 117:let a=function(t){let r=0,o=0;for(;r<4||!t;){let t=e.charCodeAt(n);if(t>=48&&t<=57)o=16*o+t-48;else if(t>=65&&t<=70)o=16*o+t-65+10;else if(t>=97&&t<=102)o=16*o+t-97+10;else break;n++,r++}return r<4&&(o=-1),o}(!0);a>=0?t+=String.fromCharCode(a):d=4;break;default:d=5}o=n;continue}if(a>=0&&a<=31)if(eI(a)){t+=e.substring(o,n),d=2;break}else d=6;n++}return t}(),i=10;case 47:let h=n-1;if(47===e.charCodeAt(n+1)){for(n+=2;n<r&&!eI(e.charCodeAt(n));)n++;return o=e.substring(h,n),i=12}if(42===e.charCodeAt(n+1)){n+=2;let t=r-1,a=!1;for(;n<t;){let t=e.charCodeAt(n);if(42===t&&47===e.charCodeAt(n+1)){n+=2,a=!0;break}n++,eI(t)&&(13===t&&10===e.charCodeAt(n)&&n++,s++,c=n)}return a||(n++,d=1),o=e.substring(h,n),i=13}return o+=String.fromCharCode(t),n++,i=16;case 45:if(o+=String.fromCharCode(t),++n===r||!eY(e.charCodeAt(n)))return i=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=function(){let t=n;if(48===e.charCodeAt(n))n++;else for(n++;n<e.length&&eY(e.charCodeAt(n));)n++;if(n<e.length&&46===e.charCodeAt(n)){if(!(++n<e.length&&eY(e.charCodeAt(n))))return d=3,e.substring(t,n);for(n++;n<e.length&&eY(e.charCodeAt(n));)n++}let r=n;if(n<e.length&&(69===e.charCodeAt(n)||101===e.charCodeAt(n)))if((++n<e.length&&43===e.charCodeAt(n)||45===e.charCodeAt(n))&&n++,n<e.length&&eY(e.charCodeAt(n))){for(n++;n<e.length&&eY(e.charCodeAt(n));)n++;r=n}else d=3;return e.substring(t,r)}(),i=11;default:for(;n<r&&function(e){if(eH(e)||eI(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}(t);)n++,t=e.charCodeAt(n);if(a!==n){switch(o=e.substring(a,n)){case"true":return i=8;case"false":return i=9;case"null":return i=7}return i=16}return o+=String.fromCharCode(t),n++,i=16}}return{setPosition:function(e){n=e,o="",a=0,i=16,d=0},getPosition:()=>n,scan:t?function(){let e;do e=h();while(e>=12&&e<=15)return e}:h,getToken:()=>i,getTokenValue:()=>
12o,getTokenOffset:()=>a,getTokenLength:()=>n-a,getTokenStartLine:()=>l,getTokenStartCharacter:()=>a-u,getTokenError:()=>d}}(o,!1),m=!1;function O(){if(d>1)return eJ(c,d)+eJ(l,n+h);let e=l.length*(n+h);return!u||e>eF[p][c].length?c+eJ(l,n+h):e<=0?c:eF[p][c][e]}function g(){let e=f.scan();for(d=0;15===e||14===e;)14===e&&r.keepLines?d+=1:14===e&&(d=1),e=f.scan();return m=16===e||0!==f.getTokenError(),e}let v=[];function y(r,n,o){!m&&(!t||n<s&&o>i)&&e.substring(n,o)!==r&&v.push({offset:n,length:o-n,content:r})}let b=g();if(r.keepLines&&d>0&&y(eJ(c,d),0,0),17!==b){let e=f.getTokenOffset()+a;y(l.length*n<20&&r.insertSpaces?eG[l.length*n]:eJ(l,n),a,e)}for(;17!==b;){let e=f.getTokenOffset()+f.getTokenLength()+a,t=g(),n="",o=!1;for(;0===d&&(12===t||13===t);){let r=f.getTokenOffset()+a;y(eG[1],e,r),e=f.getTokenOffset()+f.getTokenLength()+a,n=(o=12===t)?O():"",t=g()}if(2===t)1!==b&&h--,r.keepLines&&d>0||!r.keepLines&&1!==b?n=O():r.keepLines&&(n=eG[1]);else if(4===t)3!==b&&h--,r.keepLines&&d>0||!r.keepLines&&3!==b?n=O():r.keepLines&&(n=eG[1]);else{switch(b){case 3:case 1:h++,n=r.keepLines&&d>0||!r.keepLines?O():eG[1];break;case 5:n=r.keepLines&&d>0||!r.keepLines?O():eG[1];break;case 12:n=O();break;case 13:d>0?n=O():o||(n=eG[1]);break;case 6:r.keepLines&&d>0?n=O():o||(n=eG[1]);break;case 10:r.keepLines&&d>0?n=O():6!==t||o||(n="");break;case 7:case 8:case 9:case 11:case 2:case 4:r.keepLines&&d>0?n=O():12!==t&&13!==t||o?5!==t&&17!==t&&(m=!0):n=eG[1];break;case 16:m=!0}d>0&&(12===t||13===t)&&(n=O())}17===t&&(n=r.keepLines&&d>0?O():r.insertFinalNewline?c:""),y(n,e,f.getTokenOffset()+a),b=t}return v}(e,t,e1));if(r.length>0)return function(e,t){let r=t.slice(0).sort((e,t)=>{let r=e.offset-t.offset;return 0===r?e.length-t.length:r}),n=e.length;for(let t=r.length-1;t>=0;t--){let a=r[t];if(a.offset+a.length<=n){var o;o=e,e=o.substring(0,a.offset)+a.content+o.substring(a.offset+a.length)}else throw Error("Overlapping edit");n=a.offset}return e}(e,r)}catch{}return e}var e8=e.i(511735);e.i(530580);var e5=e.i(179935);e.i(868255);var e4=e.i(588395),e3=e.i(329808),e6=e.i(823845),e9={class:"scalar-code-block group/code-block relative grid min-h-0 overflow-hidden p-px outline-none has-focus-visible:outline","data-testid":"response-body-raw"},e7={class:"custom-scroll relative pr-1",tabindex:"0"},te={key:0,class:"absolute top-2 right-2 flex items-center gap-1.5 opacity-0 transition-opacity duration-150 group-hover/code-block:opacity-100 group-has-focus-visible/code-block:opacity-100"},tt=(0,y.defineComponent)({__name:"ResponseBodyRaw",props:{content:{},language:{},prettyPrintJson:{type:Boolean}},setup(e){let t=(0,S.ref)(null),r=(0,y.useId)(),n=(0,S.ref)(!1),o=(0,y.computed)(()=>{let{content:t,language:r,prettyPrintJson:n=!1}=e;return"string"!=typeof t?null==t?"":String(t):n&&"json"===r?e2(t):t}),a=(0,y.computed)(()=>n.value?[e4.EditorView.lineWrapping]:[]),{codeMirror:i}=(0,e3.useCodeMirror)({codeMirrorRef:t,readOnly:!0,lineNumbers:!0,content:(0,S.toRef)(o),language:(0,S.toRef)(()=>e.language),forceFoldGutter:!0,extensions:a}),s=()=>i.value?.state.doc.toString()||"",l=()=>{n.value=!n.value};return(e,o)=>((0,y.openBlock)(),(0,y.createElementBlock)("div",e9,[(0,y.createElementVNode)("div",e7,[(0,y.createElementVNode)("div",{ref_key:"codeMirrorRef",ref:t},null,512)]),s()?((0,y.openBlock)(),(0,y.createElementBlock)("div",te,[(0,y.createVNode)((0,S.unref)(e5.ScalarIconButton),{class:"bg-b-2 text-c-2 hover:text-c-1 absolute right-18",icon:(0,S.unref)(e8.ScalarIconArrowElbowDownLeft),"aria-pressed":n.value,"aria-label":n.value?"Disable line wrap":"Wrap lines",label:n.value?"Disable line wrap":"Wrap lines",size:"sm",tooltip:"",variant:"ghost",onClick:l},null,8,["icon","aria-pressed","aria-label","label"]),(0,y.createVNode)((0,S.unref)(e6.ScalarCodeBlockCopy),{"aria-controls":(0,S.unref)(r),content:s()},null,8,["aria-controls","content"])])):(0,y.createCommentVNode)("",!0)]))}}),tr=(0,u.default)(tt,[["__scopeId","data-v-6e055eb2"]]),tn=["src"],to=["src","type"],ta=["src","type"],ti=["sandbox","src"],ts=(0,y.defineComponent)({__name:"ResponseBodyPreview",props:{src:{},type:{},mode:{},alpha:{type:Boolean,default:!1},content:{}},setup(e){let{translate:t}=(0,d.useLocalization)(),r=(0,y.computed)(()=>{let t=e.content;return"string"==typeof t?t:null==t?"":String(t)}),n=(0,y.computed)(()=>r.value.split("\n").map(e=>e.trim()).filter(e=>e.length>0).map(e=>e2(e)).join("\n\n")),o=(0,y.computed)(()=>
12{if(!e.src)return"";if(/^data:/i.test(e.src))return/^data:(?:(?:image|video|audio)\/[a-z0-9.+-]+|application\/pdf|application\/octet-stream)[;,]/i.test(e.src)?e.src:"";try{let t=new URL(e.src);if("blob:"===t.protocol||"http:"===t.protocol||"https:"===t.protocol)return e.src}catch{}return""}),a=(0,S.ref)(!1),i=(0,y.computed)(()=>"application/pdf"===e.type.trim().toLowerCase());return(0,y.watch)(()=>e.src,()=>a.value=!1),(s,l)=>"json"===e.mode?((0,y.openBlock)(),(0,y.createBlock)(tr,{key:0,content:r.value,language:"json",prettyPrintJson:""},null,8,["content"])):"ndjson"===e.mode?((0,y.openBlock)(),(0,y.createBlock)(tr,{key:1,content:n.value,language:"json"},null,8,["content"])):!a.value&&o.value?((0,y.openBlock)(),(0,y.createElementBlock)("div",{key:2,class:(0,b.normalizeClass)(["flex justify-center overflow-auto rounded-b",{"bg-preview p-2":e.alpha}])},["image"===e.mode?((0,y.openBlock)(),(0,y.createElementBlock)("img",{key:0,class:(0,b.normalizeClass)(["h-full max-w-full",{rounded:e.alpha}]),referrerpolicy:"no-referrer",src:o.value,onError:l[0]||(l[0]=e=>a.value=!0)},null,42,tn)):"video"===e.mode?((0,y.openBlock)(),(0,y.createElementBlock)("video",{key:1,autoplay:"",controls:"",referrerpolicy:"no-referrer",width:"100%",onError:l[1]||(l[1]=e=>a.value=!0)},[(0,y.createElementVNode)("source",{src:o.value,type:e.type},null,8,to)],32)):"audio"===e.mode?((0,y.openBlock)(),(0,y.createElementBlock)("audio",{key:2,class:"my-12",controls:"",referrerpolicy:"no-referrer",onError:l[2]||(l[2]=e=>a.value=!0)},[(0,y.createElementVNode)("source",{src:o.value,type:e.type},null,8,ta)],32)):((0,y.openBlock)(),(0,y.createElementBlock)("iframe",{key:3,class:"aspect-[4/3] w-full border-0",referrerpolicy:"no-referrer",sandbox:i.value?void 0:"",src:o.value},null,8,ti))],2)):((0,y.openBlock)(),(0,y.createBlock)(eL,{key:3},{default:(0,y.withCtx)(()=>[(0,y.createTextVNode)((0,b.toDisplayString)((0,S.unref)(t)("apiClient.responseBodyPreview.previewUnavailable")),1)]),_:1}))}}),tl=(0,u.default)(ts,[["__scopeId","data-v-a9193a63"]]),tc={class:"text-c-3 text-xxs -my-1 flex justify-center gap-0.5 rounded p-0.5"},tu=(0,y.defineComponent)({__name:"ResponseBodyToggle",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e){let{translate:t}=(0,d.useLocalization)();return(r,n)=>((0,y.openBlock)(),(0,y.createElementBlock)("div",tc,[(0,y.createElementVNode)("button",{class:(0,b.normalizeClass)(["hover:bg-b-3 rounded px-1",{"bg-b-3 text-c-1 cursor-default":e.modelValue}]),type:"button",onClick:n[0]||(n[0]=(0,X.withModifiers)(e=>r.$emit("update:modelValue",!0),["stop"]))},(0,b.toDisplayString)((0,S.unref)(t)("apiClient.responseBodyToggle.preview")),3),(0,y.createElementVNode)("button",{class:(0,b.normalizeClass)(["hover:bg-b-3 rounded px-1",{"bg-b-3 text-c-1 cursor-default":!e.modelValue}]),type:"button",onClick:n[1]||(n[1]=(0,X.withModifiers)(e=>r.$emit("update:modelValue",!1),["stop"]))},(0,b.toDisplayString)((0,S.unref)(t)("apiClient.responseBodyToggle.raw")),3)]))}}),td={key:0,class:"bg-b-1 flex max-h-[calc(100%-32px)] flex-col overflow-hidden"},th={class:"box-content flex min-h-8 items-center justify-between border-y px-3"},tp={class:"text-xxs font-code leading-5"},tf=(0,y.defineComponent)({__name:"ResponseBody",props:{title:{},layout:{},data:{},headers:{},plugins:{default:()=>[]}},setup(e){let{translate:t}=(0,d.useLocalization)(),r=(0,S.ref)(!0),n=(0,y.computed)(()=>eM({data:e.data,headers:e.headers})),o=(0,y.computed)(()=>n.value.mimeType.essence),a=(0,y.computed)(()=>(0,eX.getMediaTypeConfig)(o.value)),i=(0,y.computed)(()=>(0,ej.resolveResponseBodyHandler)(o.value,e.plugins)),s=(0,y.computed)(()=>!!i.value?.rawComponent||!!i.value?.decode||!!a.value?.raw),l=(0,y.computed)(()=>!!i.value?.previewComponent||!!a.value?.preview),c=(0,y.computed)(()=>s.value&&l.value),u=(0,y.computed)(()=>r.value||!c.value),h=(0,y.computed)(()=>!r.value||!c.value),p=(0,y.computed)(()=>i.value?.language??a.value?.language);return(d,f)=>((0,y.openBlock)(),(0,y.createBlock)((0,S.unref)(v.default),{class:"max-h-content overflow-y-hidden",isStatic:"reference"===e.layout},(0,y.createSlots)({title:(0,y.withCtx)(()=>
12[(0,y.createTextVNode)((0,b.toDisplayString)(e.title),1)]),default:(0,y.withCtx)(()=>[e.data?((0,y.openBlock)(),(0,y.createElementBlock)("div",td,[(0,y.createElementVNode)("div",th,[(0,y.createElementVNode)("span",tp,(0,b.toDisplayString)(o.value),1),c.value?((0,y.openBlock)(),(0,y.createBlock)(tu,{key:0,modelValue:r.value,"onUpdate:modelValue":f[0]||(f[0]=e=>r.value=e)},null,8,["modelValue"])):(0,y.createCommentVNode)("",!0)]),i.value?.previewComponent&&l.value&&u.value?((0,y.openBlock)(),(0,y.createBlock)((0,y.resolveDynamicComponent)(i.value.previewComponent),{key:`plugin-preview-${n.value.dataUrl}`,content:e.data,contentType:o.value,dataUrl:n.value.dataUrl},null,8,["content","contentType","dataUrl"])):a.value?.preview&&u.value?((0,y.openBlock)(),(0,y.createBlock)(tl,{key:`preview-${n.value.dataUrl}`,alpha:a.value.alpha,content:e.data,mode:a.value.preview,src:n.value.dataUrl,type:o.value},null,8,["alpha","content","mode","src","type"])):(0,y.createCommentVNode)("",!0),i.value?.rawComponent&&s.value&&h.value?((0,y.openBlock)(),(0,y.createBlock)((0,y.resolveDynamicComponent)(i.value.rawComponent),{key:`plugin-raw-${n.value.dataUrl}`,content:e.data,contentType:o.value},null,8,["content","contentType"])):s.value&&h.value&&!i.value?.rawComponent?((0,y.openBlock)(),(0,y.createBlock)(tr,{key:`raw-${n.value.dataUrl}`,content:e.data,language:p.value},null,8,["content","language"])):(0,y.createCommentVNode)("",!0),s.value||l.value?(0,y.createCommentVNode)("",!0):((0,y.openBlock)(),(0,y.createBlock)(eL,{key:4},{default:(0,y.withCtx)(()=>[(0,y.createTextVNode)((0,b.toDisplayString)((0,S.unref)(t)("apiClient.responseBody.binaryFile")),1)]),_:1}))])):(0,y.createCommentVNode)("",!0)]),_:2},[e.data&&n.value.dataUrl?{name:"actions",fn:(0,y.withCtx)(()=>[(0,y.createVNode)(eU,{filename:n.value.attachmentFilename,href:n.value.dataUrl,type:n.value.mimeType?.essence},null,8,["filename","href","type"])]),key:"0"}:void 0]),1032,["isStatic"]))}}),tm=(0,u.default)(tf,[["__scopeId","data-v-f09bb250"]]);e.s(["default",0,tm],569390)},212983,e=>{"use strict";var t=e.i(142653),r=e.i(193141),n=e.i(552375),o=e.i(998926),a=e.i(819349),i=e.i(526883),s=e.i(957593),l=e.i(385),c=e.i(992062),u=e.i(905282),d=e.i(672498),h=e.i(986472),p=e.i(224041);e.i(761626);var f=e.i(875418),m=e.i(112111),O=e.i(80250),g=e.i(562649);e.i(453217);var v=e.i(989880);e.i(917885);var y=e.i(749377),b=e.i(618024),S=e.i(849856);e.i(37055);var x=e.i(965487);e.i(530580);var k=e.i(179935);e.i(766688);var w=e.i(575331),$=e.i(469254),P=e.i(61397),Q=e.i(932615);e.i(678661);var C=e.i(823845);e.i(132605);var T=e.i(946976),T=T;let B={"multipart/form-data":"Multipart Form","application/x-www-form-urlencoded":"Form URL Encoded","application/octet-stream":"Binary File","application/json":"JSON","application/xml":"XML","application/yaml":"YAML","application/edn":"EDN",other:"Other",none:"None"};var A=e.i(734098),R=e.i(553311),E=e.i(845141),V=e.i(349254),Z=e.i(520073),j={class:"flex items-center gap-1"},X={key:0,class:"text-c-3 flex min-h-10 w-full items-center justify-center border-t p-2 text-sm"},_={key:1,class:"flex items-center justify-center overflow-hidden border-t p-1.5"},M={class:"text-c-2 w-full max-w-full overflow-hidden rounded border px-1.5 py-1 text-xs whitespace-nowrap"},q={key:1,class:"group/code-block relative border-t"},N=(0,f.defineComponent)({__name:"RequestBody",props:{requestBody:{},exampleKey:{},title:{},environment:{},openapiVersion:{},requestBodyCompositionSelection:{},defaultView:{default:"raw"}},emits:["update:contentType","update:value","update:formValue","generate:example"],setup(e,{emit:t}){let{translate:N}=(0,r.useLocalization)(),D={"application/json":"json","application/xml":"xml","application/yaml":"yaml"},U=(0,f.computed)(()=>(0,$.getSelectedBodyContentType)(e.requestBody,e.exampleKey)??"none"),z=(0,f.computed)(()=>(0,A.isXmlMediaType)(U.value)?"xml":D[U.value]??"plaintext"),W=e=>(0,P.parseMimeType)(e).essence,L=(0,f.computed)(()=>({...B,"multipart/form-data":N("apiClient.requestBody.multipartForm"),"application/x-www-form-urlencoded":N("apiClient.requestBody.formUrlEncoded"),"application/octet-stream":N("apiClient.requestBody.binaryFile"),other:N("apiClient.requestBody.other"),none:N("apiClient.requestBody.none")})),H=(0,f.computed)(()=>[...(0,S.objectEntries)(L.value).map(([e,t])=>({id:e,label:t})),...Object.keys(e.requestBody?.content??{}).filter(e=>!(e in B)&&!(W(e)in B)).map(e=>({id:e,label:W(e)}))]),I=(0,f.computed)({get:()=>{let e=H.value.find(e=>e.id===U.value);if(e)return e;let t=W(U.value),r=L.value[t]??t;return{id:U.value,label:r}}
12,set:e=>{t("update:contentType",{value:e.id})}}),Y=(0,f.computed)(()=>e.requestBody&&(0,w.getExampleFromBody)(e.requestBody,U.value,e.exampleKey,e.requestBodyCompositionSelection,e.openapiVersion)),G=(0,f.computed)(()=>{if(!Y.value)return"";let e=(0,E.getExampleValue)(Y.value),t=(0,E.getExplicitExampleText)(e,U.value,2);if(void 0!==t)return t;let r=e?.value;return"string"==typeof r?r:JSON.stringify(r,null,2)}),F=(0,f.computed)(()=>V.resolve.schema(e.requestBody?.content?.[U.value]?.schema??e.requestBody?.content?.[U.value]?.itemSchema)),K=(0,f.computed)(()=>"none"===U.value?void 0:(0,u.getStructuredBodyCodec)(U.value)),J=(0,f.computed)(()=>{let e=K.value;if(!e)return{ok:!1};let t=(0,E.getExampleValue)(Y.value??void 0);if(Y.value?.dataValue!==void 0)return{ok:!0,value:Y.value.dataValue};let r=t?.value;if(null==r||""===r)return{ok:!0,value:{}};if("string"==typeof r)try{return{ok:!0,value:e.parse(r)}}catch{return{ok:!1}}return{ok:!0,value:r}});(0,f.watch)([()=>e.requestBody,()=>e.exampleKey,(0,f.computed)(()=>JSON.stringify(e.requestBodyCompositionSelection??{}))],([,,r],[n,o,a])=>{if(e.requestBody!==n||e.exampleKey!==o||r===a||"{}"===a||0===Object.keys(e.requestBodyCompositionSelection??{}).length)return;let i=K.value,s=(0,A.isXmlMediaType)(U.value);if(!e.requestBody||!i&&!s)return;let l=(0,w.getSchemaExampleFromBody)(e.requestBody,U.value,e.requestBodyCompositionSelection,e.openapiVersion);t("update:value",{payload:null==l?"":s?String(l):i.stringify(l),contentType:U.value})});let ee=(0,f.computed)(()=>J.value.ok&&(0,R.isObject)(J.value.value)),et=(0,f.computed)(()=>!!K.value&&(ee.value||!!(F.value&&(0,Z.isObjectSchema)(F.value)))),er=(0,m.ref)(e.defaultView);(0,f.watch)(ee,e=>{e||(er.value="raw")});let en=(0,f.computed)(()=>!!(K.value&&F.value));return(r,u)=>((0,f.openBlock)(),(0,f.createBlock)((0,m.unref)(p.default),null,{title:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,O.toDisplayString)(e.title),1)]),default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,m.unref)(a.default),{columns:[""],presentational:""},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,m.unref)(i.default),{class:"relative col-span-full flex h-8 cursor-pointer items-center justify-between border-r-0 !p-0"},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,m.unref)(y.ScalarListbox),{modelValue:I.value,"onUpdate:modelValue":u[0]||(u[0]=e=>I.value=e),options:H.value,teleport:""},{default:(0,f.withCtx)(()=>[(0,f.createVNode)((0,m.unref)(v.ScalarButton),{class:"text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-3 font-normal",fullWidth:"",variant:"ghost"},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)("span",null,(0,O.toDisplayString)(I.value.label),1),(0,f.createVNode)((0,m.unref)(x.ScalarIcon),{icon:"ChevronDown",size:"md"})]),_:1})]),_:1},8,["modelValue","options"]),(0,f.createElementVNode)("div",j,[en.value?((0,f.openBlock)(),(0,f.createBlock)((0,m.unref)(k.ScalarIconButton),{key:0,"aria-label":"Generate example from schema",icon:(0,m.unref)(b.ScalarIconMagicWand),label:"Generate example from schema",size:"sm",tooltip:"",onClick:u[1]||(u[1]=(0,g.withModifiers)(e=>t("generate:example",{contentType:U.value}),["stop"]))},null,8,["icon"])):(0,f.createCommentVNode)("",!0),et.value?((0,f.openBlock)(),(0,f.createBlock)(h.default,{key:1,disabled:!ee.value,modelValue:er.value,"onUpdate:modelValue":u[2]||(u[2]=e=>er.value=e)},null,8,["disabled","modelValue"])):(0,f.createCommentVNode)("",!0)])]),_:1}),(0,f.createVNode)((0,m.unref)(s.default),null,{default:(0,f.withCtx)(()=>["none"===U.value?((0,f.openBlock)(),(0,f.createElementBlock)("div",X,[(0,f.createElementVNode)("span",null,(0,O.toDisplayString)((0,m.unref)(N)("apiClient.requestBody.noBody")),1)])):"application/octet-stream"===U.value?((0,f.openBlock)(),(0,f.createElementBlock)("div",_,[void 0!==(0,m.unref)(l.getFileName)((0,m.unref)(Q.unpackProxyObject)(Y.value?.value))?((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:0},[(0,f.createElementVNode)("span",M,(0,O.toDisplayString)((0,m.unref)(l.getFileName)((0,m.unref)(Q.unpackProxyObject)(Y.value?.value))),1),(0,f.createVNode)((0,m.unref)(v.ScalarButton),{class:"bg-b-2 hover:bg-b-3 text-c-2 ml-1 border-0 shadow-none",size:"sm",variant:"outlined",onClick:u[3]||(u[3]=e=>t("update:value",{payload:void 0,contentType:U.value}))},{default:(0,f.withCtx)(()=>[(0,f.createTextVNode)((0,O.toDisplayString)((0,m.unref)(N)("apiClient.requestBody.delete")),1)]),_:1})],64)):((0,f.openBlock)(),(0,f.createBlock)((0,m.unref)(v.ScalarButton),{key:1,class:"bg-b-2 hover:bg-b-3 text-c-2 border-0 shadow-none",size:"sm",variant:"outlined",onClick:u[4]||(u[4]=()=>(function(e){let{open:t}=(0,n.useFileDialog)({onChange:t=>{let r=t?.[0];r&&e(r)},multiple:!1,accept:"*/*"});t()})(e=>t("update:value",{payload:e,contentType:U.value})))},{default:(0,f.withCtx)(()=>[(0,f.createElementVNode)("span",null,(0,O.toDisplayString)((0,m.unref)(N)("apiClient.requestBody.selectFile")),1),(0,f.createVNode)((0,m.unref)(x.ScalarIcon),{class:"ml-1",icon:"Upload",size:"xs",thickness:"2.5"})]),_:1}))])):"multipart/form-data"===U.value||"application/x-www-form-urlencoded"===U.value?((0,f.openBlock)(),(0,f.createBlock)(c.default,{key:2,bodySchema:F.value,environment:e.environment,example:Y.value,selectedContentType:U.value,"onUpdate:formValue":u[5]||(u[5]=e=>t("update:formValue",{payload:e,contentType:U.value}))},null,8,["bodySchema","environment","example","selectedContentType"])):((0,f.openBlock)(),(0,f.createElementBlock)(f.Fragment,{key:3},["form"===er.value&&ee.value?((0,f.openBlock)(),(0,f.createBlock)(d.default,{key:0,bodySchema:F.value,contentType:U.value,environment:e.environment,parsedValue:J.value.value,"onUpdate:value":u[6]||(u[6]=e=>t("update:value",{payload:e,contentType:U.value}))},null,8,["bodySchema","contentType","environment","parsedValue"])):((0,f.openBlock)(),(0,f.createElementBlock)("div",q,[(0,f.createVNode)((0,m.unref)(o.default),{class:"px-3",content:"",environment:e.environment,language:z.value,lineNumbers:"",lint:"",modelValue:G.value,withFakeData:"","onUpdate:modelValue":u[7]||(u[7]=e=>t("update:value",{payload:e,contentType:U.value}))},null,8,["environment","language","modelValue"]),G.value?((0,f.openBlock)(),(0,f.createBlock)((0,m.unref)(C.ScalarCodeBlockCopy),{key:0,class:"absolute top-1.5 right-1.5",content:G.value,lang:z.value,showLang:""},{backdrop:(0,f.withCtx)(()=>[(0,f.createVNode)((0,m.unref)(T.default),{class:"-top-1 -right-1.5"})]),_:1},8,["content","lang"])):(0,f.createCommentVNode)("",!0)]))],64))]),_:1})]),_:1})]),_:1}))}}),D=(0,t.default)(N,[["__scopeId","data-v-42eb1913"]]);e.s(["default",0,D],212983)},992062,404162,672498,986472,618024,823845,e=>{"use strict";var t=e.i(552375),r=e.i(142653),n=e.i(193141),o=e.i(819349),a=e.i(526883),i=e.i(957593),s=e.i(609652),l=e.i(736351),c=e.i(690944),u=e.i(782239),d=e.i(385),h=e.i(122626);e.i(761626);var p=e.i(875418),f=e.i(80250),m=e.i(112111),O=e.i(515255),g=e.i(809683);e.i(916819);var v=e.i(708910);e.i(803935);var y=e.i(448120),b=["aria-label","role"],S={class:"text-xxs text-c-1 grid w-fit max-w-xs min-w-0 gap-1.5 rounded px-1.5 pt-2 pb-1.5 leading-none break-words","data-testid":"request-table-tooltip-content"},x={key:0,class:"text-error-1"},k={key:1,class:"schema text-c-2 truncate *:not-first:before:content-['_·_']"},w={key:0},$={key:1},P={key:2},Q={key:3},C={key:4},T=(0,p.defineComponent)({__name:"RequestTableTooltip",props:{schema:{},value:{},description:{}},setup(e){let{translate:t}=(0,n.useLocalization)(),r=(0,p.computed)(()=>(0,h.validateParameter)(e.schema,e.value)),o=(0,p.computed)(()=>!1===r.value.ok);return(n,a)=>((0,p.openBlock)(),(0,p.createBlock)((0,m.unref)(y.ScalarPopover),{offset:4,placement:"left",teleport:""},{popover:(0,p.withCtx)(()=>[(0,p.createElementVNode)("div",S,[!1===r.value.ok?((0,p.openBlock)(),(0,p.createElementBlock)("div",x,(0,f.toDisplayString)(r.value.message),1)):e.schema&&("type"in e.schema||"format"in e.schema||"minimum"in e.schema||"maximum"in e.schema||"default"in e.schema)?((0,p.openBlock)(),(0,p.createElementBlock)("div",k,["type"in e.schema?((0,p.openBlock)(),(0,p.createElementBlock)("span",w,(0,f.toDisplayString)(e.schema.type),1)):(0,p.createCommentVNode)("",!0),"format"in e.schema?((0,p.openBlock)(),(0,p.createElementBlock)("span",$,(0,f.toDisplayString)(e.schema.format),1)):(0,p.createCommentVNode)("",!0),"minimum"in e.schema?((0,p.openBlock)(),(0,p.createElementBlock)("span",P,(0,f.toDisplayString)((0,m.unref)(t)("apiClient.requestTableTooltip.min"))+" "+(0,f.toDisplayString)(e.schema.minimum),1)):(0,p.createCommentVNode)("",!0),"maximum"in e.schema?((0,p.openBlock)(),(0,p.createElementBlock)("span",Q,(0,f.toDisplayString)((0,m.unref)(t)("apiClient.requestTableTooltip.max"))+" "+(0,f.toDisplayString)(e.schema.maximum),1)):(0,p.createCommentVNode)("",!0),"default"in e.schema?((0,p.openBlock)(),(0,p.createElementBlock)("span",C,(0,f.toDisplayString)((0,m.unref)(t)("apiClient.requestTableTooltip.default"))+" "+(0,f.toDisplayString)(e.schema.default),1)):(0,p.createCommentVNode)("",!0)])):(0,p.createCommentVNode)("",!0),e.description&&!o.value?((0,p.openBlock)(),(0,p.createBlock)((0,m.unref)(v.ScalarMarkdown),{key:2,value:e.description},null,8,["value"])):(0,p.createCommentVNode)("",!0)])]),default:(0,p.withCtx)(()=>[(0,p.createElementVNode)("button",{"aria-label":o.value?(0,m.unref)(t)("apiClient.requestTableTooltip.invalid"):(0,m.unref)(t)("apiClient.requestTableTooltip.moreInformation"),class:"text-c-2 hover:text-c-1 hover:bg-b-2 roun
12ded p-1",role:o.value?"alert":"none",type:"button"},[o.value?((0,p.openBlock)(),(0,p.createBlock)((0,m.unref)(g.ScalarIconWarning),{key:0,class:"text-orange size-3.5 brightness-90 hover:brightness-75"})):((0,p.openBlock)(),(0,p.createBlock)((0,m.unref)(O.ScalarIconInfo),{key:1,class:"text-c-2 hover:text-c-1 size-3.5"}))],8,b)]),_:1}))}});e.i(453217);var B=e.i(989880),A=e.i(95952),R={key:0},E={key:1},V={key:2},Z={key:3},j={key:4},X={key:5},_=(0,p.defineComponent)({name:"ScalarIconGlobe",props:{label:{},weight:{}},setup(e){let{bind:t,weight:r}=(0,A.useScalarIcon)(e);return(e,n)=>((0,p.openBlock)(),(0,p.createElementBlock)("svg",(0,p.mergeProps)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},(0,m.unref)(t)),[(0,p.renderSlot)(e.$slots,"default"),"bold"===(0,m.unref)(r)?((0,p.openBlock)(),(0,p.createElementBlock)("g",R,[...n[0]||(n[0]=[(0,p.createElementVNode)("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,187a113.4,113.4,0,0,1-20.39-35h40.82a116.94,116.94,0,0,1-10,20.77A108.61,108.61,0,0,1,128,207Zm-26.49-59a135.42,135.42,0,0,1,0-40h53a135.42,135.42,0,0,1,0,40ZM44,128a83.49,83.49,0,0,1,2.43-20H77.25a160.63,160.63,0,0,0,0,40H46.43A83.49,83.49,0,0,1,44,128Zm84-79a113.4,113.4,0,0,1,20.39,35H107.59a116.94,116.94,0,0,1,10-20.77A108.61,108.61,0,0,1,128,49Zm50.73,59h30.82a83.52,83.52,0,0,1,0,40H178.75a160.63,160.63,0,0,0,0-40Zm20.77-24H173.71a140.82,140.82,0,0,0-15.5-34.36A84.51,84.51,0,0,1,199.52,84ZM97.79,49.64A140.82,140.82,0,0,0,82.29,84H56.48A84.51,84.51,0,0,1,97.79,49.64ZM56.48,172H82.29a140.82,140.82,0,0,0,15.5,34.36A84.51,84.51,0,0,1,56.48,172Zm101.73,34.36A140.82,140.82,0,0,0,173.71,172h25.81A84.51,84.51,0,0,1,158.21,206.36Z"},null,-1)])])):"duotone"===(0,m.unref)(r)?((0,p.openBlock)(),(0,p.createElementBlock)("g",E,[...n[1]||(n[1]=[(0,p.createElementVNode)("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),(0,p.createElementVNode)("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"},null,-1)])])):"fill"===(0,m.unref)(r)?((0,p.openBlock)(),(0,p.createElementBlock)("g",V,[...n[2]||(n[2]=[(0,p.createElementVNode)("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm78.36,64H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM216,128a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM128,43a115.27,115.27,0,0,1,26,45H102A115.11,115.11,0,0,1,128,43ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48Zm50.35,61.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"},null,-1)])])):"light"===(0,m.unref)(r)?((0,p.openBlock)(),(0,p.createElementBlock)("g",Z,[...n[3]||(n[3]=[(0,p.createElementVNode)("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"},null,-1)])])):"regular"===(0,m.unref)(r)?((0,p.openBlock)(),(0,p.createElementBlock)("g",j,[...n[4]||(n[4]=[(0,p.createElementVNode)("path",{d:"M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,10
127.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"},null,-1)])])):"thin"===(0,m.unref)(r)?((0,p.openBlock)(),(0,p.createElementBlock)("g",X,[...n[5]||(n[5]=[(0,p.createElementVNode)("path",{d:"M128,28h0A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,190.61c-6.33-6.09-23-24.41-31.27-54.61h62.54C151,194.2,134.33,212.52,128,218.61ZM94.82,156a140.42,140.42,0,0,1,0-56h66.36a140.42,140.42,0,0,1,0,56ZM128,37.39c6.33,6.09,23,24.41,31.27,54.61H96.73C105,61.8,121.67,43.48,128,37.39ZM169.41,100h46.23a92.09,92.09,0,0,1,0,56H169.41a152.65,152.65,0,0,0,0-56Zm43.25-8h-45a129.39,129.39,0,0,0-29.19-55.4A92.25,92.25,0,0,1,212.66,92ZM117.54,36.6A129.39,129.39,0,0,0,88.35,92h-45A92.25,92.25,0,0,1,117.54,36.6ZM40.36,100H86.59a152.65,152.65,0,0,0,0,56H40.36a92.09,92.09,0,0,1,0-56Zm3,64h45a129.39,129.39,0,0,0,29.19,55.4A92.25,92.25,0,0,1,43.34,164Zm95.12,55.4A129.39,129.39,0,0,0,167.65,164h45A92.25,92.25,0,0,1,138.46,219.4Z"},null,-1)])])):(0,p.createCommentVNode)("",!0)],16))}}),M=e.i(2545);e.i(37055);var q=e.i(965487);e.i(530580);var N=e.i(179935),D=e.i(932615),U=e.i(349254),z={class:"text-c-2 flex w-full max-w-[100%] items-center justify-center overflow-hidden p-1"},W=["title"],L={key:1,class:"p-0.5"},H=(0,p.defineComponent)({__name:"RequestTableRow",props:{data:{},deferKeyUpdates:{type:Boolean},hasCheckboxDisabled:{type:Boolean},invalidParams:{},label:{},environment:{},showUploadButton:{type:Boolean}},emits:["upsertRow","deleteRow","uploadFile","removeFile","navigate","selectPreset"],setup(e,{emit:t}){let{translate:r}=(0,n.useLocalization)(),o=(0,m.ref)(e.data.name??""),a=(0,m.ref)((0,D.unpackProxyObject)(e.data.value)??""),O=(0,m.ref)(e.data.isDisabled??!1);(0,p.watch)(()=>e.data.name,t=>{(t||!o.value||e.deferKeyUpdates)&&(o.value=t??"")}),(0,p.watch)(()=>e.data.value,e=>a.value=(0,D.unpackProxyObject)(e)??""),(0,p.watch)(()=>e.data.isDisabled,e=>O.value=e??!1);let g=(0,p.computed)(()=>a.value instanceof File),v=(0,p.computed)(()=>(g.value?(0,d.getFileName)(a.value):a.value)??""),y=(0,p.computed)(()=>e.data.schema?.default),b=(0,p.computed)(()=>{if(!e.data.schema)return[];if(e.data.schema.enum)return e.data.schema.enum.map(e=>String(e));if("items"in e.data.schema){let t=U.resolve.schema(e.data.schema.items);if(t?.enum)return t.enum.map(e=>String(e))}return[]}),S=(0,p.computed)(()=>e.data.schema&&"type"in e.data.schema?e.data.schema.type:void 0),x=(0,p.computed)(()=>(0,h.validateParameter)(e.data.schema,a.value)),k=(r,n={})=>{void 0!==r.name&&(o.value=r.name),void 0!==r.value&&(a.value=r.value,e.data.isDisabledByDefault&&(O.value=!1)),void 0!==r.isDisabled&&(O.value=r.isDisabled),(void 0===r.name||!e.deferKeyUpdates&&!e.data.sourceParameterValuePath||n.shouldRenameExpandedRow||n.commitKey)&&t("upsertRow",{name:o.value,value:a.value,isDisabled:O.value,...n.shouldRenameExpandedRow?{shouldRenameExpandedRow:!0}:{}})},w=t=>{t===e.data.name||(t||!e.data.name||e.deferKeyUpdates&&""===o.value)&&k({name:t,isDisabled:O.value},{shouldRenameExpandedRow:!!e.data.sourceParameterValuePath,commitKey:!0})},$=t=>{e.deferKeyUpdates&&"Enter"===t.key&&(t.metaKey||t.ctrlKey)&&w(o.value)};return(n,d)=>((0,p.openBlock)(),(0,p.createBlock)((0,m.unref)(i.default),{id:e.data.name,class:(0,f.normalizeClass)({alert:!1===x.value.ok,error:!1===x.value.ok&&e.invali
12dParams?.has(e.data.name)})},{default:(0,p.withCtx)(()=>[(0,p.createVNode)((0,m.unref)(u.default),{ariaLabel:(0,m.unref)(r)("apiClient.requestTableRow.include",{name:e.data.name||(0,m.unref)(r)("apiClient.requestTableRow.row")}),class:"!border-r",disabled:e.hasCheckboxDisabled??!1,modelValue:!O.value,"onUpdate:modelValue":d[0]||(d[0]=e=>k({isDisabled:!e}))},null,8,["ariaLabel","disabled","modelValue"]),(0,p.createVNode)((0,m.unref)(c.default),null,{default:(0,p.withCtx)(()=>[(0,p.createVNode)((0,m.unref)(l.default),{"aria-label":(0,m.unref)(r)("apiClient.requestTableRow.keyLabel",{name:e.label??""}),disabled:e.data.isReadonly,environment:e.environment,modelValue:o.value,placeholder:(0,m.unref)(r)("apiClient.requestTableRow.key"),required:!!e.data.isRequired,onBlur:d[1]||(d[1]=e=>w(e)),onKeydownCapture:$,onNavigate:d[2]||(d[2]=e=>t("navigate",e)),"onUpdate:modelValue":d[3]||(d[3]=e=>k({name:e}))},null,8,["aria-label","disabled","environment","modelValue","placeholder","required"])]),_:1}),(0,p.createVNode)((0,m.unref)(c.default),null,{default:(0,p.withCtx)(()=>[e.data.presetOptions?.length?((0,p.openBlock)(),(0,p.createBlock)((0,m.unref)(s.default),{key:0,canAddCustomValue:!1,modelValue:v.value,value:e.data.presetOptions,"onUpdate:modelValue":d[4]||(d[4]=e=>t("selectPreset",e))},null,8,["modelValue","value"])):((0,p.openBlock)(),(0,p.createBlock)((0,m.unref)(l.default),{key:1,"aria-label":(0,m.unref)(r)("apiClient.requestTableRow.valueLabel",{name:e.label??""}),class:"pr-6 group-hover:pr-10 group-has-[.code-input-lite__editor:focus]:pr-10",default:y.value,disabled:e.data.isReadonly,enum:b.value,environment:e.environment,examples:e.data.schema?.examples?.map(e=>String(e))??[],linethrough:e.data.isOverridden,modelValue:v.value,placeholder:(0,m.unref)(r)("apiClient.requestTableRow.value"),type:S.value,withFakeData:"",onNavigate:d[7]||(d[7]=e=>t("navigate",e)),"onUpdate:modelValue":d[8]||(d[8]=e=>k({value:e}))},{icon:(0,p.withCtx)(()=>[(e.data.name||a.value)&&!e.data.isRequired&&!0!==e.data.isReadonly?((0,p.openBlock)(),(0,p.createBlock)((0,m.unref)(B.ScalarButton),{key:0,"aria-label":(0,m.unref)(r)("apiClient.requestTableRow.deleteRow",{name:e.data.name||(0,m.unref)(r)("apiClient.requestTableRow.row")}),class:"text-c-2 hover:text-c-1 hover:bg-b-2 z-context -mr-0.5 hidden h-fit roun
12ded p-1 group-hover:flex group-has-[.code-input-lite__editor:focus]:flex",size:"sm",variant:"ghost",onClick:d[5]||(d[5]=e=>t("deleteRow"))},{default:(0,p.withCtx)(()=>[(0,p.createVNode)((0,m.unref)(M.ScalarIconTrash),{class:"size-3.5"})]),_:1},8,["aria-label"])):(0,p.createCommentVNode)("",!0),void 0!==e.data.globalRoute?((0,p.openBlock)(),(0,p.createBlock)((0,m.unref)(N.ScalarIconButton),{key:1,class:"text-c-2 hover:text-c-1 hover:bg-b-2 z-context -mr-0.5 h-fit",icon:(0,m.unref)(_),label:(0,m.unref)(r)("apiClient.requestTableRow.globalCookieHint"),size:"xs",tooltip:"top",variant:"ghost",onClick:d[6]||(d[6]=r=>t("navigate",e.data.globalRoute))},null,8,["icon","label"])):(0,p.createCommentVNode)("",!0),e.data.isReadonly?((0,p.openBlock)(),(0,p.createBlock)(T,{key:2,description:(0,m.unref)(r)("apiClient.requestTableRow.readOnlyHint"),value:null},null,8,["description"])):e.data.schema?((0,p.openBlock)(),(0,p.createBlock)(T,{key:3,description:e.data.description,schema:e.data.schema,value:a.value},null,8,["description","schema","value"])):(0,p.createCommentVNode)("",!0)]),_:1},8,["aria-label","default","disabled","enum","environment","examples","linethrough","modelValue","placeholder","type"]))]),_:1}),e.showUploadButton?((0,p.openBlock)(),(0,p.createBlock)((0,m.unref)(c.default),{key:0,class:"group/upload flex items-center justify-center whitespace-nowrap"},{default:(0,p.withCtx)(()=>[g.value?((0,p.openBlock)(),(0,p.createElementBlock)(p.Fragment,{key:0},[(0,p.createElementVNode)("div",z,[(0,p.createElementVNode)("span",{class:"truncate",title:v.value},(0,f.toDisplayString)(v.value),9,W)]),(0,p.createElementVNode)("button",{class:"bg-b-2 mt-1 block rounded p-0.5 text-center text-xs font-medium md:pointer-events-none md:absolute md:inset-x-1 md:top-1/2 md:mt-0 md:-translate-y-1/2 md:opacity-0 md:group-hover/upload:pointer-events-auto md:group-hover/upload:opacity-100",type:"button",onClick:d[9]||(d[9]=e=>t("removeFile"))},(0,f.toDisplayString)((0,m.unref)(r)("apiClient.requestTableRow.delete")),1)],64)):((0,p.openBlock)(),(0,p.createElementBlock)("div",L,[(0,p.createVNode)((0,m.unref)(B.ScalarButton),{class:"bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",size:"sm",variant:"outlined",onClick:d[10]||(d[10]=e=>t("uploadFile"))},{default:(0,p.withCtx)(()=>[(0,p.createElementVNode)("span",null,(0,f.toDisplayString)((0,m.unref)(r)("apiClient.requestTableRow.selectFile")),1),(0,p.createVNode)((0,m.unref)(q.ScalarIcon),{class:"ml-1",icon:"Upload",size:"xs",thickness:"2.5"})]),_:1})]))]),_:1})):(0,p.createCommentVNode)("",!0)]),_:1},8,["id","class"]))}}),I=(0,p.defineComponent)({__name:"RequestTable",props:{data:{},deferKeyUpdates:{type:Boolean},hasCheckboxDisabled:{type:Boolean},invalidParams:{},label:{},showUploadButton:{type:Boolean},showAddRowPlaceholder:{type:Boolean,default:!0},environment:{}},emits:["upsertRow","deleteRow","uploadFile","removeFile","navigate","selectPreset"],setup(e,{emit:t}){let{translate:r}=(0,n.useLocalization)(),s=(0,p.computed)(()=>e.showUploadButton?["36px","","","minmax(0, 1fr)"]:["36px","",""]),l=(0,p.computed)(()=>{if(!e.showAddRowPlaceholder)return e.data;let t=e.data.at(-1);return t&&""===t.name&&""===t.value?e.data:[...e.data,{name:"",value:"",isDisabled:!0}]}),c=(t,r)=>{if(e.deferKeyUpdates)return`body:${r}`;if(t.originalParameter)return JSON.stringify([t.originalParameter.name,...t.sourceParameterValuePath??[]]);let n=l.value.slice(0,r).filter(e=>!e.originalParameter&&e.name===t.name).length;return`row:${JSON.stringify([t.name,n])}`},u=new Map,d=(e,t)=>{let r=u.get(e);return r?.name===t.name&&r.value===t.value},h=(0,p.computed)((t=[])=>{let r=new Set(t),n=new Set(e.data.map(c)),o=l.value.map((e,t)=>{let o=c(e,t),a=[...r].find(e=>e.identity===o),i=[...r].find(t=>!n.has(t.identity)&&!t.data.sourceParameterValuePath&&d(t.key,e)),s=a??i;return s&&(r.delete(s),d(s.key,e)&&u.delete(s.key)),{data:e,identity:o,key:s?.key??Symbol()}});for(let e of r)u.delete(e.key);return o});return(n,l)=>((0,p.openBlock)(),(0,p.createBlock)((0,m.unref)(o.default),{class:"group/table flex-1",columns:s.value},{default:(0,p.withCtx)(()=>[(0,p.createVNode)((0,m.unref)(i.default),{class:"sr-only !block"},{default:(0,p.withCtx)(()=>[(0,p.createVNode)((0,m.unref)(a.default),null,{default:(0,p.withCtx)(()=>[(0,p.createTextVNode)((0,f.toDisplayString)(e.label)+" "+(0,f.toDisplayString)((0,m.unref)(r)("apiClient.requestTable.enabled")),1)]),_:1}),(0,p.createVNode)((0,m.unref)(a.default),null,{default:(0,p.withCtx)(()=>[(0,p.createTextVNode)((0,f.toDisplayString)(e.label)+" "+(0,f.toDisplayString)((0,m.unref)(r)("apiClient.requestTable.key")),1)]),_:1}),(0,p.createVNode)((0,m.unref)(a.default),null,{default:(0,p.withCtx)(()=>[(0,p.createTextVNode)((0,f.toDisplayString)(e.label)+" "+(0,f.toDisplayString)((0,m.unref)(r)("apiClient.requestTable.value")),1)]),_:1})]),_:1}),((0,p.openBlock)(!0),(0,p.createElementBlock)(p.Fragment,null,(0,p.renderList)(h.value,(r,n)=>((0,p.openBlock)(),(0,p.createBlock)(H,{key:r.key,data:r.data,deferKeyUpdates:e.deferKeyUpdates,environment:e.environment,hasCheckboxDisabled:e.hasCheckboxDisabled,invalidParams:e.invalidParams,label:e.label,showUploadButton:e.showU
12ploadButton,onDeleteRow:e=>t("deleteRow",n),onNavigate:l[0]||(l[0]=e=>t("navigate",e)),onRemoveFile:e=>t("removeFile",n),onSelectPreset:e=>t("selectPreset",n,e),onUploadFile:e=>t("uploadFile",n),onUpsertRow:e=>{u.set(r.key,e),t("upsertRow",n,e)}},null,8,["data","deferKeyUpdates","environment","hasCheckboxDisabled","invalidParams","label","showUploadButton","onDeleteRow","onRemoveFile","onSelectPreset","onUploadFile","onUpsertRow"]))),128))]),_:1},8,["columns"]))}}),Y=(0,r.default)(I,[["__scopeId","data-v-e29008b7"]]);e.s(["default",0,Y],404162);var G=e.i(849856);e.i(766688);var F=e.i(534607),K=e.i(553311),J=e.i(520073),ee=e=>e instanceof File?e.name:"object"==typeof e&&null!==e?JSON.stringify(e):String(e),et=(e,t=[],r=!0)=>{if(!(0,J.isObjectSchema)(e)||!e.properties)return[];let n=new Set(e.required??[]),o=[];for(let[a,i]of(0,G.objectEntries)(e.properties)){let e=U.resolve.schema(i),s=[...t,String(a)],l=r&&n.has(String(a));e&&(0,J.isObjectSchema)(e)&&e.properties?o.push(...et(e,s,l)):o.push({path:s,schema:e,isRequired:l})}return o},er=(e,t,r=[])=>{let n=[],o=(0,K.isObject)(e)?(0,G.objectEntries)(e):[],a=new Map(o.map(([e,t])=>[String(e),t])),i=new Set,s=t&&(0,J.isObjectSchema)(t)?t.properties??{}:{};for(let[e,t]of(0,G.objectEntries)(s)){let o=String(e);i.add(o);let s=U.resolve.schema(t),l=[...r,o],c=a.get(o);s&&(0,J.isObjectSchema)(s)&&s.properties?n.push(...er(c,s,l)):n.push({path:l,value:c})}for(let[e,t]of o){let o=String(e);i.has(o)||n.push({path:[...r,o],value:t})}return n},en=(0,p.defineComponent)({__name:"RequestBodyForm",props:{example:{},bodySchema:{},selectedContentType:{},environment:{}},emits:["update:formValue"],setup(e,{emit:r}){let n=(0,m.ref)([]);(0,p.watch)(()=>[e.example,e.bodySchema,e.selectedContentType],([e,t,r])=>{n.value=((e,t,r)=>{let n=e?.dataValue!==void 0?e.dataValue:e?.value;if(!n||"multipart/form-data"!==t&&"application/x-www-form-urlencoded"!==t)return[];let o=r&&(0,J.isObjectSchema)(r)?r:void 0,a=!!(o?.allOf||o?.oneOf||o?.anyOf),i=o?new Set(o.required??[]):void 0,s=new Map;if(o)for(let e of et(o))s.set(e.path.join("."),e);let l=({name:e,value:t,isDisabled:r})=>{let n={name:e,value:t,isDisabled:r??!1};if(!o||!e)return n;let l=s.get(e),c=l?.schema??U.resolve.schema(o.properties?.[e]);return n.schema=c,n.description=c?.description,n.isRequired=l?.isRequired??i?.has(e)??!1,void 0===r&&!a&&o.properties&&Object.hasOwn(o.properties,e)&&(n.isDisabled=!n.isRequired,n.isDisabledByDefault=n.isDisabled),n},c=(e,r,n,o)=>{if("multipart/form-data"===t&&Array.isArray(r)&&r.length>0&&r.every(e=>e instanceof File))return r.map(t=>l({name:e,value:t,isDisabled:n}));let a=l({name:e,value:r instanceof File?r:null==r?"":ee(r),isDisabled:n});return"multipart/form-data"===t&&(Array.isArray(r)||o)&&(a.isArray=!0),[a]};return Array.isArray(n)?n.flatMap(e=>{if((0,K.isObject)(e)){let r=String(e.name);return("multipart/form-data"===t?c(r,e.value,!!e.isDisabled,!0===e.isArray):[l({name:r,value:e.value instanceof File?e.value:String(e.value),isDisabled:!!e.isDisabled})]).map(t=>t.isDisabled&&!0===e.isDisabledByDefault?{...t,isDisabledByDefault:!0}:t)}return{name:"",value:e,isDisabled:!1}}):"multipart/form-data"===t&&o&&"object"==typeof n?er(n,o).flatMap(({path:e,value:t})=>c(e.join("."),t)):"object"==typeof n&&n?(0,G.objectEntries)(n).flatMap(([e,r])=>"multipart/form-data"===t?c(String(e),r):l({name:String(e),value:ee(r)})):[]})(e,r,t)},{immediate:!0});let o=t=>{r("update:formValue",t.map(t=>{let r;return{name:t.name,value:"multipart/form-data"===e.selectedContentType?Array.isArray(r=(0,F.coerceLeafValueToSchemaType)(t.value,t.isArray?{type:"array"}:t.schema))?r:t.value??void 0:t.value,isDisabled:t.isDisabled??!1,...t.isDisabledByDefault?{isDisabledByDefault:!0}:{},..."multipart/form-data"===e.selectedContentType&&t.isArray?{isArray:!0}:{}}}))},a=(e,t)=>{if(e>=n.value.length){n.value=[...n.value,{name:"",value:"",...t,isDisabled:!1}],o(n.value);return}n.value=n.value.map((r,n)=>{if(n!==e)return r;let o="value"in t&&t.value!==r.value,a=void 0!==t.isDisabled&&t.isDisabled!==r.isDisabled;return{...r,...t,...o&&void 0!==t.value&&r.isDisabledByDefault?{isDisabled:!1}:{},isDisabledByDefault:r.isDisabledByDefault&&!o&&!a}}),o(n.value)},i=e=>{n.value=n.value.filter((t,r)=>r!==e),o(n.value)},s=e=>{let{open:r}=(0,t.useFileDialog)({onChange:t=>{let r=t?.[0];if(r){let t=n.value[e];a(e,{name:t?.name||r.name,value:r})}},multiple:!1,accept:"*/*"});r()};return(t,r)=>"multipart/form-data"===e.selectedContentType?((0,p.openBlock)(),(0,p.createBlock)(Y,{key:0,data:n.value,deferKeyUpdates:"",environment:e.environment,showUploadButton:"",onDeleteRow:i,onRemoveFile:r[0]||(r[0]=e=>a(e,{value:void 0})),onUploadFile:s,onUpsertRow:a},null,8,["data","environment"])):((0,p.openBlock)(),(0,p.createBlock)(Y,{key:1,data:n.value,deferKeyUpdates:"",environment:e.environment,onDeleteRow:i,onUpsertRow:a},null,8,["data","environment"]))}});e.s(["default",0,en],992062);var eo=e.i(152622),ea=e.i(905282),ei=(0,p.defineComponent)({__name:"RequestBodyStructured",props:{parsedValue:{},bodySchema:{},contentType:{},environment:{}},emits:["update:value"],setup(e,{emit:t}){let r,{translate:o}=(0,n.useLocalization)(),a=(0,p.computed)(()=>(0,ea.getStructuredBodyCodec)(e.contentType)),i=(0,m.ref)([]);(0,p.watch)(()=>[e.parsedValue,e.bodySchema,e.contentType],([e,t])=>
12{if(void 0!==r&&a.value)try{if(a.value.stringify(e)===r)return}catch{}r=void 0,i.value=((e,t)=>{let r=t&&(0,J.isObjectSchema)(t)?t:void 0;if(!(0,K.isObject)(e)&&!r)return[];let n=new Map;if(r)for(let e of et(r))n.set(e.path.join("."),e);let o=new Set(r?.required??[]);return er((0,K.isObject)(e)?e:{},r).map(({path:e,value:t})=>{let a=e.join("."),i={name:a,value:null==t?"":ee(t),isDisabled:!1},s=n.get(a),l=s?.schema??(r?U.resolve.schema(r.properties?.[a]):void 0);return i.schema=l,i.description=l?.description,i.isRequired=s?.isRequired??o.has(a),i})})(e,t)},{immediate:!0});let s=()=>{if(!a.value)return;let n=a.value.stringify(((e,t)=>{let r=(0,F.buildDottedNestedRowPredicate)(t),n={};for(let o of e){if(o.isDisabled||!o.name)continue;let e=o.value;if("string"!=typeof e||""===e)continue;let a=r(o.name,e)?o.name.split("."):[o.name],i=(0,F.resolveLeafSchema)(t,a);(0,eo.setValueAtPath)(n,a,i&&"type"in i&&null!=i.type?(0,F.coerceLeafValueToSchemaType)(e,i):(0,F.coerceUntypedValue)(e))}return n})(i.value,e.bodySchema));r=n,t("update:value",n)},l=(e,t)=>{if(e>=i.value.length){i.value=[...i.value,{name:"",value:"",...t,isDisabled:!1}],s();return}i.value=i.value.map((r,n)=>n===e?{...r,...t}:r),s()},c=e=>{i.value=i.value.filter((t,r)=>r!==e),s()};return(t,r)=>((0,p.openBlock)(),(0,p.createBlock)(Y,{data:i.value,deferKeyUpdates:"",environment:e.environment,label:(0,m.unref)(o)("apiClient.requestBodyStructured.body"),onDeleteRow:c,onUpsertRow:l},null,8,["data","environment","label"]))}});e.s(["default",0,ei],672498);var es=e.i(562649),el={class:"text-c-3 text-xxs -my-1 mr-2 flex justify-center gap-0.5 rounded p-0.5"},ec=["disabled","title"],eu=(0,p.defineComponent)({__name:"RequestBodyViewToggle",props:{modelValue:{},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e){let{translate:t}=(0,n.useLocalization)();return(r,n)=>((0,p.openBlock)(),(0,p.createElementBlock)("div",el,[(0,p.createElementVNode)("button",{class:(0,f.normalizeClass)(["rounded px-1",e.disabled?"cursor-not-allowed opacity-50":{"bg-b-3 text-c-1 cursor-default":"form"===e.modelValue,"hover:bg-b-3":"form"!==e.modelValue}]),disabled:e.disabled,title:e.disabled?(0,m.unref)(t)("apiClient.requestBodyViewToggle.fixBody"):void 0,type:"button",onClick:n[0]||(n[0]=(0,es.withModifiers)(e=>r.$emit("update:modelValue","form"),["stop"]))},(0,f.toDisplayString)((0,m.unref)(t)("apiClient.requestBodyViewToggle.form")),11,ec),(0,p.createElementVNode)("button",{class:(0,f.normalizeClass)(["hover:bg-b-3 rounded px-1",{"bg-b-3 text-c-1 cursor-default":"raw"===e.modelValue}]),type:"button",onClick:n[1]||(n[1]=(0,es.withModifiers)(e=>r.$emit("update:modelValue","raw"),["stop"]))},(0,f.toDisplayString)((0,m.unref)(t)("apiClient.requestBodyViewToggle.raw")),3)]))}});e.s(["default",0,eu],986472);var ed={key:0},eh={key:1},ep={key:2},ef={key:3},em={key:4},eO={key:5},eg=(0,p.defineComponent)({name:"ScalarIconMagicWand",props:{label:{},weight:{}},setup(e){let{bind:t,weight:r}=(0,A.useScalarIcon)(e);return(e,n)=>((0,p.openBlock)(),(0,p.createElementBlock)("svg",(0,p.mergeProps)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},(0,m.unref)(t)),[(0,p.renderSlot)(e.$slots,"default"),"bold"===(0,m.unref)(r)?((0,p.openBlock)(),(0,p.createElementBlock)("g",ed,[...n[0]||(n[0]=[(0,p.createElementVNode)("path",{d:"M252,152a12,12,0,0,1-12,12H228v12a12,12,0,0,1-24,0V164H192a12,12,0,0,1,0-24h12V128a12,12,0,0,1,24,0v12h12A12,12,0,0,1,252,152ZM56,76H68V88a12,12,0,0,0,24,0V76h12a12,12,0,1,0,0-24H92V40a12,12,0,0,0-24,0V52H56a12,12,0,0,0,0,24ZM184,188h-4v-4a12,12,0,0,0-24,0v4h-4a12,12,0,0,0,0,24h4v4a12,12,0,0,0,24,0v-4h4a12,12,0,0,0,0-24ZM222.14,82.83,82.82,222.14a20,20,0,0,1-28.28,0L33.85,201.46a20,20,0,0,1,0-28.29L173.17,33.86a20,20,0,0,1,28.28,0l20.69,20.68A20,20,0,0,1,222.14,82.83ZM159,112,144,97,53.65,187.31l15,15Zm43.31-43.31-15-15L161,80l15,15Z"},null,-1)])])):"duotone"===(0,m.unref)(r)?((0,p.openBlock)(),(0,p.createElementBlock)("g",eh,[...n[1]||(n[1]=[(0,p.createElementVNode)("path",{d:"M176,112,74.34,213.66a8,8,0,0,1-11.31,0L42.34,193a8,8,0,0,1,0-11.31L144,80Z",opacity:"0.2"},null,-1),(0,p.createElementVNode)("path",{d:"M248,152a8,8,0,0,1-8,8H224v
1216a8,8,0,0,1-16,0V160H192a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,152ZM56,72H72V88a8,8,0,0,0,16,0V72h16a8,8,0,0,0,0-16H88V40a8,8,0,0,0-16,0V56H56a8,8,0,0,0,0,16ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80Zm-54.63,32L144,91.31l-96,96L68.68,208ZM208,68.69,187.31,48l-32,32L176,100.69Z"},null,-1)])])):"fill"===(0,m.unref)(r)?((0,p.openBlock)(),(0,p.createElementBlock)("g",ep,[...n[2]||(n[2]=[(0,p.createElementVNode)("path",{d:"M248,152a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V160H192a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,152ZM56,72H72V88a8,8,0,0,0,16,0V72h16a8,8,0,0,0,0-16H88V40a8,8,0,0,0-16,0V56H56a8,8,0,0,0,0,16ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80ZM208,68.69,187.31,48l-32,32L176,100.69Z"},null,-1)])])):"light"===(0,m.unref)(r)?((0,p.openBlock)(),(0,p.createElementBlock)("g",ef,[...n[3]||(n[3]=[(0,p.createElementVNode)("path",{d:"M246,152a6,6,0,0,1-6,6H222v18a6,6,0,0,1-12,0V158H192a6,6,0,0,1,0-12h18V128a6,6,0,0,1,12,0v18h18A6,6,0,0,1,246,152ZM56,70H74V88a6,6,0,0,0,12,0V70h18a6,6,0,0,0,0-12H86V40a6,6,0,0,0-12,0V58H56a6,6,0,0,0,0,12ZM184,194H174V184a6,6,0,0,0-12,0v10H152a6,6,0,0,0,0,12h10v10a6,6,0,0,0,12,0V206h10a6,6,0,0,0,0-12ZM217.9,78.59,78.58,217.9a14,14,0,0,1-19.8,0L38.09,197.21a14,14,0,0,1,0-19.8L177.41,38.1a14,14,0,0,1,19.8,0L217.9,58.79A14,14,0,0,1,217.9,78.59ZM167.51,112,144,88.49,46.58,185.9a2,2,0,0,0,0,2.83l20.69,20.68a2,2,0,0,0,2.82,0h0Zm41.9-44.73L188.73,46.59a2,2,0,0,0-2.83,0L152.48,80,176,103.52,209.41,70.1A2,2,0,0,0,209.41,67.27Z"},null,-1)])])):"regular"===(0,m.unref)(r)?((0,p.openBlock)(),(0,p.createElementBlock)("g",em,[...n[4]||(n[4]=[(0,p.createElementVNode)("path",{d:"M48,64a8,8,0,0,1,8-8H72V40a8,8,0,0,1,16,0V56h16a8,8,0,0,1,0,16H88V88a8,8,0,0,1-16,0V72H56A8,8,0,0,1,48,64ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16Zm56-48H224V128a8,8,0,0,0-16,0v16H192a8,8,0,0,0,0,16h16v16a8,8,0,0,0,16,0V160h16a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80Zm-54.63,32L144,91.31l-96,96L68.68,208ZM208,68.69,187.31,48l-32,32L176,100.69Z"},null,-1)])])):"thin"===(0,m.unref)(r)?((0,p.openBlock)(),(0,p.createElementBlock)("g",eO,[...n[5]||(n[5]=[(0,p.createElementVNode)("path",{d:"M244,152a4,4,0,0,1-4,4H220v20a4,4,0,0,1-8,0V156H192a4,4,0,0,1,0-8h20V128a4,4,0,0,1,8,0v20h20A4,4,0,0,1,244,152ZM56,68H76V88a4,4,0,0,0,8,0V68h20a4,4,0,0,0,0-8H84V40a4,4,0,0,0-8,0V60H56a4,4,0,0,0,0,8ZM184,196H172V184a4,4,0,0,0-8,0v12H152a4,4,0,0,0,0,8h12v12a4,4,0,0,0,8,0V204h12a4,4,0,0,0,0-8ZM216.48,77.17,77.17,216.49a12,12,0,0,1-17,0L39.51,195.8a12,12,0,0,1,0-17L178.83,39.51a12,12,0,0,1,17,0L216.48,60.2A12,12,0,0,1,216.48,77.17ZM170.34,112,144,85.66,45.17,184.49a4,4,0,0,0,0,5.65l20.68,20.69a4,4,0,0,0,5.66,0Zm40.49-46.14L190.14,45.17a4,4,0,0,0-5.66,0L149.65,80,176,106.34l34.83-34.83A4,4,0,0,0,210.83,65.86Z"},null,-1)])])):(0,p.createCommentVNode)("",!0)],16))}});e.s(["ScalarIconMagicWand",0,eg],618024);var ev=e.i(416199);e.s(["ScalarCodeBlockCopy",()=>ev.default],823845)},859934,e=>{"use strict";var t=e.i(142653),r=e.i(193141),n=e.i(494242),o=e.i(35381),a=e.i(847321),i=e.i(435187),s=e.i(569390),l=e.i(672175),c=e.i(224041),u=e.i(664612),d=e.i(160003);e.i(761626);var h=e.i(875418),p=e.i(80250),f=e.i(112111);e.i(44185);var m=e.i(507412);e.i(406973);var O=e.i(161447),g={class:"font-code text-xxs rounded-t border-x border-t px-2.5 py-1.5"},v=(0,h.defineComponent)({__name:"ResponseBodyVirtual",props:{content:{},data:{},headers:{}},setup(e){let{translate:t}=(0,r.useLocalization)(),n=(0,h.computed)(()=>(0,m.formatJsonOrYamlString)(e.content)),o=(0,h.computed)(()=>(0,u.processResponseBody)({data:e.data,headers:e.headers}));return(e,r)=>((0,h.openBlock)(),(0,h.createBlock)((0,f.unref)(c.default),{class:"!max-h-100% response-body-virtual overflow-x-auto"},(0,h.createSlots)({title:(0,h.withCtx)(()=>[(0,h.createTextVNode)((0,p.toDisplayString)((0,f.unref)(t)("apiClient.responseBodyVirtual.body")),1)]),default:(0,h.withCtx)(()=>[(0,h.createElementVNode)("div",g,(0,p.toDisplayString)((0,f.unref)(t)("apiClient.responseBodyVirtual.largeBodyHint")),1),(0,h.createVNode)((0,f.unref)(O.ScalarVirtualText),{containerClass:"custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",contentClass:"language-plaintext whitespace-pre font-code text-base",lineHeight:20,searchable:"",text:n.value},null,8,["text"])]),_:2},[o.value.dataUrl?{name:"actions",fn:(0,h.withCtx)(()=>[(0,h.createVNode)(d.default,{filename:o.value.attachmentFilename,href:o.value.dataUrl,type:o.value.mimeType?.essence},null,8,["filename","href","type"])]),key:"0"}:void 0]),1024))}}),y=e.i(819349),b=e.i(526883),S=e.i(957593),x=e.i(893930),k={key:0,class:"max-h-[calc(100%-32px)] overflow-y-auto"},w={key:1,class:"text-c-3 bg-b-1 flex min-h-[64px] items-center justify-center border-t px-4 text-sm"},$=(0,h.defineComponent)({__name:"ResponseCookies",props:{cookies:{}},setup(e){let{translate:t}=(0,r.useLocalization)();return(r,n)=>((0,h.openBlock)(),(0,h.createBlock)((0,f.unref)(c.default),{class:"overflow-auto",defaultOpen:!1,itemCount:e.cookies.length},{title:(0,h.withCtx)(()=>[(0,h.createTextVNode)((0,p.toDisplayString)((0,f.unref)(t)("apiClient.responseCookies.cookies")),1)]),default:(0,h.withCtx)(()=>[e.cookies.length?((0,h.openBlock)(),(0,h.createElementBlock)("div",k,[(0,h.createVNode)((0,f.unref)(y.default),{columns:["minmax(auto, min-content)","minmax(50%, 1fr)"],scroll:""},{default:(0,h.withCtx)(()=>[(0,h.createVNode)((0,f.unref)(S.default),{class:"sr-only !block"},{default:(0,h.withCtx)(()=>[(0,h.createVNode)((0,f.unref)(b.default),null,{default:(0,h.withCtx)(()=>[(0,h.createTextVNode)((0,p.toDisplayString)((0,f.unref)(t)("apiClient.responseCookies.cookieName")),1)]),_:1}),(0,h.createVNode)((0,f.unref)(b.default),null,{default:(0,h.withCtx)(()=>[(0,h.createTextVNode)((0,p.toDisplayString)((0,f.unref)(t)("apiClient.responseCookies.cookieValue")),1)]),_:1})]),_:1}),((0,h.openBlock)(!0),(0,h.createElementBlock)(h.Fragment,null,(0,h.renderList)(e.cookies,(e,t)=>((0,h.openBlock)(),(0,h.createBlock)((0,f.unref)(S.default),{key:e.name,class:"group/row text-c-1"},{default:(0,h.withCtx)(()=>[(0,h.createVNode)((0,f.unref)(x.default),{class:(0,p.normalizeClass)(["bg-b-1 sticky left-0 z-1 max-w-full",{"border-t-0":0===t}]),text:e.name},null,8,["class","text"]),(0,h.createVNode)((0,f.unref)(x.default),{class:(0,p.normalizeClass)(["z-0",{"border-t-0":0===t}]),text:e.value},null,8,["class","text"])]),_:2},1024))),128))]),_:1})])):((0,h.openBlock)(),(0,h.createElementBlock)("div",w,(0,p.toDisplayString)((0,f.unref)(t)("apiClient.responseCookies.noCookies")),1))]),_:1},8,["itemCount"]))}}),P=(0,h.defineComponent)({__name:"ScalarAsciiArt",props:{art:{},animate:{type:Boolean}},setup(e){let t=(0,h.computed)(()=>e.art.split("\n"));return(r,n)=>((0,h.openBlock)(),(0,h.createElementBlock)("div",{"aria-hidden":"true",class:(0,p.normalizeClass)(["ascii-art font-code flex flex-col items-start text-[6px] leading-[7px]",{"ascii-art-animate":e.animate}]),role:"presentation",inert:""},[((0,h.openBlock)(!0),(0,h.createElementBlock)(h.Fragment,null,(0,h.renderList)(t.value,(e,r)=>{let n;return(0,h.openBlock)(),(0,h.createElementBlock)("span",{key:r,class:"inline-block",style:(0,p.normalizeStyle)({width:`calc(${e.length+1}ch)`})},[(0,h.createElementVNode)("span",{class:"inline-block whitespace-pre overflow-hidden",style:(0,p.normalizeStyle)((n=e.length,{animationDuration:`${100*n}ms, 500ms`,animationTimingFunction:`steps(${n}), step-end`,animationDelay:`${100*r}ms, 0ms`,animationIterationCount:`1, ${((t.value?.length??0)+(t.value?.[t.value?.length-1]?.length??0)+5)*100/500}`}))},(0,p.toDisplayString)(e),5)],4)}),128))],2))}}),Q=(0,t.default)(P,[["__scopeId","data-v-9a695e58"]]);e.i(847085);var C=e.i(556426),T={class:"flex-center relative flex flex-1 flex-col gap-6 p-2 capitalize"},B={key:0,class:"scalar-version-number"},A={class:"mt-2"},R={href:"https://github.com/scalar/scalar/issues/2669",target:"_blank"},E={class:"gitbook-show scalar-version-number",href:"https://www.scalar.com",target:"_blank"},V={class:"text-c-3 right-4 mt-auto flex w-full flex-col items-end gap-2 text-sm"},Z=["disabled"],j=(0,h.defineComponent)({__name:"ResponseEmpty",props:{executionDisabled:{type:Boolean},layout:{},totalPerformedRequests:{},appVersion:{}},emits:["addRequest","sendRequest","openCommandPalette"],setup(e,{emit:t}){let{translate:n}=(0,r.useLocalization)();return(r,o)=>((0,h.openBlock)(),(0,h.createElementBlock)("div",T,[(0,h.createElementVNode)("div",{class:(0,p.normalizeClass)(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center",{"hidden opacity-0":e.totalPerformedRequests>0&&"modal"!==e.layout}])},["modal"!==e.layout?((0,h.openBlock)(),(0,h.createElementBlock)("div",B,[(0,h.
12createTextVNode)((0,p.toDisplayString)((0,f.unref)(n)("apiClient.responseEmpty.version",{version:e.appVersion}))+" ",1),(0,h.createElementVNode)("div",A,[(0,h.createElementVNode)("a",R,(0,p.toDisplayString)((0,f.unref)(n)("apiClient.responseEmpty.roadmap")),1)])])):(0,h.createCommentVNode)("",!0),(0,h.createElementVNode)("a",E,(0,p.toDisplayString)((0,f.unref)(n)("apiClient.responseEmpty.poweredByScalarcom")),1),(0,h.createVNode)((0,f.unref)(Q),{art:(0,f.unref)(" .,,uod8B8bou,,.\n ..,uod8BBBBBBBBBBBBBBBBRPFT?l!i:.\n ||||||||||||||!?TFPRBBBBBBBBBBBBBBB8m=,\n |||| '\"\"^^!!||||||||||TFPRBBBVT!:...!\n |||| '\"\"^^!!|||||?!:.......!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n |||| ||||.........!\n ||||, ||||.........`\n |||||!!-._ ||||.......;.\n ':!|||||||||!!-._ ||||.....bBBBBWdou,.\n bBBBBB86foi!|||||||!!-..:|||!..bBBBBBBBBBBBBBBY!\n ::!?TFPRBBBBBB86foi!||||||||!!bBBBBBBBBBBBBBBY..!\n :::::::::!?TFPRBBBBBB86ftiaabBBBBBBBBBBBBBBY....!\n :::;`\"^!:;::::::!?TFPRBBBBBBBBBBBBBBBBBBBY......!\n ;::::::...''^::::::::::!?TFPRBBBBBBBBBBY........!\n .ob86foi;::::::::::::::::::::::::!?TFPRBY..........`\n .b888888888886foi;:::::::::::::::::::::::..........`\n .b888888888888888888886foi;::::::::::::::::..........\n.b888888888888888888888888888886foi;:::::::::......`\n!Tf998888888888888888888888888888888886foi;:::....`\n '\"^!|Tf9988888888888888888888888888888888!::..`\n '\"^!|Tf998888888888888888888888889!! '`\n '\"^!|Tf9988888888888888888!!` iBBbo.\n '\"^!|Tf998888888889!` WBBBBbo.\n '\"^!|Tf9989!` YBBBP^'\n '\"^!` `\n"),class:"text-c-3"},null,8,["art"])],2),(0,h.createElementVNode)("div",V,["modal"!==e.layout?((0,h.openBlock)(),(0,h.createElementBlock)("button",{key:0,class:"flex items-center gap-1.5",type:"button",onClick:o[0]||(o[0]=e=>t("openCommandPalette"))},[(0,h.createTextVNode)((0,p.toDisplayString)((0,f.unref)(n)("apiClient.responseEmpty.getStarted")),1),(0,h.createVNode)((0,f.unref)(C.default),{hotkey:"k",modifier:["default"]})])):(0,h.createCommentVNode)("",!0),"desktop"===e.layout?((0,h.openBlock)(),(0,h.createElementBlock)("button",{key:1,class:"flex items-center gap-1.5",type:"button",onClick:o[1]||(o[1]=e=>t("addRequest"))},[(0,h.createTextVNode)((0,p.toDisplayString)((0,f.unref)(n)("apiClient.responseEmpty.newRequest")),1),(0,h.createVNode)((0,f.unref)(C.default),{hotkey:"N"})])):(0,h.createCommentVNode)("",!0),(0,h.createElementVNode)("button",{class:"flex items-center gap-1.5",disabled:e.executionDisabled,type:"button",onClick:o[2]||(o[2]=e=>t("sendRequest"))},[(0,h.createTextVNode)((0,p.toDisplayString)((0,f.unref)(n)("apiClient.responseEmpty.sendRequest")),1),(0,h.createVNode)((0,f.unref)(C.default),{hotkey:"âµ"})],8,Z)])]))}}),X=(0,t.default)(j,[["__scopeId","data-v-8ed574de"]]),_=e.i(562649);e.i(453217);var M=e.i(989880);e.i(300539);var q=e.i(99837),N=e.i(380910),D={key:0,class:"bg-b-1 z-overlay absolute inset-0 flex flex-col items-center justify-center gap-6"},U=(0,h.defineComponent)({__name:"ResponseLoadingOverlay",props:{eventBus:{}},setup(e){let{translate:t}=(0,r.useLocalization)(),n=(0,N.useLoadingState)(),o=(0,f.ref)(),a=()=>{clearTimeout(o.value),o.value=setTimeout(()=>n.start(),1e3)},i=()=>{clearTimeout(o.value),o.value=void 0,n.clear()};return(0,h.onMounted)(()=>{e.eventBus.on("hooks:on:request:sent",a),e.eventBus.on("hooks:on:request:complete",i)}),(0,h.onBeforeUnmount)(()=>{e.eventBus.off("hooks:on:request:sent",a),e.eventBus.off("hooks:on:request:complete",i),i()}),(r,o)=>((0,h.openBlock)(),(0,h.createBlock)(_.Transition,null,{default:(0,h.withCtx)(()=>[(0,f.unref)(n).isActive?((0,h.openBlock)(),(0,h.createElementBlock)("div",D,[(0,h.
12createVNode)((0,f.unref)(q.ScalarLoading),{class:"text-c-3",loader:(0,f.unref)(n),size:"3xl"},null,8,["loader"]),(0,h.createVNode)((0,f.unref)(M.ScalarButton),{variant:"ghost",onClick:o[0]||(o[0]=t=>e.eventBus.emit("operation:cancel:request"))},{default:(0,h.withCtx)(()=>[(0,h.createTextVNode)((0,p.toDisplayString)((0,f.unref)(t)("apiClient.responseLoadingOverlay.cancel")),1)]),_:1})])):(0,h.createCommentVNode)("",!0)]),_:1}))}}),z=(0,t.default)(U,[["__scopeId","data-v-28d73262"]]),W=e.i(103236),L=e.i(412403),H=e=>{let t=Number.parseInt(e.headers?.["Content-Length"]||e.headers?.["content-length"]||"0",10);if(!isNaN(t)&&!(t<=0))return(0,L.formatBytes)(t)},I=e.i(436278);let Y=e=>Number.isFinite(e)?e:0,G=24n*60n*60n*1000n;function F(e,t){let r="bigint"==typeof e;if(!r&&!Number.isFinite(e))throw TypeError("Expected a finite number or bigint");t={...t};let n=e<0?"-":"";e=e<0?-e:e,t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let o=[],a=(e,r,n,a)=>{if(!((0===o.length||!t.colonNotation)&&(0===e||0n===e))||t.colonNotation&&"m"===n){if(a??=String(e),t.colonNotation){let e=a.includes(".")?a.split(".")[0].length:a.length,t=o.length>0?2:1;a="0".repeat(Math.max(0,t-e))+a}else a+=t.verbose?" "+(1===e||1n===e?r:`${r}s`):n;o.push(a)}},i=function(e){switch(typeof e){case"number":if(Number.isFinite(e))return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(Y(1e3*e)%1e3),nanoseconds:Math.trunc(Y(1e6*e)%1e3)};break;case"bigint":return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}throw TypeError("Expected a finite number or bigint")}(e),s=BigInt(i.days);if(t.hideYearAndDays?a(24n*BigInt(s)+BigInt(i.hours),"hour","h"):(t.hideYear?a(s,"day","d"):(a(s/365n,"year","y"),a(s%365n,"day","d")),a(Number(i.hours),"hour","h")),a(Number(i.minutes),"minute","m"),!t.hideSeconds)if(t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3&&!t.subSecondsAsDecimals){let e=Number(i.seconds),r=Number(i.milliseconds),n=Number(i.microseconds),o=Number(i.nanoseconds);if(a(e,"second","s"),t.formatSubMilliseconds)a(r,"millisecond","ms"),a(n,"microsecond","µs"),a(o,"nanosecond","ns");else{let e=r+n/1e3+o/1e6,i="number"==typeof t.millisecondsDecimalDigits?t.millisecondsDecimalDigits:0,s=e>=1?Math.round(e):Math.ceil(e),l=1e3-10**-i,c=i?Math.min(e,l).toFixed(i):Math.min(s,l);a(Number.parseFloat(c),"millisecond","ms",c)}}else{let n=(r?Number(e%G):e)/1e3%60,o="number"==typeof t.secondsDecimalDigits?t.secondsDecimalDigits:1,i=(Math.round(Math.floor(n*10**o+1e-7))/10**o).toFixed(o),s=t.keepDecimalsOnWholeSeconds?i:i.replace(/\.0+$/,"");a(Number.parseFloat(s),"second","s",s)}if(0===o.length)return n+"0"+(t.verbose?" milliseconds":"ms");let l=t.colonNotation?":":" ";return"number"==typeof t.unitCount&&(o=o.slice(0,Math.max(t.unitCount,1))),n+o.join(l)}var K={class:"text-c-1 flex gap-1.5"},J={key:0},ee={class:"sr-only"},et={key:0},er={class:"sr-only"},en={class:"sr-only"},eo={key:1},ea=(0,h.defineComponent)({__name:"ResponseMetaInformation",props:{response:{},eventBus:{}},setup(e){let{translate:t}=(0,r.useLocalization)(),n=(0,f.ref)(),o=(0,f.ref)(0),a=()=>{clearInterval(n.value),n.value=void 0,o.value=0},i=()=>{n.value=setInterval(()=>o.value+=1e3,1e3)};(0,h.onMounted)(()=>{e.eventBus.on("hooks:on:request:sent",i),e.eventBus.on("hooks:on:request:complete",a)}),(0,h.onBeforeUnmount)(()=>{e.eventBus.off("hooks:on:request:sent",i),e.eventBus.off("hooks:on:request:complete",a),a()});let s=(0,h.computed)(()=>{let t=e.response?.status;if(t)return I.httpStatusCodes[t]??void 0});return(r,a)=>((0,h.openBlock)(),(0,h.createElementBlock)("div",K,[n.value&&o.value?((0,h.openBlock)(),(0,h.createElementBlock)("span",J,(0,p.toDisplayString)((0,f.unref)(F)(o.value)),1)):((0,h.openBlock)(),(0,h.createElementBlock)(h.Fragment,{key:1},[(0,h.createElementVNode)("span",null,[(0,h.createElementVNode)("span",ee,(0,p.toDisplayString)((0,f.unref)(t)("apiClient.responseMetaInformation.duration")),1),(0,h.createTextVNode)(" "+(0,p.toDisplayString)((0,f.unref)(F)(e.response.duration)),1)]),(0,f.unref)(H)(e.response)?((0,h.openBlock)(),(0,h.createElementBlock)("span",et,[(0,h.createElementVNode)("span",er,(0,p.toDisplayString)((0,f.unref)(t)("apiClient.responseMetaInformation.size")),1),(0,h.createTextVNode)(" "+(0,p.toDisplayString)((0,f.unref)(H)(e.response)),1)])):(0,h.createCommentVNode)("",!0),s.value?((0,h.openBlock)(),(0,h.createElementBlock)(h.Fragment,{key:1},[(0,h.createElementVNode)("span",en,(0,p.toDisplayString)((0,f.unref)(t)("apiClient.responseMetaInformation.status")),1),s.value.url?((0,h.openBlock)(),(0,h.createBlock)(W.default,{key:0,class:"flex items-center gap-1.5",href:s.value.url},{default:(0,h.withCtx)(()=>[(0,h.createTextVNode)((0,p.toDisplayString)(e.response.status)+" "+(0,p.toDisplayString)(s.value.name)+" ",1),(0,h.createElementVNode)("span",{class:"block h-1.5 w-1.5 rounded-full",style:(0,p.normalizeStyle)({backgroundColor:s.value.color})},null,4)]),_:1},8,["href"])):((0,h.openBlock)(),(0,h.createElementBlock)("span",eo,[(0,h.
12createTextVNode)((0,p.toDisplayString)(e.response.status)+" "+(0,p.toDisplayString)(s.value.name)+" ",1),(0,h.createElementVNode)("span",{class:"block h-1.5 w-1.5 rounded-full",style:(0,p.normalizeStyle)({backgroundColor:s.value.color})},null,4)]))],64)):(0,h.createCommentVNode)("",!0)],64))]))}}),ei=e.i(117670);e.i(338392);var es=e.i(880022),el={class:"flex h-8 flex-1 items-center"},ec={class:"response-heading pointer-events-none absolute"},eu=["id","role"],ed=(0,h.defineComponent)({__name:"ResponseBlock",props:{executionDisabled:{type:Boolean},response:{},requestPayload:{},layout:{},totalPerformedRequests:{},appVersion:{},plugins:{},eventBus:{}},setup(e,{expose:t}){let{translate:c}=(0,r.useLocalization)(),u=(0,h.computed)(()=>{let t=e.response?.headers;return t?Object.keys(t).map(e=>({name:e,value:t[e]??""})):[]}),d=(0,h.computed)(()=>e.response?.headers["content-type"]??e.response?.headers["Content-Type"]),m=(0,h.computed)(()=>e.response?.cookieHeaderKeys.map(e=>(e=>{if(!e||"string"!=typeof e)return null;let t=e.indexOf("=");if(-1===t)return null;let r=e.substring(0,t).trim(),n=e.substring(t+1).trim();return r?{name:r,value:n}:null})(e)).filter(ei.isDefined)??[]),O=["Cookies","Headers","Body"],g=(0,f.ref)("All"),y=(0,h.computed)(()=>["All",...O]),b=(0,h.computed)(()=>({All:(0,h.useId)(),Cookies:(0,h.useId)(),Headers:(0,h.useId)(),Body:(0,h.useId)()})),S=(0,h.computed)(()=>{if(!e.response||!("size"in e.response))return!1;let t=e.response.headers?.["content-type"]||e.response.headers?.["Content-Type"];return!(!t||(e.response.size??0)<=2e5||t.includes("text/html"))&&o.textMediaTypes.some(e=>t.includes(e))&&(e.response.size??0)>2e5}),x=(0,h.computed)(()=>{let t=e.requestPayload?.[1]?.headers;return t?[...new Headers(t)].map(([e,t])=>({name:e,value:t,required:!1})):[]}),k=e=>"All"===g.value||g.value===e;t({responseHeaders:u,responseCookies:m,requestHeaders:x,shouldVirtualize:S,activeFilter:g,filters:y});let w=(0,h.computed)(()=>({All:c("apiClient.sectionFilter.all"),Auth:c("apiClient.sectionFilter.auth"),Variables:c("apiClient.sectionFilter.variables"),Cookies:c("apiClient.sectionFilter.cookies"),Headers:c("apiClient.sectionFilter.headers"),Query:c("apiClient.sectionFilter.query"),Body:c("apiClient.sectionFilter.body")}));return(t,r)=>((0,h.openBlock)(),(0,h.createBlock)(n.default,{"aria-label":(0,f.unref)(c)("apiClient.responseBlock.response"),class:"max-xl:max-h-full"},{title:(0,h.withCtx)(()=>[(0,h.createElementVNode)("div",el,[(0,h.createElementVNode)("div",{"aria-live":"polite",class:(0,p.normalizeClass)(["flex items-center",{"animate-response-heading":e.response}])},[(0,h.createElementVNode)("span",ec,(0,p.toDisplayString)((0,f.unref)(c)("apiClient.responseBlock.response")),1),e.response?((0,h.openBlock)(),(0,h.createBlock)(ea,{key:0,class:"animate-response-children",eventBus:e.eventBus,response:e.response},null,8,["eventBus","response"])):(0,h.createCommentVNode)("",!0)],2),(0,h.createVNode)(a.default,{modelValue:g.value,"onUpdate:modelValue":r[0]||(r[0]=e=>g.value=e),filterIds:b.value,filters:y.value,labels:w.value},null,8,["modelValue","filterIds","filters","labels"])])]),default:(0,h.withCtx)(()=>[(0,h.createElementVNode)("div",{id:b.value.All,class:(0,p.normalizeClass)(["custom-scroll response-section-content relative grid h-full justify-stretch",{"content-start":e.response}]),role:"All"===g.value&&e.response?"tabpanel":"none"},[e.response?((0,h.openBlock)(),(0,h.createElementBlock)(h.Fragment,{key:1},[k("Cookies")?((0,h.openBlock)(),(0,h.createBlock)($,{key:0,id:b.value.Cookies,class:"response-section-content-cookies",cookies:m.value,role:"All"===g.value?"none":"tabpanel"},null,8,["id","cookies","role"])):(0,h.createCommentVNode)("",!0),k("Headers")?((0,h.openBlock)(),(0,h.createBlock)(i.default,{key:1,id:b.value.Headers,class:"response-section-content-headers",headers:x.value,role:"All"===g.value?"none":"tabpanel"},{title:(0,h.withCtx)(()=>[(0,h.createTextVNode)((0,p.toDisplayString)((0,f.unref)(c)("apiClient.responseBlock.requestHeaders")),1)]),_:1},8,["id","headers","role"])):(0,h.createCommentVNode)("",!0),k("Headers")?((0,h.openBlock)(),(0,h.createBlock)(i.default,{key:2,id:b.value.Headers,class:"response-section-content-headers",headers:u.value,role:"All"===g.value?"none":"tabpanel"},{title:(0,h.withCtx)(()=>[(0,h.createTextVNode)((0,p.toDisplayString)((0,f.unref)(c)("apiClient.responseBlock.responseHeaders")),1)]),_:1},8,["id","headers","role"])):(0,h.createCommentVNode)("",!0),((0,h.openBlock)(!0),(0,h.createElementBlock)(h.Fragment,null,(0,h.renderList)(e.plugins,(e,t)=>((0,h.openBlock)(),(0,h.createBlock)((0,f.unref)(es.ScalarErrorBoundary),{key:t},{default:(0,h.withCtx)(()=>[e?.components?.response?(0,h.withDirectives)(((0,h.openBlock)(),(0,h.createBlock)((0,h.resolveDynamicComponent)(e.components.response.component),(0,h.mergeProps)({key:0,ref_for:!0},e.components.response.additionalProps),null,16)),[[_.vShow,"All"===g.value]]):(0,h.createCommentVNode)("",!0)]),_:2},1024))),128)),"All"===g.value||"Body"===g.value?((0,h.openBlock)(),(0,h.createElementBlock)(h.Fragment,{key:3},["reader"in e.response?((0,h.openBlock)(),(0,h.createBlock)(l.default,{key:0,id:b.value.Body,class:"response-section-content-body",contentType:d.value,reader:e.response.reader},null,8,["id","contentType","reader"])):S.value&&"string"==typeof e.response?.data?((0,h.openBlock)(),(0,h.createBlock)(v,{key:1,id:b.value.Body,content:e.response.data,data:e.response?.data,headers:u.value,role:"All"===g.value?"none":"tabpanel"},null,8,["id","content","data","headers","role"])):((0,h.openBlock)(),(0,h.createBlock)(s.default,{key:2,id:b.value.Body,active:!0,class:"response-section-content-body",data:e.response?.data,headers:u.value,layout:"client",plugins:e.plugins,role:"All"===g.value?"none":"tabpanel",title:(0,f.unref)(c)("apiClient.responseBlock.body")},null,8,["id","data","headers","plugins","role","title"]))],64)):(0,h.createCommentVNode)("",!0)],64)):((0,h.openBlock)(),(0,h.createBlock)(X,{key:0,appVersion:e.appVersion,executionDisabled:e.executionDisabled,layout:e.layout,totalPerformedRequests:e.totalPerformedRequests,onAddRequest:r[1]||(r[1]=t=>e.eventBus.emit("ui:open:command-palette",{action:"create-request",payload:void 0})),onOpenCommandPalette:r[2]||(r[2]=t=>e.eventBus.emit("ui:open:command-palette")),onSendRequest:r[3]||(r[3]=t=>e.eventBus.emit("operation:send:request:hotkey"))},null,8,["appVersion","executionDisabled","layout","totalPerformedRequests"])),(0,h.createVNode)(z,{eventBus:e.eventBus},null,8,["eventBus"])],10,eu)]),_:1},8,["aria-label"]))}}),eh=(0,t.default)(ed,[["__scopeId","data-v-2694e1a2"]]);e.s(["default",0,eh],859934)},672175,412403,e=>{"use strict";var t=e.i(193141),r=e.i(53267),n=e.i(224041);e.i(761626);var o=e.i(875418),a=e.i(112111),i=e.i(80250);e.i(453217);var s=e.i(989880),l=e.i(724473);e.i(143669);var c=e.i(951156);e.i(300539);var u=e.i(99837),d=e.i(380910);let h=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],p=(e,t=3)=>{if(!Number.isFinite(e)||e<=0)return"0 B";let r=Math.max(0,Math.min(Math.floor(Math.log10(e)/3),h.length-1));return Number((e/1e3**r).toPrecision(t))>=1e3&&r<h.length-1&&(r+=1),`${Number((e/1e3**r).toPrecision(t))} ${h[r]}`};e.s(["formatBytes",0,p],412403);var f={class:"flex w-full items-center justify-between"},m={class:"text-c-2 ml-2 text-xs"},O={key:0,class:"mr-2 flex items-center gap-2"},g={class:"text-c-2"},v={key:0,class:"text-red bg-b-danger sticky top-0 border-b p-2"},y={key:1,class:"p-2"},b=(0,o.defineComponent)({__name:"ResponseBodyStreaming",props:{reader:{},contentType:{default:"text/event-stream"}},setup(e){let h,{translate:b}=(0,t.useLocalization)(),S=(0,d.useLoadingState)(),x=(0,a.ref)(""),k=(0,a.ref)(0),{copyToClipboard:w}=(0,c.useClipboard)(),$=()=>{h&&(URL.revokeObjectURL(h),h=void 0)},P=()=>{$(),h=URL.createObjectURL(new Blob([x.value],{type:"text/plain;charset=utf-8"}));let e=document.createElement("a");e.href=h,e.download="response-stream.txt",e.click()},Q=(0,a.ref)(null),C=(0,a.ref)(null),T=null;(0,o.watch)(x,async()=>{await (0,o.nextTick)(),C.value&&(C.value.scrollTop=C.value.scrollHeight)});let B=e=>
12{Promise.resolve(e.cancel()).catch(()=>{})},A=async t=>{try{let n=0,o=(0,r.createResponseStreamParser)(e.contentType,e=>{if((n+=(0,l.getUtf8ByteLength)(e))>0x1000000)throw Error("Stream display reached its 16 MiB limit. Cancelled further reading.");x.value+=e});for(;T===t;){let{done:e,value:r}=await t.read();if(T!==t)return;if(e){o.finish(),S.clear();return}k.value+=r.byteLength,o.push(r)}}catch(e){T===t&&(console.error("Error reading stream:",e),Q.value=e instanceof Error?e:Error(String(e)),B(t),S.clear())}finally{t.releaseLock()}},R=()=>{let e=T;T=null,e&&B(e),S.clear()};return(0,o.watch)(()=>e.reader,()=>{R(),T=e.reader,S.start(),$(),k.value=0,x.value="",Q.value=null,A(e.reader)},{immediate:!0}),(0,o.onBeforeUnmount)(()=>{R(),$()}),(e,t)=>((0,o.openBlock)(),(0,o.createBlock)((0,a.unref)(n.default),{class:"max-h-content overflow-y-hidden"},{title:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",f,[(0,o.createElementVNode)("div",null,[(0,o.createTextVNode)((0,i.toDisplayString)((0,a.unref)(b)("apiClient.responseBodyStreaming.body"))+" ",1),(0,o.createElementVNode)("span",m,(0,i.toDisplayString)((0,a.unref)(p)(k.value))+" received ",1)]),(0,a.unref)(S).isLoading?((0,o.openBlock)(),(0,o.createElementBlock)("div",O,[(0,o.createVNode)((0,a.unref)(u.ScalarLoading),{loadingState:(0,a.unref)(S),size:"xs"},null,8,["loadingState"]),(0,o.createElementVNode)("span",g,(0,i.toDisplayString)((0,a.unref)(b)("apiClient.responseBodyStreaming.listening")),1)])):(0,o.createCommentVNode)("",!0)])]),actions:(0,o.withCtx)(()=>[(0,a.unref)(S).isLoading?((0,o.openBlock)(),(0,o.createBlock)((0,a.unref)(s.ScalarButton),{key:0,size:"sm",variant:"ghost",onClick:R},{default:(0,o.withCtx)(()=>[(0,o.createTextVNode)((0,i.toDisplayString)((0,a.unref)(b)("apiClient.responseBodyStreaming.cancel")),1)]),_:1})):(0,o.createCommentVNode)("",!0),x.value?((0,o.openBlock)(),(0,o.createBlock)((0,a.unref)(s.ScalarButton),{key:1,size:"sm",variant:"ghost",onClick:t[0]||(t[0]=e=>(0,a.unref)(w)(x.value))},{default:(0,o.withCtx)(()=>[...t[1]||(t[1]=[(0,o.createTextVNode)(" Copy text ",-1)])]),_:1})):(0,o.createCommentVNode)("",!0),x.value?((0,o.openBlock)(),(0,o.createBlock)((0,a.unref)(s.ScalarButton),{key:2,size:"sm",variant:"ghost",onClick:P},{default:(0,o.withCtx)(()=>[...t[2]||(t[2]=[(0,o.createTextVNode)(" Download text ",-1)])]),_:1})):(0,o.createCommentVNode)("",!0)]),default:(0,o.withCtx)(()=>[(0,o.createElementVNode)("div",{ref_key:"contentContainer",ref:C,class:"text-xxs font-code h-full overflow-auto leading-6 whitespace-pre-wrap"},[Q.value?((0,o.openBlock)(),(0,o.createElementBlock)("div",v,(0,i.toDisplayString)(Q.value.message),1)):(0,o.createCommentVNode)("",!0),x.value?((0,o.openBlock)(),(0,o.createElementBlock)("div",y,(0,i.toDisplayString)(x.value),1)):(0,o.createCommentVNode)("",!0)],512)]),_:1}))}});e.s(["default",0,b],672175)},346910,e=>{"use strict";var t=e.i(142653),r=e.i(193141),n=e.i(757373),o=e.i(528602),a=e.i(565408);e.i(761626);var i=e.i(875418),s=e.i(80250),l=e.i(112111);e.i(37055);var c=e.i(965487),u=e.i(436278),d=e.i(340094);e.i(552546);var h=e.i(748650),p=e.i(91578);let f=(e,t=2)=>e>1e3?(e/1e3).toFixed(t)+"s":e.toFixed(t)+"ms";var m={class:"sr-only"},O={class:"min-w-0"},g={class:"text-c-1 min-w-0 truncate"},v=(0,i.defineComponent)({__name:"AddressBarHistory",props:{target:{},history:{}},emits:["select:history:item","update:open"],setup(e,{emit:t}){let{translate:v}=(0,r.useLocalization)();return(r,y)=>((0,i.openBlock)(),(0,i.createBlock)((0,l.unref)(d.Menu),{as:"div"},{default:(0,i.withCtx)(({open:r})=>[(0,i.createVNode)(o.default,{value:r,onChange:y[0]||(y[0]=e=>t("update:open",e)),onUnmount:y[1]||(y[1]=e=>t("update:open",!1))},null,8,["value"]),(0,i.createVNode)((0,l.unref)(h.ScalarFloating),{offset:0,resize:"",target:e.target},(0,i.createSlots)({default:(0,i.withCtx)(()=>[e.history.length?((0,i.openBlock)(),(0,i.createBlock)((0,l.unref)(d.MenuButton),{key:0,class:"address-bar-history-button text-c-3 focus:text-c-1 relative mr-1 rounded-lg p-1.5"},{default:(0,i.withCtx)(()=>[(0,i.createVNode)((0,l.unref)(c.ScalarIcon),{icon:"History",size:"sm",thickness:"2.25"}),(0,i.createElementVNode)("span",m,(0,s.toDisplayString)((0,l.unref)(v)("apiClient.addressBarHistory.requestHistory")),1)]),_:1})):(0,i.createCommentVNode)("",!0)]),_:2},[r?{name:"floating",fn:(0,i.withCtx)(({width:r})=>[(0,i.createVNode)((0,l.unref)(d.MenuItems),{class:"custom-scroll grid max-h-[inherit] grid-cols-[44px_1fr_repeat(3,auto)] items-center p-0.75",static:"",style:(0,s.normalizeStyle)({width:r})},{default:(0,i.withCtx)(()=>[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(e.history,(e,r)=>((0,i.openBlock)(),(0,i.createBlock)((0,l.unref)(d.MenuItem),{key:r,as:"button",class:"font-code ui-active:
12*:bg-b-2 text-c-2 contents text-sm font-medium *:flex *:h-8 *:cursor-pointer *:items-center *:rounded-none *:px-1.5 *:first:rounded-l *:last:rounded-r",value:r,onClick:e=>t("select:history:item",{index:r})},{default:(0,i.withCtx)(()=>[(0,i.createVNode)((0,l.unref)(n.default),{class:"text-[11px]",method:e.method},null,8,["method"]),(0,i.createElementVNode)("div",O,[(0,i.createElementVNode)("div",g,(0,s.toDisplayString)(e.path),1)]),(0,i.createElementVNode)("div",null,(0,s.toDisplayString)((0,l.unref)(f)(e.duration)),1),(0,i.createElementVNode)("div",{class:(0,s.normalizeClass)([(0,l.unref)(a.getStatusCodeColor)(e.status).color])},(0,s.toDisplayString)(e.status),3),(0,i.createElementVNode)("div",null,(0,s.toDisplayString)((0,l.unref)(u.httpStatusCodes)[e.status]?.name),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["style"]),(0,i.createVNode)((0,l.unref)(p.ScalarFloatingBackdrop),{class:"inset-x-px rounded-none rounded-b-lg"})]),key:"0"}:void 0]),1032,["target"])]),_:1}))}}),y=(0,t.default)(v,[["__scopeId","data-v-a54819b1"]]);e.s(["default",0,y],346910)},317957,565408,340094,e=>{"use strict";let t,r;var n=e.i(193141),o=e.i(528602),a=e.i(209906);e.i(761626);var i=e.i(875418),s=e.i(80250),l=e.i(112111);e.i(453217);var c=e.i(989880),u=e.i(776888),d=e.i(94982);e.i(803935);var h=e.i(448120);e.i(552546);var p=e.i(91578),f={class:"sr-only"},m={class:"sr-only"},O=["onClick"],g={class:"flex items-center justify-center"},v=(0,i.defineComponent)({name:"ServerDropdown",props:{meta:{},servers:{},server:{},target:{},layout:{}},emits:["update:selectedServer","update:variable","update:servers","update:open"],setup(e,{emit:t}){let{translate:r}=(0,n.useLocalization)(),v=(0,i.computed)(()=>e.servers.map(e=>({id:e.url,label:e.name||e.url||r("apiClient.serverDropdown.unknownServer")}))),y=(0,i.computed)(()=>e.server?.url?.endsWith("/")?e.server.url.slice(0,-1):e.server?.url||"");return(n,b)=>((0,i.openBlock)(),(0,i.createBlock)((0,l.unref)(h.ScalarPopover),{class:"max-h-[inherit] p-0 text-base",focus:"",offset:0,placement:"bottom",resize:"",target:e.target,teleport:`#${e.target}`},{popover:(0,i.withCtx)(({close:n})=>[(0,i.createElementVNode)("div",{class:"custom-scroll flex max-h-[inherit] flex-col gap-1 p-1",onClick:n},[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(v.value,(r,n)=>((0,i.openBlock)(),(0,i.createBlock)(a.default,{key:r.id,server:e.server,serverOption:r,type:"request","onUpdate:selectedServer":n=>t("update:selectedServer",{url:r.id,meta:e.meta}),"onUpdate:variable":(r,o)=>t("update:variable",{index:n,key:r,value:o,meta:e.meta})},null,8,["server","serverOption","onUpdate:selectedServer","onUpdate:variable"]))),128)),"modal"!==e.layout?((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:0,class:"text-xxs hover:bg-b-2 flex cursor-pointer items-center gap-1.5 rounded p-1.75",type:"button",onClick:b[0]||(b[0]=e=>t("update:servers"))},[(0,i.createElementVNode)("div",g,[(0,i.createVNode)((0,l.unref)(u.ScalarIconPencilSimple),{class:"size-4"})]),(0,i.createElementVNode)("span",null,(0,s.toDisplayString)((0,l.unref)(r)("apiClient.serverDropdown.updateServers")),1)])):(0,i.createCommentVNode)("",!0)],8,O)]),backdrop:(0,i.withCtx)(({open:e})=>[(0,i.createVNode)(o.default,{value:e,onChange:b[1]||(b[1]=e=>t("update:open",e)),onUnmount:b[2]||(b[2]=e=>t("update:open",!1))},null,8,["value"]),(0,i.createVNode)((0,l.unref)(p.ScalarFloatingBackdrop),{class:"inset-x-px rounded-none rounded-b-lg"})]),default:(0,i.withCtx)(()=>[(0,i.createVNode)((0,l.unref)(c.ScalarButton),{class:"hover:bg-b-2 font-code text-c-2 h-auto gap-0.75 rounded border px-1.5 text-base whitespace-nowrap @3xl:ml-0.75",variant:"ghost"},{default:(0,i.withCtx)(()=>[e.server?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:0},[(0,i.createElementVNode)("span",f,(0,s.toDisplayString)((0,l.unref)(r)("apiClient.serverDropdown.server")),1),(0,i.createTextVNode)(" "+(0,s.toDisplayString)(y.value),1)],64)):((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:1},[(0,i.createElementVNode)("span",m,(0,s.toDisplayString)((0,l.unref)(r)("apiClient.serverDropdown.addServer")),1),(0,i.createVNode)((0,l.unref)(d.ScalarIconPlus),{class:"size-3"})],64))]),_:1})]),_:1},8,["target","teleport"]))}});e.s(["default",0,v],317957);var y={100:{color:"text-yellow"},200:{color:"text-green"},202:{color:"text-green"},300:{color:"text-blue"},304:{color:"text-blue"},400:{color:"text-red"},401:{color:"text-orange"},422:{color:"text-yellow"},423:{color:"text-purple"},505:{color:"text-orange"}};e.s(["getStatusCodeColor",0,e=>y[e]||{color:"text-grey"}],565408);var b=e.i(776598),S=e.i(130722),x=e.i(313163),k=e.i(944860),w=e.i(221683),$=e.i(164766),P=e.i(588271),Q=e.i(290523),C=e.i(70155),T=e.i(905315),B=e.i(549202),A=e.i(349376),R=e.i(742182),E=((t=E||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),V=((r=V||{})[r.Pointer=0]="Pointer",r[r.Other=1]="Other",r);let Z=Symbol("MenuContext");function j(e){let t=(0,i.inject)(Z,null);if(null===t){let t=Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,j),t}return t}let X=(0,i.defineComponent)({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(e,{slots:t,attrs:r}){let n=(0,l.ref)(1),o=(0,l.ref)(null),a=(0,l.ref)(null),s=(0,l.ref)([]),c=(0,l.ref)(""),u=(0,l.ref)(null),d=(0,l.ref)(1);function h(e=e=>e){let t=null!==u.value?s.value[u.value]:null,r=(0,B.sortByDomNode)(e(s.value.slice()),e=>(0,T.dom)(e.dataRef.domRef)),n=t?r.indexOf(t):null;return -1===n&&(n=null),{items:r,activeItemIndex:n}}let p={menuState:n,buttonRef:o,itemsRef:a,items:s,searchQuery:c,activeItemIndex:u,activationTrigger:d,closeMenu:()=>{n.value=1,u.value=null},openMenu:()=>n.value=0,goToItem(e,t,r){let n=h(),o=(0,C.calculateActiveIndex)(e===C.Focus.Specific?{focus:C.Focus.Specific,id:t}:{focus:e},{resolveItems:()=>n.items,resolveActiveIndex:()=>n.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.disabled});c.value="",u.value=o,d.value=null!=r?r:1,s.value=n.items},search(e){let t=+(""===c.value);c.value+=e.toLowerCase();let r=(null!==u.value?s.value.slice(u.value+t).concat(s.value.slice(0,u.value+t)):s.value).find(e=>e.dataRef.textValue.startsWith(c.value)&&!e.dataRef.disabled),n=r?s.value.indexOf(r):-1;-1===n||n===u.value||(u.value=n,d.value=1)},clearSearch(){c.value=""},registerItem(e,t){let r=h(r=>[...r,{id:e,dataRef:t}]);
12s.value=r.items,u.value=r.activeItemIndex,d.value=1},unregisterItem(e){let t=h(t=>{let r=t.findIndex(t=>t.id===e);return -1!==r&&t.splice(r,1),t});s.value=t.items,u.value=t.activeItemIndex,d.value=1}};return(0,S.useOutsideClick)([o,a],(e,t)=>{var r;p.closeMenu(),(0,B.isFocusableElement)(t,B.FocusableMode.Loose)||(e.preventDefault(),null==(r=(0,T.dom)(o))||r.focus())},(0,i.computed)(()=>0===n.value)),(0,i.provide)(Z,p),(0,P.useOpenClosedProvider)((0,i.computed)(()=>(0,A.match)(n.value,{0:P.State.Open,1:P.State.Closed}))),()=>{let o={open:0===n.value,close:p.closeMenu};return(0,R.render)({ourProps:{},theirProps:e,slot:o,slots:t,attrs:r,name:"Menu"})}}}),_=(0,i.defineComponent)({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var o;let a=null!=(o=e.id)?o:`headlessui-menu-button-${(0,b.useId)()}`,s=j("MenuButton");function l(e){switch(e.key){case Q.Keys.Space:case Q.Keys.Enter:case Q.Keys.ArrowDown:e.preventDefault(),e.stopPropagation(),s.openMenu(),(0,i.nextTick)(()=>{var e;null==(e=(0,T.dom)(s.itemsRef))||e.focus({preventScroll:!0}),s.goToItem(C.Focus.First)});break;case Q.Keys.ArrowUp:e.preventDefault(),e.stopPropagation(),s.openMenu(),(0,i.nextTick)(()=>{var e;null==(e=(0,T.dom)(s.itemsRef))||e.focus({preventScroll:!0}),s.goToItem(C.Focus.Last)})}}function c(e){e.key===Q.Keys.Space&&e.preventDefault()}function u(t){var r;e.disabled||(0===s.menuState.value?(s.closeMenu(),(0,i.nextTick)(()=>{var e;return null==(e=(0,T.dom)(s.buttonRef))?void 0:e.focus({preventScroll:!0})}
12)):(t.preventDefault(),s.openMenu(),r=()=>{var e;return null==(e=(0,T.dom)(s.itemsRef))?void 0:e.focus({preventScroll:!0})},requestAnimationFrame(()=>requestAnimationFrame(r))))}n({el:s.buttonRef,$el:s.buttonRef});let d=(0,x.useResolveButtonType)((0,i.computed)(()=>({as:e.as,type:t.type})),s.buttonRef);return()=>{var n;let o={open:0===s.menuState.value},{...i}=e,h={ref:s.buttonRef,id:a,type:d.value,"aria-haspopup":"menu","aria-controls":null==(n=(0,T.dom)(s.itemsRef))?void 0:n.id,"aria-expanded":0===s.menuState.value,onKeydown:l,onKeyup:c,onClick:u};return(0,R.render)({ourProps:h,theirProps:i,slot:o,attrs:t,slots:r,name:"MenuButton"})}}}),M=(0,i.defineComponent)({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:r,expose:n}){var o;let a=null!=(o=e.id)?o:`headlessui-menu-items-${(0,b.useId)()}`,s=j("MenuItems"),c=(0,l.ref)(null);function u(e){var t;switch(c.value&&clearTimeout(c.value),e.key){case Q.Keys.Space:if(""!==s.searchQuery.value)return e.preventDefault(),e.stopPropagation(),s.search(e.key);case Q.Keys.Enter:if(e.preventDefault(),e.stopPropagation(),null!==s.activeItemIndex.value){let e=s.items.value[s.activeItemIndex.value];null==(t=(0,T.dom)(e.dataRef.domRef))||t.click()}s.closeMenu(),(0,B.restoreFocusIfNecessary)((0,T.dom)(s.buttonRef));break;case Q.Keys.ArrowDown:return e.preventDefault(),e.stopPropagation(),s.goToItem(C.Focus.Next);case Q.Keys.ArrowUp:return e.preventDefault(),e.stopPropagation(),s.goToItem(C.Focus.Previous);case Q.Keys.Home:case Q.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),s.goToItem(C.Focus.First);case Q.Keys.End:case Q.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),s.goToItem(C.Focus.Last);case Q.Keys.Escape:e.preventDefault(),e.stopPropagation(),s.closeMenu(),(0,i.nextTick)(()=>{var e;return null==(e=(0,T.dom)(s.buttonRef))?void 0:e.focus({preventScroll:!0})});break;case Q.Keys.Tab:e.preventDefault(),e.stopPropagation(),s.closeMenu(),(0,i.nextTick)(()=>(0,B.focusFrom)((0,T.dom)(s.buttonRef),e.shiftKey?B.Focus.Previous:B.Focus.Next));break;default:1===e.key.length&&(s.search(e.key),c.value=setTimeout(()=>s.clearSearch(),350))}}function d(e){e.key===Q.Keys.Space&&e.preventDefault()}n({el:s.itemsRef,$el:s.itemsRef}),function({container:e,accept:t,walk:r,enabled:n}){(0,i.watchEffect)(()=>{let o=e.value;if(!o||void 0!==n&&!n.value)return;let a=(0,$.getOwnerDocument)(e);if(!a)return;let i=Object.assign(e=>t(e),{acceptNode:t}),s=a.createTreeWalker(o,NodeFilter.SHOW_ELEMENT,i,!1);for(;s.nextNode();)r(s.currentNode)})}({container:(0,i.computed)(()=>(0,T.dom)(s.itemsRef)),enabled:(0,i.computed)(()=>0===s.menuState.value),accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let h=(0,P.useOpenClosed)(),p=(0,i.computed)(()=>null!==h?(h.value&P.State.Open)===P.State.Open:0===s.menuState.value);return()=>{var n,o;let i={open:0===s.menuState.value},{...l}=e,c={"aria-activedescendant":null===s.activeItemIndex.value||null==(n=s.items.value[s.activeItemIndex.value])?void 0:n.id,"aria-labelledby":null==(o=(0,T.dom)(s.buttonRef))?void 0:o.id,id:a,onKeydown:u,onKeyup:d,role:"menu",tabIndex:0,ref:s.itemsRef};return(0,R.render)({ourProps:c,theirProps:l,slot:i,attrs:t,slots:r,features:R.Features.RenderStrategy|R.Features.Static,visible:p.value,name:"MenuItems"})}}}),q=(0,i.defineComponent)({name:"MenuItem",inheritAttrs:!1,props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(e,{slots:t,attrs:r,expose:n}){var o;let a=null!=(o=e.id)?o:`headlessui-menu-item-${(0,b.useId)()}`,s=j("MenuItem"),c=(0,l.ref)(null);n({el:c,$el:c});let u=(0,i.computed)(()=>null!==s.activeItemIndex.value&&s.items.value[s.activeItemIndex.value].id===a),d=(0,k.useTextValue)(c),h=(0,i.computed)(()=>({disabled:e.disabled,get textValue(){return d()},domRef:c}));function p(t){if(e.disabled)return t.preventDefault();s.closeMenu(),(0,B.restoreFocusIfNecessary)((0,T.dom)(s.buttonRef))}function f(){if(e.disabled)return s.goToItem(C.Focus.Nothing);s.goToItem(C.Focus.Specific,a)}(0,i.onMounted)(()=>s.registerItem(a,h)),(0,i.onUnmounted)(()=>s.unregisterItem(a)),(0,i.watchEffect)(()=>{0===s.menuState.value&&u.value&&0!==s.activationTrigger.value&&(0,i.nextTick)(()=>{var e,t;return null==(t=null==(e=(0,T.dom)(c))?void 0:e.scrollIntoView)?void 0:t.call(e,{block:"nearest"})})});let m=(0,w.useTrackedPointer)();function O(e){m.update(e)}function g(t){m.wasMoved(t)&&(e.disabled||u.value||s.goToItem(C.Focus.Specific,a,0))}function v(t){m.wasMoved(t)&&(e.disabled||u.value&&s.goToItem(C.Focus.Nothing))}return()=>{let{disabled:n,...o}=e,i={active:u.value,disabled:n,close:s.closeMenu};return(0,R.render)({ourProps:{id:a,ref:c,role:"menuitem",tabIndex:!0===n?void 0:-1,"aria-disabled":!0===n||void 0,onClick:p,onFocus:f,onPointerenter:O,onMouseenter:O,onPointermove:g,onMousemove:g,onPointerleave:v,onMouseleave:v},theirProps:{...r,...o},slot:i,attrs:r,slots:t,name:"MenuItem"})}}});e.s(["Menu",0,X,"MenuButton",0,_,"MenuItem",0,q,"MenuItems",0,M],340094)},855300,e=>{"use strict";e.i(32064);var t=e.i(838550),r=e.i(664784);e.s(["mapHiddenClientsConfig",0,e=>{if(!0===e)return[];if(!e||Array.isArray(e)&&0===e.length)return t.AVAILABLE_CLIENTS;let n=new Set(t.AVAILABLE_CLIENTS);if(Array.isArray(e))for(let o of e){let e=t.GROUPED_CLIENTS[o];if(e)for(let t of e)n.delete(`${o}/${t}`);else if(o.includes("/"))n.delete(o);else for(let e of(0,r.objectKeys)(t.GROUPED_CLIENTS))n.delete(`${e}/${o}`)}else if("object"==typeof e){for(let[r,o]of Object.entries(e))if(!0===o){let e=t.GROUPED_CLIENTS[r];if(e)for(let t of e)n.delete(`${r}/${t}`)}else if(Array.isArray(o))for(let e of o)n.delete(e),n.delete(`${r}/${e}`)}return Array.from(n)}])},870282,394853,406973,161447,857185,47604,387412,e=>{"use strict";var t=e.i(181875),r=e.i(462273),n=e.i(585881),o=e.i(807309),a=e.i(525673),i=e.i(454537),s=e.i(550030),l=e.i(805310),c=e.i(567390
12);e.i(761626);var u=e.i(875418),d=e.i(112111),h=e.i(80250);e.i(453217);var p=e.i(989880);e.i(949509);var f=e.i(15242),m=e.i(507485),O=e.i(622776),g=e.i(236387);e.i(678661);var v=e.i(343589);e.i(819786);var y=e.i(837889),b=e.i(700474),S=e.i(562649),x=e.i(377970),k=e.i(95952),w={key:0},$={key:1},P={key:2},Q={key:3},C={key:4},T={key:5},B=(0,u.defineComponent)({name:"ScalarIconCaretUp",props:{label:{},weight:{}},setup(e){let{bind:t,weight:r}=(0,k.useScalarIcon)(e);return(e,n)=>((0,u.openBlock)(),(0,u.createElementBlock)("svg",(0,u.mergeProps)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},(0,d.unref)(t)),[(0,u.renderSlot)(e.$slots,"default"),"bold"===(0,d.unref)(r)?((0,u.openBlock)(),(0,u.createElementBlock)("g",w,[...n[0]||(n[0]=[(0,u.createElementVNode)("path",{d:"M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z"},null,-1)])])):"duotone"===(0,d.unref)(r)?((0,u.openBlock)(),(0,u.createElementBlock)("g",$,[...n[1]||(n[1]=[(0,u.createElementVNode)("path",{d:"M208,160H48l80-80Z",opacity:"0.2"},null,-1),(0,u.createElementVNode)("path",{d:"M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z"},null,-1)])])):"fill"===(0,d.unref)(r)?((0,u.openBlock)(),(0,u.createElementBlock)("g",P,[...n[2]||(n[2]=[(0,u.createElementVNode)("path",{d:"M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z"},null,-1)])])):"light"===(0,d.unref)(r)?((0,u.openBlock)(),(0,u.createElementBlock)("g",Q,[...n[3]||(n[3]=[(0,u.createElementVNode)("path",{d:"M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z"},null,-1)])])):"regular"===(0,d.unref)(r)?((0,u.openBlock)(),(0,u.createElementBlock)("g",C,[...n[4]||(n[4]=[(0,u.createElementVNode)("path",{d:"M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"},null,-1)])])):"thin"===(0,d.unref)(r)?((0,u.openBlock)(),(0,u.createElementBlock)("g",T,[...n[5]||(n[5]=[(0,u.createElementVNode)("path",{d:"M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z"},null,-1)])])):(0,u.createCommentVNode)("",!0)],16))}}),A=e.i(273865),R=e.i(150413),E={key:0,class:"shrink-0 whitespace-nowrap text-xs tabular-nums text-c-3"},V=["disabled"],Z=["disabled"],j=(0,u.defineComponent)({__name:"ScalarVirtualTextSearch",props:{query:{},matchCount:{},activeMatchIndex:{}},emits:["update:query","next","prev","close"],setup(e,{expose:t,emit:r}){let n=(0,d.ref)(null),o=(0,d.ref)(e.query);(0,u.watch)(()=>e.query,e=>{o.value=e}),(0,u.watch)(o,e=>{r("update:query",e)});let a=e=>{"Enter"===e.key&&(e.preventDefault(),e.shiftKey?r("prev"):r("next")),"Escape"===e.key&&(e.preventDefault(),r("close"))};return t({focus:()=>{(0,u.nextTick)(()=>n.value?.focus())}}),(t,i)=>((0,u.openBlock)(),(0,u.createElementBlock)("div",{class:"scalar-virtual-text-search ml-auto mr-2 mt-2 flex h-fit w-fit items-center gap-1 overflow-visible rounded-lg bg-b-2 px-2 py-1 shadow-md",onClick:i[4]||(i[4]=(0,S.withModifiers)(()=>{},["stop"]))},[(0,u.createVNode)((0,d.unref)(A.ScalarIconMagnifyingGlass),{class:"pointer-events-none size-3.5 shrink-0 text-c-3"}),(0,u.withDirectives)((0,u.createElementVNode)("input",{ref_key:"searchInputRef",ref:n,"onUpdate:modelValue":i[0]||(i[0]=e=>o.value=e),"aria-label":"Search in text",autocomplete:"off",class:"scalar-virtual-text-search-input min-w-0 w-36 appearance-none border-none bg-transparent px-1 py-0.5 text-xs text-c-1 outline-none",placeholder:"Find...",spellcheck:"false",type:"search",onKeydown:a},null,544),[[S.vModelText,o.value]]),o.value?((0,u.openBlock)(),(0,u.createElementBlock)("span",E,(0,h.toDisplayString)(e.matchCount>0?`${e.activeMatchIndex+1} of ${e.matchCount}`:"No results"),1)):(0,u.createCommentVNode)("",!0),i[5]||(i[5]=(0,u.createElementVNode)("span",{class:"mx-0.5 h-3.5 w-px bg-b-3"},null,-1)),(0,u.createElementVNode)("button",{"aria-label":"Previous match",class:"flex size-5 items-center justify-center rounded text-c-3 hover:bg-b-3 hover:text-c-1 disabled:pointer-events-none disabled:opacity-30",disabled:0===e.matchCount,title:"Previous match (Shift+Enter)",type:"button",onClick:i[1]||(i[1]=e=>r("prev"))},[(0,u.createVNode)((0,d.unref)(B),{class:"size-3"})],8,V),(0,u.createElementVNode)("button",{"aria-label":"Next match",class:"flex size-5 items-center justify-center rounded text-c-3 hover:bg-b-3 hover:text-c-1 disabled:pointer-events-none disabled:opacity-30",disabled:0===e.matchCount,title:"Next match (Enter)",type:"button",onClick:i[2]||(i[2]=e=>r("next"))},[(0,u.createVNode)((0,d.unref)(x.ScalarIconCaretDown),{class:"size-3"})],8,Z),(0,u.createElementVNode)("button",{"aria-label":"Close search",class:"flex size-5 items-center justify-center rounded text-c-3 hover:bg-b-3 hover:text-c-1",title:"Close (Escape)",type:"button",onClick:i[3]||(i[3]=e=>r("close"))},[(0,u.createVNode)((0,d.unref)(R.ScalarIconX),{class:"size-3"})])]))}}),X=(0,b.default)(j,[["__scopeId","data-v-95edadbb"]]),_={key:0,class:"sticky top-0 z-10 flex h-0 w-full justify-end overflow-visible"},M=(0,u.defineComponent)({__name:"ScalarVirtualText",props:{text:{},lineHeight:{default:20},containerClass:{default:""},contentClass:{default:""},lineClass:{default:""},searchable:{type:Boolean,default:!1}},setup(e){let t=(0,d.ref)(null),r=(0,d.ref)(null),n=(0,d.ref)(0),o=(0,d.ref)(0),a=(0,d.ref)(""),i=(0,d.ref)(!1),s=(0,d.ref)(0),l=(0,u.computed)(()=>e.text.split("\n")),c=(0,u.computed)(()=>l.value.length*e.lineHeight),p=(0,u.computed)(()=>Math.floor(n.value/e.lineHeight)),f=(0,u.computed)(()=>Math.min(Math.ceil((n.value+o.value)/e.lineHeight),l.value.length)),m=(0,u.computed)(()=>Math.max(0,p.value-10)),O=(0,u.computed)(()=>{let e=Math.min(l.value.length,f.value+10);return l.value.slice(m.value,e)}),g=(0,u.computed)(()=>m.value*e.lineHeight),v=(0,u.computed)(()=>{let e=a.value;if(!e)return[];let t=e.toLowerCase(),r=[];for(let n=0;n<l.value.length;n++){let o=l.value[n];if(!o)continue;let a=o.toLowerCase(),i=0;for(;i<a.length;){let o=a.indexOf(t,i);if(-1===o)break;r.push({line:n,start:o,end:o+e.length}),i=o+t.length}}return r}),y=(0,u.computed)(()=>{let e=new Set;for(let t of v.value)e.add(t.line);return e});(0,u.watch)(()=>v.value.length,e=>{0===e?s.value=0:s.value>=e&&(s.value=e-1)});let b=r=>{if(!t.value)return;let n=r.line*e.lineHeight,o=t.value.scrollTop,a=o+t.value.clientHeight;(n<o||n+e.lineHeight>a)&&(t.value.scrollTop=n-t.value.clientHeight/2)},S=e=>{let t=v.value[e];t&&(s.value=e,b(t))},x=()=>{0!==v.value.length&&S((s.value+1)%v.value.length)},k=()=>{0!==v.value.length&&S((s.value-1+v.value.length)%v.value.length)},w=()=>{i.value=!1,a.value="",s.value=0},$=t=>{e.searchable&&((t.metaKey||t.ctrlKey)&&"f"===t.key&&(t.preventDefault(),t.stopPropagation(),i.value=!0,(0,u.nextTick)(()=>r.value?.focus())),"Escape"===t.key&&i.value&&(t.preventDefault(),w()))};(0,u.watch)(a,()=>{s.value=0;let e=v.value[0];e&&b(e)});let P=()=>t.value&&(n.value=t.value.scrollTop),Q=()=>t.value&&(o.value=t.value.clientHeight);return(0,u.onMounted)(()=>{Q(),window.addEventListener("resize",Q)}),(0,u.onBeforeUnmount)(()=>{window.removeEventListener("resize",Q)}),(n,o)=>((0,u.openBlock)(),(0,u.createElementBlock)("div",{ref_key:"containerRef",ref:t,class:(0,h.normalizeClass)(["scalar-virtual-text relative overflow-auto",e.containerClass]),tabindex:"0",onKeydown:$,onScroll:P},[e.searchable&&i.value?((0,u.openBlock)(),(0,u.createElementBlock)("div",_,[(0,u.createVNode)(X,{ref_key:"searchRef",ref:r,query:a.value,"onUpdate:query":o[0]||(o[0]=e=>a.value=e),activeMatchIndex:s.value,matchCount:v.value.length,onClose:w,onNext:x,onPrev:k}
12,null,8,["query","activeMatchIndex","matchCount"])])):(0,u.createCommentVNode)("",!0),(0,u.createElementVNode)("div",{style:(0,h.normalizeStyle)({height:`${c.value}px`})},null,4),(0,u.createElementVNode)("code",{class:(0,h.normalizeClass)(["scalar-virtual-text-content absolute left-0 right-0 top-0",e.contentClass]),style:(0,h.normalizeStyle)({transform:`translateY(${g.value}px)`})},[((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,null,(0,u.renderList)(O.value,(t,r)=>((0,u.openBlock)(),(0,u.createElementBlock)("div",{key:m.value+r,class:(0,h.normalizeClass)(["scalar-virtual-text-line",e.lineClass]),style:(0,h.normalizeStyle)({height:`${e.lineHeight}px`,lineHeight:`${e.lineHeight}px`})},[a.value&&y.value.has(m.value+r)?((0,u.openBlock)(!0),(0,u.createElementBlock)(u.Fragment,{key:0},(0,u.renderList)((e=>{let t=l.value[e]??"";if(!a.value||!y.value.has(e))return[{text:t,highlight:!1,active:!1}];let r=v.value.filter(t=>t.line===e),n=[],o=0;for(let e of r){e.start>o&&n.push({text:t.slice(o,e.start),highlight:!1,active:!1});let r=v.value.indexOf(e)===s.value;n.push({text:t.slice(e.start,e.end),highlight:!0,active:r}),o=e.end}return o<t.length&&n.push({text:t.slice(o),highlight:!1,active:!1}),n})(m.value+r),(e,t)=>((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:t},[e.highlight?((0,u.openBlock)(),(0,u.createElementBlock)("mark",{key:0,class:(0,h.normalizeClass)(["scalar-virtual-text-highlight",e.active?"scalar-virtual-text-highlight-active":""])},(0,h.toDisplayString)(e.text),3)):((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:1},[(0,u.createTextVNode)((0,h.toDisplayString)(e.text),1)],64))],64))),128)):((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:1},[(0,u.createTextVNode)((0,h.toDisplayString)(t),1)],64))],6))),128))],6)],34))}}),q=(0,b.default)(M,[["__scopeId","data-v-77b9d685"]]);e.s(["default",0,q],394853),e.s([],406973),e.s(["ScalarVirtualText",0,q],161447);let N=e=>{if(!e)return()=>null;let t=e.getBoundingClientRect().top,r=null,n=new MutationObserver(n=>{n.some(e=>"childList"===e.type||"attributes"===e.type&&("style"===e.attributeName||"class"===e.attributeName))&&(null!==r&&cancelAnimationFrame(r),r=requestAnimationFrame(()=>{let n=e.getBoundingClientRect().top;n!==t&&window.scrollBy(0,n-t),r=null}))});return n.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"],characterData:!1}),()=>{null!==r&&cancelAnimationFrame(r),n.disconnect()}};e.s(["freezeElement",0,N],857185);var D=e.i(304780),U=e.i(147224);let z=(e,t,r)=>{let n=(0,D.getResolvedRef)(e.requestBody);return[n?(0,U.getExample)(n,t,r):void 0,...(e.parameters??[]).map(e=>{let r=(0,D.getResolvedRef)(e);return r?(0,U.getExample)(r,t,void 0):void 0})]},W=(e,t,r,n)=>{let o=e=>{let r=t||Object.keys(e.examples??{})[0],o=r?(0,D.getResolvedRef)(e.examples?.[r]):void 0,a=n(o);return r&&a&&a!==o?{...e,examples:{...e.examples,[r]:a}}:e},a=(0,D.getResolvedRef)(e.requestBody),i=r??Object.keys(a?.content??{})[0];return{...e,...a&&i&&a.content[i]?{requestBody:{...a,content:{...a.content,[i]:o(a.content[i])}}}:{},parameters:e.parameters?.map(e=>{let t=(0,D.getResolvedRef)(e);if(!t)return e;let r="content"in t?t.content:void 0,n=Object.keys(r??{})[0];if(n&&r?.[n]){let a=o(r[n]);return a===r[n]?e:{...t,content:{...r,[n]:a}}}let a=o(t);return a===t?e:{...t,...a}})}};e.s(["getOperationExamples",0,z,"resolveOperationExamples",0,W],47604);var L=e.i(424164);let H=Symbol("external-examples"),I=e=>{let t,r=(0,d.ref)(!1);return(0,u.watch)(e,e=>{t?.disconnect(),r.value=!1;let n=e&&("$el"in e?e.$el:e);if("u">typeof Element&&n instanceof Element){if("u"<typeof IntersectionObserver){r.value=!0;return}(t=new IntersectionObserver(([e])=>{r.value=e?.isIntersecting??!1})).observe(n)}},{flush:"post"}),(0,d.onScopeDispose)(()=>t?.disconnect()),r},Y=(e,t=()=>!0,r)=>{let n=(0,L.createExternalExampleResolver)(),o=r??(0,u.inject)(H,()=>n),a=(0,u.computed)(()=>e().filter(e=>void 0!==e&&void 0===e.value&&!!e.externalValue).map(e=>o()(e)));return(0,u.watchEffect)(()=>{if(t())for(let e of a.value)"idle"===e.status&&e.load()}),{pending:(0,u.computed)(()=>a.value.some(e=>"loaded"!==e.status)),failed:(0,u.computed)(()=>a.value.some(e=>"error"===e.status)),resolve:e=>{if(!e||void 0!==e.value||!e.externalValue)return e;let t=o()(e);return"loaded"!==t.status?e:void 0!==e.dataValue&&void 0!==t.serializedValue?{...e,serializedValue:t.serializedValue}:{...e,value:t.value}},retry:async()=>{await Promise.all(a.value.map(e=>e.load()))}}};e.s(["EXTERNAL_EXAMPLES",0,H,"useExampleVisibility",0,I,"useExternalExamples",0,Y],387412);var G=["innerHTML"],F={key:1,class:"text-c-2 flex h-full w-fit items-center px-0.5 py-0 text-base font-normal","data-testid":"client-picker"},K={key:0,class:"text-c-2 p-4",role:"status"},J={key:1,class:"text-c-2 p-4",role:"status"},ee=["id"],et={key:0,class:"request-card-footer-addon"},er={class:"request-header"},en=((e,t)=>{let r=e.__vccOpts||e;for(let[e,n]of t)r[e]=n;return r})((0,u.defineComponent)({__name:"CodeExample",props:{codeSampleUnavailable:{default:"No code sample available for this example."},integration:{},clientOptions:{},selectedClient:{},selectedServer:{default:null},selectedContentType:{},selectedExample:{},eventBus:{},securitySchemes:{default:()=>[]},method:{},path:{},operation:{},fallback:{type:Boolean},generateLabel:{type:Function},isWebhook:{type:Boolean},globalCookies:{},openapiVersion:{},requestBodyCompositionSelection:{}},emits:["update:exampleKey"],setup(e,{emit:b}){let S=(0,u.computed)(()=>{let t=(0,D.getResolvedRef)(e.operation.requestBody)?.content??{}
12,r=e.selectedContentType||Object.keys(t)[0];return r?t[r]?.examples??{}:{}}),k=(0,d.ref)(""),w=e=>{let t=Object.keys(S.value);return e&&t.includes(e)?e:k.value&&t.includes(k.value)?k.value:t[0]??""};(0,u.onBeforeMount)(()=>{k.value=w(e.selectedExample)}),(0,u.watch)(()=>e.selectedExample,e=>{k.value=w(e)}),(0,u.watch)(()=>e.selectedContentType,()=>{Object.keys(S.value).includes(k.value)||(k.value=w(e.selectedExample))}),(0,u.watchEffect)(()=>{b("update:exampleKey",k.value)});let $=t=>{k.value=t,e.eventBus.emit("workspace:update:selected-example",t)},P=(0,u.computed)(()=>(0,a.getCustomCodeSamples)(e.operation)),Q=(0,u.computed)(()=>(0,i.getClients)(P.value.samples,e.clientOptions,P.value.label)),C=(0,u.computed)(()=>Q.value.reduce((e,t)=>e+t.options.length,0)),T=(0,d.ref)((0,r.findClient)(Q.value,e.selectedClient));(0,u.watch)([()=>e.selectedClient,Q],([e])=>{let t=(0,r.findClient)(Q.value,e);t&&(T.value=t)});let B=(0,d.ref)(null),A=I(B),R=Y(()=>z(e.operation,k.value,e.selectedContentType),()=>A.value),E=(0,u.computed)(()=>W(e.operation,k.value,e.selectedContentType,R.resolve)),V=(0,u.computed)(()=>Object.keys(S.value).length>1),Z=(0,u.computed)(()=>{if(!e.isWebhook)return null;try{return(0,n.operationToHar)({operation:E.value,method:e.method,path:e.path,example:k.value,openapiVersion:e.openapiVersion,requestBodyCompositionSelection:e.requestBodyCompositionSelection,defaultDisabledParameters:!0})}catch(e){return console.error("[webhookHar]",e),null}}),j=(0,u.computed)(()=>e.isWebhook?Z.value?.postData?.text??"":(0,o.generateCodeSnippet)({defaultDisabledParameters:!0,includeDefaultHeaders:"client"===e.integration,clientId:T.value?.id,customCodeSamples:P.value.samples,operation:E.value,method:e.method,path:e.path,contentType:e.selectedContentType,server:e.selectedServer,securitySchemes:e.securitySchemes,example:k.value,globalCookies:e.globalCookies,openapiVersion:e.openapiVersion,requestBodyCompositionSelection:e.requestBodyCompositionSelection})),X=(0,u.computed)(()=>e.isWebhook?_.value:T.value?.lang),_=(0,u.computed)(()=>{if(!Z.value?.postData)return"json";let e=Z.value.postData.mimeType;return e?.includes("json")?"json":e?.includes("xml")?"xml":e?.includes("yaml")||e?.includes("yml")?"yaml":e?.includes("text/plain")?"text":"json"}),M=(0,u.computed)(()=>(0,s.getSecrets)(e.securitySchemes)),U=(0,u.computed)(()=>(j.value?.length??0)>2e4),L=(0,u.useId)();return(r,n)=>null===j.value||j.value||(0,d.unref)(R).pending.value?((0,u.openBlock)(),(0,u.createBlock)((0,d.unref)(f.ScalarCard),{key:0,ref_key:"elem",ref:B,class:"request-card dark-mode"},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,d.unref)(O.ScalarCardHeader),{class:"pr-2.5"}
12,(0,u.createSlots)({default:(0,u.withCtx)(()=>[n[1]||=(0,u.createElementVNode)("span",{class:"sr-only"},"Request Example for",-1),(0,u.createVNode)(c.default,{as:"span",class:"request-method",method:e.method},null,8,["method"]),e.generateLabel?((0,u.openBlock)(),(0,u.createElementBlock)("span",{key:0,innerHTML:e.generateLabel()},null,8,G)):(0,u.createCommentVNode)("",!0),(0,u.renderSlot)(r.$slots,"header",{},void 0,!0)]),_:2},[!e.isWebhook&&C.value?{name:"actions",fn:(0,u.withCtx)(()=>[C.value>1?((0,u.openBlock)(),(0,u.createBlock)((0,d.unref)(y.ScalarCombobox),{key:0,class:"max-h-80",filterFn:(0,d.unref)(t.filterClientsByQuery),modelValue:T.value,options:Q.value,placement:"bottom-end",teleport:"","onUpdate:modelValue":n[0]||=t=>(t=>{if(B.value){let e=N(B.value.$el);setTimeout(()=>{e()},300)}T.value=t,t&&e.eventBus.emit("workspace:update:selected-client",t.id)})(t)},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,d.unref)(p.ScalarButton),{class:"text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-0.5 py-0 text-base font-normal","data-testid":"client-picker",variant:"ghost"},{default:(0,u.withCtx)(()=>[(0,u.createTextVNode)((0,h.toDisplayString)(T.value?.title)+" ",1),(0,u.createVNode)((0,d.unref)(x.ScalarIconCaretDown),{class:"ui-open:rotate-180 mt-px size-3 transition-transform duration-100",weight:"bold"})]),_:1})]),_:1},8,["filterFn","modelValue","options"])):((0,u.openBlock)(),(0,u.createElementBlock)("span",F,(0,h.toDisplayString)(T.value?.title),1))]),key:"0"}:void 0]),1024),(0,u.createVNode)((0,d.unref)(g.ScalarCardSection),{class:"request-editor-section custom-scroll p-0"},{default:(0,u.withCtx)(()=>[(0,d.unref)(R).pending.value?((0,u.openBlock)(),(0,u.createElementBlock)("div",K,[(0,d.unref)(R).failed.value?((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:0},[n[3]||=(0,u.createTextVNode)(" Could not load this example. ",-1),(0,u.createVNode)((0,d.unref)(p.ScalarButton),{size:"sm",variant:"ghost",onClick:(0,d.unref)(R).retry},{default:(0,u.withCtx)(()=>[...n[2]||=[(0,u.createTextVNode)(" Retry ",-1)]]),_:1},8,["onClick"])],64)):((0,u.openBlock)(),(0,u.createElementBlock)(u.Fragment,{key:1},[(0,u.createTextVNode)("Loading exampleâ¦")],64))])):null===j.value?((0,u.openBlock)(),(0,u.createElementBlock)("div",J,(0,h.toDisplayString)(e.codeSampleUnavailable),1)):((0,u.openBlock)(),(0,u.createElementBlock)("div",{key:2,id:`${(0,d.unref)(L)}-example`,class:"code-snippet"},[U.value?((0,u.openBlock)(),(0,u.createBlock)((0,d.unref)(q),{key:1,containerClass:"custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",contentClass:"language-plaintext whitespace-pre font-code text-base p-2",lineHeight:20,text:j.value},null,8,["text"])):((0,u.openBlock)(),(0,u.createBlock)((0,d.unref)(v.ScalarCodeBlock),{key:0,class:"bg-b-2 h-full",content:j.value,hideCredentials:M.value,lang:X.value,lineNumbers:""},null,8,["content","hideCredentials","lang"]))],8,ee))]),_:1}),V.value||r.$slots.footer?((0,u.openBlock)(),(0,u.createBlock)((0,d.unref)(m.ScalarCardFooter),{key:0,class:"request-card-footer bg-b-3"},{default:(0,u.withCtx)(()=>[V.value?((0,u.openBlock)(),(0,u.createElementBlock)("div",et,[Object.keys(S.value).length?((0,u.openBlock)(),(0,u.createBlock)(l.default,{key:0,examples:S.value,modelValue:k.value,"onUpdate:modelValue":$},null,8,["examples","modelValue"])):(0,u.createCommentVNode)("",!0)])):(0,u.createCommentVNode)("",!0),(0,u.renderSlot)(r.$slots,"footer",{exampleName:k.value},void 0,!0)]),_:3})):(0,u.createCommentVNode)("",!0)]),_:3},512)):e.fallback?((0,u.openBlock)(),(0,u.createBlock)((0,d.unref)(f.ScalarCard),{key:1,class:"request-card dark-mode"},{default:(0,u.withCtx)(()=>[(0,u.createVNode)((0,d.unref)(g.ScalarCardSection),{class:"request-card-simple"},{default:(0,u.withCtx)(()=>[(0,u.createElementVNode)("div",er,[(0,u.createVNode)(c.default,{as:"span",class:"request-method",method:e.method},null,8,["method"]),(0,u.renderSlot)(r.$slots,"header",{},void 0,!0)]),(0,u.renderSlot)(r.$slots,"footer",{exampleName:k.value},void 0,!0)]),_:3})]),_:3})):(0,u.createCommentVNode)("",!0)}}),[["__scopeId","data-v-f5cdd60f"]]);e.s(["default",0,en],870282)},181875,e=>{"use strict";var t=(e,t)=>{let r=t.toLowerCase();return e.label.toLowerCase().includes(r)||e.clientKey.toLowerCase().includes(r)||e.lang.toLowerCase().includes(r)},r=(e,t)=>{let r=t.toLowerCase();return e.label.toLowerCase().includes(r)||e.key.toLowerCase().includes(r)};e.s(["filterClientsByQuery",0,(e,n,o)=>
12{if(""===e)return n;let a=e.toLowerCase(),i=o?o.filter(e=>e.label&&e.options.length>0).length:0;if(o&&i>1){let e=[];for(let n of o)r(n,a)?e.push(...n.options):e.push(...n.options.filter(e=>t(e,a)));return e}return n.filter(e=>t(e,a))}])},462273,261475,585881,807309,525673,454537,550030,805310,567390,949509,15242,507485,622776,236387,e=>{"use strict";e.i(32064);var t=e.i(837786);function r(e){return{...e,method:o(e.method)}}function n(e){if(!e?.length)return"";let t=e.map(e=>`${e.name}=${e.value}`);return`?${t.join("&")}`}let o=e=>e?(0,t.isHttpMethod)(e)&&e===e.toLowerCase()?e.toUpperCase():e:"GET",a=e=>{if(!e)return"";try{let t=new URL(e);if("/"===t.pathname)return`${t.origin}${t.search}${t.hash}`;return t.toString()}catch{return e}},i=(e,t)=>{let r=n(t);return r?e?`${e}${e.includes("?")?"&":"?"}${r.slice(1)}`:r:e},s=(e,t)=>{let r=new Map;if(e?.forEach(e=>{e.name&&r.set(e.name,e.value??"")}),t?.length){let e=t.map(e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`).join("; ");r.set("Cookie",e)}return Array.from(r.entries()).map(([e,t])=>({name:e,value:t}))},l=(e,t,r)=>{let n=e[t];void 0===n?e[t]=r:Array.isArray(n)?n.push(r):e[t]=[n,r]};function c(e=[]){return e.reduce((e,{name:t,value:r})=>(l(e,t,r),e),{})}let u=e=>e.replaceAll("\\","\\\\").replaceAll('"','\\"').replaceAll("\n","\\n").replaceAll("\r","\\r").replaceAll(" ","\\t"),d=e=>{if(void 0===e)return"";try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}},h=e=>{let t=e.split("\n");return t.length<=1?[` curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "${u(e)}");`]:[" curl_easy_setopt(curl, CURLOPT_POSTFIELDS,",...t.map((e,r)=>{let n=r===t.length-1;return` "${u(e)}${n?"":"\\n"}"${n?");":""}`})]};var p=e.i(553311);let f=e=>e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');class m{name;constructor(e){this.name=e}toString(){return`:${this.name}`}}class O{path;constructor(e){this.path=e}toString(){return`(clojure.java.io/file "${f(this.path)}")`}}let g=e=>"object"==typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof m)&&!(e instanceof O)&&0===Object.keys(e).length,v=(e,t)=>t.replace(/\n/g,` 13${" ".repeat(e)}`),y=e=>{if(null==e)return"nil";if(e instanceof m||e instanceof O)return e.toString();if("string"==typeof e)return`"${f(e)}"`;if(Array.isArray(e)){let t=e.reduce((e,t)=>`${e} ${y(t)}`,"").trim();return`[${v(1,t)}]`}if((0,p.isObjectLike)(e)){let t=Object.keys(e).reduce((t,r)=>{let n=v(r.length+2,y(e[r]));return`${t}:${r} ${n} 14 `},"").trim();return`{${v(1,t)}}`}return String(e)},b=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),S=(e,t)=>{let r=b(e,t);r&&delete e[r]},x=["get","post","put","delete","patch","head","options"];var k=e.i(650939);function w(e){let t=3;for(;e.includes('"'.repeat(t));)t++;let r='"'.repeat(t);return`${r} 15${e} 16${r}`}function $(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}var P=e.i(333225),Q=e.i(61397);let C=e=>e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t");function T(e){return null==e?"":e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}let B=e=>`"${Array.from(e,e=>{let t=e.charCodeAt(0);return t<32&&!["\n","\r"," ","\b","\f"].includes(e)?`\\${t.toString(8).padStart(3,"0")}`:JSON.stringify(e).slice(1,-1)}).join("")}"`,A=e=>e?["java.io.ByteArrayOutputStream body = new java.io.ByteArrayOutputStream();",...e.map(e=>"file"in e?`body.write(java.nio.file.Files.readAllBytes(java.nio.file.Path.of(${B(e.file)})));`:`body.write(${B(e.text)}.getBytes(java.nio.charset.StandardCharsets.UTF_8));`),""]:[],R=e=>e.replaceAll("\r","%0D").replaceAll("\n","%0A").replaceAll('"',"%22"),E=(e={},t)=>{let r=[...e.headers??[],...s([],e.cookies)];t?.auth?.username&&t.auth.password&&r.push({name:"Authorization",value:`Basic ${k.Base64.encode(`${t.auth.username}:${t.auth.password}`)}`});let n=e.postData,l=n?.mimeType==="multipart/form-data"&&n.params?(e=>{let t=JSON.stringify(e),r="scalar-boundary";for(;t.includes(r);)r+="-";let n=[];for(let t of e){let e=void 0!==t.fileName?`; filename="${R(t.fileName)}"`:"",o=t.contentType??(void 0!==t.fileName?"application/octet-stream":void 0);n.push({text:`--${r}\r 17Content-Disposition: form-data; name="${R(t.name)}"${e}\r 18${o?`Content-Type: ${o}\r 19`:""}\r 20`}),n.push(void 0!==t.fileName?{file:t.fileName}:{text:t.value??""}),n.push({text:"\r\n"})}return n.push({text:`--${r}--\r 21`}),{contentType:`multipart/form-data; boundary=${r}`,body:n}})(n.params):void 0,c=l?.body??(n?[{text:"application/x-www-form-urlencoded"===n.mimeType&&n.params?new URLSearchParams(n.params.map(({name:e,value:t})=>[e,t??""])).toString():n.text??""}]:void 0),u=l?.contentType??n?.mimeType,d=l?r.filter(({name:e})=>"content-type"!==e.toLowerCase()):r;return u&&!d.some(({name:e})=>"content-type"===e.toLowerCase())&&d.push({name:"Content-Type",value:u}),{url:a(i(e.url??"",e.queryString)),method:o(e.method),headers:d,body:c}},V=e=>e.replaceAll("\\","\\\\").replaceAll("\n","\\n").replaceAll("\r","\\r").replaceAll("'","\\'");class Z{value;constructor(e){this.value=e}}function j(e,t=0){let r=[],n=" ".repeat(t),o=" ".repeat(t+2);if(Array.isArray(e)){let r=e.map(e=>"string"==typeof e?`'${V(e)}'`:e&&"object"==typeof e?j(e):JSON.stringify(e));if(r.some(e=>e.includes("\n"))){let e=r.map(e=>{var r,n;let o;return r=e,n=t+2,o=" ".repeat(n),r.split("\n").map(e=>`${o}${e}`).join("\n")}).join(",\n");return`[ 22${e} 23${n}]`}return`[${r.join(", ")}]`}if(0===Object.keys(e).length)return"{}";for(let[n,a]of Object.entries(e)){let e=/^[$A-Z_][0-9A-Z_$]*$/i.test(n)?n:`'${V(n)}'`;if(a instanceof Z){let t=a.value.split("\n"),n=`${a.value}`;t.length>1&&(n=t.map((e,t)=>0===t?e:`${o}${e}`).join("\n")),r.push(`${o}${e}: ${n}`)}else if(a&&"object"==typeof a)r.push(`${o}${e}: ${j(a,t+2)}`);else if("string"==typeof a){let t=`'${V(a)}'`;r.push(`${o}${e}: ${t}`)}else r.push(`${o}${e}: ${a}`)}return`{ 24${r.join(",\n")} 25${n}}`}let X=(e,t,r)=>{if(""===r){e[t]=r;return}l(e,t,r)},_=e=>({target:e,client:"axios",title:"Axios",generate(e,t){let r,n={method:"GET",...e};n.method=o(n.method);let a={method:n.method,url:n.url??""},i=c(n.queryString);Object.keys(i).length&&(a.params=i);let s=(r={}
25,n?.headers?.forEach(e=>{X(r,e.name,e.value)}),n?.cookies?.length&&X(r,"Cookie",n.cookies.map(e=>`${e.name}=${e.value}`).join("; ")),Object.keys(r).length?r:void 0);s&&(a.headers=s),t?.auth?.username&&t?.auth?.password&&(a.auth={username:t.auth.username,password:t.auth.password});let{setup:l,data:u}=(e=>{let t=[],r=e?.postData;if(!r)return{setup:t};if("application/json"===r.mimeType){if(!r.text)return{setup:t};try{return{setup:t,data:JSON.parse(r.text)}}catch{return{setup:t,data:r.text}}}return"application/x-www-form-urlencoded"===r.mimeType&&r.params?.length?(t.push("const encodedParams = new URLSearchParams()"),r.params.forEach(e=>{let r=V(e.name),n=V(e.value??"");t.push(`encodedParams.append('${r}', '${n}')`)}),{setup:t,data:new Z("encodedParams")}):"multipart/form-data"===r.mimeType&&r.params?.length?(t.push("const formData = new FormData()"),r.params.forEach(e=>{let r=V(e.name);if(void 0!==e.fileName){let n=V(e.fileName),o=e.contentType?`, { type: '${V(e.contentType)}' }`:"";t.push(`formData.append('${r}', new Blob([]${o}), '${n}')`);return}if(e.contentType){let n=V(e.contentType),o=V(e.value??"");t.push(`formData.append('${r}', new Blob(['${o}'], { type: '${n}' }))`);return}let n=V(e.value??"");t.push(`formData.append('${r}', '${n}')`)}),{setup:t,data:new Z("formData")}):r.text?{setup:t,data:r.text}:{setup:t}})(n);void 0!==u&&(a.data=u);let d=l.length?`${l.join("\n")} 26 27`:"";return`import axios from 'axios' 28 29${d}const options = ${j(a)} 30 31try { 32 const { data } = await axios.request(options) 33 console.log(data) 34} catch (error) { 35 console.error(error) 36}`}}),M=_("js"),q=(e={},t)=>{let r=[...(e.cookies??[]).map(({name:e,value:t})=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`),...(e.headers??[]).filter(({name:e})=>"cookie"===e.toLowerCase()).flatMap(({value:e})=>(e??"").split(";").map(e=>e.trim())).filter(e=>e.includes("="))],n=(e.headers??[]).filter(({name:e})=>"cookie"!==e.toLowerCase());t?.auth?.username&&t.auth.password&&n.push({name:"Authorization",value:`Basic ${k.Base64.encode(`${t.auth.username}:${t.auth.password}`)}`});let a=[];if(r.length)for(let e of(a.push("// Run on the request origin; document.cookie writes cookies for the current page's domain."),r))a.push(`document.cookie = ${JSON.stringify(`${e}; path=/`)};`);let s=e.postData,l=s?.mimeType==="multipart/form-data"&&s.params,c=s?.mimeType==="application/x-www-form-urlencoded"&&s.params;if(l){a.push("const body = new FormData();");let e=l.filter(e=>void 0!==e.fileName&&void 0===e.value);for(let t of(e.length&&(a.push('// Select upload files with an <input type="file" multiple> element first.'),a.push("const files = document.querySelector('input[type=\"file\"]').files;")),l)){let r=JSON.stringify(t.name),n=JSON.stringify(t.value??"");if(void 0!==t.fileName){let o=void 0===t.value?`files[${e.indexOf(t)}]`:n;a.push(`body.append(${r}, new File([${o}], ${JSON.stringify(t.fileName)}, { type: ${JSON.stringify(t.contentType??"application/octet-stream")} }));`)}else t.contentType?a.push(`body.append(${r}, new Blob([${n}], { type: ${JSON.stringify(t.contentType)} }));`):a.push(`body.append(${r}, ${n});`)}}else if(c)for(let e of(a.push("const body = new URLSearchParams();"),c))a.push(`body.append(${JSON.stringify(e.name)}, ${JSON.stringify(e.value??"")});`);!s?.mimeType||l||n.some(({name:e})=>"content-type"===e.toLowerCase())||n.push({name:"Content-Type",value:s.mimeType});let u=s?JSON.stringify(s.text??""):"null";return{url:i(e.url??"",e.queryString),method:o(e.method),headers:l?n.filter(({name:e})=>"content-type"!==e.toLowerCase()):n,setup:a,withCredentials:!!r.length,body:l?"body":c?"body.toString()":u}},N=e=>`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\$/g,"\\$").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}"`,D=(e,t)=>`${" ".repeat(4*e)}${t}`,U=(e,t,r,n)=>{if(0===e.length)return`${t}${r}`;let[o]=e;if(1===e.length&&o&&!o.includes("\n"))return`${t}${o}${r}`;let a=e.map(e=>D(n+1,e)).join(",\n");return`${t} 37${a} 38${D(n,r)}`},z=(e,t)=>U(e.map(({name:e,value:t})=>`${N(e)} => ${N(t)}`),"[","]",t),W=(e,t)=>U(e.map(({name:e,value:t})=>`${N(e)} => ${N(t)}`),"Dict(",")",t),L=(e,t)=>null==e?"nothing":"boolean"==typeof e?e?"true":"false":"number"==typeof e?Number.isFinite(e)?String(e):"nothing":"string"==typeof e?N(e):Array.isArray(e)?U(e.map(e=>L(e,t+1)),"[","]",t):(0,p.isObjectLike)(e)?U(Object.entries(e).map(([e,r])=>`${N(e)} => ${L(r,t+1)}`),"Dict(",")",t):N(String(e)),H=["POST","PUT","PATCH","DELETE","QUERY"],I=["GET","HEAD","OPTIONS"],Y=e=>{let t=N(e.name);if(void 0===e.fileName)return`${t} => ${N(e.value??"")}`;let r=N(e.fileName),n=[r,`open(${r})`];return e.contentType&&n.push(N(e.contentType)),`${t} => HTTP.Multipart(${n.join(", ")})`},G=["GET","POST","PUT","DELETE","PATCH","HEAD"],F=["POST","PUT","DELETE","PATCH"],K=e=>JSON.stringify(e).replaceAll("$","\\$"),J=_("node"),ee=e=>{let t=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t");return`@"${t}"`},et=(e,t)=>{let r=void 0===t?", ":`, 39 ${" ".repeat(t)}`;switch(Object.prototype.toString.call(e)){case"[object Number]":return`@${e}`;case"[object Array]":{let t=e.map(e=>et(e));return`@[ ${t.join(r)} ]`}case"[object Object]":{let t=Object.entries(e).map(([e,t])=>`@"${e}": ${et(t)}`);return`@{ ${t.join(r)} }`}case"[object Boolean]":return e?"@YES":"@NO";default:if(null==e)return"[NSNull null]";return ee(e.toString())}},er=(e,t,r)=>{let n=`${e} *${t} = `;return`${n}${et(r,n.length)};`},en=e=>`"${Array.from(e,e=>
39{if("\\"===e||'"'===e)return`\\${e}`;let t=e.charCodeAt(0);return t<32||127===t?`\\${t.toString().padStart(3,"0")}`:e}).join("")}"`;function eo(e){return" ".repeat(2*e)}class ea{value;constructor(e){this.value=e}}function ei(e,t=0){if(null==e)return"null";if(e instanceof ea){let r=e.value.split("\n");if(r.length>1){let e=eo(t+1);return r.map((t,r)=>0===r?t:`${e}${t}`).join("\n")}return e.value}if("string"==typeof e)return`'${e.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}'`;if("number"==typeof e||"boolean"==typeof e)return String(e);if(Array.isArray(e)){if(0===e.length)return"[]";let r=e.map(e=>ei(e,t+1)).join(",\n"+eo(t+1));return`[ 40${eo(t+1)}${r} 41${eo(t)}]`}if("object"==typeof e){let r=Object.entries(e);if(0===r.length)return"[]";let n=r.map(([e,r])=>`'${e}' => ${ei(r,t+1)}`).join(",\n"+eo(t+1));return`[ 42${eo(t+1)}${n} 43${eo(t)}]`}return"null"}let es=e=>e.replace(/\\/g,"\\\\").replace(/'/g,"\\'"),el=e=>`'${es(e)}'`,ec=e=>Array.isArray(e)?e.map(e=>ec(e)):(0,p.isObjectLike)(e)?Object.entries(e).reduce((e,[t,r])=>(e[es(t)]=ec(r),e),{}):e,eu=e=>`'${e.replace(/['\u2018-\u201b]/g,e=>e+e)}'`,ed=(e,t={},r)=>{let{url:n,method:o,headers:a,body:i}=E(t,r),s=[],l=[...new Set(a.map(({name:e})=>e.toLowerCase()))];if(a.length){for(let e of(s.push("$headers = @{"),l)){let t=a.filter(t=>t.name.toLowerCase()===e),r=t.map(e=>e.value).join("cookie"===e?"; ":", ");s.push(` ${eu(t[0]?.name??e)} = ${eu(r)}`)}s.push("}","")}if(i){for(let e of(s.push("$body = [System.IO.MemoryStream]::new()"),i))s.push("file"in e?`$bytes = [System.IO.File]::ReadAllBytes(${eu(e.file)})`:`$bytes = [System.Text.Encoding]::UTF8.GetBytes(${eu(e.text)})`),s.push("$body.Write($bytes, 0, $bytes.Length)");s.push("")}let c=["GET","HEAD","POST","PUT","DELETE","TRACE","OPTIONS","MERGE","PATCH"].includes(o)?"-Method":"-CustomMethod";return s.push(`$response = ${e} -Uri ${eu(n)} ${c} ${eu(o)}${a.length?" -Headers $headers":""}${i?" -Body $body.ToArray()":""}`),i&&s.push("$body.Dispose()"),s.push("$response"),s.join("\n")};function eh(e){let t=e;for(let[e,r]of[["true","True"],["false","False"],["null","None"]])for(let n of[`(: )${e}(?=,|\\n)`,`^( +)${e}(?=,|\\n)`])t=t.replace(RegExp(n,"gm"),`$1${r}`);return t}function ep(e,t=4){return eh(JSON.stringify(e,null,2).split("\n").map((e,r)=>0===r?e:" ".repeat(t)+e).join("\n"))}function ef(e,t,r){let n={url:"https://example.com",method:"get",...t},a=o(n.method),i=a.toLowerCase(),s={};if(n.headers?.length&&(s.headers=n.headers.reduce((e,t)=>(t.name in e||(e[t.name]=t.value),e),{})),n.queryString?.length&&(s.params=c(n.queryString)),n.cookies?.length&&(s.cookies=Object.fromEntries(n.cookies.map(e=>[e.name,e.value]))),r?.auth?.username&&r?.auth?.password&&(s.auth=[r.auth.username,r.auth.password]),n.postData){let{mimeType:e,text:t,params:r}=n.postData;if("application/json"===e&&t)try{s.json=JSON.parse(t)}catch{s.data=t}else if("application/octet-stream"===e&&t)s.data=t;else if("multipart/form-data"===e&&r){let e=[],t={};r.forEach(r=>{if(void 0!==r.fileName){let t=JSON.stringify(r.name),n=JSON.stringify(r.fileName),o=`open(${n}, "rb")`;if(r.contentType){let a=JSON.stringify(r.contentType);e.push(`(${t}, (${n}, ${o}, ${a}))`)}else e.push(`(${t}, ${o})`)}else if(void 0!==r.value)if(r.contentType){let t=JSON.stringify(r.name),n=JSON.stringify(r.value),o=JSON.stringify(r.contentType);e.push(`(${t}, (None, ${n}, ${o}))`)}else l(t,r.name,r.value)}),e.length&&(s.files=e),Object.keys(t).length&&(s.data=t)}else if("application/x-www-form-urlencoded"===e&&r){let e={};r.forEach(t=>{l(e,t.name,t.value??"")}),s.data=e}}let u=[],d=`"${n.url}"`;for(let[e,t]of(n.url.length>40?u.push(d):u.push(""),Object.entries(s)))if("auth"===e)u.push(`${e}=(${eh(JSON.stringify(t[0]))}, ${eh(JSON.stringify(t[1]))})`);else if("files"===e){let r="[\n"+t.map(e=>` ${e}`).join(",\n")+"\n ]";u.push(`${e}=${r}`)}else if("json"===e){let r=ep(t);u.push(`${e}=${r}`)}else if("data"===e&&n.postData?.mimeType==="application/octet-stream")u.push(`${e}=b"${t}"`);else{let r=ep(t);u.push(`${e}=${r}`)}return["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(a)?n.url.length>40?`${e}.${i}( 44 ${u.join(",\n ")} 45)`:u.length<=1?`${e}.${i}(${d})`:`${e}.${i}(${d}${u.length>1?",":""} 46 ${u.slice(1).join(",\n ")} 47)`:`${e}.request(${[JSON.stringify(a),d,...u.slice(1)].join(", ")})`}var em=e.i(495007);let eO=(e,t)=>{if(null==e)return"NULL";if("boolean"==typeof e)return e?"TRUE":"FALSE";if("number"==typeof e)return String(e);if("string"==typeof e)return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`;if(Array.isArray(e)){if(0===e.length)return"list()";let r=e.map(e=>`${t} ${eO(e,t+" ")}`).join(",\n");return`list( 48${r} 49${t})`}if((0,p.isObjectLike)(e)){let r=Object.entries(e);if(0===r.length)return"list()";let n=r.map(([e,r])=>`${t} ${e} = ${eO(r,t+" ")}`).join(",\n");return`list( 50${n} 51${t})`}return String(e)},eg=e=>e.replace(/\\/g,"\\\\").replace(/"/g,'\\"'),ev=e=>e.replace(/\\/g,"\\\\").replace(/'/g,"\\'"),ey=e=>encodeURIComponent(e).replace(/'/g,"%27"),eb=new Set(["GET","POST","HEAD","DELETE","PATCH","PUT","OPTIONS","COPY","LOCK","UNLOCK","MOVE","TRACE"]),eS=e=>eb.has(e)?e.charAt(0)+e.slice(1).toLowerCase():"CustomRequest";function ex(e){return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\0/g,"\\0")}"`}function ek(e,t){let r=" ".repeat(4*e);return`${r}${t}`}function ew(e,...t){return ek(1,`.${e}(${t.join(", ")})`)}let e$=e=>{if(e.fileName){let t=[ek(2,`let part = reqwest::multipart::Part::text(${ex(e.value||"")})`),ek(3,`.file_name(${ex(e.fileName)})`)];return e.contentType?(t.push(ek(3,`.mime_str(${ex(e.contentType)})`)),t.push(ek(3,".unwrap();"))):t[t.length-1]+=";",t.push(ek(2,`form = form.part(${ex(e.name)}, part);`)),t.join("\n")}return e.contentType?[ek(2,`let part = reqwest::multipart::Part::text(${ex(e.value||"")})`),ek(3,`.mime_str(${ex(e.contentType)})`),ek(3,".unwrap();"),ek(2,`form = form.part(${ex(e.name)}, part);`)].join("\n"):ek(2,`form = form.text(${ex(e.name)}, ${ex(e.value||"")});`)};var eP=e.i(785088);let eQ=e=>`'${e.replace(/'/g,"'\\''")}'`,eC=e=>{try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}},eT=e=>e.replace(/\\/g,"\\\\").replace(/"/g,'\\"'),eB=[{key:"c",title:"C",default:"libcurl",clients:[{target:"c",client:"libcurl",title:"Libcurl",generate(e,t){var r,n,a,i;let s;if(!e)return"";let l=o(e.method),c=(r=(e=>{if(!e)return"";try{let t=new URL(e),r="/"!==t.pathname||e.endsWith("/")||e.includes("?")||e.includes("#")?t.pathname:"";return`${t.protocol}//${t.host}${r}${t.search}${t.hash}`}catch{return e}})(e.url??""),n=e.queryString,(s=n?.length?n.map(e=>`${e.name}=${e.value}`).join("&"):"")?r?`${r}${r.includes("?")?"&":"?"}${s}`:`?${s}`:r),p=!!e.headers?.length,f=!!e.cookies?.length,m=e.postData,O=m?.mimeType==="multipart/form-data"&&!!m.params?.length,g=e.headers??[],v=g.some(e=>"accept-encoding"===e.name.toLowerCase()&&/gzip|deflate/.test(e.value)),y=["#include <curl/curl.h>","","int main(void) {"," curl_global_init(CURL_GLOBAL_DEFAULT);"," CURL *curl = curl_easy_init();"," if (!curl) {"," curl_global_cleanup();"," return 1;"," }","",` curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "${u(l)}");`,` curl_easy_setopt(curl, CURLOPT_URL, "${u(c)}");`];if(t?.auth?.username&&t.auth.password&&y.push(` curl_easy_setopt(curl, CURLOPT_USERPWD, "${u(`${t.auth.username}:${t.auth.password}`)}");`),p&&(y.push(""," struct curl_slist *headers = NULL;
51"),g.forEach(e=>{y.push(` headers = curl_slist_append(headers, "${u(`${e.name}: ${e.value}`)}");`)}),y.push(" curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);")),f){let t=(a=e.cookies,a?.length?a.map(e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`).join("; "):null);t&&y.push("",` curl_easy_setopt(curl, CURLOPT_COOKIE, "${u(t)}");`)}if(v&&y.push("",' curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "");'),m){if(O&&m.params)y.push(""," curl_mime *mime = curl_mime_init(curl);"),m.params.forEach(e=>{y.push(""," {"," curl_mimepart *part = curl_mime_addpart(mime);"),e.name&&y.push(` curl_mime_name(part, "${u(e.name)}");`),void 0!==e.fileName?y.push(` curl_mime_filedata(part, "${u(e.fileName)}");`):y.push(` curl_mime_data(part, "${u(e.value??"")}", CURL_ZERO_TERMINATED);`),e.contentType&&y.push(` curl_mime_type(part, "${u(e.contentType)}");`),y.push(" }")}),y.push(""," curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);");else if("application/x-www-form-urlencoded"===m.mimeType&&m.params?.length){let e=(i=m.params,i?.length?i.map(e=>new URLSearchParams([[e.name,e.value??""]]).toString()).join("&"):null);null!==e&&y.push("",` curl_easy_setopt(curl, CURLOPT_POSTFIELDS, "${u(e)}");`)}else if("application/json"===m.mimeType&&void 0!==m.text)y.push("",...h(d(m.text)));else if(void 0!==m.text){let e="application/octet-stream"===m.mimeType?m.text:d(m.text);y.push("",...h(e))}}return y.push(""," CURLcode res = curl_easy_perform(curl);"),y.push(" curl_easy_cleanup(curl);"),O&&y.push(" curl_mime_free(mime);"),p&&y.push(" curl_slist_free_all(headers);"),y.push(" curl_global_cleanup();",""," return (int)res;","}"),y.join("\n")}}]},{key:"csharp",title:"C#",default:"restsharp",clients:[{target:"csharp",client:"httpclient",title:"HttpClient",generate(e,t){let r={method:"GET",url:"",...e};r.method=o(r.method);let a=n(r.queryString),i=`${r.url}${a}`,s=[];s.push("using var client = new HttpClient();"),s.push("");let l=function(e){switch(e){case"GET":return"HttpMethod.Get";case"POST":return"HttpMethod.Post";case"PUT":return"HttpMethod.Put";case"DELETE":return"HttpMethod.Delete";case"PATCH":return"HttpMethod.Patch";case"HEAD":return"HttpMethod.Head";case"OPTIONS":return"HttpMethod.Options";default:return`new HttpMethod("${e}")`}}(r.method);return s.push(`var request = new HttpRequestMessage(${l}, "${i}");`),function(e,t,r){let n=t.headers||[],o=t.cookies||[],a=n.find(e=>"authorization"===e.name.toLowerCase());if(a){let[t,r]=a.value.split(" ",2);t&&r&&e.push(`request.Headers.Authorization = new AuthenticationHeaderValue("${t}", "${r}");`)}else if(r?.auth?.username&&r?.auth?.password){let t=(0,k.encode)(`${r.auth.username}:${r.auth.password}`);e.push(`request.Headers.Authorization = new AuthenticationHeaderValue("Basic", "${t}");`)}let i=new Map;for(let e of n){let t=e.name,r=e.value;"authorization"!==t.toLowerCase()&&i.set(t,r)}for(let[r,n]of i){var s;if("accept"===r.toLowerCase()&&(s=n,/^[a-zA-Z0-9][a-zA-Z0-9!#$&\-\^_]*\/[a-zA-Z0-9][a-zA-Z0-9!#$&\-\^_]*(\s*;\s*[a-zA-Z0-9][a-zA-Z0-9!#$&\-\^_]*=.*)?$/.test(s)))e.push(`request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("${n}"));`);else{if("content-type"===r.toLowerCase()&&t.postData)continue;e.push(`request.Headers.TryAddWithoutValidation("${r}", "${n}");`)}}if(o.length>0){let t=o.map(e=>`${e.name}=${e.value}`).join("; ");e.push(`request.Headers.TryAddWithoutValidation("Cookie", "${t}");`)}}(s,r,t),function(e,t){if(!t.postData)return;let{mimeType:r,text:n,params:o}=t.postData;if("application/json"===r&&n)try{let t=JSON.parse(n),r=JSON.stringify(t,null,2),o=w(r);e.push("request.Content = new StringContent("),e.push(`${o},`),e.push('System.Text.Encoding.UTF8, "application/json");')}catch{let t=w(n);e.push("request.Content = new StringContent("),e.push(`${t},`),e.push('System.Text.Encoding.UTF8, "application/json");')}else if("application/x-www-form-urlencoded"===r&&o){let t=o.map(e=>e.name);if(t.length!==new Set(t).size){for(let t of(e.push("var formParams = new List<KeyValuePair<string, string>>"),e.push("{"),o))e.push(` new("${t.name}", "${t.value}"),`);e.push("};"),e.push("request.Content = new FormUrlEncodedContent(formParams);")}else{for(let t of(e.push("var formParams = new Dictionary<string, string>"),e.push("{"),o))e.push(` ["${t.name}"] = "${t.value}",`);e.push("};"),e.push("request.Content = new FormUrlEncodedContent(formParams);")}}else if("multipart/form-data"===r&&o){e.push("var content = new MultipartFormDataContent();");let t=0;for(let r of o)if(void 0!==r.fileName)if(r.contentType){let n=`fileContent${t++}`;e.push(`var ${n} = new StreamContent(File.OpenRead("${$(r.fileName)}"));`),e.push(`${n}.Headers.ContentType = new MediaTypeHeaderValue("${r.contentType}");`),e.push(`content.Add(${n}, "${$(r.name)}", "${$(r.fileName)}");`)}else e.push(`content.Add(new StreamContent(File.OpenRead("${$(r.fileName)}")), "${$(r.name)}", "${$(r.fileName)}");`);else if(r.contentType){let n=`stringContent${t++}`;e.push(`var ${n} = new StringContent("${$(r.value??"")}");`),e.push(`${n}.Headers.ContentType = new MediaTypeHeaderValue("${r.contentType}");`),e.push(`content.Add(${n}, "${$(r.name)}");`)}else e.push(`content.Add(new StringContent("${$(r.value??"")}"), "${$(r.name)}");`);e.push("request.Content = content;")}
51else if("application/octet-stream"===r&&n)e.push('var content = new ByteArrayContent(System.Text.Encoding.UTF8.GetBytes("'+n.replace(/"/g,'\\"')+'"));'),e.push('content.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");'),e.push("request.Content = content;");else if(n){let t=w(n);e.push("request.Content = new StringContent("),e.push(`${t},`),e.push(`System.Text.Encoding.UTF8, "${r}");`)}}(s,r),s.push(""),s.push("using var response = await client.SendAsync(request);"),s.join("\n")}},{target:"csharp",client:"restsharp",title:"RestSharp",generate(e,t){var r;let n,a={method:"GET",url:"",...e};if(a.method=o(a.method),!["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS","COPY","SEARCH","MERGE"].includes(a.method))return"// RestSharp does not support this HTTP method. Select HttpClient for a custom method.";let s=i(a.url,a.queryString),l="";try{l=new URL(s).host}catch{}let c=[];c.push(`var client = new RestClient("${C(s)}");`),c.push(`var request = new RestRequest("", ${(n=(r=a.method).charAt(0).toUpperCase()+r.slice(1).toLowerCase(),`Method.${n}`)});`);let{username:u,password:d}=t?.auth??{},h=!!(u&&d);if(h){let e=(0,k.encode)(`${u}:${d}`);c.push(`request.AddHeader("Authorization", "Basic ${e}");`)}if(a.headers?.forEach(e=>{h&&"authorization"===e.name.toLowerCase()||c.push(`request.AddHeader("${C(e.name)}", "${C(e.value)}");`)}),a.cookies?.forEach(e=>{c.push(`request.AddCookie("${C(e.name)}", "${C(e.value)}", "/", "${C(l)}");`)}),a.postData){let{mimeType:e,text:t,params:r}=a.postData,n=e?(0,Q.parseMimeType)(e).essence:void 0;if((0,P.isJsonMediaType)(e)){if(t){let e=t;try{e=JSON.stringify(JSON.parse(t),null,2)}catch{}c.push(`request.AddStringBody(${(e=>{let t=3;for(;e.includes('"'.repeat(t));)t++;let r='"'.repeat(t);return`${r} 52${e} 53${r}`})(e)}, ContentType.Json);`)}}else"application/x-www-form-urlencoded"===n&&r?r.forEach(e=>{c.push(`request.AddParameter("${C(e.name)}", "${C(e.value??"")}");`)}):"multipart/form-data"===n&&r?r.forEach(e=>{void 0!==e.fileName?e.contentType?c.push(`request.AddFile("${C(e.name)}", "${C(e.fileName)}", "${C(e.contentType)}");`):c.push(`request.AddFile("${C(e.name)}", "${C(e.fileName)}");`):c.push(`request.AddParameter("${C(e.name)}", "${C(e.value??"")}");`)}):"application/octet-stream"===n&&t?c.push(`request.AddParameter("application/octet-stream", "${C(t)}", ParameterType.RequestBody);`):t&&c.push(`request.AddParameter("${C(e??"")}", "${C(t)}", ParameterType.RequestBody);`)}return c.push("var response = await client.ExecuteAsync(request);"),c.join("\n")}}]},{key:"clojure",title:"Clojure",default:"clj_http",clients:[{target:"clojure",client:"clj_http",title:"clj-http",generate(e,t){let r=o(e?.method).toLowerCase();if(!x.includes(r))return"Method not supported";let n=new URL(e?.url??""),a="/"===n.pathname?n.origin:n.toString(),i=c([...Array.from(n.searchParams.entries()).map(([e,t])=>({name:e,value:t})),...e?.queryString??[]]);Object.keys(i).length>0&&(a=a.split("?")[0]??a);let s=(e?.headers??[]).reduce((e,t)=>(e[t.name]=t.value??"",e),{});e?.cookies?.length&&(s.Cookie=e.cookies.map(e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`).join("; "));let l={headers:s,"query-params":i};t?.auth?.username&&t?.auth?.password&&(l["basic-auth"]=[t.auth.username,t.auth.password]);let u=e?.postData;switch(u?.mimeType){case"application/json":if(l["content-type"]=new m("json"),u.text)try{l["form-params"]=JSON.parse(u.text)}catch{l.body=u.text}S(s,"content-type");break;case"application/x-www-form-urlencoded":l["form-params"]=(u.params??[]).reduce((e,t)=>(t.name&&void 0!==t.value&&(e[t.name]=t.value),e),{}),S(s,"content-type");break;case"multipart/form-data":u.params&&(l.multipart=u.params.map(e=>"string"!=typeof e.fileName||e.value?{name:e.name,content:e.value}:{name:e.name,content:new O(e.fileName)})),S(s,"content-type");break;default:u?.text&&(l.body=u.text,S(s,"content-type"))}let d=b(s,"accept");d&&"application/json"===s[d]&&(l.accept=new m("json"),delete s[d]);let h=(e=>{for(let t of Object.keys(e))g(e[t])&&delete e[t];return e})(l),p="(require '[clj-http.client :as client])\n",k=f(a);if(g(h))return`${p} 54(client/${r} "${k}")`;let w=v(11+r.length+k.length,y(h));return`${p} 55(client/${r} "${k}" ${w})`}}]},{key:"dart",title:"Dart",default:"http",clients:[{target:"dart",client:"http",title:"Http",generate(e,t){let r={method:"GET",...e};r.method=o(r.method);let n=`import 'package:http/http.dart' as http; 56 57void main() async { 58`,a="",i="";r.cookies&&r.cookies.length>0&&(i=r.cookies.map(e=>`${encodeURIComponent(e.name)}
58=${encodeURIComponent(e.value)}`).join("; "),a=` "Cookie": "${i}", 59`);let s=r.headers?.reduce((e,t)=>(t.value&&!/[; ]/.test(t.name)&&(e[t.name]=t.value),e),{})||{};if(t?.auth){let{username:e,password:r}=t.auth;if(e&&r){let t=`${e}:${r}`;s.Authorization=`'Basic ' + base64Encode(utf8.encode('${t}'))`}}if(a&&(s.Cookie=i),Object.keys(s).length>0){for(let[e,t]of(n+=" final headers = <String,String>{\n",Object.entries(s)))t.includes("utf8.encode")?n+=` '${e}': ${t}, 60`:n+=` '${e}': '${t}', 61`;n+=" };\n\n"}let l=r.queryString?.length?"?"+r.queryString.map(e=>`${e.name}=${e.value}`).join("&"):"",c=`${r.url}${l}`,u="";if(r.postData)if("application/json"===r.postData.mimeType)u=` final body = r'${r.postData.text}'; 62 63`;else if("application/x-www-form-urlencoded"===r.postData.mimeType)u=` final body = '${r.postData.params?.map(e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value??"")}`).join("&")||""}'; 64 65`;else if("multipart/form-data"===r.postData.mimeType){for(let e of(u=" final body = <String,String>{\n",r.postData.params||[])){let t=e.value||"",r=e.fileName||"";u+=` '${e.name}': '${r||t}', 66`}u+=" };\n\n"}else"application/octet-stream"===r.postData.mimeType&&(u=` final body = '${r.postData.text}'; 67 68`);u&&(n+=u);let d=r.method.toLowerCase(),h=Object.keys(s).length>0?", headers: headers":"",p=u?", body: body":"";if(["GET","POST","PUT","DELETE","PATCH","HEAD"].includes(r.method))n+=` final response = await http.${d}(Uri.parse('${c}')${h}${p}); 69`;else{let e=r.method.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\$/g,"\\$");n+=` final request = http.Request('${e}', Uri.parse('${c}')); 70`,Object.keys(s).length>0&&(n+=" request.headers.addAll(headers);\n"),u&&(n+=r.postData?.mimeType==="multipart/form-data"?" request.bodyFields = body;\n":" request.body = body;\n"),n+=" final response = await http.Response.fromStream(await request.send());\n"}return n+=" print(response.body);\n",n+="}"}}]},{key:"fsharp",title:"F#",default:"httpclient",clients:[{target:"fsharp",client:"httpclient",title:"HttpClient",generate:(e,t)=>{var r,n;if(!e)return"";let o=function(e,t){return e?t&&0!==t.length?e+(t&&0!==t.length?"?"+t.map(e=>`${e.name}=${e.value}`).join("&"):""):e:""}(e.url,e.queryString),a="";return a+=(r=e.method,n=o,`let httpRequestMessage = new HttpRequestMessage( 71 HttpMethod("${r}"), 72 new Uri("${T(n)}") 73) 74 75`),e.headers&&e.headers.length>0&&(a+=function(e){let t="";for(let r of e)t+=`httpRequestMessage.Headers.Add("${T(r.name??"")}", "${T(r.value??"")}") 76`;return t+"\n"}(e.headers)),e.postData&&(a+=function(e){if(!e)return"";let t="";switch(e.mimeType){case"multipart/form-data":t+=function(e){let t="let content = new MultipartFormDataContent()\n",r=0,n=0;for(let o of e.params)if("BINARY"===o.value){let e=T(o.fileName??"");t+=`let fileStreamContent_${r} = new StreamContent(File.OpenRead("${e}")) 77`,o.contentType&&(t+=`fileStreamContent_${r}.Headers.ContentType <- MediaTypeHeaderValue("${T(o.contentType)}") 78`),t+=`content.Add(fileStreamContent_${r}, "${e}", "${e}") 79`,r++}else{let e=T(o.name??""),r=T(o.value??"");o.contentType?(t+=`let stringContent_${n} = new StringContent("${r}") 80stringContent_${n}.Headers.ContentType <- MediaTypeHeaderValue("${T(o.contentType)}") 81content.Add(stringContent_${n}, "${e}") 82`,n++):t+=`content.Add(new StringContent("${r}"), "${e}") 83`}return t}(e);break;case"application/x-www-form-urlencoded":t+=function(e){let t="let formUrlEncodedContentDictionary = new Dictionary<string, string>()\n";for(let r of e.params)t+=`formUrlEncodedContentDictionary.Add("${T(r.name??"")}", "${T(r.value??"")}") 84`;return t+"let content = new FormUrlEncodedContent(formUrlEncodedContentDictionary)\n"}(e);break;case"application/json":t+=function(e){let t;try{t=JSON.stringify(JSON.parse(e.text??"{}"),null,2)}catch{t=e.text??"{}"}return`let content = new StringContent("""${t}""", Encoding.UTF8, "application/json") 85`}(e);break;default:var r,n;let o;t+=(r=e,n=e.mimeType,(o=`let content = new StringContent("${T(r.text??"")}", Encoding.UTF8, "${T(n??"")}") 86`)+`content.Headers.ContentType <- MediaTypeHeaderValue("${T(n??"")}") 87`)}return t+"httpRequestMessage.Content <- content\n\n"}(e.postData)),e.cookies&&e.cookies.length>0&&e.url?(a+=function(e,t){let r="let cookieContainer = CookieContainer()\n";for(let n of e)r+=`cookieContainer.Add(Uri("${T(t)}"), Cookie("${T(n.name??"")}", "${T(n.value??"")}")) 88`;return r+"use handler = new HttpClientHandler()\nhandler.CookieContainer <- cookieContainer\n\n"}
88(e.cookies,e.url),a+="let client = new HttpClient(handler)\n"):a+="let client = new HttpClient()\n",a+="let! result = client.SendAsync(httpRequestMessage)\n"}}]},{key:"go",title:"Go",default:"native",clients:[{target:"go",client:"native",title:"NewRequest",generate(e,t){if(!e)return"";let r=o(e.method),n=a(i(e.url??"",e.queryString)),l=s(e.headers,e.cookies),c=(e=>{let t=new Set;if(!e)return{imports:t,setupLines:[],requestBody:"nil",needsMultipartContentTypeHeader:!1};if("application/x-www-form-urlencoded"===e.mimeType&&e.params?.length)return t.add('neturl "net/url"'),t.add("strings"),{imports:t,setupLines:["postData := neturl.Values{}",...e.params.map(e=>`postData.Set(${JSON.stringify(e.name)}, ${JSON.stringify(e.value??"")})`)],requestBody:"strings.NewReader(postData.Encode())",needsMultipartContentTypeHeader:!1};if("multipart/form-data"===e.mimeType&&e.params?.length){t.add("bytes"),t.add("mime/multipart");let r=["payload := &bytes.Buffer{}","writer := multipart.NewWriter(payload)"],n=e.params.some(e=>void 0!==e.fileName),o=!1,a=!1;return n&&(t.add("os"),t.add("io")),e.params.forEach(e=>{r.push(""),void 0!==e.fileName?(r.push(`part, _ ${o?"=":":="} writer.CreateFormFile(${JSON.stringify(e.name)}, ${JSON.stringify(e.fileName)})`),r.push(""),r.push(`f, _ ${a?"=":":="} os.Open(${JSON.stringify(e.fileName)})`),r.push("defer f.Close()"),r.push(""),r.push("_, _ = io.Copy(part, f)"),o=!0,a=!0):r.push(`_ = writer.WriteField(${JSON.stringify(e.name)}, ${JSON.stringify(e.value??"")})`)}),r.push("writer.Close()"),{imports:t,setupLines:r,requestBody:"payload",needsMultipartContentTypeHeader:!0}}t.add("strings");let r="application/json"===e.mimeType?(e=>{if(void 0===e)return"";try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}})(e.text):e.text??"";return{imports:t,setupLines:[`payload := strings.NewReader(${((e,t=!1)=>t&&!e.includes("`")?`\`${e}\``:JSON.stringify(e))(r,"application/json"===e.mimeType)})`],requestBody:"payload",needsMultipartContentTypeHeader:!1}})(e.postData),u=["package main","","import (",...Array.from(new Set(["fmt","io","net/http",...c.imports])).sort().map(e=>` ${e.includes(" ")?e:JSON.stringify(e)}`),")","","func main() {",` requestUrl := ${JSON.stringify(n)}`,"",...c.setupLines.map(e=>e?` ${e}`:"")];return c.setupLines.length&&u.push(""),u.push(` req, _ := http.NewRequest(${JSON.stringify(r)}, requestUrl, ${c.requestBody})`),u.push(""),c.needsMultipartContentTypeHeader&&u.push(' req.Header.Set("Content-Type", writer.FormDataContentType())'),t?.auth?.username&&t?.auth?.password&&u.push(` req.SetBasicAuth(${JSON.stringify(t.auth.username)}, ${JSON.stringify(t.auth.password)})`),l.forEach(e=>{u.push(` req.Header.Add(${JSON.stringify(e.name)}, ${JSON.stringify(e.value)})`)}),(c.needsMultipartContentTypeHeader||l.length||t?.auth?.username&&t.auth.password)&&u.push(""),u.push(" res, _ := http.DefaultClient.Do(req)"),u.push(""),u.push(" defer res.Body.Close()"),u.push(" body, _ := io.ReadAll(res.Body)"),u.push(""),u.push(" fmt.Println(res)"),u.push(" fmt.Println(string(body))"),u.push(""),u.push("}"),u.join("\n")}}]},{key:"http",title:"HTTP",default:"http1.1",clients:[{target:"http",client:"http1.1",title:"HTTP/1.1",generate(e){let t,r,n={method:"GET",headers:[],queryString:[],...e};n.method=o(n.method);try{r=(t=new URL(n.url||"http://")).pathname+(t.search||"")}catch(e){r=n.url||"/"}let a=t?.hostname||"UNKNOWN_HOSTNAME",i=`${n.method} ${r} HTTP/1.1\r 89`;if(n.queryString.length){let e=n.queryString.map(e=>`${e.name}=${e.value}`).join("&");i=`${n.method} ${r}?${e} HTTP/1.1\r 90`}let s=new Map;if(s.set("Host",a),n.headers.forEach(e=>{s.has(e.name)?s.set(e.name,`${s.get(e.name)}, ${e.value}`):s.set(e.name,e.value)}),n.queryString.length){let e=n.queryString.map(e=>`${e.name}=${e.value}`).join("&");i=`${n.method} ${r}?${e} HTTP/1.1\r 91`}let l="";if(n.postData){if("application/json"===n.postData.mimeType&&n.postData.text)s.set("Content-Type","application/json"),l=n.postData.text;else if("application/octet-stream"===n.postData.mimeType&&n.postData.text)s.set("Content-Type","application/octet-stream"),l=n.postData.text;else if("application/x-www-form-urlencoded"===n.postData.mimeType&&n.postData.params){let e=n.postData.params.map(e=>`${encodeURIComponent(e.name)}
91=${encodeURIComponent(e.value??"")}`).join("&");s.set("Content-Type","application/x-www-form-urlencoded"),l=e}else if("multipart/form-data"===n.postData.mimeType&&n.postData.params){let e="----WebKitFormBoundary7MA4YWxkTrZu0gW";s.set("Content-Type",`multipart/form-data; boundary=${e}`),l=n.postData.params.map(t=>{let r=t.contentType?`Content-Type: ${t.contentType}\r 92`:"";return t.fileName?`--${e}\r 93Content-Disposition: form-data; name="${t.name}"; filename="${t.fileName}"\r 94${r}\r 95`:`--${e}\r 96Content-Disposition: form-data; name="${t.name}"\r 97${r}\r 98${t.value??""}\r 99`}).join("")+`--${e}--\r 100`}}return s.forEach((e,t)=>{i+=`${t}: ${e}\r 101`}),i+=`\r 102${l}`}}]},{key:"java",title:"Java",default:"unirest",clients:[{target:"java",client:"asynchttp",title:"AsyncHttp",generate(e,t){let{url:r,method:n,headers:o,body:a}=E(e,t);return[...A(a),"try (AsyncHttpClient client = new DefaultAsyncHttpClient()) {",` Response response = client.prepare(${B(n)}, ${B(r)})`,...o.map(({name:e,value:t})=>` .addHeader(${B(e)}, ${B(t)})`),...a?[" .setBody(body.toByteArray())"]:[]," .execute()"," .get();"," System.out.println(response.getResponseBody());","}"].join("\n")}},{target:"java",client:"nethttp",title:"java.net.http",generate(e,t){let{url:r,method:n,headers:o,body:a}=E(e,t);return[...A(a),"HttpClient client = HttpClient.newHttpClient();","HttpRequest request = HttpRequest.newBuilder()",` .uri(java.net.URI.create(${B(r)}))`,...o.map(({name:e,value:t})=>` .header(${B(e)}, ${B(t)})`),` .method(${B(n)}, HttpRequest.BodyPublishers.${a?"ofByteArray(body.toByteArray())":"noBody()"})`," .build();","","HttpResponse<String>
102 response = client.send(request, HttpResponse.BodyHandlers.ofString());","System.out.println(response.body());"].join("\n")}},{target:"java",client:"okhttp",title:"OkHttp",generate(e,t){let{url:r,method:n,headers:o}=E(e,t),a=["GET","HEAD"].includes(n)?void 0:e?.postData,i=a?.mimeType==="multipart/form-data"&&a.params,s=a?.mimeType==="application/x-www-form-urlencoded"&&a.params,l=["OkHttpClient client = new OkHttpClient();",""];if(i){for(let e of(l.push("RequestBody body = new MultipartBody.Builder()"," .setType(MultipartBody.FORM)"),i)){let t=B(e.name),r=B(e.value??"");void 0!==e.fileName?l.push(` .addFormDataPart(${t}, ${B(e.fileName)}, RequestBody.create(MediaType.parse(${B(e.contentType??"application/octet-stream")}), new java.io.File(${B(e.fileName)})))`):e.contentType?l.push(` .addFormDataPart(${t}, null, RequestBody.create(MediaType.parse(${B(e.contentType)}), ${r}))`):l.push(` .addFormDataPart(${t}, ${r})`)}l.push(" .build();","")}else if(s){for(let e of(l.push("RequestBody body = new FormBody.Builder()"),s))l.push(` .add(${B(e.name)}, ${B(e.value??"")})`);l.push(" .build();","")}else a&&l.push(`RequestBody body = RequestBody.create(${a.mimeType?`MediaType.parse(${B(a.mimeType)})`:"null"}, ${B(a.text??"")});`,"");let c=["POST","PUT","PATCH","PROPPATCH","REPORT"].includes(n)?'RequestBody.create(null, "")':"null",u=a?"body":c;for(let{name:e,value:t}of(l.push("Request request = new Request.Builder()",` .url(${B(r)})`,` .method(${B(n)}, ${u})`),o))i&&"content-type"===e.toLowerCase()||l.push(` .addHeader(${B(e)}, ${B(t)})`);return l.push(" .build();","","try (Response response = client.newCall(request).execute()) {"," System.out.println(response.body().string());","}"),l.join("\n")}},{target:"java",client:"unirest",title:"Unirest",generate(e,t){let{url:r,method:n,headers:o,body:a}=E(e,t);return[...A(a),`HttpResponse<String> response = Unirest.request(${B(n)}, ${B(r)})`,...o.map(({name:e,value:t})=>` .header(${B(e)}, ${B(t)})`),...a?[" .body(body.toByteArray())"]:[]," .asString();","System.out.println(response.getBody());"].join("\n")}}]},{key:"js",title:"JavaScript",default:"fetch",clients:[{target:"js",client:"fetch",title:"Fetch",generate(e){let t={method:"GET",...e},r="";t.method=o(t.method);let a={method:"GET"===t.method?void 0:t.method},i=n(t.queryString);if(t.headers?.length&&(a.headers={},t.headers.forEach(e=>{a.headers[e.name]=e.value})),t.cookies?.length&&(a.headers=a.headers||{},t.cookies.forEach(e=>{a.headers["Set-Cookie"]=a.headers["Set-Cookie"]?`${a.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}`})),Object.keys(a).forEach(e=>{void 0===a[e]&&delete a[e]}),t.postData){let{mimeType:e,text:n,params:o}=t.postData;if("application/json"===e&&n)try{a.body=new Z(`JSON.stringify(${j(JSON.parse(n))})`)}catch{a.body=n}else if("multipart/form-data"===e&&o)r="const formData = new FormData()\n",o.forEach(e=>{void 0!==e.fileName?r+=`formData.append('${e.name}', new Blob([]), '${e.fileName}') 103`:void 0!==e.value&&(r+=`formData.append('${e.name}', '${e.value}') 104`)}),r+="\n",a.body=new Z("formData");else if("application/x-www-form-urlencoded"===e&&o){let e=Object.fromEntries(o.map(e=>[e.name,e.value]));a.body=new Z(`new URLSearchParams(${j(e)})`)}else a.body=t.postData.text}let s=Object.keys(a).length?`, ${j(a)}`:"";return`${r}fetch('${t.url}${i}'${s})`}},M,{target:"js",client:"ofetch",title:"ofetch",generate(e){let t={method:"GET",...e};t.method=o(t.method);let r={method:"GET"===t.method?void 0:t.method};t.queryString?.length&&(r.query=c(t.queryString)),t.headers?.length&&(r.headers={},t.headers.forEach(e=>{r.headers[e.name]=e.value})),t.cookies?.length&&(r.headers=r.headers||{},t.cookies.forEach(e=>{r.headers["Set-Cookie"]=r.headers["Set-Cookie"]?`${r.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}`})),Object.keys(r).forEach(e=>{void 0===r[e]&&delete r[e]}),t.postData&&(r.body=t.postData.text,"application/json"===t.postData.mimeType&&(r.body=JSON.parse(r.body)));let n=Object.keys(r).length?`, ${j(r)}`:"";return`import { ofetch } from 'ofetch' 105 106ofetch('${t.url}'${n})`}},{target:"js",client:"jquery",title:"jQuery",generate(e,t){let{url:r,method:n,headers:o,setup:a,body:i,withCredentials:s}=q(e,t);return[...a,"$.ajax({",` url: ${JSON.stringify(r)},`,` method: ${JSON.stringify(n)},`,...s?[" xhrFields: { withCredentials: true },"]:[]," processData: false,"," contentType: false,",...o.length?[" beforeSend(xhr) {",...o.map(({name:e,value:t})=>` xhr.setRequestHeader(${JSON.stringify(e)}, ${JSON.stringify(t)});`)," },"]:[],` data: ${i}`,"}).done((response) => console.log(response));"].join("\n")}},{target:"js",client:"xhr",title:"XHR",generate(e,t){let{url:r,method:n,headers:o,setup:a,body:i}=q(e,t);return[...a,"const xhr = new XMLHttpRequest();",`xhr.open(${JSON.stringify(n)}, ${JSON.stringify(r)});`,"xhr.withCredentials = true;",...o.map(({name:e,value:t})=>`xhr.setRequestHeader(${JSON.stringify(e)}, ${JSON.stringify(t)});`),'xhr.addEventListener("load", () => console.log(xhr.responseText));',`xhr.send(${i});`].join("\n")}}]},{key:"julia",title:"Julia",default:"http",clients:[{target:"julia",client:"http",title:"HTTP.jl",generate(e,t){let r={url:"https://example.com",...e},n=o(r.method),a=(e=>{if(!e)return;let{mimeType:t,text:r,params:n}=e;if("application/json"===t&&r)try{return{value:`JSON.json(${L(JSON.parse(r),1)})`,packages:["JSON"],omitContentType:!1}}catch{}return"multipart/form-data"===t&&n?.length?{value:U(n.map(Y),"HTTP.Form([","])",1),packages:[],omitContentType:!0}:"application/x-www-form-urlencoded"===t&&n?.length?{value:W(n.map(e=>({name:e.name,value:e.value??""})),1),packages:[],omitContentType:!1}:r?{value:N(r),packages:[],omitContentType:!1}:void 0})(r.postData),i=new Map;for(let e of r.headers??[])!e.name||a?.omitContentType&&"content-type"===e.name.toLowerCase()||i.set(e.name,e.value??"");let s=[...H,...I].includes(n)?n.toLowerCase():void 0,l=s?`HTTP.${s}`:"HTTP.request",c=N(r.url),u=s?[c]:[N(n),c],d=[],h=[];if(i.size&&d.push(z([...i].map(([e,t])=>({name:e,value:t})),1)),a&&(I.includes(n)||0===i.size?h.push(`body = ${a.value}`):d.push(a.value)),r.queryString?.length&&h.push(`query = ${z(r.queryString,1)}`),r.cookies?.length&&h.push(`cookies = ${W(r.cookies,1)}`),t?.auth?.username&&t?.auth?.password){let{username:e,password:r}=t.auth;h.push(`basicauth = (${N(e)}, ${N(r)})`)}return[...["HTTP",...a?.packages??[]].map(e=>`using ${e}`),"",...((e,t,r,n)=>{let o=[...t,...r];if(0===r.length&&0===n.length)return[`response = ${e}(${o.join(", ")})`];let a=[`response = ${e}(`];return o.forEach((e,t)=>{let r=t===o.length-1?n.length?";":"":",";a.push(`${D(1,e)}${r}`)}
106),n.forEach((e,t)=>{a.push(`${D(1,e)}${t===n.length-1?"":","}`)}),a.push(")"),a})(l,u,d,h),"","println(String(response.body))"].join("\n")}}]},{key:"kotlin",title:"Kotlin",default:"okhttp",clients:[{target:"kotlin",client:"okhttp",title:"OkHttp",generate(e,t){let r=o(e?.method),n=a(i(e?.url??"",e?.queryString)),l=e?.postData,c=["val client = OkHttpClient()",""],u=!1;l?.mimeType==="application/x-www-form-urlencoded"&&l.params?(c.push("val body = FormBody.Builder()"),l.params.forEach(e=>{c.push(` .add(${K(e.name??"")}, ${K(e.value??"")})`)}),c.push(" .build()",""),u=!0):l?.mimeType==="multipart/form-data"&&l.params?(c.push("val body = MultipartBody.Builder()"," .setType(MultipartBody.FORM)"),l.params.forEach(e=>{void 0!==e.fileName?c.push(` .addFormDataPart(${K(e.name??"")}, ${K(e.fileName)}, RequestBody.create(MediaType.parse(${K(e.contentType??"application/octet-stream")}), File(${K(e.fileName)})))`):e.contentType?c.push(` .addFormDataPart(${K(e.name)}, null, RequestBody.create(MediaType.parse(${K(e.contentType)}), ${K(e.value??"")}))`):c.push(` .addFormDataPart(${K(e.name)}, ${K(e.value??"")})`)}),c.push(" .build()",""),u=!0):l&&(c.push(`val mediaType = MediaType.parse(${K(l.mimeType??"")})`),c.push(`val body = RequestBody.create(mediaType, ${K(l.text??"")})`),u=!0),c.push("val request = Request.Builder()",` .url(${K(n)})`);let d=["POST","PUT","PATCH","PROPPATCH","REPORT"].includes(r)?'RequestBody.create(null, "")':"null",h=u?"body":d;return G.includes(r)?F.includes(r)?c.push(` .${r.toLowerCase()}(${h})`):c.push(` .${r.toLowerCase()}()`):c.push(` .method(${K(r)}, ${h})`),t?.auth?.username&&t?.auth?.password&&c.push(` .addHeader("Authorization", Credentials.basic(${K(t.auth.username)}, ${K(t.auth.password)}))`),[...e?.headers??[],...s([],e?.cookies)].forEach(e=>{c.push(` .addHeader(${K(e.name)}, ${K(e.value)})`)}),c.push(" .build()","","val response = client.newCall(request).execute()"),c.join("\n")}}]},{key:"node",title:"Node.js",default:"fetch",clients:[{target:"node",client:"fetch",title:"Fetch",generate(e){let t={method:"GET",...e},r="";t.method=o(t.method);let a={method:"GET"===t.method?void 0:t.method},i=n(t.queryString);if(t.headers?.length&&(a.headers={},t.headers.forEach(e=>{a.headers[e.name]=e.value})),t.cookies?.length&&(a.headers=a.headers||{},t.cookies.forEach(e=>{a.headers["Set-Cookie"]=a.headers["Set-Cookie"]?`${a.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}`})),Object.keys(a).forEach(e=>{void 0===a[e]&&delete a[e]}),t.postData){let{mimeType:e,text:n,params:o}=t.postData,i=!1;if("application/json"===e&&n)try{a.body=new Z(`JSON.stringify(${j(JSON.parse(n))})`)}catch{a.body=n}else if("multipart/form-data"===e&&o)r="const formData = new FormData()\n",o.forEach(e=>{void 0!==e.fileName?(i||(r=`import fs from 'node:fs' 107 108${r}`,i=!0),r+=`formData.append('${e.name}', new Blob([fs.readFileSync('${e.fileName}')]), '${e.fileName}') 109`):void 0!==e.value&&(r+=`formData.append('${e.name}', '${e.value}') 110`)}),r+="\n",a.body=new Z("formData");else if("application/x-www-form-urlencoded"===e&&o){let e=Object.fromEntries(o.map(e=>[e.name,e.value]));a.body=new Z(`new URLSearchParams(${j(e)})`)}else a.body=t.postData.text}let s=Object.keys(a).length?`, ${j(a)}`:"";return`${r}fetch('${t.url}${i}'${s})`}},J,{target:"node",client:"ofetch",title:"ofetch",generate(e){let t={method:"GET",...e};t.method=o(t.method);let r={method:"GET"===t.method?void 0:t.method};t.queryString?.length&&(r.query=c(t.queryString)),t.headers?.length&&(r.headers={},t.headers.forEach(e=>{r.headers[e.name]=e.value})),t.cookies?.length&&(r.headers=r.headers||{},t.cookies.forEach(e=>{r.headers["Set-Cookie"]=r.headers["Set-Cookie"]?`${r.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}`})),Object.keys(r).forEach(e=>{void 0===r[e]&&delete r[e]}),t.postData&&(r.body=t.postData.text,"application/json"===t.postData.mimeType&&(r.body=JSON.parse(r.body)));let n=Object.keys(r).length?`, ${j(r)}`:"";return`import { ofetch } from 'ofetch' 111 112ofetch('${t.url}'${n})`}},{target:"node",client:"undici",title:"undici",generate(e){let t={method:"GET",...e};t.method=o(t.method);let r={method:"GET"===t.method?void 0:t.method},a=n(t.queryString);t.headers?.length&&(r.headers={}
112,t.headers.forEach(e=>{r.headers[e.name]=e.value})),t.cookies?.length&&(r.headers=r.headers||{},t.cookies.forEach(e=>{r.headers["Set-Cookie"]=r.headers["Set-Cookie"]?`${r.headers["Set-Cookie"]}; ${e.name}=${e.value}`:`${e.name}=${e.value}`})),Object.keys(r).forEach(e=>{void 0===r[e]&&delete r[e]}),t.postData&&(r.body=t.postData.text,"application/json"===t.postData.mimeType&&(r.body=new Z(`JSON.stringify(${j(JSON.parse(r.body))})`)));let i=Object.keys(r).length?`, ${j(r)}`:"";return`import { request } from 'undici' 113 114const { statusCode, body } = await request('${t.url}${a}'${i})`}}]},{key:"objc",title:"Objective-C",default:"nsurlsession",clients:[{target:"objc",client:"nsurlsession",title:"NSURLSession",generate(e,t){if(!e)return"";let r=o(e.method),n=a(i(e.url??"",e.queryString)),l=s(e.headers,e.cookies),c=["#import <Foundation/Foundation.h>"],u=l.length>0;if(u){let e=Object.fromEntries(l.map(e=>[e.name,e.value]));c.push("",er("NSDictionary","headers",e))}let d=!1;if(e.postData){let{mimeType:t,text:r,params:n}=e.postData;if("application/json"===t&&void 0!==r)try{let e=JSON.parse(r);c.push("",er("NSDictionary","parameters",e)),c.push("","NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];"),d=!0}catch{c.push("",`NSData *postData = [${ee(r)} dataUsingEncoding:NSUTF8StringEncoding];`),d=!0}else if("application/x-www-form-urlencoded"===t&&n?.length){d=!0;let[e,...t]=n;c.push("",`NSMutableData *postData = [[NSMutableData alloc] initWithData:[${ee(`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value??"")}`)} dataUsingEncoding:NSUTF8StringEncoding]];`),t.forEach(e=>{c.push(`[postData appendData:[${ee(`&${encodeURIComponent(e.name)}=${encodeURIComponent(e.value??"")}`)} dataUsingEncoding:NSUTF8StringEncoding]];`)})}else"multipart/form-data"===t&&n?.length?(d=!0,c.push("",er("NSArray","parameters",n),'NSString *boundary = @"---011000010111000001101001";',"","NSError *error;","NSMutableString *body = [NSMutableString string];","for (NSDictionary *param in parameters) {",' [body appendFormat:@"--%@\\r\\n", boundary];',' if (param[@"fileName"]) {',' [body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"; filename=\\"%@\\"\\r\\n", param[@"name"], param[@"fileName"]];',' [body appendFormat:@"Content-Type: %@\\r\\n\\r\\n", param[@"contentType"]];',' [body appendFormat:@"%@", [NSString stringWithContentsOfFile:param[@"fileName"] encoding:NSUTF8StringEncoding error:&error]];'," if (error) {",' NSLog(@"%@", error);'," }"," } else {",' [body appendFormat:@"Content-Disposition:form-data; name=\\"%@\\"\\r\\n\\r\\n", param[@"name"]];',' [body appendFormat:@"%@", param[@"value"]];'," }","}",'[body appendFormat:@"\\r\\n--%@--\\r\\n", boundary];',"NSData *postData = [body dataUsingEncoding:NSUTF8StringEncoding];")):"application/octet-stream"===t?(d=!0,c.push("",`NSData *postData = [${ee(r??"")} dataUsingEncoding:NSUTF8StringEncoding];`)):void 0!==r&&(d=!0,c.push("",`NSData *postData = [${ee(r)} dataUsingEncoding:NSUTF8StringEncoding];`))}if(c.push("",`NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:${ee(n)}]`," cachePolicy:NSURLRequestUseProtocolCachePolicy"," timeoutInterval:10.0];",`[request setHTTPMethod:@"${r}"];`),u&&c.push("[request setAllHTTPHeaderFields:headers];"),d&&c.push("[request setHTTPBody:postData];"),t?.auth?.username&&t?.auth?.password){let e=ee(`${t.auth.username}:${t.auth.password}`);c.push(`NSData *authData = [${e} dataUsingEncoding:NSUTF8StringEncoding];`,'NSString *authValue = [NSString stringWithFormat:@"Basic %@", [authData base64EncodedStringWithOptions:0]];','[request setValue:authValue forHTTPHeaderField:@"Authorization"];')}return c.push("","NSURLSession *session = [NSURLSession sharedSession];","NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request","completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {"," if (error) {",' NSLog(@"%@", error);'," } else {"," NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;",' NSLog(@"%@", httpResponse);'," }","}];","[dataTask resume];"),c.join("\n")}}]},{key:"ocaml",title:"OCaml",default:"cohttp",clients:[{target:"ocaml",client:"cohttp",title:"Cohttp",generate(e,t){let{url:r,method:n,headers:o,body:a}=E(e,t),i=["open Lwt.Infix","","let () ="," Lwt_main.run (",` let uri = Uri.of_string ${en(r)} in`," let headers = Cohttp.Header.of_list [",...o.map(({name:e,value:t})=>` (${en(e)}, ${en(t)});`)," ] in"];if(a){for(let[e,t]of a.entries())i.push("file"in t?` Lwt_io.with_file ~mode:Lwt_io.Input ${en(t.file)} Lwt_io.read >>= fun part${e} ->`:` let part${e} = ${en(t.text)} in`);i.push(` let body = Cohttp_lwt.Body.of_string (String.concat "" [${a.map((e,t)=>`part${t}`).join("; ")}]) in`)}return i.push(` Cohttp_lwt_unix.Client.call ~headers ${a?"~body ":""}
114(Cohttp.Code.method_of_string ${en(n)}) uri`," >>= fun (_response, body) ->"," Cohttp_lwt.Body.to_string body >>= Lwt_io.printl"," )"),i.join("\n")}}]},{key:"php",title:"PHP",default:"curl",clients:[{target:"php",client:"curl",title:"cURL",generate(e,t){let r={method:"GET",...e};r.method=o(r.method);let n=[],a=!1,i=r.queryString?.length?"?"+r.queryString.map(e=>`${e.name}=${e.value}`).join("&"):"",s=`${r.url}${i}`;n.push(`$ch = curl_init("${s}");`),n.push(""),"POST"===r.method?n.push("curl_setopt($ch, CURLOPT_POST, true);"):"GET"!==r.method&&n.push(`curl_setopt($ch, CURLOPT_CUSTOMREQUEST, '${r.method}');`),t?.auth?.username&&t?.auth?.password&&n.push(`curl_setopt($ch, CURLOPT_USERPWD, '${t.auth.username}:${t.auth.password}');`);let l=[...r.headers||[]],c=()=>l.some(e=>"content-type"===e.name.toLowerCase());if(r.postData&&("application/x-www-form-urlencoded"===r.postData.mimeType&&r.postData.params&&!c()?l.push({name:"Content-Type",value:"application/x-www-form-urlencoded"}):"application/octet-stream"!==r.postData.mimeType||c()||l.push({name:"Content-Type",value:"application/octet-stream"})),l.length){let e=l.map(e=>`'${e.name}: ${e.value}'`);n.push(`curl_setopt($ch, CURLOPT_HTTPHEADER, [${e.join(", ")}]);`);let t=l.find(e=>"accept-encoding"===e.name.toLowerCase());t&&/gzip|deflate/.test(t.value)&&n.push("curl_setopt($ch, CURLOPT_ENCODING, '');")}if(r.cookies?.length){let e=r.cookies.map(e=>{let t=encodeURIComponent(e.name),r=encodeURIComponent(e.value);return`${t}=${r}`}).join("; ");n.push(`curl_setopt($ch, CURLOPT_COOKIE, '${e}');`)}if(r.postData){if("application/json"===r.postData.mimeType){if(r.postData.text)try{let e=JSON.parse(r.postData.text),t=ei(e);n.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(${t}));`)}catch{n.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, '${r.postData.text}');`)}}else if("multipart/form-data"===r.postData.mimeType&&r.postData.params)a=!0,n.push("$mime = curl_mime_init($ch);"),r.postData.params.forEach((e,t)=>{let r=`$part${t}`;n.push(`${r} = curl_mime_addpart($mime);`),n.push(`curl_mime_name(${r}, '${e.name}');`),void 0!==e.fileName?n.push(`curl_mime_filedata(${r}, '${e.fileName}');`):void 0!==e.value&&n.push(`curl_mime_data(${r}, '${e.value}');`),e.contentType&&n.push(`curl_mime_type(${r}, '${e.contentType}');`)}),n.push("curl_setopt($ch, CURLOPT_MIMEPOST, $mime);");else if("application/x-www-form-urlencoded"===r.postData.mimeType&&r.postData.params){let e=r.postData.params.map(e=>{let t=encodeURIComponent(e.name),r=e.value?encodeURIComponent(e.value):"";return`${t}=${r}`}).join("&");n.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, '${e}');`)}else if("application/octet-stream"===r.postData.mimeType)n.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, '${r.postData.text||""}');`);else if(r.postData.text)try{let e=JSON.parse(r.postData.text),t=ei(e);n.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(${t}));`)}catch{n.push(`curl_setopt($ch, CURLOPT_POSTFIELDS, '${r.postData.text}');`)}}return n.push(""),n.push("curl_exec($ch);"),a&&n.push("curl_mime_free($mime);"),n.push(""),n.push("curl_close($ch);"),n.join("\n").replace(/\n\n\n/g,"\n\n")}},{target:"php",client:"guzzle",title:"Guzzle",generate(e,t){if(!e)return"";let r={},n=o(e.method),a=e.url||"";if(e.headers&&Array.isArray(e.headers)&&e.headers.length>0){let t={};e.headers.forEach(e=>{void 0===t[e.name]?t[e.name]=e.value:Array.isArray(t[e.name])?t[e.name].push(e.value):t[e.name]=[t[e.name],e.value]}),r.headers=t}if(e.queryString&&e.queryString.length>0&&(r.query=c(e.queryString)),e.cookies&&e.cookies.length>0){let t={};e.cookies.forEach(e=>{t[e.name]=e.value}),r.cookies=t}if(t?.auth?.username&&t.auth.password&&(r.auth=[t.auth.username,t.auth.password]),e.postData)if("application/json"===e.postData.mimeType)try{r.json=JSON.parse(e.postData.text||"{}")}catch(t){r.body=e.postData.text}else if("multipart/form-data"===e.postData.mimeType){if(e.postData.params)r.multipart=e.postData.params.map(e=>{let t={name:e.name,contents:e.fileName?new ea(`fopen('${e.fileName}', 'r')`):e.value||""};return e.contentType&&(t.headers={"Content-Type":e.contentType}),t});else if(e.postData.text)try{r.form_params=JSON.parse(e.postData.text)}catch(t){r.body=e.postData.text}}else if("application/x-www-form-urlencoded"===e.postData.mimeType){if(e.postData.params){let t={};
114e.postData.params.forEach(e=>{t[e.name]=e.value||""}),r.form_params=t}}else r.body=e.postData.text;e.headers&&Array.isArray(e.headers)&&e.headers.some(e=>"Accept-Encoding"===e.name&&e.value.includes("gzip"))&&(r.decode_content=!0);let i="$client = new GuzzleHttp\\Client();\n\n";if(Object.keys(r).length>0){let e=ei(r);i+=`$response = $client->request('${n}', '${a}', ${e});`}else i+=`$response = $client->request('${n}', '${a}');`;return i}},{target:"php",client:"laravel",title:"Laravel HTTP Client",generate(e,t){let r,a={method:"GET",...e};a.method=o(a.method);let i=n(a.queryString),s=`${a.url??""}${i}`,c=[];if(t?.auth?.username&&t.auth.password&&c.push(`withBasicAuth(${el(t.auth.username)}, ${el(t.auth.password)})`),a.headers?.length){let e={};a.headers.forEach(t=>{l(e,t.name,t.value)}),c.push(`withHeaders(${ei(ec(e))})`)}if(a.cookies?.length){let e={};a.cookies.forEach(t=>{l(e,t.name,t.value)}),c.push(`withCookies(${ei(ec(e))}, ${el((e=>{if(!e)return"localhost";try{return new URL(e).hostname||"localhost"}catch{return"localhost"}})(a.url??""))})`)}if(a.postData){if("application/json"===a.postData.mimeType){if(a.postData.text)try{r=JSON.parse(a.postData.text)}catch{c.push(`withBody(${el(a.postData.text)}, 'application/json')`)}}else if("application/x-www-form-urlencoded"===a.postData.mimeType&&a.postData.params){let e={};a.postData.params.forEach(t=>{l(e,t.name,t.value??"")}),c.push("asForm()"),r=e}else if("multipart/form-data"===a.postData.mimeType&&a.postData.params){let e={};a.postData.params.forEach(t=>{if(void 0!==t.fileName){let e=[el(t.name),`file_get_contents(${el(t.fileName)})`,el(t.fileName)];t.contentType&&e.push(ei(ec({"Content-Type":t.contentType}))),c.push(`attach(${e.join(", ")})`)}else t.contentType?c.push(`attach(${el(t.name)}, ${el(t.value??"")}, null, ${ei(ec({"Content-Type":t.contentType}))})`):l(e,t.name,t.value??"")}),Object.keys(e).length>0&&(r=e)}else if("application/octet-stream"===a.postData.mimeType)c.push(`withBody(${el(a.postData.text??"")}, 'application/octet-stream')`);else if(a.postData.text)try{r=JSON.parse(a.postData.text)}catch{c.push(`withBody(${el(a.postData.text)}, ${el(a.postData.mimeType||"text/plain")})`)}}let u=a.method.toLowerCase(),d=["delete","get","head","patch","post","put"].includes(u)?void 0!==r&&"head"!==u?`${u}(${el(s)}, ${ei(ec(r),1)})`:`${u}(${el(s)})`:void 0!==r?`send(${el(a.method)}, ${el(s)}, ${ei(ec(r),1)})`:`send(${el(a.method)}, ${el(s)})`,h=c.length>0?[`Http::${c[0]}`,...c.slice(1).map(e=>` ->${e}`),` ->${d}`].join("\n"):`Http::${d}`;return`use Illuminate\\Support\\Facades\\Http; 115 116$response = ${h};`}}]},{key:"powershell",title:"PowerShell",default:"webrequest",clients:[{target:"powershell",client:"webrequest",title:"Invoke-WebRequest",generate:(e,t)=>ed("Invoke-WebRequest",e,t)},{target:"powershell",client:"restmethod",title:"Invoke-RestMethod",generate:(e,t)=>ed("Invoke-RestMethod",e,t)}]},{key:"python",title:"Python",default:"python3",clients:[{target:"python",client:"python3",title:"http.client",generate(e,t){let o=r({url:"https://example.com",...e}),a=(e=>{if(!e)return new URL("https://example.com");try{return new URL(e)}catch{return new URL(e,"https://example.com")}})(o.url??"https://example.com"),i=((e,t=[])=>{if(!t.length)return e.search;let r=n(t);return e.search?`${e.search}&${r.slice(1)}`:r})(a,o.queryString),s=`${a.pathname||"/"}${i}`,c=o.headers?.reduce((e,t)=>(t.name in e||(e[t.name]=t.value),e),{})??{};if(o.cookies?.length){let e=o.cookies.map(e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`).join("; ");c.Cookie?c.Cookie=`${c.Cookie}; ${e}`:c.Cookie=e}if(t?.auth?.username&&t.auth.password){let e=(e=>{if("function"==typeof globalThis.btoa)return globalThis.btoa(e);if(void 0!==em.Buffer)return em.Buffer.from(e,"utf-8").toString("base64");throw Error("Could not encode basic auth credentials")})(`${t.auth.username}:${t.auth.password}`);c.Authorization=`Basic ${e}`}let u=new Set(["import http.client"]),d=[],h=((e,t,r)=>{let n=e.postData;if(!n)return{payloadLines:[]};let{mimeType:o,text:a,params:i}=n;if("application/json"===o&&a)try{let e=JSON.parse(a);return r.add("import json"),{payloadLines:[`payload = json.dumps(${ep(e,0)})`],payloadVariable:"payload"}}catch{return{payloadLines:[`payload = ${JSON.stringify(a)}`],payloadVariable:"payload"}}
116if("application/octet-stream"===o&&a){let e;return{payloadLines:[`payload = ${(e=JSON.stringify(a).slice(1,-1),`b"${e}"`)}`],payloadVariable:"payload"}}if("application/x-www-form-urlencoded"===o&&i){r.add("import urllib.parse");let e={};return i.forEach(t=>{l(e,t.name,t.value??"")}),t["Content-Type"]||(t["Content-Type"]="application/x-www-form-urlencoded"),{payloadLines:[`payload = urllib.parse.urlencode(${ep(e,0)}, doseq=True)`],payloadVariable:"payload"}}if("multipart/form-data"===o&&i){let e=['boundary = "----ScalarSnippetzBoundary"',"data_list = []"];return i.forEach(t=>{e.push('data_list.append("--" + boundary)'),void 0!==t.fileName?e.push(`data_list.append(${JSON.stringify(`Content-Disposition: form-data; name="${t.name}"; filename="${t.fileName}"`)})`):e.push(`data_list.append(${JSON.stringify(`Content-Disposition: form-data; name="${t.name}"`)})`),t.contentType&&e.push(`data_list.append(${JSON.stringify(`Content-Type: ${t.contentType}`)})`),e.push('data_list.append("")'),void 0!==t.fileName?e.push(`data_list.append(open(${JSON.stringify(t.fileName)}, "rb").read().decode("latin-1"))`):e.push(`data_list.append(${JSON.stringify(t.value??"")})`)}),e.push('data_list.append("--" + boundary + "--")'),e.push('data_list.append("")'),e.push('payload = "\\r\\n".join(data_list)'),t["Content-Type"]="multipart/form-data; boundary=----ScalarSnippetzBoundary",{payloadLines:e,payloadVariable:"payload"}}if(a)try{let e=JSON.parse(a);return r.add("import json"),{payloadLines:[`payload = json.dumps(${ep(e,0)})`],payloadVariable:"payload"}}catch{return{payloadLines:[`payload = ${JSON.stringify(a)}`],payloadVariable:"payload"}}return{payloadLines:[]}})(o,c,u);d.push(...h.payloadLines),Object.keys(c).length&&d.push(`headers = ${ep(c,0)}`);let p=[JSON.stringify(o.method),JSON.stringify(s)];h.payloadVariable&&p.push(`body=${h.payloadVariable}`),Object.keys(c).length&&p.push("headers=headers");let f=p.length<=2?`conn.request(${p.join(", ")})`:`conn.request( 117 ${p.join(",\n ")}, 118)`;return[...u,"",`conn = http.client.${"https:"===a.protocol?"HTTPSConnection":"HTTPConnection"}(${JSON.stringify(a.host)})`,...d.length?["",...d]:[],"",f,"","response = conn.getresponse()","print(response.read().decode())","","conn.close()"].join("\n")}},{target:"python",client:"requests",title:"Requests",generate:(e,t)=>ef("requests",e,t)},{target:"python",client:"aiohttp",title:"aiohttp",generate(e,t){let r={url:"https://example.com",method:"get",...e},n=o(r.method),a=[],i=[],s=[];if(r.headers?.length){let e=r.headers.reduce((e,t)=>(t.name in e||(e[t.name]=t.value),e),{});a.push(`headers=${ep(e)}`)}if(r.queryString?.length&&a.push(`params=${ep(c(r.queryString))}`),r.cookies?.length){let e=Object.fromEntries(r.cookies.map(e=>[e.name,e.value]));i.push(`cookies=${ep(e)}`)}if(t?.auth?.username&&t?.auth?.password&&i.push(`auth=aiohttp.BasicAuth(${JSON.stringify(t.auth.username)}, ${JSON.stringify(t.auth.password)})`),r.postData){let{mimeType:e,text:t,params:n}=r.postData;if("application/json"===e&&t)try{a.push(`json=${ep(JSON.parse(t))}`)}catch{a.push(`data=${JSON.stringify(t)}`)}else if("application/octet-stream"===e&&t)a.push(`data=b"${t}"`);else if("multipart/form-data"===e&&n)s.push("data = aiohttp.FormData()"),n.forEach(e=>{if(void 0!==e.fileName){let t=[JSON.stringify(e.name),`open(${JSON.stringify(e.fileName)}, "rb")`,`filename=${JSON.stringify(e.fileName)}`];e.contentType&&t.push(`content_type=${JSON.stringify(e.contentType)}`),s.push(`data.add_field(${t.join(", ")})`);return}e.contentType?s.push(`data.add_field(${JSON.stringify(e.name)}, ${JSON.stringify(e.value??"")}, content_type=${JSON.stringify(e.contentType)})`):s.push(`data.add_field(${JSON.stringify(e.name)}, ${JSON.stringify(e.value??"")})`)}),a.push("data=data");else if("application/x-www-form-urlencoded"===e&&n){let e={};n.forEach(t=>{l(e,t.name,t.value??"")}),a.push(`data=${ep(e)}`)}else t&&a.push(`data=${JSON.stringify(t)}`)}let u=0===i.length?"async with aiohttp.ClientSession() as session:":`async with aiohttp.ClientSession( 119 ${i.join(",\n ")} 120) as session:`,d=[...s,((e,t,r,n)=>{let o=JSON.stringify(r);if(!["GET","POST","PUT","DELETE","PATCH","HEAD","OPTIONS"].includes(t))return`${e}.request(${[JSON.stringify(t),o,...n].join(", ")})`;let a=t.toLowerCase();return r.length>40?`${e}.${a}( 121 ${[o,...n].join(",\n ")} 122)`:0===n.length?`${e}.${a}(${o})`:`${e}.${a}(${o}, 123 ${n.join(",\n ")} 124)`})("await session",n,r.url??"",a)];return`${u} 125${((e,t=" ")=>e.split("\n").map(e=>""===e.trim()?e:`${t}${e}`).join("\n"))(d.join("\n"))}`}},{target:"python",client:"httpx_sync",title:"HTTPX (Sync)",generate:(e,t)=>
125ef("httpx",e,t)},{target:"python",client:"httpx_async",title:"HTTPX (Async)",generate(e,t){let r=ef("await client",e,t);return r=r.split("\n").map(e=>""===e.trim()?e:" "+e).join("\n"),`async with httpx.AsyncClient() as client: 126${r}`}}]},{key:"r",title:"R",default:"httr2",clients:[{target:"r",client:"httr2",title:"httr2",generate(e,t){let r={url:"https://example.com",method:"GET",...e},n=o(r.method),a=["library(httr2)",""];a.push(`response <- request("${r.url}") |>`);let i=[];"GET"!==n&&i.push(` req_method("${n}")`);let s={};if(r.headers?.length)for(let e of r.headers)s[e.name]=e.value;if(r.cookies?.length&&(s.Cookie=r.cookies.map(e=>`${e.name}=${e.value}`).join("; ")),t?.auth?.username&&t?.auth?.password&&i.push(` req_auth_basic("${t.auth.username}", "${t.auth.password}")`),Object.keys(s).length){let e=Object.entries(s);if(1===e.length){let[t,r]=e[0];i.push(` req_headers("${t}" = "${r}")`)}else{let t=e.map(([e,t])=>` "${e}" = "${t}"`).join(",\n");i.push(` req_headers( 127${t} 128 )`)}}if(r.queryString?.length){let e=Object.entries(c(r.queryString));if(1===e.length){let[t,r]=e[0];if(Array.isArray(r)){let e=r.map(e=>`"${e}"`).join(", ");i.push(` req_url_query("${t}" = c(${e}))`)}else i.push(` req_url_query("${t}" = "${r}")`)}else{let t=e.map(([e,t])=>{if(Array.isArray(t)){let r=t.map(e=>`"${e}"`).join(", ");return` "${e}" = c(${r})`}return` "${e}" = "${t}"`}).join(",\n");i.push(` req_url_query( 129${t} 130 )`)}}if(r.postData){let{mimeType:e,text:t,params:n}=r.postData;if("application/json"===e&&t){let e=(e=>{try{let t=JSON.parse(e);return eO(t," ")}catch{return`"${e}"`}})(t);i.push(` req_body_json(${e})`)}else if("multipart/form-data"===e&&n){let e=n.map(e=>void 0!==e.fileName?` ${e.name} = curl::form_file("${e.fileName}")`:` ${e.name} = "${e.value??""}"`).join(",\n");i.push(` req_body_multipart( 131${e} 132 )`)}else if("application/x-www-form-urlencoded"===e&&n){let e=n.map(e=>` "${e.name}" = "${e.value??""}"`).join(",\n");i.push(` req_body_form( 133${e} 134 )`)}else t&&i.push(` req_body_raw("${t}", type = "${e??"application/octet-stream"}")`)}return i.push(" req_perform()"),a[a.length-1]=`response <- request("${r.url}") |>`,a.push(i.join(" |>\n")),a.push(""),a.push("resp_body_string(response)"),a.join("\n")}}]},{key:"ruby",title:"Ruby",default:"native",clients:[{target:"ruby",client:"native",title:"net::http",generate(e,t){let r={method:"GET",...e};r.method=o(r.method);let a=n(r.queryString),i=(e=>{try{let t=new URL(e),r=t.pathname.split("/").map(e=>encodeURIComponent(decodeURIComponent(e)).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/%24/g,"$")).join("/");if("/"===t.pathname)return`${t.origin}${t.search}${t.hash}`;return`${t.origin}${r}${t.search}${t.hash}`}catch{return e}})(`${r.url??""}${a}`),s=["require 'uri'","require 'net/http'",""];((e,t,r)=>{if(eb.has(t))return;let n=eS(t);e.push(`class Net::HTTP::${n} < Net::HTTPRequest`),e.push(` METHOD = '${ev(t)}'`),e.push(` REQUEST_HAS_BODY = '${r?"true":"false"}'`),e.push(" RESPONSE_HAS_BODY = true"),e.push("end"),e.push("")})(s,r.method,!!r.postData?.text),s.push(`url = URI("${eg(i)}")`,""),s.push("http = Net::HTTP.new(url.host, url.port)"),i.startsWith("https://")&&s.push("http.use_ssl = true"),s.push("");let l=eS(r.method);if(s.push(`request = Net::HTTP::${l}.new(url)`),t?.auth?.username&&t?.auth?.password){let e=eg(t.auth.username),r=eg(t.auth.password);s.push(`request.basic_auth("${e}", "${r}")`)}if(r.headers?.length&&r.headers.forEach(e=>{s.push(`request["${eg(e.name)}"] = '${ev(e.value)}'`)}),r.cookies?.length){let e=r.cookies.map(e=>`${ey(e.name)}=${ey(e.value)}`).join("; ");s.push(`request["Cookie"] = '${ev(e)}'`)}if(r.postData){let{mimeType:e,text:t,params:n}=r.postData;if("application/json"===e&&void 0!==t)try{let e=JSON.parse(t),r=JSON.stringify(e,null,2);s.push("request.body = <<~JSON"),s.push(r),s.push("JSON")}catch{s.push(`request.body = ${JSON.stringify(t)}`)}else if("application/x-www-form-urlencoded"===e&&n){let e=n.map(e=>`${ey(e.name)}=${ey(e.value??"")}`).join("&");s.push(`request.body = '${ev(e)}'`)}else"multipart/form-data"===e&&n?(s.push("form_data = []"),n.forEac
134h(e=>{let t=ev(e.name);if(void 0!==e.fileName){let r=ev(e.fileName);if(e.contentType){let n=ev(e.contentType);s.push(`form_data << ['${t}', File.open('${r}'), { filename: '${r}', content_type: '${n}' }]`)}else s.push(`form_data << ['${t}', File.open('${r}')]`)}else if(e.contentType){let r=ev(e.value??""),n=ev(e.contentType);s.push(`form_data << ['${t}', '${r}', { content_type: '${n}' }]`)}else{let r=ev(e.value??"");s.push(`form_data << ['${t}', '${r}']`)}}),s.push("request.set_form(form_data, 'multipart/form-data')")):"application/octet-stream"===e?s.push(`request.body = ${JSON.stringify(t??"")}`):void 0!==t&&s.push(`request.body = ${JSON.stringify(t)}`)}return s.push("","response = http.request(request)","puts response.read_body"),s.join("\n")}}]},{key:"rust",title:"Rust",default:"reqwest",clients:[{target:"rust",client:"reqwest",title:"reqwest",generate(e,t){var o,a,i,s;let l,c,u,d;if(!e)return"";let h=r(e),p=n(h.queryString),f=(o=h.url||"",`${o}${p}`),m=function(e){let t={};if(e.headers)for(let r of e.headers)r.value&&!/[; ]/.test(r.name)&&(t[r.name]=r.value);return e.cookies&&e.cookies.length>0&&(t.Cookie=e.cookies.map(e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`).join("; ")),t}(h),O=[],g=(l=t?.auth,l?.username&&l?.password?ew("basic_auth",ex(l.username),ex(l.password)):null);g&&O.push(g),O.push(...Object.entries(m).map(([e,t])=>ew("header",ex(e),ex(t))));let v=(e=>{if(!e)return null;let{mimeType:t,text:r,params:n}=e;switch(t){case"application/json":{let e=function(e){try{let t=JSON.parse(e),r=JSON.stringify(t,null,4).split("\n");return r.map((e,t)=>0===t?e:(r.length,ek(1,e))).join("\n")}catch{return e}}(r);return ew("json",`&serde_json::json!(${e})`)}case"application/x-www-form-urlencoded":{let e=n?.map(e=>`(${ex(e.name)}, ${ex(e.value||"")})`).join(", ")||"";return ew("form",`&[${e}]`)}case"multipart/form-data":{let e=n?.map(e$).join("\n")||"",t=[".multipart({",ek(2,"let mut form = reqwest::multipart::Form::new();"),e,ek(3,"form"),ek(2,"})")].join("\n");return ek(1,t)}default:return ew("body",ex(r||""))}})(h.postData);return v&&O.push(v),a=f,i=h.method,s=O,c=["let client = reqwest::Client::new();",""],u=["GET","POST","PUT","DELETE","PATCH","HEAD"].includes(i)?`${i.toLowerCase()}(${ex(a)})`:`request(reqwest::Method::from_bytes(${ex(i)}.as_bytes())?, ${ex(a)})`,s.length>0?(c.push("let request = client"),c.push(ek(1,`.${u}`)),c.push(...s)):c.push(`let request = client.${u}`),d=c[c.length-1],c[c.length-1]=d+";",c.push(""),c.push("let response = request.send().await?;"),c.join("\n")}}]},{key:"shell",title:"Shell",default:"curl",clients:[{target:"shell",client:"curl",title:"Curl",generate(e,t){let r={method:"GET",...e};r.method=o(r.method);let n=["curl"],a=r.url??"",i=a.includes("?")?"&":"?",s=r.queryString?.length?i+r.queryString.map(e=>`${e.name}=${e.value}`).join("&"):"",l=`${a}${s}`,c=/^[A-Za-z0-9._~:/%@+,=-]*$/.test(l)?l:`'${l.replace(/'/g,"'\\''")}'`;n[0]=`curl ${c}`;let u=l.indexOf("?"),d=-1===u?"":l.slice(u);if((/[[\]]/.test(l)||/[{}]/.test(d))&&n.push("--globoff"),"GET"!==r.method&&n.push(`--request ${r.method}`),t?.auth?.username&&t?.auth?.password){let e=`${t.auth.username}:${t.auth.password}`.replace(/'/g,"'\\''");n.push(`--user '${e}'`)}if(r.headers?.length){r.headers.forEach(e=>{let t=`${e.name}: ${e.value}`.replace(/'/g,"'\\''");n.push(`--header '${t}'`)});let e=r.headers.find(e=>"accept-encoding"===e.name.toLowerCase());e&&/gzip|deflate/.test(e.value)&&n.push("--compressed")}if(r.cookies?.length){let e=r.cookies.map(e=>{let t=encodeURIComponent(e.name),r=encodeURIComponent(e.value);return`${t}=${r}`}).join("; ").replace(/'/g,"'\\''");n.push(`--cookie '${e}'`)}if(r.postData)if((0,P.isJsonMediaType)(r.postData.mimeType)){if(r.postData.text)try{let e=JSON.parse(r.postData.text),t=JSON.stringify(e,null,2).replace(/'/g,"'\\''");n.push(`--data '${t}'`)}catch{let e=(r.postData.text??"").replace(/'/g,"'\\''");n.push(`--data '${e}'`)}}else if((0,eP.isStreamingContentType)(r.postData.mimeType??"")){let e=(r.postData.text??"").replace(/'/g,"'\\''");n.push(`--data-binary '${e}'`)}
134else if("application/octet-stream"===r.postData.mimeType){let e=(r.postData.text??"").replace(/'/g,"'\\''");n.push(`--data-binary '${e}'`)}else if("application/x-www-form-urlencoded"===r.postData.mimeType&&r.postData.params)r.postData.params.forEach(e=>{let t=(e.value??"").replace(/'/g,"'\\''"),r=encodeURIComponent(e.name).replace(/'/g,"'\\''");n.push(`--data-urlencode '${r}=${t}'`)});else if("multipart/form-data"===r.postData.mimeType&&r.postData.params)r.postData.params.forEach(e=>{let t=e.name.replace(/'/g,"'\\''"),r=e.contentType?`;type=${e.contentType}`:"";if(void 0!==e.fileName){let o=`${e.fileName}${r}`.replace(/'/g,"'\\''");n.push(`--form '${t}=@${o}'`)}else{let o=e.value??"",a=(0,P.isJsonMediaType)(e.contentType),i=o;if(a&&o)try{i=JSON.stringify(JSON.parse(o),null,2)}catch{}let s=`${i}${r}`.replace(/'/g,"'\\''");n.push(`--form '${t}=${s}'`)}});else try{let e=JSON.parse(r.postData.text??""),t=JSON.stringify(e,null,2).replace(/'/g,"'\\''");n.push(`--data '${t}'`)}catch{let e=(r.postData.text??"").replace(/'/g,"'\\''");n.push(`--data '${e}'`)}return n.join(" \\\n ")}},{target:"shell",client:"wget",title:"Wget",generate(e,t){let r={...e,method:o(e?.method)},n=r.url??"",a=n.includes("?")?"&":"?",i=r.queryString?.length?a+r.queryString.map(e=>`${e.name}=${e.value}`).join("&"):"",s=`${n}${i}`,l=/^[A-Za-z0-9._~:/%@+,=-]*$/.test(s)?s:`'${s.replace(/'/g,"'\\''")}'`,c=["wget --quiet",`--method ${r.method}`];if(t?.auth?.username&&t?.auth?.password&&(c.push(`--user '${t.auth.username.replace(/'/g,"'\\''")}'`),c.push(`--password '${t.auth.password.replace(/'/g,"'\\''")}'`)),r.headers?.length&&r.headers.forEach(e=>{let t=`${e.name}: ${e.value}`.replace(/'/g,"'\\''");c.push(`--header '${t}'`)}),r.cookies?.length){let e=r.cookies.map(e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`).join("; ");c.push(`--header 'Cookie: ${e.replace(/'/g,"'\\''")}'`)}if(r.postData){let{mimeType:e,text:t,params:n}=r.postData;if((0,P.isJsonMediaType)(e))t&&c.push(`--body-data '${eC(t).replace(/'/g,"'\\''")}'`);else if("application/octet-stream"===e)c.push(`--body-data '${(t??"").replace(/'/g,"'\\''")}'`);else if("application/x-www-form-urlencoded"===e&&n){let e=n.map(e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value??"")}`).join("&");c.push(`--body-data '${e.replace(/'/g,"'\\''")}'`)}else"multipart/form-data"===e&&n?n.forEach(e=>{if(void 0!==e.fileName)c.push(`--body-file='${e.fileName.replace(/'/g,"'\\''")}'`);else{let t=e.value??"",r=(0,P.isJsonMediaType)(e.contentType)&&t?eC(t):t;c.push(`--body-data '${`${e.name}=${r}`.replace(/'/g,"'\\''")}'`)}}):t&&c.push(`--body-data '${eC(t).replace(/'/g,"'\\''")}'`)}return c.push("--output-document",`- ${l}`),c.join(" \\\n ")}},{target:"shell",client:"httpie",title:"HTTPie",generate(e,t){let{url:r,method:n,headers:o,body:a}=E(e,t),i=a?.length===1&&a[0]&&"text"in a[0]&&!a[0].text.includes("\0")?a[0].text:void 0,s=[`http${!a||void 0!==i?" --ignore-stdin":""} ${eQ(n)} ${eQ(r)}`];for(let{name:e,value:t}of o){let r=e.replaceAll("\\","\\\\").replaceAll(":","\\:").replaceAll(";","\\;");s.push(eQ(t?`${r}:${t}`:`${r};`))}let l=s.join(" \\\n ");return a?void 0!==i?`${l} \\ 135 --raw=${eQ(i)}`:["{",...a.map(e=>{if("file"in e)return` cat -- ${eQ(e.file)}`;let t=Array.from(e.text,e=>{if("\\"===e)return"\\\\";let t=e.charCodeAt(0);return t<32?`\\0${t.toString(8).padStart(3,"0")}`:e}).join("");return` printf '%b' ${eQ(t)}`}),`} | ${l}`].join("\n"):l}}]},{key:"swift",title:"Swift",default:"nsurlsession",clients:[{target:"swift",client:"nsurlsession",title:"NSURLSession",generate(e,t){if(!e)return"";let r=o(e.method),n=a(i(e.url??"",e.queryString)),l=s(e.headers,e.cookies),c=["import Foundation","",`var request = URLRequest(url: URL(string: ${JSON.stringify(n)})!)`];if(c.push(`request.httpMethod = ${JSON.stringify(r)}`),l.forEach(e=>{c.push(`request.setValue(${JSON.stringify(e.value)}, forHTTPHeaderField: ${JSON.stringify(e.name)})`)}),t?.auth?.username&&t?.auth?.password&&(c.push(`let credentials = ${JSON.stringify(`${t.auth.username}:${t.auth.password}`)}`),c.push("let encodedCredentials = Data(credentials.utf8).base64EncodedString()"),c.push('request.setValue("Basic \\(encodedCredentials)", forHTTPHeaderField: "Authorization")')),e.postData){let{mimeType:t,text:r,params:n}=e.postData;if("application/json"===t&&void 0!==r){let e=(e=>{try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}})(r),t=(e=>{let t=1;for(;e.includes(`"""${"#".repeat(t)}`);)t+=1;return"#".repeat(t)})(e);c.push(`let jsonBody = ${t}"""`),c.push(e),c.push(`"""${t}`),c.push("request.httpBody = jsonBody.data(using: .utf8)")}else if("application/x-www-form-urlencoded"===t&&n?.length){let e=n.map(e=>`${encodeURIComponent(e.name)}
135=${encodeURIComponent(e.value??"")}`).join("&");c.push(`let formBody = ${JSON.stringify(e)}`),c.push("request.httpBody = formBody.data(using: .utf8)")}else if("multipart/form-data"===t&&n?.length){let e;c.push(...(e=["let boundary = UUID().uuidString","var body = Data()","","func appendToBody(_ value: String) {"," body.append(value.data(using: .utf8)!)","}",""],n.forEach(t=>{let r=eT(t.name),n=eT(t.fileName??""),o=t.contentType?eT(t.contentType):void 0;(e.push('appendToBody("--\\(boundary)\\r\\n")'),void 0!==t.fileName)?(e.push(`appendToBody(${JSON.stringify(`Content-Disposition: form-data; name="${r}"; filename="${n}"\r 136`)})`),o&&e.push(`appendToBody(${JSON.stringify(`Content-Type: ${o}\r 137`)})`),e.push('appendToBody("\\r\\n")'),e.push(`appendToBody(${JSON.stringify(`<# File data for ${t.fileName||"file"} #>\r 138`)})`)):(e.push(`appendToBody(${JSON.stringify(`Content-Disposition: form-data; name="${r}"\r 139`)})`),o&&e.push(`appendToBody(${JSON.stringify(`Content-Type: ${o}\r 140`)})`),e.push('appendToBody("\\r\\n")'),e.push(`appendToBody(${JSON.stringify(t.value??"")})`),e.push('appendToBody("\\r\\n")')),e.push("")}),e.push('appendToBody("--\\(boundary)--\\r\\n")'),e)),c.push('request.setValue("multipart/form-data; boundary=\\(boundary)", forHTTPHeaderField: "Content-Type")'),c.push("request.httpBody = body")}else"application/octet-stream"===t?(c.push(`let binaryBody = Data(${JSON.stringify(r??"")}.utf8)`),c.push("request.httpBody = binaryBody")):void 0!==r&&(c.push(`let rawBody = ${JSON.stringify(r)}`),c.push("request.httpBody = rawBody.data(using: .utf8)"))}return c.push(""),c.push("let (data, response) = try await URLSession.shared.data(for: request)"),c.push(""),c.push("guard let httpResponse = response as? HTTPURLResponse,"),c.push(" 200..<300 ~= httpResponse.statusCode else {"),c.push(" throw URLError(.badServerResponse)"),c.push("}"),c.push(""),c.push('print(String(data: data, encoding: .utf8) ?? "")'),c.join("\n")}}]}];function eA(){function e(e,t){return eB.find(({key:t})=>t===e)?.clients.find(e=>e.client===t)}return{print:(t,r,n)=>e(t,r)?.generate(n),clients:()=>eB,plugins:()=>eB.flatMap(({key:e,clients:t})=>t.map(t=>({target:e,client:t.client}))),findPlugin:e,hasPlugin:(t,r)=>!!e(t,r)}}var eR=e.i(838550),eE=e=>eR.AVAILABLE_CLIENTS.includes(e);e.s(["DEFAULT_CLIENT",0,"shell/curl","findClient",0,(e,t)=>{let r=t=>{for(let r of e){let e=r.options.find(e=>e.id===t);if(e)return e}},n=e.find(e=>"custom"===e.key)?.options[0];if(t?.startsWith("custom"))return r(t)??n??r("shell/curl")??e[0]?.options[0];if(t){let e=r(t);if(e)return e}return n||(r("shell/curl")??e[0]?.options[0])},"isClient",0,eE,"isSelectedClient",0,e=>eE(e)||"string"==typeof e&&e.startsWith("custom/")],462273),e.i(761626);var eV=e.i(80250),eZ=eR,ej=e=>{let t=new Map,r=new Map;return e.map(e=>{let n=(e.lang||"plaintext").toLowerCase(),o=JSON.stringify([n,e.label??""]),a=void 0===e.example?void 0:r.get(o);if(a)return a;let i=t.get(n)??0;t.set(n,i+1);let s=0===i?`custom/${n}`:`custom/${n}/${i}`;return void 0!==e.example&&r.set(o,s),s})};e.s(["generateClientOptions",0,(e=eZ.AVAILABLE_CLIENTS)=>{let t=new Set(e);return eA().clients().flatMap(e=>{let r=e.clients.flatMap(r=>{let n=`${e.key}/${r.client}`;return t.has(n)?{id:n,lang:"curl"===r.client?"curl":e.key,title:`${(0,eV.capitalize)(e.title)} ${r.title}`,label:r.title,targetKey:e.key,targetTitle:e.title,clientKey:r.client}:[]});return 0===r.length?[]:{label:e.title,key:e.key,options:r}})},"getCustomClientIds",0,ej],261475);var eX="u">typeof OVERRIDE_PACKAGE_VERSION?OVERRIDE_PACKAGE_VERSION:"0.4.0",e_=e.i(310269),eM=e.i(304780);e.i(766688);var eq=e.i(403023),eN=e.i(534607),eD=e.i(147224),eU=e.i(575331),ez=e.i(47904),eW=e.i(717145),eL=e.i(12304),eH=e.i(852066),eI=e.i(501110),eY=e.i(734098),eG=e.i(845141),eF=e.i(325341),eK=e.i(932615),eJ=(e,t,r,n=!1,o)=>{let a=[];for(let[i,s]of Array.isArray(e)?e.filter(e=>!e.isDisabled).map(e=>[String(e.name),e.value]):Object.entries(e)){if(null==s)continue;let l=r?void 0:t?.[i];if(n&&!r){let t=Array.isArray(e)?(0,eN.coerceLeafValueToSchemaType)(s,(0,eN.resolveLeafSchema)(o,[i])):s,r=(0,eH.serializeMultipartArray)(i,Array.isArray(t)?t:s,l);if(r){for(let e of r)a.push({name:e.key,value:e.value instanceof File?`@${e.value.name}`:e.value,...e.contentType?{contentType:e.contentType}:{}});continue}}let c=l&&(void 0!==l.style||void 0!==l.explode||void 0!==l.allowReserved),u=c||!n?void 0:l?.contentType,d=r?null:(0,eL.serializeFormPropertyWithEncoding)(i,s,l);if(d)for(let e of d)a.push({name:e.key,value:e.value});else if(s instanceof File){let e=(0,eK.unpackProxyObject)(s);a.push({name:i,value:`@${e.name}`,...u?{contentType:u}:{}})}
140else if(u&&"object"==typeof s)a.push({name:i,value:JSON.stringify((0,eK.unpackProxyObject)(s)),contentType:u});else if(!n||r||c||"object"!=typeof s||Array.isArray(s))if(Array.isArray(s))for(let e of s)if(e instanceof File){let t=(0,eK.unpackProxyObject)(e);a.push({name:i,value:`@${t.name}`})}else a.push({name:i,value:String(e)});else if("object"==typeof s)for(let e of eJ(s,void 0,i))a.push({name:`${i}.${e.name}`,value:e.value});else a.push({name:i,value:String(s),...u?{contentType:u}:{}});else a.push({name:i,value:JSON.stringify((0,eK.unpackProxyObject)(s)),contentType:"application/json"})}return a},e0=e.i(81060),e1=e.i(890396),e2=e.i(398605),e8=e.i(650023),e5=e.i(378650),e4=(e,t)=>("allowReserved"in t&&void 0!==t.allowReserved?t.allowReserved:"schema"in t&&!!t.schema&&"object"==typeof t.schema&&"allowReserved"in t.schema&&!0===t.schema.allowReserved)?e:encodeURIComponent(e),e3=e=>{if("header"===e.in)return{style:"simple",explode:"explode"in e&&void 0!==e.explode&&e.explode};if("cookie"===e.in){let t=!("explode"in e)||void 0===e.explode||e.explode;return{style:"style"in e&&"cookie"===e.style?"cookie":"form",explode:t}}let t={path:"simple",query:"form",querystring:"form",header:"simple",cookie:"form"}[e.in],r="style"in e&&e.style?e.style:t;return{style:r,explode:"explode"in e&&void 0!==e.explode?e.explode:"form"===r}},e6=(e,t,r)=>{let n=(0,e8.getParameterExample)(e,t),o=n.example;if((0,e1.isParamDisabled)(e,o,r))return;if(void 0!==n.value)return(0,e0.deSerializeParameter)(n.value,e);if(!("schema"in e)||!e.schema)return;let a="path"===e.in?{emptyString:`{${e.name}}`}:{},i=(0,eM.getResolvedRef)(e.schema);return i?(0,ez.getExampleFromSchema)(i,a):void 0},e9=(e,t,r,n,o)=>{switch(n){case"matrix":if(o){if(Array.isArray(r)){let n=r.map(e=>`${t.name}=${e}`).join(";");return e.replace(`{;${t.name}}`,`;${n}`)}if((0,p.isObjectLike)(r)){let n=Object.entries(r).map(([e,t])=>`${e}=${t}`).join(";");return e.replace(`{;${t.name}}`,`;${n}`)}return e.replace(`{;${t.name}}`,`;${t.name}=${r}`)}if(Array.isArray(r))return e.replace(`{;${t.name}}`,`;${t.name}=${r.join(",")}`);if((0,p.isObjectLike)(r)){let n=Object.entries(r).map(([e,t])=>`${e},${t}`).join(",");return e.replace(`{;${t.name}}`,`;${t.name}=${n}`)}return e.replace(`{;${t.name}}`,`;${t.name}=${r}`);case"label":if(o){if(Array.isArray(r))return e.replace(`{.${t.name}}`,`.${r.join(".")}`);if((0,p.isObjectLike)(r)){let n=Object.entries(r).map(([e,t])=>`${e}=${t}`).join(".");return e.replace(`{.${t.name}}`,`.${n}`)}return e.replace(`{.${t.name}}`,`.${r}`)}if(Array.isArray(r))return e.replace(`{.${t.name}}`,`.${r.join(",")}`);if((0,p.isObjectLike)(r)){let n=Object.entries(r).map(([e,t])=>`${e},${t}`).join(",");return e.replace(`{.${t.name}}`,`.${n}`)}return e.replace(`{.${t.name}}`,`.${r}`);case"simple":{let n=(0,e2.serializeSimpleStyle)(r,o);return e.replace(`{${t.name}}`,String(n))}default:return e.replace(`{${t.name}}`,String(r))}},e7=e.i(143629),te=e.i(506418),tt=e.i(427338),tr=e.i(267499),tn=e.i(150476),to=({includeDefaultHeaders:e=!1,operation:t,contentType:r,method:n,path:o,server:a=null,example:i,securitySchemes:s,globalCookies:l,openapiVersion:c,requestBodyCompositionSelection:u,defaultDisabledParameters:d=!1})=>{let h=(0,tn.restoreConventionalDefaultHeaderNames)(e?(0,tn.getDefaultHeaders)({method:n,operation:t,exampleName:i??"default",hideDisabledHeaders:!0,hideOverriddenHeaders:!0,options:{isElectron:(0,tt.isElectron)(),appVersion:eX}}):{}),p=t["x-scalar-disable-parameters"]?.["global-cookies"]?.[i??"default"]??{},f={method:n,url:((e,t)=>{if(!e?.url)return t;let r=e.url;return e.variables?(0,te.mergeUrls)((0,e7.replaceVariables)(r,Object.entries(e.variables).reduce((e,[t,r])=>(void 0!==r.default&&(e[t]=r.default),e),{})),t):(0,te.mergeUrls)(r,t)})(a,o),headers:Object.entries(h).map(([e,t])=>({name:e,value:t})),queryString:[],postData:void 0,httpVersion:"HTTP/1.1",cookies:[],headersSize:-1,bodySize:-1},m=!1,O=!1;if(t.parameters){let{url:e,headers:r,queryString:n,cookies:o,hasCookieStyleEntries:a,hasSerializedQuery:s}=(({harRequest:e,parameters:t,example:r,defaultDisabled:n})=>{let o=[...e.headers],a=[...e.queryString],i=[...e.cookies],s=[],l=e.url,c=[],u=[];for(let e of(t??[]).map(e=>(0,eM.getResolvedRef)(e)).filter(e=>void 0!==e)){if(!e.in||!e.name)continue;if("querystring"===e.in){let t=(0,e5.getQuerystringParameter)(e,r,{defaultDisabled:n});if(t){let e=l.indexOf("#"),r=-1===e?"":l.slice(e),n=(-1===e?l:l.slice(0,e)).split("?")[0],o=(0,e5.serializeQuerystringParameter)(t);l=`${n}${o?`?${o}`:""}${r}`}continue}let t=(0,e8.getParameterExample)(e,r);if(t.serialized&&!(0,e1.isParamDisabled)(e,t.example,n)){let r=String(t.value);switch(e.in){case"path":l=l.replaceAll(`{${e.name}}`,()=>r);break;case"query":c.push(r);break;case"header":o.push({name:e.name,value:r});break;case"cookie":u.push(r)}continue}if(t.mediaSerialized&&!(0,e1.isParamDisabled)(e,t.example,n)){let r=String(t.value);switch(e.in){case"query":a.push({name:e.name,value:e4(r,e)});break;case"header":o.push({name:e.name,value:r});break;case"path":l=l.replaceAll(`{${e.name}}`,()=>encodeURIComponent(r));break;case"cookie":i.push({name:e.name,value:r})}continue}let d=e6(e,r,n);if(void 0===d)continue;let{style:h,explode:p}=e3(e);switch(e.in){case"path":l=e9(l,e,d,h,p);break;case"query":if("content"in e&&e.content){let t=(0,e2.serializeContentValue)(d,Object.keys(e.content)[0]??"application/json");a.push({name:e.name,value:e4(t,e)});break}switch(h){case"form":{let t=(0,e2.serializeFormStyle)(d,p);if(Array.isArray(t))for(let r of t){let t=r.key||e.name;a.push({name:t,value:e4(String(r.value),e)})}else a.push({name:e.name,value:e4(String(t),e)});break}case"spaceDelimited":{let t=(0,e2.serializeSpaceDelimitedStyle)(d);a.push({name:e.name,value:e4(t,e)});break}case"pipeDelimited":{let t=(0,e2.serializePipeDelimitedStyle)(d);a.push({name:e.name,value:e4(t,e)});break}case"deepObject":if(Array.isArray(d)){let t=(0,e2.serializeFormStyle)(d,!0);if(Array.isArray(t))for(let r of t){let t=r.key||e.name;a.push({name:t,value:e4(String(r.value),e)})}else a.push({name:e.name,value:e4(String(t),e)})}else for(let t of(0,e2.serializeDeepObjectStyle)(e.name,d))a.push({name:t.key,value:e4(t.value,e)});break;default:a.push({name:e.name,value:e4(String(d),e)})}break;case"header":{let t=(0,e2.serializeSimpleStyle)(d,p);o.push({name:e.name,value:String(t)});break}case"cookie":{if("cookie"===h){s.push(...(0,e2.serializeCookieStyle)(e.name,d,p));break}let t=(0,e2.serializeFormStyleForCookies)(d,p);if(Array.isArray(t))for(let r of t){let t=r.key||e.name,n=null===r.value?"null":String(r.value);i.push({name:t,value:n})}else{let r=null===t?"null":String(t);i.push({name:e.name,value:r})}}}}if(s.length||u.length){let e=[...i.map(e=>`${encodeURIComponent(e.name)}
140=${encodeURIComponent(e.value)}`),...s.map(e=>`${e.name}=${e.value}`),...u].join("; "),t=o.find(e=>"cookie"===e.name.toLowerCase());t?o.splice(o.indexOf(t),1,{...t,value:t.value?`${t.value}; ${e}`:e}):o.push({name:"Cookie",value:e})}if(c.length){let e=l.indexOf("#"),t=e<0?"":l.slice(e),r=e<0?l:l.slice(0,e);l=`${r}${r.includes("?")?"&":"?"}${c.join("&")}${t}`}return{url:l,headers:o,queryString:a,cookies:s.length||u.length?[]:i,hasCookieStyleEntries:s.length>0||u.length>0,...c.length?{hasSerializedQuery:!0}:{}}})({harRequest:f,parameters:t.parameters,example:i,defaultDisabled:d}),c=l?.filter(t=>(0,tr.filterGlobalCookie)({cookie:t,url:e,disabledGlobalCookies:p}))?.map(e=>({name:e.name,value:e.value}))??[];m=a,O=s??!1,f.url=e,f.headers=r,f.queryString=n,f.cookies=[...c,...o]}let g=(0,eM.getResolvedRef)(t.requestBody);if(g?.content){let e=(({requestBody:e,contentType:t,example:r,openapiVersion:n,requestBodyCompositionSelection:o})=>{let a=t||Object.keys(e.content)[0]||"",i="other"===a?"":a,s=e=>`@${(0,eK.unpackProxyObject)(e).name||"filename"}`,l=e.content[a]?.encoding,c=e.content[a];if(c&&(0,eW.needsMultipartEncoding)(a,c)){let t=r??Object.keys(c.examples??{})[0]??"default",n=(0,eq.buildRequestBody)({...e,"x-scalar-selected-content-type":{[t]:a}},t,o);if(n?.mode==="multipart"){let e=(0,eI.serializeMultipartBody)(n.value,n.contentType);return{mimeType:e.contentType,text:e.chunks.map(e=>e instanceof File?s(e):e instanceof Blob?"BINARY":String(e)).join("")}}}let u="multipart/form-data"===a||"application/x-www-form-urlencoded"===a;if((0,eY.isXmlMediaType)(a)){let t=(0,eU.getExampleFromBody)(e,a,r??"",o,n);return t?{mimeType:i,text:t.value}:void 0}let d=(0,eG.getExampleValue)((0,eD.getExample)(e,r,t)),h=(0,eG.getExplicitExampleText)(d,a);if(void 0!==h)return{mimeType:i,text:h};let p=d?.value;if(void 0!==p){let t="object"==typeof p&&p?(0,eK.unpackProxyObject)(p):p;return u&&"object"==typeof t&&t?{mimeType:i,params:eJ(t,l,void 0,"multipart/form-data"===a,(0,eM.getResolvedRef)(e.content[a]?.schema,eM.mergeSiblingReferences))}:t instanceof File?{mimeType:i,text:s(t)}:{mimeType:i,text:"string"==typeof t?t:(0,eF.serializeStreamExample)(t,a,!1)??JSON.stringify(t)}}let f=e.content[a],m=(0,eM.getResolvedRef)(f?.schema??f?.itemSchema);if(void 0!==m){let e=(0,ez.getExampleFromSchema)((0,e_.getResolvedRefDeep)(m),{compositionSelection:o,mode:"write"},{schemaPath:["requestBody"]});if(void 0!==e)return u&&"object"==typeof e&&e?{mimeType:i,params:eJ(e,l,void 0,"multipart/form-data"===a)}:{mimeType:i,text:(0,eF.serializeStreamExample)(e,a,f?.schema===void 0)??("string"==typeof e?e:JSON.stringify(e))}}})({requestBody:g,contentType:r,example:i,openapiVersion:c,requestBodyCompositionSelection:u});if(e&&(f.postData=e,f.bodySize=e.text?.length??-1,e.mimeType)){let t=f.headers.find(e=>"content-type"===e.name.toLowerCase());t&&(!t.value||e.mimeType.startsWith("multipart/")&&e.mimeType.includes("boundary=")&&void 0!==e.text)?t.value=e.mimeType:t||f.headers.push({name:"Content-Type",value:e.mimeType})}}let v=O||t.parameters?.some(e=>(0,eM.getResolvedRef)(e)?.in==="querystring");if(s){let{headers:e,queryString:t,cookies:r}=(e=>{let t={headers:[],queryString:[],cookies:[]};for(let r of e){if("apiKey"===r.type){let e=r["x-scalar-secret-token"]||"YOUR_SECRET_TOKEN";if(!r.name)continue;let n={name:r.name,value:e};switch(r.in){case"header":t.headers.push(n);break;case"query":t.queryString.push(n);break;case"cookie":t.cookies.push(n)}continue}if("http"===r.type){if("basic"===r.scheme){let e=`${r["x-scalar-secret-username"]||""}:${r["x-scalar-secret-password"]||""}`,n=":"===e?"username:password":(0,k.encode)(e);t.headers.push({name:"Authorization",value:`Basic ${n}`})}else if("bearer"===r.scheme){let e=r["x-scalar-secret-token"]||"YOUR_SECRET_TOKEN";t.headers.push({name:"Authorization",value:`Bearer ${e}`})}continue}if("oauth2"===r.type&&r.flows){let e=Object.values(r.flows).find(e=>e["x-scalar-secret-token"])?.["x-scalar-secret-token"]||"YOUR_SECRET_TOKEN";t.headers.push({name:"Authorization",value:`Bearer ${e}`})}}return t})(s);f.headers.push(...e),f.queryString.push(...t.map(e=>v?{...e,value:encodeURIComponent(e.value)}
140:e)),f.cookies.push(...r)}let y=f.headers.find(e=>"cookie"===e.name.toLowerCase());if(m&&y&&f.cookies.length){let e=f.cookies.map(e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`).join("; ");y.value=y.value?`${y.value}; ${e}`:e,f.cookies=[]}if(v&&f.queryString.length){let e=f.url.indexOf("#"),t=-1===e?"":f.url.slice(e),r=-1===e?f.url:f.url.slice(0,e),n=f.queryString.map(({name:e,value:t})=>`${encodeURIComponent(e)}=${t}`).join("&");f.url=`${r}${r.includes("?")?"&":"?"}${n}${t}`,f.queryString=[]}let b=0;for(let e of f.headers)b+=(e.name?.length??0)+2+(e.value?.length??0)+2;return f.headersSize=b,f};e.s(["operationToHar",0,to],585881);var ta="ws://replace.me";e.s(["generateCodeSnippet",0,({clientId:e,customCodeSamples:t,includeDefaultHeaders:r=!1,operation:n,method:o,path:a,example:i,contentType:s,server:l,securitySchemes:c,globalCookies:u,openapiVersion:d,requestBodyCompositionSelection:h,defaultDisabledParameters:p})=>{try{if(!e)return"";if(e.startsWith("custom")){let r=ej(t),o=t.filter((t,n)=>r[n]===e);if(!o.some(e=>void 0!==e.example))return o[0]?.source??"Custom example not found";let a=(0,eM.getResolvedRef)(n.requestBody)?.content??{},l=s??Object.keys(a)[0],c=i??Object.keys(a[l??""]?.examples??{})[0];return(o.find(e=>e.example===c&&e.contentType===l)??o.find(e=>e.example===c&&void 0===e.contentType))?.source??null}let f=to({operation:n,contentType:s,method:o,path:a,server:l,securitySchemes:c,example:i,globalCookies:u,includeDefaultHeaders:r,openapiVersion:d,requestBodyCompositionSelection:h,defaultDisabledParameters:p}),[m,O]=e.split("/"),[g,v]=((e,t,r)=>{try{if(!r.url)return[Error("Please enter a URL to see a code snippet"),null];let n=r.url.startsWith("/")?"":"/";try{new URL(r.url)}catch{r.url=`${ta}${n}${r.url}`}if(r.postData?.mimeType==="application/json")try{JSON.parse(r.postData.text||"{}")}catch(e){return console.error("[getSnippet] Invalid JSON body",e),[Error("Invalid JSON body"),null]}let o=e.replace("javascript","js");if(eA().hasPlugin(o,t)){let e=eA().print(o,t,r);return e?[null,e.replace(`${ta}${n}`,"")]:[Error("Error generating snippet"),null]}}catch(e){return console.error("[getSnippet] Error generating snippet",e),[Error("Error generating snippet"),null]}return[Error("No snippet found"),null]})(m,O,f);return g?(console.error("[generateCodeSnippet]",g),g.message??"Error generating code snippet"):v}catch(e){return console.error("[generateCodeSnippet]",e),"Error generating code snippet"}}],807309);var ti=(e,t)=>Object.entries(e??{}).map(([e,r])=>({lang:e,source:r,...t?{label:t}:{}})),ts="Code Examples";e.s(["CODE_EXAMPLES_GROUP_LABEL",0,ts,"getCustomCodeSamples",0,e=>{let t,r=e["x-scalar-examples"]??[];if(r.length)return{label:"SDK",samples:r};let n=ti(e["x-stainless-snippets"]);if(n.length)return{label:"SDK",samples:n};let o=(t=e["x-stainless-examples"])?(Array.isArray(t)?t:[t]).flatMap(e=>ti(e.request,e.title)):[];if(o.length)return{label:"SDK",samples:o};let a=(e["x-readme"]?.["code-samples"]??[]).map(e=>({lang:e.language,source:e.code,...e.name?{label:e.name}:{}}));return a.length?{label:ts,samples:a}:{label:ts,samples:["x-custom-examples","x-codeSamples","x-code-samples"].flatMap(t=>e[t]??[])}}],525673);var tl={c:"C",clojure:"Clojure",cpp:"C++","c++":"C++",csharp:"C#","c#":"C#",css:"CSS",curl:"cURL",dart:"Dart",fsharp:"F#","f#":"F#",go:"Go",golang:"Go",graphql:"GraphQL",html:"HTML",http:"HTTP",java:"Java",javascript:"JavaScript",js:"JavaScript",json:"JSON",jl:"Julia",julia:"Julia",kotlin:"Kotlin",node:"Node.js",nodejs:"Node.js",objc:"Objective-C","objective-c":"Objective-C",ocaml:"OCaml",php:"PHP",powershell:"PowerShell",py:"Python",python:"Python",r:"R",ruby:"Ruby",rust:"Rust",scala:"Scala",sh:"Shell",shell:"Shell",bash:"Shell",sql:"SQL",swift:"Swift",ts:"TypeScript",typescript:"TypeScript",xml:"XML",yaml:"YAML",yml:"YAML"};e.s(["getClients",0,(e,t,r=ts)=>{if(e.length){let n=ej(e);return[{label:r,key:"custom",options:e.flatMap((e,t)=>{let r=n[t]??`custom/${t}`;if(n.indexOf(r)!==t)return[];let o=e.label||(e=>{if(e)return tl[e.toLowerCase()]??((e="")=>(e[0]?.toUpperCase()??"")+e.slice(1))(e)})(e.lang)||r;return{id:r,lang:e.lang||"plaintext",title:o,label:o,clientKey:"custom"}})},...t]}return t}],454537),e.s(["getSecrets",0,e=>e.flatMap(e=>"apiKey"===e.type?e["x-scalar-secret-token"]:e?.type==="http"?[e["x-scalar-secret-token"],e["x-scalar-secret-username"],e["x-scalar-secret-password"],(0,k.encode)(`${e["x-scalar-secret-username"]}:${e["x-scalar-secret-password"]}`)]:"oauth2"===e.type?Object.values(e.flows).map(e=>
140e["x-scalar-secret-token"]):[]).filter(Boolean)],550030);var tc=e.i(875418),tu=e.i(112111);e.i(453217);var td=e.i(989880),th=e.i(377970);e.i(917885);var tp=e.i(749377),tf={class:"min-w-0 flex-1 truncate"},tm=(0,tc.defineComponent)({inheritAttrs:!1,__name:"ExamplePicker",props:(0,tc.mergeModels)({examples:{default:()=>({})}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){let t=(0,tc.useModel)(e,"modelValue"),r=(0,tc.computed)(()=>Object.entries(e.examples).map(([e,t])=>({id:e,label:t?.summary??e}))),n=(0,tc.computed)({get:()=>r.value.find(({id:e})=>e===t.value),set:e=>t.value=e?.id??""});return(e,t)=>((0,tc.openBlock)(),(0,tc.createBlock)((0,tu.unref)(tp.ScalarListbox),{modelValue:n.value,"onUpdate:modelValue":t[0]||=e=>n.value=e,class:"w-fit min-w-32",options:r.value,placement:"bottom-start",teleport:""},{default:(0,tc.withCtx)(()=>[(0,tc.createVNode)((0,tu.unref)(td.ScalarButton),(0,tc.mergeProps)({class:"text-c-2 hover:text-c-1 flex h-full w-fit min-w-0 gap-1.5 px-1.5 py-0.75 text-base font-normal","data-testid":"example-picker",variant:"ghost"},e.$attrs),{default:(0,tc.withCtx)(()=>[(0,tc.createElementVNode)("div",tf,(0,eV.toDisplayString)(n.value?.label??"Select an example"),1),(0,tc.createVNode)((0,tu.unref)(th.ScalarIconCaretDown),{class:"ui-open:rotate-180 mt-0.25 size-3 transition-transform duration-100",weight:"bold"})]),_:1},16)]),_:1},8,["modelValue","options"]))}});e.s(["default",0,tm],805310);var tO=e.i(453806),tg=(0,tc.defineComponent)({__name:"HttpMethod",props:{as:{},property:{},short:{type:Boolean},method:{}},setup(e){let r=(0,tc.computed)(()=>(0,tO.getHttpMethodInfo)(String(e.method||""))),n=(0,tc.computed)(()=>{if("string"!=typeof e.method||!e.method.trim())return"get";let r=e.method.trim();return(0,t.isHttpMethod)(r.toLowerCase())?r.toLowerCase():r});return(o,a)=>((0,tc.openBlock)(),(0,tc.createBlock)((0,tc.resolveDynamicComponent)(e.as??"span"),{class:(0,eV.normalizeClass)({uppercase:(0,tu.unref)(t.isHttpMethod)(n.value)}),style:(0,eV.normalizeStyle)({[e.property||"color"]:r.value.colorVar})},{default:(0,tc.withCtx)(()=>[(0,tc.renderSlot)(o.$slots,"default"),(0,tc.createTextVNode)(" "+(0,eV.toDisplayString)(e.short?r.value.short:n.value),1)]),_:3},8,["class","style"]))}});e.s(["default",0,tg],567390);var tv=Symbol();e.i(555824);var ty=e.i(79842),tb=(0,tc.defineComponent)({inheritAttrs:!1,__name:"ScalarCard",props:{label:{}},setup(e){let t,{id:r}=(t=(0,tu.ref)(),(0,tc.provide)(tv,t),{id:t}),n=(0,tc.computed)(()=>e.label?{"aria-label":e.label}:r.value?{"aria-labelledby":r.value}:{}),{cx:o}=(0,ty.useBindCx)();return(e,t)=>((0,tc.openBlock)(),(0,tc.createElementBlock)("div",(0,tc.mergeProps)({role:"group"},{...n.value,...(0,tu.unref)(o)("scalar-card bg-b-2 flex flex-col divide-y rounded-xl border")}),[(0,tc.renderSlot)(e.$slots,"default")],16))}}),tS=(0,tc.defineComponent)({inheritAttrs:!1,__name:"ScalarCardSection",setup(e){let{cx:t}=(0,ty.useBindCx)();return(e,r)=>((0,tc.openBlock)(),(0,tc.createElementBlock)("div",(0,eV.normalizeProps)((0,tc.guardReactiveProps)((0,tu.unref)(t)("scalar-card-content flex overflow-auto first:rounded-t-[inherit] last:rounded-b-[inherit]"))),[(0,tc.renderSlot)(e.$slots,"default")],16))}}),tx=(0,tc.defineComponent)({inheritAttrs:!1,__name:"ScalarCardFooter",setup(e){let{cx:t}=(0,ty.useBindCx)();return(e,r)=>((0,tc.openBlock)(),(0,tc.createBlock)(tS,(0,eV.normalizeProps)((0,tc.guardReactiveProps)((0,tu.unref)(t)("scalar-card-footer"))),{default:(0,tc.withCtx)(()=>[(0,tc.renderSlot)(e.$slots,"default")]),_:3},16))}}),tk=["id"],tw={key:0,class:"flex"},t$=(0,tc.defineComponent)({inheritAttrs:!1,__name:"ScalarCardHeader",setup(e){let t,{cx:r}=(0,ty.useBindCx)(),n=(0,tc.useId)();return(t=(0,tc.inject)(tv,void 0))&&(t.value=n),(e,t)=>((0,tc.openBlock)(),(0,tc.createBlock)(tS,(0,eV.normalizeProps)((0,tc.guardReactiveProps)((0,tu.unref)(r)("scalar-card-header leading-[22px] font-medium py-[6.75px] px-3 shrink-0"))),{default:(0,tc.withCtx)(()=>[(0,tc.createElementVNode)("div",{id:(0,tu.unref)(n),class:"scalar-card-header-title min-w-0 flex-1 truncate"},[(0,tc.renderSlot)(e.$slots,"default")],8,tk),e.$slots.actions?((0,tc.openBlock)(),(0,tc.createElementBlock)("div",tw,[(0,tc.renderSlot)(e.$slots,"actions")])):(0,tc.createCommentVNode)("",!0)]),_:3},16))}});e.s([],949509),e.s(["ScalarCard",0,tb],15242),e.s(["ScalarCardFooter",0,tx],507485),e.s(["ScalarCardHeader",0,t$],622776),e.s(["ScalarCardSection",0,tS],236387)},210776,961411,338392,880022,e=>{"use strict";e.i(181875),e.i(462273),e.i(261475),e.i(585881),e.i(807309),e.i(525673),e.i(454537),e.i(550030),e.
140i(805310),e.i(567390),e.i(870282),e.i(761626),e.i(562649);var t=e.i(875418),r=e.i(112111);e.i(500444),e.i(509446);var n=e.i(304780);e.i(387412),e.i(896136),e.i(545270),e.i(683210),e.s(["getFirstServer",0,(...e)=>{for(let t of e)if(t){if(!Array.isArray(t)){let e=(0,n.getResolvedRef)(t);if(e?.url)return e;continue}for(let e of t){let t=(0,n.getResolvedRef)(e);if(t?.url)return t}}return null}],961411),e.i(756119),e.i(310269),e.s([],210776);var o=e.i(80250),a={key:1,class:"rounded border bg-b-2 p-3 text-sm"},i={key:0,class:"mt-2 rounded border bg-b-1 p-2 font-code text-c-2"},s=(0,t.defineComponent)({__name:"ScalarErrorBoundary",setup(e){let n=(0,r.ref)(!1),s=(0,r.ref)();return(0,t.onErrorCaptured)((e,t,r)=>(console.error("[ERROR]",e,r),n.value=!0,s.value=e,!1)),(e,r)=>n.value?((0,t.openBlock)(),(0,t.createElementBlock)("div",a,[r[0]||(r[0]=(0,t.createElementVNode)("div",{class:"p-2"},"Oops, something went wrong here.",-1)),s.value?((0,t.openBlock)(),(0,t.createElementBlock)("div",i,(0,o.toDisplayString)(s.value?.name)+": "+(0,o.toDisplayString)(s.value?.message),1)):(0,t.createCommentVNode)("",!0)])):(0,t.renderSlot)(e.$slots,"default",{},void 0,void 0,0)}});e.s([],338392),e.s(["ScalarErrorBoundary",0,s],880022)},837889,e=>{"use strict";var t=e.i(232787);e.s(["ScalarCombobox",()=>t.default])},132605,e=>{"use strict";e.i(946976),e.i(257082),e.i(700489),e.s([])},748650,e=>{"use strict";var t=e.i(465710);e.s(["ScalarFloating",()=>t.default])},91578,e=>{"use strict";var t=e.i(876804);e.s(["ScalarFloatingBackdrop",()=>t.default])},552546,e=>{"use strict";e.i(465710),e.i(876804),e.s([])},545270,e=>{"use strict";var t=e.i(248740);e.s(["ScalarTeleportRoot",()=>t.default])},273934,e=>{"use strict";var t="scalar-app",r="headlessui-portal-root",n=e=>{!e||e.classList.contains(t)||e.classList.add(t)};e.s(["addScalarClassesToHeadless",0,()=>{n(document.getElementById(r));let e=new MutationObserver(e=>e.forEach(({addedNodes:e})=>e.forEach(e=>{null!==e&&e instanceof HTMLElement&&e.id===r&&n(e)})));return e.observe(document.body,{childList:!0}),e}])},908651,e=>{"use strict";var t=e.i(95952);e.i(761626);var r=e.i(875418),n=e.i(112111),o={key:0},a={key:1},i={key:2},s={key:3},l={key:4},c={key:5},u=(0,r.defineComponent)({name:"ScalarIconArrowUpRight",props:{label:{},weight:{}},setup(e){let{bind:u,weight:d}=(0,t.useScalarIcon)(e);return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",(0,r.mergeProps)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},(0,n.unref)(u)),[(0,r.renderSlot)(e.$slots,"default"),"bold"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",o,[...t[0]||(t[0]=[(0,r.createElementVNode)("path",{d:"M204,64V168a12,12,0,0,1-24,0V93L72.49,200.49a12,12,0,0,1-17-17L163,76H88a12,12,0,0,1,0-24H192A12,12,0,0,1,204,64Z"},null,-1)])])):"duotone"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",a,[...t[1]||(t[1]=[(0,r.createElementVNode)("path",{d:"M192,64V168L88,64Z",opacity:"0.2"},null,-1),(0,r.createElementVNode)("path",{d:"M192,56H88a8,8,0,0,0-5.66,13.66L128.69,116,58.34,186.34a8,8,0,0,0,11.32,11.32L140,127.31l46.34,46.35A8,8,0,0,0,200,168V64A8,8,0,0,0,192,56Zm-8,92.69-38.34-38.34h0L107.31,72H184Z"},null,-1)])])):"fill"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",i,[...t[2]||(t[2]=[(0,r.createElementVNode)("path",{d:"M200,64V168a8,8,0,0,1-13.66,5.66L140,127.31,69.66,197.66a8,8,0,0,1-11.32-11.32L128.69,116,82.34,69.66A8,8,0,0,1,88,56H192A8,8,0,0,1,200,64Z"},null,-1)])])):"light"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",s,[...t[3]||(t[3]=[(0,r.createElementVNode)("path",{d:"M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z"},null,-1)])])):"regular"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",l,[...t[4]||(t[4]=[(0,r.createElementVNode)("path",{d:"M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z"},null,-1)])])):"thin"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",c,[...t[5]||(t[5]=[(0,r.createElementVNode)("path",{d:"M196,64V168a4,4,0,0,1-8,0V73.66L66.83,194.83a4,4,0,0,1-5.66-5.66L182.34,68H88a4,4,0,0,1,0-8H192A4,4,0,0,1,196,64Z"},null,-1)])])):(0,r.createCommentVNode)("",!0)],16))}});e.s(["ScalarIconArrowUpRight",0,u],908651)},780012,774491,e=>{"use strict";var t=e.i(95952);e.i(761626);var r=e.i(875418),n=e.i(112111),o={key:0},a={key:1},i={key:2},s={key:3},l={key:4},c={key:5},u=(0,r.defineComponent)({name:"ScalarIconBook",props:{label:{},weight:{}},setup(e){let{bind:u,weight:d}=(0,t.useScalarIcon)(e);return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",(0,r.mergeProps)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},(0,n.unref)(u)),[(0,r.renderSlot)(e.$slots,"default"),"bold"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",o,[...t[0]||(t[0]=[(0,r.createElementVNode)("path",{d:"M208,20H72A36,36,0,0,0,36,56V224a12,12,0,0,0,12,12H192a12,12,0,0,0,0-24H60v-4a12,12,0,0,1,12-12H208a12,12,0,0,0,12-12V32A12,12,0,0,0,208,20ZM196,172H72a35.59,35.59,0,0,0-12,2.06V56A12,12,0,0,1,72,44H196Z"},null,-1)])])):"duotone"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",a,[...t[1]||(t[1]=[(0,r.createElementVNode)("path",{d:"M208,32V192H72a24,24,0,0,0-24,24V56A24,24,0,0,1,72,32Z",opacity:"0.2"},null,-1),(0,r.createElementVNode)("path",{d:"M208,24H72A32,32,0,0,0,40,56V224a8,8,0,0,0,8,8H192a8,8,0,0,0,0-16H56a16,16,0,0,1,16-16H208a8,8,0,0,0,8-8V32A8,8,0,0,0,208,24Zm-8,160H72a31.82,31.82,0,0,0-16,4.29V56A16,16,0,0,1,72,40H200Z"},null,-1)])])):"fill"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",i,[...t[2]||(t[2]=[(0,r.createElementVNode)("path",{d:"M216,32V192a8,8,0,0,1-8,8H72a16,16,0,0,0-16,16H192a8,8,0,0,1,0,16H48a8,8,0,0,1-8-8V56A32,32,0,0,1,72,24H208A8,8,0,0,1,216,32Z"},null,-1)])])):"light"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",s,[...t[3]||(t[3]=[(0,r.createElementVNode)("path",{d:"M208,26H72A30,30,0,0,0,42,56V224a6,6,0,0,0,6,6H192a6,6,0,0,0,0-12H54v-2a18,18,0,0,1,18-18H208a6,6,0,0,0,6-6V32A6,6,0,0,0,208,26Zm-6,160H72a29.87,29.87,0,0,0-18,6V56A18,18,0,0,1,72,38H202Z"},null,-1)])])):"regular"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",l,[...t[4]||(t[4]=[(0,r.createElementVNode)("path",{d:"M208,24H72A32,32,0,0,0,40,56V224a8,8,0,0,0,8,8H192a8,8,0,0,0,0-16H56a16,16,0,0,1,16-16H208a8,8,0,0,0,8-8V32A8,8,0,0,0,208,24Zm-8,160H72a31.82,31.82,0,0,0-16,4.29V56A16,16,0,0,1,72,40H200Z"},null,-1)])])):"thin"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",c,[...t[5]||(t[5]=[(0,r.createElementVNode)("path",{d:"M208,28H72A28,28,0,0,0,44,56V224a4,4,0,0,0,4,4H192a4,4,0,0,0,0-8H52v-4a20,20,0,0,1,20-20H208a4,4,0,0,0,4-4V32A4,4,0,0,0,208,28Zm-4,160H72a27.94,27.94,0,0,0-20,8.42V56A20,20,0,0,1,72,36H204Z"},null,-1)])])):(0,r.createCommentVNode)("",!0)],16))}});e.s(["ScalarIconBook",0,u],780012);var d={key:0}
140,h={key:1},p={key:2},f={key:3},m={key:4},O={key:5},g=(0,r.defineComponent)({name:"ScalarIconEnvelopeSimple",props:{label:{},weight:{}},setup(e){let{bind:o,weight:a}=(0,t.useScalarIcon)(e);return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",(0,r.mergeProps)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},(0,n.unref)(o)),[(0,r.renderSlot)(e.$slots,"default"),"bold"===(0,n.unref)(a)?((0,r.openBlock)(),(0,r.createElementBlock)("g",d,[...t[0]||(t[0]=[(0,r.createElementVNode)("path",{d:"M224,44H32A12,12,0,0,0,20,56V192a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A12,12,0,0,0,224,44ZM193.15,68,128,127.72,62.85,68ZM44,188V83.28l75.89,69.57a12,12,0,0,0,16.22,0L212,83.28V188Z"},null,-1)])])):"duotone"===(0,n.unref)(a)?((0,r.openBlock)(),(0,r.createElementBlock)("g",h,[...t[1]||(t[1]=[(0,r.createElementVNode)("path",{d:"M224,56l-96,88L32,56Z",opacity:"0.2"},null,-1),(0,r.createElementVNode)("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"},null,-1)])])):"fill"===(0,n.unref)(a)?((0,r.openBlock)(),(0,r.createElementBlock)("g",p,[...t[2]||(t[2]=[(0,r.createElementVNode)("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48Zm-8,144H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"},null,-1)])])):"light"===(0,n.unref)(a)?((0,r.openBlock)(),(0,r.createElementBlock)("g",f,[...t[3]||(t[3]=[(0,r.createElementVNode)("path",{d:"M224,50H32a6,6,0,0,0-6,6V192a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A6,6,0,0,0,224,50ZM208.58,62,128,135.86,47.42,62ZM216,194H40a2,2,0,0,1-2-2V69.64l86,78.78a6,6,0,0,0,8.1,0L218,69.64V192A2,2,0,0,1,216,194Z"},null,-1)])])):"regular"===(0,n.unref)(a)?((0,r.openBlock)(),(0,r.createElementBlock)("g",m,[...t[4]||(t[4]=[(0,r.createElementVNode)("path",{d:"M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"},null,-1)])])):"thin"===(0,n.unref)(a)?((0,r.openBlock)(),(0,r.createElementBlock)("g",O,[...t[5]||(t[5]=[(0,r.createElementVNode)("path",{d:"M224,52H32a4,4,0,0,0-4,4V192a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A4,4,0,0,0,224,52Zm-10.28,8L128,138.57,42.28,60ZM216,196H40a4,4,0,0,1-4-4V65.09L125.3,147a4,4,0,0,0,5.4,0L220,65.09V192A4,4,0,0,1,216,196Z"},null,-1)])])):(0,r.createCommentVNode)("",!0)],16))}});e.s(["ScalarIconEnvelopeSimple",0,g],774491)},809683,e=>{"use strict";var t=e.i(95952);e.i(761626);var r=e.i(875418),n=e.i(112111),o={key:0},a={key:1},i={key:2},s={key:3},l={key:4},c={key:5},u=(0,r.defineComponent)({name:"ScalarIconWarning",props:{label:{},weight:{}},setup(e){let{bind:u,weight:d}=(0,t.useScalarIcon)(e);return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",(0,r.mergeProps)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},(0,n.unref)(u)),[(0,r.renderSlot)(e.$slots,"default"),"bold"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",o,[...t[0]||(t[0]=[(0,r.createElementVNode)("path",{d:"M240.26,186.1,152.81,34.23h0a28.74,28.74,0,0,0-49.62,0L15.74,186.1a27.45,27.45,0,0,0,0,27.71A28.31,28.31,0,0,0,40.55,228h174.9a28.31,28.31,0,0,0,24.79-14.19A27.45,27.45,0,0,0,240.26,186.1Zm-20.8,15.7a4.46,4.46,0,0,1-4,2.2H40.55a4.46,4.46,0,0,1-4-2.2,3.56,3.56,0,0,1,0-3.73L124,46.2a4.77,4.77,0,0,1,8,0l87.44,151.87A3.56,3.56,0,0,1,219.46,201.8ZM116,136V104a12,12,0,0,1,24,0v32a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,176Z"},null,-1)])])):"duotone"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",a,[...t[1]||(t[1]=[(0,r.createElementVNode)("path",{d:"M215.46,216H40.54C27.92,216,20,202.79,26.13,192.09L113.59,40.22c6.3-11,22.52-11,28.82,0l87.46,151.87C236,202.79,228.08,216,215.46,216Z",opacity:"0.2"},null,-1),(0,r.createElementVNode)("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,
140151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"},null,-1)])])):"fill"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",i,[...t[2]||(t[2]=[(0,r.createElementVNode)("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM120,104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm8,88a12,12,0,1,1,12-12A12,12,0,0,1,128,192Z"},null,-1)])])):"light"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",s,[...t[3]||(t[3]=[(0,r.createElementVNode)("path",{d:"M235.07,189.09,147.61,37.22h0a22.75,22.75,0,0,0-39.22,0L20.93,189.09a21.53,21.53,0,0,0,0,21.72A22.35,22.35,0,0,0,40.55,222h174.9a22.35,22.35,0,0,0,19.6-11.19A21.53,21.53,0,0,0,235.07,189.09ZM224.66,204.8a10.46,10.46,0,0,1-9.21,5.2H40.55a10.46,10.46,0,0,1-9.21-5.2,9.51,9.51,0,0,1,0-9.72L118.79,43.21a10.75,10.75,0,0,1,18.42,0l87.46,151.87A9.51,9.51,0,0,1,224.66,204.8ZM122,144V104a6,6,0,0,1,12,0v40a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,180Z"},null,-1)])])):"regular"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",l,[...t[4]||(t[4]=[(0,r.createElementVNode)("path",{d:"M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"},null,-1)])])):"thin"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",c,[...t[5]||(t[5]=[(0,r.createElementVNode)("path",{d:"M233.34,190.09,145.88,38.22h0a20.75,20.75,0,0,0-35.76,0L22.66,190.09a19.52,19.52,0,0,0,0,19.71A20.36,20.36,0,0,0,40.54,220H215.46a20.36,20.36,0,0,0,17.86-10.2A19.52,19.52,0,0,0,233.34,190.09ZM226.4,205.8a12.47,12.47,0,0,1-10.94,6.2H40.54a12.47,12.47,0,0,1-10.94-6.2,11.45,11.45,0,0,1,0-11.72L117.05,42.21a12.76,12.76,0,0,1,21.9,0L226.4,194.08A11.45,11.45,0,0,1,226.4,205.8ZM124,144V104a4,4,0,0,1,8,0v40a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,180Z"},null,-1)])])):(0,r.createCommentVNode)("",!0)],16))}});e.s(["ScalarIconWarning",0,u],809683)},696569,e=>{"use strict";var t=e.i(95952);e.i(761626);var r=e.i(875418),n=e.i(112111),o={key:0},a={key:1},i={key:2},s={key:3},l={key:4},c={key:5},u=(0,r.defineComponent)({name:"ScalarIconWarningCircle",props:{label:{},weight:{}},setup(e){let{bind:u,weight:d}=(0,t.useScalarIcon)(e);return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("svg",(0,r.mergeProps)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},(0,n.unref)(u)),[(0,r.renderSlot)(e.$slots,"default"),"bold"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",o,[...t[0]||(t[0]=[(0,r.createElementVNode)("path",{d:"M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z"},null,-1)])])):"duotone"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",a,[...t[1]||(t[1]=[(0,r.createElementVNode)("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"},null,-1),(0,r.createElementVNode)("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},null,-1)])])):"fill"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",i,[...t[2]||(t[2]=[(0,r.createElementVNode)("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"},null,-1)])])):"light"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",s,[...t[3]||(t[3]=[(0,r.createElementVNode)("path",{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z"},null,-1)])])):"regular"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",l,[...t[4]||(t[4]=[(0,r.createElementVNode)("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"},null,-1)])])):"thin"===(0,n.unref)(d)?((0,r.openBlock)(),(0,r.createElementBlock)("g",c,[...t[5]||(t[5]=[(0,r.createElementVNode)("path",{d:"M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z"},null,-1)])])):(0,r.createCommentVNode)("",!0)],16))}});e.s(["ScalarIconWarningCircle",0,u],696569)},44185,507412,e=>{"use strict";e.i(293764);var t=e.i(786662);let r={parse:e=>{let r=(0,t.parse)(e,{merge:!0,maxAliasCount:1e4});if("object"!=typeof r)throw Error("Invalid YAML object");return r},parseSafe(e,t){try{return r.parse(e)}catch(e){return"function"==typeof t?t(e):t}},stringify:t.stringify},n={parse:e=>{let t=JSON.parse(e);if("object"!=typeof t)throw Error("Invalid JSON object");return t},parseSafe(e,t){try{return n.parse(e)}catch(e){return"function"==typeof t?t(e):t}},stringify:e=>JSON.stringify(e)};e.s(["formatJsonOrYamlString",0,function(e){let t=e.trim();if("{"!==t[0]&&"["!==t[0])return e;try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}},"parseJsonOrYaml",0,e=>{if("string"!=typeof e)return e;let t=n.parseSafe(e,null);if(t)return t;if(e.length>0&&["{","["].includes(e[0]??""))throw Error("Invalid JSON or YAML");return r.parseSafe(e,e=>{throw Error(e)})}],507412),e.s([],44185)},249310,e=>{"use strict";var t=e.i(781120);e.s(["ScalarSidebar",()=>t.default])},302546,453806,92227,700756,71348,500015,274870,584942,625429,48110,826325,129705,253291,781120,462855,378967,633976,778631,e=>{"use strict";e.i(761626);var t=e.i(875418),r=e.i(80250),n=e.i(112111);let o={get:{short:"GET",colorClass:"text-blue",colorVar:"var(--scalar-color-blue)",backgroundColor:"bg-blue/10"}
140,query:{short:"QUERY",colorClass:"text-query",colorVar:"var(--scalar-color-query)",backgroundColor:"bg-query/10"},post:{short:"POST",colorClass:"text-green",colorVar:"var(--scalar-color-green)",backgroundColor:"bg-green/10"},put:{short:"PUT",colorClass:"text-orange",colorVar:"var(--scalar-color-orange)",backgroundColor:"bg-orange/10"},patch:{short:"PATCH",colorClass:"text-yellow",colorVar:"var(--scalar-color-yellow)",backgroundColor:"bg-yellow/10"},delete:{short:"DEL",colorClass:"text-red",colorVar:"var(--scalar-color-red)",backgroundColor:"bg-red/10"},options:{short:"OPTS",colorClass:"text-purple",colorVar:"var(--scalar-color-purple)",backgroundColor:"bg-purple/10"},head:{short:"HEAD",colorClass:"text-c-2",colorVar:"var(--scalar-color-2)",backgroundColor:"bg-c-2/10"},trace:{short:"TRACE",colorClass:"text-c-2",colorVar:"var(--scalar-color-2)",backgroundColor:"bg-c-2/10"}},a=e=>{let t=e.trim().toLowerCase();return Object.hasOwn(o,t)?o[t]:{short:e.trim(),colorClass:"text-c-2",colorVar:"var(--scalar-color-2)",backgroundColor:"bg-c-2"}};e.s(["REQUEST_METHODS",0,o,"getHttpMethodInfo",0,a],453806);var i=e.i(837786),s=(0,t.defineComponent)({__name:"HttpMethod",props:{as:{},property:{},short:{type:Boolean},method:{}},setup(e){let o=(0,t.computed)(()=>a(String(e.method||""))),s=(0,t.computed)(()=>{if("string"!=typeof e.method||!e.method.trim())return"get";let t=e.method.trim();return(0,i.isHttpMethod)(t.toLowerCase())?t.toLowerCase():t});return(a,l)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.as??"span"),{class:(0,r.normalizeClass)({uppercase:(0,n.unref)(i.isHttpMethod)(s.value)}),style:(0,r.normalizeStyle)({[e.property||"color"]:o.value.colorVar})},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(a.$slots,"default"),(0,t.createTextVNode)(" "+(0,r.toDisplayString)(e.short?o.value.short:s.value),1)]),_:3},8,["class","style"]))}});e.s(["default",0,s],92227);var l=new Set(["document","operation","example","tag","webhook"]),c=(e,t,r)=>r&&1===t.length&&t[0]?.type==="example"&&t[0]?.name==="default"?[]:"reference"===e?t:t.filter(e=>l.has(e.type));e.s(["filterItems",0,c],700756),e.i(555824);var u=e.i(776196),d=(0,u.cva)({base:"relative after:absolute after:inset-x-0 after:block after:bg-blue after:opacity-15 after:pointer-events-none after:rounded",variants:{position:{before:"after:-top-0.5 after:h-0.75",after:"after:-bottom-0.5 after:h-0.75",into:"after:inset-0"}}}),h=(0,n.ref)(null),p=(0,n.ref)(null),f=(e,t)=>{let r=e.__vccOpts||e;for(let[e,n]of t)r[e]=n;return r},m=e.i(95952),O={key:0},g={key:1},v={key:2},y={key:3},b={key:4},S={key:5},x=(0,t.defineComponent)({name:"ScalarIconWebhooksLogo",props:{label:{},weight:{}},setup(e){let{bind:r,weight:o}=(0,m.useScalarIcon)(e);return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)("svg",(0,t.mergeProps)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor"},(0,n.unref)(r)),[(0,t.renderSlot)(e.$slots,"default"),"bold"===(0,n.unref)(o)?((0,t.openBlock)(),(0,t.createElementBlock)("g",O,[...a[0]||(a[0]=[(0,t.createElementVNode)("path",{d:"M192,180H118.71a56,56,0,1,1-104.6-37.46,12,12,0,1,1,21.37,10.92A31.64,31.64,0,0,0,32,168a32,32,0,0,0,64,0,12,12,0,0,1,12-12h84a12,12,0,0,1,0,24Zm0-68a55.9,55.9,0,0,0-18.45,3.12L138.22,57.71a12,12,0,0,0-20.44,12.58l40.94,66.52a12,12,0,0,0,16.52,3.93,32,32,0,1,1,19.68,59.13A12,12,0,0,0,196,223.82a10.05,10.05,0,0,0,1.09,0A56,56,0,0,0,192,112ZM57.71,178.22a12,12,0,0,0,16.51-3.93l40.94-66.52a12,12,0,0,0-3.92-16.51,32,32,0,1,1,45.28-41.8,12,12,0,1,0,21.37-10.92A56,56,0,1,0,89.1,104.32L53.78,161.71A12,12,0,0,0,57.71,178.22Z"},null,-1)])])):"duotone"===(0,n.unref)(o)?((0,t.openBlock)(),(0,t.createElementBlock)("g",g,[...a[1]||(a[1]=[(0,t.createElementVNode)("path",{d:"M128,104a40,40,0,1,1,40-40A40,40,0,0,1,128,104Zm64,24a40,40,0,1,0,40,40A40,40,0,0,0,192,128ZM64,128a40,40,0,1,0,40,40A40,40,0,0,0,64,128Z",opacity:"0.2"},null,-1),(0,t.createElementVNode)("path",{d:"M178.16,176H111.32A48,48,0,1,1,25.6,139.19a8,8,0,0,1,12.8,9.61A31.69,31.69,0,0,0,32,168a32,32,0,0,0,64,0,8,8,0,0,1,8-8h74.16a16,16,0,1,1,0,16ZM64,184a16,16,0,0,0,14.08-23.61l35.77-58.14a8,8,0,0,0-2.62-11,32,32,0,1,1,46.1-40.06A8,8,0,1,0,172,44.79a48,48,0,1,0-75.62,55.33L64.44,152c-.15,0-.29,0-.44,0a16,16,0,0,0,0,32Zm128-64a48.18,48.18,0,0,0-18,3.49L142.08,71.6A16,16,0,1,0,128,80l.44,0,35.78,58.15a8,8,0,0,0,11,2.61A32,32,0,1,1,192,200a8,8,0,0,0,0,16,48,48,0,0,0,0-96Z"},null,-1)])])):"fill"===(0,n.unref)(o)?((0,t.openBlock)(),(0,t.createElementBlock)("g",v,[...a[2]||(a[2]=[(0,t.createElementVNode)("path",{d:"M50.15,160,89.07,92.57l-2.24-3.88a48,48,0,1,1,85.05-44.17,8.17,8.17,0,0,1-3.19,10.4,8,8,0,0,1-11.35-3.72,32,32,0,1,0-56.77,29.3.57.57,0,0,1,.08.13l13.83,23.94a8,8,0,0,1,0,8L77.86,176a16,16,0,0,1-27.71-16Zm141-40H178.81L141.86,56a16,16,0,0,0-27.71,16l34.64,60a8,8,0,0,0,6.92,4h35.63c17.89,0,32.95,14.64,32.66,32.53A32,32,0,0,1,192.31,200a8.23,8.23,0,0,0-8.28,7.33,8,8,0,0,0,8,8.67,48.05,48.05,0,0,0,48-48.93C239.49,140.79,217.48,120,191.19,120ZM208,167.23c-.4-8.61-7.82-15.23-16.43-15.23H114.81a8,8,0,0,0-6.93,4L91.72,184h0a32,32,0,1,1-53.47-35,8.2,8.2,0,0,0-.92-11,8,8,0,0,0-11.72,1.17A47.63,47.63,0,0,0,16,167.54,48,48,0,0,0,105.55,192v0l4.62-8H192A16,16,0,0,0,208,167.23Z"},null,-1)])])):"light"===(0,n.unref)(o)?((0,t.openBlock)(),(0,t.createElementBlock)("g",y,[...a[3]||(a[3]=[(0,t.createElementVNode)("path",{d:"M179.37,174H109.6a46,46,0,1,1-82.4-33.61,6,6,0,0,1,9.6,7.21A33.68,33.68,0,0,0,30,168a34,34,0,0,0,68,0,6,6,0,0,1,6-6h75.37a14,14,0,1,1,0,12ZM64,182a14,14,0,0,0,11.73-21.62l36.42-59.18a6,6,0,0,0-2-8.25,34,34,0,1,1,49-42.57,6,6,0,1,0,11-4.79A46,46,0,1,0,99,99.7L65.52,154.08c-.5-.05-1-.08-1.52-.08a14,14,0,0,0,0,28Zm128-60a46,46,0,0,0-18.8,4L139.73,71.61A14,14,0,1,0,128,78a12.79,12.79,0,0,0,1.52-.09l36.4,59.17a6.05,6.05,0,0,0,3.73,2.69,6,6,0,0,0,4.53-.73A34,34,0,1,1,192,202a6,6,0,0,0,0,12,46,46,0,0,0,0-92Z"},null,-1)])])):"regular"===(0,n.unref)(o)?((0,t.openBlock)(),(0,t.createElementBlock)("g",b,[...a[4]||(a[4]=[(0,t.createElementVNode)("path",{d:"M178.16,176H111.32A48,48,0,1,1,25.6,139.19a8,8,0,0,1,12.8,9.61A31.69,31.69,0,0,0,32,168a32,32,0,0,0,64,0,8,8,0,0,1,8-8h74.16a16,16,0,1,1,0,16ZM64,184a16,16,0,0,0,14.08-23.61l35.77-58.14a8,8,0,0,0-2.62-11,32,32,0,1,1,46.1-40.06A8,8,0,1,0,172,44.79a48,48,0,1,0-75.62,55.33L64.44,152c-.15,0-.29,0-.44,0a16,16,0,0,0,0,32Zm128-64a48.18,48.18,0,0,0-18,3.49L142.08,71.6A16,16,0,1,0,128,80l.44,0,35.78,58.15a8,8,0,0,0,11,2.61A32,32,0,1,1,192,200a8,8,0,0,0,0,16,48,48,0,0,0,0-96Z"},null,-1)])])):"thin"===(0,n.unref)(o)?((0,t.openBlock)(),(0,t.createElementBlock)("g",S,[...a[5]||(a[5]=[(0,t.createElementVNode)("path",{d:"M180.7,172H107.81a44,44,0,1,1-79-30.41,4,4,0,0,1,6.4,4.81A35.67,35.67,0,0,0,28,168a36,36,0,0,0,72,0,4,4,0,0,1,4-4h76.7a12,12,0,1,1,0,8ZM64,180a12,12,0,0,0,9.33-19.54l37.11-60.3a4,4,0,0,0-1.31-5.51A36,36,0,1,1,161,49.58a4,4,0,1,0,7.33-3.19,44,44,0,1,0-66.71,52.83l-35.1,57.05A11.58,11.58,0,0,0,64,156a12,12,0,0,0,0,24Zm128-56a44,44,0,0,0-19.56,4.58l-35.11-57A12,12,0,1,0,128,76a12.24,12.24,0,0,0,2.52-.27L167.63,136a4,4,0,0,0,5.5,1.31A36,36,0,1,1,192,204a4,4,0,0,0,0,8,44,44,0,0,0,0-88Z"},null,-1)])])):(0,t.createCommentVNode)("",!0)],16))}});e.s(["ScalarIconWebhooksLogo",0,x],71348);var k={class:"sr-only"},w=f((0,t.defineComponent)({__name:"SidebarHttpBadge",props:{method:{},active:{type:Boolean},label:{},webhook:{type:Boolean}},setup:e=>(o,i)=>((0,t.openBlock)(),(0,t.createBlock)(s,{class:(0,r.normalizeClass)(["sidebar-heading-type",`sidebar-heading-type--${e.method.toLowerCase()}`,{"sidebar-heading-type-active":e.active}]),method:e.method,property:"--method-color",short:""},{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("span",k,(0,r.toDisplayString)(e.label??"HTTP Method")+":Â ",1),(0,t.renderSlot)(o.$slots,"default",{},()=>[e.webhook?((0,t.openBlock)(),(0,t.createBlock)((0,n.unref)(x),{key:0,style:(0,r.normalizeStyle)({color:(0,n.unref)(a)(e.method).colorVar}),weight:"bold"},null,8,["style"])):(0,t.createCommentVNode)("",!0)],!0)]),_:3},8,["class","method"]))}),[["__scopeId","data-v-5edae08d"]]),$={class:"absolute top-[1lh] right-0.75 flex -translate-y-1/2 opacity-0 peer-hover/button:opacity-100 peer-focus-visible/button:opacity-100 focus-within:opacity-100 hover:opacity-100 has-[&[aria-expanded=true]]:opacity-100"},P=f({},[["render",function(e,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",$,[(0,t.renderSlot)(e.$slots,"default")])}]]),Q=e=>"children"in e&&Array.isArray(e.children)&&e.children.length>0,C=(e,t,r,n)=>Q(t)?(!n||"operation"!==t.type||t.children?.length!==1||t.children[0]?.type!=="example"||t.children[0]?.n
140ame!=="default")&&("client"===e||"reference"===e&&"operation"!==t.type&&"webhook"!==t.type):"client"===e&&!!r&&("document"===t.type||"tag"===t.type),T={path:/[\/\.-]/,property:/[A-Z\_\.-]/},B={key:0},A=(0,t.defineComponent)({inheritAttrs:!1,__name:"ScalarWrappingText",props:{text:{default:""},preset:{default:"path"},regex:{}},setup(e){let n=(0,t.computed)(()=>{let t=RegExp(e.regex??T[e.preset],"g");return e.text.replace(t,"â $&").split("â ").filter(Boolean)});return(e,o)=>((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(n.value,(e,n)=>((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:n},[0!==n?((0,t.openBlock)(),(0,t.createElementBlock)("wbr",B)):(0,t.createCommentVNode)("",!0),(0,t.createTextVNode)((0,r.toDisplayString)(e),1)],64))),128))}});e.s([],500015),e.s(["ScalarWrappingText",0,A],274870);var R=(0,t.defineComponent)({__name:"SidebarItemLabel",props:{item:{},operationTitleSource:{}},setup:e=>(r,o)=>"model"===e.item.type||"example"===e.item.type?((0,t.openBlock)(),(0,t.createBlock)((0,n.unref)(A),{key:0,preset:"property",text:e.item.title},null,8,["text"])):((0,t.openBlock)(),(0,t.createBlock)((0,n.unref)(A),{key:1,text:"path"===e.operationTitleSource&&"path"in e.item?e.item.path:e.item.title},null,8,["text"]))}),E=e.i(79842),V=(0,t.defineComponent)({inheritAttrs:!1,__name:"ScalarSidebar",setup(e){let{cx:o}=(0,E.useBindCx)();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)("aside",(0,r.normalizeProps)((0,t.guardReactiveProps)((0,n.unref)(o)("flex flex-col border-r bg-sidebar-b-1 border-sidebar-border w-72"))),[(0,t.renderSlot)(e.$slots,"default")],16))}}),Z=e.i(700474),j=(0,t.defineComponent)({inheritAttrs:!1,__name:"ScalarSidebarIndent",props:{indent:{default:0},selected:{type:Boolean,default:!1},disabled:{type:Boolean}},setup(e){let o=(0,t.computed)(()=>Array.from({length:e.indent},(e,t)=>t)),{cx:a}=(0,E.useBindCx)();return(i,s)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",(0,r.normalizeProps)((0,t.guardReactiveProps)((0,n.unref)(a)("scalar-sidebar-indent flex justify-center",{"mr-[calc(20px-var(--scalar-sidebar-indent))]":e.indent>0,"scalar-sidebar-indent-selected":e.selected}))),[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.value,(n,a)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:n,class:"relative w-[var(--scalar-sidebar-indent)]"},[s[0]||(s[0]=(0,t.createElementVNode)("div",{class:"scalar-sidebar-indent-border absolute left-2 inset-y-0 w-border bg-sidebar-indent-border"},null,-1)),a===o.value.length-1?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["absolute left-2 inset-y-0 w-border",e.disabled?"":e.selected?"bg-sidebar-indent-border-active":"group-hover/button:bg-sidebar-indent-border-hover"])},null,2)):(0,t.createCommentVNode)("",!0)]))),128))],16))}}),X=(0,Z.default)(j,[["__scopeId","data-v-3e080c68"]]),_=e.i(531282),M={key:0,class:"h-lh *:size-4 mr-1 flex items-center"},q={class:"group/button-label flex-1 min-w-0"},N=(0,t.defineComponent)({inheritAttrs:!1,__name:"ScalarSidebarButton",props:{is:{default:"a"},icon:{type:[Object,Function]},active:{type:Boolean},selected:{type:Boolean},disabled:{type:Boolean},indent:{default:0}},setup(e){let r=(0,u.cva)({base:["group/button peer/button flex items-stretch rounded p-2","font-sidebar text-base/4 text-sidebar-c-2 no-underline wrap-break-word"],variants:{active:{true:"text-sidebar-c-active font-sidebar-active"},disabled:{true:"cursor-auto"},selected:{true:"cursor-auto bg-sidebar-b-active text-sidebar-c-active font-sidebar-active"}},compoundVariants:[{selected:!1,disabled:!1,active:!1,class:"hover:bg-sidebar-b-hover hover:text-sidebar-c-hover"},{selected:!1,disabled:!1,active:!0,class:"hover:bg-sidebar-b-hover"}],defaultVariants:{selected:!1,disabled:!1,active:!1}}),{cx:o}=(0,E.useBindCx)();return(a,i)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.is),(0,t.mergeProps)({"aria-current":e.selected?"page":void 0,type:"button"===e.is?"button":void 0},(0,n.unref)(o)((0,n.unref)(r)({selected:e.selected,disabled:e.disabled,active:e.active}))),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(a.$slots,"indent",{}
140,()=>[(0,t.createVNode)(X,{class:"-my-2",disabled:e.disabled,indent:e.indent,selected:e.selected},null,8,["disabled","indent","selected"])]),e.icon||a.$slots.icon?((0,t.openBlock)(),(0,t.createElementBlock)("div",M,[(0,t.renderSlot)(a.$slots,"icon",{},()=>[e.icon?((0,t.openBlock)(),(0,t.createBlock)((0,n.unref)(_.default),{key:0,icon:e.icon},null,8,["icon"])):(0,t.createCommentVNode)("",!0)])])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("div",q,[(0,t.renderSlot)(a.$slots,"default")]),(0,t.renderSlot)(a.$slots,"aside")]),_:3},16,["aria-current","type"]))}}),D=e.i(783879),U={class:"flex items-center"},z={class:"flex-1 min-w-0 flex items-center text-sm text-sidebar-c-2"},W=(0,t.defineComponent)({inheritAttrs:!1,__name:"ScalarSidebarFooter",setup(e){let{cx:o}=(0,E.useBindCx)();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",(0,r.normalizeProps)((0,t.guardReactiveProps)((0,n.unref)(o)("flex flex-col gap-3 px-3 pb-3 border-sidebar-border"))),[(0,t.renderSlot)(e.$slots,"default"),(0,t.createElementVNode)("div",U,[(0,t.createElementVNode)("div",z,[(0,t.renderSlot)(e.$slots,"description",{},()=>[a[0]||(a[0]=(0,t.createElementVNode)("a",{class:"no-underline hover:underline",href:"https://www.scalar.com",target:"_blank"}," Powered by Scalar ",-1))])]),(0,t.renderSlot)(e.$slots,"toggle",{},()=>[(0,t.createVNode)((0,n.unref)(D.default))])])],16))}});e.s(["default",0,W],584942);var L=e.i(313990),H={class:"sr-only"},I=(0,t.defineComponent)({inheritAttrs:!1,__name:"ScalarSidebarGroupToggle",props:{is:{default:"div"},open:{type:Boolean,default:!1},icon:{type:[Object,Function]}},setup(e){let o=(0,u.cva)({base:"size-4 flex items-center justify-center transition-transform duration-100",variants:{open:{true:"rotate-90"}},defaultVariants:{open:!1}}),{cx:a}=(0,E.useBindCx)();return(i,s)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.is),(0,t.mergeProps)({type:"button"===e.is?"button":void 0},(0,n.unref)(a)((0,n.unref)(o)({open:e.open}))),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(i.$slots,"default",{open:e.open},()=>[e.icon?((0,t.openBlock)(),(0,t.createBlock)((0,n.unref)(_.default),{key:0,icon:e.icon},null,8,["icon"])):((0,t.openBlock)(),(0,t.createBlock)((0,n.unref)(L.ScalarIconCaretRight),{key:1,class:"size-3",weight:"bold"}))]),(0,t.createElementVNode)("span",H,[(0,t.renderSlot)(i.$slots,"label",{open:e.open},()=>[(0,t.createTextVNode)((0,r.toDisplayString)(e.open?"Close":"Open")+" Group ",1)])])]),_:3},16,["type"]))}}),Y=["aria-expanded"],G=(0,t.defineComponent)({inheritAttrs:!1,__name:"ScalarSidebarGroupToggleButton",props:{open:{type:Boolean,default:!1},selected:{type:Boolean}},setup(e){let r=(0,u.cva)({base:["absolute top-[1lh] right-1.25 -translate-y-1/2","rounded p-0.75 text-sidebar-c-2"],variants:{selected:{true:"hover:bg-sidebar-b-1 hover:text-sidebar-c-1",false:"hover:bg-sidebar-b-hover hover:text-sidebar-c-hover"}},defaultVariants:{selected:!1}}),{cx:o}=(0,E.useBindCx)();return(a,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("button",(0,t.mergeProps)({"aria-expanded":e.open,type:"button"},(0,n.unref)(o)((0,n.unref)(r)({selected:e.selected}))),[(0,t.renderSlot)(a.$slots,"default",{open:e.open},()=>[(0,t.createVNode)(I,{open:e.open},(0,t.createSlots)({_:2},[a.$slots.label?{name:"label",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(a.$slots,"label",{open:e.open})]),key:"0"}:void 0]),1032,["open"])])],16,Y))}}),F=(0,t.defineComponent)({inheritAttrs:!1,__name:"ScalarSidebarGroupToggleSpacer",setup(e){let{cx:o}=(0,E.useBindCx)();return(e,a)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",(0,r.normalizeProps)((0,t.guardReactiveProps)((0,n.unref)(o)("size-4"))),null,16))}}),K=Symbol(),J=(e={})=>{let{increment:r=!1,reset:n=!1}=e,o=(0,t.inject)(K,0);return n?(0,t.provide)(K,0):r&&o<6?(0,t.provide)(K,o+1):(0,t.provide)(K,o),{level:o}},ee=(0,t.defineComponent)({inheritAttrs:!1,__name:"ScalarSidebarItem",props:{is:{},icon:{type:[Object,Function]},active:{type:Boolean},selected:{type:Boolean},disabled:{type:Boolean},indent:{}},setup(e){let{level:o}=J(),{cx:a}=(0,E.useBindCx)();return(i,s)=>((0,t.openBlock)(),(0,t.createElementBlock)("li",(0,r.normalizeProps)((0,t.guardReactiveProps)((0,n.unref)(a)("group/item flex flex-col text-base"))),[(0,t.renderSlot)(i.$slots,"before"),(0,t.renderSlot)(i.$slots,"button",{level:(0,n.unref)(o)},()=>[(0,t.createVNode)(N,(0,t.mergeProps)(e,{indent:e.indent??(0,n.unref)(o)}),(0,t.createSlots)({_:2},[i.$slots.default?{name:"default",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(i.$slots,"default")]),key:"0"}:void 0,i.$slots.icon?{name:"icon",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(i.$slots,"icon")]),key:"1"}:void 0,i.$slots.aside?{name:"aside",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(i.$slots,"aside")]),key:"2"}:void 0]),1040,["indent"])]),(0,t.renderSlot)(i.$slots,"after")],16))}}),et=(0,t.defineComponent)({__name:"ScalarSidebarLoading",props:{items:{default:4}},setup:e=>(r,n)=>((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.items,e=>
140((0,t.openBlock)(),(0,t.createBlock)(ee,{key:e,class:"pointer-events-none"},{default:(0,t.withCtx)(()=>[...n[0]||(n[0]=[(0,t.createElementVNode)("div",{class:"group/button-loading bg-sidebar-c-2/15 rounded-lg animate-pulse h-lh w-full box-content py-px -my-px"},null,-1)])]),_:1}))),128))}),er={class:"group/group-button relative flex flex-col text-base"},en={key:0,class:"group/items flex flex-col gap-px"},eo=(0,t.defineComponent)({inheritAttrs:!1,__name:"ScalarSidebarGroup",props:(0,t.mergeModels)({is:{default:"li"},icon:{type:[Object,Function]},active:{type:Boolean},selected:{type:Boolean},disabled:{type:Boolean},indent:{},controlled:{type:Boolean},discrete:{type:Boolean},loading:{type:Boolean}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:(0,t.mergeModels)(["click","toggle"],["update:open"]),setup(e,{emit:o}){let a=(0,t.useModel)(e,"open"),{level:i}=J({increment:!0}),{cx:s}=(0,E.useBindCx)(),l=t=>{o("click",t),e.controlled||e.discrete||(a.value=!a.value)},c=t=>{o("toggle",t),!e.controlled&&e.discrete&&(a.value=!a.value)};return(o,u)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.is),(0,r.normalizeProps)((0,t.guardReactiveProps)((0,n.unref)(s)("group/item flex flex-col gap-px"))),{default:(0,t.withCtx)(()=>[(0,t.createElementVNode)("div",er,[(0,t.renderSlot)(o.$slots,"before",{open:a.value}),(0,t.renderSlot)(o.$slots,"button",{level:(0,n.unref)(i),open:a.value},()=>[(0,t.createVNode)(N,{is:"button",active:e.active,"aria-expanded":e.discrete?void 0:a.value,disabled:e.disabled,icon:e.icon,indent:(0,n.unref)(i),selected:e.selected,onClick:l},(0,t.createSlots)({indent:(0,t.withCtx)(()=>[(0,t.createVNode)(X,{class:"mr-0 -my-2",indent:(0,n.unref)(i),selected:e.selected},null,8,["indent","selected"])]),aside:(0,t.withCtx)(()=>[(0,t.renderSlot)(o.$slots,"aside",{open:a.value}),e.discrete?((0,t.openBlock)(),(0,t.createBlock)(F,{key:0})):(0,t.renderSlot)(o.$slots,"toggle",{open:a.value},()=>[(0,t.createVNode)(I,{class:"text-sidebar-c-2",open:a.value},null,8,["open"])],void 0,1)]),default:(0,t.withCtx)(()=>[(0,t.renderSlot)(o.$slots,"default",{open:a.value})]),_:2},[o.$slots.icon?{name:"icon",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(o.$slots,"icon",{open:a.value})]),key:"0"}:void 0]),1032,["active","aria-expanded","disabled","icon","indent","selected"]),e.discrete?((0,t.openBlock)(),(0,t.createBlock)(G,{key:0,open:a.value,selected:e.selected,onClick:c},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(o.$slots,"toggle",{open:a.value},()=>[(0,t.createVNode)(I,{open:a.value},{label:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,r.toDisplayString)(a.value?"Close":"Open")+" ",1),(0,t.renderSlot)(o.$slots,"default",{open:a.value})]),_:3},8,["open"])])]),_:3},8,["open","selected"])):(0,t.createCommentVNode)("",!0)]),(0,t.renderSlot)(o.$slots,"after",{open:a.value})]),a.value?((0,t.openBlock)(),(0,t.createElementBlock)("ul",en,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(et,{key:0})):(0,t.renderSlot)(o.$slots,"items",{open:a.value},void 0,void 0,1)])):(0,t.createCommentVNode)("",!0)]),_:3},16))}}),ea=Symbol(),ei=(0,t.defineComponent)({inheritAttrs:!1,__name:"ScalarSidebarItems",props:{is:{default:"ul"}},setup(e){let o,a,{open:i}=(o=(0,n.shallowReactive)(new Set),a=(0,t.computed)(()=>{for(let e of o)if(e())return!0;return!1}),(0,t.provide)(ea,o),{open:a}),{cx:s}=(0,E.useBindCx)();return(o,a)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.is),(0,r.normalizeProps)((0,t.guardReactiveProps)((0,n.unref)(s)("group/items relative flex flex-col p-(--scalar-sidebar-padding) gap-px transition-transform duration-300",(0,n.unref)(i)?"-translate-x-full":"translate-x-0"))),{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(o.$slots,"default")]),_:3},16))}}),es=(0,t.defineComponent)({inheritAttrs:!1,__name:"ScalarSidebarSpacer",props:{indent:{default:0}},setup(e){let{cx:o}=(0,E.useBindCx)();return(a,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("div",(0,r.normalizeProps)((0,t.guardReactiveProps)((0,n.unref)(o)("flex px-2 h-1"))),[(0,t.createVNode)(X,{indent:e.indent},null,8,["indent"])],16))}}),el=e.i(562649);e.i(313583);var ec={key:0},eu={key:1},ed={key:2}
140,eh={key:3},ep={key:4},ef={key:5},em=e.i(273865),eO={class:"flex-1 text-start leading-none"},eg={key:0,class:"uppercase text-sidebar-c-2 leading-none py-1 px-1.25 rounded text-xs font-medium border"},ev={class:"sr-only"},ey={dir:"ltr"},eb=(0,t.defineComponent)({inheritAttrs:!1,__name:"ScalarSidebarSearchButton",props:{shortcutLabel:{default:"Keyboard Shortcut:"}},setup(e){let{cx:o}=(0,E.useBindCx)();return(a,i)=>((0,t.openBlock)(),(0,t.createElementBlock)("button",(0,t.mergeProps)({type:"button"},(0,n.unref)(o)("flex items-center rounded border text-base h-8 gap-1 pl-2 pr-1","bg-sidebar-b-search border-sidebar-border-search text-sidebar-c-search")),[(0,t.createVNode)((0,n.unref)(em.ScalarIconMagnifyingGlass),{"aria-hidden":"true",class:"size-4"}),(0,t.createElementVNode)("span",eO,[(0,t.renderSlot)(a.$slots,"default",{},()=>[i[0]||(i[0]=(0,t.createTextVNode)("Search...",-1))])]),a.$slots.shortcut?((0,t.openBlock)(),(0,t.createElementBlock)("span",eg,[(0,t.createElementVNode)("span",ev,(0,r.toDisplayString)(e.shortcutLabel),1),(0,t.createElementVNode)("kbd",ey,[(0,t.renderSlot)(a.$slots,"shortcut")])])):(0,t.createCommentVNode)("",!0)],16))}});e.s(["default",0,eb],625429);var eS=e.i(698430),ex=e.i(606235),ek=e.i(150413),ew=["aria-label"],e$=(0,t.defineComponent)({inheritAttrs:!1,__name:"ScalarSidebarSearchInput",props:(0,t.mergeModels)({autofocus:{type:Boolean},loader:{},label:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(e){let o=(0,n.ref)(null),a=(0,t.useModel)(e,"modelValue");function i(){a.value="",o.value&&o.value.focus()}let{stylingAttrsCx:s,otherAttrs:l}=(0,E.useBindCx)();return(0,t.onMounted)(()=>e.autofocus&&o.value?.focus()),(c,u)=>((0,t.openBlock)(),(0,t.createElementBlock)("label",(0,r.normalizeProps)((0,t.guardReactiveProps)((0,n.unref)(s)("flex items-center rounded border text-base has-[:focus-visible]:bg-sidebar-b-1 has-[:focus-visible]:outline h-8 gap-1 pl-2 pr-1.5","bg-sidebar-b-search border-sidebar-border-search",a.value?"text-sidebar-c-1":"text-sidebar-c-search"))),[(0,t.createVNode)((0,n.unref)(em.ScalarIconMagnifyingGlass),{class:"text-sidebar-c-search size-4"}),(0,t.withDirectives)((0,t.createElementVNode)("input",(0,t.mergeProps)({ref_key:"inputRef",ref:o,"onUpdate:modelValue":u[0]||(u[0]=e=>a.value=e),"aria-label":e.label??"Enter search query",autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:"flex-1 appearance-none rounded border-none bg-transparent outline-none",placeholder:"Search...",spellcheck:"false",type:"search"},(0,n.unref)(l)),null,16,ew),[[el.vModelText,a.value]]),e.loader&&e.loader.isActive?((0,t.openBlock)(),(0,t.createBlock)((0,n.unref)(eS.default),{key:0,class:"mr-3 self-center",loader:e.loader,size:"md"},null,8,["loader"])):a.value?((0,t.openBlock)(),(0,t.createBlock)((0,n.unref)(ex.default),{key:1,class:"p-px size-4",icon:(0,n.unref)(ek.ScalarIconX),label:"Clear Search",weight:"bold",onClick:(0,el.withModifiers)(i,["stop","prevent"])},null,8,["icon"])):(0,t.createCommentVNode)("",!0)],16))}});e.s(["default",0,e$],48110);var eP={class:"flex flex-col gap-px"},eQ=(0,t.defineComponent)({inheritAttrs:!1,__name:"ScalarSidebarSection",props:{is:{default:"li"},icon:{type:[Object,Function]},active:{type:Boolean},selected:{type:Boolean},disabled:{type:Boolean},indent:{},loading:{type:Boolean}},setup(e){let{level:o}=J({increment:!1}),{cx:a}=(0,E.useBindCx)();return(i,s)=>((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(e.is),(0,r.normalizeProps)((0,t.guardReactiveProps)((0,n.unref)(a)("group/item group/sidebar-section contents"))),{default:(0,t.withCtx)(()=>[(0,t.createVNode)(es,{class:"group/spacer-before h-3",indent:(0,n.unref)(o)},null,8,["indent"]),i.$slots.default?((0,t.openBlock)(),(0,t.createBlock)(N,{key:0,is:"div",class:"text-sm/4 py-1.75 font-bold",disabled:"",icon:e.icon,indent:(0,n.unref)(o)},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(i.$slots,"default")]),_:3},8,["icon","indent"])):(0,t.createCommentVNode)("",!0),(0,t.createElementVNode)("ul",eP,[e.loading?((0,t.openBlock)(),(0,t.createBlock)(et,{key:0})):(0,t.renderSlot)(i.$slots,"items",{},void 0,void 0,1)]),(0,t.createVNode)(es,{class:"group/spacer-after h-3",indent:(0,n.unref)(o)},null,8,["indent"])]),_:3},16))}});e.s([],826325),e.s(["ScalarSidebarButton",0,N],129705),e.s(["ScalarSidebarSection",0,eQ],253291);var eC=e.i(369288),eT=Object.assign({
140"./icons/basic-shape-diamond.svg":()=>e.A(848122),
140"./icons/basic-shape-hexagon.svg":()=>e.A(304620),
140"./icons/basic-shape-primary-circle-ellipse-round.svg":()=>e.A(520229),
140"./icons/basic-shape-primary-square-rectangle.svg":()=>e.A(657872),
140"./icons/basic-shape-shield.svg":()=>e.A(369697),
140"./icons/computer-device-desktop-monitor.svg":()=>e.A(697063),
140"./icons/computer-device-desktop.svg":()=>e.A(380404),
140"./icons/computer-device-laptop.svg":()=>e.A(813037),
140"./icons/computer-device-mobile-phone-android-samsung-back.svg":()=>e.A(536394),
140"./icons/computer-device-mobile-phone-android-samsung.svg":()=>e.A(556940),
140"./icons/computer-device-mobile-phone-iphone-x-back.svg":()=>e.A(170979),
140"./icons/computer-device-mobile-phone-iphone-x.svg":()=>e.A(763054),
140"./icons/computer-device-mobile-tablet-touch.svg":()=>e.A(758174),
140"./icons/computer-device-mobile-tablet.svg":()=>e.A(310947),
140"./icons/computer-device-network-ethernet-cat6.svg":()=>e.A(982175),
140"./icons/computer-device-network-lan-www.svg":()=>e.A(515689),
140"./icons/computer-device-network-wifi-connection.svg":()=>e.A(275442),
140"./icons/computer-device-network-wifi-router.svg":()=>e.A(943055),
140"./icons/ecology-science-erlenmeyer-flask.svg":()=>e.A(134586),
140"./icons/image-flash-lightning.svg":()=>e.A(406189),
140"./icons/image-picture-flower.svg":()=>e.A(300234),
140"./icons/interface-alert-exclamation-diamond.svg":()=>e.A(319152),
140"./icons/interface-alert-exclamation-triangle-warning.svg":()=>e.A(183092),
140"./icons/interface-alert-information-circle.svg":()=>e.A(182119),
140"./icons/interface-award-crown.svg":()=>e.A(549065),
140"./icons/interface-bookmark-tag.svg":()=>e.A(297902),
140"./icons/interface-bookmark.svg":()=>e.A(114050),
140"./icons/interface-calendar-date-one.svg":()=>e.A(468557),
140"./icons/interface-content-book-open-pages.svg":()=>e.A(487687),
140"./icons/interface-content-book-page.svg":()=>e.A(235183),
140"./icons/interface-content-file.svg":()=>e.A(496575),
140"./icons/interface-content-folder.svg":()=>e.A(449259),
140"./icons/interface-copy-clipboard.svg":()=>e.A(169738),
140"./icons/interface-edit-attachment.svg":()=>e.A(25057),
140"./icons/interface-edit-binocular.svg":()=>e.A(909794),
140"./icons/interface-edit-magic-wand.svg":()=>e.A(321132),
140"./icons/interface-edit-tool-paint-roller.svg":()=>e.A(884),
140"./icons/interface-edit-tool-pencil.svg":()=>e.A(882242),
140"./icons/interface-favorite-award.svg":()=>e.A(934609),
140"./icons/interface-favorite-flag.svg":()=>e.A(847840),
140"./icons/interface-favorite-heart.svg":()=>e.A(943805),
140"./icons/interface-favorite-star.svg":()=>e.A(662172),
140"./icons/interface-favorite-stars-sparkles.svg":()=>e.A(31525),
140"./icons/interface-hierarchy-flowchart.svg":()=>e.A(520691),
140"./icons/interface-home-house.svg":()=>e.A(498843),
140"./icons/interface-hyperlink.svg":()=>e.A(77444),
140"./icons/interface-lighting-brightness.svg":()=>e.A(960523),
140"./icons/interface-lock-closed.svg":()=>e.A(100994),
140"./icons/interface-lock-open-unlock.svg":()=>e.A(715234),
140"./icons/interface-login-key.svg":()=>e.A(795570),
140"./icons/interface-search.svg":()=>e.A(609005),
140"./icons/interface-setting-cog.svg":()=>e.A(399950),
140"./icons/interface-share-megaphone-bullhorn.svg":()=>e.A(377712),
140"./icons/interface-share-rocket.svg":()=>e.A(824877),
140"./icons/interface-share-satellite.svg":()=>e.A(794058),
140"./icons/interface-share-space-ship.svg":()=>e.A(500797),
140"./icons/interface-share.svg":()=>e.A(306341),
140"./icons/interface-signal-square.svg":()=>e.A(368497),
140"./icons/interface-time-clock-circle.svg":()=>e.A(860490),
140"./icons/interface-time-hour-glass.svg":()=>e.A(376202),
140"./icons/interface-users-multiple.svg":()=>e.A(72979),
140"./icons/interface-weather-moon.svg":()=>e.A(303011),
140"./icons/mail-chat-bubble-square.svg":()=>e.A(773956),
140"./icons/mail-send-email-paper-airplane.svg":()=>e.A(307154),
140"./icons/mail-send-envelope.svg":()=>e.A(274012),
140"./icons/money-cashier-receipt.svg":()=>e.A(138176),
140"./icons/money-currency-dollar-pay.svg":()=>e.A(381508),
140"./icons/money-graph-arrow-increase.svg":()=>e.A(297961),
140"./icons/money-graph-bar-chart-increase.svg":()=>e.A(225129),
140"./icons/nature-ecology-leaf.svg":()=>e.A(732511),
140"./icons/phone-telephone.svg":()=>e.A(573998),
140"./icons/programming-bug.svg":()=>e.A(627544),
140"./icons/programming-cloud.svg":()=>e.A(211832),
140"./icons/programming-computer-database-server.svg":()=>e.A(971046),
140"./icons/programming-computer-database.svg":()=>e.A(673390),
140"./icons/programming-module-four-layout.svg":()=>e.A(648734),
140"./icons/programming-module-three.svg":()=>e.A(337878),
140"./icons/programming-module.svg":()=>e.A(897931),
140"./icons/programming-script-code.svg":()=>e.A(521669),
140"./icons/shopping-cart.svg":()=>e.A(755484),
140"./icons/shopping-gift-present.svg":()=>e.A(660128),
140"./icons/shopping-shipping-box-parcel-package.svg":()=>e.A(28826),
140"./icons/tag-new-circle.svg":()=>e.A(725845),
140"./icons/travel-map-earth-globe.svg":()=>e.A(311939)
140}),eB=Object.assign({"./icons/interface-content-folder.svg":eC.interface_content_folder_exports})["./icons/interface-content-folder.svg"];Object.keys(eT).map(e=>e.replace("./icons/","").replace(".svg","")).map(e=>({src:e,title:e.replaceAll("-"," "),tags:[]}));var eA=new Map;async function eR(e){let t=eA.get(e);if(t)return t;let r=eT[`./icons/${e}.svg`];if(!r)return;let o=await r(),a=(0,n.markRaw)(o.default??o);return eA.set(e,a),a}eB?.default&&eA.set("interface-content-folder",(0,n.markRaw)(eB.default));var eE=(0,t.defineComponent)({__name:"LibraryIcon",props:{src:{}},setup(e){let r=(0,n.shallowRef)();return(0,t.watchEffect)(async()=>{r.value=await eR(e.src)}),(e,n)=>r.value?((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)(r.value),{key:0})):(0,t.createCommentVNode)("",!0)}}),eV={key:0,class:"line-through"},eZ={key:0,class:"line-through"},ej=(0,t.defineComponent)({__name:"SidebarItem",props:{item:{},layout:{},isSelected:{type:Function},isExpanded:{type:Function},options:{},getHref:{type:Function},isDraggable:{},isDroppable:{type:Function}},emits:["selectItem","onDragEnd","toggleGroup"],setup(e,{emit:o}){let a=(0,t.useSlots)(),i=e=>("isDeprecated"in e&&e.isDeprecated)??!1,s=(e,t)=>{o("onDragEnd",e,t)},{draggableAttrs:l,draggableEvents:u}=function(e){var r;let o,{ceiling:a=.8,floor:i=.2,isDraggable:s=!0,isDroppable:l=!0,parentIds:c=[],id:u,onDragStart:f,onDragEnd:m}=e,O=(0,t.computed)(()=>c.at(-1)??null),g=(r=e=>{let t;if(!h.value||h.value.id===u||c.includes(h.value?.id??""))return;let r=p.value?.offset,o=e.target.offsetHeight,s=i*o,d=a*o,f=null;e.offsetY<=0&&r&&"after"!==r?f=r:e.offsetY<=s?f="before":e.offsetY>=d?f="after":e.offsetY>s&&e.offsetY<d&&(f="into"),t=f,("function"==typeof l?l(h.value,{id:u,parentId:O.value,offset:t}):(0,n.toValue)(l))&&(p.value={id:u,parentId:O.value,offset:f})},o=!1,(...e)=>{o||(r(...e),o=!0,setTimeout(()=>o=!1,25))}),v=(0,t.computed)(()=>{let e=u===p.value?.id?p.value.offset:void 0;return e?d({position:e}):""});return{draggableAttrs:(0,t.computed)(()=>({class:v.value||void 0,draggable:!!(0,n.toValue)(s)||void 0})),draggableEvents:{dragend:()=>{if(!p.value||!h.value)return;let e={...h.value},t={...p.value};h.value=null,p.value=null,document.querySelectorAll("[data-dragging]").forEach(e=>e.removeAttribute("data-dragging")),e.id!==t.id&&m?.(e,t)},dragover:e=>{e.preventDefault(),e.stopPropagation(),g(e)},dragstart:e=>{e.stopPropagation(),(e=>{if(!(0,n.toValue)(s)||!e.dataTransfer||!(e.target instanceof HTMLElement))return;e.target.setAttribute("data-dragging","true"),e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="move";let t={id:u,parentId:O.value};h.value=t,f?.(t)})(e)}},draggingItem:h,hoveredItem:p}}({id:e.item.id,isDraggable:e.isDraggable,isDroppable:e.isDroppable,onDragEnd:s}),f=(0,t.computed)(()=>Q(e.item)?c(e.layout,e.item.children,e.options?.hideOperationDefaultExamples):[]),m=(0,t.computed)(()=>e.getHref?.(e.item)||void 0),O=(0,t.computed)(()=>!!m.value||"reference"===e.layout&&"text"===e.item.type),g=t=>{if(m.value){if((t.target instanceof Element?t.target.closest("a"):null)?.getAttribute("href")!==m.value||t.defaultPrevented||!(0===t.button&&!t.metaKey&&!t.ctrlKey&&!t.shiftKey&&!t.altKey))return;t.preventDefault()}o("selectItem",e.item.id)};return(c,d)=>{let h,p=(0,t.resolveComponent)("SidebarItem",!0);return f.value.length>0&&"isGroup"in(h=e.item)&&h.isGroup?((0,t.openBlock)(),(0,t.createBlock)((0,n.unref)(eQ),(0,t.mergeProps)({key:0,"data-sidebar-id":e.item.id},(0,n.unref)(l),(0,t.toHandlers)((0,n.unref)(u))),{items:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(f.value,r=>((0,t.openBlock)(),(0,t.createBlock)(p,{key:r.id,getHref:e.getHref,isDraggable:e.isDraggable,isDroppable:e.isDroppable,isExpanded:e.isExpanded,isSelected:e.isSelected,item:r,layout:e.layout,options:e.options,onOnDragEnd:s,onSelectItem:d[0]||(d[0]=e=>o("selectItem",e)),onToggleGroup:d[1]||(d[1]=e=>o("toggleGroup",e))},(0,t.createSlots)({_:2},[a.decorator?{name:"decorator",fn:(0,t.withCtx)(e=>[(0,t.renderSlot)(c.$slots,"decorator",(0,t.mergeProps)({ref_for:!0},e))]),key:"0"}:void 0,a.empty?{name:"empty",fn:(0,t.withCtx)(e=>[(0,t.renderSlot)(c.$slots,"empty",(0,t.mergeProps)({ref_for:!0},e))]),key:"1"}:void 0,a.icon?{name:"icon",fn:(0,t.withCtx)(e=>[(0,t.renderSlot)(c.$slots,"icon",(0,t.mergeProps)({ref_for:!0},e))]),key:"2"}:void 0]),1032,["getHref","isDraggable","isDroppable","isExpanded","isSelected","item","layout","options"]))),128))]),default:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,r.toDisplayString)(e.item.title)+" ",1)]),_:3},16,["data-sidebar-id"])):(0,n.unref)(C)(e.layout,e.item,void 0!==a.empty,e.options?.hideOperationDefaultExamples??!1)?((0,t.openBlock)(),(0,t.createBlock)((0,n.unref)(eo),(0,t.mergeProps)({key:1,active:e.isSelected(e.item.id),class:"relative",controlled:"","data-sidebar-id":e.item.id},(0,n.unref)(l),{discrete:O.value,open:e.isExpanded(e.item.id)},(0,t.toHandlers)((0,n.unref)(u))),(0,t.createSlots)({button:(0,t.withCtx)(({open:s,level:l})=>[(0,t.createVNode)((0,n.unref)(N),{is:m.value?"a":"button",active:e.isSelected(e.item.id),"aria-expanded":O.value?void 0:s,href:m.value,indent:l,onClick:g},(0,t.createSlots)({indent:(0,t.withCtx)(()=>[(0,t.createVNode)((0,n.unref)(X),{class:"-my-2 mr-0",indent:l},null,8,["indent"])]),aside:(0,t.withCtx)(()=>["method"in e.item?((0,t.openBlock)(),(0,t.createBlock)(w,{key:0,active:e.isSelected(e.item.id),class:(0,r.normalizeClass)(["ml-2 h-4 self-start",{"group-hover/button:opacity-0 group-focus-visible/button:opacity-0 group-has-[~*_[aria-expanded=true]]/button:opacity-0 group-has-[~*:focus-within]/button:opacity-0 group-has-[~*:hover]/button:opacity-0":a.decorator}]),label:e.options?.labels?.httpMethod,method:e.item.method,webhook:"webhook"===e.item.type},null,8,["active","class","label","method","webhook"])):(0,t.createCommentVNode)("",!0),O.value?((0,t.openBlock)(),(0,t.createBlock)((0,n.unref)(F),{key:1})):"method"in e.item?(0,t.createCommentVNode)("",!0):((0,t.openBlock)(),(0,t.createBlock)((0,n.unref)(I),{key:2,class:"text-sidebar-c-2",open:s},{label:(0,t.withCtx)(()=>[(0,t.createTextVNode)((0,r.toDisplayString)(s?e.options?.labels?.closeGroup??"Close Group":e.options?.labels?.openGroup??"Open Group"),1)]),_:2},1032,["open"]))]),default:(0,t.withCtx)(()=>[i(e.item)?((0,t.openBlock)(),(0,t.createElementBlock)("span",eV,[(0,t.createVNode)(R,{item:e.item,operationTitleSource:e.options?.operationTitleSource},null,8,["item","operationTitleSource"])])):((0,t.openBlock)(),(0,t.createBlock)(R,{key:1,item:e.item,operationTitleSource:e.options?.operationTitleSource},null,8,["item","operationTitleSource"]))]),_:2},["document"===e.item.type?{name:"icon",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(c.$slots,"icon",{item:e.item,open:s},()=>[(0,t.createVNode)((0,n.unref)(eE),{class:"block",src:"icon"in e.item&&e.item.icon||"interface-content-folder"},null,8,["src"])])]),key:"0"}:void 0]),1032,["is","active","aria-expanded","href","indent"]),O.value?((0,t.openBlock)(),(0,t.createBlock)((0,n.unref)(G),{key:0,open:s,onClick:d[2]||(d[2]=()=>o("toggleGroup",e.item.id))},{label:(0,t.withCtx)(()=>{let n;return[(0,t.createTextVNode)((0,r.toDisplayString)((n=s?e.options?.labels?.closeGroup??"Close Group":e.options?.labels?.openGroup??"Open Group",e.item.title?`${n} - ${e.item.title}`:n)),1)]}),_:2},1032,["open"])):(0,t.createCommentVNode)("",!0)]),items:(0,t.withCtx)(()=>[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(f.value,r=>((0,t.openBlock)(),(0,t.createBlock)(p,{key:r.id,getHref:e.getHref,isDraggable:e.isDraggable,isDroppable:e.isDroppable,isExpanded:e.isExpanded,isSelected:e.isSelected,item:r,layout:e.layout,options:e.options,parentIds:[],onOnDragEnd:s,onSelectItem:d[3]||(d[3]=e=>
140o("selectItem",e)),onToggleGroup:d[4]||(d[4]=e=>o("toggleGroup",e))},(0,t.createSlots)({_:2},[a.decorator?{name:"decorator",fn:(0,t.withCtx)(e=>[(0,t.renderSlot)(c.$slots,"decorator",(0,t.mergeProps)({ref_for:!0},e))]),key:"0"}:void 0,a.empty?{name:"empty",fn:(0,t.withCtx)(e=>[(0,t.renderSlot)(c.$slots,"empty",(0,t.mergeProps)({ref_for:!0},e))]),key:"1"}:void 0,a.icon?{name:"icon",fn:(0,t.withCtx)(e=>[(0,t.renderSlot)(c.$slots,"icon",(0,t.mergeProps)({ref_for:!0},e))]),key:"2"}:void 0]),1032,["getHref","isDraggable","isDroppable","isExpanded","isSelected","item","layout","options"]))),128)),a.empty&&(e.item.children?.length??0)===0?(0,t.renderSlot)(c.$slots,"empty",{item:e.item},void 0,void 0,0):(0,t.createCommentVNode)("",!0)]),_:2},[a.decorator?{name:"after",fn:(0,t.withCtx)(()=>[(0,t.createVNode)(P,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(c.$slots,"decorator",{item:e.item})]),_:3})]),key:"0"}:void 0]),1040,["active","data-sidebar-id","discrete","open"])):((0,t.openBlock)(),(0,t.createBlock)((0,n.unref)(ee),(0,t.mergeProps)({key:2},(0,n.unref)(l),{class:"relative","data-sidebar-id":e.item.id},(0,t.toHandlers)((0,n.unref)(u)),{onClick:g}),(0,t.createSlots)({button:(0,t.withCtx)(({level:o})=>[(0,t.createVNode)((0,n.unref)(N),{is:m.value?"a":"button",href:m.value,indent:o,selected:e.isSelected(e.item.id)},(0,t.createSlots)({default:(0,t.withCtx)(()=>[i(e.item)?((0,t.openBlock)(),(0,t.createElementBlock)("span",eZ,[(0,t.createVNode)(R,{item:e.item,operationTitleSource:e.options?.operationTitleSource},null,8,["item","operationTitleSource"])])):((0,t.openBlock)(),(0,t.createBlock)(R,{key:1,item:e.item,operationTitleSource:e.options?.operationTitleSource},null,8,["item","operationTitleSource"]))]),_:2},[a.icon?{name:"icon",fn:(0,t.withCtx)(()=>[(0,t.renderSlot)(c.$slots,"icon",{item:e.item,open:!0})]),key:"0"}:void 0,"method"in e.item?{name:"aside",fn:(0,t.withCtx)(()=>[(0,t.createVNode)(w,{active:e.isSelected(e.item.id),class:(0,r.normalizeClass)(["ml-2 h-4 self-start",{"group-hover/button:opacity-0 group-focus-visible/button:opacity-0 group-has-[~*_[aria-expanded=true]]/button:opacity-0 group-has-[~*:focus-within]/button:opacity-0 group-has-[~*:hover]/button:opacity-0":a.decorator}]),label:e.options?.labels?.httpMethod,method:e.item.method,webhook:"webhook"===e.item.type},null,8,["active","class","label","method","webhook"])]),key:"1"}:void 0]),1032,["is","href","indent","selected"])]),_:2},[a.decorator?{name:"after",fn:(0,t.withCtx)(()=>[(0,t.createVNode)(P,null,{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(c.$slots,"decorator",{item:e.item})]),_:3})]),key:"0"}:void 0]),1040,["data-sidebar-id"]))}}}),eX=(0,t.defineComponent)({__name:"ScalarSidebar",props:{layout:{},items:{},isSelected:{type:Function},isExpanded:{type:Function},options:{},indent:{default:20},getHref:{type:Function},isDraggable:{},isDroppable:{type:Function}},emits:["reorder","selectItem","toggleGroup"],setup(e,{emit:o}){let a=(0,t.useSlots)(),i=(e,t)=>{o("reorder",e,t)};return(s,l)=>((0,t.openBlock)(),(0,t.createBlock)((0,n.unref)(V),{class:"flex min-h-0 flex-col",style:(0,r.normalizeStyle)({"--scalar-sidebar-indent":e.indent+"px"})},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(s.$slots,"header"),(0,t.renderSlot)(s.$slots,"default",{},()=>[(0,t.createVNode)((0,n.unref)(ei),{class:"custom-scroll"},{default:(0,t.withCtx)(()=>[(0,t.renderSlot)(s.$slots,"before"),((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)((0,n.unref)(c)(e.layout,e.items),r=>((0,t.openBlock)(),(0,t.createBlock)(ej,{key:r.id,getHref:e.getHref,isDraggable:e.isDraggable??"client"===e.layout,isDroppable:e.isDroppable,isExpanded:e.isExpanded,isSelected:e.isSelected,item:r,layout:e.layout,options:e.options,onOnDragEnd:i,onSelectItem:l[0]||(l[0]=e=>o("selectItem",e)),onToggleGroup:l[1]||(l[1]=e=>o("toggleGroup",e))},(0,t.createSlots)({_:2},[a.decorator?{name:"decorator",fn:(0,t.withCtx)(e=>[(0,t.renderSlot)(s.$slots,"decorator",(0,t.mergeProps)({ref_for:!0},e))]),key:"0"}:void 0,a.empty?{name:"empty",fn:(0,t.withCtx)(e=>[(0,t.renderSlot)(s.$slots,"empty",(0,t.mergeProps)({ref_for:!0},e))]),key:"1"}:void 0,a.icon?{name:"icon",fn:(0,t.withCtx)(e=>[(0,t.renderSlot)(s.$slots,"icon",(0,t.mergeProps)({ref_for:!0},e))]),key:"2"}:void 0]),1032,["getHref","isDraggable","isDroppable","isExpanded","isSelected","item","layout","options"]))),128))]),_:3}),(0,t.renderSlot)(s.$slots,"spacer",{},()=>[l[2]||(l[2]=(0,t.createElementVNode)("div",{class:"flex-1"},null,-1))])]),(0,t.renderSlot)(s.$slots,"footer")]),_:3},8,["style"]))}});e.s(["default",0,eX],781120);var e_=({items:e,nestedKey:t="children",filter:r=()=>!0,getId:n=e=>e.id})=>{let o=new Map,a=e=>{r(e)&&o.set(n(e),e),t in e&&Array.isArray(e[t])&&e[t]?.forEach(t=>a({...t,parent:e}))};return e.forEach(a),o};e.s(["generateReverseIndex",0,e_],462855),e.s(["createSidebarState",0,(e,r)=>{let o=(0,t.computed)(()=>e_({items:(0,n.toValue)(e),nestedKey:r?.key??"children"})),a=(0,n.ref)({}),i=(0,n.ref)({}),s=(0,n.ref)(null);return{items:(0,t.computed)(()=>(0,n.toValue)(e)),index:o,selectedItems:a,expandedItems:i,selectedItem:s,setSelected:e=>{let t=e=>{e&&(a.value[e.id]=!0,"parent"in e&&e.parent&&t(e.parent))};r?.hooks?.onBeforeSelect&&r.hooks.onBeforeSelect(e),a.value={},s.value=e,null!==e&&t(o.value.get(e)),r?.hooks?.onAfterSelect&&r.hooks.onAfterSelect(e)},setExpanded:(e,t)=>{let n=e=>{e&&(i.value[e.id]=!0,"parent"in e&&e.parent&&n(e.parent))};r?.hooks?.onBeforeExpand&&r.hooks.onBeforeExpand(e),!1===t?i.value[e]=!1:n(o.value.get(e)),r?.hooks?.onAfterExpand&&r.hooks.onAfterExpand(e)},isExpanded:e=>i.value[e]??!1,isSelected:e=>a.value[e]??!1,getEntryById:e=>o.value.get(e),reset:()=>{a.value={},i.value={}}}}],378967);var eM=(e,t)=>{if(t.type===e)return t;if("children"in t)for(let r of t.children??[]){let t=eM(e,r);if(t)return t}return null};e.s(["getChildEntry",0,eM],633976);var eq=100;e.s(["scrollSidebarToTop",0,(e,t=eq)=>{if("u"<typeof window)return;let r=document.querySelector(`[data-sidebar-id="${e}"]`),n=r?.closest(".custom-scroll, .custom-scrollbar")??null;if(!r||!n)return;let o=((e,t)=>{let r=e.offsetTop,n=e.offsetParent;for(;n&&n!==t;)r+=n.offsetTop,n=n.offsetParent;return r})((e=>{if("contents"!==window.getComputedStyle(e).display)return e;for(let t of e.children)if(t instanceof HTMLElement&&null!==t.offsetParent)return t;return e})(r),n)+("heading"!==r.dataset.sidebarType?0:r.querySelector(".sidebar-heading")?.offsetHeight??0)-t;n.scrollTo({top:o>0?o:0})}],778631),e.s([],302546)},32064,838550,e=>{"use strict";var t=e.i(849856);
140let r={c:["libcurl"],clojure:["clj_http"],csharp:["httpclient","restsharp"],dart:["http"],fsharp:["httpclient"],go:["native"],http:["http1.1"],java:["asynchttp","nethttp","okhttp","unirest"],js:["axios","fetch","jquery","ofetch","xhr"],julia:["http"],kotlin:["okhttp"],node:["axios","fetch","ofetch","undici"],objc:["nsurlsession"],ocaml:["cohttp"],php:["curl","guzzle","laravel"],powershell:["restmethod","webrequest"],python:["python3","requests","aiohttp","httpx_sync","httpx_async"],r:["httr2"],ruby:["native"],rust:["reqwest"],shell:["curl","httpie","wget"],swift:["nsurlsession"]},n=(0,t.objectEntries)(r).flatMap(([e,t])=>t.map(t=>`${e}/${t}`));e.s(["AVAILABLE_CLIENTS",0,n,"GROUPED_CLIENTS",0,r],838550),e.s([],32064)},143669,951156,e=>{"use strict";var t=e.i(730739);e.s(["useClipboard",0,function(e={}){let{notify:r=e=>n(e,"info")}=e,{toast:n}=(0,t.useToasts)();return{copyToClipboard:async function(e){try{let t=void 0===e?"undefined":"string"==typeof e?e:JSON.stringify(e);await navigator.clipboard.writeText(t),r("Copied to the clipboard")}catch(e){console.error(e.message),r("Failed to copy to clipboard")}}}}],951156),e.s([],143669)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.