import{u as useBasicLayout}from"./useBasicLayout-8e07f8d7.js";import{A as useChatStore,a as useAuthStore,t,K as fetchTtsAPIProces,L as fetchQueryOneCatAPI,M as commonjsRequire$1,N as require$$7,u as useGlobalStoreWithOut,O as fetchSearchAppsAPI,E as axios,P as fetchUpdateGroupAPI,q as useAppStore,Q as fetchQueryModelsListAPI,y as useRoute,r as router,S as fetchChatAPIProcess,x as useRouter,b as useAppCatStore}from"./index-a70ad6b3.js";import{X as createVNode,r as ref,e as computed,d as defineComponent,a as inject,f as onMounted,w as watch,l as h,F as Fragment,M as unref,S as openBlock,U as createElementBlock,a3 as createBaseVNode,G as onUnmounted,a8 as createCommentVNode,a5 as normalizeClass,H as normalizeStyle,a7 as renderList,V as createBlock,a4 as toDisplayString,y as watchEffect,k as withDirectives,a6 as vModelText,Q as onUpdated,ac as resolveDynamicComponent,a9 as withModifiers,W as withCtx,c as createTextVNode,z as Transition,ae as withKeys,n as nextTick,v as vShow,p as provide,af as resolveDirective}from"./vue-cf46d111.js";import{i as getDefaultExportFromCjs,g as getAugmentedNamespace,e as useMessage,t as NImage,p as NTooltip,h as commonjsGlobal$1,d as useDialog,D as NScrollbar,M as NLayoutSider,O as NWatermark,P as NLayout}from"./naive-ui-074da7ca.js";import{r as requireKatex,b as browserExports,M as Markmap,t as toPng,F as FileSaver_minExports}from"./index-97198a55.js";import{I as IconWrapper}from"./index-08cceacb.js";import{f as A,I,s,o,E,T,h as o$1,C as Close,S as Se,M as Me,b as be,g as ge$1,a as CheckOne,U as User,D as DeleteThemes,A as Announcement,c as Commodity,d as SunOne,e as Calendar,L as Logout}from"./menu-1a8ade33.js";import{_ as _export_sfc}from"./_plugin-vue_export-helper-c27b6911.js";import{c as copyText}from"./index-c94da121.js";import{_ as _sfc_main$j}from"./index.vue_vue_type_script_setup_true_lang-1cfab100.js";import"./vueuse-motion-d8fe070a.js";function isString$1(b){return Object.prototype.toString.call(b)==="[object String]"}const ApplicationTwo=IconWrapper("application-two",!1,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("circle",{cx:"34.5",cy:"13.5",r:"6.5",fill:b.colors[1],stroke:b.colors[0],"stroke-width":b.strokeWidth},null),createVNode("circle",{cx:"34.5",cy:"34.5",r:"6.5",fill:b.colors[1],stroke:b.colors[0],"stroke-width":b.strokeWidth},null),createVNode("circle",{cx:"13.5",cy:"13.5",r:"6.5",fill:b.colors[1],stroke:b.colors[0],"stroke-width":b.strokeWidth},null),createVNode("circle",{cx:"13.5",cy:"34.5",r:"6.5",fill:b.colors[1],stroke:b.colors[0],"stroke-width":b.strokeWidth},null)])}),Copy=IconWrapper("copy",!0,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M13 12.4316V7.8125C13 6.2592 14.2592 5 15.8125 5H40.1875C41.7408 5 43 6.2592 43 7.8125V32.1875C43 33.7408 41.7408 35 40.1875 35H35.5163",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M32.1875 13H7.8125C6.2592 13 5 14.2592 5 15.8125V40.1875C5 41.7408 6.2592 43 7.8125 43H32.1875C33.7408 43 35 41.7408 35 40.1875V15.8125C35 14.2592 33.7408 13 32.1875 13Z",fill:b.colors[1],stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linejoin":b.strokeLinejoin},null)])}),Delete=IconWrapper("delete",!1,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M9 10V44H39V10H9Z",fill:b.colors[1],stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M20 20V33",stroke:b.colors[2],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M28 20V33",stroke:b.colors[2],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M4 10H44",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M16 10L19.289 4H28.7771L32 10H16Z",fill:b.colors[1],stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linejoin":b.strokeLinejoin},null)])}),Down=IconWrapper("down",!1,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M36 18L24 30L12 18",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null)])}),DownSmall=IconWrapper("down-small",!1,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M24.0083 35.8995V12",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M36 24L24 36L12 24",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null)])}),DownloadOne=IconWrapper("download-one",!0,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M11.6777 20.271C7.27476 21.3181 4 25.2766 4 30C4 35.5228 8.47715 40 14 40C14.9474 40 15.864 39.8683 16.7325 39.6221",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M36.0547 20.271C40.4577 21.3181 43.7324 25.2766 43.7324 30C43.7324 35.5228 39.2553 40 33.7324 40C32.785 40 31.8684 39.8683 30.9999 39.6221",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M36 20C36 13.3726 30.6274 8 24 8C17.3726 8 12 13.3726 12 20",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M17.0654 30.119L23.9999 37.0764L31.1318 30",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M24 20V33.5382",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null)])}),Edit=IconWrapper("edit",!0,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M7 42H43",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M11 26.7199V34H18.3172L39 13.3081L31.6951 6L11 26.7199Z",fill:b.colors[1],stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linejoin":b.strokeLinejoin},null)])}),EditTwo=IconWrapper("edit-two",!0,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M42 26V40C42 41.1046 41.1046 42 40 42H8C6.89543 42 6 41.1046 6 40V8C6 6.89543 6.89543 6 8 6L22 6",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M14 26.7199V34H21.3172L42 13.3081L34.6951 6L14 26.7199Z",fill:b.colors[1],stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linejoin":b.strokeLinejoin},null)])}),HamburgerButton=IconWrapper("hamburger-button",!1,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M7.94971 11.9497H39.9497",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M7.94971 23.9497H39.9497",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M7.94971 35.9497H39.9497",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null)])}),Left=IconWrapper("left",!0,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M31 36L19 24L31 12",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null)])}),Link=IconWrapper("link",!0,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M24.7073 9.56521L9.85801 24.4145C6.34329 27.9292 6.34329 33.6277 9.85801 37.1424V37.1424C13.3727 40.6571 19.0712 40.6571 22.5859 37.1424L40.2636 19.4647C42.6067 17.1216 42.6067 13.3226 40.2636 10.9794V10.9794C37.9205 8.63628 34.1215 8.63628 31.7783 10.9794L14.1007 28.6571C12.9291 29.8287 12.9291 31.7282 14.1007 32.8997V32.8997C15.2722 34.0713 17.1717 34.0713 18.3433 32.8997L33.1925 18.0505",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null)])}),LoadingFour=IconWrapper("loading-four",!0,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M4 24C4 35.0457 12.9543 44 24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null)])}),Pause=IconWrapper("pause",!0,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M16 12V36",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M32 12V36",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null)])}),PauseOne=IconWrapper("pause-one",!1,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:b.colors[1],stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M19 18V30",stroke:b.colors[2],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M29 18V30",stroke:b.colors[2],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null)])}),PlayOne=IconWrapper("play-one",!0,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M15 24V11.8756L25.5 17.9378L36 24L25.5 30.0622L15 36.1244V24Z",fill:b.colors[1],stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linejoin":b.strokeLinejoin},null)])}),Refresh=IconWrapper("refresh",!0,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M42 8V24",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M6 24L6 40",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M42 24C42 14.0589 33.9411 6 24 6C18.9145 6 14.3216 8.10896 11.0481 11.5M6 24C6 33.9411 14.0589 42 24 42C28.8556 42 33.2622 40.0774 36.5 36.9519",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null)])}),Right=IconWrapper("right",!0,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M19 12L31 24L19 36",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null)])}),Rotation=IconWrapper("rotation",!0,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M24 44C12.9543 44 4 35.0457 4 24C4 12.9543 12.9543 4 24 4",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin,"stroke-dasharray":"2 6"},null)])}),Send=IconWrapper("send",!0,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M43 5L29.7 43L22.1 25.9L5 18.3L43 5Z",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M43.0001 5L22.1001 25.9",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null)])}),SendOne=IconWrapper("send-one",!0,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M42 6L4 20.1383L24 24.0083L29.0052 44L42 6Z",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M24.0083 24.0084L29.6651 18.3516",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null)])}),ShuffleOne=IconWrapper("shuffle-one",!0,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M40 33L44 37L40 41",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M40 7L44 11L40 15",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M44 11H37C29.8203 11 24 16.8203 24 24C24 31.1797 29.8203 37 37 37H44",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap},null),createVNode("path",{d:"M4 37H11C18.1797 37 24 31.1797 24 24C24 16.8203 18.1797 11 11 11H4",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap},null)])}),Square$1=IconWrapper("square",!1,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M39 6H9C7.34315 6 6 7.34315 6 9V39C6 40.6569 7.34315 42 9 42H39C40.6569 42 42 40.6569 42 39V9C42 7.34315 40.6569 6 39 6Z",fill:b.colors[1],stroke:b.colors[0],"stroke-width":b.strokeWidth},null)])}),Up=IconWrapper("up",!1,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M13 30L25 18L37 30",stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null)])}),VoiceMessage=IconWrapper("voice-message",!0,function(b){return createVNode("svg",{width:b.size,height:b.size,viewBox:"0 0 48 48",fill:"none"},[createVNode("path",{d:"M24 44C35.0457 44 44 35.0457 44 24C44 12.9543 35.0457 4 24 4C12.9543 4 4 12.9543 4 24C4 35.0457 12.9543 44 24 44Z",fill:b.colors[1],stroke:b.colors[0],"stroke-width":b.strokeWidth,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M17 25.8994C18.1046 25.8994 19 25.004 19 23.8994C19 22.7948 18.1046 21.8994 17 21.8994C15.8954 21.8994 15 22.7948 15 23.8994C15 25.004 15.8954 25.8994 17 25.8994Z",fill:b.colors[2]},null),createVNode("path",{d:"M21.9497 28.8492C23.2165 27.5825 24 25.8325 24 23.8995C24 21.9665 23.2165 20.2165 21.9497 18.9497",stroke:b.colors[2],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null),createVNode("path",{d:"M26.8994 33.799C29.4329 31.2655 30.9999 27.7655 30.9999 23.8995C30.9999 20.0335 29.4329 16.5335 26.8994 14",stroke:b.colors[2],"stroke-width":b.strokeWidth,"stroke-linecap":b.strokeLinecap,"stroke-linejoin":b.strokeLinejoin},null)])});function d(b,r,m){let w=ref(m==null?void 0:m.value),U=computed(()=>b.value!==void 0);return[computed(()=>U.value?b.value:w.value),function(k){return U.value||(w.value=k),r==null?void 0:r(k)}]}var u=(b=>(b[b.None=1]="None",b[b.Focusable=2]="Focusable",b[b.Hidden=4]="Hidden",b))(u||{});let f$5=defineComponent({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(b,{slots:r,attrs:m}){return()=>{var w;let{features:U,...k}=b,x={"aria-hidden":(U&2)===2?!0:(w=k["aria-hidden"])!=null?w:void 0,hidden:(U&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(U&4)===4&&(U&2)!==2&&{display:"none"}}};return A({ourProps:x,theirProps:k,slot:{},attrs:m,slots:r,name:"Hidden"})}}});function p(b){var r,m;let w=(r=b==null?void 0:b.form)!=null?r:b.closest("form");if(w){for(let U of w.elements)if(U!==b&&(U.tagName==="INPUT"&&U.type==="submit"||U.tagName==="BUTTON"&&U.type==="submit"||U.nodeName==="INPUT"&&U.type==="image")){U.click();return}(m=w.requestSubmit)==null||m.call(w)}}let C=Symbol("GroupContext"),ue=defineComponent({name:"Switch",emits:{"update:modelValue":b=>!0},props:{as:{type:[Object,String],default:"button"},modelValue:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,optional:!0},form:{type:String,optional:!0},name:{type:String,optional:!0},value:{type:String,optional:!0},id:{type:String,default:null},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},inheritAttrs:!1,setup(b,{emit:r,attrs:m,slots:w,expose:U}){var k;let x=(k=b.id)!=null?k:`headlessui-switch-${I()}`,a=inject(C,null),[g,n]=d(computed(()=>b.modelValue),S=>r("update:modelValue",S),computed(()=>b.defaultChecked));function c(){n(!g.value)}let R=ref(null),v=a===null?R:a.switchRef,e=s(computed(()=>({as:b.as,type:m.type})),v);U({el:v,$el:v});function L(S){S.preventDefault(),c()}function O(S){S.key===o$1.Space?(S.preventDefault(),c()):S.key===o$1.Enter&&p(S.currentTarget)}function B(S){S.preventDefault()}let P=computed(()=>{var S,_;return(_=(S=o(v))==null?void 0:S.closest)==null?void 0:_.call(S,"form")});return onMounted(()=>{watch([P],()=>{if(!P.value||b.defaultChecked===void 0)return;function S(){n(b.defaultChecked)}return P.value.addEventListener("reset",S),()=>{var _;(_=P.value)==null||_.removeEventListener("reset",S)}},{immediate:!0})}),()=>{let{name:S,value:_,form:l,tabIndex:y,...D}=b,M={checked:g.value},F={id:x,ref:v,role:"switch",type:e.value,tabIndex:y===-1?0:y,"aria-checked":g.value,"aria-labelledby":a==null?void 0:a.labelledby.value,"aria-describedby":a==null?void 0:a.describedby.value,onClick:L,onKeyup:O,onKeypress:B};return h(Fragment,[S!=null&&g.value!=null?h(f$5,E({features:u.Hidden,as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:g.value,form:l,disabled:D.disabled,name:S,value:_})):null,A({ourProps:F,theirProps:{...m,...T(D,["modelValue","defaultChecked"])},slot:M,attrs:m,slots:w,name:"Switch"})])}}});const logo360=""+new URL("360logo-c09b4832.png",import.meta.url).href,ali="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAEsGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjUwIgogICBleGlmOlBpeGVsWURpbWVuc2lvbj0iNTAiCiAgIGV4aWY6Q29sb3JTcGFjZT0iMSIKICAgdGlmZjpJbWFnZVdpZHRoPSI1MCIKICAgdGlmZjpJbWFnZUxlbmd0aD0iNTAiCiAgIHRpZmY6UmVzb2x1dGlvblVuaXQ9IjIiCiAgIHRpZmY6WFJlc29sdXRpb249IjcyLzEiCiAgIHRpZmY6WVJlc29sdXRpb249IjcyLzEiCiAgIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiCiAgIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjMtMTItMjRUMDA6MjM6MzIrMDg6MDAiCiAgIHhtcDpNZXRhZGF0YURhdGU9IjIwMjMtMTItMjRUMDA6MjM6MzIrMDg6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJwcm9kdWNlZCIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWZmaW5pdHkgUGhvdG8gMS4xMC44IgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTEyLTI0VDAwOjIzOjMyKzA4OjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cjw/eHBhY2tldCBlbmQ9InIiPz4QZKpRAAABgmlDQ1BzUkdCIElFQzYxOTY2LTIuMQAAKJF1kc8rRFEUxz8zaMRoFMXCYpIfCz8aoyY2ykgoSWOUwWbmzS81P17vPUm2ylZRYuPXgr+ArbJWikjJljWxYXrOm5maSebczj2f+733nO49F+zBlJLWqz2QzhhaYMLvXggtuh2vOGmhnh66w4qujs7OTlPRvh6wWfGuz6pV+dy/Vh+N6QrYaoVHFFUzhCeFp9cM1eJd4WYlGY4Knwv3anJB4XtLjxT4zeJEgX8s1oKBMbA3CrsTZRwpYyWppYXl5XSkU6tK8T7WS5yxzPycxHbxNnQCTODHzRTjjOFjgGGZffThpV9WVMj35PNnyEquIrPKOhorJEhi0CvqqlSPSYyLHpORYt3q/9++6vFBb6G60w81L6b50QmOHchtm+b3sWnmTqDqGa4ypfzsEQx9ir5d0joOwbUJF9clLbIHl1vQ+qSGtXBeqhK3x+PwfgYNIWi6hbqlQs+K+5w+QnBDvuoG9g+gS867ln8Bk81n+oaq8IsAAAAJcEhZcwAACxMAAAsTAQCanBgAAAlSSURBVGiB7VlrkFXFEf66e+ac+9hlAUUFUbBAJKJRAROUiKzxAUZUICqIG8QiVAwIVqICCSa4EcoNhRoQoyQVidb6QlF8giVYJWoMUdQEhSRGLYlRVpFll+U+zpnp/LhALqtZ7sol+bNf1al7qk9Pd3/3zPR0zwE60IEOdKAD/wdQOY2NvGBVVSrR/fsCqSAIhA2YA7DE79xb3+fhcvpqDVNOY2GYrgP8KIB7FCRa+PES1Vz56jv3LRuysZz+isHlMnTOFbNTzutlUvH2KRG1bPfewXkH7/Pw6q3P91h++VXryuavNcpi+OwLfs2J5iGr1eyc+fCyKxo8uRoPB+89nEbw3sHFfGwUy9nl8PdlKMvUIjnk5DiWnibV8hAAOPvRGo57biKf+BqRgScAQmLirssnTnx/CREpEYGZYIzCWCIWBjFBjVe1W+++Y/7gD9sVw4GSGD52aYLynTdaztQ8t3LiH/bIR1+yor9ER79NZJhFQAjAbMEUwhgBswEzg4xChAoyYZAQNNy5AeEnpy2qPTlfahwHPLVcxKMAjWPzyfpieRSn7/LOM/kY3sXwqoASVD28+n1sKBSqCu89FB5wdqBGVRe2J44DIvKNkXWdXWTryDSNWPvoTLdHfu7Y+werD8706hGrh6qCNAYQAeQLZHxBDgCquve+IDAgTS6YcdMrqVJjKXmNDBo2+0hxh/cmTSopAaTQPMbnseulV569+oM9et+Z+Lsw15i8w3uHCAoBwFCAFIQYUAuQoJCaFV4Lz4kUe9M1APKp3pTrNxvAjWUjMnRErc02p59X79PETVkAsCYNh9hp2PCtYt3Gxs+HJTTVJYb9m5gYngIIGRDnoGQgVqHMMGyhLBAhQICYBSQCZYCFobCG4a8qK5F81vzcO9Mfkp3nw3fnegA5w2Dj9fVnfuOKdcPK7Ws0pwO8NxBjABGABQqBEwOyIVgEHgwSA7EMZQMyBWJkuDAm33sK4C4tJT6ghKw1cOicQH3iY/VRVyL9FKlNfd5Yu7y5VAdfBdNqnxLJHr9ZKT9h0bz+6/c/Yj+L/eTqyazQu+BzXckrEGk3tBx79ylDp5W1RmsNbRkw30XJNaWSAPYztTR7RN84okkBBN7FgHfwyI7msPIwAFsPOOIvwdWzNiTIhVNItg5qz7g2icRxqsKwA8UMaARVAF4SUT7/4glnTTp+49p79lkfp190fUUyClMIOsMEIRErBASQwAQhiQTwqlBiSGJXdsWdUxpb+3SRUYb1ZDksG5EguWNjnAk3ADwQSihcFhxzP872rAbwfLE+xVXdKdf9LRdVJOOshXAKzAkwB0BWoBwUMpLAMX/yTQCvt/a5dOHXc9NnfXA7tPNPANSUSqTNNfLGi3V5STSPciQZIgaLgCmA+BDGpe889czrKor1X356zt9VaAnDgF0C4g3YCcQzxAtEGawCqLvnkd+e9wUSe9DpiB3ziMNB18x9vbosRADgzXW3/UusrmZmMBeaJSGBVT5WYzuptf4OfPBLx5xhJjAIzABBUZiXCqV8HkHD/Nbjam5YtjeWm689yceamc++R+21858tKbGUVKIkkrkJJPSZUADhACIWxB6MQ+cOOveadLHua8/VfkpB0xQhCxbdnd8VtDsckuYbHrt3xPvFY665eS1LfsDsYplNbnsA0Czl+0woG5GXX5i3ywX2V0xpgEOALUApMBJdQ9/v1tb61gSPg30DIYQyAUYB8VCKdxHrva31d27tPofjnnMm/+itwXtkt984yAnpTYyq+dfN/XS/G3fJRaNNbl1orHtXJACTBcHCkAHF4bgh597evVj3ucfG74RpuBCsMREBaqBQ523T5cvrh28v1v3eD1+qQFR1NcedEhR1W1z87NabjnxJJPsihw3X7S++dm1sQ4YvHEO+8lHxDAYVGiEKoNKywaaaTl371PV76/MLJ9RRvvHE9cmgy2BGAM+5TS7YesITD4zeq3Pl9D9RmOv2ILnKS5VT4CCjSH50hgmbXjVWYAyBtUsPpeA9Ah1T99Ne//xvsbWrjA+S0csiDBEL4QDMIawYBNL1pIC7DSjWfaJ+poadm8YqUQ5sfUyN44tJAID3XY5Qn76YiMGcA0hJ/CGrKd9rM2WP2ay5Xpt93OUFRBWscafuaAPt60fiyikGCQjZ3R3e7guB+Di18pyxC/ZZ+Cvrx30ICe7zEj325CPnv1X8bMr0Ncbm0w+RtwFIQezARCBNpknTfeGTfRFX9uW4qg+kaYvKZ22ewJTcjwwbdVtvyXSdKWxACjARlAggBjNBNX0MRb3GALiveJxL//lnpJVVX/hPdvY+SxCeQeKhRGDaPV1RqAaIPAAFSZRXu23EglmnZtqKr+Q1Muz8e+4P8l3GGxA8FRomEKsSeeFCqe4lavap93qufnB6S1u2aqa+JkGm+zuMin5iYwgLSAgsDDYx2DCIBGCDROd/rJMwd2btjIHals2S34j4w05gU9gXGArxDCV/c2yieoUHOAYbAVMJ3anrNo0o6MfsAQhUCUwAsQLsoeIB9iCOdmZ9w3cXzqhuk0S7iNjEjmUSdVoINSAAkWS32HDHratXTPxC4dcWaqa9UonI/BgovAEigEVA4rbBZCZByBGxV/YgadmycFZ1Qyl2SyYS242LrKu+ijU5wDuGSURTn2wnCQAIM/1vIYRHEeVAAJQdVBQq+TsXLTj8yfba24N27SMXjFk90mj4jHr9WMO/9tKwKmbTDKYkoP9JgAoL2EY8vnTKPlOiZsaqINEycBuRVjAHEJbCrm8zn3PFpiMX11Zn/ydELr683pjM0asMJY8DuQZAAHIgCIgYYIInRswENdmMJj7+9oqlF+UAYMLU33OIges43+30QvpmiDDURkC447IldQd2Wt+uI9PH758QXzJu1Zg4rqgGxYX+BAZEBCLZnTwZJA7MnX4hCEYAWAkACTd0oLqKIYUKunAiRIU6bJOa5q88pfbgoPXeE6a+cBTFPf5owuYBxqcyGnVbb5A4kSUqZChhsGisYcMpi2857oA/Nxy0Y/76JdVb1Ju/aL7TZPj0aGE6kU0ORjxICMQxlPNvIvjw7XL4K+uHntZg3j4upJ5vslpLRBCKAAQo5FxuUvls5B215+x3jygFB/VYBwAm/+D98ywdehqRUxIoC6kylOyONxbXHf30wfbfgQ50oAMdOKj4N8mAoUMloQFmAAAAAElFTkSuQmCC",baidu=""+new URL("baidulogo-bf43b354.png",import.meta.url).href,claude="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAEsGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjUwIgogICBleGlmOlBpeGVsWURpbWVuc2lvbj0iNTAiCiAgIGV4aWY6Q29sb3JTcGFjZT0iMSIKICAgdGlmZjpJbWFnZVdpZHRoPSI1MCIKICAgdGlmZjpJbWFnZUxlbmd0aD0iNTAiCiAgIHRpZmY6UmVzb2x1dGlvblVuaXQ9IjIiCiAgIHRpZmY6WFJlc29sdXRpb249IjcyLzEiCiAgIHRpZmY6WVJlc29sdXRpb249IjcyLzEiCiAgIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiCiAgIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjMtMTItMjRUMDA6NTE6MDcrMDg6MDAiCiAgIHhtcDpNZXRhZGF0YURhdGU9IjIwMjMtMTItMjRUMDA6NTE6MDcrMDg6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJwcm9kdWNlZCIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWZmaW5pdHkgUGhvdG8gMS4xMC44IgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTEyLTI0VDAwOjUxOjA3KzA4OjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cjw/eHBhY2tldCBlbmQ9InIiPz7/DjIoAAABgmlDQ1BzUkdCIElFQzYxOTY2LTIuMQAAKJF1kc8rRFEUxz8zaMRoFMXCYpIfCz8aoyY2ykgoSWOUwWbmzS81P17vPUm2ylZRYuPXgr+ArbJWikjJljWxYXrOm5maSebczj2f+733nO49F+zBlJLWqz2QzhhaYMLvXggtuh2vOGmhnh66w4qujs7OTlPRvh6wWfGuz6pV+dy/Vh+N6QrYaoVHFFUzhCeFp9cM1eJd4WYlGY4Knwv3anJB4XtLjxT4zeJEgX8s1oKBMbA3CrsTZRwpYyWppYXl5XSkU6tK8T7WS5yxzPycxHbxNnQCTODHzRTjjOFjgGGZffThpV9WVMj35PNnyEquIrPKOhorJEhi0CvqqlSPSYyLHpORYt3q/9++6vFBb6G60w81L6b50QmOHchtm+b3sWnmTqDqGa4ypfzsEQx9ir5d0joOwbUJF9clLbIHl1vQ+qSGtXBeqhK3x+PwfgYNIWi6hbqlQs+K+5w+QnBDvuoG9g+gS867ln8Bk81n+oaq8IsAAAAJcEhZcwAACxMAAAsTAQCanBgAAAi9SURBVGiB1VpbTFRLFl1Vpx8C4aUoPgINIeM4PoIQtWFABbwyMGqMMdFMzJj5NCSSCR/qXP24E03kyo+JwRjihziRZL6IhFG8t4nStjx8xEyPMTGKQgMC8hxx7Mc5p/Z8AOdSNo/u9l7xrqTTp/fZp2qvqr137arTDAuAiNjUJQcQAyAWgJWIFMYYALCpe9NgCB0041qfIQsA+AjgvwA0AGCMEebBnJ0KIayMsXUACgGUAtgIYAUA0ycG/JJ4D6ATQAuAWwCeMsZGQn5a1/VkIvonEQ0RkaCvA/8josdE9Aci4guSEELsIKIu+noIfAo/Ef1NCBEz30zkENHgYlsaAvxCiG9ptpnRNG0lCfrPYlsYBgK6rv9xcHCQAVPZhogYY+xPYPhdyIG0+DAzxs4lJiYmAVNEvF5vNGPsrwCURTUtTDDG1nHOs4EpIoqiFDDGUhbXrIgQBWAvETEOAJzzbxbZoIjBGNv54MEDxp1OJwfwG6Ivtcb9vGCMZVgsliU8PT3dyjlPYlP1xq8NjLHoNWvWLDVZrVaFMWb6nMauXbuGN2/eSLK4uDhUVFRg5vi8e/cO1dXVkl5sbCwqKirA+cKL9Rwgi8USa+KMK5CLvrDQ3d2NyspKCCFARJh2UU3TkJmZiV27dhlkEhIS4HK50NPTY+jquo4NGzagpLQELKx68ydwzs2cccYQXsUq4f79+1BVFYFAAKqqQtM0aJoGzjlOnDgBXdcNXZPJhJycHKiqaugCwPnz56GpWqQmgDHG+FRsREykqalJMnYaQggMDw/j0aNHhoxzjpKSEsxMLESEoaEhuN3uSE2YbPtzHu7t7YXT6ZzzvqIoaGpqkgzPzc3FqlWrpJj4+PEjnE4nhBAR2xIxESEEzp49C0WZuxggIty7d0+aMUVRcObMGYkcYww3b940XC0SREykr68PLS0tQW7yKbHOzk60trYavxljKCoqQmpqapBec3NzpOZETsTlckmuwBhDQkICysrKJDIWiwWnTp2C3+83ZFarFdu3b5fcy2w24+LFi5JeqOCcR0aEiNDQ0IBAIGDINE3DyZMnUVJSIrmSEAJ9fX148uSJ1HFxcXGQXm9vb8RBHxGRV69eob29XZIlJyejtLQUa9euxbrfrgsabYfDIenn5OQgJSVFmj2v1wuXy4VwyyUiiozIhQsXgmLBbrcjLi4OZrMZ31/4XpotIQTu3r0r6VssFpw7d07SIyLU19eHnb2EEOET8Xg8aGtrkzIM5xxFRUUGuU2bNmH9+vWSgZ2dnWhqapLa2rJlCzIyMiS9rq6uIL2FwBgLn0hbWxu8Xq/UiBACpaWlkqyosMhwLyKC2WzG6dOnpQGIjo7Gtm3bJDdUFAVVVVVQVTUsu8Im0tjYGBSk5eXliIqKkojs+maX5Ou6rmNsbCwo6Pft2ye1R0QYHh7Gs2fPfjkiPT09Qbk+Pj4eR48eNYrA6U9WVhaSkpKkWCIiOBwOiWBeXh5Wr14tzcr79+/R2toaVtCz0dHRxISEhLuMscz5FIUQKCsrw507d6QOkpKSsGfPHphMP+0Epqvdjo4OuN1uqZS32Wxobm429IkIjY2NOH78uNSfzWaDw+GA2WxeiAONjY1lhbwPefv2rbEIzjRsZGQEN27cCBo9xhh0Xcen+7XOzk7cd95HYVGhoVdQUACbzQaPx2O0M73Sl5SUhGQfJxHa9LW1tUFV1aANEBFB0zToui59NE2b1TUsFgu++/t30goeHR2NnJwcKIpiELdYLLh06VLIK31IMTKd3/1+f9iL1aeYXsGfPn1qyBRFwd69eyXyQgh4PB48f/48pHZNoexEXr16JRV+wGTGSUpKCmmLOjw8LKXd6arYbrcbM2C325Geno7u7m5jQfzw4QNcLheysrIWNnJkZCRRCPF0rnNJIQQdO3aMMjIyyGazkc1mo9TUVDp8+DD5fL6Qzjbr6uooJSXFeN5ms9GOHTtI0zSpH4fDQampqYZOWloa5efnS3qzmTg6OprJscC7jp6enqCV3Gw2Iy8vL5SMAgA4cOAAVq5cKcm6urpw+/Zt4zdjDNnZ2UhLSzNkRITu7m7cunVrwT74QpuZx48fY2JiQpL5/X4cOnQoKCPNBavVip07dkr6JpMJlZWV0goeFxeH7OxsmEwmQ1dRFFRXV0s12axEOOfzzsinRRxjDPv378eKFStCJsIYQ0FhgSTTdR1DQ0NBQX/w4EGoqgoiAmMMRIT+/n68ePFi3j5MNJkmZiXj8Xjw8OFDxMfHG9mEc47y8vKQCMxEQUEBEhISpCMjAGhvb8fWrVuNQcnNzUVGRgbGxsakI6OOjg5s3Lhx1sETuiCT3+8XAGatmxVFwdWrVyWZ1WpFenp6yLMxjZiYGFy/fh3j4+OSfOnSpVJbiqLgypUrGBgYmDznmrqVmJg4Z5+qpvrQ2tq6RFXVB/T1vmpbCMLtdq/i9fX1ASHEYFjD+xVBCDFeV1c3BgCYmJg4K4T4Vc6Iz+drDwQCk+9HBgYGwtuSfUXwer0/+ny+yVrryJEjj30+378X26hwIYR439/f/0NcXNzk693NmzcHXr9+fZGIwj9UWjyQz+d7/OzZMzcwVf3W1NSQ0+n818TExAN8ub9nfBZUVR2pr6//9uXLl++lG0VFRay2tnbj+Ph4G33lqVjTtPEnT578effu3XNuDFlNTU3myMjIPV3XQyttvyx0r9fb7XK5/lJQULBkpuFBR+mDg4NDHo/HwTnvT05OtlkslmUziX6uS4QJw81VVR1/+fLlPxoaGk5XVVX96HK5pHie0zC73W59+/btyqqqqt9v27atMDY2dq3Vak1SJo9F+HzP/gzGExEJVVUnvF6v58WLFw8vX77sePPmTWdMTMxES0tLUBzPa0xxcTHTdV3xeDyWZcuWWfPz85csX77cGhUVpei6PrnfX4gOzdLLtGyWb8WkkBBCHx8fV91ut8/tdvvMZnPAbrdrtbW1c56l/h8gg8dutwWvwQAAAABJRU5ErkJggg==",dalle=""+new URL("dalle-4f19ad1c.png",import.meta.url).href,gemini=""+new URL("google-6f260bf3.gif",import.meta.url).href,gpt4logo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAIAAACRXR/mAAAEsGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjUwIgogICBleGlmOlBpeGVsWURpbWVuc2lvbj0iNTAiCiAgIGV4aWY6Q29sb3JTcGFjZT0iMSIKICAgdGlmZjpJbWFnZVdpZHRoPSI1MCIKICAgdGlmZjpJbWFnZUxlbmd0aD0iNTAiCiAgIHRpZmY6UmVzb2x1dGlvblVuaXQ9IjIiCiAgIHRpZmY6WFJlc29sdXRpb249IjcyLzEiCiAgIHRpZmY6WVJlc29sdXRpb249IjcyLzEiCiAgIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiCiAgIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjMtMTItMjRUMDA6NDU6MDQrMDg6MDAiCiAgIHhtcDpNZXRhZGF0YURhdGU9IjIwMjMtMTItMjRUMDA6NDU6MDQrMDg6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJwcm9kdWNlZCIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWZmaW5pdHkgUGhvdG8gMS4xMC44IgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTEyLTI0VDAwOjQ1OjA0KzA4OjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cjw/eHBhY2tldCBlbmQ9InIiPz5FXAnGAAABgmlDQ1BzUkdCIElFQzYxOTY2LTIuMQAAKJF1kc8rRFEUxz8zaMRoFMXCYpIfCz8aoyY2ykgoSWOUwWbmzS81P17vPUm2ylZRYuPXgr+ArbJWikjJljWxYXrOm5maSebczj2f+733nO49F+zBlJLWqz2QzhhaYMLvXggtuh2vOGmhnh66w4qujs7OTlPRvh6wWfGuz6pV+dy/Vh+N6QrYaoVHFFUzhCeFp9cM1eJd4WYlGY4Knwv3anJB4XtLjxT4zeJEgX8s1oKBMbA3CrsTZRwpYyWppYXl5XSkU6tK8T7WS5yxzPycxHbxNnQCTODHzRTjjOFjgGGZffThpV9WVMj35PNnyEquIrPKOhorJEhi0CvqqlSPSYyLHpORYt3q/9++6vFBb6G60w81L6b50QmOHchtm+b3sWnmTqDqGa4ypfzsEQx9ir5d0joOwbUJF9clLbIHl1vQ+qSGtXBeqhK3x+PwfgYNIWi6hbqlQs+K+5w+QnBDvuoG9g+gS867ln8Bk81n+oaq8IsAAAAJcEhZcwAACxMAAAsTAQCanBgAAAfvSURBVFiF7ZhLcJPXFcd/59PLkizZBstGlvzA2MEaAwEMAfIitAkNSZmUNpOZpsx0aDrT7ttdp5t2uuy2M11k2kXSNp1mSJMhpC2T8JqA86QBYydWjB+yjS1jy5Jl2dKn73RhFYUOkhGkCQvOUt895/507r3/e+6Rvx+xuPvM+LoBbm73sCqxe1iV2F2KZb9DfzEQGwJqYeW/FCS4fSyhqoaaFqqDuOtE7OTSujBFapzUBFbua8Jq2knro1LTjNNXJLVM0tNMXyJ6TJdTXy2WGES+J+2PYzhQJTHEbFTNJbzrpGETviaq17Fum5z/rS7GwUBva2WlosvHsLNhv2x8BmC6j8/e0MSV4leHm44DrH9c7FXkMggYTswMiWEmP9KZfhbj6K3NVlm26tpp3YvhYPikfvY6S4kbvnobsHtkJT2OKswlcgvY3TRsoqFbkjGG39FYL2bmS8UybAR34K4ncYX+V8mli59cPtqfkNAu3GsQg/hlxs7qwlUsE5uLtZ3Sshd/M5FnxenTz/9BPnvnWILdSaCb1r1S34XAwFG9zmQ4qI/Q/Zz4mlCLxRkGjur4e6DFAHOf6+hZtv1IGrbQ+ZTMj+nUhTvGCkToeFLqI4gNIDNLYhTA5qBuA62PEdwuYrAwydULDL+jizMAIiDFnZRd4P3f6dYjEtpF5BDXBjCX7gArtJPIs+IJkJkjMaTBHlmeLxwufzObnhd/mOwCsXOM92piuMBRVUvrXrFXETun86OFUJZJ9LjWtIq/WZp2MHpWS85aHquunc2Hxenj2qdcfFmragj2oFZhgZx+XH7mhrj4siZjBQk1HDTvZuMhcfoQoeUhGT6p0ePkMgDpKWYG8DURfpDRs7eVLbubDU+Ks5rkWGFiZ/VNhkWPsaIRdhf+Zu47KHUdZK4RO6+BbvEF6XxaGu/n09d1ZoBcmvRVrBz+MGKUE4uSWDUt1K0HIXpck7Fy/8ywU9tGeDdNuyS/TPRNHTlFNo33pIZ2E9op/jDbfyxTn2jsHGJDLQwbho18pVgi+JqoqmNxhsmPyjE5vES+K8Ee7B5EsLtw+QUUJT3N4DGufqTND9LyiDTtlLUbyS9jOFhKYJnlwpbAsuFtQAxmP11FY7YewbKYvsjFlxTY/ANp+wbND8vFl3TifSyTZIy+vzLeq1t+KDWtiB9gbggtt+NLZ8vmEGB5oZwzkIwRfVMnPy7Qf/h7XbeNzqdk6xFp2snw2zobxVwiMcKZ32jrI7TvF28j1UE8ARbjJcPevAxUJbcI4A2sghU9Tqy3mNF8lvFeoscB1nSy7QXZ/LysvQ+xoXlGznDpz5qZxRdkw36xOSvEsvKkp1Xz1EewVxV+XBFAl5+quuLI/PJN3PNZzAwDrzJySpseoOen0nUIw47mifcxfELFINCNL1QhFkpynHQcu5u2x0QMgGSMwWNqOHj0l9L1Hdy1IlIyriqZhA68xulfq5Wj8ynxhwDUYvgk5iLeAP4QlIhQUiBS48T78Daw/pukJpjuwzIZeI2pT7TlEWnZK4Yduwub6ya+X1ydpTmWk3gCxZHmMvF+gj14G8Sw6U2PZMknRj7L0D81NYl7Dd3fl9ZHC/tjdpBLf9ILL+rsIEDHAcK7ixw2J+HddBwoFbVg6bgCDg+l8l3u8knHWZjEH6K6kc2HpXUv//6jJoYxl5i+xMyABnew5bBse0FCD/DJikAcpmGzGAbli2ZXNUA+p6VkohyWCHXtqEXmGjYnNS3s+bmMntGxd0lNYJmMnyd+UTsPSstD7PuVWIq5yNC/WJjQyLMl953NydqNohbp6ZIldTksw47DjZXjytssTGnzHhq3yIb90rCZifc01kt6GgyyKcxlbC7Ge3X8PIlhGreUPgsQ3I4nQOYaqYmSoloOy8pj5bHb0TxTF5gdpL5LNx4UfzOd35ZgD/E+DWwSz1quRfnsDU2NYa7ohWqpM+YP03FAUOaucL3mqQxLLZIx6rvwNmJzkksz+SHxy9rxpKzfhy9EdZNkU/T9RcfOFwsbf5iOpwVuKFABw44/zJbD4m8mm+Lzt7RMUb9KGRh7l/ou6iN4G1ipI8wMA0d18kPCe8Rc0pFThYeGGNS2EdpFeI84q0nGyK7semFF9tr2Udsu7joW4/T/TeeGys27CtbEB9r+hPhCdByQC38oasz8KMmYqhZS4qmnbZ+s24q3EbUYf4+Rk5ocAxAbrlqAYI9onvglom9p/HL5aVfDMpfoP6o7fiKhXTg88vGLmv3v5V0o4oTQA3QdEk89KxV93ysa7y++92tbcddi5ZjpZ/iUzlzGXO3ZszoWMHOZwTd1w7ek8X4e/oWMnGJ2UPPLGHaq19H8sAQiBREZ72XohC4ni75OL12HRGH4lF5+pYLeyepY+SxDJ8imtG2f+MN0P0c+K2YGmxN7FQi5NLFexs5oYuQGx6paNj5DbRuLcSY/qKyfc0vPVzPDyGni/VofIbhdattwVGNlyS3hcCM2zEVNT9/gUtfOfQcJdIuVY+Q0c1dKhC5hlfUgim42sPAE2P0z8axFDHJppvtIX8VepWs6pHY9CFaOoRP0v6q32Hq4U6zr5vLR8bQ0bMLbgPGF1GdTzI8xelrH3/9fAfsqsADDga8JX4jqRhxeUZPMnC5MMj/K0vztMHHnTUrAyjE/wvwIhg0xVEHzt9ow+j9iXTcrD19S+/Qu7TTfw6rE7mFVYncp1n8AuY1j3tEIhhEAAAAASUVORK5CYII=",midjourney="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAIAAACRXR/mAAAEsGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjUwIgogICBleGlmOlBpeGVsWURpbWVuc2lvbj0iNTAiCiAgIGV4aWY6Q29sb3JTcGFjZT0iMSIKICAgdGlmZjpJbWFnZVdpZHRoPSI1MCIKICAgdGlmZjpJbWFnZUxlbmd0aD0iNTAiCiAgIHRpZmY6UmVzb2x1dGlvblVuaXQ9IjIiCiAgIHRpZmY6WFJlc29sdXRpb249IjcyLzEiCiAgIHRpZmY6WVJlc29sdXRpb249IjcyLzEiCiAgIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiCiAgIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjQtMDMtMDFUMjM6Mjg6MDYrMDg6MDAiCiAgIHhtcDpNZXRhZGF0YURhdGU9IjIwMjQtMDMtMDFUMjM6Mjg6MDYrMDg6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJwcm9kdWNlZCIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWZmaW5pdHkgUGhvdG8gMS4xMC44IgogICAgICBzdEV2dDp3aGVuPSIyMDI0LTAzLTAxVDIzOjI4OjA2KzA4OjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cjw/eHBhY2tldCBlbmQ9InIiPz7ZULmeAAABgGlDQ1BzUkdCIElFQzYxOTY2LTIuMQAAKJF1kbtLA0EQhz8TJeKDCFqIWByiVkaiQtBGMEGiEERiBF9NcnkJeRx3ERFbwTagINr4KvQv0FawFgRFEcQ6taKNhnMuCSSImWVnv/3tzLA7C7ZQSk0bjW5IZ3J60O9VlpZXFEcBOw046cERVg1tan4+QF37epJYsQeXVat+3L/WGo0ZKjQ0C0+qmp4TnhEObOY0i/eFu9RkOCp8KTykywWFHy09UuaCxYky/1ish4I+sHUIK4kajtSwmtTTwvJy+tOpDbVyH+slbbHM4oKsfTJ7MQjix4vCLNP48DDChHgPLkYZlh118t2l/DmykquK19hCZ50ESXIMiboh1WOyxkWPyUixZfX/b1+N+NhouXqbF5reTPNjABx7UMyb5vepaRbPwP4KN5lqfvYExj9Fz1e1/mNw7sDVbVWLHMD1LnS/aGE9XJLsMm3xOLxfQPsydN5Dy2q5Z5Vzzp8htC1fdQeHRzAo8c61X+6PZ6+i2ytSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAG40lEQVRYhe2YfUwTaRrAO1Om2FJLpR90+VQ+lNKCrCYnsNHdI2CODwO9k2zMsUpOkkW7uIkXD4/kIurqxXiinrInJqya09NdXTkO77SLfORidFUQIbdL+JAvO9BCO7TSznTaed/3/ujJms0GOvhxuwm/PyaTt5l5fvM87/vMO8UQQoIfH/j/W+CHWdTiw6IWHxa1+PDT16qvr3e73a9P5UUC1UIIXbx4ceXKla2trRDC1+r0v3gB0tXVJZfL5XL57t27IYSBX7gAeBRRq9XK5fLu7m6SJA0Gg9PpfH3J4qEVHBxcWVl57dq1K1euREVFZWZmkiQpEAhqa2vv3r3Lsuyr9OKVW6vVqlarEUIQwnPnziUkJJjNZpPJpFAoDAbD9PT0qyoiPy2fz6dQKHw+H0KIBaC29tN31qU/fTrS2Pj3UHmoTqe7f//+K5l2/LQQQtu3b+/v70cQAQSBe2b/+vXr3tbRjPvCxQs4jkul0nv37r28GW+tO3fuVP1+L4SQI/vH3ssaJsS/1YSU/Pp9r4/dtWvXhg0bEhMTTSbTS5rx1no2M7M2Wev6urN/xfKnwiCrTuSpVrz/tuT06T87nc7Vq1fX1dUlJSX19va+US2GYd7C8f6wiFERZn83xHeUcB3Hpr9SJ8Yv7evru3XrVkZGRmtra3x8vH8KLgze70Qcx3wCxDE2aYFYls8KJL4lmYQsxVVZHfZhRVlW1nsajYaiqNLS0tLS0oW/D/g+h9frDSWE0zuXckfEzs8w0IdxNmHnsFp3JD44NfzCpb92dD5MS0tzu906ne7Ro0cLm2QL2UEggPBYFmp80p8HcQqscUhd+Df8W2YJnrrp8KE/rU5Ji4yMfPz48fXr1wsKChaWLN5aEEKEIaEeC8rGuaXBx/4j/42Jm6Bj0fguH32Y9P7s8y8+37Nnz759+xISEvLy8s6ePbsALQzx/E5kaFq/SjrYLXJiop3/knwxKAZcpMD8OwFVEOah0775iy/qRnP7V3HxcWNjYx6PJywsbGZmRiQS8YrCO1uOZ9Pr31GOA1nx1eBrA6GQWSt8cpKg8lbYR3/R/aXO4R4ZGJm0Tn6003j+/HmxWLxt27arV6/yjcI7W8dqjjHK8xdstqfOEO5ZFiSrCCZCaxte++R2GO3WFyd41kyNW8c/2Fryy82/6unpYRgmNjaWJEmCIHiE4bVAOAjD39KE712F/yEJq6gUFVmF+fDdpDvl4tMfSw8019wFHtD7bW/GukwP41GpVAghAEBycvLY2NjrWolIIKCmpydZyglCRdYPhZYKiU+4buj68vEbQaHj2z41ZH+cjhFoxYrlk1MThIjIycnp6+vDcfzMmTMHDhzgVRY+RUSCw0ePHGn/0htcgD3BcOrfYpaULmEwDPchDkeYVr+qqKgoOzu7rGx7U9M/Ozo66uvri4uLY2JisrKySJKUSCQBhgoK/AmoaeqPn3wCZNJg72d7dxvz8o7K5aolYiIIw1ngo2naYrHc+EdTTs5GiqK6u7tTU1OFQmFLS0tPT8/MzIzFYomLiws4BYEBADAajTExMSdOnPB4PAAAAMBsB4cQ+s8hhC6X69KlS2azGT4HIdTW1uZwOFwul9VqDSRcoNlCCLEsOzAw4O9AszazTrMwDKPVaru6uhoaGiwWy8TExPDwMEmSdrvd4XAEBQWNjIxoNJq5w80/txBCFovFbDZPTk7abDar1Wq32+12O0VRLpeLpmmaphmG4TiOIAiJRCKTyZRKpUqlUiqVarVaqVSGhIRIpVKz2Ww0Gk+ePLl161Ycn2epBaQVHx9PEIRGo5FIJFKpVK1Wq1QqhUKhUCg0Go3/KJfLCYLAMOy7Wz8/hxC2tLTs2LGjurq6pKRk7nDfRZ2Xurq6srIyr9fLcdz3dgTwh+A4zv8rx3EAgIqKimXLlg0MDMyOz8v8fQshFB4efvny5TVr1hw/fnx2fGJiIjc3V6fTlZeXu1wu/6Db7TYajSkpKRs3bhwdHb1582ZGRgbLsuXl5QaDIT09va2t7RVki2XZpqamiIiI1tbWqakpvV5fVVXlcrmGh4ejo6Nramo4jtuyZUt+fr7FYrFarZs2bdq8ebPX6z116pRMJpNKpQ0NDQcPHtRqtTabrb29PTIysrGx0ePxzB13Li0IYWFhoV6v7+/v91fH6XQWFRUlJiYqFIrbt28DAPzqhw4dio6OjoqK2r9/P03T/vK1tbWFhIQkJycXFhY6HA6EEABgaGgoJSUlNzf3pbQ6OjooinpxEADQ3Nw8ODiInjcIP52dnQ8fPvzeHYaGhkwm04sdDiFEUdSDBw/m1uK9g3gz/PT/dnuTLGrxYVGLD4tafPiRav0X47gQyEklwQsAAAAASUVORK5CYII=",mindmap="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAD7NJREFUeF7tncuuHLcRhtl+CGXjjXYJ4Ky9tKRsrctSWdsvETiAJMABkn2QV4iWunjvo2eIn8cTsGc40zPTzSqSVcVL/wcwLGnYvBTrO38VyWFPDj9qFjh8/+rJXPlX7vh//3M4fLfR4KXMpcDDVdlp+nL199/dw/TLh+syaqPZZ8XTPoctO+orEC4ArDm8bMPXtR1BCRABHhFbA5BEM55hmA5vTo9ag5DY4xmadzM7nz68TX94308AEGL+uwSC8mkAQ1no/DkAWTHVDEVPCsGe7tWCDyEsg8Lc2weAhNx5X1BsIzVN7wDKxTy7B2ShFu3nEmVKkfr0rCx7h2WXgACKRFZ2nLPsChCAkQjGWvGdhWC7AOTw4tXb0wYdwigBRk77LbvIVYYG5ARG2K+Qcg3Us7TA4IoyJCAAowLDg4IyFCAAowIYt00OBsoQgCD5bgCMQUHpHpDD85e/Orc4Ldugr+y2SwOoSbeAIJzqCLuOQekOEIRTHYFx3dUud+a7AgSq0S0ci8NNfZ316gIQqMYAYNyoyfT549MeRtU8ICc4fCKOn9Es0EFu0jQgCKlGI2JlPI1D0iQgCKl2AEYnIVdzgCCk2h0cTSfwTQGCkGrHcIShNxZyNQMI4AAcZws0BEkTgAAOwHFngUYgqQ4I4AAcmxZoAJKqgOCgIeBgWOCh5qZiNUAAB8M1UCRYoBokVQABHPD8DAtUgcQcEMCR4Rp4pJqSmAICOODpAhYwVRIzQLBaJeAaqOJoAcPVLRNAAAc8W9wCRpCoAwI4xF0DFRoeS1EFBHDAl9UtoKwkaoAADnXXQAPBAofpqda7GvUAef7ygBmEBcwsoASJCiBYzjVzCzR0sYDK8q84IAit4LPVLKCQj4gCAjiquQYaVspHZAFB3gFHbcECgvmIGCDIO1rwDPThZAGxfEQEEIRWcMzmLCCUjxQDAjiacw10SDAfKQcErx+AQ7ZrgeJQqwgQqEe7noGenSxQGGqVAYJVK/hhBxaYPn/M9vPsB6EeHXgGuhgskB1qZQECOOB53Vkgc28kDxCEVt35BzrsslQkGRCoB1ytWwtkJOzpgEA9uvUPdNy51IQ9CRCoB1ysewskqkgaIFCP7v0DA0hTETYgUA+41jAWSFARPiBQj2H8Yx7IX19fxvPNN8c///bb5f//O/15rFGfR8PNRViAQD0G8RIPxRIMalgekvfvnRsRFqaK8ACBelCu1PbnqWDcjmZMUFj7IiQgUI+2fT/au1Iwbiv/73vn/H+j/DB212lAoB59uoM0HMEKXk1++nufNrnvNakiUUCgHp36gRYcI0JCqAgA6ZSBzW6nwuEVwa9ehZWsP59WtCi7jBNuRVUkDgjCK8pN2vrcO/c/fqb75J3bQ7G1OuXref3aOQqWQSCJLfluAoLwivaz5kp4OGJOnerQHDVKrbM5oznnImHWNiD4rnmLU7ndJ8qZcx2ZUpPcetuy7maYFQMEl0+3NYnx3nz6sP25hBNr11/b1hsqsgoIwqvas5XYfiz3kFqWjSmUBICJQ1Yovqoi64AgOVewv2KVsdzD71lIHRWJQfLileIATarmAQL1MJkM2Ua2wh8p9Qi9jSnVCCqyEmbdKQgAkfVd9dpiTiupHmEgWzCOAIi7/976PSBYvVL36bsGqP2GWI8eP3buxx/WS2gAshXOSauV/Sz4Fu/CrDVAsHqlPTk+lvc71yVgcPqokRds5SFjAHK3J3IFCMIrjtcVlKH2KgqqvntUy2EByOGN5DyhrpMFLOEIRtdQkLFDrLsw61pBsLyrw3MNOPxIkIPkzOdVHgJAckyY8gz3AGFKndyyGitLY69iHS27WO49A4L8g+t1ieWoA4SJ1SUVlwbEekk5abCChQGIoDGpqmJnmKhnJT6XDLNisGvkOxLjz6vjHGZdFAT5R54pY09xwiuJYyB/eOTco0fbPZFw3lgepbViJj8j3BoBCNdSReUoQCRDIM3TttQ4JFWqyOByD4cvUc0Kcvj+1RM3HX6Vqx41zRagVq8kHYtqKxdGqt7x1OMqUT8C8uLVW3fA/oc41pRzSQLiO08tCKTeb0X137cpPQbxScis8JSoA5BM+7EeoxxM2rmoUCh0OgaKr8Mfg+HcwJirSizjVS50unnxCMgoBxTD5N7aNtw5K5EQp8ybNSCcsO62/0ubpJwNGxmOo43mRL1/QMJvOs5vvOAMVvfN1gAkB5IU6H3ZUfOOaztcAdLfCV7K+ahJT43HqfrWPqf6KB1iLfvADbdSxzW+cpwt4leygoL0A4j0xGtOeE1A/DRTN5IAjrgFfKLe1RIv5XCpEx7Ka0FC9VdTQSTVRMs+ufNl9dwMSC9LvJSzlRpNI66m+mwFSLBNiqKEK0lHus091Uf8SlYXgOSEVSEhr7ky0xogt6ri/x7u5A2fxa4kTXWw3st3AQgXjth9swES6/tmWwakd+e16H8XgPS8OwxALNxYs42HqelNQko9cpNHKhbPrfd2qgCIpvNa1N04IDH1KHViLfiW0wZALJxYs42GARnhvlkAoum8FnU3DIjVfbOa35IDIBZOrNnGDEibu+hW983GnLg0jAMgms5rUXejgFhfDqB1UwcAsXBi1TbaVBBrQP71T+f+9Md7Q0NBVJ2vh8r7A0TiAoLbmfnpb859+639fFkfNbEfYfcttgmI9f2vAKR7R9YaQJsbhbHYXUNB/vNv577+WsvG2/VCQextnthim4BY5yAAJNFtdlO80X0Q61d91br9EArSOmmNAuLNprX0ejsl1JETzSkEIJrWlai7YUCs8hBqx77EzH955tyzZ8hBSmxY99lOAZH69p/2fbPYKKzr3qWtN/99kN7vmwUgpS5a9/nmAaEcLHenm/o+iIVC+alHDlIXAKr15gGJJethcKnOTEEn6bhUWwCEctG6n8+AtH6zO3eVyTub/9m6XpR752yuKq1NJQCp6+ClrXdzLxblaLeGCFfW+H/nXEmaq0bUBFD9hoJQFqz6eV83K1LOVmrK1FCN0x7VZwDCsWK1MktA/MtznlTrCbdhyuG49dyWkwyrlnVT/QUguTNm8Vynt7tzcxKuCbXgCOFdLMSrDcjapXrWr4jgzpN9uQUgvVw/mvLbmTJouFJT82rNFhXE98nfphi7cdL6NRHUXNX4/OoFOq2vZG0ZKOxn+M+5V4xagBH62xIgVF+2bGzxmogaAFBtDgHIcpABEP/bcXnfbHi7lC+rqRZrBqec0iLEovpAOUr4fG+gLN9R6G3Q7O0m3AlssRzlnNqAUNe25thMM2fL6Y/SM1evgT4B0sdKlpJBVKqtBYj0QobVqp/KJORVCkDy7Jb2VA1AtOEIFhhZSU75hx/q/Aq2WUF6TdTTXNa2dA1AOGHV8qTBMi8Lx3GoVa7RIQEgRpxYA8KBg/ubnzrxHEyocYmG0fRsNRPCqysFQR6iMCuWgFChFReMWzNQY8itV8HcUlUCEClLUvVYOldMPUrPmVHjGElFFuHVvYIgD6FcPu1z6re6r22ZD6TVfin96JFz/vvvWz8Sy8kxSEZSEQCS64WZz9W6UkgjkY6NZRAVWYZXdwqCPCQTgthjNQEpDa1S8hEJlVIwf2KV8wHF5TPnZd7wj02/szBxtE0Up+J3zU5qOK3VfWWadtmq+ya8WlcQ5CHyU1MLEgCSNpccQBBmpdmUXZqzR8GujFlQIy/Ygl06nGMOUbLYbf6xqiAARNLkN3VZKomWw44KyIp6bAOCMEuPEu4OtUQPoCBsK66pxyYgUBG2XcsKcr/kFWvl8WPnfvxhvYQGIFuhopZilVmY+/Td6lV48G4VK3yAw4tc21Yu18qrInoGZCO8iirISUXafEV0ZZ9srnmrpVfrFxsZGXorvOIAgi9RGU1SUTOxFTLJMCu2yKCxpFxkFObDEfWgAUGyzrRy5WIW56Ri6jFoeEUCgmS9suOnNK/5qgjfD+pFQ53epxULr3iAQEVS3LReWWqPpSQEitU9sHqwAIGK1PP55Japg5Gpx9Ip6HwHS8BLHqDsA5R68AHp8eZFWVv2URvHobn3W3HrCq+d6MNCl14SyXkouLkPcjte3JvViQdwHDsMJXxZy1+uFy7b417Y0HNo5W8r+fyR5fusQnOYBRXphJDTO1Fil2ZLjKTj0Mox1YMdYgV7QkUkPMuojhQlSe1Sz3AkqEc6IFCRVFeqW14aks7DqnkyEtQjGZDTihaOn9R1+7TWpU4Pp66ApfXSrDQ390hO0s9hFlTEbDJFG8oFZRAwctQjS0FOKoIzWqLea1hZOGL/+vWl0fBvYTfcr2r5/zrdHd+yZqp65AOC3XVDj0ZTIhZIzD2yQ6zFihZURGTmUIm6BTLhyFaQBSRI2NVnFw2UWiAntCpWkDkXQcJeOnd4XtsCBepRrCBI2LVnF/UXWmDzu+bcetlHTbYqxHfXuaZGOXMLFKqHiIIg1DKfdjTIsYAAHGKAINTizBjKGFqgOLQSSdKXA0aoZTj9aCpqgZJVq9uKi3MQQAJvbcoCQqGVuIKECrH025S77KszwnCI5iBXSvL8JXbZ9+WaLYxWLO9YDkY0xDqrCM5qteAwu+qDZN6hDsi8qgVIduWgVQerEFqp5SBXoRaOolT1m100rgiHWg4CSHbhmvUHqQyHCSBzuAUlqe9Mo/XAAA4zQADJaN5ZeTxGcJgCMkOC5d/KnjVE8yrLuVuWUVnmjU0DIBnCSWsNwhQOcwU575NASWo5WM/tmsNRDRCEWz37aZW+V4GjKiCApIqj9dhoNTiqA4LVrR791bDPhqtVzSTpax3BPomh0/XSVANwNKEg58Qdm4m9uK5+PxuBoylAEG7p+10XLTQER3OAAJIuXFivk4fp6fTLhwe9BtJrNt8o5HYRG4pcSw1R7sEdpnetwdGkgiynG8n7EM4fH0RjIdVtZ5tVECTvO4CjwZCqO0DOoOB4ykjENBtSdQsIEvhB+Gg8pOoakAUk3znnngziMnsZRjeqsZyQ5nOQLe9BAt8RV52pxhCAIInvApCqBw0lLNStgmA5WGL61eroMpxas8YQgEBN1Bw9veKOw6nhAQEo6f4s9sRgYAS7DKUgt5ONRF7M/bcrGhSMXQACRVED5MFN05fp04e3ai00UvHQCgJFEfeyYZJvrmV2BciVovi/HA5vuIbaebndgbGrECvm3Kc8BTvz90baLRRLU+xSQbaAQVLvjl9WavS7GTVUHICsWH0G5RiC7UFZAEWEPADC+LW0AGaEnOUMhB96i9/iY0yJWREAkmHqzoABEBlzjCS9wGh3y8f+dXNfnY7fH8My/2N9HP8IwjR9cb8fcwmoQ/kkQ0HKbRitYX5XY4AnlLxAFP5lDab12z08AOEHICjPnnP/B6B0AiOP7uzBAAAAAElFTkSuQmCC",network=""+new URL("network-0f22586e.png",import.meta.url).href,sdxl=""+new URL("sdxl-7c167940.png",import.meta.url).href,suno=""+new URL("suno-e14fd81c.ico",import.meta.url).href,tencent=""+new URL("tencentlogo-358d1ec1.png",import.meta.url).href,xunfei="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAEsGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjUwIgogICBleGlmOlBpeGVsWURpbWVuc2lvbj0iNTAiCiAgIGV4aWY6Q29sb3JTcGFjZT0iMSIKICAgdGlmZjpJbWFnZVdpZHRoPSI1MCIKICAgdGlmZjpJbWFnZUxlbmd0aD0iNTAiCiAgIHRpZmY6UmVzb2x1dGlvblVuaXQ9IjIiCiAgIHRpZmY6WFJlc29sdXRpb249IjcyLzEiCiAgIHRpZmY6WVJlc29sdXRpb249IjcyLzEiCiAgIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiCiAgIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjMtMTItMjRUMDE6MTM6MjIrMDg6MDAiCiAgIHhtcDpNZXRhZGF0YURhdGU9IjIwMjMtMTItMjRUMDE6MTM6MjIrMDg6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJwcm9kdWNlZCIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWZmaW5pdHkgUGhvdG8gMS4xMC44IgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTEyLTI0VDAxOjEzOjIyKzA4OjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cjw/eHBhY2tldCBlbmQ9InIiPz7O8zxmAAABgmlDQ1BzUkdCIElFQzYxOTY2LTIuMQAAKJF1kc8rRFEUxz8zaMRoFMXCYpIfCz8aoyY2ykgoSWOUwWbmzS81P17vPUm2ylZRYuPXgr+ArbJWikjJljWxYXrOm5maSebczj2f+733nO49F+zBlJLWqz2QzhhaYMLvXggtuh2vOGmhnh66w4qujs7OTlPRvh6wWfGuz6pV+dy/Vh+N6QrYaoVHFFUzhCeFp9cM1eJd4WYlGY4Knwv3anJB4XtLjxT4zeJEgX8s1oKBMbA3CrsTZRwpYyWppYXl5XSkU6tK8T7WS5yxzPycxHbxNnQCTODHzRTjjOFjgGGZffThpV9WVMj35PNnyEquIrPKOhorJEhi0CvqqlSPSYyLHpORYt3q/9++6vFBb6G60w81L6b50QmOHchtm+b3sWnmTqDqGa4ypfzsEQx9ir5d0joOwbUJF9clLbIHl1vQ+qSGtXBeqhK3x+PwfgYNIWi6hbqlQs+K+5w+QnBDvuoG9g+gS867ln8Bk81n+oaq8IsAAAAJcEhZcwAACxMAAAsTAQCanBgAAAY2SURBVGiB7dl9jFRnFQbw351dGKCwUJuO/WAp/XSLQFtpdYwZU5I2Wok1bNOq2ND6ERONVkO1KjE0pmpqsdpEbTQaq8ZUbQJ+BZtq8CODcRItqdriChZCIwoDkuVjdzs7O3P9471blmXu9s7u8odxn+RmMnfO+97nueec95z3HWYwgxnM4H8J0dl+QDVyDa7EjkLs4Nl6Tu5sTTwGnfgYNlQjF1Wjs/Pypl1IqVKLSpXaeLI53IsNnB0x0yqkVKnlUMC5Kc/aIHjn4ukWM21CEhFL8H7cmGIW4SO4D93TKWZahJQqtQ5cKrzxOzBrAvMIH8InTKOYzqlOkIi4XCB3N46jY4xJs8WwCB9Inv957J8qjyl5JBFxBe7Bu7EAXegak/AnMNxieCSE4aZq5NKp8GAKQkqVWieuEkTcjfnJT/NxIc5Jvv8bVYykTPUefKYauWqyXJikkHEi7nKKNOFNX41uKMQG8EccnWDKO3F/NbJsMnyYhJAxIj7qTBGjuA49yUoGv8AeNFKmjYRFYlM1sqJdTrQpJCHWLXjiTsxNMV2KNwg1BZ7FEziIOGVMJ9ZiYzVyRTu8aN8jC7Ee75IuYpTULbihVKnNKsQa+AG+hyPSxczGW/HhamRRO8QyCylVarOFt/xepxJ7IrwKtwv1RSF2GI/iEeyWHmbnJON6s3KjPY+cJyyX3RntO/AW3Faq1M6HQuyfgpiN+A6e19o752N9NXJZVnKZqmqpUpuFNfi+1sk9Ef6Bz2FLuZg/AUk1X4qVWJFcVybXqLcP48FC7EtZHpJVyEJ8TciN8WjgOQyimDLFXwQx28rF/MDYH6qR+ViMCwRvr8JNwsr4a6wrxBMu3cgeWufi5pTf9uEbeAx7U2xWCOH0tlKldppHC7GTy9f2LV6+tu+FXYte/TgeElr+7wqF9bosBLMKWSbE7Xg08Gf8GD/HFqHXGo9ICKNNWDdeDFbj23es3rJ5+dq+JfvnX7IdX8SPcE0WglmFrNA6DI/iaRxKrsfwM9Ra2EbCSvYprEz6tFE8gzcKK+JX1tz81L23r956EFuFFudlkVXI0pT7R7C7XMw3y8V8U6jeX8Y2rRvF0bl6nV6HdiSfXXgN7vnbomWbPn7Dw1X8MgvBrELSitOgIAaUi/kR/BUP4CcYajEmSsjmx9w7PMY2J+TG259cvOYuE/doLyGrkLTVLTZuv1Eu5utCS7JRqOTHWowbv/FqOr2eRIKY25av7bskC8GsQlolMCE8ztifJ57Zh834U4txz6E+5vsizGvB7WK8LgvBrEIOpNx/Ba0bvCRn+p2Z+AP4YfI5itdq7fW5uCgLwaxb3WdT7hewqlSpLRit2lCq1LpwidBgrhpjP4xPY2e5mB/ba61Lmb/pdM+lIqtHnhYSezw6cC3eNO7+oHCicrWQ1MfxK9yKr48VXejtuxzvSHnugBCiL4usHjmG7UKLPR49eGepUtuJfeViPk5yZFtypaLQ2zdH6ApanbrEQm36QxaCWT0yGtetWu8c3oz7xBYXnzrZ0cLmNBR6+6JCb1+X0NLfmGLWj+3VrT3Tt/yWi/lh/E7Ye7fCPKyPm/EXiFYte+TQggvX7T5DUKG3L1fo7ZsvNITfFA4eWglvCkdEj2fhRxun8aVKLS/E+LeECnwmYkYGGnsG9w89MbB36MmhAy8eqB8fGU3WTmFxuCUR0C39RR7B5urWnoey8mvrlC/ZIN0v9ERz0uwaQw0n9wwOntg9+MLwf4YPjgw04ngkvkBoTybaIos6oxc1bYub8fuqW3v6s3JrV0gkhMXDwp4hP5H9yImGgX2DBvYNqffXNWpNcT0WN2LxaD8QEeUiuVmRXD430jG34/cdc3IffP7B7l3tcGv73DXpWq/FZ1GSYccYN2P1/hHDR+tx/VhdY6AZNevNOI5FuY4o7pib09nVWZ993uxKvjD7kzten8+0Uk1JCC+JWSkcWt+EV052rgT9+C0eKBfzOyczwaQfnoTZEmH7e6tQTxa2Oc0Qdgmt+lfLxfy/Jstnykf6pUptHq4XiuX1uEzwUFr+1IVCt1fYXf4Uv0l6s0lj2v5oSbavPYKYHuEwocup1a0mtCqH8HehK34mqVEzmMEMZvB/hv8CkprPZL58AJQAAAAASUVORK5CYII=",zhipu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAEsGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS41LjAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iCiAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIKICAgZXhpZjpQaXhlbFhEaW1lbnNpb249IjUwIgogICBleGlmOlBpeGVsWURpbWVuc2lvbj0iNTAiCiAgIGV4aWY6Q29sb3JTcGFjZT0iMSIKICAgdGlmZjpJbWFnZVdpZHRoPSI1MCIKICAgdGlmZjpJbWFnZUxlbmd0aD0iNTAiCiAgIHRpZmY6UmVzb2x1dGlvblVuaXQ9IjIiCiAgIHRpZmY6WFJlc29sdXRpb249IjcyLzEiCiAgIHRpZmY6WVJlc29sdXRpb249IjcyLzEiCiAgIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiCiAgIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIKICAgeG1wOk1vZGlmeURhdGU9IjIwMjMtMTItMjRUMDA6Mjg6MDUrMDg6MDAiCiAgIHhtcDpNZXRhZGF0YURhdGU9IjIwMjMtMTItMjRUMDA6Mjg6MDUrMDg6MDAiPgogICA8eG1wTU06SGlzdG9yeT4KICAgIDxyZGY6U2VxPgogICAgIDxyZGY6bGkKICAgICAgc3RFdnQ6YWN0aW9uPSJwcm9kdWNlZCIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWZmaW5pdHkgUGhvdG8gMS4xMC44IgogICAgICBzdEV2dDp3aGVuPSIyMDIzLTEyLTI0VDAwOjI4OjA1KzA4OjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cjw/eHBhY2tldCBlbmQ9InIiPz56A23nAAABgmlDQ1BzUkdCIElFQzYxOTY2LTIuMQAAKJF1kc8rRFEUxz8zaMRoFMXCYpIfCz8aoyY2ykgoSWOUwWbmzS81P17vPUm2ylZRYuPXgr+ArbJWikjJljWxYXrOm5maSebczj2f+733nO49F+zBlJLWqz2QzhhaYMLvXggtuh2vOGmhnh66w4qujs7OTlPRvh6wWfGuz6pV+dy/Vh+N6QrYaoVHFFUzhCeFp9cM1eJd4WYlGY4Knwv3anJB4XtLjxT4zeJEgX8s1oKBMbA3CrsTZRwpYyWppYXl5XSkU6tK8T7WS5yxzPycxHbxNnQCTODHzRTjjOFjgGGZffThpV9WVMj35PNnyEquIrPKOhorJEhi0CvqqlSPSYyLHpORYt3q/9++6vFBb6G60w81L6b50QmOHchtm+b3sWnmTqDqGa4ypfzsEQx9ir5d0joOwbUJF9clLbIHl1vQ+qSGtXBeqhK3x+PwfgYNIWi6hbqlQs+K+5w+QnBDvuoG9g+gS867ln8Bk81n+oaq8IsAAAAJcEhZcwAACxMAAAsTAQCanBgAAAV7SURBVGiB7ZldbBRVFMd/d3a37RYGho8aW6VIMUJMCdaga1CBATQKimgkSogkLMRo0AdUDEZM1FR9ABONxoAxo4mKhMT4UNOgESb4EZ0ooMADn5HPoKgwZdrSbmd3fJjdcrvt7sz2423/yc3mnnvvuec/M/fcc85CGWWUUUYZZZSBGOkNNN2pBKYBjcDNQDdwHjgF/GCbatdw7DPsRDTdiQDLgSX4xt8ERApM7wC+Ad61TfX7oew7bEQ03VGAZcCrwPRBqPgceN421b8Hs/+QiWi6I4ClwGvAjCGqOw7cbZvqX6UuHBIRTXemADuAWQWmnAQOAoeyv4eBWuBWoAm4A6jLW3MImGOb6qVSbBk0EU13pgPfAdcNMLwH2Gib6o8BOuLAFmBl3tBm21TXl2LPoIhoutOEf0hr8oZ+Bl4Bdtum6oXUJYC1wDtcdQpdQINtqufD2lQyEU13ZgOtwFhJfBl4AmiZNmV0BTAFuBGYmm0TgdP4Z+BEtp21DJGR9H4GrJB0brRN9Y0RIaLpznygBaiWxP+OGRVdXXtN1X3AA/ifmhJCXTc+sU+ArUf+bJ8DfC2Nt9imuiSsbaGJaLozGjiKf1hz+Ke+Nr4/XhVZSDjjC6Etk/E+PHaqYw0wLis7b5tqviMoiGgJm72ARCISEV2T6+I1sahyb4i1bsBeYxVFrK+sULzuVO/XVl1kfj+EIqLpTh3Qx4vU18arYtF+L+Es8C3+GZDPQxu+m50qtWnAYiCeW9zjevIX4pbAI/QbaUZ6QuPGxKiI9SFxENgEbLcM0VNAx7ls6w1FEkmvBngGWOumvQmZzFVHF4mIkj7VwDOi6c4twL7cXEURNEyqJqIIgD+ADZYhdpayaT4SSa/6Uluq+cLF1LqcLF4VOVBfG58PjLIMcTpIRxjWq5EIT9QqciR+A+YNlQSAZYjOCxdTqiyrjCl78SOGzWF0hCEyT+5oY2IAe4F7LEPYoSwNgKY7M/EfmG+UwFMivAUkgGWJpKcH6ShKRNOd8fihOACxmIIQtDG8JATwNtJbVxTxZs24yrPAU1nRuoHWygh6IxPlTkVUAOy0DFFSQBeARcACqX/STXvNwJNcdfdNQUqCiMTlTtZTtYS3sTg03WkEPsoTb8hmjfLFe30i6U0opiuISLpPx3ePe0PaWRSa7tyGHyVfK4l/wU8LAP7LW9JQTF8QkSNA773Q3pnGTXsLw5laGJruzAV2AeMlsQ08LUXNC/KWFXXBRYnYptqjKBzL9TMZj/YOd1V4k/tD052lwE5AdrcXgLm2qf4OkEh6o+jrLdssQxRNgQPdr+exRe5fupxqaljaNTek3b3QdGe2pju7gK+AKmnoDH56e0CSrQQqpX5rkP4wRLYqCr2uNtXjCdvp2V13f2d+VjcgNN2ZpelOK/ATMD9v+Dhwl22qR3OCRNJ7HHgvb96moH1ChfE197Qv73G9bflyRaE1k2EPfgizH/88NWbbDHy3eWcBtfuAxXKhIZH0HsOvpsjloy8tQzw6LEQA6hZ1NndeSb8cdn4RHMOvuGy3TTUNkEh6DcBz+BegTOIIcLtliMtBSkvKEG94qOt9p91dm86ESsfzcRJ4HfjUNlUXIJH0ZgEvAo/Qv4h3DlhoGeJwGOUl5+wzV7gPtrW7O5wOtyqdDiSUUgQnolFl26Taql+jEWUyffORxgLrLOBhyxAjV3wASCS9es/zXrrSnVl1pStd6aY9XNdDCKisUHrbAIlXEM7gV1M+sAxRUk14SAW6bGL0LH45Z3zA9GI4hO+ZviiSmBXFsNR+sxfYGvwAcCowmeLZZwd+CnwU+NgyROA9EYQR+VshkfSi+GTkutYpsjm8ZYiSa7tllFFGGWWUUUYI/A/6RZ4aHhranwAAAABJRU5ErkJggg==",_hoisted_1$j=["src"],_hoisted_2$i=["src"],_hoisted_3$h=["src"],_hoisted_4$d=["src"],_hoisted_5$d={key:4,class:"select-none inline-flex h-7 w-7 items-center justify-center rounded-full border border-gray-200 dark:border-gray-700 border-solid dark:bg-gray-500 text-gray-600 dark:text-white font-semibold text-base"},_hoisted_6$c=createBaseVNode("span",{class:"flex items-center justify-center w-full h-full"}," AI ",-1),_hoisted_7$b=[_hoisted_6$c],_sfc_main$i=defineComponent({__name:"Avatar",props:{image:{type:Boolean},model:{},modelAvatar:{}},setup(b){const r=b,m=useChatStore(),w=computed(()=>{var a,g,n,c,R,v,e,L,O,B,P,S,_,l,y;if((a=r.model)!=null&&a.includes("gpt"))return gpt4logo;if((g=r.model)!=null&&g.includes("dall-e"))return dalle;if((n=r.model)!=null&&n.includes("midjourney"))return midjourney;if((c=r.model)!=null&&c.includes("gemini"))return gemini;if((R=r.model)!=null&&R.includes("360"))return logo360;if((v=r.model)!=null&&v.includes("qwen"))return ali;if((e=r.model)!=null&&e.includes("ERNIE"))return baidu;if((L=r.model)!=null&&L.includes("claude"))return claude;if((O=r.model)!=null&&O.includes("hunyuan"))return tencent;if((B=r.model)!=null&&B.includes("SparkDesk"))return xunfei;if((P=r.model)!=null&&P.includes("glm"))return zhipu;if((S=r.model)!=null&&S.includes("suno"))return suno;if((_=r.model)!=null&&_.includes("network"))return network;if((l=r.model)!=null&&l.includes("mindmap"))return mindmap;if((y=r.model)!=null&&y.includes("stable-diffusion"))return sdxl}),U=useAuthStore(),k=computed(()=>{var g;return((g=x.value)==null?void 0:g.appLogo)||U.globalConfig.robotAvatar}),x=computed(()=>m.groupList.find(a=>a.uuid===m.active));return(a,g)=>unref(isString$1)(a.modelAvatar)&&a.modelAvatar.length>0?(openBlock(),createElementBlock("img",{key:0,class:"inline-flex h-7 w-7 items-center justify-center rounded-full border da r border-gray-100 dark:border-gray-750 border-solid shadow-sm",src:a.modelAvatar,alt:"Robot Avatar"},null,8,_hoisted_1$j)):unref(isString$1)(k.value)&&k.value.length>0?(openBlock(),createElementBlock("img",{key:1,class:"inline-flex h-7 w-7 items-center justify-center rounded-full border border-gray-100 dark:border-gray-750 border-solid shadow-sm",src:k.value,alt:"Robot Avatar"},null,8,_hoisted_2$i)):w.value?(openBlock(),createElementBlock("img",{key:2,class:"inline-flex h-7 w-7 items-center justify-center rounded-full border border-gray-100 dark:border-gray-750 border-solid shadow-sm",src:w.value,alt:"Robot Avatar"},null,8,_hoisted_3$h)):unref(isString$1)(k.value)&&k.value.length>0?(openBlock(),createElementBlock("img",{key:3,class:"inline-flex h-7 w-7 items-center justify-center rounded-full border border-gray-100 dark:border-gray-750 border-solid shadow-sm",src:k.value,alt:"Robot Avatar"},null,8,_hoisted_4$d)):(openBlock(),createElementBlock("span",_hoisted_5$d,_hoisted_7$b))}});var katex=requireKatex();function isValidDelim(b,r){var m,w,U=b.posMax,k=!0,x=!0;return m=r>0?b.src.charCodeAt(r-1):-1,w=r+1<=U?b.src.charCodeAt(r+1):-1,(m===32||m===9||w>=48&&w<=57)&&(x=!1),(w===32||w===9)&&(k=!1),{can_open:k,can_close:x}}function math_inline(b,r){var m,w,U,k,x;if(b.src[b.pos]!=="$")return!1;if(k=isValidDelim(b,b.pos),!k.can_open)return r||(b.pending+="$"),b.pos+=1,!0;for(m=b.pos+1,w=m;(w=b.src.indexOf("$",w))!==-1;){for(x=w-1;b.src[x]==="\\";)x-=1;if((w-x)%2==1)break;w+=1}return w===-1?(r||(b.pending+="$"),b.pos=m,!0):w-m===0?(r||(b.pending+="$$"),b.pos=m+1,!0):(k=isValidDelim(b,w),k.can_close?(r||(U=b.push("math_inline","math",0),U.markup="$",U.content=b.src.slice(m,w)),b.pos=w+1,!0):(r||(b.pending+="$"),b.pos=m,!0))}function math_block(b,r,m,w){var U,k,x,a,g=!1,n,c=b.bMarks[r]+b.tShift[r],R=b.eMarks[r];if(c+2>R||b.src.slice(c,c+2)!=="$$")return!1;if(c+=2,U=b.src.slice(c,R),w)return!0;for(U.trim().slice(-2)==="$$"&&(U=U.trim().slice(0,-2),g=!0),x=r;!g&&(x++,!(x>=m||(c=b.bMarks[x]+b.tShift[x],R=b.eMarks[x],c/g,">").replace(/"/g,""").replace(/'/g,"'")}var markdownItKatex=function(r,m){m=m||{},m.katex&&(katex=m.katex),m.blockClass||(m.blockClass="");var w=function(a){m.displayMode=!1;try{return katex.renderToString(a,m)}catch(g){return m.throwOnError&&console.log(g),`${escapeHtml$1(a)}`}},U=function(a,g){return w(a[g].content)},k=function(a){m.displayMode=!0;try{return`

`+katex.renderToString(a,m)+"

"}catch(g){return m.throwOnError&&console.log(g),`

${escapeHtml$1(a)}

`}},x=function(a,g){return k(a[g].content)+` `};r.inline.ruler.after("escape","math_inline",math_inline),r.block.ruler.after("blockquote","math_block",math_block,{alt:["paragraph","reference","blockquote","list"]}),r.renderer.rules.math_inline=U,r.renderer.rules.math_block=x};const mdKatex=getDefaultExportFromCjs(markdownItKatex);function deepFreeze(b){return b instanceof Map?b.clear=b.delete=b.set=function(){throw new Error("map is read-only")}:b instanceof Set&&(b.add=b.clear=b.delete=function(){throw new Error("set is read-only")}),Object.freeze(b),Object.getOwnPropertyNames(b).forEach(r=>{const m=b[r],w=typeof m;(w==="object"||w==="function")&&!Object.isFrozen(m)&&deepFreeze(m)}),b}class Response{constructor(r){r.data===void 0&&(r.data={}),this.data=r.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function escapeHTML(b){return b.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function inherit$1(b,...r){const m=Object.create(null);for(const w in b)m[w]=b[w];return r.forEach(function(w){for(const U in w)m[U]=w[U]}),m}const SPAN_CLOSE="",emitsWrappingTags=b=>!!b.scope,scopeToCSSClass=(b,{prefix:r})=>{if(b.startsWith("language:"))return b.replace("language:","language-");if(b.includes(".")){const m=b.split(".");return[`${r}${m.shift()}`,...m.map((w,U)=>`${w}${"_".repeat(U+1)}`)].join(" ")}return`${r}${b}`};class HTMLRenderer{constructor(r,m){this.buffer="",this.classPrefix=m.classPrefix,r.walk(this)}addText(r){this.buffer+=escapeHTML(r)}openNode(r){if(!emitsWrappingTags(r))return;const m=scopeToCSSClass(r.scope,{prefix:this.classPrefix});this.span(m)}closeNode(r){emitsWrappingTags(r)&&(this.buffer+=SPAN_CLOSE)}value(){return this.buffer}span(r){this.buffer+=``}}const newNode=(b={})=>{const r={children:[]};return Object.assign(r,b),r};class TokenTree{constructor(){this.rootNode=newNode(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(r){this.top.children.push(r)}openNode(r){const m=newNode({scope:r});this.add(m),this.stack.push(m)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(r){return this.constructor._walk(r,this.rootNode)}static _walk(r,m){return typeof m=="string"?r.addText(m):m.children&&(r.openNode(m),m.children.forEach(w=>this._walk(r,w)),r.closeNode(m)),r}static _collapse(r){typeof r!="string"&&r.children&&(r.children.every(m=>typeof m=="string")?r.children=[r.children.join("")]:r.children.forEach(m=>{TokenTree._collapse(m)}))}}class TokenTreeEmitter extends TokenTree{constructor(r){super(),this.options=r}addText(r){r!==""&&this.add(r)}startScope(r){this.openNode(r)}endScope(){this.closeNode()}__addSublanguage(r,m){const w=r.root;m&&(w.scope=`language:${m}`),this.add(w)}toHTML(){return new HTMLRenderer(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function source(b){return b?typeof b=="string"?b:b.source:null}function lookahead(b){return concat("(?=",b,")")}function anyNumberOfTimes(b){return concat("(?:",b,")*")}function optional(b){return concat("(?:",b,")?")}function concat(...b){return b.map(m=>source(m)).join("")}function stripOptionsFromArgs(b){const r=b[b.length-1];return typeof r=="object"&&r.constructor===Object?(b.splice(b.length-1,1),r):{}}function either(...b){return"("+(stripOptionsFromArgs(b).capture?"":"?:")+b.map(w=>source(w)).join("|")+")"}function countMatchGroups(b){return new RegExp(b.toString()+"|").exec("").length-1}function startsWith(b,r){const m=b&&b.exec(r);return m&&m.index===0}const BACKREF_RE=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function _rewriteBackreferences(b,{joinWith:r}){let m=0;return b.map(w=>{m+=1;const U=m;let k=source(w),x="";for(;k.length>0;){const a=BACKREF_RE.exec(k);if(!a){x+=k;break}x+=k.substring(0,a.index),k=k.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?x+="\\"+String(Number(a[1])+U):(x+=a[0],a[0]==="("&&m++)}return x}).map(w=>`(${w})`).join(r)}const MATCH_NOTHING_RE=/\b\B/,IDENT_RE="[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",NUMBER_RE="\\b\\d+(\\.\\d+)?",C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",BINARY_NUMBER_RE="\\b(0b[01]+)",RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG=(b={})=>{const r=/^#![ ]*\//;return b.binary&&(b.begin=concat(r,/.*\b/,b.binary,/\b.*/)),inherit$1({scope:"meta",begin:r,end:/$/,relevance:0,"on:begin":(m,w)=>{m.index!==0&&w.ignoreMatch()}},b)},BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},APOS_STRING_MODE={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[BACKSLASH_ESCAPE]},QUOTE_STRING_MODE={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[BACKSLASH_ESCAPE]},PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT=function(b,r,m={}){const w=inherit$1({scope:"comment",begin:b,end:r,contains:[]},m);w.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const U=either("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return w.contains.push({begin:concat(/[ ]+/,"(",U,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),w},C_LINE_COMMENT_MODE=COMMENT("//","$"),C_BLOCK_COMMENT_MODE=COMMENT("/\\*","\\*/"),HASH_COMMENT_MODE=COMMENT("#","$"),NUMBER_MODE={scope:"number",begin:NUMBER_RE,relevance:0},C_NUMBER_MODE={scope:"number",begin:C_NUMBER_RE,relevance:0},BINARY_NUMBER_MODE={scope:"number",begin:BINARY_NUMBER_RE,relevance:0},REGEXP_MODE={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[BACKSLASH_ESCAPE]}]},TITLE_MODE={scope:"title",begin:IDENT_RE,relevance:0},UNDERSCORE_TITLE_MODE={scope:"title",begin:UNDERSCORE_IDENT_RE,relevance:0},METHOD_GUARD={begin:"\\.\\s*"+UNDERSCORE_IDENT_RE,relevance:0},END_SAME_AS_BEGIN=function(b){return Object.assign(b,{"on:begin":(r,m)=>{m.data._beginMatch=r[1]},"on:end":(r,m)=>{m.data._beginMatch!==r[1]&&m.ignoreMatch()}})};var MODES=Object.freeze({__proto__:null,APOS_STRING_MODE,BACKSLASH_ESCAPE,BINARY_NUMBER_MODE,BINARY_NUMBER_RE,COMMENT,C_BLOCK_COMMENT_MODE,C_LINE_COMMENT_MODE,C_NUMBER_MODE,C_NUMBER_RE,END_SAME_AS_BEGIN,HASH_COMMENT_MODE,IDENT_RE,MATCH_NOTHING_RE,METHOD_GUARD,NUMBER_MODE,NUMBER_RE,PHRASAL_WORDS_MODE,QUOTE_STRING_MODE,REGEXP_MODE,RE_STARTERS_RE,SHEBANG,TITLE_MODE,UNDERSCORE_IDENT_RE,UNDERSCORE_TITLE_MODE});function skipIfHasPrecedingDot(b,r){b.input[b.index-1]==="."&&r.ignoreMatch()}function scopeClassName(b,r){b.className!==void 0&&(b.scope=b.className,delete b.className)}function beginKeywords(b,r){r&&b.beginKeywords&&(b.begin="\\b("+b.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",b.__beforeBegin=skipIfHasPrecedingDot,b.keywords=b.keywords||b.beginKeywords,delete b.beginKeywords,b.relevance===void 0&&(b.relevance=0))}function compileIllegal(b,r){Array.isArray(b.illegal)&&(b.illegal=either(...b.illegal))}function compileMatch(b,r){if(b.match){if(b.begin||b.end)throw new Error("begin & end are not supported with match");b.begin=b.match,delete b.match}}function compileRelevance(b,r){b.relevance===void 0&&(b.relevance=1)}const beforeMatchExt=(b,r)=>{if(!b.beforeMatch)return;if(b.starts)throw new Error("beforeMatch cannot be used with starts");const m=Object.assign({},b);Object.keys(b).forEach(w=>{delete b[w]}),b.keywords=m.keywords,b.begin=concat(m.beforeMatch,lookahead(m.begin)),b.starts={relevance:0,contains:[Object.assign(m,{endsParent:!0})]},b.relevance=0,delete m.beforeMatch},COMMON_KEYWORDS=["of","and","for","in","not","or","if","then","parent","list","value"],DEFAULT_KEYWORD_SCOPE="keyword";function compileKeywords(b,r,m=DEFAULT_KEYWORD_SCOPE){const w=Object.create(null);return typeof b=="string"?U(m,b.split(" ")):Array.isArray(b)?U(m,b):Object.keys(b).forEach(function(k){Object.assign(w,compileKeywords(b[k],r,k))}),w;function U(k,x){r&&(x=x.map(a=>a.toLowerCase())),x.forEach(function(a){const g=a.split("|");w[g[0]]=[k,scoreForKeyword(g[0],g[1])]})}}function scoreForKeyword(b,r){return r?Number(r):commonKeyword(b)?0:1}function commonKeyword(b){return COMMON_KEYWORDS.includes(b.toLowerCase())}const seenDeprecations={},error$1=b=>{console.error(b)},warn=(b,...r)=>{console.log(`WARN: ${b}`,...r)},deprecated=(b,r)=>{seenDeprecations[`${b}/${r}`]||(console.log(`Deprecated as of ${b}. ${r}`),seenDeprecations[`${b}/${r}`]=!0)},MultiClassError=new Error;function remapScopeNames(b,r,{key:m}){let w=0;const U=b[m],k={},x={};for(let a=1;a<=r.length;a++)x[a+w]=U[a],k[a+w]=!0,w+=countMatchGroups(r[a-1]);b[m]=x,b[m]._emit=k,b[m]._multi=!0}function beginMultiClass(b){if(Array.isArray(b.begin)){if(b.skip||b.excludeBegin||b.returnBegin)throw error$1("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),MultiClassError;if(typeof b.beginScope!="object"||b.beginScope===null)throw error$1("beginScope must be object"),MultiClassError;remapScopeNames(b,b.begin,{key:"beginScope"}),b.begin=_rewriteBackreferences(b.begin,{joinWith:""})}}function endMultiClass(b){if(Array.isArray(b.end)){if(b.skip||b.excludeEnd||b.returnEnd)throw error$1("skip, excludeEnd, returnEnd not compatible with endScope: {}"),MultiClassError;if(typeof b.endScope!="object"||b.endScope===null)throw error$1("endScope must be object"),MultiClassError;remapScopeNames(b,b.end,{key:"endScope"}),b.end=_rewriteBackreferences(b.end,{joinWith:""})}}function scopeSugar(b){b.scope&&typeof b.scope=="object"&&b.scope!==null&&(b.beginScope=b.scope,delete b.scope)}function MultiClass(b){scopeSugar(b),typeof b.beginScope=="string"&&(b.beginScope={_wrap:b.beginScope}),typeof b.endScope=="string"&&(b.endScope={_wrap:b.endScope}),beginMultiClass(b),endMultiClass(b)}function compileLanguage(b){function r(x,a){return new RegExp(source(x),"m"+(b.case_insensitive?"i":"")+(b.unicodeRegex?"u":"")+(a?"g":""))}class m{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,g){g.position=this.position++,this.matchIndexes[this.matchAt]=g,this.regexes.push([g,a]),this.matchAt+=countMatchGroups(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(g=>g[1]);this.matcherRe=r(_rewriteBackreferences(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const g=this.matcherRe.exec(a);if(!g)return null;const n=g.findIndex((R,v)=>v>0&&R!==void 0),c=this.matchIndexes[n];return g.splice(0,n),Object.assign(g,c)}}class w{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const g=new m;return this.rules.slice(a).forEach(([n,c])=>g.addRule(n,c)),g.compile(),this.multiRegexes[a]=g,g}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,g){this.rules.push([a,g]),g.type==="begin"&&this.count++}exec(a){const g=this.getMatcher(this.regexIndex);g.lastIndex=this.lastIndex;let n=g.exec(a);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,n=c.exec(a)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function U(x){const a=new w;return x.contains.forEach(g=>a.addRule(g.begin,{rule:g,type:"begin"})),x.terminatorEnd&&a.addRule(x.terminatorEnd,{type:"end"}),x.illegal&&a.addRule(x.illegal,{type:"illegal"}),a}function k(x,a){const g=x;if(x.isCompiled)return g;[scopeClassName,compileMatch,MultiClass,beforeMatchExt].forEach(c=>c(x,a)),b.compilerExtensions.forEach(c=>c(x,a)),x.__beforeBegin=null,[beginKeywords,compileIllegal,compileRelevance].forEach(c=>c(x,a)),x.isCompiled=!0;let n=null;return typeof x.keywords=="object"&&x.keywords.$pattern&&(x.keywords=Object.assign({},x.keywords),n=x.keywords.$pattern,delete x.keywords.$pattern),n=n||/\w+/,x.keywords&&(x.keywords=compileKeywords(x.keywords,b.case_insensitive)),g.keywordPatternRe=r(n,!0),a&&(x.begin||(x.begin=/\B|\b/),g.beginRe=r(g.begin),!x.end&&!x.endsWithParent&&(x.end=/\B|\b/),x.end&&(g.endRe=r(g.end)),g.terminatorEnd=source(g.end)||"",x.endsWithParent&&a.terminatorEnd&&(g.terminatorEnd+=(x.end?"|":"")+a.terminatorEnd)),x.illegal&&(g.illegalRe=r(x.illegal)),x.contains||(x.contains=[]),x.contains=[].concat(...x.contains.map(function(c){return expandOrCloneMode(c==="self"?x:c)})),x.contains.forEach(function(c){k(c,g)}),x.starts&&k(x.starts,a),g.matcher=U(g),g}if(b.compilerExtensions||(b.compilerExtensions=[]),b.contains&&b.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return b.classNameAliases=inherit$1(b.classNameAliases||{}),k(b)}function dependencyOnParent(b){return b?b.endsWithParent||dependencyOnParent(b.starts):!1}function expandOrCloneMode(b){return b.variants&&!b.cachedVariants&&(b.cachedVariants=b.variants.map(function(r){return inherit$1(b,{variants:null},r)})),b.cachedVariants?b.cachedVariants:dependencyOnParent(b)?inherit$1(b,{starts:b.starts?inherit$1(b.starts):null}):Object.isFrozen(b)?inherit$1(b):b}var version$1="11.9.0";class HTMLInjectionError extends Error{constructor(r,m){super(r),this.name="HTMLInjectionError",this.html=m}}const escape$1=escapeHTML,inherit=inherit$1,NO_MATCH=Symbol("nomatch"),MAX_KEYWORD_HITS=7,HLJS=function(b){const r=Object.create(null),m=Object.create(null),w=[];let U=!0;const k="Could not find the language '{}', did you forget to load/include a language module?",x={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:TokenTreeEmitter};function g(X){return a.noHighlightRe.test(X)}function n(X){let q=X.className+" ";q+=X.parentNode?X.parentNode.className:"";const $=a.languageDetectRe.exec(q);if($){const fe=N($[1]);return fe||(warn(k.replace("{}",$[1])),warn("Falling back to no-highlight mode for this block.",X)),fe?$[1]:"no-highlight"}return q.split(/\s+/).find(fe=>g(fe)||N(fe))}function c(X,q,$){let fe="",Q="";typeof q=="object"?(fe=X,$=q.ignoreIllegals,Q=q.language):(deprecated("10.7.0","highlight(lang, code, ...args) has been deprecated."),deprecated("10.7.0",`Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277`),Q=X,fe=q),$===void 0&&($=!0);const ie={code:fe,language:Q};H("before:highlight",ie);const Te=ie.result?ie.result:R(ie.language,ie.code,$);return Te.code=ie.code,H("after:highlight",Te),Te}function R(X,q,$,fe){const Q=Object.create(null);function ie(Oe,Ee){return Oe.keywords[Ee]}function Te(){if(!xe.keywords){ke.addText(De);return}let Oe=0;xe.keywordPatternRe.lastIndex=0;let Ee=xe.keywordPatternRe.exec(De),Ae="";for(;Ee;){Ae+=De.substring(Oe,Ee.index);const Ve=Ce.case_insensitive?Ee[0].toLowerCase():Ee[0],$e=ie(xe,Ve);if($e){const[Ue,He]=$e;if(ke.addText(Ae),Ae="",Q[Ve]=(Q[Ve]||0)+1,Q[Ve]<=MAX_KEYWORD_HITS&&(Fe+=He),Ue.startsWith("_"))Ae+=Ee[0];else{const Qe=Ce.classNameAliases[Ue]||Ue;ce(Ee[0],Qe)}}else Ae+=Ee[0];Oe=xe.keywordPatternRe.lastIndex,Ee=xe.keywordPatternRe.exec(De)}Ae+=De.substring(Oe),ke.addText(Ae)}function me(){if(De==="")return;let Oe=null;if(typeof xe.subLanguage=="string"){if(!r[xe.subLanguage]){ke.addText(De);return}Oe=R(xe.subLanguage,De,!0,Ne[xe.subLanguage]),Ne[xe.subLanguage]=Oe._top}else Oe=e(De,xe.subLanguage.length?xe.subLanguage:null);xe.relevance>0&&(Fe+=Oe.relevance),ke.__addSublanguage(Oe._emitter,Oe.language)}function K(){xe.subLanguage!=null?me():Te(),De=""}function ce(Oe,Ee){Oe!==""&&(ke.startScope(Ee),ke.addText(Oe),ke.endScope())}function de(Oe,Ee){let Ae=1;const Ve=Ee.length-1;for(;Ae<=Ve;){if(!Oe._emit[Ae]){Ae++;continue}const $e=Ce.classNameAliases[Oe[Ae]]||Oe[Ae],Ue=Ee[Ae];$e?ce(Ue,$e):(De=Ue,Te(),De=""),Ae++}}function Z(Oe,Ee){return Oe.scope&&typeof Oe.scope=="string"&&ke.openNode(Ce.classNameAliases[Oe.scope]||Oe.scope),Oe.beginScope&&(Oe.beginScope._wrap?(ce(De,Ce.classNameAliases[Oe.beginScope._wrap]||Oe.beginScope._wrap),De=""):Oe.beginScope._multi&&(de(Oe.beginScope,Ee),De="")),xe=Object.create(Oe,{parent:{value:xe}}),xe}function ae(Oe,Ee,Ae){let Ve=startsWith(Oe.endRe,Ae);if(Ve){if(Oe["on:end"]){const $e=new Response(Oe);Oe["on:end"](Ee,$e),$e.isMatchIgnored&&(Ve=!1)}if(Ve){for(;Oe.endsParent&&Oe.parent;)Oe=Oe.parent;return Oe}}if(Oe.endsWithParent)return ae(Oe.parent,Ee,Ae)}function he(Oe){return xe.matcher.regexIndex===0?(De+=Oe[0],1):(Le=!0,0)}function we(Oe){const Ee=Oe[0],Ae=Oe.rule,Ve=new Response(Ae),$e=[Ae.__beforeBegin,Ae["on:begin"]];for(const Ue of $e)if(Ue&&(Ue(Oe,Ve),Ve.isMatchIgnored))return he(Ee);return Ae.skip?De+=Ee:(Ae.excludeBegin&&(De+=Ee),K(),!Ae.returnBegin&&!Ae.excludeBegin&&(De=Ee)),Z(Ae,Oe),Ae.returnBegin?0:Ee.length}function _e(Oe){const Ee=Oe[0],Ae=q.substring(Oe.index),Ve=ae(xe,Oe,Ae);if(!Ve)return NO_MATCH;const $e=xe;xe.endScope&&xe.endScope._wrap?(K(),ce(Ee,xe.endScope._wrap)):xe.endScope&&xe.endScope._multi?(K(),de(xe.endScope,Oe)):$e.skip?De+=Ee:($e.returnEnd||$e.excludeEnd||(De+=Ee),K(),$e.excludeEnd&&(De=Ee));do xe.scope&&ke.closeNode(),!xe.skip&&!xe.subLanguage&&(Fe+=xe.relevance),xe=xe.parent;while(xe!==Ve.parent);return Ve.starts&&Z(Ve.starts,Oe),$e.returnEnd?0:Ee.length}function ye(){const Oe=[];for(let Ee=xe;Ee!==Ce;Ee=Ee.parent)Ee.scope&&Oe.unshift(Ee.scope);Oe.forEach(Ee=>ke.openNode(Ee))}let se={};function Ie(Oe,Ee){const Ae=Ee&&Ee[0];if(De+=Oe,Ae==null)return K(),0;if(se.type==="begin"&&Ee.type==="end"&&se.index===Ee.index&&Ae===""){if(De+=q.slice(Ee.index,Ee.index+1),!U){const Ve=new Error(`0 width match regex (${X})`);throw Ve.languageName=X,Ve.badRule=se.rule,Ve}return 1}if(se=Ee,Ee.type==="begin")return we(Ee);if(Ee.type==="illegal"&&!$){const Ve=new Error('Illegal lexeme "'+Ae+'" for mode "'+(xe.scope||"")+'"');throw Ve.mode=xe,Ve}else if(Ee.type==="end"){const Ve=_e(Ee);if(Ve!==NO_MATCH)return Ve}if(Ee.type==="illegal"&&Ae==="")return 1;if(qe>1e5&&qe>Ee.index*3)throw new Error("potential infinite loop, way more iterations than matches");return De+=Ae,Ae.length}const Ce=N(X);if(!Ce)throw error$1(k.replace("{}",X)),new Error('Unknown language: "'+X+'"');const oe=compileLanguage(Ce);let pe="",xe=fe||oe;const Ne={},ke=new a.__emitter(a);ye();let De="",Fe=0,Pe=0,qe=0,Le=!1;try{if(Ce.__emitTokens)Ce.__emitTokens(q,ke);else{for(xe.matcher.considerAll();;){qe++,Le?Le=!1:xe.matcher.considerAll(),xe.matcher.lastIndex=Pe;const Oe=xe.matcher.exec(q);if(!Oe)break;const Ee=q.substring(Pe,Oe.index),Ae=Ie(Ee,Oe);Pe=Oe.index+Ae}Ie(q.substring(Pe))}return ke.finalize(),pe=ke.toHTML(),{language:X,value:pe,relevance:Fe,illegal:!1,_emitter:ke,_top:xe}}catch(Oe){if(Oe.message&&Oe.message.includes("Illegal"))return{language:X,value:escape$1(q),illegal:!0,relevance:0,_illegalBy:{message:Oe.message,index:Pe,context:q.slice(Pe-100,Pe+100),mode:Oe.mode,resultSoFar:pe},_emitter:ke};if(U)return{language:X,value:escape$1(q),illegal:!1,relevance:0,errorRaised:Oe,_emitter:ke,_top:xe};throw Oe}}function v(X){const q={value:escape$1(X),illegal:!1,relevance:0,_top:x,_emitter:new a.__emitter(a)};return q._emitter.addText(X),q}function e(X,q){q=q||a.languages||Object.keys(r);const $=v(X),fe=q.filter(N).filter(W).map(K=>R(K,X,!1));fe.unshift($);const Q=fe.sort((K,ce)=>{if(K.relevance!==ce.relevance)return ce.relevance-K.relevance;if(K.language&&ce.language){if(N(K.language).supersetOf===ce.language)return 1;if(N(ce.language).supersetOf===K.language)return-1}return 0}),[ie,Te]=Q,me=ie;return me.secondBest=Te,me}function L(X,q,$){const fe=q&&m[q]||$;X.classList.add("hljs"),X.classList.add(`language-${fe}`)}function O(X){let q=null;const $=n(X);if(g($))return;if(H("before:highlightElement",{el:X,language:$}),X.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",X);return}if(X.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(X)),a.throwUnescapedHTML))throw new HTMLInjectionError("One of your code blocks includes unescaped HTML.",X.innerHTML);q=X;const fe=q.textContent,Q=$?c(fe,{language:$,ignoreIllegals:!0}):e(fe);X.innerHTML=Q.value,X.dataset.highlighted="yes",L(X,$,Q.language),X.result={language:Q.language,re:Q.relevance,relevance:Q.relevance},Q.secondBest&&(X.secondBest={language:Q.secondBest.language,relevance:Q.secondBest.relevance}),H("after:highlightElement",{el:X,result:Q,text:fe})}function B(X){a=inherit(a,X)}const P=()=>{l(),deprecated("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function S(){l(),deprecated("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let _=!1;function l(){if(document.readyState==="loading"){_=!0;return}document.querySelectorAll(a.cssSelector).forEach(O)}function y(){_&&l()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",y,!1);function D(X,q){let $=null;try{$=q(b)}catch(fe){if(error$1("Language definition for '{}' could not be registered.".replace("{}",X)),U)error$1(fe);else throw fe;$=x}$.name||($.name=X),r[X]=$,$.rawDefinition=q.bind(null,b),$.aliases&&G($.aliases,{languageName:X})}function M(X){delete r[X];for(const q of Object.keys(m))m[q]===X&&delete m[q]}function F(){return Object.keys(r)}function N(X){return X=(X||"").toLowerCase(),r[X]||r[m[X]]}function G(X,{languageName:q}){typeof X=="string"&&(X=[X]),X.forEach($=>{m[$.toLowerCase()]=q})}function W(X){const q=N(X);return q&&!q.disableAutodetect}function J(X){X["before:highlightBlock"]&&!X["before:highlightElement"]&&(X["before:highlightElement"]=q=>{X["before:highlightBlock"](Object.assign({block:q.el},q))}),X["after:highlightBlock"]&&!X["after:highlightElement"]&&(X["after:highlightElement"]=q=>{X["after:highlightBlock"](Object.assign({block:q.el},q))})}function Y(X){J(X),w.push(X)}function V(X){const q=w.indexOf(X);q!==-1&&w.splice(q,1)}function H(X,q){const $=X;w.forEach(function(fe){fe[$]&&fe[$](q)})}function z(X){return deprecated("10.7.0","highlightBlock will be removed entirely in v12.0"),deprecated("10.7.0","Please use highlightElement now."),O(X)}Object.assign(b,{highlight:c,highlightAuto:e,highlightAll:l,highlightElement:O,highlightBlock:z,configure:B,initHighlighting:P,initHighlightingOnLoad:S,registerLanguage:D,unregisterLanguage:M,listLanguages:F,getLanguage:N,registerAliases:G,autoDetection:W,inherit,addPlugin:Y,removePlugin:V}),b.debugMode=function(){U=!1},b.safeMode=function(){U=!0},b.versionString=version$1,b.regex={concat,lookahead,either,optional,anyNumberOfTimes};for(const X in MODES)typeof MODES[X]=="object"&&deepFreeze(MODES[X]);return Object.assign(b,MODES),b},highlight=HLJS({});highlight.newInstance=()=>HLJS({});var core=highlight;highlight.HighlightJS=highlight;highlight.default=highlight;var _1c_1,hasRequired_1c;function require_1c(){if(hasRequired_1c)return _1c_1;hasRequired_1c=1;function b(r){const m="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",k="далее "+"возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",g="загрузитьизфайла "+"вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент ",n="разделительстраниц разделительстрок символтабуляции ",c="ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон ",R="acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища ",v="wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",e=n+c+R+v,L="webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля ",O="автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы ",B="виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента ",P="авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных ",S="использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц ",_="отображениевремениэлементовпланировщика ",l="типфайлаформатированногодокумента ",y="обходрезультатазапроса типзаписизапроса ",D="видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов ",M="доступкфайлу режимдиалогавыборафайла режимоткрытияфайла ",F="типизмеренияпостроителязапроса ",N="видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений ",G="wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson ",W="видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных ",J="важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения ",Y="режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации ",V="расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии ",H="кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip ",z="звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp ",X="направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса ",q="httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений ",$="важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",fe=L+O+B+P+S+_+l+y+D+M+F+N+G+W+J+Y+V+H+z+X+q+$,Te="comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных "+"comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",me="null истина ложь неопределено",K=r.inherit(r.NUMBER_MODE),ce={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},de={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},Z=r.inherit(r.C_LINE_COMMENT_MODE),ae={className:"meta",begin:"#|&",end:"$",keywords:{$pattern:m,keyword:k+g},contains:[Z]},he={className:"symbol",begin:"~",end:";|:",excludeEnd:!0},we={className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:m,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:m,keyword:"знач",literal:me},contains:[K,ce,de]},Z]},r.inherit(r.TITLE_MODE,{begin:m})]};return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:m,keyword:k,built_in:e,class:fe,type:Te,literal:me},contains:[ae,we,Z,he,K,ce,de]}}return _1c_1=b,_1c_1}var abnf_1,hasRequiredAbnf;function requireAbnf(){if(hasRequiredAbnf)return abnf_1;hasRequiredAbnf=1;function b(r){const m=r.regex,w=/^[a-zA-Z][a-zA-Z0-9-]*/,U=["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"],k=r.COMMENT(/;/,/$/),x={scope:"symbol",match:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+)?/},a={scope:"symbol",match:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+)?/},g={scope:"symbol",match:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+)?/},n={scope:"symbol",match:/%[si](?=".*")/},c={scope:"attribute",match:m.concat(w,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:/[!@#$^&',?+~`|:]/,keywords:U,contains:[{scope:"operator",match:/=\/?/},c,k,x,a,g,n,r.QUOTE_STRING_MODE,r.NUMBER_MODE]}}return abnf_1=b,abnf_1}var accesslog_1,hasRequiredAccesslog;function requireAccesslog(){if(hasRequiredAccesslog)return accesslog_1;hasRequiredAccesslog=1;function b(r){const m=r.regex,w=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:m.concat(/"/,m.either(...w)),end:/"/,keywords:w,illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}return accesslog_1=b,accesslog_1}var actionscript_1,hasRequiredActionscript;function requireActionscript(){if(hasRequiredActionscript)return actionscript_1;hasRequiredActionscript=1;function b(r){const m=r.regex,w=/[a-zA-Z_$][a-zA-Z0-9_$]*/,U=m.concat(w,m.concat("(\\.",w,")*")),k=/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/,x={className:"rest_arg",begin:/[.]{3}/,end:w,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:["as","break","case","catch","class","const","continue","default","delete","do","dynamic","each","else","extends","final","finally","for","function","get","if","implements","import","in","include","instanceof","interface","internal","is","namespace","native","new","override","package","private","protected","public","return","set","static","super","switch","this","throw","try","typeof","use","var","void","while","with"],literal:["true","false","null","undefined"]},contains:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.C_NUMBER_MODE,{match:[/\bpackage/,/\s+/,U],className:{1:"keyword",3:"title.class"}},{match:[/\b(?:class|interface|extends|implements)/,/\s+/,w],className:{1:"keyword",3:"title.class"}},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{keyword:"import include"}},{beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[r.inherit(r.TITLE_MODE,{className:"title.function"}),{className:"params",begin:/\(/,end:/\)/,contains:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,x]},{begin:m.concat(/:\s*/,k)}]},r.METHOD_GUARD],illegal:/#/}}return actionscript_1=b,actionscript_1}var ada_1,hasRequiredAda;function requireAda(){if(hasRequiredAda)return ada_1;hasRequiredAda=1;function b(r){const m="\\d(_|\\d)*",w="[eE][-+]?"+m,U=m+"(\\."+m+")?("+w+")?",k="\\w+",a="\\b("+(m+"#"+k+"(\\."+k+")?#("+w+")?")+"|"+U+")",g="[A-Za-z](_?[A-Za-z0-9.])*",n=`[]\\{\\}%#'"`,c=r.COMMENT("--","$"),R={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:n,contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:g,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:["abort","else","new","return","abs","elsif","not","reverse","abstract","end","accept","entry","select","access","exception","of","separate","aliased","exit","or","some","all","others","subtype","and","for","out","synchronized","array","function","overriding","at","tagged","generic","package","task","begin","goto","pragma","terminate","body","private","then","if","procedure","type","case","in","protected","constant","interface","is","raise","use","declare","range","delay","limited","record","when","delta","loop","rem","while","digits","renames","with","do","mod","requeue","xor"],literal:["True","False"]},contains:[c,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:a,relevance:0},{className:"symbol",begin:"'"+g},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:n},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[c,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:n},R,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:n}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:n},R]}}return ada_1=b,ada_1}var angelscript_1,hasRequiredAngelscript;function requireAngelscript(){if(hasRequiredAngelscript)return angelscript_1;hasRequiredAngelscript=1;function b(r){const m={className:"built_in",begin:"\\b(void|bool|int8|int16|int32|int64|int|uint8|uint16|uint32|uint64|uint|string|ref|array|double|float|auto|dictionary)"},w={className:"symbol",begin:"[a-zA-Z0-9_]+@"},U={className:"keyword",begin:"<",end:">",contains:[m,w]};return m.contains=[U],w.contains=[U],{name:"AngelScript",aliases:["asc"],keywords:["for","in|0","break","continue","while","do|0","return","if","else","case","switch","namespace","is","cast","or","and","xor","not","get|0","in","inout|10","out","override","set|0","private","public","const","default|0","final","shared","external","mixin|10","enum","typedef","funcdef","this","super","import","from","interface","abstract|0","try","catch","protected","explicit","property"],illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[r.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[r.BACKSLASH_ESCAPE],relevance:0},r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},m,w,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}return angelscript_1=b,angelscript_1}var apache_1,hasRequiredApache;function requireApache(){if(hasRequiredApache)return apache_1;hasRequiredApache=1;function b(r){const m={className:"number",begin:/[$%]\d+/},w={className:"number",begin:/\b\d+/},U={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},k={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[r.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[U,k,r.inherit(r.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",m]},U,w,r.QUOTE_STRING_MODE]}}],illegal:/\S/}}return apache_1=b,apache_1}var applescript_1,hasRequiredApplescript;function requireApplescript(){if(hasRequiredApplescript)return applescript_1;hasRequiredApplescript=1;function b(r){const m=r.regex,w=r.inherit(r.QUOTE_STRING_MODE,{illegal:null}),U={className:"params",begin:/\(/,end:/\)/,contains:["self",r.C_NUMBER_MODE,w]},k=r.COMMENT(/--/,/$/),x=r.COMMENT(/\(\*/,/\*\)/,{contains:["self",k]}),a=[k,x,r.HASH_COMMENT_MODE],g=[/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/],n=[/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name|0 paragraph paragraphs rest reverse running time version weekday word words year"},contains:[w,r.C_NUMBER_MODE,{className:"built_in",begin:m.concat(/\b/,m.either(...n),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:m.concat(/\b/,m.either(...g),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[r.UNDERSCORE_TITLE_MODE,U]},...a],illegal:/\/\/|->|=>|\[\[/}}return applescript_1=b,applescript_1}var arcade_1,hasRequiredArcade;function requireArcade(){if(hasRequiredArcade)return arcade_1;hasRequiredArcade=1;function b(r){const m="[A-Za-z_][0-9A-Za-z_]*",w={keyword:["if","for","while","var","new","function","do","return","void","else","break"],literal:["BackSlash","DoubleQuote","false","ForwardSlash","Infinity","NaN","NewLine","null","PI","SingleQuote","Tab","TextFormatting","true","undefined"],built_in:["Abs","Acos","All","Angle","Any","Area","AreaGeodetic","Array","Asin","Atan","Atan2","Attachments","Average","Back","Bearing","Boolean","Buffer","BufferGeodetic","Ceil","Centroid","Clip","Concatenate","Console","Constrain","Contains","ConvertDirection","Cos","Count","Crosses","Cut","Date","DateAdd","DateDiff","Day","Decode","DefaultValue","Densify","DensifyGeodetic","Dictionary","Difference","Disjoint","Distance","DistanceGeodetic","Distinct","Domain","DomainCode","DomainName","EnvelopeIntersects","Equals","Erase","Exp","Expects","Extent","Feature","FeatureSet","FeatureSetByAssociation","FeatureSetById","FeatureSetByName","FeatureSetByPortalItem","FeatureSetByRelationshipName","Filter","Find","First","Floor","FromCharCode","FromCodePoint","FromJSON","GdbVersion","Generalize","Geometry","GetFeatureSet","GetUser","GroupBy","Guid","Hash","HasKey","Hour","IIf","Includes","IndexOf","Insert","Intersection","Intersects","IsEmpty","IsNan","ISOMonth","ISOWeek","ISOWeekday","ISOYear","IsSelfIntersecting","IsSimple","Left|0","Length","Length3D","LengthGeodetic","Log","Lower","Map","Max","Mean","Mid","Millisecond","Min","Minute","Month","MultiPartToSinglePart","Multipoint","NextSequenceValue","None","Now","Number","Offset|0","OrderBy","Overlaps","Point","Polygon","Polyline","Pop","Portal","Pow","Proper","Push","Random","Reduce","Relate","Replace","Resize","Reverse","Right|0","RingIsClockwise","Rotate","Round","Schema","Second","SetGeometry","Simplify","Sin","Slice","Sort","Splice","Split","Sqrt","Stdev","SubtypeCode","SubtypeName","Subtypes","Sum","SymmetricDifference","Tan","Text","Timestamp","ToCharCode","ToCodePoint","Today","ToHex","ToLocal","Top|0","Touches","ToUTC","TrackAccelerationAt","TrackAccelerationWindow","TrackCurrentAcceleration","TrackCurrentDistance","TrackCurrentSpeed","TrackCurrentTime","TrackDistanceAt","TrackDistanceWindow","TrackDuration","TrackFieldWindow","TrackGeometryWindow","TrackIndex","TrackSpeedAt","TrackSpeedWindow","TrackStartTime","TrackWindow","Trim","TypeOf","Union","Upper","UrlEncode","Variance","Week","Weekday","When","Within","Year"]},U={className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},k={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:r.C_NUMBER_RE}],relevance:0},x={className:"subst",begin:"\\$\\{",end:"\\}",keywords:w,contains:[]},a={className:"string",begin:"`",end:"`",contains:[r.BACKSLASH_ESCAPE,x]};x.contains=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,a,k,r.REGEXP_MODE];const g=x.contains.concat([r.C_BLOCK_COMMENT_MODE,r.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",case_insensitive:!0,keywords:w,contains:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,a,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,U,k,{begin:/[{,]\s*/,relevance:0,contains:[{begin:m+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:m,relevance:0}]}]},{begin:"("+r.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+m+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:m},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:w,contains:g}]}]}],relevance:0},{beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[r.inherit(r.TITLE_MODE,{className:"title.function",begin:m}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:g}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}return arcade_1=b,arcade_1}var arduino_1,hasRequiredArduino;function requireArduino(){if(hasRequiredArduino)return arduino_1;hasRequiredArduino=1;function b(m){const w=m.regex,U=m.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),k="decltype\\(auto\\)",x="[a-zA-Z_]\\w*::",a="<[^<>]+>",g="(?!struct)("+k+"|"+w.optional(x)+"[a-zA-Z_]\\w*"+w.optional(a)+")",n={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",R={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[m.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+c+"|.)",end:"'",illegal:"."},m.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},v={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},e={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},m.inherit(R,{className:"string"}),{className:"string",begin:/<.*?>/},U,m.C_BLOCK_COMMENT_MODE]},L={className:"title",begin:w.optional(x)+m.IDENT_RE,relevance:0},O=w.optional(x)+m.IDENT_RE+"\\s*\\(",B=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],P=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],S=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],_=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],D={type:P,keyword:B,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:S},M={className:"function.dispatch",relevance:0,keywords:{_hint:_},begin:w.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,m.IDENT_RE,w.lookahead(/(<[^<>]+>|)\s*\(/))},F=[M,e,n,U,m.C_BLOCK_COMMENT_MODE,v,R],N={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:D,contains:F.concat([{begin:/\(/,end:/\)/,keywords:D,contains:F.concat(["self"]),relevance:0}]),relevance:0},G={className:"function",begin:"("+g+"[\\*&\\s]+)+"+O,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:D,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:k,keywords:D,relevance:0},{begin:O,returnBegin:!0,contains:[L],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[R,v]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:D,relevance:0,contains:[U,m.C_BLOCK_COMMENT_MODE,R,v,n,{begin:/\(/,end:/\)/,keywords:D,relevance:0,contains:["self",U,m.C_BLOCK_COMMENT_MODE,R,v,n]}]},n,U,m.C_BLOCK_COMMENT_MODE,e]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:D,illegal:"",keywords:D,contains:["self",n]},{begin:m.IDENT_RE+"::",keywords:D},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function r(m){const w={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},U=b(m),k=U.keywords;return k.type=[...k.type,...w.type],k.literal=[...k.literal,...w.literal],k.built_in=[...k.built_in,...w.built_in],k._hints=w._hints,U.name="Arduino",U.aliases=["ino"],U.supersetOf="cpp",U}return arduino_1=r,arduino_1}var armasm_1,hasRequiredArmasm;function requireArmasm(){if(hasRequiredArmasm)return armasm_1;hasRequiredArmasm=1;function b(r){const m={variants:[r.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),r.COMMENT("[;@]","$",{relevance:0}),r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+r.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 w0 w1 w2 w3 w4 w5 w6 w7 w8 w9 w10 w11 w12 w13 w14 w15 w16 w17 w18 w19 w20 w21 w22 w23 w24 w25 w26 w27 w28 w29 w30 x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12 x13 x14 x15 x16 x17 x18 x19 x20 x21 x22 x23 x24 x25 x26 x27 x28 x29 x30 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},m,r.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}return armasm_1=b,armasm_1}var xml_1,hasRequiredXml;function requireXml(){if(hasRequiredXml)return xml_1;hasRequiredXml=1;function b(r){const m=r.regex,w=m.concat(/[\p{L}_]/u,m.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),U=/[\p{L}0-9._:-]+/u,k={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},x={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},a=r.inherit(x,{begin:/\(/,end:/\)/}),g=r.inherit(r.APOS_STRING_MODE,{className:"string"}),n=r.inherit(r.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[x,n,g,a,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[x,a,n,g]}]}]},r.COMMENT(//,{relevance:10}),{begin://,relevance:10},k,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[n]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:m.concat(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:w,relevance:0,starts:c}]},{className:"tag",begin:m.concat(/<\//,m.lookahead(m.concat(w,/>/))),contains:[{className:"name",begin:w,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return xml_1=b,xml_1}var asciidoc_1,hasRequiredAsciidoc;function requireAsciidoc(){if(hasRequiredAsciidoc)return asciidoc_1;hasRequiredAsciidoc=1;function b(r){const m=r.regex,w={begin:"^'{3,}[ \\t]*$",relevance:10},U=[{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/}],k=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:m.concat(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],x=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:m.concat(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}],a={className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},g={className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"};return{name:"AsciiDoc",aliases:["adoc"],contains:[r.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),r.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ ].+?([ ]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},g,a,...U,...k,...x,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},w,{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}return asciidoc_1=b,asciidoc_1}var aspectj_1,hasRequiredAspectj;function requireAspectj(){if(hasRequiredAspectj)return aspectj_1;hasRequiredAspectj=1;function b(r){const m=r.regex,w=["false","synchronized","int","abstract","float","private","char","boolean","static","null","if","const","for","true","while","long","throw","strictfp","finally","protected","import","native","final","return","void","enum","else","extends","implements","break","transient","new","catch","instanceof","byte","super","volatile","case","assert","short","package","default","double","public","try","this","switch","continue","throws","privileged","aspectOf","adviceexecution","proceed","cflowbelow","cflow","initialization","preinitialization","staticinitialization","withincode","target","within","execution","getWithinTypeName","handler","thisJoinPoint","thisJoinPointStaticPart","thisEnclosingJoinPointStaticPart","declare","parents","warning","error","soft","precedence","thisAspectInstance"],U=["get","set","args","call"];return{name:"AspectJ",keywords:w,illegal:/<\/|#/,contains:[r.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},r.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:w.concat(U),excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},r.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:m.concat(r.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[r.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:w,illegal:/["\[\]]/,contains:[{begin:m.concat(r.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:w.concat(U),relevance:0},r.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:w,excludeEnd:!0,contains:[{begin:m.concat(r.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[r.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:w,contains:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,r.C_NUMBER_MODE,r.C_BLOCK_COMMENT_MODE]},r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE]},r.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}return aspectj_1=b,aspectj_1}var autohotkey_1,hasRequiredAutohotkey;function requireAutohotkey(){if(hasRequiredAutohotkey)return autohotkey_1;hasRequiredAutohotkey=1;function b(r){const m={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[m,r.inherit(r.QUOTE_STRING_MODE,{contains:[m]}),r.COMMENT(";","$",{relevance:0}),r.C_BLOCK_COMMENT_MODE,{className:"number",begin:r.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}return autohotkey_1=b,autohotkey_1}var autoit_1,hasRequiredAutoit;function requireAutoit(){if(hasRequiredAutoit)return autoit_1;hasRequiredAutoit=1;function b(r){const m="ByRef Case Const ContinueCase ContinueLoop Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",w=["EndRegion","forcedef","forceref","ignorefunc","include","include-once","NoTrayIcon","OnAutoItStartRegister","pragma","Region","RequireAdmin","Tidy_Off","Tidy_On","Tidy_Parameters"],U="True False And Null Not Or Default",k="Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive WinWaitClose WinWaitNotActive",x={variants:[r.COMMENT(";","$",{relevance:0}),r.COMMENT("#cs","#ce"),r.COMMENT("#comments-start","#comments-end")]},a={begin:"\\$[A-z0-9_]+"},g={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},n={variants:[r.BINARY_NUMBER_MODE,r.C_NUMBER_MODE]},c={className:"meta",begin:"#",end:"$",keywords:{keyword:w},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{keyword:"include"},end:"$",contains:[g,{className:"string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},g,x]},R={className:"symbol",begin:"@[A-z0-9_]+"},v={beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[r.inherit(r.UNDERSCORE_TITLE_MODE,{className:"title.function"}),{className:"params",begin:"\\(",end:"\\)",contains:[a,g,n]}]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:m,built_in:k,literal:U},contains:[x,a,g,n,c,R,v]}}return autoit_1=b,autoit_1}var avrasm_1,hasRequiredAvrasm;function requireAvrasm(){if(hasRequiredAvrasm)return avrasm_1;hasRequiredAvrasm=1;function b(r){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+r.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[r.C_BLOCK_COMMENT_MODE,r.COMMENT(";","$",{relevance:0}),r.C_NUMBER_MODE,r.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},r.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}return avrasm_1=b,avrasm_1}var awk_1,hasRequiredAwk;function requireAwk(){if(hasRequiredAwk)return awk_1;hasRequiredAwk=1;function b(r){const m={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},w="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",U={className:"string",contains:[r.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},r.APOS_STRING_MODE,r.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:w},contains:[m,U,r.REGEXP_MODE,r.HASH_COMMENT_MODE,r.NUMBER_MODE]}}return awk_1=b,awk_1}var axapta_1,hasRequiredAxapta;function requireAxapta(){if(hasRequiredAxapta)return axapta_1;hasRequiredAxapta=1;function b(r){const m=r.UNDERSCORE_IDENT_RE,x={keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"],built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"],literal:["default","false","null","true"]},a={variants:[{match:[/(class|interface)\s+/,m,/\s+(extends|implements)\s+/,m]},{match:[/class\s+/,m]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:x};return{name:"X++",aliases:["x++"],keywords:x,contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,r.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},a]}}return axapta_1=b,axapta_1}var bash_1,hasRequiredBash;function requireBash(){if(hasRequiredBash)return bash_1;hasRequiredBash=1;function b(r){const m=r.regex,w={},U={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[w]}]};Object.assign(w,{className:"variable",variants:[{begin:m.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},U]});const k={className:"subst",begin:/\$\(/,end:/\)/,contains:[r.BACKSLASH_ESCAPE]},x={begin:/<<-?\s*(?=\w+)/,starts:{contains:[r.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,contains:[r.BACKSLASH_ESCAPE,w,k]};k.contains.push(a);const g={match:/\\"/},n={className:"string",begin:/'/,end:/'/},c={match:/\\'/},R={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},r.NUMBER_MODE,w]},v=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],e=r.SHEBANG({binary:`(${v.join("|")})`,relevance:10}),L={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[r.inherit(r.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},O=["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],B=["true","false"],P={match:/(\/[a-z._-]+)+/},S=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],_=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],l=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],y=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:O,literal:B,built_in:[...S,..._,"set","shopt",...l,...y]},contains:[e,r.SHEBANG(),L,R,r.HASH_COMMENT_MODE,x,P,a,g,n,c,w]}}return bash_1=b,bash_1}var basic_1,hasRequiredBasic;function requireBasic(){if(hasRequiredBasic)return basic_1;hasRequiredBasic=1;function b(r){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:["ABS","ASC","AND","ATN","AUTO|0","BEEP","BLOAD|10","BSAVE|10","CALL","CALLS","CDBL","CHAIN","CHDIR","CHR$|10","CINT","CIRCLE","CLEAR","CLOSE","CLS","COLOR","COM","COMMON","CONT","COS","CSNG","CSRLIN","CVD","CVI","CVS","DATA","DATE$","DEFDBL","DEFINT","DEFSNG","DEFSTR","DEF|0","SEG","USR","DELETE","DIM","DRAW","EDIT","END","ENVIRON","ENVIRON$","EOF","EQV","ERASE","ERDEV","ERDEV$","ERL","ERR","ERROR","EXP","FIELD","FILES","FIX","FOR|0","FRE","GET","GOSUB|10","GOTO","HEX$","IF","THEN","ELSE|0","INKEY$","INP","INPUT","INPUT#","INPUT$","INSTR","IMP","INT","IOCTL","IOCTL$","KEY","ON","OFF","LIST","KILL","LEFT$","LEN","LET","LINE","LLIST","LOAD","LOC","LOCATE","LOF","LOG","LPRINT","USING","LSET","MERGE","MID$","MKDIR","MKD$","MKI$","MKS$","MOD","NAME","NEW","NEXT","NOISE","NOT","OCT$","ON","OR","PEN","PLAY","STRIG","OPEN","OPTION","BASE","OUT","PAINT","PALETTE","PCOPY","PEEK","PMAP","POINT","POKE","POS","PRINT","PRINT]","PSET","PRESET","PUT","RANDOMIZE","READ","REM","RENUM","RESET|0","RESTORE","RESUME","RETURN|0","RIGHT$","RMDIR","RND","RSET","RUN","SAVE","SCREEN","SGN","SHELL","SIN","SOUND","SPACE$","SPC","SQR","STEP","STICK","STOP","STR$","STRING$","SWAP","SYSTEM","TAB","TAN","TIME$","TIMER","TROFF","TRON","TO","USR","VAL","VARPTR","VARPTR$","VIEW","WAIT","WHILE","WEND","WIDTH","WINDOW","WRITE","XOR"]},contains:[r.QUOTE_STRING_MODE,r.COMMENT("REM","$",{relevance:10}),r.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}return basic_1=b,basic_1}var bnf_1,hasRequiredBnf;function requireBnf(){if(hasRequiredBnf)return bnf_1;hasRequiredBnf=1;function b(r){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin://},{begin:/::=/,end:/$/,contains:[{begin://},r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE]}]}}return bnf_1=b,bnf_1}var brainfuck_1,hasRequiredBrainfuck;function requireBrainfuck(){if(hasRequiredBrainfuck)return brainfuck_1;hasRequiredBrainfuck=1;function b(r){const m={className:"literal",begin:/[+-]+/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[r.COMMENT(/[^\[\]\.,\+\-<> \r\n]/,/[\[\]\.,\+\-<> \r\n]/,{contains:[{match:/[ ]+[^\[\]\.,\+\-<> \r\n]/,relevance:0}],returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?=\+\+|--)/,contains:[m]},m]}}return brainfuck_1=b,brainfuck_1}var c_1,hasRequiredC;function requireC(){if(hasRequiredC)return c_1;hasRequiredC=1;function b(r){const m=r.regex,w=r.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),U="decltype\\(auto\\)",k="[a-zA-Z_]\\w*::",x="<[^<>]+>",a="("+U+"|"+m.optional(k)+"[a-zA-Z_]\\w*"+m.optional(x)+")",g={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},n="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[r.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+n+"|.)",end:"'",illegal:"."},r.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},R={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},v={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},r.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},w,r.C_BLOCK_COMMENT_MODE]},e={className:"title",begin:m.optional(k)+r.IDENT_RE,relevance:0},L=m.optional(k)+r.IDENT_RE+"\\s*\\(",P={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},S=[v,g,w,r.C_BLOCK_COMMENT_MODE,R,c],_={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:P,contains:S.concat([{begin:/\(/,end:/\)/,keywords:P,contains:S.concat(["self"]),relevance:0}]),relevance:0},l={begin:"("+a+"[\\*&\\s]+)+"+L,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:P,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:U,keywords:P,relevance:0},{begin:L,returnBegin:!0,contains:[r.inherit(e,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:P,relevance:0,contains:[w,r.C_BLOCK_COMMENT_MODE,c,R,g,{begin:/\(/,end:/\)/,keywords:P,relevance:0,contains:["self",w,r.C_BLOCK_COMMENT_MODE,c,R,g]}]},g,w,r.C_BLOCK_COMMENT_MODE,v]};return{name:"C",aliases:["h"],keywords:P,disableAutodetect:!0,illegal:"=]/,contains:[{beginKeywords:"final class struct"},r.TITLE_MODE]}]),exports:{preprocessor:v,strings:c,keywords:P}}}return c_1=b,c_1}var cal_1,hasRequiredCal;function requireCal(){if(hasRequiredCal)return cal_1;hasRequiredCal=1;function b(r){const m=r.regex,w=["div","mod","in","and","or","not","xor","asserterror","begin","case","do","downto","else","end","exit","for","local","if","of","repeat","then","to","until","while","with","var"],U="false true",k=[r.C_LINE_COMMENT_MODE,r.COMMENT(/\{/,/\}/,{relevance:0}),r.COMMENT(/\(\*/,/\*\)/,{relevance:10})],x={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},a={className:"string",begin:/(#\d+)+/},g={className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},n={className:"string",begin:'"',end:'"'},c={match:[/procedure/,/\s+/,/[a-zA-Z_][\w@]*/,/\s*/],scope:{1:"keyword",3:"title.function"},contains:[{className:"params",begin:/\(/,end:/\)/,keywords:w,contains:[x,a,r.NUMBER_MODE]},...k]},R=["Table","Form","Report","Dataport","Codeunit","XMLport","MenuSuite","Page","Query"],v={match:[/OBJECT/,/\s+/,m.either(...R),/\s+/,/\d+/,/\s+(?=[^\s])/,/.*/,/$/],relevance:3,scope:{1:"keyword",3:"type",5:"number",7:"title"}};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:w,literal:U},illegal:/\/\*/,contains:[{match:/[\w]+(?=\=)/,scope:"attribute",relevance:0},x,a,g,n,r.NUMBER_MODE,v,c]}}return cal_1=b,cal_1}var capnproto_1,hasRequiredCapnproto;function requireCapnproto(){if(hasRequiredCapnproto)return capnproto_1;hasRequiredCapnproto=1;function b(r){const m=["struct","enum","interface","union","group","import","using","const","annotation","extends","in","of","on","as","with","from","fixed"],w=["Void","Bool","Int8","Int16","Int32","Int64","UInt8","UInt16","UInt32","UInt64","Float32","Float64","Text","Data","AnyPointer","AnyStruct","Capability","List"],U=["true","false"],k={variants:[{match:[/(struct|enum|interface)/,/\s+/,r.IDENT_RE]},{match:[/extends/,/\s*\(/,r.IDENT_RE,/\s*\)/]}],scope:{1:"keyword",3:"title.class"}};return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:m,type:w,literal:U},contains:[r.QUOTE_STRING_MODE,r.NUMBER_MODE,r.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},k]}}return capnproto_1=b,capnproto_1}var ceylon_1,hasRequiredCeylon;function requireCeylon(){if(hasRequiredCeylon)return ceylon_1;hasRequiredCeylon=1;function b(r){const m=["assembly","module","package","import","alias","class","interface","object","given","value","assign","void","function","new","of","extends","satisfies","abstracts","in","out","return","break","continue","throw","assert","dynamic","if","else","switch","case","for","while","try","catch","finally","then","let","this","outer","super","is","exists","nonempty"],w=["shared","abstract","formal","default","actual","variable","late","native","deprecated","final","sealed","annotation","suppressWarnings","small"],U=["doc","by","license","see","throws","tagged"],k={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:m,relevance:10},x=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[k]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return k.contains=x,{name:"Ceylon",keywords:{keyword:m.concat(w),meta:U},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[r.C_LINE_COMMENT_MODE,r.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(x)}}return ceylon_1=b,ceylon_1}var clean_1,hasRequiredClean;function requireClean(){if(hasRequiredClean)return clean_1;hasRequiredClean=1;function b(r){return{name:"Clean",aliases:["icl","dcl"],keywords:{keyword:["if","let","in","with","where","case","of","class","instance","otherwise","implementation","definition","system","module","from","import","qualified","as","special","code","inline","foreign","export","ccall","stdcall","generic","derive","infix","infixl","infixr"],built_in:"Int Real Char Bool",literal:"True False"},contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,r.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}return clean_1=b,clean_1}var clojure_1,hasRequiredClojure;function requireClojure(){if(hasRequiredClojure)return clojure_1;hasRequiredClojure=1;function b(r){const m="a-zA-Z_\\-!.?+*=<>&'",w="[#]?["+m+"]["+m+"0-9/;:$#]*",U="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",k={$pattern:w,built_in:U+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},x={begin:w,relevance:0},a={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},g={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},n={scope:"regex",begin:/#"/,end:/"/,contains:[r.BACKSLASH_ESCAPE]},c=r.inherit(r.QUOTE_STRING_MODE,{illegal:null}),R={scope:"punctuation",match:/,/,relevance:0},v=r.COMMENT(";","$",{relevance:0}),e={className:"literal",begin:/\b(true|false|nil)\b/},L={begin:"\\[|(#::?"+w+")?\\{",end:"[\\]\\}]",relevance:0},O={className:"symbol",begin:"[:]{1,2}"+w},B={begin:"\\(",end:"\\)"},P={endsWithParent:!0,relevance:0},S={keywords:k,className:"name",begin:w,relevance:0,starts:P},_=[R,B,g,n,c,v,O,L,a,e,x],l={beginKeywords:U,keywords:{$pattern:w,keyword:U},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:w,relevance:0,excludeEnd:!0,endsParent:!0}].concat(_)};return B.contains=[l,S,P],P.contains=_,L.contains=_,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[R,B,g,n,c,v,O,L,a,e]}}return clojure_1=b,clojure_1}var clojureRepl_1,hasRequiredClojureRepl;function requireClojureRepl(){if(hasRequiredClojureRepl)return clojureRepl_1;hasRequiredClojureRepl=1;function b(r){return{name:"Clojure REPL",contains:[{className:"meta.prompt",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}return clojureRepl_1=b,clojureRepl_1}var cmake_1,hasRequiredCmake;function requireCmake(){if(hasRequiredCmake)return cmake_1;hasRequiredCmake=1;function b(r){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},r.COMMENT(/#\[\[/,/]]/),r.HASH_COMMENT_MODE,r.QUOTE_STRING_MODE,r.NUMBER_MODE]}}return cmake_1=b,cmake_1}var coffeescript_1,hasRequiredCoffeescript;function requireCoffeescript(){if(hasRequiredCoffeescript)return coffeescript_1;hasRequiredCoffeescript=1;const b=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],m=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],w=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],U=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],k=[].concat(U,m,w);function x(a){const g=["npm","print"],n=["yes","no","on","off"],c=["then","unless","until","loop","by","when","and","or","is","isnt","not"],R=["var","const","let","function","static"],v=y=>D=>!y.includes(D),e={keyword:b.concat(c).filter(v(R)),literal:r.concat(n),built_in:k.concat(g)},L="[A-Za-z$_][0-9A-Za-z$_]*",O={className:"subst",begin:/#\{/,end:/\}/,keywords:e},B=[a.BINARY_NUMBER_MODE,a.inherit(a.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[a.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,O]},{begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,O]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[O,a.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+L},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];O.contains=B;const P=a.inherit(a.TITLE_MODE,{begin:L}),S="(\\(.*\\)\\s*)?\\B[-=]>",_={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:e,contains:["self"].concat(B)}]},l={variants:[{match:[/class\s+/,L,/\s+extends\s+/,L]},{match:[/class\s+/,L]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:e};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:e,illegal:/\/\*/,contains:[...B,a.COMMENT("###","###"),a.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+L+"\\s*=\\s*"+S,end:"[-=]>",returnBegin:!0,contains:[P,_]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:S,end:"[-=]>",returnBegin:!0,contains:[_]}]},l,{begin:L+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}]}}return coffeescript_1=x,coffeescript_1}var coq_1,hasRequiredCoq;function requireCoq(){if(hasRequiredCoq)return coq_1;hasRequiredCoq=1;function b(r){return{name:"Coq",keywords:{keyword:["_|0","as","at","cofix","else","end","exists","exists2","fix","for","forall","fun","if","IF","in","let","match","mod","Prop","return","Set","then","Type","using","where","with","Abort","About","Add","Admit","Admitted","All","Arguments","Assumptions","Axiom","Back","BackTo","Backtrack","Bind","Blacklist","Canonical","Cd","Check","Class","Classes","Close","Coercion","Coercions","CoFixpoint","CoInductive","Collection","Combined","Compute","Conjecture","Conjectures","Constant","constr","Constraint","Constructors","Context","Corollary","CreateHintDb","Cut","Declare","Defined","Definition","Delimit","Dependencies","Dependent","Derive","Drop","eauto","End","Equality","Eval","Example","Existential","Existentials","Existing","Export","exporting","Extern","Extract","Extraction","Fact","Field","Fields","File","Fixpoint","Focus","for","From","Function","Functional","Generalizable","Global","Goal","Grab","Grammar","Graph","Guarded","Heap","Hint","HintDb","Hints","Hypotheses","Hypothesis","ident","Identity","If","Immediate","Implicit","Import","Include","Inductive","Infix","Info","Initial","Inline","Inspect","Instance","Instances","Intro","Intros","Inversion","Inversion_clear","Language","Left","Lemma","Let","Libraries","Library","Load","LoadPath","Local","Locate","Ltac","ML","Mode","Module","Modules","Monomorphic","Morphism","Next","NoInline","Notation","Obligation","Obligations","Opaque","Open","Optimize","Options","Parameter","Parameters","Parametric","Path","Paths","pattern","Polymorphic","Preterm","Print","Printing","Program","Projections","Proof","Proposition","Pwd","Qed","Quit","Rec","Record","Recursive","Redirect","Relation","Remark","Remove","Require","Reserved","Reset","Resolve","Restart","Rewrite","Right","Ring","Rings","Save","Scheme","Scope","Scopes","Script","Search","SearchAbout","SearchHead","SearchPattern","SearchRewrite","Section","Separate","Set","Setoid","Show","Solve","Sorted","Step","Strategies","Strategy","Structure","SubClass","Table","Tables","Tactic","Term","Test","Theorem","Time","Timeout","Transparent","Type","Typeclasses","Types","Undelimit","Undo","Unfocus","Unfocused","Unfold","Universe","Universes","Unset","Unshelve","using","Variable","Variables","Variant","Verbose","Visibility","where","with"],built_in:["abstract","absurd","admit","after","apply","as","assert","assumption","at","auto","autorewrite","autounfold","before","bottom","btauto","by","case","case_eq","cbn","cbv","change","classical_left","classical_right","clear","clearbody","cofix","compare","compute","congruence","constr_eq","constructor","contradict","contradiction","cut","cutrewrite","cycle","decide","decompose","dependent","destruct","destruction","dintuition","discriminate","discrR","do","double","dtauto","eapply","eassumption","eauto","ecase","econstructor","edestruct","ediscriminate","eelim","eexact","eexists","einduction","einjection","eleft","elim","elimtype","enough","equality","erewrite","eright","esimplify_eq","esplit","evar","exact","exactly_once","exfalso","exists","f_equal","fail","field","field_simplify","field_simplify_eq","first","firstorder","fix","fold","fourier","functional","generalize","generalizing","gfail","give_up","has_evar","hnf","idtac","in","induction","injection","instantiate","intro","intro_pattern","intros","intuition","inversion","inversion_clear","is_evar","is_var","lapply","lazy","left","lia","lra","move","native_compute","nia","nsatz","omega","once","pattern","pose","progress","proof","psatz","quote","record","red","refine","reflexivity","remember","rename","repeat","replace","revert","revgoals","rewrite","rewrite_strat","right","ring","ring_simplify","rtauto","set","setoid_reflexivity","setoid_replace","setoid_rewrite","setoid_symmetry","setoid_transitivity","shelve","shelve_unifiable","simpl","simple","simplify_eq","solve","specialize","split","split_Rabs","split_Rmult","stepl","stepr","subst","sum","swap","symmetry","tactic","tauto","time","timeout","top","transitivity","trivial","try","tryif","unfold","unify","until","using","vm_compute","with"]},contains:[r.QUOTE_STRING_MODE,r.COMMENT("\\(\\*","\\*\\)"),r.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}return coq_1=b,coq_1}var cos_1,hasRequiredCos;function requireCos(){if(hasRequiredCos)return cos_1;hasRequiredCos=1;function b(r){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*\s*>/,subLanguage:"xml"}]}}return cos_1=b,cos_1}var cpp_1,hasRequiredCpp;function requireCpp(){if(hasRequiredCpp)return cpp_1;hasRequiredCpp=1;function b(r){const m=r.regex,w=r.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),U="decltype\\(auto\\)",k="[a-zA-Z_]\\w*::",x="<[^<>]+>",a="(?!struct)("+U+"|"+m.optional(k)+"[a-zA-Z_]\\w*"+m.optional(x)+")",g={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},n="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[r.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+n+"|.)",end:"'",illegal:"."},r.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},R={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},v={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},r.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},w,r.C_BLOCK_COMMENT_MODE]},e={className:"title",begin:m.optional(k)+r.IDENT_RE,relevance:0},L=m.optional(k)+r.IDENT_RE+"\\s*\\(",O=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],B=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],P=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],S=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],y={type:B,keyword:O,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:P},D={className:"function.dispatch",relevance:0,keywords:{_hint:S},begin:m.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,r.IDENT_RE,m.lookahead(/(<[^<>]+>|)\s*\(/))},M=[D,v,g,w,r.C_BLOCK_COMMENT_MODE,R,c],F={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:y,contains:M.concat([{begin:/\(/,end:/\)/,keywords:y,contains:M.concat(["self"]),relevance:0}]),relevance:0},N={className:"function",begin:"("+a+"[\\*&\\s]+)+"+L,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:y,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:U,keywords:y,relevance:0},{begin:L,returnBegin:!0,contains:[e],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,R]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:[w,r.C_BLOCK_COMMENT_MODE,c,R,g,{begin:/\(/,end:/\)/,keywords:y,relevance:0,contains:["self",w,r.C_BLOCK_COMMENT_MODE,c,R,g]}]},g,w,r.C_BLOCK_COMMENT_MODE,v]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:y,illegal:"",keywords:y,contains:["self",g]},{begin:r.IDENT_RE+"::",keywords:y},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}return cpp_1=b,cpp_1}var crmsh_1,hasRequiredCrmsh;function requireCrmsh(){if(hasRequiredCrmsh)return crmsh_1;hasRequiredCrmsh=1;function b(r){const m="primitive rsc_template",w="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml",U="property rsc_defaults op_defaults",k="params meta operations op rule attributes utilization",x="read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\",a="number string",g="Master Started Slave Stopped start promote demote stop monitor true false";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:k+" "+x+" "+a,literal:g},contains:[r.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:m,starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+w.split(" ").join("|")+")\\s+",keywords:w,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:U,starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},r.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"",relevance:0}]}}return crmsh_1=b,crmsh_1}var crystal_1,hasRequiredCrystal;function requireCrystal(){if(hasRequiredCrystal)return crystal_1;hasRequiredCrystal=1;function b(r){const m="(_?[ui](8|16|32|64|128))?",w="(_?f(32|64))?",U="[a-zA-Z_]\\w*[!?=]?",k="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",x="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",a={$pattern:U,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},g={className:"subst",begin:/#\{/,end:/\}/,keywords:a},n={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},c={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:a};function R(S,_){const l=[{begin:S,end:_}];return l[0].contains=l,l}const v={className:"string",contains:[r.BACKSLASH_ESCAPE,g],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:R("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:R("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:R(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:R("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},e={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:R("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:R("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:R(/\{/,/\}/)},{begin:"%q<",end:">",contains:R("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},L={begin:"(?!%\\})("+r.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[r.BACKSLASH_ESCAPE,g],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},O={className:"regexp",contains:[r.BACKSLASH_ESCAPE,g],variants:[{begin:"%r\\(",end:"\\)",contains:R("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:R("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:R(/\{/,/\}/)},{begin:"%r<",end:">",contains:R("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},B={className:"meta",begin:"@\\[",end:"\\]",contains:[r.inherit(r.QUOTE_STRING_MODE,{className:"string"})]},P=[c,v,e,O,L,B,n,r.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[r.HASH_COMMENT_MODE,r.inherit(r.TITLE_MODE,{begin:x}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[r.HASH_COMMENT_MODE,r.inherit(r.TITLE_MODE,{begin:x})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[r.HASH_COMMENT_MODE,r.inherit(r.TITLE_MODE,{begin:x})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[r.inherit(r.TITLE_MODE,{begin:k,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[r.inherit(r.TITLE_MODE,{begin:k,endsParent:!0})],relevance:2},{className:"symbol",begin:r.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[v,{begin:k}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+m},{begin:"\\b0o([0-7_]+)"+m},{begin:"\\b0x([A-Fa-f0-9_]+)"+m},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+w+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+m}],relevance:0}];return g.contains=P,c.contains=P.slice(1),{name:"Crystal",aliases:["cr"],keywords:a,contains:P}}return crystal_1=b,crystal_1}var csharp_1,hasRequiredCsharp;function requireCsharp(){if(hasRequiredCsharp)return csharp_1;hasRequiredCsharp=1;function b(r){const m=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],w=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],U=["default","false","null","true"],k=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],x=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],a={keyword:k.concat(x),built_in:m,literal:U},g=r.inherit(r.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),n={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},R=r.inherit(c,{illegal:/\n/}),v={className:"subst",begin:/\{/,end:/\}/,keywords:a},e=r.inherit(v,{illegal:/\n/}),L={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},r.BACKSLASH_ESCAPE,e]},O={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},v]},B=r.inherit(O,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},e]});v.contains=[O,L,c,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,n,r.C_BLOCK_COMMENT_MODE],e.contains=[B,L,R,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,n,r.inherit(r.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const P={variants:[O,L,c,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE]},S={begin:"<",end:">",contains:[{beginKeywords:"in out"},g]},_=r.IDENT_RE+"(<"+r.IDENT_RE+"(\\s*,\\s*"+r.IDENT_RE+")*>)?(\\[\\])?",l={begin:"@"+r.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:a,illegal:/::/,contains:[r.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:""},{begin:""}]}]}),r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},P,n,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},g,S,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[g,S,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+_+"\\s+)+"+r.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:a,contains:[{beginKeywords:w.join(" "),relevance:0},{begin:r.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[r.TITLE_MODE,S],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,relevance:0,contains:[P,n,r.C_BLOCK_COMMENT_MODE]},r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE]},l]}}return csharp_1=b,csharp_1}var csp_1,hasRequiredCsp;function requireCsp(){if(hasRequiredCsp)return csp_1;hasRequiredCsp=1;function b(r){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"]},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}return csp_1=b,csp_1}var css_1,hasRequiredCss;function requireCss(){if(hasRequiredCss)return css_1;hasRequiredCss=1;const b=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],m=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],w=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],U=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],k=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function x(a){const g=a.regex,n=b(a),c={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},R="and or not only",v=/@-?\w[\w]*(-\w+)*/,e="[a-zA-Z-][a-zA-Z0-9_-]*",L=[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,c,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+e,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+w.join("|")+")"},{begin:":(:)?("+U.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+k.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...L,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...L,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:g.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:v},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:R,attribute:m.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...L,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b"}]}}return css_1=x,css_1}var d_1,hasRequiredD;function requireD(){if(hasRequiredD)return d_1;hasRequiredD=1;function b(r){const m={$pattern:r.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},w="(0|[1-9][\\d_]*)",U="(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)",k="0[bB][01_]+",x="([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)",a="0[xX]"+x,g="([eE][+-]?"+U+")",n="("+U+"(\\.\\d*|"+g+")|\\d+\\."+U+"|\\."+w+g+"?)",c="(0[xX]("+x+"\\."+x+"|\\.?"+x+")[pP][+-]?"+U+")",R="("+w+"|"+k+"|"+a+")",v="("+c+"|"+n+")",e=`\\\\(['"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};`,L={className:"number",begin:"\\b"+R+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},O={className:"number",begin:"\\b("+v+"([fF]|L|i|[fF]i|Li)?|"+R+"(i|[fF]i|Li))",relevance:0},B={className:"string",begin:"'("+e+"|.)",end:"'",illegal:"."},S={className:"string",begin:'"',contains:[{begin:e,relevance:0}],end:'"[cwd]?'},_={className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},l={className:"string",begin:"`",end:"`[cwd]?"},y={className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},D={className:"string",begin:'q"\\{',end:'\\}"'},M={className:"meta",begin:"^#!",end:"$",relevance:5},F={className:"meta",begin:"#(line)",end:"$",relevance:5},N={className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"},G=r.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:m,contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,G,y,S,_,l,D,O,L,B,M,F,N]}}return d_1=b,d_1}var markdown_1,hasRequiredMarkdown;function requireMarkdown(){if(hasRequiredMarkdown)return markdown_1;hasRequiredMarkdown=1;function b(r){const m=r.regex,w={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},U={begin:"^[-\\*]{3,}",end:"$"},k={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},x={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},g=/[A-Za-z][A-Za-z0-9+.-]*/,n={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:m.concat(/\[.+?\]\(/,g,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},R={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},v=r.inherit(c,{contains:[]}),e=r.inherit(R,{contains:[]});c.contains.push(e),R.contains.push(v);let L=[w,n];return[c,R,v,e].forEach(P=>{P.contains=P.contains.concat(L)}),L=L.concat(c,R),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:L},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:L}]}]},w,x,c,R,{className:"quote",begin:"^>\\s+",contains:L,end:"$"},k,U,n,a]}}return markdown_1=b,markdown_1}var dart_1,hasRequiredDart;function requireDart(){if(hasRequiredDart)return dart_1;hasRequiredDart=1;function b(r){const m={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},w={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},U={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[r.BACKSLASH_ESCAPE,m,w]},{begin:'"""',end:'"""',contains:[r.BACKSLASH_ESCAPE,m,w]},{begin:"'",end:"'",illegal:"\\n",contains:[r.BACKSLASH_ESCAPE,m,w]},{begin:'"',end:'"',illegal:"\\n",contains:[r.BACKSLASH_ESCAPE,m,w]}]};w.contains=[r.C_NUMBER_MODE,U];const k=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],x=k.map(n=>`${n}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","base","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","interface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","sealed","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","when","while","with","yield"],built_in:k.concat(x).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[U,r.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),r.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},r.UNDERSCORE_TITLE_MODE]},r.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}return dart_1=b,dart_1}var delphi_1,hasRequiredDelphi;function requireDelphi(){if(hasRequiredDelphi)return delphi_1;hasRequiredDelphi=1;function b(r){const m=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],w=[r.C_LINE_COMMENT_MODE,r.COMMENT(/\{/,/\}/,{relevance:0}),r.COMMENT(/\(\*/,/\*\)/,{relevance:10})],U={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},k={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},x={className:"number",relevance:0,variants:[{begin:"\\$[0-9A-Fa-f]+"},{begin:"&[0-7]+"},{begin:"%[01]+"}]},a={className:"string",begin:/(#\d+)+/},g={begin:r.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[r.TITLE_MODE]},n={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[r.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:m,contains:[k,a,U].concat(w)},U].concat(w)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:m,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[k,a,r.NUMBER_MODE,x,g,n,U].concat(w)}}return delphi_1=b,delphi_1}var diff_1,hasRequiredDiff;function requireDiff(){if(hasRequiredDiff)return diff_1;hasRequiredDiff=1;function b(r){const m=r.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:m.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:m.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}return diff_1=b,diff_1}var django_1,hasRequiredDjango;function requireDjango(){if(hasRequiredDjango)return django_1;hasRequiredDjango=1;function b(r){const m={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[r.QUOTE_STRING_MODE,r.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[r.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),r.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[m],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[m]}]}}return django_1=b,django_1}var dns_1,hasRequiredDns;function requireDns(){if(hasRequiredDns)return dns_1;hasRequiredDns=1;function b(r){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[r.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},r.inherit(r.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}return dns_1=b,dns_1}var dockerfile_1,hasRequiredDockerfile;function requireDockerfile(){if(hasRequiredDockerfile)return dockerfile_1;hasRequiredDockerfile=1;function b(r){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[r.HASH_COMMENT_MODE,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,r.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"",illegal:"\\n"}]},m,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE]},k={className:"variable",begin:/&[a-z\d_]*\b/},x={className:"keyword",begin:"/[a-z][a-z\\d-]*/"},a={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},g={className:"params",relevance:0,begin:"<",end:">",contains:[w,k]},n={className:"title.class",begin:/[a-zA-Z_][a-zA-Z\d_@-]*(?=\s\{)/,relevance:.2},c={className:"title.class",begin:/^\/(?=\s*\{)/,relevance:10},R={match:/[a-z][a-z-,]+(?=;)/,relevance:0,scope:"attr"},v={relevance:0,match:[/[a-z][a-z-,]+/,/\s*/,/=/],scope:{1:"attr",3:"operator"}},e={scope:"punctuation",relevance:0,match:/\};|[;{}]/};return{name:"Device Tree",contains:[c,k,x,a,n,v,R,g,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,w,m,U,e,{begin:r.IDENT_RE+"::",keywords:""}]}}return dts_1=b,dts_1}var dust_1,hasRequiredDust;function requireDust(){if(hasRequiredDust)return dust_1;hasRequiredDust=1;function b(r){const m="if eq ne lt lte gt gte select default math sep";return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[r.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:m}]}}return dust_1=b,dust_1}var ebnf_1,hasRequiredEbnf;function requireEbnf(){if(hasRequiredEbnf)return ebnf_1;hasRequiredEbnf=1;function b(r){const m=r.COMMENT(/\(\*/,/\*\)/),w={className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},k={begin:/=/,end:/[.;]/,contains:[m,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]};return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[m,w,k]}}return ebnf_1=b,ebnf_1}var elixir_1,hasRequiredElixir;function requireElixir(){if(hasRequiredElixir)return elixir_1;hasRequiredElixir=1;function b(r){const m=r.regex,w="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",U="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",a={$pattern:w,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},g={className:"subst",begin:/#\{/,end:/\}/,keywords:a},n={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},R={match:/\\[\s\S]/,scope:"char.escape",relevance:0},v=`[/|([{<"']`,e=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin://}],L=D=>({scope:"char.escape",begin:m.concat(/\\/,D),relevance:0}),O={className:"string",begin:"~[a-z](?="+v+")",contains:e.map(D=>r.inherit(D,{contains:[L(D.end),R,g]}))},B={className:"string",begin:"~[A-Z](?="+v+")",contains:e.map(D=>r.inherit(D,{contains:[L(D.end)]}))},P={className:"regex",variants:[{begin:"~r(?="+v+")",contains:e.map(D=>r.inherit(D,{end:m.concat(D.end,/[uismxfU]{0,7}/),contains:[L(D.end),R,g]}))},{begin:"~R(?="+v+")",contains:e.map(D=>r.inherit(D,{end:m.concat(D.end,/[uismxfU]{0,7}/),contains:[L(D.end)]}))}]},S={className:"string",contains:[r.BACKSLASH_ESCAPE,g],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},_={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[r.inherit(r.TITLE_MODE,{begin:w,endsParent:!0})]},l=r.inherit(_,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),y=[S,P,B,O,r.HASH_COMMENT_MODE,l,_,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[S,{begin:U}],relevance:0},{className:"symbol",begin:w+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},n,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return g.contains=y,{name:"Elixir",aliases:["ex","exs"],keywords:a,contains:y}}return elixir_1=b,elixir_1}var elm_1,hasRequiredElm;function requireElm(){if(hasRequiredElm)return elm_1;hasRequiredElm=1;function b(r){const m={variants:[r.COMMENT("--","$"),r.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},w={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},U={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},m]},k={begin:/\{/,end:/\}/,contains:U.contains},x={className:"string",begin:"'\\\\?.",end:"'",illegal:"."};return{name:"Elm",keywords:["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"],contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[U,m],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[U,m],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[w,U,k,m]},{beginKeywords:"infix infixl infixr",end:"$",contains:[r.C_NUMBER_MODE,m]},{begin:"port",end:"$",keywords:"port",contains:[m]},x,r.QUOTE_STRING_MODE,r.C_NUMBER_MODE,w,r.inherit(r.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),m,{begin:"->|<-"}],illegal:/;/}}return elm_1=b,elm_1}var ruby_1,hasRequiredRuby;function requireRuby(){if(hasRequiredRuby)return ruby_1;hasRequiredRuby=1;function b(r){const m=r.regex,w="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",U=m.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),k=m.concat(U,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},g={className:"doctag",begin:"@[A-Za-z]+"},n={begin:"#<",end:">"},c=[r.COMMENT("#","$",{contains:[g]}),r.COMMENT("^=begin","^=end",{contains:[g],relevance:10}),r.COMMENT("^__END__",r.MATCH_NOTHING_RE)],R={className:"subst",begin:/#\{/,end:/\}/,keywords:a},v={className:"string",contains:[r.BACKSLASH_ESCAPE,R],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:m.concat(/<<[-~]?'?/,m.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[r.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[r.BACKSLASH_ESCAPE,R]})]}]},e="[1-9](_?[0-9])*|0",L="[0-9](_?[0-9])*",O={className:"number",relevance:0,variants:[{begin:`\\b(${e})(\\.(${L}))?([eE][+-]?(${L})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},B={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},M=[v,{variants:[{match:[/class\s+/,k,/\s+<\s+/,k]},{match:[/\b(class|module)\s+/,k]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},{match:[/(include|extend)\s+/,k],scope:{2:"title.class"},keywords:a},{relevance:0,match:[k,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:U,scope:"title.class"},{match:[/def/,/\s+/,w],scope:{1:"keyword",3:"title.function"},contains:[B]},{begin:r.IDENT_RE+"::"},{className:"symbol",begin:r.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[v,{begin:w}],relevance:0},O,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+r.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[r.BACKSLASH_ESCAPE,R],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(n,c),relevance:0}].concat(n,c);R.contains=M,B.contains=M;const F="[>?]>",N="[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",G="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",W=[{begin:/^\s*=>/,starts:{end:"$",contains:M}},{className:"meta.prompt",begin:"^("+F+"|"+N+"|"+G+")(?=[ ])",starts:{end:"$",keywords:a,contains:M}}];return c.unshift(n),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[r.SHEBANG({binary:"ruby"})].concat(W).concat(c).concat(M)}}return ruby_1=b,ruby_1}var erb_1,hasRequiredErb;function requireErb(){if(hasRequiredErb)return erb_1;hasRequiredErb=1;function b(r){return{name:"ERB",subLanguage:"xml",contains:[r.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return erb_1=b,erb_1}var erlangRepl_1,hasRequiredErlangRepl;function requireErlangRepl(){if(hasRequiredErlangRepl)return erlangRepl_1;hasRequiredErlangRepl=1;function b(r){const m=r.regex;return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta.prompt",begin:"^[0-9]+> ",relevance:10},r.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,{begin:m.concat(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}return erlangRepl_1=b,erlangRepl_1}var erlang_1,hasRequiredErlang;function requireErlang(){if(hasRequiredErlang)return erlang_1;hasRequiredErlang=1;function b(r){const m="[a-z'][a-zA-Z0-9_']*",w="("+m+":"+m+"|"+m+")",U={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},k=r.COMMENT("%","$"),x={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},a={begin:"fun\\s+"+m+"/\\d+"},g={begin:w+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:w,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},n={begin:/\{/,end:/\}/,relevance:0},c={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},R={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},v={begin:"#"+r.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+r.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},e={beginKeywords:"fun receive if try case",end:"end",keywords:U};e.contains=[k,a,r.inherit(r.APOS_STRING_MODE,{className:""}),e,g,r.QUOTE_STRING_MODE,x,n,c,R,v];const L=[k,a,e,g,r.QUOTE_STRING_MODE,x,n,c,R,v];g.contains[1].contains=L,n.contains=L,v.contains[1].contains=L;const O=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],B={className:"params",begin:"\\(",end:"\\)",contains:L};return{name:"Erlang",aliases:["erl"],keywords:U,illegal:"(",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[B,r.inherit(r.TITLE_MODE,{begin:m})],starts:{end:";|\\.",keywords:U,contains:L}},k,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+r.IDENT_RE,keyword:O.map(P=>`${P}|1.5`).join(" ")},contains:[B]},x,r.QUOTE_STRING_MODE,v,c,R,n,{begin:/\.$/}]}}return erlang_1=b,erlang_1}var excel_1,hasRequiredExcel;function requireExcel(){if(hasRequiredExcel)return excel_1;hasRequiredExcel=1;function b(r){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE|0","F.DIST","FDIST","F.DIST.RT","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDBs","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SEARCH","SEARCHB","SEC","SECH","SECOND","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SQL.REQUEST","SQRT","SQRTPI","STANDARDIZE","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTJOIN","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE|0","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UPPER","VALUE","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","XIRR","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},r.BACKSLASH_ESCAPE,r.QUOTE_STRING_MODE,{className:"number",begin:r.NUMBER_RE+"(%)?",relevance:0},r.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}return excel_1=b,excel_1}var fix_1,hasRequiredFix;function requireFix(){if(hasRequiredFix)return fix_1;hasRequiredFix=1;function b(r){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}return fix_1=b,fix_1}var flix_1,hasRequiredFlix;function requireFlix(){if(hasRequiredFlix)return flix_1;hasRequiredFlix=1;function b(r){const m={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},w={className:"string",variants:[{begin:'"',end:'"'}]},k={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",relevance:0,begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{keyword:["case","class","def","else","enum","if","impl","import","in","lat","rel","index","let","match","namespace","switch","type","yield","with"],literal:["true","false"]},contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,m,w,k,r.C_NUMBER_MODE]}}return flix_1=b,flix_1}var fortran_1,hasRequiredFortran;function requireFortran(){if(hasRequiredFortran)return fortran_1;hasRequiredFortran=1;function b(r){const m=r.regex,w={className:"params",begin:"\\(",end:"\\)"},U={variants:[r.COMMENT("!","$",{relevance:0}),r.COMMENT("^C[ ]","$",{relevance:0}),r.COMMENT("^C$","$",{relevance:0})]},k=/(_[a-z_\d]+)?/,x=/([de][+-]?\d+)?/,a={className:"number",variants:[{begin:m.concat(/\b\d+/,/\.(\d*)/,x,k)},{begin:m.concat(/\b\d+/,x,k)},{begin:m.concat(/\.\d+/,x,k)}],relevance:0},g={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[r.UNDERSCORE_TITLE_MODE,w]},n={className:"string",relevance:0,variants:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{keyword:["kind","do","concurrent","local","shared","while","private","call","intrinsic","where","elsewhere","type","endtype","endmodule","endselect","endinterface","end","enddo","endif","if","forall","endforall","only","contains","default","return","stop","then","block","endblock","endassociate","public","subroutine|10","function","program",".and.",".or.",".not.",".le.",".eq.",".ge.",".gt.",".lt.","goto","save","else","use","module","select","case","access","blank","direct","exist","file","fmt","form","formatted","iostat","name","named","nextrec","number","opened","rec","recl","sequential","status","unformatted","unit","continue","format","pause","cycle","exit","c_null_char","c_alert","c_backspace","c_form_feed","flush","wait","decimal","round","iomsg","synchronous","nopass","non_overridable","pass","protected","volatile","abstract","extends","import","non_intrinsic","value","deferred","generic","final","enumerator","class","associate","bind","enum","c_int","c_short","c_long","c_long_long","c_signed_char","c_size_t","c_int8_t","c_int16_t","c_int32_t","c_int64_t","c_int_least8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_fast8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_intmax_t","C_intptr_t","c_float","c_double","c_long_double","c_float_complex","c_double_complex","c_long_double_complex","c_bool","c_char","c_null_ptr","c_null_funptr","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","iso_c_binding","c_loc","c_funloc","c_associated","c_f_pointer","c_ptr","c_funptr","iso_fortran_env","character_storage_size","error_unit","file_storage_size","input_unit","iostat_end","iostat_eor","numeric_storage_size","output_unit","c_f_procpointer","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","newunit","contiguous","recursive","pad","position","action","delim","readwrite","eor","advance","nml","interface","procedure","namelist","include","sequence","elemental","pure","impure","integer","real","character","complex","logical","codimension","dimension","allocatable|10","parameter","external","implicit|10","none","double","precision","assign","intent","optional","pointer","target","in","out","common","equivalence","data"],literal:[".False.",".True."],built_in:["alog","alog10","amax0","amax1","amin0","amin1","amod","cabs","ccos","cexp","clog","csin","csqrt","dabs","dacos","dasin","datan","datan2","dcos","dcosh","ddim","dexp","dint","dlog","dlog10","dmax1","dmin1","dmod","dnint","dsign","dsin","dsinh","dsqrt","dtan","dtanh","float","iabs","idim","idint","idnint","ifix","isign","max0","max1","min0","min1","sngl","algama","cdabs","cdcos","cdexp","cdlog","cdsin","cdsqrt","cqabs","cqcos","cqexp","cqlog","cqsin","cqsqrt","dcmplx","dconjg","derf","derfc","dfloat","dgamma","dimag","dlgama","iqint","qabs","qacos","qasin","qatan","qatan2","qcmplx","qconjg","qcos","qcosh","qdim","qerf","qerfc","qexp","qgamma","qimag","qlgama","qlog","qlog10","qmax1","qmin1","qmod","qnint","qsign","qsin","qsinh","qsqrt","qtan","qtanh","abs","acos","aimag","aint","anint","asin","atan","atan2","char","cmplx","conjg","cos","cosh","exp","ichar","index","int","log","log10","max","min","nint","sign","sin","sinh","sqrt","tan","tanh","print","write","dim","lge","lgt","lle","llt","mod","nullify","allocate","deallocate","adjustl","adjustr","all","allocated","any","associated","bit_size","btest","ceiling","count","cshift","date_and_time","digits","dot_product","eoshift","epsilon","exponent","floor","fraction","huge","iand","ibclr","ibits","ibset","ieor","ior","ishft","ishftc","lbound","len_trim","matmul","maxexponent","maxloc","maxval","merge","minexponent","minloc","minval","modulo","mvbits","nearest","pack","present","product","radix","random_number","random_seed","range","repeat","reshape","rrspacing","scale","scan","selected_int_kind","selected_real_kind","set_exponent","shape","size","spacing","spread","sum","system_clock","tiny","transpose","trim","ubound","unpack","verify","achar","iachar","transfer","dble","entry","dprod","cpu_time","command_argument_count","get_command","get_command_argument","get_environment_variable","is_iostat_end","ieee_arithmetic","ieee_support_underflow_control","ieee_get_underflow_mode","ieee_set_underflow_mode","is_iostat_eor","move_alloc","new_line","selected_char_kind","same_type_as","extends_type_of","acosh","asinh","atanh","bessel_j0","bessel_j1","bessel_jn","bessel_y0","bessel_y1","bessel_yn","erf","erfc","erfc_scaled","gamma","log_gamma","hypot","norm2","atomic_define","atomic_ref","execute_command_line","leadz","trailz","storage_size","merge_bits","bge","bgt","ble","blt","dshiftl","dshiftr","findloc","iall","iany","iparity","image_index","lcobound","ucobound","maskl","maskr","num_images","parity","popcnt","poppar","shifta","shiftl","shiftr","this_image","sync","change","team","co_broadcast","co_max","co_min","co_sum","co_reduce"]},illegal:/\/\*/,contains:[n,g,{begin:/^C\s*=(?!=)/,relevance:0},U,a]}}return fortran_1=b,fortran_1}var fsharp_1,hasRequiredFsharp;function requireFsharp(){if(hasRequiredFsharp)return fsharp_1;hasRequiredFsharp=1;function b(a){return new RegExp(a.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function r(a){return a?typeof a=="string"?a:a.source:null}function m(a){return w("(?=",a,")")}function w(...a){return a.map(n=>r(n)).join("")}function U(a){const g=a[a.length-1];return typeof g=="object"&&g.constructor===Object?(a.splice(a.length-1,1),g):{}}function k(...a){return"("+(U(a).capture?"":"?:")+a.map(c=>r(c)).join("|")+")"}function x(a){const g=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],n={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},c=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],R=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],v=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],e=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],O={keyword:g,literal:R,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":v},P={variants:[a.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),a.C_LINE_COMMENT_MODE]},S=/[a-zA-Z_](\w|')*/,_={scope:"variable",begin:/``/,end:/``/},l=/\B('|\^)/,y={scope:"symbol",variants:[{match:w(l,/``.*?``/)},{match:w(l,a.UNDERSCORE_IDENT_RE)}],relevance:0},D=function({includeEqual:K}){let ce;K?ce="!%&*+-/<=>@^|~?":ce="!%&*+-/<>@^|~?";const de=Array.from(ce),Z=w("[",...de.map(b),"]"),ae=k(Z,/\./),he=w(ae,m(ae)),we=k(w(he,ae,"*"),w(Z,"+"));return{scope:"operator",match:k(we,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},M=D({includeEqual:!0}),F=D({includeEqual:!1}),N=function(K,ce){return{begin:w(K,m(w(/\s*/,k(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:ce,end:m(k(/\n/,/=/)),relevance:0,keywords:a.inherit(O,{type:e}),contains:[P,y,a.inherit(_,{scope:null}),F]}},G=N(/:/,"operator"),W=N(/\bof\b/,"keyword"),J={begin:[/(^|\s+)/,/type/,/\s+/,S],beginScope:{2:"keyword",4:"title.class"},end:m(/\(|=|$/),keywords:O,contains:[P,a.inherit(_,{scope:null}),y,{scope:"operator",match:/<|>/},G]},Y={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},V={begin:[/^\s*/,w(/#/,k(...c)),/\b/],beginScope:{2:"meta"},end:m(/\s|$/)},H={variants:[a.BINARY_NUMBER_MODE,a.C_NUMBER_MODE]},z={scope:"string",begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE]},X={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},a.BACKSLASH_ESCAPE]},q={scope:"string",begin:/"""/,end:/"""/,relevance:2},$={scope:"subst",begin:/\{/,end:/\}/,keywords:O},fe={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},a.BACKSLASH_ESCAPE,$]},Q={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},a.BACKSLASH_ESCAPE,$]},ie={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},$],relevance:2},Te={scope:"string",match:w(/'/,k(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return $.contains=[Q,fe,X,z,Te,n,P,_,G,Y,V,H,y,M],{name:"F#",aliases:["fs","f#"],keywords:O,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[n,{variants:[ie,Q,fe,q,X,z,Te]},P,_,J,{scope:"meta",begin:/\[\]/,relevance:2,contains:[_,q,X,z,Te,H]},W,G,Y,V,H,y,M]}}return fsharp_1=x,fsharp_1}var gams_1,hasRequiredGams;function requireGams(){if(hasRequiredGams)return gams_1;hasRequiredGams=1;function b(r){const m=r.regex,w={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},U={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},k={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},x={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[r.BACKSLASH_ESCAPE]},a={begin:"/",end:"/",keywords:w,contains:[x,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.QUOTE_STRING_MODE,r.APOS_STRING_MODE,r.C_NUMBER_MODE]},g=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,n={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[x,a,{className:"comment",begin:m.concat(g,m.anyNumberOfTimes(m.concat(/[ ]+/,g))),relevance:0}]};return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:w,contains:[r.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"keyword",begin:"^\\$[a-z0-9]+"}]},r.COMMENT("^\\*","$"),r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.QUOTE_STRING_MODE,r.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[r.COMMENT("^\\*","$"),r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.QUOTE_STRING_MODE,r.APOS_STRING_MODE,a,n]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[n]},r.COMMENT("^\\*","$"),r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.QUOTE_STRING_MODE,r.APOS_STRING_MODE,r.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},U,k]},r.C_NUMBER_MODE,k]}}return gams_1=b,gams_1}var gauss_1,hasRequiredGauss;function requireGauss(){if(hasRequiredGauss)return gauss_1;hasRequiredGauss=1;function b(r){const m={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},w=r.COMMENT("@","@"),U={className:"meta",begin:"#",end:"$",keywords:{keyword:"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{keyword:"include"},contains:[{className:"string",begin:'"',end:'"',illegal:"\\n"}]},r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,w]},k={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:r.UNDERSCORE_IDENT_RE,relevance:0}]},x=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},r.C_NUMBER_MODE,r.C_BLOCK_COMMENT_MODE,w,k]}],a={className:"title",begin:r.UNDERSCORE_IDENT_RE,relevance:0},g=function(e,L,O){const B=r.inherit({className:"function",beginKeywords:e,end:L,excludeEnd:!0,contains:[].concat(x)},O||{});return B.contains.push(a),B.contains.push(r.C_NUMBER_MODE),B.contains.push(r.C_BLOCK_COMMENT_MODE),B.contains.push(w),B},n={className:"built_in",begin:"\\b("+m.built_in.split(" ").join("|")+")\\b"},c={className:"string",begin:'"',end:'"',contains:[r.BACKSLASH_ESCAPE],relevance:0},R={begin:r.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:m,relevance:0,contains:[{beginKeywords:m.keyword},n,{className:"built_in",begin:r.UNDERSCORE_IDENT_RE,relevance:0}]},v={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:m.built_in,literal:m.literal},contains:[r.C_NUMBER_MODE,r.C_BLOCK_COMMENT_MODE,w,n,R,c,"self"]};return R.contains.push(v),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:m,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[r.C_NUMBER_MODE,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,w,c,U,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},g("proc keyword",";"),g("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[r.C_BLOCK_COMMENT_MODE,w,v]},{variants:[{begin:r.UNDERSCORE_IDENT_RE+"\\."+r.UNDERSCORE_IDENT_RE},{begin:r.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},R,k]}}return gauss_1=b,gauss_1}var gcode_1,hasRequiredGcode;function requireGcode(){if(hasRequiredGcode)return gcode_1;hasRequiredGcode=1;function b(r){const m="[A-Z_][A-Z0-9_.]*",w="%",U={$pattern:m,keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},k={className:"meta",begin:"([O])([0-9]+)"},x=r.inherit(r.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+r.C_NUMBER_RE}),a=[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.COMMENT(/\(/,/\)/),x,r.inherit(r.APOS_STRING_MODE,{illegal:null}),r.inherit(r.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[x],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:U,contains:[{className:"meta",begin:w},k].concat(a)}}return gcode_1=b,gcode_1}var gherkin_1,hasRequiredGherkin;function requireGherkin(){if(hasRequiredGherkin)return gherkin_1;hasRequiredGherkin=1;function b(r){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},r.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},r.QUOTE_STRING_MODE]}}return gherkin_1=b,gherkin_1}var glsl_1,hasRequiredGlsl;function requireGlsl(){if(hasRequiredGlsl)return glsl_1;hasRequiredGlsl=1;function b(r){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}return glsl_1=b,glsl_1}var gml_1,hasRequiredGml;function requireGml(){if(hasRequiredGml)return gml_1;hasRequiredGml=1;function b(r){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","not","or","repeat","return","switch","then","until","var","while","with","xor"],built_in:["abs","achievement_available","achievement_event","achievement_get_challenges","achievement_get_info","achievement_get_pic","achievement_increment","achievement_load_friends","achievement_load_leaderboard","achievement_load_progress","achievement_login","achievement_login_status","achievement_logout","achievement_post","achievement_post_score","achievement_reset","achievement_send_challenge","achievement_show","achievement_show_achievements","achievement_show_challenge_notifications","achievement_show_leaderboards","action_inherited","action_kill_object","ads_disable","ads_enable","ads_engagement_active","ads_engagement_available","ads_engagement_launch","ads_event","ads_event_preload","ads_get_display_height","ads_get_display_width","ads_interstitial_available","ads_interstitial_display","ads_move","ads_set_reward_callback","ads_setup","alarm_get","alarm_set","analytics_event","analytics_event_ext","angle_difference","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_copy","array_create","array_delete","array_equals","array_height_2d","array_insert","array_length","array_length_1d","array_length_2d","array_pop","array_push","array_resize","array_sort","asset_get_index","asset_get_type","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_music_gain","audio_music_is_playing","audio_pause_all","audio_pause_music","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_music","audio_play_sound","audio_play_sound_at","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_music","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_length","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_music","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_playing","audio_system","background_get_height","background_get_width","base64_decode","base64_encode","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_copy","buffer_copy_from_vertex_buffer","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","camera_apply","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_background","draw_background_ext","draw_background_part_ext","draw_background_tiled","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_alphablend","draw_enable_drawevent","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_lighting","draw_get_swf_aa_level","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_alpha_test","draw_set_alpha_test_ref_value","draw_set_blend_mode","draw_set_blend_mode_ext","draw_set_circle_precision","draw_set_color","draw_set_color_write_enable","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","environment_get_variable","event_inherited","event_perform","event_perform_object","event_user","exp","external_call","external_define","external_free","facebook_accesstoken","facebook_check_permission","facebook_dialog","facebook_graph_request","facebook_init","facebook_launch_offerwall","facebook_login","facebook_logout","facebook_post_message","facebook_request_publish_permissions","facebook_request_read_permissions","facebook_send_invite","facebook_status","facebook_user_id","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_delete","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_italic","font_get_last","font_get_name","font_get_size","font_get_texture","font_get_uvs","font_replace","font_replace_sprite","font_replace_sprite_ext","font_set_cache_size","font_texture_page_size","frac","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_is_connected","gamepad_is_supported","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_vibration","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestfunc","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_fog","gpu_get_lightingenable","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestfunc","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_fog","gpu_set_lightingenable","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_post_string","http_request","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_infinity","is_int32","is_int64","is_matrix","is_method","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","is_vec3","is_vec4","json_decode","json_encode","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_exists","layer_force_draw_depth","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_multiply","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","network_connect","network_connect_raw","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_depth","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_destroy","part_emitter_destroy_all","part_emitter_exists","part_emitter_region","part_emitter_stream","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_layer","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_speed","part_type_sprite","part_type_step","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_time","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","push_cancel_local_notification","push_get_first_local_notification","push_get_next_local_notification","push_local_notification","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_background_color","room_set_background_colour","room_set_camera","room_set_height","room_set_persistent","room_set_view","room_set_view_enabled","room_set_viewport","room_set_width","round","screen_save","screen_save_part","script_execute","script_exists","script_get_name","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_attachment_create","skeleton_attachment_get","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_data","sprite_add","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_name","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_offset","sprite_set_speed","sqr","sqrt","steam_activate_overlay","steam_activate_overlay_browser","steam_activate_overlay_store","steam_activate_overlay_user","steam_available_languages","steam_clear_achievement","steam_create_leaderboard","steam_current_game_language","steam_download_friends_scores","steam_download_scores","steam_download_scores_around_user","steam_file_delete","steam_file_exists","steam_file_persisted","steam_file_read","steam_file_share","steam_file_size","steam_file_write","steam_file_write_file","steam_get_achievement","steam_get_app_id","steam_get_persona_name","steam_get_quota_free","steam_get_quota_total","steam_get_stat_avg_rate","steam_get_stat_float","steam_get_stat_int","steam_get_user_account_id","steam_get_user_persona_name","steam_get_user_steam_id","steam_initialised","steam_is_cloud_enabled_for_account","steam_is_cloud_enabled_for_app","steam_is_overlay_activated","steam_is_overlay_enabled","steam_is_screenshot_requested","steam_is_user_logged_on","steam_reset_all_stats","steam_reset_all_stats_achievements","steam_send_screenshot","steam_set_achievement","steam_set_stat_avg_rate","steam_set_stat_float","steam_set_stat_int","steam_stats_ready","steam_ugc_create_item","steam_ugc_create_query_all","steam_ugc_create_query_all_ex","steam_ugc_create_query_user","steam_ugc_create_query_user_ex","steam_ugc_download","steam_ugc_get_item_install_info","steam_ugc_get_item_update_info","steam_ugc_get_item_update_progress","steam_ugc_get_subscribed_items","steam_ugc_num_subscribed_items","steam_ugc_query_add_excluded_tag","steam_ugc_query_add_required_tag","steam_ugc_query_set_allow_cached_response","steam_ugc_query_set_cloud_filename_filter","steam_ugc_query_set_match_any_tag","steam_ugc_query_set_ranked_by_trend_days","steam_ugc_query_set_return_long_description","steam_ugc_query_set_return_total_only","steam_ugc_query_set_search_text","steam_ugc_request_item_details","steam_ugc_send_query","steam_ugc_set_item_content","steam_ugc_set_item_description","steam_ugc_set_item_preview","steam_ugc_set_item_tags","steam_ugc_set_item_title","steam_ugc_set_item_visibility","steam_ugc_start_item_update","steam_ugc_submit_item_update","steam_ugc_subscribe_item","steam_ugc_unsubscribe_item","steam_upload_score","steam_upload_score_buffer","steam_upload_score_buffer_ext","steam_upload_score_ext","steam_user_installed_dlc","steam_user_owns_dlc","string","string_byte_at","string_byte_length","string_char_at","string_copy","string_count","string_delete","string_digits","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_upper","string_width","string_width_ext","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_free","surface_get_depth_disable","surface_get_height","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tan","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_set_stage","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_mask","tilemap_tileset","tilemap_x","tilemap_y","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_add_textcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_texcoord","vertex_ubyte4","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","win8_appbar_add_element","win8_appbar_enable","win8_appbar_remove_element","win8_device_touchscreen_available","win8_license_initialize_sandbox","win8_license_trial_version","win8_livetile_badge_clear","win8_livetile_badge_notification","win8_livetile_notification_begin","win8_livetile_notification_end","win8_livetile_notification_expiry","win8_livetile_notification_image_add","win8_livetile_notification_secondary_begin","win8_livetile_notification_tag","win8_livetile_notification_text_add","win8_livetile_queue_enable","win8_livetile_tile_clear","win8_livetile_tile_notification","win8_search_add_suggestions","win8_search_disable","win8_search_enable","win8_secondarytile_badge_notification","win8_secondarytile_delete","win8_secondarytile_pin","win8_settingscharm_add_entry","win8_settingscharm_add_html_entry","win8_settingscharm_add_xaml_entry","win8_settingscharm_get_xaml_property","win8_settingscharm_remove_entry","win8_settingscharm_set_xaml_property","win8_share_file","win8_share_image","win8_share_screenshot","win8_share_text","win8_share_url","window_center","window_device","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_license_trial_version","winphone_tile_back_content","winphone_tile_back_content_wide","winphone_tile_back_image","winphone_tile_back_image_wide","winphone_tile_back_title","winphone_tile_background_color","winphone_tile_background_colour","winphone_tile_count","winphone_tile_cycle_images","winphone_tile_front_image","winphone_tile_front_image_small","winphone_tile_front_image_wide","winphone_tile_icon_image","winphone_tile_small_background_image","winphone_tile_small_icon_image","winphone_tile_title","winphone_tile_wide_content","zip_unzip"],literal:["all","false","noone","pointer_invalid","pointer_null","true","undefined"],symbol:["ANSI_CHARSET","ARABIC_CHARSET","BALTIC_CHARSET","CHINESEBIG5_CHARSET","DEFAULT_CHARSET","EASTEUROPE_CHARSET","GB2312_CHARSET","GM_build_date","GM_runtime_version","GM_version","GREEK_CHARSET","HANGEUL_CHARSET","HEBREW_CHARSET","JOHAB_CHARSET","MAC_CHARSET","OEM_CHARSET","RUSSIAN_CHARSET","SHIFTJIS_CHARSET","SYMBOL_CHARSET","THAI_CHARSET","TURKISH_CHARSET","VIETNAMESE_CHARSET","achievement_achievement_info","achievement_filter_all_players","achievement_filter_favorites_only","achievement_filter_friends_only","achievement_friends_info","achievement_leaderboard_info","achievement_our_info","achievement_pic_loaded","achievement_show_achievement","achievement_show_bank","achievement_show_friend_picker","achievement_show_leaderboard","achievement_show_profile","achievement_show_purchase_prompt","achievement_show_ui","achievement_type_achievement_challenge","achievement_type_score_challenge","asset_font","asset_object","asset_path","asset_room","asset_script","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3d","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_new_system","audio_old_system","audio_stereo","bm_add","bm_complex","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_generalerror","buffer_grow","buffer_invalidtype","buffer_network","buffer_outofbounds","buffer_outofspace","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_surface_copy","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","button_type","c_aqua","c_black","c_blue","c_dkgray","c_fuchsia","c_gray","c_green","c_lime","c_ltgray","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","ev_alarm","ev_animation_end","ev_boundary","ev_cleanup","ev_close_button","ev_collision","ev_create","ev_destroy","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_trigger","ev_user0","ev_user1","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","fb_login_default","fb_login_fallback_to_webview","fb_login_forcing_safari","fb_login_forcing_webview","fb_login_no_fallback_to_webview","fb_login_use_system_account","gamespeed_fps","gamespeed_microseconds","ge_lose","global","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","input_type","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","lb_disp_none","lb_disp_numeric","lb_disp_time_ms","lb_disp_time_sec","lb_sort_ascending","lb_sort_descending","lb_sort_none","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","local","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mip_markedonly","mip_off","mip_on","network_config_connect_timeout","network_config_disable_reliable_udp","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_type_connect","network_type_data","network_type_disconnect","network_type_non_blocking_connect","of_challen","of_challenge_tie","of_challenge_win","os_3ds","os_android","os_bb10","os_ios","os_linux","os_macosx","os_ps3","os_ps4","os_psvita","os_switch","os_symbian","os_tizen","os_tvos","os_unknown","os_uwp","os_wiiu","os_win32","os_win8native","os_windows","os_winphone","os_xbox360","os_xboxone","other","ov_achievements","ov_community","ov_friends","ov_gamegroup","ov_players","ov_settings","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","spritespeed_framespergameframe","spritespeed_framespersecond","text_type","tf_anisotropic","tf_linear","tf_point","tile_flip","tile_index_mask","tile_mirror","tile_rotate","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","ty_real","ty_string","ugc_filetype_community","ugc_filetype_microtrans","ugc_list_Favorited","ugc_list_Followed","ugc_list_Published","ugc_list_Subscribed","ugc_list_UsedOrPlayed","ugc_list_VotedDown","ugc_list_VotedOn","ugc_list_VotedUp","ugc_list_WillVoteLater","ugc_match_AllGuides","ugc_match_Artwork","ugc_match_Collections","ugc_match_ControllerBindings","ugc_match_IntegratedGuides","ugc_match_Items","ugc_match_Items_Mtx","ugc_match_Items_ReadyToUse","ugc_match_Screenshots","ugc_match_UsableInGame","ugc_match_Videos","ugc_match_WebGuides","ugc_query_AcceptedForGameRankedByAcceptanceDate","ugc_query_CreatedByFollowedUsersRankedByPublicationDate","ugc_query_CreatedByFriendsRankedByPublicationDate","ugc_query_FavoritedByFriendsRankedByPublicationDate","ugc_query_NotYetRated","ugc_query_RankedByNumTimesReported","ugc_query_RankedByPublicationDate","ugc_query_RankedByTextSearch","ugc_query_RankedByTotalVotesAsc","ugc_query_RankedByTrend","ugc_query_RankedByVote","ugc_query_RankedByVotesUp","ugc_result_success","ugc_sortorder_CreationOrderAsc","ugc_sortorder_CreationOrderDesc","ugc_sortorder_ForModeration","ugc_sortorder_LastUpdatedDesc","ugc_sortorder_SubscriptionDateDesc","ugc_sortorder_TitleAsc","ugc_sortorder_VoteScoreDesc","ugc_visibility_friends_only","ugc_visibility_private","ugc_visibility_public","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","vertex_usage_textcoord","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_f10","vk_f11","vk_f12","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","argument_relative","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","caption_health","caption_lives","caption_score","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","error_last","error_occurred","event_action","event_data","event_number","event_object","event_type","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gamemaker_pro","gamemaker_registered","gamemaker_version","gravity","gravity_direction","health","hspeed","iap_data","id|0","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","mask_index","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","program_directory","room","room_caption","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","self","show_health","show_lives","show_score","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_angle","view_camera","view_current","view_enabled","view_hborder","view_hport","view_hspeed","view_hview","view_object","view_surface_id","view_vborder","view_visible","view_vspeed","view_wport","view_wview","view_xport","view_xview","view_yport","view_yview","visible","vspeed","webgl_enabled","working_directory","xprevious","xstart","x|0","yprevious","ystart","y|0"]},contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,r.C_NUMBER_MODE]}}return gml_1=b,gml_1}var go_1,hasRequiredGo;function requireGo(){if(hasRequiredGo)return go_1;hasRequiredGo=1;function b(r){const x={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:x,illegal:"",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,end:/\}/,subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}return haml_1=b,haml_1}var handlebars_1,hasRequiredHandlebars;function requireHandlebars(){if(hasRequiredHandlebars)return handlebars_1;hasRequiredHandlebars=1;function b(r){const m=r.regex,w={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},U={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},k=/""|"[^"]+"/,x=/''|'[^']+'/,a=/\[\]|\[[^\]]+\]/,g=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,n=/(\.|\/)/,c=m.either(k,x,a,g),R=m.concat(m.optional(/\.|\.\/|\//),c,m.anyNumberOfTimes(m.concat(n,c))),v=m.concat("(",a,"|",g,")(?==)"),e={begin:R},L=r.inherit(e,{keywords:U}),O={begin:/\(/,end:/\)/},B={className:"attr",begin:v,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[r.NUMBER_MODE,r.QUOTE_STRING_MODE,r.APOS_STRING_MODE,L,O]}}},P={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},S={contains:[r.NUMBER_MODE,r.QUOTE_STRING_MODE,r.APOS_STRING_MODE,P,B,L,O],returnEnd:!0},_=r.inherit(e,{className:"name",keywords:w,starts:r.inherit(S,{end:/\)/})});O.contains=[_];const l=r.inherit(e,{keywords:w,className:"name",starts:r.inherit(S,{end:/\}\}/})}),y=r.inherit(e,{keywords:w,className:"name"}),D=r.inherit(e,{className:"name",keywords:w,starts:r.inherit(S,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},r.COMMENT(/\{\{!--/,/--\}\}/),r.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[l],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[y]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[l]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[y]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[D]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[D]}]}}return handlebars_1=b,handlebars_1}var haskell_1,hasRequiredHaskell;function requireHaskell(){if(hasRequiredHaskell)return haskell_1;hasRequiredHaskell=1;function b(r){const m="([0-9]_*)+",w="([0-9a-fA-F]_*)+",U="([01]_*)+",k="([0-7]_*)+",n="([!#$%&*+.\\/<=>?@\\\\^~-]|(?!([(),;\\[\\]`|{}]|[_:\"']))(\\p{S}|\\p{P}))",c={variants:[r.COMMENT("--+","$"),r.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},R={className:"meta",begin:/\{-#/,end:/#-\}/},v={className:"meta",begin:"^#",end:"$"},e={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},L={begin:"\\(",end:"\\)",illegal:'"',contains:[R,v,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},r.inherit(r.TITLE_MODE,{begin:"[_a-z][\\w']*"}),c]},O={begin:/\{/,end:/\}/,contains:L.contains},B={className:"number",relevance:0,variants:[{match:`\\b(${m})(\\.(${m}))?([eE][+-]?(${m}))?\\b`},{match:`\\b0[xX]_*(${w})(\\.(${w}))?([pP][+-]?(${m}))?\\b`},{match:`\\b0[oO](${k})\\b`},{match:`\\b0[bB](${U})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",unicodeRegex:!0,contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[L,c],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[L,c],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[e,L,c]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[R,e,L,O,c]},{beginKeywords:"default",end:"$",contains:[e,L,c]},{beginKeywords:"infix infixl infixr",end:"$",contains:[r.C_NUMBER_MODE,c]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[e,r.QUOTE_STRING_MODE,c]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},R,v,{scope:"string",begin:/'(?=\\?.')/,end:/'/,contains:[{scope:"char.escape",match:/\\./}]},r.QUOTE_STRING_MODE,B,e,r.inherit(r.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),{begin:`(?!-)${n}--+|--+(?!-)${n}`},c,{begin:"->|<-"}]}}return haskell_1=b,haskell_1}var haxe_1,hasRequiredHaxe;function requireHaxe(){if(hasRequiredHaxe)return haxe_1;hasRequiredHaxe=1;function b(r){const m="[a-zA-Z_$][a-zA-Z0-9_$]*",w=/(-?)(\b0[xX][a-fA-F0-9_]+|(\b\d+(\.[\d_]*)?|\.[\d_]+)(([eE][-+]?\d+)|i32|u32|i64|f64)?)/;return{name:"Haxe",aliases:["hx"],keywords:{keyword:"abstract break case cast catch continue default do dynamic else enum extern final for function here if import in inline is macro never new override package private get set public return static super switch this throw trace try typedef untyped using var while "+"Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[r.BACKSLASH_ESCAPE,{className:"subst",begin:/\$\{/,end:/\}/},{className:"subst",begin:/\$/,end:/\W\}/}]},r.QUOTE_STRING_MODE,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,{className:"number",begin:w,relevance:0},{className:"variable",begin:"\\$"+m},{className:"meta",begin:/@:?/,end:/\(|$/,excludeEnd:!0},{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elseif end error"}},{className:"type",begin:/:[ \t]*/,end:/[^A-Za-z0-9_ \t\->]/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/:[ \t]*/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/new */,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"title.class",beginKeywords:"enum",end:/\{/,contains:[r.TITLE_MODE]},{className:"title.class",begin:"\\babstract\\b(?=\\s*"+r.IDENT_RE+"\\s*\\()",end:/[\{$]/,contains:[{className:"type",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/from +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},{className:"type",begin:/to +/,end:/\W/,excludeBegin:!0,excludeEnd:!0},r.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"title.class",begin:/\b(class|interface) +/,end:/[\{$]/,excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:/\b(extends|implements) +/,keywords:"extends implements",contains:[{className:"type",begin:r.IDENT_RE,relevance:0}]},r.TITLE_MODE]},{className:"title.function",beginKeywords:"function",end:/\(/,excludeEnd:!0,illegal:/\S/,contains:[r.TITLE_MODE]}],illegal:/<\//}}return haxe_1=b,haxe_1}var hsp_1,hasRequiredHsp;function requireHsp(){if(hasRequiredHsp)return hsp_1;hasRequiredHsp=1;function b(r){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.QUOTE_STRING_MODE,r.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[r.BACKSLASH_ESCAPE]},r.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{keyword:"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[r.inherit(r.QUOTE_STRING_MODE,{className:"string"}),r.NUMBER_MODE,r.C_NUMBER_MODE,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},r.NUMBER_MODE,r.C_NUMBER_MODE]}}return hsp_1=b,hsp_1}var http_1,hasRequiredHttp;function requireHttp(){if(hasRequiredHttp)return http_1;hasRequiredHttp=1;function b(r){const m=r.regex,w="HTTP/([32]|1\\.[01])",U=/[A-Za-z][A-Za-z0-9-]*/,k={className:"attribute",begin:m.concat("^",U,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},x=[k,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+w+" \\d{3})",end:/$/,contains:[{className:"meta",begin:w},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:x}},{begin:"(?=^[A-Z]+ (.*?) "+w+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:w},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:x}},r.inherit(k,{relevance:0})]}}return http_1=b,http_1}var hy_1,hasRequiredHy;function requireHy(){if(hasRequiredHy)return hy_1;hasRequiredHy=1;function b(r){const m="a-zA-Z_\\-!.?+*=<>&#'",w="["+m+"]["+m+"0-9/;:]*",U={$pattern:w,built_in:"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},k="[-+]?\\d+(\\.\\d+)?",x={begin:w,relevance:0},a={className:"number",begin:k,relevance:0},g=r.inherit(r.QUOTE_STRING_MODE,{illegal:null}),n=r.COMMENT(";","$",{relevance:0}),c={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},R={begin:"[\\[\\{]",end:"[\\]\\}]",relevance:0},v={className:"comment",begin:"\\^"+w},e=r.COMMENT("\\^\\{","\\}"),L={className:"symbol",begin:"[:]{1,2}"+w},O={begin:"\\(",end:"\\)"},B={endsWithParent:!0,relevance:0},P={className:"name",relevance:0,keywords:U,begin:w,starts:B},S=[O,g,v,e,n,L,R,a,c,x];return O.contains=[r.COMMENT("comment",""),P,B],B.contains=S,R.contains=S,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[r.SHEBANG(),O,g,v,e,n,L,R,a,c]}}return hy_1=b,hy_1}var inform7_1,hasRequiredInform7;function requireInform7(){if(hasRequiredInform7)return inform7_1;hasRequiredInform7=1;function b(r){const m="\\[",w="\\]";return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:m,end:w}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:m,end:w,contains:["self"]}]}}return inform7_1=b,inform7_1}var ini_1,hasRequiredIni;function requireIni(){if(hasRequiredIni)return ini_1;hasRequiredIni=1;function b(r){const m=r.regex,w={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:r.NUMBER_RE}]},U=r.COMMENT();U.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const k={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},x={className:"literal",begin:/\bon|off|true|false|yes|no\b/},a={className:"string",contains:[r.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},g={begin:/\[/,end:/\]/,contains:[U,x,k,a,w,"self"],relevance:0},n=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,R=/'[^']*'/,v=m.either(n,c,R),e=m.concat(v,"(\\s*\\.\\s*",v,")*",m.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[U,{className:"section",begin:/\[+/,end:/\]+/},{begin:e,className:"attr",starts:{end:/$/,contains:[U,g,x,k,a,w]}}]}}return ini_1=b,ini_1}var irpf90_1,hasRequiredIrpf90;function requireIrpf90(){if(hasRequiredIrpf90)return irpf90_1;hasRequiredIrpf90=1;function b(r){const m=r.regex,w={className:"params",begin:"\\(",end:"\\)"},U=/(_[a-z_\d]+)?/,k=/([de][+-]?\d+)?/,x={className:"number",variants:[{begin:m.concat(/\b\d+/,/\.(\d*)/,k,U)},{begin:m.concat(/\b\d+/,k,U)},{begin:m.concat(/\.\d+/,k,U)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[r.inherit(r.APOS_STRING_MODE,{className:"string",relevance:0}),r.inherit(r.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[r.UNDERSCORE_TITLE_MODE,w]},r.COMMENT("!","$",{relevance:0}),r.COMMENT("begin_doc","end_doc",{relevance:10}),x]}}return irpf90_1=b,irpf90_1}var isbl_1,hasRequiredIsbl;function requireIsbl(){if(hasRequiredIsbl)return isbl_1;hasRequiredIsbl=1;function b(r){const m="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",w="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*",U="and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",k="SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE ",x="CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE ",a="ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME ",g="DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ",n="ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION ",c="JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY ",R="ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE ",v="smHidden smMaximized smMinimized smNormal wmNo wmYes ",e="COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND ",L="COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE ",O="MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY ",B="NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY ",P="dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT ",S="CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM ",_="ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME ",l="PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE ",y="ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE ",D="CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT ",M="STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER ",F="COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE ",N="SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID ",G="RESULT_VAR_NAME RESULT_VAR_NAME_ENG ",W="AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID ",J="SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY ",Y="SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY ",V="SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS ",H="SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS ",z="SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS ",X="ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME ",q="TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME ",$="ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk ",fe="EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE ",Q="cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate ",ie="ISBL_SYNTAX NO_SYNTAX XML_SYNTAX ",Te="WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY ",me="SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP ",K=k+x+a+g+n+c+R+v+e+L+O+B+P+S+_+l+y+D+M+F+N+G+W+J+Y+V+H+z+X+q+$+fe+Q+ie+Te+me,ce="atUser atGroup atRole ",de="aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty ",Z="apBegin apEnd ",ae="alLeft alRight ",he="asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways ",we="cirCommon cirRevoked ",_e="ctSignature ctEncode ctSignatureEncode ",ye="clbUnchecked clbChecked clbGrayed ",se="ceISB ceAlways ceNever ",Ie="ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob ",Ce="cfInternal cfDisplay ",oe="ciUnspecified ciWrite ciRead ",pe="ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog ",xe="ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton ",Ne="cctDate cctInteger cctNumeric cctPick cctReference cctString cctText ",ke="cltInternal cltPrimary cltGUI ",De="dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange ",Fe="dssEdit dssInsert dssBrowse dssInActive ",Pe="dftDate dftShortDate dftDateTime dftTimeStamp ",qe="dotDays dotHours dotMinutes dotSeconds ",Le="dtkndLocal dtkndUTC ",Oe="arNone arView arEdit arFull ",Ee="ddaView ddaEdit ",Ae="emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode ",Ve="ecotFile ecotProcess ",$e="eaGet eaCopy eaCreate eaCreateStandardRoute ",Ue="edltAll edltNothing edltQuery ",He="essmText essmCard ",Qe="esvtLast esvtLastActive esvtSpecified ",Ze="edsfExecutive edsfArchive ",et="edstSQLServer edstFile ",tt="edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile ",je="vsDefault vsDesign vsActive vsObsolete ",Je="etNone etCertificate etPassword etCertificatePassword ",nt="ecException ecWarning ecInformation ",Ke="estAll estApprovingOnly ",at="evtLast evtLastActive evtQuery ",ot="fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger ",Xe="ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch ",ze="grhAuto grhX1 grhX2 grhX3 ",Ye="hltText hltRTF hltHTML ",st="iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG ",_t="im8bGrayscale im24bRGB im1bMonochrome ",ft="itBMP itJPEG itWMF itPNG ",Ct="ikhInformation ikhWarning ikhError ikhNoIcon ",ut="icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler ",rt="isShow isHide isByUserSettings ",mt="jkJob jkNotice jkControlJob ",Ot="jtInner jtLeft jtRight jtFull jtCross ",dt="lbpAbove lbpBelow lbpLeft lbpRight ",Nt="eltPerConnection eltPerUser ",kt="sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac ",Ut="sfsItalic sfsStrikeout sfsNormal ",Ht="ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents ",Kt="mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom ",qt="vtEqual vtGreaterOrEqual vtLessOrEqual vtRange ",pn="rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth ",vt="rdWindow rdFile rdPrinter ",xt="rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument ",Rt="reOnChange reOnChangeValues ",At="ttGlobal ttLocal ttUser ttSystem ",Pt="ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal ",$t="smSelect smLike smCard ",Wt="stNone stAuthenticating stApproving ",Dt="sctString sctStream ",Yt="sstAnsiSort sstNaturalSort ",Vt="svtEqual svtContain ",rn="soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown ",en="tarAbortByUser tarAbortByWorkflowException ",Xt="tvtAllWords tvtExactPhrase tvtAnyWord ",ht="usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp ",Et="utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected ",It="btAnd btDetailAnd btOr btNotOr btOnly ",wt="vmView vmSelect vmNavigation ",Bt="vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection ",Jt="wfatPrevious wfatNext wfatCancel wfatFinish ",_n="wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 ",nn="wfetQueryParameter wfetText wfetDelimiter wfetLabel ",an="wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate ",bn="wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal ",Cn="wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal ",Mn="waAll waPerformers waManual ",Gn="wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause ",xr="wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection ",Kn="wiLow wiNormal wiHigh ",Hn="wrtSoft wrtHard ",zn="wsInit wsRunning wsDone wsControlled wsAborted wsContinued ",kn="wtmFull wtmFromCurrent wtmOnlyCurrent ",vr=ce+de+Z+ae+he+we+_e+ye+se+Ie+Ce+oe+pe+xe+Ne+ke+De+Fe+Pe+qe+Le+Oe+Ee+Ae+Ve+$e+Ue+He+Qe+Ze+et+tt+je+Je+nt+Ke+at+ot+Xe+ze+Ye+st+_t+ft+Ct+ut+rt+mt+Ot+dt+Nt+kt+Ut+Ht+Kt+qt+pn+vt+xt+Rt+At+Pt+$t+Wt+Dt+Yt+Vt+rn+en+Xt+ht+Et+It+wt+Bt+Jt+_n+nn+an+bn+Cn+Mn+Gn+xr+Kn+Hn+zn+kn,lr="AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр ",Tr="AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",Qn="IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ",Zn=K+vr,cr=Tr,ur="null true false nil ",Cr={className:"number",begin:r.NUMBER_RE,relevance:0},Jn={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},qn={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},dr={className:"comment",begin:"//",end:"$",relevance:0,contains:[r.PHRASAL_WORDS_MODE,qn]},Ar={className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[r.PHRASAL_WORDS_MODE,qn]},fr={variants:[dr,Ar]},Wn={$pattern:m,keyword:U,built_in:Zn,class:cr,literal:ur},er={begin:"\\.\\s*"+r.UNDERSCORE_IDENT_RE,keywords:Wn,relevance:0},Rr={className:"type",begin:":[ \\t]*("+Qn.trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},gr={className:"variable",keywords:Wn,begin:m,relevance:0,contains:[Rr,er]},tr=w+"\\(";return{name:"ISBL",case_insensitive:!0,keywords:Wn,illegal:"\\$|\\?|%|,|;$|~|#|@|U(x,a,g-1))}function k(x){const a=x.regex,g="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",n=g+U("(?:<"+g+"~~~(?:\\s*,\\s*"+g+"~~~)*>)?",/~~~/g,2),L={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},O={className:"meta",begin:"@"+g,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},B={className:"params",begin:/\(/,end:/\)/,keywords:L,relevance:0,contains:[x.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:L,illegal:/<\/|#/,contains:[x.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},x.C_LINE_COMMENT_MODE,x.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[x.BACKSLASH_ESCAPE]},x.APOS_STRING_MODE,x.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,g],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[a.concat(/(?!else)/,g),/\s+/,g,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,g],className:{1:"keyword",3:"title.class"},contains:[B,x.C_LINE_COMMENT_MODE,x.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+n+"\\s+)",x.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:L,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:L,relevance:0,contains:[O,x.APOS_STRING_MODE,x.QUOTE_STRING_MODE,w,x.C_BLOCK_COMMENT_MODE]},x.C_LINE_COMMENT_MODE,x.C_BLOCK_COMMENT_MODE]},w,O]}}return java_1=k,java_1}var javascript_1,hasRequiredJavascript;function requireJavascript(){if(hasRequiredJavascript)return javascript_1;hasRequiredJavascript=1;const b="[A-Za-z$_][0-9A-Za-z$_]*",r=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],m=["true","false","null","undefined","NaN","Infinity"],w=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],U=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],k=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],x=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(k,w,U);function g(n){const c=n.regex,R=(de,{after:Z})=>{const ae="",end:""},L=/<[A-Za-z0-9\\._:-]+\s*\/>/,O={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(de,Z)=>{const ae=de[0].length+de.index,he=de.input[ae];if(he==="<"||he===","){Z.ignoreMatch();return}he===">"&&(R(de,{after:ae})||Z.ignoreMatch());let we;const _e=de.input.substring(ae);if(we=_e.match(/^\s*=/)){Z.ignoreMatch();return}if((we=_e.match(/^\s+extends\s+/))&&we.index===0){Z.ignoreMatch();return}}},B={$pattern:b,keyword:r,literal:m,built_in:a,"variable.language":x},P="[0-9](_?[0-9])*",S=`\\.(${P})`,_="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",l={className:"number",variants:[{begin:`(\\b(${_})((${S})|\\.)?|(${S}))[eE][+-]?(${P})\\b`},{begin:`\\b(${_})\\b((${S})\\b|\\.)?|(${S})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},y={className:"subst",begin:"\\$\\{",end:"\\}",keywords:B,contains:[]},D={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,y],subLanguage:"xml"}},M={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,y],subLanguage:"css"}},F={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},N={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,y]},W={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:v+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},J=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,D,M,F,N,{match:/\$\d+/},l];y.contains=J.concat({begin:/\{/,end:/\}/,keywords:B,contains:["self"].concat(J)});const Y=[].concat(W,y.contains),V=Y.concat([{begin:/\(/,end:/\)/,keywords:B,contains:["self"].concat(Y)}]),H={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:B,contains:V},z={variants:[{match:[/class/,/\s+/,v,/\s+/,/extends/,/\s+/,c.concat(v,"(",c.concat(/\./,v),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,v],scope:{1:"keyword",3:"title.class"}}]},X={relevance:0,match:c.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...w,...U]}},q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},$={variants:[{match:[/function/,/\s+/,v,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[H],illegal:/%/},fe={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Q(de){return c.concat("(?!",de.join("|"),")")}const ie={match:c.concat(/\b/,Q([...k,"super","import"]),v,c.lookahead(/\(/)),className:"title.function",relevance:0},Te={begin:c.concat(/\./,c.lookahead(c.concat(v,/(?![0-9A-Za-z$_(])/))),end:v,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},me={match:[/get|set/,/\s+/,v,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},H]},K="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",ce={match:[/const|var|let/,/\s+/,v,/\s*/,/=\s*/,/(async\s*)?/,c.lookahead(K)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[H]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:B,exports:{PARAMS_CONTAINS:V,CLASS_REFERENCE:X},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),q,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,D,M,F,N,W,{match:/\$\d+/},l,X,{className:"attr",begin:v+c.lookahead(":"),relevance:0},ce,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[W,n.REGEXP_MODE,{className:"function",begin:K,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:B,contains:V}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:e.begin,end:e.end},{match:L},{begin:O.begin,"on:begin":O.isTrulyOpeningTag,end:O.end}],subLanguage:"xml",contains:[{begin:O.begin,end:O.end,skip:!0,contains:["self"]}]}]},$,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[H,n.inherit(n.TITLE_MODE,{begin:v,className:"title.function"})]},{match:/\.\.\./,relevance:0},Te,{match:"\\$"+v,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[H]},ie,fe,z,me,{match:/\$[(.]/}]}}return javascript_1=g,javascript_1}var jbossCli_1,hasRequiredJbossCli;function requireJbossCli(){if(hasRequiredJbossCli)return jbossCli_1;hasRequiredJbossCli=1;function b(r){const w={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0},U={className:"function",begin:/:[\w\-.]+/,relevance:0},k={className:"string",begin:/\B([\/.])[\w\-.\/=]+/},x={className:"params",begin:/--[\w\-=\/]+/};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[r.HASH_COMMENT_MODE,r.QUOTE_STRING_MODE,x,U,k,w]}}return jbossCli_1=b,jbossCli_1}var json_1,hasRequiredJson;function requireJson(){if(hasRequiredJson)return json_1;hasRequiredJson=1;function b(r){const m={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},w={match:/[{}[\],:]/,className:"punctuation",relevance:0},U=["true","false","null"],k={scope:"literal",beginKeywords:U.join(" ")};return{name:"JSON",keywords:{literal:U},contains:[m,w,r.QUOTE_STRING_MODE,k,r.C_NUMBER_MODE,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}return json_1=b,json_1}var julia_1,hasRequiredJulia;function requireJulia(){if(hasRequiredJulia)return julia_1;hasRequiredJulia=1;function b(r){const m="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",x={$pattern:m,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},a={keywords:x,illegal:/<\//},g={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},n={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},c={className:"subst",begin:/\$\(/,end:/\)/,keywords:x},R={className:"variable",begin:"\\$"+m},v={className:"string",contains:[r.BACKSLASH_ESCAPE,c,R],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},e={className:"string",contains:[r.BACKSLASH_ESCAPE,c,R],begin:"`",end:"`"},L={className:"meta",begin:"@"+m},O={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return a.name="Julia",a.contains=[g,n,v,e,L,O,r.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],c.contains=a.contains,a}return julia_1=b,julia_1}var juliaRepl_1,hasRequiredJuliaRepl;function requireJuliaRepl(){if(hasRequiredJuliaRepl)return juliaRepl_1;hasRequiredJuliaRepl=1;function b(r){return{name:"Julia REPL",contains:[{className:"meta.prompt",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"}}],aliases:["jldoctest"]}}return juliaRepl_1=b,juliaRepl_1}var kotlin_1,hasRequiredKotlin;function requireKotlin(){if(hasRequiredKotlin)return kotlin_1;hasRequiredKotlin=1;var b="[0-9](_*[0-9])*",r=`\\.(${b})`,m="[0-9a-fA-F](_*[0-9a-fA-F])*",w={className:"number",variants:[{begin:`(\\b(${b})((${r})|\\.)?|(${r}))[eE][+-]?(${b})[fFdD]?\\b`},{begin:`\\b(${b})((${r})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${r})[fFdD]?\\b`},{begin:`\\b(${b})[fFdD]\\b`},{begin:`\\b0[xX]((${m})\\.?|(${m})?\\.(${m}))[pP][+-]?(${b})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${m})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function U(k){const x={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},a={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},g={className:"symbol",begin:k.UNDERSCORE_IDENT_RE+"@"},n={className:"subst",begin:/\$\{/,end:/\}/,contains:[k.C_NUMBER_MODE]},c={className:"variable",begin:"\\$"+k.UNDERSCORE_IDENT_RE},R={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[c,n]},{begin:"'",end:"'",illegal:/\n/,contains:[k.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[k.BACKSLASH_ESCAPE,c,n]}]};n.contains.push(R);const v={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+k.UNDERSCORE_IDENT_RE+")?"},e={className:"meta",begin:"@"+k.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[k.inherit(R,{className:"string"}),"self"]}]},L=w,O=k.COMMENT("/\\*","\\*/",{contains:[k.C_BLOCK_COMMENT_MODE]}),B={variants:[{className:"type",begin:k.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},P=B;return P.variants[1].contains=[B],B.variants[1].contains=[P],{name:"Kotlin",aliases:["kt","kts"],keywords:x,contains:[k.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),k.C_LINE_COMMENT_MODE,O,a,g,v,e,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:x,relevance:5,contains:[{begin:k.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[k.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:x,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[B,k.C_LINE_COMMENT_MODE,O],relevance:0},k.C_LINE_COMMENT_MODE,O,v,e,R,k.C_NUMBER_MODE]},O]},{begin:[/class|interface|trait/,/\s+/,k.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},k.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},v,e]},R,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:` `},L]}}return kotlin_1=U,kotlin_1}var lasso_1,hasRequiredLasso;function requireLasso(){if(hasRequiredLasso)return lasso_1;hasRequiredLasso=1;function b(r){const m="[a-zA-Z_][\\w.]*",w="<\\?(lasso(script)?|=)",U="\\]|\\?>",k={$pattern:m+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},x=r.COMMENT("",{relevance:0}),a={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[x]}},g={className:"meta",begin:"\\[/noprocess|"+w},n={className:"symbol",begin:"'"+m+"'"},c=[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.inherit(r.C_NUMBER_MODE,{begin:r.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),r.inherit(r.APOS_STRING_MODE,{illegal:null}),r.inherit(r.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+m},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:m,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+m,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[n]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[r.inherit(r.TITLE_MODE,{begin:m+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:k,contains:[{className:"meta",begin:U,relevance:0,starts:{end:"\\[|"+w,returnEnd:!0,relevance:0,contains:[x]}},a,g,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:k,contains:[{className:"meta",begin:U,relevance:0,starts:{end:"\\[noprocess\\]|"+w,returnEnd:!0,contains:[x]}},a,g].concat(c)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(c)}}return lasso_1=b,lasso_1}var latex_1,hasRequiredLatex;function requireLatex(){if(hasRequiredLatex)return latex_1;hasRequiredLatex=1;function b(r){const w=r.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(W=>W+"(?![a-zA-Z@:_])")),U=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(W=>W+"(?![a-zA-Z:_])").join("|")),k=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],x=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],a={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:w},{endsParent:!0,begin:U},{endsParent:!0,variants:x},{endsParent:!0,relevance:0,variants:k}]},g={className:"params",relevance:0,begin:/#+\d?/},n={variants:x},c={className:"built_in",relevance:0,begin:/[$&^_]/},R={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},v=r.COMMENT("%","$",{relevance:0}),e=[a,g,n,c,R,v],L={begin:/\{/,end:/\}/,relevance:0,contains:["self",...e]},O=r.inherit(L,{relevance:0,endsParent:!0,contains:[L,...e]}),B={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[L,...e]},P={begin:/\s+/,relevance:0},S=[O],_=[B],l=function(W,J){return{contains:[P],starts:{relevance:0,contains:W,starts:J}}},y=function(W,J){return{begin:"\\\\"+W+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+W},relevance:0,contains:[P],starts:J}},D=function(W,J){return r.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+W+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},l(S,J))},M=(W="string")=>r.END_SAME_AS_BEGIN({className:W,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),F=function(W){return{className:"string",end:"(?=\\\\end\\{"+W+"\\})"}},N=(W="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:W,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),G=[...["verb","lstinline"].map(W=>y(W,{contains:[M()]})),y("mint",l(S,{contains:[M()]})),y("mintinline",l(S,{contains:[N(),M()]})),y("url",{contains:[N("link"),N("link")]}),y("hyperref",{contains:[N("link")]}),y("href",l(_,{contains:[N("link")]})),...[].concat(...["","\\*"].map(W=>[D("verbatim"+W,F("verbatim"+W)),D("filecontents"+W,l(S,F("filecontents"+W))),...["","B","L"].map(J=>D(J+"Verbatim"+W,l(_,F(J+"Verbatim"+W))))])),D("minted",l(_,l(S,F("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...G,...e]}}return latex_1=b,latex_1}var ldif_1,hasRequiredLdif;function requireLdif(){if(hasRequiredLdif)return ldif_1;hasRequiredLdif=1;function b(r){return{name:"LDIF",contains:[{className:"attribute",match:"^dn(?=:)",relevance:10},{className:"attribute",match:"^\\w+(?=:)"},{className:"literal",match:"^-"},r.HASH_COMMENT_MODE]}}return ldif_1=b,ldif_1}var leaf_1,hasRequiredLeaf;function requireLeaf(){if(hasRequiredLeaf)return leaf_1;hasRequiredLeaf=1;function b(r){const m=/([A-Za-z_][A-Za-z_0-9]*)?/,U={scope:"params",begin:/\(/,end:/\)(?=\:?)/,endsParent:!0,relevance:7,contains:[{scope:"string",begin:'"',end:'"'},{scope:"keyword",match:["true","false","in"].join("|")},{scope:"variable",match:/[A-Za-z_][A-Za-z_0-9]*/},{scope:"operator",match:/\+|\-|\*|\/|\%|\=\=|\=|\!|\>|\<|\&\&|\|\|/}]},k={match:[m,/(?=\()/],scope:{1:"keyword"},contains:[U]};return U.contains.unshift(k),{name:"Leaf",contains:[{match:[/#+/,m,/(?=\()/],scope:{1:"punctuation",2:"keyword"},starts:{contains:[{match:/\:/,scope:"punctuation"}]},contains:[U]},{match:[/#+/,m,/:?/],scope:{1:"punctuation",2:"keyword",3:"punctuation"}}]}}return leaf_1=b,leaf_1}var less_1,hasRequiredLess;function requireLess(){if(hasRequiredLess)return less_1;hasRequiredLess=1;const b=g=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:g.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[g.APOS_STRING_MODE,g.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:g.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],m=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],w=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],U=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],k=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),x=w.concat(U);function a(g){const n=b(g),c=x,R="and or not only",v="[\\w-]+",e="("+v+"|@\\{"+v+"\\})",L=[],O=[],B=function(W){return{className:"string",begin:"~?"+W+".*?"+W}},P=function(W,J,Y){return{className:W,begin:J,relevance:Y}},S={$pattern:/[a-z-]+/,keyword:R,attribute:m.join(" ")},_={begin:"\\(",end:"\\)",contains:O,keywords:S,relevance:0};O.push(g.C_LINE_COMMENT_MODE,g.C_BLOCK_COMMENT_MODE,B("'"),B('"'),n.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},n.HEXCOLOR,_,P("variable","@@?"+v,10),P("variable","@\\{"+v+"\\}"),P("built_in","~?`[^`]*?`"),{className:"attribute",begin:v+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},n.IMPORTANT,{beginKeywords:"and not"},n.FUNCTION_DISPATCH);const l=O.concat({begin:/\{/,end:/\}/,contains:L}),y={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(O)},D={begin:e+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+k.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:O}}]},M={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:S,returnEnd:!0,contains:O,relevance:0}},F={className:"variable",variants:[{begin:"@"+v+"\\s*:",relevance:15},{begin:"@"+v}],starts:{end:"[;}]",returnEnd:!0,contains:l}},N={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:e,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[g.C_LINE_COMMENT_MODE,g.C_BLOCK_COMMENT_MODE,y,P("keyword","all\\b"),P("variable","@\\{"+v+"\\}"),{begin:"\\b("+r.join("|")+")\\b",className:"selector-tag"},n.CSS_NUMBER_MODE,P("selector-tag",e,0),P("selector-id","#"+e),P("selector-class","\\."+e,0),P("selector-tag","&",0),n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+w.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+U.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:l},{begin:"!important"},n.FUNCTION_DISPATCH]},G={begin:v+`:(:)?(${c.join("|")})`,returnBegin:!0,contains:[N]};return L.push(g.C_LINE_COMMENT_MODE,g.C_BLOCK_COMMENT_MODE,M,F,G,D,N,y,n.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:L}}return less_1=a,less_1}var lisp_1,hasRequiredLisp;function requireLisp(){if(hasRequiredLisp)return lisp_1;hasRequiredLisp=1;function b(r){const m="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",w="\\|[^]*?\\|",U="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",k={className:"literal",begin:"\\b(t{1}|nil)\\b"},x={className:"number",variants:[{begin:U,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+U+" +"+U,end:"\\)"}]},a=r.inherit(r.QUOTE_STRING_MODE,{illegal:null}),g=r.COMMENT(";","$",{relevance:0}),n={begin:"\\*",end:"\\*"},c={className:"symbol",begin:"[:&]"+m},R={begin:m,relevance:0},v={begin:w},L={contains:[x,a,n,c,{begin:"\\(",end:"\\)",contains:["self",k,a,x,R]},R],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+w}]},O={variants:[{begin:"'"+m},{begin:"#'"+m+"(::"+m+")*"}]},B={begin:"\\(\\s*",end:"\\)"},P={endsWithParent:!0,relevance:0};return B.contains=[{className:"name",variants:[{begin:m,relevance:0},{begin:w}]},P],P.contains=[L,O,B,k,x,a,g,n,c,v,R],{name:"Lisp",illegal:/\S/,contains:[x,r.SHEBANG(),k,a,g,L,O,B,R]}}return lisp_1=b,lisp_1}var livecodeserver_1,hasRequiredLivecodeserver;function requireLivecodeserver(){if(hasRequiredLivecodeserver)return livecodeserver_1;hasRequiredLivecodeserver=1;function b(r){const m={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},w=[r.C_BLOCK_COMMENT_MODE,r.HASH_COMMENT_MODE,r.COMMENT("--","$"),r.COMMENT("[^:]//","$")],U=r.inherit(r.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),k=r.inherit(r.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[m,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[m,k,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,r.BINARY_NUMBER_MODE,r.C_NUMBER_MODE,U]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[k,U],relevance:0},{beginKeywords:"command on",end:"$",contains:[m,k,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,r.BINARY_NUMBER_MODE,r.C_NUMBER_MODE,U]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,r.BINARY_NUMBER_MODE,r.C_NUMBER_MODE,U].concat(w),illegal:";$|^\\[|^=|&|\\{"}}return livecodeserver_1=b,livecodeserver_1}var livescript_1,hasRequiredLivescript;function requireLivescript(){if(hasRequiredLivescript)return livescript_1;hasRequiredLivescript=1;const b=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],m=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],w=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],U=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],k=[].concat(U,m,w);function x(a){const g=["npm","print"],n=["yes","no","on","off","it","that","void"],c=["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"],R={keyword:b.concat(c),literal:r.concat(n),built_in:k.concat(g)},v="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",e=a.inherit(a.TITLE_MODE,{begin:v}),L={className:"subst",begin:/#\{/,end:/\}/,keywords:R},O={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:R},B=[a.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[a.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[a.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[a.BACKSLASH_ESCAPE,L,O]},{begin:/"/,end:/"/,contains:[a.BACKSLASH_ESCAPE,L,O]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[L,a.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+v},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];L.contains=B;const P={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:R,contains:["self"].concat(B)}]},S={begin:"(#=>|=>|\\|>>|-?->|!->)"},_={variants:[{match:[/class\s+/,v,/\s+extends\s+/,v]},{match:[/class\s+/,v]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:R};return{name:"LiveScript",aliases:["ls"],keywords:R,illegal:/\/\*/,contains:B.concat([a.COMMENT("\\/\\*","\\*\\/"),a.HASH_COMMENT_MODE,S,{className:"function",contains:[e,P],returnBegin:!0,variants:[{begin:"("+v+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+v+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+v+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},_,{begin:v+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return livescript_1=x,livescript_1}var llvm_1,hasRequiredLlvm;function requireLlvm(){if(hasRequiredLlvm)return llvm_1;hasRequiredLlvm=1;function b(r){const m=r.regex,w=/([-a-zA-Z$._][\w$.-]*)/,U={className:"type",begin:/\bi\d+(?=\s|\b)/},k={className:"operator",relevance:0,begin:/=/},x={className:"punctuation",relevance:0,begin:/,/},a={className:"number",variants:[{begin:/[su]?0[xX][KMLHR]?[a-fA-F0-9]+/},{begin:/[-+]?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0},g={className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},n={className:"variable",variants:[{begin:m.concat(/%/,w)},{begin:/%\d+/},{begin:/#\d+/}]},c={className:"title",variants:[{begin:m.concat(/@/,w)},{begin:/@\d+/},{begin:m.concat(/!/,w)},{begin:m.concat(/!\d+/,w)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[U,r.COMMENT(/;\s*$/,null,{relevance:0}),r.COMMENT(/;/,/$/),{className:"string",begin:/"/,end:/"/,contains:[{className:"char.escape",match:/\\\d\d/}]},c,x,k,n,g,a]}}return llvm_1=b,llvm_1}var lsl_1,hasRequiredLsl;function requireLsl(){if(hasRequiredLsl)return lsl_1;hasRequiredLsl=1;function b(r){const w={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},U={className:"number",relevance:0,begin:r.C_NUMBER_RE},k={className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},x={className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[w,{className:"comment",variants:[r.COMMENT("//","$"),r.COMMENT("/\\*","\\*/")],relevance:0},U,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},x,k,{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}return lsl_1=b,lsl_1}var lua_1,hasRequiredLua;function requireLua(){if(hasRequiredLua)return lua_1;hasRequiredLua=1;function b(r){const m="\\[=*\\[",w="\\]=*\\]",U={begin:m,end:w,contains:["self"]},k=[r.COMMENT("--(?!"+m+")","$"),r.COMMENT("--"+m,w,{contains:[U],relevance:10})];return{name:"Lua",keywords:{$pattern:r.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:k.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[r.inherit(r.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:k}].concat(k)},r.C_NUMBER_MODE,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,{className:"string",begin:m,end:w,contains:[U],relevance:5}])}}return lua_1=b,lua_1}var makefile_1,hasRequiredMakefile;function requireMakefile(){if(hasRequiredMakefile)return makefile_1;hasRequiredMakefile=1;function b(r){const m={className:"variable",variants:[{begin:"\\$\\("+r.UNDERSCORE_IDENT_RE+"\\)",contains:[r.BACKSLASH_ESCAPE]},{begin:/\$[@%{O.has(M[0])||F.ignoreMatch()}},{className:"symbol",relevance:0,begin:L}]},P={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},S={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},_={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},l={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},y={className:"brace",relevance:0,begin:/[[\](){}]/},D={className:"message-name",relevance:0,begin:w.concat("::",L)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[m.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),_,l,D,B,P,m.QUOTE_STRING_MODE,e,S,y]}}return mathematica_1=r,mathematica_1}var matlab_1,hasRequiredMatlab;function requireMatlab(){if(hasRequiredMatlab)return matlab_1;hasRequiredMatlab=1;function b(r){const m="('|\\.')+",w={relevance:0,contains:[{begin:m}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[r.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:w},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+m,relevance:0},{className:"number",begin:r.C_NUMBER_RE,relevance:0,starts:w},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:w},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:w},r.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),r.COMMENT("%","$")]}}return matlab_1=b,matlab_1}var maxima_1,hasRequiredMaxima;function requireMaxima(){if(hasRequiredMaxima)return maxima_1;hasRequiredMaxima=1;function b(r){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},r.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}return maxima_1=b,maxima_1}var mel_1,hasRequiredMel;function requireMel(){if(hasRequiredMel)return mel_1;hasRequiredMel=1;function b(r){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:""},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|-->"},{begin:"=",relevance:0}]},w,r.C_BLOCK_COMMENT_MODE,U,r.NUMBER_MODE,k,x,{begin:/:-/},{begin:/\.$/}]}}return mercury_1=b,mercury_1}var mipsasm_1,hasRequiredMipsasm;function requireMipsasm(){if(hasRequiredMipsasm)return mipsasm_1;hasRequiredMipsasm=1;function b(r){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+r.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},r.COMMENT("[;#](?!\\s*$)","$"),r.C_BLOCK_COMMENT_MODE,r.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}return mipsasm_1=b,mipsasm_1}var mizar_1,hasRequiredMizar;function requireMizar(){if(hasRequiredMizar)return mizar_1;hasRequiredMizar=1;function b(r){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[r.COMMENT("::","$")]}}return mizar_1=b,mizar_1}var perl_1,hasRequiredPerl;function requirePerl(){if(hasRequiredPerl)return perl_1;hasRequiredPerl=1;function b(r){const m=r.regex,w=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],U=/[dualxmsipngr]{0,12}/,k={$pattern:/[\w.]+/,keyword:w.join(" ")},x={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:k},a={begin:/->\{/,end:/\}/},g={variants:[{begin:/\$\d/},{begin:m.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},n=[r.BACKSLASH_ESCAPE,x,g],c=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],R=(L,O,B="\\1")=>{const P=B==="\\1"?B:m.concat(B,O);return m.concat(m.concat("(?:",L,")"),O,/(?:\\.|[^\\\/])*?/,P,/(?:\\.|[^\\\/])*?/,B,U)},v=(L,O,B)=>m.concat(m.concat("(?:",L,")"),O,/(?:\\.|[^\\\/])*?/,B,U),e=[g,r.HASH_COMMENT_MODE,r.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),a,{className:"string",contains:n,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[r.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[r.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+r.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[r.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:R("s|tr|y",m.either(...c,{capture:!0}))},{begin:R("s|tr|y","\\(","\\)")},{begin:R("s|tr|y","\\[","\\]")},{begin:R("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:v("(?:m|qr)?",/\//,/\//)},{begin:v("m|qr",m.either(...c,{capture:!0}),/\1/)},{begin:v("m|qr",/\(/,/\)/)},{begin:v("m|qr",/\[/,/\]/)},{begin:v("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[r.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return x.contains=e,a.contains=e,{name:"Perl",aliases:["pl","pm"],keywords:k,contains:e}}return perl_1=b,perl_1}var mojolicious_1,hasRequiredMojolicious;function requireMojolicious(){if(hasRequiredMojolicious)return mojolicious_1;hasRequiredMojolicious=1;function b(r){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}return mojolicious_1=b,mojolicious_1}var monkey_1,hasRequiredMonkey;function requireMonkey(){if(hasRequiredMonkey)return monkey_1;hasRequiredMonkey=1;function b(r){const m={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},r.NUMBER_MODE]},w={variants:[{match:[/(function|method)/,/\s+/,r.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.function"}},U={variants:[{match:[/(class|interface|extends|implements)/,/\s+/,r.UNDERSCORE_IDENT_RE]}],scope:{1:"keyword",3:"title.class"}};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:["public","private","property","continue","exit","extern","new","try","catch","eachin","not","abstract","final","select","case","default","const","local","global","field","end","if","then","else","elseif","endif","while","wend","repeat","until","forever","for","to","step","next","return","module","inline","throw","import","and","or","shl","shr","mod"],built_in:["DebugLog","DebugStop","Error","Print","ACos","ACosr","ASin","ASinr","ATan","ATan2","ATan2r","ATanr","Abs","Abs","Ceil","Clamp","Clamp","Cos","Cosr","Exp","Floor","Log","Max","Max","Min","Min","Pow","Sgn","Sgn","Sin","Sinr","Sqrt","Tan","Tanr","Seed","PI","HALFPI","TWOPI"],literal:["true","false","null"]},illegal:/\/\*/,contains:[r.COMMENT("#rem","#end"),r.COMMENT("'","$",{relevance:0}),w,U,{className:"variable.language",begin:/\b(self|super)\b/},{className:"meta",begin:/\s*#/,end:"$",keywords:{keyword:"if else elseif endif end then"}},{match:[/^\s*/,/strict\b/],scope:{2:"meta"}},{beginKeywords:"alias",end:"=",contains:[r.UNDERSCORE_TITLE_MODE]},r.QUOTE_STRING_MODE,m]}}return monkey_1=b,monkey_1}var moonscript_1,hasRequiredMoonscript;function requireMoonscript(){if(hasRequiredMoonscript)return moonscript_1;hasRequiredMoonscript=1;function b(r){const m={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},w="[A-Za-z$_][0-9A-Za-z$_]*",U={className:"subst",begin:/#\{/,end:/\}/,keywords:m},k=[r.inherit(r.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[r.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[r.BACKSLASH_ESCAPE,U]}]},{className:"built_in",begin:"@__"+r.IDENT_RE},{begin:"@"+r.IDENT_RE},{begin:r.IDENT_RE+"\\\\"+r.IDENT_RE}];U.contains=k;const x=r.inherit(r.TITLE_MODE,{begin:w}),a="(\\(.*\\)\\s*)?\\B[-=]>",g={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:m,contains:["self"].concat(k)}]};return{name:"MoonScript",aliases:["moon"],keywords:m,illegal:/\/\*/,contains:k.concat([r.COMMENT("--","$"),{className:"function",begin:"^\\s*"+w+"\\s*=\\s*"+a,end:"[-=]>",returnBegin:!0,contains:[x,g]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:a,end:"[-=]>",returnBegin:!0,contains:[g]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[x]},x]},{className:"name",begin:w+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}return moonscript_1=b,moonscript_1}var n1ql_1,hasRequiredN1ql;function requireN1ql(){if(hasRequiredN1ql)return n1ql_1;hasRequiredN1ql=1;function b(r){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,keywords:{keyword:["all","alter","analyze","and","any","array","as","asc","begin","between","binary","boolean","break","bucket","build","by","call","case","cast","cluster","collate","collection","commit","connect","continue","correlate","cover","create","database","dataset","datastore","declare","decrement","delete","derived","desc","describe","distinct","do","drop","each","element","else","end","every","except","exclude","execute","exists","explain","fetch","first","flatten","for","force","from","function","grant","group","gsi","having","if","ignore","ilike","in","include","increment","index","infer","inline","inner","insert","intersect","into","is","join","key","keys","keyspace","known","last","left","let","letting","like","limit","lsm","map","mapping","matched","materialized","merge","minus","namespace","nest","not","number","object","offset","on","option","or","order","outer","over","parse","partition","password","path","pool","prepare","primary","private","privilege","procedure","public","raw","realm","reduce","rename","return","returning","revoke","right","role","rollback","satisfies","schema","select","self","semi","set","show","some","start","statistics","string","system","then","to","transaction","trigger","truncate","under","union","unique","unknown","unnest","unset","update","upsert","use","user","using","validate","value","valued","values","via","view","when","where","while","with","within","work","xor"],literal:["true","false","null","missing|5"],built_in:["array_agg","array_append","array_concat","array_contains","array_count","array_distinct","array_ifnull","array_length","array_max","array_min","array_position","array_prepend","array_put","array_range","array_remove","array_repeat","array_replace","array_reverse","array_sort","array_sum","avg","count","max","min","sum","greatest","least","ifmissing","ifmissingornull","ifnull","missingif","nullif","ifinf","ifnan","ifnanorinf","naninf","neginfif","posinfif","clock_millis","clock_str","date_add_millis","date_add_str","date_diff_millis","date_diff_str","date_part_millis","date_part_str","date_trunc_millis","date_trunc_str","duration_to_str","millis","str_to_millis","millis_to_str","millis_to_utc","millis_to_zone_name","now_millis","now_str","str_to_duration","str_to_utc","str_to_zone_name","decode_json","encode_json","encoded_size","poly_length","base64","base64_encode","base64_decode","meta","uuid","abs","acos","asin","atan","atan2","ceil","cos","degrees","e","exp","ln","log","floor","pi","power","radians","random","round","sign","sin","sqrt","tan","trunc","object_length","object_names","object_pairs","object_inner_pairs","object_values","object_inner_values","object_add","object_put","object_remove","object_unwrap","regexp_contains","regexp_like","regexp_position","regexp_replace","contains","initcap","length","lower","ltrim","position","repeat","replace","rtrim","split","substr","title","trim","upper","isarray","isatom","isboolean","isnumber","isobject","isstring","type","toarray","toatom","toboolean","tonumber","toobject","tostring"]},contains:[{className:"string",begin:"'",end:"'",contains:[r.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[r.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[r.BACKSLASH_ESCAPE]},r.C_NUMBER_MODE,r.C_BLOCK_COMMENT_MODE]},r.C_BLOCK_COMMENT_MODE]}}return n1ql_1=b,n1ql_1}var nestedtext_1,hasRequiredNestedtext;function requireNestedtext(){if(hasRequiredNestedtext)return nestedtext_1;hasRequiredNestedtext=1;function b(r){const m={match:[/^\s*(?=\S)/,/[^:]+/,/:\s*/,/$/],className:{2:"attribute",3:"punctuation"}},w={match:[/^\s*(?=\S)/,/[^:]*[^: ]/,/[ ]*:/,/[ ]/,/.*$/],className:{2:"attribute",3:"punctuation",5:"string"}},U={match:[/^\s*/,/>/,/[ ]/,/.*$/],className:{2:"punctuation",4:"string"}},k={variants:[{match:[/^\s*/,/-/,/[ ]/,/.*$/]},{match:[/^\s*/,/-$/]}],className:{2:"bullet",4:"string"}};return{name:"Nested Text",aliases:["nt"],contains:[r.inherit(r.HASH_COMMENT_MODE,{begin:/^\s*(?=#)/,excludeBegin:!0}),k,U,m,w]}}return nestedtext_1=b,nestedtext_1}var nginx_1,hasRequiredNginx;function requireNginx(){if(hasRequiredNginx)return nginx_1;hasRequiredNginx=1;function b(r){const m=r.regex,w={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:m.concat(/[$@]/,r.UNDERSCORE_IDENT_RE)}]},k={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[r.HASH_COMMENT_MODE,{className:"string",contains:[r.BACKSLASH_ESCAPE,w],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[w]},{className:"regexp",contains:[r.BACKSLASH_ESCAPE,w],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},w]};return{name:"Nginx config",aliases:["nginxconf"],contains:[r.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:k.contains,keywords:{section:"upstream location"}},{className:"section",begin:m.concat(r.UNDERSCORE_IDENT_RE+m.lookahead(/\s+\{/)),relevance:0},{begin:m.lookahead(r.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:r.UNDERSCORE_IDENT_RE,starts:k}],relevance:0}],illegal:"[^\\s\\}\\{]"}}return nginx_1=b,nginx_1}var nim_1,hasRequiredNim;function requireNim(){if(hasRequiredNim)return nim_1;hasRequiredNim=1;function b(r){return{name:"Nim",keywords:{keyword:["addr","and","as","asm","bind","block","break","case","cast","const","continue","converter","discard","distinct","div","do","elif","else","end","enum","except","export","finally","for","from","func","generic","guarded","if","import","in","include","interface","is","isnot","iterator","let","macro","method","mixin","mod","nil","not","notin","object","of","or","out","proc","ptr","raise","ref","return","shared","shl","shr","static","template","try","tuple","type","using","var","when","while","with","without","xor","yield"],literal:["true","false"],type:["int","int8","int16","int32","int64","uint","uint8","uint16","uint32","uint64","float","float32","float64","bool","char","string","cstring","pointer","expr","stmt","void","auto","any","range","array","openarray","varargs","seq","set","clong","culong","cchar","cschar","cshort","cint","csize","clonglong","cfloat","cdouble","clongdouble","cuchar","cushort","cuint","culonglong","cstringarray","semistatic"],built_in:["stdin","stdout","stderr","result"]},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},r.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},r.HASH_COMMENT_MODE]}}return nim_1=b,nim_1}var nix_1,hasRequiredNix;function requireNix(){if(hasRequiredNix)return nix_1;hasRequiredNix=1;function b(r){const m={keyword:["rec","with","let","in","inherit","assert","if","else","then"],literal:["true","false","or","and","null"],built_in:["import","abort","baseNameOf","dirOf","isNull","builtins","map","removeAttrs","throw","toString","derivation"]},w={className:"subst",begin:/\$\{/,end:/\}/,keywords:m},U={className:"char.escape",begin:/''\$/},k={begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/,relevance:.2}]},x={className:"string",contains:[U,w],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},a=[r.NUMBER_MODE,r.HASH_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,x,k];return w.contains=a,{name:"Nix",aliases:["nixos"],keywords:m,contains:a}}return nix_1=b,nix_1}var nodeRepl_1,hasRequiredNodeRepl;function requireNodeRepl(){if(hasRequiredNodeRepl)return nodeRepl_1;hasRequiredNodeRepl=1;function b(r){return{name:"Node REPL",contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return nodeRepl_1=b,nodeRepl_1}var nsis_1,hasRequiredNsis;function requireNsis(){if(hasRequiredNsis)return nsis_1;hasRequiredNsis=1;function b(r){const m=r.regex,w=["ADMINTOOLS","APPDATA","CDBURN_AREA","CMDLINE","COMMONFILES32","COMMONFILES64","COMMONFILES","COOKIES","DESKTOP","DOCUMENTS","EXEDIR","EXEFILE","EXEPATH","FAVORITES","FONTS","HISTORY","HWNDPARENT","INSTDIR","INTERNET_CACHE","LANGUAGE","LOCALAPPDATA","MUSIC","NETHOOD","OUTDIR","PICTURES","PLUGINSDIR","PRINTHOOD","PROFILE","PROGRAMFILES32","PROGRAMFILES64","PROGRAMFILES","QUICKLAUNCH","RECENT","RESOURCES_LOCALIZED","RESOURCES","SENDTO","SMPROGRAMS","SMSTARTUP","STARTMENU","SYSDIR","TEMP","TEMPLATES","VIDEOS","WINDIR"],U=["ARCHIVE","FILE_ATTRIBUTE_ARCHIVE","FILE_ATTRIBUTE_NORMAL","FILE_ATTRIBUTE_OFFLINE","FILE_ATTRIBUTE_READONLY","FILE_ATTRIBUTE_SYSTEM","FILE_ATTRIBUTE_TEMPORARY","HKCR","HKCU","HKDD","HKEY_CLASSES_ROOT","HKEY_CURRENT_CONFIG","HKEY_CURRENT_USER","HKEY_DYN_DATA","HKEY_LOCAL_MACHINE","HKEY_PERFORMANCE_DATA","HKEY_USERS","HKLM","HKPD","HKU","IDABORT","IDCANCEL","IDIGNORE","IDNO","IDOK","IDRETRY","IDYES","MB_ABORTRETRYIGNORE","MB_DEFBUTTON1","MB_DEFBUTTON2","MB_DEFBUTTON3","MB_DEFBUTTON4","MB_ICONEXCLAMATION","MB_ICONINFORMATION","MB_ICONQUESTION","MB_ICONSTOP","MB_OK","MB_OKCANCEL","MB_RETRYCANCEL","MB_RIGHT","MB_RTLREADING","MB_SETFOREGROUND","MB_TOPMOST","MB_USERICON","MB_YESNO","NORMAL","OFFLINE","READONLY","SHCTX","SHELL_CONTEXT","SYSTEM|TEMPORARY"],k=["addincludedir","addplugindir","appendfile","assert","cd","define","delfile","echo","else","endif","error","execute","finalize","getdllversion","gettlbversion","if","ifdef","ifmacrodef","ifmacrondef","ifndef","include","insertmacro","macro","macroend","makensis","packhdr","searchparse","searchreplace","system","tempfile","undef","uninstfinalize","verbose","warning"],x={className:"variable.constant",begin:m.concat(/\$/,m.either(...w))},a={className:"variable",begin:/\$+\{[\!\w.:-]+\}/},g={className:"variable",begin:/\$+\w[\w\.]*/,illegal:/\(\)\{\}/},n={className:"variable",begin:/\$+\([\w^.:!-]+\)/},c={className:"params",begin:m.either(...U)},R={className:"keyword",begin:m.concat(/!/,m.either(...k))},v={className:"char.escape",begin:/\$(\\[nrt]|\$)/},e={className:"title.function",begin:/\w+::\w+/},L={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[v,x,a,g,n]},O=["Abort","AddBrandingImage","AddSize","AllowRootDirInstall","AllowSkipFiles","AutoCloseWindow","BGFont","BGGradient","BrandingText","BringToFront","Call","CallInstDLL","Caption","ChangeUI","CheckBitmap","ClearErrors","CompletedText","ComponentText","CopyFiles","CRCCheck","CreateDirectory","CreateFont","CreateShortCut","Delete","DeleteINISec","DeleteINIStr","DeleteRegKey","DeleteRegValue","DetailPrint","DetailsButtonText","DirText","DirVar","DirVerify","EnableWindow","EnumRegKey","EnumRegValue","Exch","Exec","ExecShell","ExecShellWait","ExecWait","ExpandEnvStrings","File","FileBufSize","FileClose","FileErrorText","FileOpen","FileRead","FileReadByte","FileReadUTF16LE","FileReadWord","FileWriteUTF16LE","FileSeek","FileWrite","FileWriteByte","FileWriteWord","FindClose","FindFirst","FindNext","FindWindow","FlushINI","GetCurInstType","GetCurrentAddress","GetDlgItem","GetDLLVersion","GetDLLVersionLocal","GetErrorLevel","GetFileTime","GetFileTimeLocal","GetFullPathName","GetFunctionAddress","GetInstDirError","GetKnownFolderPath","GetLabelAddress","GetTempFileName","GetWinVer","Goto","HideWindow","Icon","IfAbort","IfErrors","IfFileExists","IfRebootFlag","IfRtlLanguage","IfShellVarContextAll","IfSilent","InitPluginsDir","InstallButtonText","InstallColors","InstallDir","InstallDirRegKey","InstProgressFlags","InstType","InstTypeGetText","InstTypeSetText","Int64Cmp","Int64CmpU","Int64Fmt","IntCmp","IntCmpU","IntFmt","IntOp","IntPtrCmp","IntPtrCmpU","IntPtrOp","IsWindow","LangString","LicenseBkColor","LicenseData","LicenseForceSelection","LicenseLangString","LicenseText","LoadAndSetImage","LoadLanguageFile","LockWindow","LogSet","LogText","ManifestDPIAware","ManifestLongPathAware","ManifestMaxVersionTested","ManifestSupportedOS","MessageBox","MiscButtonText","Name|0","Nop","OutFile","Page","PageCallbacks","PEAddResource","PEDllCharacteristics","PERemoveResource","PESubsysVer","Pop","Push","Quit","ReadEnvStr","ReadINIStr","ReadRegDWORD","ReadRegStr","Reboot","RegDLL","Rename","RequestExecutionLevel","ReserveFile","Return","RMDir","SearchPath","SectionGetFlags","SectionGetInstTypes","SectionGetSize","SectionGetText","SectionIn","SectionSetFlags","SectionSetInstTypes","SectionSetSize","SectionSetText","SendMessage","SetAutoClose","SetBrandingImage","SetCompress","SetCompressor","SetCompressorDictSize","SetCtlColors","SetCurInstType","SetDatablockOptimize","SetDateSave","SetDetailsPrint","SetDetailsView","SetErrorLevel","SetErrors","SetFileAttributes","SetFont","SetOutPath","SetOverwrite","SetRebootFlag","SetRegView","SetShellVarContext","SetSilent","ShowInstDetails","ShowUninstDetails","ShowWindow","SilentInstall","SilentUnInstall","Sleep","SpaceTexts","StrCmp","StrCmpS","StrCpy","StrLen","SubCaption","Unicode","UninstallButtonText","UninstallCaption","UninstallIcon","UninstallSubCaption","UninstallText","UninstPage","UnRegDLL","Var","VIAddVersionKey","VIFileVersion","VIProductVersion","WindowIcon","WriteINIStr","WriteRegBin","WriteRegDWORD","WriteRegExpandStr","WriteRegMultiStr","WriteRegNone","WriteRegStr","WriteUninstaller","XPStyle"],B=["admin","all","auto","both","bottom","bzip2","colored","components","current","custom","directory","false","force","hide","highest","ifdiff","ifnewer","instfiles","lastused","leave","left","license","listonly","lzma","nevershow","none","normal","notset","off","on","open","print","right","show","silent","silentlog","smooth","textonly","top","true","try","un.components","un.custom","un.directory","un.instfiles","un.license","uninstConfirm","user","Win10","Win7","Win8","WinVista","zlib"],P={match:[/Function/,/\s+/,m.concat(/(\.)?/,r.IDENT_RE)],scope:{1:"keyword",3:"title.function"}},_={match:[/Var/,/\s+/,/(?:\/GLOBAL\s+)?/,/[A-Za-z][\w.]*/],scope:{1:"keyword",3:"params",4:"variable"}};return{name:"NSIS",case_insensitive:!0,keywords:{keyword:O,literal:B},contains:[r.HASH_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.COMMENT(";","$",{relevance:0}),_,P,{beginKeywords:"Function PageEx Section SectionGroup FunctionEnd SectionEnd"},L,R,a,g,n,c,e,r.NUMBER_MODE]}}return nsis_1=b,nsis_1}var objectivec_1,hasRequiredObjectivec;function requireObjectivec(){if(hasRequiredObjectivec)return objectivec_1;hasRequiredObjectivec=1;function b(r){const m={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},w=/[a-zA-Z@][a-zA-Z0-9_]*/,g={"variable.language":["this","super"],$pattern:w,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},n={$pattern:w,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:g,illegal:"/,end:/$/,illegal:"\\n"},r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+n.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:n,contains:[r.UNDERSCORE_TITLE_MODE]},{begin:"\\."+r.UNDERSCORE_IDENT_RE,relevance:0}]}}return objectivec_1=b,objectivec_1}var ocaml_1,hasRequiredOcaml;function requireOcaml(){if(hasRequiredOcaml)return ocaml_1;hasRequiredOcaml=1;function b(r){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},r.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},r.inherit(r.APOS_STRING_MODE,{className:"string",relevance:0}),r.inherit(r.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}return ocaml_1=b,ocaml_1}var openscad_1,hasRequiredOpenscad;function requireOpenscad(){if(hasRequiredOpenscad)return openscad_1;hasRequiredOpenscad=1;function b(r){const m={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},w={className:"literal",begin:"false|true|PI|undef"},U={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},k=r.inherit(r.QUOTE_STRING_MODE,{illegal:null}),x={className:"meta",keywords:{keyword:"include use"},begin:"include|use <",end:">"},a={className:"params",begin:"\\(",end:"\\)",contains:["self",U,k,m,w]},g={begin:"[*!#%]",relevance:0},n={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[a,r.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,U,x,k,m,g,n]}}return openscad_1=b,openscad_1}var oxygene_1,hasRequiredOxygene;function requireOxygene(){if(hasRequiredOxygene)return oxygene_1;hasRequiredOxygene=1;function b(r){const m={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},w=r.COMMENT(/\{/,/\}/,{relevance:0}),U=r.COMMENT("\\(\\*","\\*\\)",{relevance:10}),k={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},x={className:"string",begin:"(#\\d+)+"},a={beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[r.inherit(r.TITLE_MODE,{scope:"title.function"}),{className:"params",begin:"\\(",end:"\\)",keywords:m,contains:[k,x]},w,U]},g={scope:"punctuation",match:/;/,relevance:0};return{name:"Oxygene",case_insensitive:!0,keywords:m,illegal:'("|\\$[G-Zg-z]|\\/\\*||->)',contains:[w,U,r.C_LINE_COMMENT_MODE,k,x,r.NUMBER_MODE,a,g]}}return oxygene_1=b,oxygene_1}var parser3_1,hasRequiredParser3;function requireParser3(){if(hasRequiredParser3)return parser3_1;hasRequiredParser3=1;function b(r){const m=r.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[r.COMMENT("^#","$"),r.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[m]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},r.C_NUMBER_MODE]}}return parser3_1=b,parser3_1}var pf_1,hasRequiredPf;function requirePf(){if(hasRequiredPf)return pf_1;hasRequiredPf=1;function b(r){const m={className:"variable",begin:/\$[\w\d#@][\w\d_]*/,relevance:0},w={className:"variable",begin:/<(?!\/)/,end:/>/};return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[r.HASH_COMMENT_MODE,r.NUMBER_MODE,r.QUOTE_STRING_MODE,m,w]}}return pf_1=b,pf_1}var pgsql_1,hasRequiredPgsql;function requirePgsql(){if(hasRequiredPgsql)return pgsql_1;hasRequiredPgsql=1;function b(r){const m=r.COMMENT("--","$"),w="[a-zA-Z_][a-zA-Z_0-9$]*",U="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",k="<<\\s*"+w+"\\s*>>",x="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",a="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",g="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",n="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",c=n.trim().split(" ").map(function(B){return B.split("|")[0]}).join("|"),R="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",v="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",e="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",O="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map(function(B){return B.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:x+g+a,built_in:R+v+e},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:r.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+O+")\\s*\\("},{begin:"\\.("+c+")\\b"},{begin:"\\b("+c+")\\s+PATH\\b",keywords:{keyword:"PATH",type:n.replace("PATH ","")}},{className:"type",begin:"\\b("+c+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},r.END_SAME_AS_BEGIN({begin:U,end:U,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},r.C_NUMBER_MODE,r.C_BLOCK_COMMENT_MODE,m,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:k,relevance:10}]}}return pgsql_1=b,pgsql_1}var php_1,hasRequiredPhp;function requirePhp(){if(hasRequiredPhp)return php_1;hasRequiredPhp=1;function b(r){const m=r.regex,w=/(?![A-Za-z0-9])(?![$])/,U=m.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,w),k=m.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,w),x={scope:"variable",match:"\\$+"+U},a={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},g={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},n=r.inherit(r.APOS_STRING_MODE,{illegal:null}),c=r.inherit(r.QUOTE_STRING_MODE,{illegal:null,contains:r.QUOTE_STRING_MODE.contains.concat(g)}),R={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:r.QUOTE_STRING_MODE.contains.concat(g),"on:begin":(V,H)=>{H.data._beginMatch=V[1]||V[2]},"on:end":(V,H)=>{H.data._beginMatch!==V[1]&&H.ignoreMatch()}},v=r.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),e=`[ ]`,L={scope:"string",variants:[c,n,R,v]},O={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},B=["false","null","true"],P=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],S=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],l={keyword:P,literal:(V=>{const H=[];return V.forEach(z=>{H.push(z),z.toLowerCase()===z?H.push(z.toUpperCase()):H.push(z.toLowerCase())}),H})(B),built_in:S},y=V=>V.map(H=>H.replace(/\|\d+$/,"")),D={variants:[{match:[/new/,m.concat(e,"+"),m.concat("(?!",y(S).join("\\b|"),"\\b)"),k],scope:{1:"keyword",4:"title.class"}}]},M=m.concat(U,"\\b(?!\\()"),F={variants:[{match:[m.concat(/::/,m.lookahead(/(?!class\b)/)),M],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[k,m.concat(/::/,m.lookahead(/(?!class\b)/)),M],scope:{1:"title.class",3:"variable.constant"}},{match:[k,m.concat("::",m.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[k,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},N={scope:"attr",match:m.concat(U,m.lookahead(":"),m.lookahead(/(?!::)/))},G={relevance:0,begin:/\(/,end:/\)/,keywords:l,contains:[N,x,F,r.C_BLOCK_COMMENT_MODE,L,O,D]},W={relevance:0,match:[/\b/,m.concat("(?!fn\\b|function\\b|",y(P).join("\\b|"),"|",y(S).join("\\b|"),"\\b)"),U,m.concat(e,"*"),m.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[G]};G.contains.push(W);const J=[N,F,r.C_BLOCK_COMMENT_MODE,L,O,D],Y={begin:m.concat(/#\[\s*/,k),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:B,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:B,keyword:["new","array"]},contains:["self",...J]},...J,{scope:"meta",match:k}]};return{case_insensitive:!1,keywords:l,contains:[Y,r.HASH_COMMENT_MODE,r.COMMENT("//","$"),r.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:r.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},a,{scope:"variable.language",match:/\$this\b/},x,W,F,{match:[/const/,/\s/,U],scope:{1:"keyword",3:"variable.constant"}},D,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},r.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:l,contains:["self",x,F,r.C_BLOCK_COMMENT_MODE,L,O]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},r.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[r.inherit(r.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},r.UNDERSCORE_TITLE_MODE]},L,O]}}return php_1=b,php_1}var phpTemplate_1,hasRequiredPhpTemplate;function requirePhpTemplate(){if(hasRequiredPhpTemplate)return phpTemplate_1;hasRequiredPhpTemplate=1;function b(r){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},r.inherit(r.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),r.inherit(r.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}return phpTemplate_1=b,phpTemplate_1}var plaintext_1,hasRequiredPlaintext;function requirePlaintext(){if(hasRequiredPlaintext)return plaintext_1;hasRequiredPlaintext=1;function b(r){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}return plaintext_1=b,plaintext_1}var pony_1,hasRequiredPony;function requirePony(){if(hasRequiredPony)return pony_1;hasRequiredPony=1;function b(r){const m={keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},w={className:"string",begin:'"""',end:'"""',relevance:10},U={className:"string",begin:'"',end:'"',contains:[r.BACKSLASH_ESCAPE]},k={className:"string",begin:"'",end:"'",contains:[r.BACKSLASH_ESCAPE],relevance:0},x={className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},a={begin:r.IDENT_RE+"'",relevance:0};return{name:"Pony",keywords:m,contains:[x,w,U,k,a,{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE]}}return pony_1=b,pony_1}var powershell_1,hasRequiredPowershell;function requirePowershell(){if(hasRequiredPowershell)return powershell_1;hasRequiredPowershell=1;function b(r){const m=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],w="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",U="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",k={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},x=/\w[\w\d]*((-)[\w\d]+)*/,a={begin:"`[\\s\\S]",relevance:0},g={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},n={className:"literal",begin:/\$(null|true|false)\b/},c={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[a,g,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},R={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},v={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},e=r.inherit(r.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[v]}),L={className:"built_in",variants:[{begin:"(".concat(w,")+(-)[\\w\\d]+")}]},O={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[r.TITLE_MODE]},B={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:x,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[g]}]},P={begin:/using\s/,end:/$/,returnBegin:!0,contains:[c,R,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},S={variants:[{className:"operator",begin:"(".concat(U,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},_={className:"selector-tag",begin:/@\B/,relevance:0},l={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(k.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},r.inherit(r.TITLE_MODE,{endsParent:!0})]},y=[l,e,a,r.NUMBER_MODE,c,R,L,g,n,_],D={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",y,{begin:"("+m.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return l.contains.unshift(D),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:k,contains:y.concat(O,B,P,S,D)}}return powershell_1=b,powershell_1}var processing_1,hasRequiredProcessing;function requireProcessing(){if(hasRequiredProcessing)return processing_1;hasRequiredProcessing=1;function b(r){const m=r.regex,w=["displayHeight","displayWidth","mouseY","mouseX","mousePressed","pmouseX","pmouseY","key","keyCode","pixels","focused","frameCount","frameRate","height","width","size","createGraphics","beginDraw","createShape","loadShape","PShape","arc","ellipse","line","point","quad","rect","triangle","bezier","bezierDetail","bezierPoint","bezierTangent","curve","curveDetail","curvePoint","curveTangent","curveTightness","shape","shapeMode","beginContour","beginShape","bezierVertex","curveVertex","endContour","endShape","quadraticVertex","vertex","ellipseMode","noSmooth","rectMode","smooth","strokeCap","strokeJoin","strokeWeight","mouseClicked","mouseDragged","mouseMoved","mousePressed","mouseReleased","mouseWheel","keyPressed","keyPressedkeyReleased","keyTyped","print","println","save","saveFrame","day","hour","millis","minute","month","second","year","background","clear","colorMode","fill","noFill","noStroke","stroke","alpha","blue","brightness","color","green","hue","lerpColor","red","saturation","modelX","modelY","modelZ","screenX","screenY","screenZ","ambient","emissive","shininess","specular","add","createImage","beginCamera","camera","endCamera","frustum","ortho","perspective","printCamera","printProjection","cursor","frameRate","noCursor","exit","loop","noLoop","popStyle","pushStyle","redraw","binary","boolean","byte","char","float","hex","int","str","unbinary","unhex","join","match","matchAll","nf","nfc","nfp","nfs","split","splitTokens","trim","append","arrayCopy","concat","expand","reverse","shorten","sort","splice","subset","box","sphere","sphereDetail","createInput","createReader","loadBytes","loadJSONArray","loadJSONObject","loadStrings","loadTable","loadXML","open","parseXML","saveTable","selectFolder","selectInput","beginRaw","beginRecord","createOutput","createWriter","endRaw","endRecord","PrintWritersaveBytes","saveJSONArray","saveJSONObject","saveStream","saveStrings","saveXML","selectOutput","popMatrix","printMatrix","pushMatrix","resetMatrix","rotate","rotateX","rotateY","rotateZ","scale","shearX","shearY","translate","ambientLight","directionalLight","lightFalloff","lights","lightSpecular","noLights","normal","pointLight","spotLight","image","imageMode","loadImage","noTint","requestImage","tint","texture","textureMode","textureWrap","blend","copy","filter","get","loadPixels","set","updatePixels","blendMode","loadShader","PShaderresetShader","shader","createFont","loadFont","text","textFont","textAlign","textLeading","textMode","textSize","textWidth","textAscent","textDescent","abs","ceil","constrain","dist","exp","floor","lerp","log","mag","map","max","min","norm","pow","round","sq","sqrt","acos","asin","atan","atan2","cos","degrees","radians","sin","tan","noise","noiseDetail","noiseSeed","random","randomGaussian","randomSeed"],U=r.IDENT_RE,k={variants:[{match:m.concat(m.either(...w),m.lookahead(/\s*\(/)),className:"built_in"},{relevance:0,match:m.concat(/\b(?!for|if|while)/,U,m.lookahead(/\s*\(/)),className:"title.function"}]},x={match:[/new\s+/,U],className:{1:"keyword",2:"class.title"}},a={relevance:0,match:[/\./,U],className:{2:"property"}},g={variants:[{match:[/class/,/\s+/,U,/\s+/,/extends/,/\s+/,U]},{match:[/class/,/\s+/,U]}],className:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},n=["boolean","byte","char","color","double","float","int","long","short"],c=["BufferedReader","PVector","PFont","PImage","PGraphics","HashMap","String","Array","FloatDict","ArrayList","FloatList","IntDict","IntList","JSONArray","JSONObject","Object","StringDict","StringList","Table","TableRow","XML"];return{name:"Processing",aliases:["pde"],keywords:{keyword:[...["abstract","assert","break","case","catch","const","continue","default","else","enum","final","finally","for","if","import","instanceof","long","native","new","package","private","private","protected","protected","public","public","return","static","strictfp","switch","synchronized","throw","throws","transient","try","void","volatile","while"]],literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI null true false",title:"setup draw",variable:"super this",built_in:[...w,...c],type:n},contains:[g,x,k,a,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,r.C_NUMBER_MODE]}}return processing_1=b,processing_1}var profile_1,hasRequiredProfile;function requireProfile(){if(hasRequiredProfile)return profile_1;hasRequiredProfile=1;function b(r){return{name:"Python profiler",contains:[r.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[r.C_NUMBER_MODE],relevance:10},r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}return profile_1=b,profile_1}var prolog_1,hasRequiredProlog;function requireProlog(){if(hasRequiredProlog)return prolog_1;hasRequiredProlog=1;function b(r){const m={begin:/[a-z][A-Za-z0-9_]*/,relevance:0},w={className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},U={begin:/\(/,end:/\)/,relevance:0},k={begin:/\[/,end:/\]/},x={className:"comment",begin:/%/,end:/$/,contains:[r.PHRASAL_WORDS_MODE]},a={className:"string",begin:/`/,end:/`/,contains:[r.BACKSLASH_ESCAPE]},g={className:"string",begin:/0'(\\'|.)/},n={className:"string",begin:/0'\\s/},R=[m,w,U,{begin:/:-/},k,x,r.C_BLOCK_COMMENT_MODE,r.QUOTE_STRING_MODE,r.APOS_STRING_MODE,a,g,n,r.C_NUMBER_MODE];return U.contains=R,k.contains=R,{name:"Prolog",contains:R.concat([{begin:/\.$/}])}}return prolog_1=b,prolog_1}var properties_1,hasRequiredProperties;function requireProperties(){if(hasRequiredProperties)return properties_1;hasRequiredProperties=1;function b(r){const m="[ \\t\\f]*",w="[ \\t\\f]+",U=m+"[:=]"+m,k=w,x="("+U+"|"+k+")",a="([^\\\\:= \\t\\f\\n]|\\\\.)+",g={end:x,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[r.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:a+U},{begin:a+k}],contains:[{className:"attr",begin:a,endsParent:!0}],starts:g},{className:"attr",begin:a+m+"$"}]}}return properties_1=b,properties_1}var protobuf_1,hasRequiredProtobuf;function requireProtobuf(){if(hasRequiredProtobuf)return protobuf_1;hasRequiredProtobuf=1;function b(r){const m=["package","import","option","optional","required","repeated","group","oneof"],w=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],U={match:[/(message|enum|service)\s+/,r.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:m,type:w,literal:["true","false"]},contains:[r.QUOTE_STRING_MODE,r.NUMBER_MODE,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,U,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}return protobuf_1=b,protobuf_1}var puppet_1,hasRequiredPuppet;function requirePuppet(){if(hasRequiredPuppet)return puppet_1;hasRequiredPuppet=1;function b(r){const m={keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},w=r.COMMENT("#","$"),U="([A-Za-z_]|::)(\\w|::)*",k=r.inherit(r.TITLE_MODE,{begin:U}),x={className:"variable",begin:"\\$"+U},a={className:"string",contains:[r.BACKSLASH_ESCAPE,x],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[w,x,a,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[k,w]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:r.IDENT_RE,endsParent:!0}]},{begin:r.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:r.IDENT_RE,relevance:.2},{begin:/\{/,end:/\}/,keywords:m,relevance:0,contains:[a,w,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:r.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},x]}],relevance:0}]}}return puppet_1=b,puppet_1}var purebasic_1,hasRequiredPurebasic;function requirePurebasic(){if(hasRequiredPurebasic)return purebasic_1;hasRequiredPurebasic=1;function b(r){const m={className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},w={className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"};return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[r.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},r.UNDERSCORE_TITLE_MODE]},m,w]}}return purebasic_1=b,purebasic_1}var python_1,hasRequiredPython;function requirePython(){if(hasRequiredPython)return python_1;hasRequiredPython=1;function b(r){const m=r.regex,w=/[\p{XID_Start}_]\p{XID_Continue}*/u,U=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],g={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:U,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},n={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:g,illegal:/#/},R={begin:/\{\{/,relevance:0},v={className:"string",contains:[r.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[r.BACKSLASH_ESCAPE,n],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[r.BACKSLASH_ESCAPE,n],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[r.BACKSLASH_ESCAPE,n,R,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[r.BACKSLASH_ESCAPE,n,R,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[r.BACKSLASH_ESCAPE,R,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[r.BACKSLASH_ESCAPE,R,c]},r.APOS_STRING_MODE,r.QUOTE_STRING_MODE]},e="[0-9](_?[0-9])*",L=`(\\b(${e}))?\\.(${e})|\\b(${e})\\.`,O=`\\b|${U.join("|")}`,B={className:"number",relevance:0,variants:[{begin:`(\\b(${e})|(${L}))[eE][+-]?(${e})[jJ]?(?=${O})`},{begin:`(${L})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${O})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${O})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${O})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${O})`},{begin:`\\b(${e})[jJ](?=${O})`}]},P={className:"comment",begin:m.lookahead(/# type:/),end:/$/,keywords:g,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},S={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:["self",n,B,v,r.HASH_COMMENT_MODE]}]};return c.contains=[v,B,n],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:g,illegal:/(<\/|\?)|=>/,contains:[n,B,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},v,P,r.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,w],scope:{1:"keyword",3:"title.function"},contains:[S]},{variants:[{match:[/\bclass/,/\s+/,w,/\s*/,/\(\s*/,w,/\s*\)/]},{match:[/\bclass/,/\s+/,w]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[B,S,v]}]}}return python_1=b,python_1}var pythonRepl_1,hasRequiredPythonRepl;function requirePythonRepl(){if(hasRequiredPythonRepl)return pythonRepl_1;hasRequiredPythonRepl=1;function b(r){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}return pythonRepl_1=b,pythonRepl_1}var q_1,hasRequiredQ;function requireQ(){if(hasRequiredQ)return q_1;hasRequiredQ=1;function b(r){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[r.C_LINE_COMMENT_MODE,r.QUOTE_STRING_MODE,r.C_NUMBER_MODE]}}return q_1=b,q_1}var qml_1,hasRequiredQml;function requireQml(){if(hasRequiredQml)return qml_1;hasRequiredQml=1;function b(r){const m=r.regex,w={keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},U="[a-zA-Z_][a-zA-Z0-9\\._]*",k={className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},x={className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},a={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:U,returnEnd:!1}},g={begin:U+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:U,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},n={begin:m.concat(U,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[r.inherit(r.TITLE_MODE,{begin:U})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:w,contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[r.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:r.C_NUMBER_RE}],relevance:0},{begin:"("+r.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.REGEXP_MODE,{begin:/\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},x,k,{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[r.inherit(r.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+r.IDENT_RE,relevance:0},a,g,n],illegal:/#/}}return qml_1=b,qml_1}var r_1,hasRequiredR;function requireR(){if(hasRequiredR)return r_1;hasRequiredR=1;function b(r){const m=r.regex,w=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,U=m.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),k=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,x=m.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:w,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[r.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:m.lookahead(m.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:w},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),r.HASH_COMMENT_MODE,{scope:"string",contains:[r.BACKSLASH_ESCAPE],variants:[r.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),r.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),r.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),r.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),r.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),r.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[k,U]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,U]},{scope:{1:"punctuation",2:"number"},match:[x,U]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,U]}]},{scope:{3:"operator"},match:[w,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:k},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:x},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}return r_1=b,r_1}var reasonml_1,hasRequiredReasonml;function requireReasonml(){if(hasRequiredReasonml)return reasonml_1;hasRequiredReasonml=1;function b(r){return{name:"ReasonML",aliases:["re"],keywords:{$pattern:/[a-z_]\w*!?/,keyword:["and","as","asr","assert","begin","class","constraint","do","done","downto","else","end","esfun","exception","external","for","fun","function","functor","if","in","include","inherit","initializer","land","lazy","let","lor","lsl","lsr","lxor","mod","module","mutable","new","nonrec","object","of","open","or","pri","pub","rec","sig","struct","switch","then","to","try","type","val","virtual","when","while","with"],built_in:["array","bool","bytes","char","exn|5","float","int","int32","int64","list","lazy_t|5","nativeint|5","ref","string","unit"],literal:["true","false"]},illegal:/(:-|:=|\$\{|\+=)/,contains:[{scope:"literal",match:/\[(\|\|)?\]|\(\)/,relevance:0},r.C_LINE_COMMENT_MODE,r.COMMENT(/\/\*/,/\*\//,{illegal:/^(#,\/\/)/}),{scope:"symbol",match:/\'[A-Za-z_](?!\')[\w\']*/},{scope:"type",match:/`[A-Z][\w\']*/},{scope:"type",match:/\b[A-Z][\w\']*/,relevance:0},{match:/[a-z_]\w*\'[\w\']*/,relevance:0},{scope:"operator",match:/\s+(\|\||\+[\+\.]?|\*[\*\/\.]?|\/[\.]?|\.\.\.|\|>|&&|===?)\s+/,relevance:0},r.inherit(r.APOS_STRING_MODE,{scope:"string",relevance:0}),r.inherit(r.QUOTE_STRING_MODE,{illegal:null}),{scope:"number",variants:[{match:/\b0[xX][a-fA-F0-9_]+[Lln]?/},{match:/\b0[oO][0-7_]+[Lln]?/},{match:/\b0[bB][01_]+[Lln]?/},{match:/\b[0-9][0-9_]*([Lln]|(\.[0-9_]*)?([eE][-+]?[0-9_]+)?)/}],relevance:0}]}}return reasonml_1=b,reasonml_1}var rib_1,hasRequiredRib;function requireRib(){if(hasRequiredRib)return rib_1;hasRequiredRib=1;function b(r){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"/}],illegal:/./},r.COMMENT("^#","$"),g,n,a,{begin:/[\w-]+=([^\s{}[\]()>]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[g,n,a,{className:"literal",begin:"\\b("+k.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+U.split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"built_in",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+x.split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}return routeros_1=b,routeros_1}var rsl_1,hasRequiredRsl;function requireRsl(){if(hasRequiredRsl)return rsl_1;hasRequiredRsl=1;function b(r){const m=["abs","acos","ambient","area","asin","atan","atmosphere","attribute","calculatenormal","ceil","cellnoise","clamp","comp","concat","cos","degrees","depth","Deriv","diffuse","distance","Du","Dv","environment","exp","faceforward","filterstep","floor","format","fresnel","incident","length","lightsource","log","match","max","min","mod","noise","normalize","ntransform","opposite","option","phong","pnoise","pow","printf","ptlined","radians","random","reflect","refract","renderinfo","round","setcomp","setxcomp","setycomp","setzcomp","shadow","sign","sin","smoothstep","specular","specularbrdf","spline","sqrt","step","tan","texture","textureinfo","trace","transform","vtransform","xcomp","ycomp","zcomp"],w=["matrix","float","color","point","normal","vector"],U=["while","for","if","do","return","else","break","extern","continue"],k={match:[/(surface|displacement|light|volume|imager)/,/\s+/,r.IDENT_RE],scope:{1:"keyword",3:"title.class"}};return{name:"RenderMan RSL",keywords:{keyword:U,built_in:m,type:w},illegal:""},w]}}return rust_1=b,rust_1}var sas_1,hasRequiredSas;function requireSas(){if(hasRequiredSas)return sas_1;hasRequiredSas=1;function b(r){const m=r.regex,w=["do","if","then","else","end","until","while","abort","array","attrib","by","call","cards","cards4","catname","continue","datalines","datalines4","delete","delim","delimiter","display","dm","drop","endsas","error","file","filename","footnote","format","goto","in","infile","informat","input","keep","label","leave","length","libname","link","list","lostcard","merge","missing","modify","options","output","out","page","put","redirect","remove","rename","replace","retain","return","select","set","skip","startsas","stop","title","update","waitsas","where","window","x|0","systask","add","and","alter","as","cascade","check","create","delete","describe","distinct","drop","foreign","from","group","having","index","insert","into","in","key","like","message","modify","msgtype","not","null","on","or","order","primary","references","reset","restrict","select","set","table","unique","update","validate","view","where"],U=["abs","addr","airy","arcos","arsin","atan","attrc","attrn","band","betainv","blshift","bnot","bor","brshift","bxor","byte","cdf","ceil","cexist","cinv","close","cnonct","collate","compbl","compound","compress","cos","cosh","css","curobs","cv","daccdb","daccdbsl","daccsl","daccsyd","dacctab","dairy","date","datejul","datepart","datetime","day","dclose","depdb","depdbsl","depdbsl","depsl","depsl","depsyd","depsyd","deptab","deptab","dequote","dhms","dif","digamma","dim","dinfo","dnum","dopen","doptname","doptnum","dread","dropnote","dsname","erf","erfc","exist","exp","fappend","fclose","fcol","fdelete","fetch","fetchobs","fexist","fget","fileexist","filename","fileref","finfo","finv","fipname","fipnamel","fipstate","floor","fnonct","fnote","fopen","foptname","foptnum","fpoint","fpos","fput","fread","frewind","frlen","fsep","fuzz","fwrite","gaminv","gamma","getoption","getvarc","getvarn","hbound","hms","hosthelp","hour","ibessel","index","indexc","indexw","input","inputc","inputn","int","intck","intnx","intrr","irr","jbessel","juldate","kurtosis","lag","lbound","left","length","lgamma","libname","libref","log","log10","log2","logpdf","logpmf","logsdf","lowcase","max","mdy","mean","min","minute","mod","month","mopen","mort","n","netpv","nmiss","normal","note","npv","open","ordinal","pathname","pdf","peek","peekc","pmf","point","poisson","poke","probbeta","probbnml","probchi","probf","probgam","probhypr","probit","probnegb","probnorm","probt","put","putc","putn","qtr","quote","ranbin","rancau","ranexp","rangam","range","rank","rannor","ranpoi","rantbl","rantri","ranuni","repeat","resolve","reverse","rewind","right","round","saving","scan","sdf","second","sign","sin","sinh","skewness","soundex","spedis","sqrt","std","stderr","stfips","stname","stnamel","substr","sum","symget","sysget","sysmsg","sysprod","sysrc","system","tan","tanh","time","timepart","tinv","tnonct","today","translate","tranwrd","trigamma","trim","trimn","trunc","uniform","upcase","uss","var","varfmt","varinfmt","varlabel","varlen","varname","varnum","varray","varrayx","vartype","verify","vformat","vformatd","vformatdx","vformatn","vformatnx","vformatw","vformatwx","vformatx","vinarray","vinarrayx","vinformat","vinformatd","vinformatdx","vinformatn","vinformatnx","vinformatw","vinformatwx","vinformatx","vlabel","vlabelx","vlength","vlengthx","vname","vnamex","vtype","vtypex","weekday","year","yyq","zipfips","zipname","zipnamel","zipstate"],k=["bquote","nrbquote","cmpres","qcmpres","compstor","datatyp","display","do","else","end","eval","global","goto","if","index","input","keydef","label","left","length","let","local","lowcase","macro","mend","nrbquote","nrquote","nrstr","put","qcmpres","qleft","qlowcase","qscan","qsubstr","qsysfunc","qtrim","quote","qupcase","scan","str","substr","superq","syscall","sysevalf","sysexec","sysfunc","sysget","syslput","sysprod","sysrc","sysrput","then","to","trim","unquote","until","upcase","verify","while","window"];return{name:"SAS",case_insensitive:!0,keywords:{literal:["null","missing","_all_","_automatic_","_character_","_infile_","_n_","_name_","_null_","_numeric_","_user_","_webout_"],keyword:w},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{begin:[/^\s*/,/datalines;|cards;/,/(?:.*\n)+/,/^\s*;\s*$/],className:{2:"keyword",3:"string"}},{begin:[/%mend|%macro/,/\s+/,/[a-zA-Z_&][a-zA-Z0-9_]*/],className:{1:"built_in",3:"title.function"}},{className:"built_in",begin:"%"+m.either(...k)},{className:"title.function",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:m.either(...U)+"(?=\\()"},{className:"string",variants:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE]},r.COMMENT("\\*",";"),r.C_BLOCK_COMMENT_MODE]}}return sas_1=b,sas_1}var scala_1,hasRequiredScala;function requireScala(){if(hasRequiredScala)return scala_1;hasRequiredScala=1;function b(r){const m=r.regex,w={className:"meta",begin:"@[A-Za-z]+"},U={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},k={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[r.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[r.BACKSLASH_ESCAPE,U]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[U],relevance:10}]},x={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},a={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},g={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[x,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[x,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE]},a]},n={className:"function",beginKeywords:"def",end:m.lookahead(/[:={\[(\n;]/),contains:[a]},c={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},R={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},v=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],e={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[{begin:["//>",/\s+/,/using/,/\s+/,/\S+/],beginScope:{1:"comment",3:"keyword",5:"type"},end:/$/,contains:[{className:"string",begin:/\S+/}]},r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,k,x,n,g,r.C_NUMBER_MODE,c,R,...v,e,w]}}return scala_1=b,scala_1}var scheme_1,hasRequiredScheme;function requireScheme(){if(hasRequiredScheme)return scheme_1;hasRequiredScheme=1;function b(r){const m="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",w="(-|\\+)?\\d+([./]\\d+)?",U=w+"[+\\-]"+w+"i",k={$pattern:m,built_in:"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},x={className:"literal",begin:"(#t|#f|#\\\\"+m+"|#\\\\.)"},a={className:"number",variants:[{begin:w,relevance:0},{begin:U,relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},g=r.QUOTE_STRING_MODE,n=[r.COMMENT(";","$",{relevance:0}),r.COMMENT("#\\|","\\|#")],c={begin:m,relevance:0},R={className:"symbol",begin:"'"+m},v={endsWithParent:!0,relevance:0},e={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",x,g,a,c,R]}]},L={className:"name",relevance:0,begin:m,keywords:k},B={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[L,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[c]}]},L,v]};return v.contains=[x,a,g,c,R,e,B].concat(n),{name:"Scheme",aliases:["scm"],illegal:/\S/,contains:[r.SHEBANG(),a,g,R,e,B].concat(n)}}return scheme_1=b,scheme_1}var scilab_1,hasRequiredScilab;function requireScilab(){if(hasRequiredScilab)return scilab_1;hasRequiredScilab=1;function b(r){const m=[r.C_NUMBER_MODE,{className:"string",begin:`'|"`,end:`'|"`,contains:[r.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[r.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:m},r.COMMENT("//","$")].concat(m)}}return scilab_1=b,scilab_1}var scss_1,hasRequiredScss;function requireScss(){if(hasRequiredScss)return scss_1;hasRequiredScss=1;const b=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],m=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],w=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],U=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],k=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function x(a){const g=b(a),n=U,c=w,R="@[a-z-]+",v="and or not only",L={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,g.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},g.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+r.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+c.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},L,{begin:/\(/,end:/\)/,contains:[g.CSS_NUMBER_MODE]},g.CSS_VARIABLE,{className:"attribute",begin:"\\b("+k.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[g.BLOCK_COMMENT,L,g.HEXCOLOR,g.CSS_NUMBER_MODE,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,g.IMPORTANT,g.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:R,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:v,attribute:m.join(" ")},contains:[{begin:R,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},L,a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,g.HEXCOLOR,g.CSS_NUMBER_MODE]},g.FUNCTION_DISPATCH]}}return scss_1=x,scss_1}var shell_1,hasRequiredShell;function requireShell(){if(hasRequiredShell)return shell_1;hasRequiredShell=1;function b(r){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}return shell_1=b,shell_1}var smali_1,hasRequiredSmali;function requireSmali(){if(hasRequiredSmali)return smali_1;hasRequiredSmali=1;function b(r){const m=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"],w=["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"],U=["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"];return{name:"Smali",contains:[{className:"string",begin:'"',end:'"',relevance:0},r.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+U.join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+m.join("|")+")\\s"},{begin:"\\s("+m.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+w.join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:`L[^(;: ]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return smali_1=b,smali_1}var smalltalk_1,hasRequiredSmalltalk;function requireSmalltalk(){if(hasRequiredSmalltalk)return smalltalk_1;hasRequiredSmalltalk=1;function b(r){const m="[a-z][a-zA-Z0-9_]*",w={className:"string",begin:"\\$.{1}"},U={className:"symbol",begin:"#"+r.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[r.COMMENT('"','"'),r.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:m+":",relevance:0},r.C_NUMBER_MODE,U,w,{begin:"\\|[ ]*"+m+"([ ]+"+m+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+m}]},{begin:"#\\(",end:"\\)",contains:[r.APOS_STRING_MODE,w,r.C_NUMBER_MODE,U]}]}}return smalltalk_1=b,smalltalk_1}var sml_1,hasRequiredSml;function requireSml(){if(hasRequiredSml)return sml_1;hasRequiredSml=1;function b(r){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},r.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},r.inherit(r.APOS_STRING_MODE,{className:"string",relevance:0}),r.inherit(r.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return sml_1=b,sml_1}var sqf_1,hasRequiredSqf;function requireSqf(){if(hasRequiredSqf)return sqf_1;hasRequiredSqf=1;function b(r){const m={className:"variable",begin:/\b_+[a-zA-Z]\w*/},w={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},U={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},k=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],x=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],a=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSites","allTurrets","allUnits","allUnitsUAV","allUsers","allVariables","ambientTemperature","ammo","ammoOnPylon","and","animate","animateBay","animateDoor","animatePylon","animateSource","animationNames","animationPhase","animationSourcePhase","animationState","apertureParams","append","apply","armoryPoints","arrayIntersect","asin","ASLToAGL","ASLToATL","assert","assignAsCargo","assignAsCargoIndex","assignAsCommander","assignAsDriver","assignAsGunner","assignAsTurret","assignCurator","assignedCargo","assignedCommander","assignedDriver","assignedGroup","assignedGunner","assignedItems","assignedTarget","assignedTeam","assignedVehicle","assignedVehicleRole","assignedVehicles","assignItem","assignTeam","assignToAirport","atan","atan2","atg","ATLToASL","attachedObject","attachedObjects","attachedTo","attachObject","attachTo","attackEnabled","awake","backpack","backpackCargo","backpackContainer","backpackItems","backpackMagazines","backpackSpaceFor","behaviour","benchmark","bezierInterpolation","binocular","binocularItems","binocularMagazine","boundingBox","boundingBoxReal","boundingCenter","brakesDisabled","briefingName","buildingExit","buildingPos","buldozer_EnableRoadDiag","buldozer_IsEnabledRoadDiag","buldozer_LoadNewRoads","buldozer_reloadOperMap","buttonAction","buttonSetAction","cadetMode","calculatePath","calculatePlayerVisibilityByFriendly","call","callExtension","camCommand","camCommit","camCommitPrepared","camCommitted","camConstuctionSetParams","camCreate","camDestroy","cameraEffect","cameraEffectEnableHUD","cameraInterest","cameraOn","cameraView","campaignConfigFile","camPreload","camPreloaded","camPrepareBank","camPrepareDir","camPrepareDive","camPrepareFocus","camPrepareFov","camPrepareFovRange","camPreparePos","camPrepareRelPos","camPrepareTarget","camSetBank","camSetDir","camSetDive","camSetFocus","camSetFov","camSetFovRange","camSetPos","camSetRelPos","camSetTarget","camTarget","camUseNVG","canAdd","canAddItemToBackpack","canAddItemToUniform","canAddItemToVest","cancelSimpleTaskDestination","canDeployWeapon","canFire","canMove","canSlingLoad","canStand","canSuspend","canTriggerDynamicSimulation","canUnloadInCombat","canVehicleCargo","captive","captiveNum","cbChecked","cbSetChecked","ceil","channelEnabled","cheatsEnabled","checkAIFeature","checkVisibility","className","clear3DENAttribute","clear3DENInventory","clearAllItemsFromBackpack","clearBackpackCargo","clearBackpackCargoGlobal","clearForcesRTD","clearGroupIcons","clearItemCargo","clearItemCargoGlobal","clearItemPool","clearMagazineCargo","clearMagazineCargoGlobal","clearMagazinePool","clearOverlay","clearRadio","clearWeaponCargo","clearWeaponCargoGlobal","clearWeaponPool","clientOwner","closeDialog","closeDisplay","closeOverlay","collapseObjectTree","collect3DENHistory","collectiveRTD","collisionDisabledWith","combatBehaviour","combatMode","commandArtilleryFire","commandChat","commander","commandFire","commandFollow","commandFSM","commandGetOut","commandingMenu","commandMove","commandRadio","commandStop","commandSuppressiveFire","commandTarget","commandWatch","comment","commitOverlay","compatibleItems","compatibleMagazines","compile","compileFinal","compileScript","completedFSM","composeText","configClasses","configFile","configHierarchy","configName","configOf","configProperties","configSourceAddonList","configSourceMod","configSourceModList","confirmSensorTarget","connectTerminalToUAV","connectToServer","controlsGroupCtrl","conversationDisabled","copyFromClipboard","copyToClipboard","copyWaypoints","cos","count","countEnemy","countFriendly","countSide","countType","countUnknown","create3DENComposition","create3DENEntity","createAgent","createCenter","createDialog","createDiaryLink","createDiaryRecord","createDiarySubject","createDisplay","createGearDialog","createGroup","createGuardedPoint","createHashMap","createHashMapFromArray","createLocation","createMarker","createMarkerLocal","createMenu","createMine","createMissionDisplay","createMPCampaignDisplay","createSimpleObject","createSimpleTask","createSite","createSoundSource","createTask","createTeam","createTrigger","createUnit","createVehicle","createVehicleCrew","createVehicleLocal","crew","ctAddHeader","ctAddRow","ctClear","ctCurSel","ctData","ctFindHeaderRows","ctFindRowHeader","ctHeaderControls","ctHeaderCount","ctRemoveHeaders","ctRemoveRows","ctrlActivate","ctrlAddEventHandler","ctrlAngle","ctrlAnimateModel","ctrlAnimationPhaseModel","ctrlAt","ctrlAutoScrollDelay","ctrlAutoScrollRewind","ctrlAutoScrollSpeed","ctrlBackgroundColor","ctrlChecked","ctrlClassName","ctrlCommit","ctrlCommitted","ctrlCreate","ctrlDelete","ctrlEnable","ctrlEnabled","ctrlFade","ctrlFontHeight","ctrlForegroundColor","ctrlHTMLLoaded","ctrlIDC","ctrlIDD","ctrlMapAnimAdd","ctrlMapAnimClear","ctrlMapAnimCommit","ctrlMapAnimDone","ctrlMapCursor","ctrlMapMouseOver","ctrlMapPosition","ctrlMapScale","ctrlMapScreenToWorld","ctrlMapSetPosition","ctrlMapWorldToScreen","ctrlModel","ctrlModelDirAndUp","ctrlModelScale","ctrlMousePosition","ctrlParent","ctrlParentControlsGroup","ctrlPosition","ctrlRemoveAllEventHandlers","ctrlRemoveEventHandler","ctrlScale","ctrlScrollValues","ctrlSetActiveColor","ctrlSetAngle","ctrlSetAutoScrollDelay","ctrlSetAutoScrollRewind","ctrlSetAutoScrollSpeed","ctrlSetBackgroundColor","ctrlSetChecked","ctrlSetDisabledColor","ctrlSetEventHandler","ctrlSetFade","ctrlSetFocus","ctrlSetFont","ctrlSetFontH1","ctrlSetFontH1B","ctrlSetFontH2","ctrlSetFontH2B","ctrlSetFontH3","ctrlSetFontH3B","ctrlSetFontH4","ctrlSetFontH4B","ctrlSetFontH5","ctrlSetFontH5B","ctrlSetFontH6","ctrlSetFontH6B","ctrlSetFontHeight","ctrlSetFontHeightH1","ctrlSetFontHeightH2","ctrlSetFontHeightH3","ctrlSetFontHeightH4","ctrlSetFontHeightH5","ctrlSetFontHeightH6","ctrlSetFontHeightSecondary","ctrlSetFontP","ctrlSetFontPB","ctrlSetFontSecondary","ctrlSetForegroundColor","ctrlSetModel","ctrlSetModelDirAndUp","ctrlSetModelScale","ctrlSetMousePosition","ctrlSetPixelPrecision","ctrlSetPosition","ctrlSetPositionH","ctrlSetPositionW","ctrlSetPositionX","ctrlSetPositionY","ctrlSetScale","ctrlSetScrollValues","ctrlSetShadow","ctrlSetStructuredText","ctrlSetText","ctrlSetTextColor","ctrlSetTextColorSecondary","ctrlSetTextSecondary","ctrlSetTextSelection","ctrlSetTooltip","ctrlSetTooltipColorBox","ctrlSetTooltipColorShade","ctrlSetTooltipColorText","ctrlSetTooltipMaxWidth","ctrlSetURL","ctrlSetURLOverlayMode","ctrlShadow","ctrlShow","ctrlShown","ctrlStyle","ctrlText","ctrlTextColor","ctrlTextHeight","ctrlTextSecondary","ctrlTextSelection","ctrlTextWidth","ctrlTooltip","ctrlType","ctrlURL","ctrlURLOverlayMode","ctrlVisible","ctRowControls","ctRowCount","ctSetCurSel","ctSetData","ctSetHeaderTemplate","ctSetRowTemplate","ctSetValue","ctValue","curatorAddons","curatorCamera","curatorCameraArea","curatorCameraAreaCeiling","curatorCoef","curatorEditableObjects","curatorEditingArea","curatorEditingAreaType","curatorMouseOver","curatorPoints","curatorRegisteredObjects","curatorSelected","curatorWaypointCost","current3DENOperation","currentChannel","currentCommand","currentMagazine","currentMagazineDetail","currentMagazineDetailTurret","currentMagazineTurret","currentMuzzle","currentNamespace","currentPilot","currentTask","currentTasks","currentThrowable","currentVisionMode","currentWaypoint","currentWeapon","currentWeaponMode","currentWeaponTurret","currentZeroing","cursorObject","cursorTarget","customChat","customRadio","customWaypointPosition","cutFadeOut","cutObj","cutRsc","cutText","damage","date","dateToNumber","dayTime","deActivateKey","debriefingText","debugFSM","debugLog","decayGraphValues","deg","delete3DENEntities","deleteAt","deleteCenter","deleteCollection","deleteEditorObject","deleteGroup","deleteGroupWhenEmpty","deleteIdentity","deleteLocation","deleteMarker","deleteMarkerLocal","deleteRange","deleteResources","deleteSite","deleteStatus","deleteTeam","deleteVehicle","deleteVehicleCrew","deleteWaypoint","detach","detectedMines","diag_activeMissionFSMs","diag_activeScripts","diag_activeSQFScripts","diag_activeSQSScripts","diag_allMissionEventHandlers","diag_captureFrame","diag_captureFrameToFile","diag_captureSlowFrame","diag_codePerformance","diag_deltaTime","diag_drawmode","diag_dumpCalltraceToLog","diag_dumpScriptAssembly","diag_dumpTerrainSynth","diag_dynamicSimulationEnd","diag_enable","diag_enabled","diag_exportConfig","diag_exportTerrainSVG","diag_fps","diag_fpsmin","diag_frameno","diag_getTerrainSegmentOffset","diag_lightNewLoad","diag_list","diag_localized","diag_log","diag_logSlowFrame","diag_mergeConfigFile","diag_recordTurretLimits","diag_resetFSM","diag_resetshapes","diag_scope","diag_setLightNew","diag_stacktrace","diag_tickTime","diag_toggle","dialog","diarySubjectExists","didJIP","didJIPOwner","difficulty","difficultyEnabled","difficultyEnabledRTD","difficultyOption","direction","directionStabilizationEnabled","directSay","disableAI","disableBrakes","disableCollisionWith","disableConversation","disableDebriefingStats","disableMapIndicators","disableNVGEquipment","disableRemoteSensors","disableSerialization","disableTIEquipment","disableUAVConnectability","disableUserInput","displayAddEventHandler","displayChild","displayCtrl","displayParent","displayRemoveAllEventHandlers","displayRemoveEventHandler","displaySetEventHandler","displayUniqueName","displayUpdate","dissolveTeam","distance","distance2D","distanceSqr","distributionRegion","do3DENAction","doArtilleryFire","doFire","doFollow","doFSM","doGetOut","doMove","doorPhase","doStop","doSuppressiveFire","doTarget","doWatch","drawArrow","drawEllipse","drawIcon","drawIcon3D","drawLaser","drawLine","drawLine3D","drawLink","drawLocation","drawPolygon","drawRectangle","drawTriangle","driver","drop","dynamicSimulationDistance","dynamicSimulationDistanceCoef","dynamicSimulationEnabled","dynamicSimulationSystemEnabled","echo","edit3DENMissionAttributes","editObject","editorSetEventHandler","effectiveCommander","elevatePeriscope","emptyPositions","enableAI","enableAIFeature","enableAimPrecision","enableAttack","enableAudioFeature","enableAutoStartUpRTD","enableAutoTrimRTD","enableCamShake","enableCaustics","enableChannel","enableCollisionWith","enableCopilot","enableDebriefingStats","enableDiagLegend","enableDirectionStabilization","enableDynamicSimulation","enableDynamicSimulationSystem","enableEndDialog","enableEngineArtillery","enableEnvironment","enableFatigue","enableGunLights","enableInfoPanelComponent","enableIRLasers","enableMimics","enablePersonTurret","enableRadio","enableReload","enableRopeAttach","enableSatNormalOnDetail","enableSaving","enableSentences","enableSimulation","enableSimulationGlobal","enableStamina","enableStressDamage","enableTeamSwitch","enableTraffic","enableUAVConnectability","enableUAVWaypoints","enableVehicleCargo","enableVehicleSensor","enableWeaponDisassembly","endLoadingScreen","endMission","engineOn","enginesIsOnRTD","enginesPowerRTD","enginesRpmRTD","enginesTorqueRTD","entities","environmentEnabled","environmentVolume","equipmentDisabled","estimatedEndServerTime","estimatedTimeLeft","evalObjectArgument","everyBackpack","everyContainer","exec","execEditorScript","execFSM","execVM","exp","expectedDestination","exportJIPMessages","eyeDirection","eyePos","face","faction","fadeEnvironment","fadeMusic","fadeRadio","fadeSound","fadeSpeech","failMission","fileExists","fillWeaponsFromPool","find","findAny","findCover","findDisplay","findEditorObject","findEmptyPosition","findEmptyPositionReady","findIf","findNearestEnemy","finishMissionInit","finite","fire","fireAtTarget","firstBackpack","flag","flagAnimationPhase","flagOwner","flagSide","flagTexture","flatten","fleeing","floor","flyInHeight","flyInHeightASL","focusedCtrl","fog","fogForecast","fogParams","forceAddUniform","forceAtPositionRTD","forceCadetDifficulty","forcedMap","forceEnd","forceFlagTexture","forceFollowRoad","forceGeneratorRTD","forceMap","forceRespawn","forceSpeed","forceUnicode","forceWalk","forceWeaponFire","forceWeatherChange","forEachMember","forEachMemberAgent","forEachMemberTeam","forgetTarget","format","formation","formationDirection","formationLeader","formationMembers","formationPosition","formationTask","formatText","formLeader","freeExtension","freeLook","fromEditor","fuel","fullCrew","gearIDCAmmoCount","gearSlotAmmoCount","gearSlotData","gestureState","get","get3DENActionState","get3DENAttribute","get3DENCamera","get3DENConnections","get3DENEntity","get3DENEntityID","get3DENGrid","get3DENIconsVisible","get3DENLayerEntities","get3DENLinesVisible","get3DENMissionAttribute","get3DENMouseOver","get3DENSelected","getAimingCoef","getAllEnv3DSoundControllers","getAllEnvSoundControllers","getAllHitPointsDamage","getAllOwnedMines","getAllPylonsInfo","getAllSoundControllers","getAllUnitTraits","getAmmoCargo","getAnimAimPrecision","getAnimSpeedCoef","getArray","getArtilleryAmmo","getArtilleryComputerSettings","getArtilleryETA","getAssetDLCInfo","getAssignedCuratorLogic","getAssignedCuratorUnit","getAttackTarget","getAudioOptionVolumes","getBackpackCargo","getBleedingRemaining","getBurningValue","getCalculatePlayerVisibilityByFriendly","getCameraViewDirection","getCargoIndex","getCenterOfMass","getClientState","getClientStateNumber","getCompatiblePylonMagazines","getConnectedUAV","getConnectedUAVUnit","getContainerMaxLoad","getCorpse","getCruiseControl","getCursorObjectParams","getCustomAimCoef","getCustomSoundController","getCustomSoundControllerCount","getDammage","getDebriefingText","getDescription","getDir","getDirVisual","getDiverState","getDLCAssetsUsage","getDLCAssetsUsageByName","getDLCs","getDLCUsageTime","getEditorCamera","getEditorMode","getEditorObjectScope","getElevationOffset","getEngineTargetRPMRTD","getEnv3DSoundController","getEnvSoundController","getEventHandlerInfo","getFatigue","getFieldManualStartPage","getForcedFlagTexture","getForcedSpeed","getFriend","getFSMVariable","getFuelCargo","getGraphValues","getGroupIcon","getGroupIconParams","getGroupIcons","getHideFrom","getHit","getHitIndex","getHitPointDamage","getItemCargo","getLighting","getLightingAt","getLoadedModsInfo","getMagazineCargo","getMarkerColor","getMarkerPos","getMarkerSize","getMarkerType","getMass","getMissionConfig","getMissionConfigValue","getMissionDLCs","getMissionLayerEntities","getMissionLayers","getMissionPath","getModelInfo","getMousePosition","getMusicPlayedTime","getNumber","getObjectArgument","getObjectChildren","getObjectDLC","getObjectFOV","getObjectID","getObjectMaterials","getObjectProxy","getObjectScale","getObjectTextures","getObjectType","getObjectViewDistance","getOpticsMode","getOrDefault","getOrDefaultCall","getOxygenRemaining","getPersonUsedDLCs","getPilotCameraDirection","getPilotCameraPosition","getPilotCameraRotation","getPilotCameraTarget","getPiPViewDistance","getPlateNumber","getPlayerChannel","getPlayerID","getPlayerScores","getPlayerUID","getPlayerVoNVolume","getPos","getPosASL","getPosASLVisual","getPosASLW","getPosATL","getPosATLVisual","getPosVisual","getPosWorld","getPosWorldVisual","getPylonMagazines","getRelDir","getRelPos","getRemoteSensorsDisabled","getRepairCargo","getResolution","getRoadInfo","getRotorBrakeRTD","getSensorTargets","getSensorThreats","getShadowDistance","getShotParents","getSlingLoad","getSoundController","getSoundControllerResult","getSpeed","getStamina","getStatValue","getSteamFriendsServers","getSubtitleOptions","getSuppression","getTerrainGrid","getTerrainHeight","getTerrainHeightASL","getTerrainInfo","getText","getTextRaw","getTextureInfo","getTextWidth","getTiParameters","getTotalDLCUsageTime","getTrimOffsetRTD","getTurretLimits","getTurretOpticsMode","getUnitFreefallInfo","getUnitLoadout","getUnitTrait","getUnloadInCombat","getUserInfo","getUserMFDText","getUserMFDValue","getVariable","getVehicleCargo","getVehicleTiPars","getWeaponCargo","getWeaponSway","getWingsOrientationRTD","getWingsPositionRTD","getWPPos","glanceAt","globalChat","globalRadio","goggles","goto","group","groupChat","groupFromNetId","groupIconSelectable","groupIconsVisible","groupID","groupOwner","groupRadio","groups","groupSelectedUnits","groupSelectUnit","gunner","gusts","halt","handgunItems","handgunMagazine","handgunWeapon","handsHit","hashValue","hasInterface","hasPilotCamera","hasWeapon","hcAllGroups","hcGroupParams","hcLeader","hcRemoveAllGroups","hcRemoveGroup","hcSelected","hcSelectGroup","hcSetGroup","hcShowBar","hcShownBar","headgear","hideBody","hideObject","hideObjectGlobal","hideSelection","hint","hintC","hintCadet","hintSilent","hmd","hostMission","htmlLoad","HUDMovementLevels","humidity","image","importAllGroups","importance","in","inArea","inAreaArray","incapacitatedState","inflame","inflamed","infoPanel","infoPanelComponentEnabled","infoPanelComponents","infoPanels","inGameUISetEventHandler","inheritsFrom","initAmbientLife","inPolygon","inputAction","inputController","inputMouse","inRangeOfArtillery","insert","insertEditorObject","intersect","is3DEN","is3DENMultiplayer","is3DENPreview","isAbleToBreathe","isActionMenuVisible","isAgent","isAimPrecisionEnabled","isAllowedCrewInImmobile","isArray","isAutoHoverOn","isAutonomous","isAutoStartUpEnabledRTD","isAutotest","isAutoTrimOnRTD","isAwake","isBleeding","isBurning","isClass","isCollisionLightOn","isCopilotEnabled","isDamageAllowed","isDedicated","isDLCAvailable","isEngineOn","isEqualRef","isEqualTo","isEqualType","isEqualTypeAll","isEqualTypeAny","isEqualTypeArray","isEqualTypeParams","isFilePatchingEnabled","isFinal","isFlashlightOn","isFlatEmpty","isForcedWalk","isFormationLeader","isGameFocused","isGamePaused","isGroupDeletedWhenEmpty","isHidden","isInRemainsCollector","isInstructorFigureEnabled","isIRLaserOn","isKeyActive","isKindOf","isLaserOn","isLightOn","isLocalized","isManualFire","isMarkedForCollection","isMissionProfileNamespaceLoaded","isMultiplayer","isMultiplayerSolo","isNil","isNotEqualRef","isNotEqualTo","isNull","isNumber","isObjectHidden","isObjectRTD","isOnRoad","isPiPEnabled","isPlayer","isRealTime","isRemoteExecuted","isRemoteExecutedJIP","isSaving","isSensorTargetConfirmed","isServer","isShowing3DIcons","isSimpleObject","isSprintAllowed","isStaminaEnabled","isSteamMission","isSteamOverlayEnabled","isStreamFriendlyUIEnabled","isStressDamageEnabled","isText","isTouchingGround","isTurnedOut","isTutHintsEnabled","isUAVConnectable","isUAVConnected","isUIContext","isUniformAllowed","isVehicleCargo","isVehicleRadarOn","isVehicleSensorEnabled","isWalking","isWeaponDeployed","isWeaponRested","itemCargo","items","itemsWithMagazines","join","joinAs","joinAsSilent","joinSilent","joinString","kbAddDatabase","kbAddDatabaseTargets","kbAddTopic","kbHasTopic","kbReact","kbRemoveTopic","kbTell","kbWasSaid","keyImage","keyName","keys","knowsAbout","land","landAt","landResult","language","laserTarget","lbAdd","lbClear","lbColor","lbColorRight","lbCurSel","lbData","lbDelete","lbIsSelected","lbPicture","lbPictureRight","lbSelection","lbSetColor","lbSetColorRight","lbSetCurSel","lbSetData","lbSetPicture","lbSetPictureColor","lbSetPictureColorDisabled","lbSetPictureColorSelected","lbSetPictureRight","lbSetPictureRightColor","lbSetPictureRightColorDisabled","lbSetPictureRightColorSelected","lbSetSelectColor","lbSetSelectColorRight","lbSetSelected","lbSetText","lbSetTextRight","lbSetTooltip","lbSetValue","lbSize","lbSort","lbSortBy","lbSortByValue","lbText","lbTextRight","lbTooltip","lbValue","leader","leaderboardDeInit","leaderboardGetRows","leaderboardInit","leaderboardRequestRowsFriends","leaderboardRequestRowsGlobal","leaderboardRequestRowsGlobalAroundUser","leaderboardsRequestUploadScore","leaderboardsRequestUploadScoreKeepBest","leaderboardState","leaveVehicle","libraryCredits","libraryDisclaimers","lifeState","lightAttachObject","lightDetachObject","lightIsOn","lightnings","limitSpeed","linearConversion","lineIntersects","lineIntersectsObjs","lineIntersectsSurfaces","lineIntersectsWith","linkItem","list","listObjects","listRemoteTargets","listVehicleSensors","ln","lnbAddArray","lnbAddColumn","lnbAddRow","lnbClear","lnbColor","lnbColorRight","lnbCurSelRow","lnbData","lnbDeleteColumn","lnbDeleteRow","lnbGetColumnsPosition","lnbPicture","lnbPictureRight","lnbSetColor","lnbSetColorRight","lnbSetColumnsPos","lnbSetCurSelRow","lnbSetData","lnbSetPicture","lnbSetPictureColor","lnbSetPictureColorRight","lnbSetPictureColorSelected","lnbSetPictureColorSelectedRight","lnbSetPictureRight","lnbSetText","lnbSetTextRight","lnbSetTooltip","lnbSetValue","lnbSize","lnbSort","lnbSortBy","lnbSortByValue","lnbText","lnbTextRight","lnbValue","load","loadAbs","loadBackpack","loadConfig","loadFile","loadGame","loadIdentity","loadMagazine","loadOverlay","loadStatus","loadUniform","loadVest","localize","localNamespace","locationPosition","lock","lockCameraTo","lockCargo","lockDriver","locked","lockedCameraTo","lockedCargo","lockedDriver","lockedInventory","lockedTurret","lockIdentity","lockInventory","lockTurret","lockWp","log","logEntities","logNetwork","logNetworkTerminate","lookAt","lookAtPos","magazineCargo","magazines","magazinesAllTurrets","magazinesAmmo","magazinesAmmoCargo","magazinesAmmoFull","magazinesDetail","magazinesDetailBackpack","magazinesDetailUniform","magazinesDetailVest","magazinesTurret","magazineTurretAmmo","mapAnimAdd","mapAnimClear","mapAnimCommit","mapAnimDone","mapCenterOnCamera","mapGridPosition","markAsFinishedOnSteam","markerAlpha","markerBrush","markerChannel","markerColor","markerDir","markerPolyline","markerPos","markerShadow","markerShape","markerSize","markerText","markerType","matrixMultiply","matrixTranspose","max","maxLoad","members","menuAction","menuAdd","menuChecked","menuClear","menuCollapse","menuData","menuDelete","menuEnable","menuEnabled","menuExpand","menuHover","menuPicture","menuSetAction","menuSetCheck","menuSetData","menuSetPicture","menuSetShortcut","menuSetText","menuSetURL","menuSetValue","menuShortcut","menuShortcutText","menuSize","menuSort","menuText","menuURL","menuValue","merge","min","mineActive","mineDetectedBy","missileTarget","missileTargetPos","missionConfigFile","missionDifficulty","missionEnd","missionName","missionNameSource","missionNamespace","missionProfileNamespace","missionStart","missionVersion","mod","modelToWorld","modelToWorldVisual","modelToWorldVisualWorld","modelToWorldWorld","modParams","moonIntensity","moonPhase","morale","move","move3DENCamera","moveInAny","moveInCargo","moveInCommander","moveInDriver","moveInGunner","moveInTurret","moveObjectToEnd","moveOut","moveTime","moveTo","moveToCompleted","moveToFailed","musicVolume","name","namedProperties","nameSound","nearEntities","nearestBuilding","nearestLocation","nearestLocations","nearestLocationWithDubbing","nearestMines","nearestObject","nearestObjects","nearestTerrainObjects","nearObjects","nearObjectsReady","nearRoads","nearSupplies","nearTargets","needReload","needService","netId","netObjNull","newOverlay","nextMenuItemIndex","nextWeatherChange","nMenuItems","not","numberOfEnginesRTD","numberToDate","objectCurators","objectFromNetId","objectParent","objStatus","onBriefingGroup","onBriefingNotes","onBriefingPlan","onBriefingTeamSwitch","onCommandModeChanged","onDoubleClick","onEachFrame","onGroupIconClick","onGroupIconOverEnter","onGroupIconOverLeave","onHCGroupSelectionChanged","onMapSingleClick","onPlayerConnected","onPlayerDisconnected","onPreloadFinished","onPreloadStarted","onShowNewObject","onTeamSwitch","openCuratorInterface","openDLCPage","openGPS","openMap","openSteamApp","openYoutubeVideo","or","orderGetIn","overcast","overcastForecast","owner","param","params","parseNumber","parseSimpleArray","parseText","parsingNamespace","particlesQuality","periscopeElevation","pickWeaponPool","pitch","pixelGrid","pixelGridBase","pixelGridNoUIScale","pixelH","pixelW","playableSlotsNumber","playableUnits","playAction","playActionNow","player","playerRespawnTime","playerSide","playersNumber","playGesture","playMission","playMove","playMoveNow","playMusic","playScriptedMission","playSound","playSound3D","playSoundUI","pose","position","positionCameraToWorld","posScreenToWorld","posWorldToScreen","ppEffectAdjust","ppEffectCommit","ppEffectCommitted","ppEffectCreate","ppEffectDestroy","ppEffectEnable","ppEffectEnabled","ppEffectForceInNVG","precision","preloadCamera","preloadObject","preloadSound","preloadTitleObj","preloadTitleRsc","preprocessFile","preprocessFileLineNumbers","primaryWeapon","primaryWeaponItems","primaryWeaponMagazine","priority","processDiaryLink","productVersion","profileName","profileNamespace","profileNameSteam","progressLoadingScreen","progressPosition","progressSetPosition","publicVariable","publicVariableClient","publicVariableServer","pushBack","pushBackUnique","putWeaponPool","queryItemsPool","queryMagazinePool","queryWeaponPool","rad","radioChannelAdd","radioChannelCreate","radioChannelInfo","radioChannelRemove","radioChannelSetCallSign","radioChannelSetLabel","radioEnabled","radioVolume","rain","rainbow","rainParams","random","rank","rankId","rating","rectangular","regexFind","regexMatch","regexReplace","registeredTasks","registerTask","reload","reloadEnabled","remoteControl","remoteExec","remoteExecCall","remoteExecutedOwner","remove3DENConnection","remove3DENEventHandler","remove3DENLayer","removeAction","removeAll3DENEventHandlers","removeAllActions","removeAllAssignedItems","removeAllBinocularItems","removeAllContainers","removeAllCuratorAddons","removeAllCuratorCameraAreas","removeAllCuratorEditingAreas","removeAllEventHandlers","removeAllHandgunItems","removeAllItems","removeAllItemsWithMagazines","removeAllMissionEventHandlers","removeAllMPEventHandlers","removeAllMusicEventHandlers","removeAllOwnedMines","removeAllPrimaryWeaponItems","removeAllSecondaryWeaponItems","removeAllUserActionEventHandlers","removeAllWeapons","removeBackpack","removeBackpackGlobal","removeBinocularItem","removeCuratorAddons","removeCuratorCameraArea","removeCuratorEditableObjects","removeCuratorEditingArea","removeDiaryRecord","removeDiarySubject","removeDrawIcon","removeDrawLinks","removeEventHandler","removeFromRemainsCollector","removeGoggles","removeGroupIcon","removeHandgunItem","removeHeadgear","removeItem","removeItemFromBackpack","removeItemFromUniform","removeItemFromVest","removeItems","removeMagazine","removeMagazineGlobal","removeMagazines","removeMagazinesTurret","removeMagazineTurret","removeMenuItem","removeMissionEventHandler","removeMPEventHandler","removeMusicEventHandler","removeOwnedMine","removePrimaryWeaponItem","removeSecondaryWeaponItem","removeSimpleTask","removeSwitchableUnit","removeTeamMember","removeUniform","removeUserActionEventHandler","removeVest","removeWeapon","removeWeaponAttachmentCargo","removeWeaponCargo","removeWeaponGlobal","removeWeaponTurret","reportRemoteTarget","requiredVersion","resetCamShake","resetSubgroupDirection","resize","resources","respawnVehicle","restartEditorCamera","reveal","revealMine","reverse","reversedMouseY","roadAt","roadsConnectedTo","roleDescription","ropeAttachedObjects","ropeAttachedTo","ropeAttachEnabled","ropeAttachTo","ropeCreate","ropeCut","ropeDestroy","ropeDetach","ropeEndPosition","ropeLength","ropes","ropesAttachedTo","ropeSegments","ropeUnwind","ropeUnwound","rotorsForcesRTD","rotorsRpmRTD","round","runInitScript","safeZoneH","safeZoneW","safeZoneWAbs","safeZoneX","safeZoneXAbs","safeZoneY","save3DENInventory","saveGame","saveIdentity","saveJoysticks","saveMissionProfileNamespace","saveOverlay","saveProfileNamespace","saveStatus","saveVar","savingEnabled","say","say2D","say3D","scopeName","score","scoreSide","screenshot","screenToWorld","scriptDone","scriptName","scudState","secondaryWeapon","secondaryWeaponItems","secondaryWeaponMagazine","select","selectBestPlaces","selectDiarySubject","selectedEditorObjects","selectEditorObject","selectionNames","selectionPosition","selectionVectorDirAndUp","selectLeader","selectMax","selectMin","selectNoPlayer","selectPlayer","selectRandom","selectRandomWeighted","selectWeapon","selectWeaponTurret","sendAUMessage","sendSimpleCommand","sendTask","sendTaskResult","sendUDPMessage","sentencesEnabled","serverCommand","serverCommandAvailable","serverCommandExecutable","serverName","serverNamespace","serverTime","set","set3DENAttribute","set3DENAttributes","set3DENGrid","set3DENIconsVisible","set3DENLayer","set3DENLinesVisible","set3DENLogicType","set3DENMissionAttribute","set3DENMissionAttributes","set3DENModelsVisible","set3DENObjectType","set3DENSelected","setAccTime","setActualCollectiveRTD","setAirplaneThrottle","setAirportSide","setAmmo","setAmmoCargo","setAmmoOnPylon","setAnimSpeedCoef","setAperture","setApertureNew","setArmoryPoints","setAttributes","setAutonomous","setBehaviour","setBehaviourStrong","setBleedingRemaining","setBrakesRTD","setCameraInterest","setCamShakeDefParams","setCamShakeParams","setCamUseTi","setCaptive","setCenterOfMass","setCollisionLight","setCombatBehaviour","setCombatMode","setCompassOscillation","setConvoySeparation","setCruiseControl","setCuratorCameraAreaCeiling","setCuratorCoef","setCuratorEditingAreaType","setCuratorWaypointCost","setCurrentChannel","setCurrentTask","setCurrentWaypoint","setCustomAimCoef","SetCustomMissionData","setCustomSoundController","setCustomWeightRTD","setDamage","setDammage","setDate","setDebriefingText","setDefaultCamera","setDestination","setDetailMapBlendPars","setDiaryRecordText","setDiarySubjectPicture","setDir","setDirection","setDrawIcon","setDriveOnPath","setDropInterval","setDynamicSimulationDistance","setDynamicSimulationDistanceCoef","setEditorMode","setEditorObjectScope","setEffectCondition","setEffectiveCommander","setEngineRpmRTD","setFace","setFaceanimation","setFatigue","setFeatureType","setFlagAnimationPhase","setFlagOwner","setFlagSide","setFlagTexture","setFog","setForceGeneratorRTD","setFormation","setFormationTask","setFormDir","setFriend","setFromEditor","setFSMVariable","setFuel","setFuelCargo","setGroupIcon","setGroupIconParams","setGroupIconsSelectable","setGroupIconsVisible","setGroupid","setGroupIdGlobal","setGroupOwner","setGusts","setHideBehind","setHit","setHitIndex","setHitPointDamage","setHorizonParallaxCoef","setHUDMovementLevels","setHumidity","setIdentity","setImportance","setInfoPanel","setLeader","setLightAmbient","setLightAttenuation","setLightBrightness","setLightColor","setLightConePars","setLightDayLight","setLightFlareMaxDistance","setLightFlareSize","setLightIntensity","setLightIR","setLightnings","setLightUseFlare","setLightVolumeShape","setLocalWindParams","setMagazineTurretAmmo","setMarkerAlpha","setMarkerAlphaLocal","setMarkerBrush","setMarkerBrushLocal","setMarkerColor","setMarkerColorLocal","setMarkerDir","setMarkerDirLocal","setMarkerPolyline","setMarkerPolylineLocal","setMarkerPos","setMarkerPosLocal","setMarkerShadow","setMarkerShadowLocal","setMarkerShape","setMarkerShapeLocal","setMarkerSize","setMarkerSizeLocal","setMarkerText","setMarkerTextLocal","setMarkerType","setMarkerTypeLocal","setMass","setMaxLoad","setMimic","setMissileTarget","setMissileTargetPos","setMousePosition","setMusicEffect","setMusicEventHandler","setName","setNameSound","setObjectArguments","setObjectMaterial","setObjectMaterialGlobal","setObjectProxy","setObjectScale","setObjectTexture","setObjectTextureGlobal","setObjectViewDistance","setOpticsMode","setOvercast","setOwner","setOxygenRemaining","setParticleCircle","setParticleClass","setParticleFire","setParticleParams","setParticleRandom","setPilotCameraDirection","setPilotCameraRotation","setPilotCameraTarget","setPilotLight","setPiPEffect","setPiPViewDistance","setPitch","setPlateNumber","setPlayable","setPlayerRespawnTime","setPlayerVoNVolume","setPos","setPosASL","setPosASL2","setPosASLW","setPosATL","setPosition","setPosWorld","setPylonLoadout","setPylonsPriority","setRadioMsg","setRain","setRainbow","setRandomLip","setRank","setRectangular","setRepairCargo","setRotorBrakeRTD","setShadowDistance","setShotParents","setSide","setSimpleTaskAlwaysVisible","setSimpleTaskCustomData","setSimpleTaskDescription","setSimpleTaskDestination","setSimpleTaskTarget","setSimpleTaskType","setSimulWeatherLayers","setSize","setSkill","setSlingLoad","setSoundEffect","setSpeaker","setSpeech","setSpeedMode","setStamina","setStaminaScheme","setStatValue","setSuppression","setSystemOfUnits","setTargetAge","setTaskMarkerOffset","setTaskResult","setTaskState","setTerrainGrid","setTerrainHeight","setText","setTimeMultiplier","setTiParameter","setTitleEffect","setTowParent","setTrafficDensity","setTrafficDistance","setTrafficGap","setTrafficSpeed","setTriggerActivation","setTriggerArea","setTriggerInterval","setTriggerStatements","setTriggerText","setTriggerTimeout","setTriggerType","setTurretLimits","setTurretOpticsMode","setType","setUnconscious","setUnitAbility","setUnitCombatMode","setUnitFreefallHeight","setUnitLoadout","setUnitPos","setUnitPosWeak","setUnitRank","setUnitRecoilCoefficient","setUnitTrait","setUnloadInCombat","setUserActionText","setUserMFDText","setUserMFDValue","setVariable","setVectorDir","setVectorDirAndUp","setVectorUp","setVehicleAmmo","setVehicleAmmoDef","setVehicleArmor","setVehicleCargo","setVehicleId","setVehicleLock","setVehiclePosition","setVehicleRadar","setVehicleReceiveRemoteTargets","setVehicleReportOwnPosition","setVehicleReportRemoteTargets","setVehicleTiPars","setVehicleVarName","setVelocity","setVelocityModelSpace","setVelocityTransformation","setViewDistance","setVisibleIfTreeCollapsed","setWantedRPMRTD","setWaves","setWaypointBehaviour","setWaypointCombatMode","setWaypointCompletionRadius","setWaypointDescription","setWaypointForceBehaviour","setWaypointFormation","setWaypointHousePosition","setWaypointLoiterAltitude","setWaypointLoiterRadius","setWaypointLoiterType","setWaypointName","setWaypointPosition","setWaypointScript","setWaypointSpeed","setWaypointStatements","setWaypointTimeout","setWaypointType","setWaypointVisible","setWeaponReloadingTime","setWeaponZeroing","setWind","setWindDir","setWindForce","setWindStr","setWingForceScaleRTD","setWPPos","show3DIcons","showChat","showCinemaBorder","showCommandingMenu","showCompass","showCuratorCompass","showGps","showHUD","showLegend","showMap","shownArtilleryComputer","shownChat","shownCompass","shownCuratorCompass","showNewEditorObject","shownGps","shownHUD","shownMap","shownPad","shownRadio","shownScoretable","shownSubtitles","shownUAVFeed","shownWarrant","shownWatch","showPad","showRadio","showScoretable","showSubtitles","showUAVFeed","showWarrant","showWatch","showWaypoint","showWaypoints","side","sideChat","sideRadio","simpleTasks","simulationEnabled","simulCloudDensity","simulCloudOcclusion","simulInClouds","simulWeatherSync","sin","size","sizeOf","skill","skillFinal","skipTime","sleep","sliderPosition","sliderRange","sliderSetPosition","sliderSetRange","sliderSetSpeed","sliderSpeed","slingLoadAssistantShown","soldierMagazines","someAmmo","sort","soundVolume","spawn","speaker","speechVolume","speed","speedMode","splitString","sqrt","squadParams","stance","startLoadingScreen","stop","stopEngineRTD","stopped","str","sunOrMoon","supportInfo","suppressFor","surfaceIsWater","surfaceNormal","surfaceTexture","surfaceType","swimInDepth","switchableUnits","switchAction","switchCamera","switchGesture","switchLight","switchMove","synchronizedObjects","synchronizedTriggers","synchronizedWaypoints","synchronizeObjectsAdd","synchronizeObjectsRemove","synchronizeTrigger","synchronizeWaypoint","systemChat","systemOfUnits","systemTime","systemTimeUTC","tan","targetKnowledge","targets","targetsAggregate","targetsQuery","taskAlwaysVisible","taskChildren","taskCompleted","taskCustomData","taskDescription","taskDestination","taskHint","taskMarkerOffset","taskName","taskParent","taskResult","taskState","taskType","teamMember","teamName","teams","teamSwitch","teamSwitchEnabled","teamType","terminate","terrainIntersect","terrainIntersectASL","terrainIntersectAtASL","text","textLog","textLogFormat","tg","time","timeMultiplier","titleCut","titleFadeOut","titleObj","titleRsc","titleText","toArray","toFixed","toLower","toLowerANSI","toString","toUpper","toUpperANSI","triggerActivated","triggerActivation","triggerAmmo","triggerArea","triggerAttachedVehicle","triggerAttachObject","triggerAttachVehicle","triggerDynamicSimulation","triggerInterval","triggerStatements","triggerText","triggerTimeout","triggerTimeoutCurrent","triggerType","trim","turretLocal","turretOwner","turretUnit","tvAdd","tvClear","tvCollapse","tvCollapseAll","tvCount","tvCurSel","tvData","tvDelete","tvExpand","tvExpandAll","tvIsSelected","tvPicture","tvPictureRight","tvSelection","tvSetColor","tvSetCurSel","tvSetData","tvSetPicture","tvSetPictureColor","tvSetPictureColorDisabled","tvSetPictureColorSelected","tvSetPictureRight","tvSetPictureRightColor","tvSetPictureRightColorDisabled","tvSetPictureRightColorSelected","tvSetSelectColor","tvSetSelected","tvSetText","tvSetTooltip","tvSetValue","tvSort","tvSortAll","tvSortByValue","tvSortByValueAll","tvText","tvTooltip","tvValue","type","typeName","typeOf","UAVControl","uiNamespace","uiSleep","unassignCurator","unassignItem","unassignTeam","unassignVehicle","underwater","uniform","uniformContainer","uniformItems","uniformMagazines","uniqueUnitItems","unitAddons","unitAimPosition","unitAimPositionVisual","unitBackpack","unitCombatMode","unitIsUAV","unitPos","unitReady","unitRecoilCoefficient","units","unitsBelowHeight","unitTurret","unlinkItem","unlockAchievement","unregisterTask","updateDrawIcon","updateMenuItem","updateObjectTree","useAIOperMapObstructionTest","useAISteeringComponent","useAudioTimeForMoves","userInputDisabled","values","vectorAdd","vectorCos","vectorCrossProduct","vectorDiff","vectorDir","vectorDirVisual","vectorDistance","vectorDistanceSqr","vectorDotProduct","vectorFromTo","vectorLinearConversion","vectorMagnitude","vectorMagnitudeSqr","vectorModelToWorld","vectorModelToWorldVisual","vectorMultiply","vectorNormalized","vectorUp","vectorUpVisual","vectorWorldToModel","vectorWorldToModelVisual","vehicle","vehicleCargoEnabled","vehicleChat","vehicleMoveInfo","vehicleRadio","vehicleReceiveRemoteTargets","vehicleReportOwnPosition","vehicleReportRemoteTargets","vehicles","vehicleVarName","velocity","velocityModelSpace","verifySignature","vest","vestContainer","vestItems","vestMagazines","viewDistance","visibleCompass","visibleGps","visibleMap","visiblePosition","visiblePositionASL","visibleScoretable","visibleWatch","waves","waypointAttachedObject","waypointAttachedVehicle","waypointAttachObject","waypointAttachVehicle","waypointBehaviour","waypointCombatMode","waypointCompletionRadius","waypointDescription","waypointForceBehaviour","waypointFormation","waypointHousePosition","waypointLoiterAltitude","waypointLoiterRadius","waypointLoiterType","waypointName","waypointPosition","waypoints","waypointScript","waypointsEnabledUAV","waypointShow","waypointSpeed","waypointStatements","waypointTimeout","waypointTimeoutCurrent","waypointType","waypointVisible","weaponAccessories","weaponAccessoriesCargo","weaponCargo","weaponDirection","weaponInertia","weaponLowered","weaponReloadingTime","weapons","weaponsInfo","weaponsItems","weaponsItemsCargo","weaponState","weaponsTurret","weightRTD","WFSideText","wind","windDir","windRTD","windStr","wingsForcesRTD","worldName","worldSize","worldToModel","worldToModelVisual","worldToScreen"],g={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:"define undef ifdef ifndef else endif include if",contains:[{begin:/\\\n/,relevance:0},r.inherit(U,{className:"string"}),{begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE]};return{name:"SQF",case_insensitive:!0,keywords:{keyword:k,built_in:a,literal:x},contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.NUMBER_MODE,m,w,U,g],illegal:[/\$[^a-fA-F0-9]/,/\w\$/,/\?/,/@/,/ \| /,/[a-zA-Z_]\./,/\:\=/,/\[\:/]}}return sqf_1=b,sqf_1}var sql_1,hasRequiredSql;function requireSql(){if(hasRequiredSql)return sql_1;hasRequiredSql=1;function b(r){const m=r.regex,w=r.COMMENT("--","$"),U={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},k={begin:/"/,end:/"/,contains:[{begin:/""/}]},x=["true","false","unknown"],a=["double precision","large object","with timezone","without timezone"],g=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],n=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],R=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],v=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],e=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],L=R,O=[...c,...n].filter(l=>!R.includes(l)),B={className:"variable",begin:/@[a-z0-9][a-z0-9_]*/},P={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},S={begin:m.concat(/\b/,m.either(...L),/\s*\(/),relevance:0,keywords:{built_in:L}};function _(l,{exceptions:y,when:D}={}){const M=D;return y=y||[],l.map(F=>F.match(/\|\d+$/)||y.includes(F)?F:M(F)?`${F}|0`:F)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:_(O,{when:l=>l.length<3}),literal:x,type:g,built_in:v},contains:[{begin:m.either(...e),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:O.concat(e),literal:x,type:g}},{className:"type",begin:m.either(...a)},S,B,U,k,r.C_NUMBER_MODE,r.C_BLOCK_COMMENT_MODE,w,P]}}return sql_1=b,sql_1}var stan_1,hasRequiredStan;function requireStan(){if(hasRequiredStan)return stan_1;hasRequiredStan=1;function b(r){const m=r.regex,w=["functions","model","data","parameters","quantities","transformed","generated"],U=["for","in","if","else","while","break","continue","return"],k=["array","tuple","complex","int","real","vector","complex_vector","ordered","positive_ordered","simplex","unit_vector","row_vector","complex_row_vector","matrix","complex_matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"],x=["abs","acos","acosh","add_diag","algebra_solver","algebra_solver_newton","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bessel_first_kind","bessel_second_kind","binary_log_loss","block","cbrt","ceil","chol2inv","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","complex_schur_decompose","complex_schur_decompose_t","complex_schur_decompose_u","conj","cos","cosh","cov_exp_quad","crossprod","csr_extract","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","dae","dae_tol","determinant","diag_matrix","diagonal","diag_post_multiply","diag_pre_multiply","digamma","dims","distance","dot_product","dot_self","eigendecompose","eigendecompose_sym","eigenvalues","eigenvalues_sym","eigenvectors","eigenvectors_sym","erf","erfc","exp","exp2","expm1","falling_factorial","fdim","fft","fft2","floor","fma","fmax","fmin","fmod","gamma_p","gamma_q","generalized_inverse","get_imag","get_real","head","hmm_hidden_state_prob","hmm_marginal","hypot","identity_matrix","inc_beta","integrate_1d","integrate_ode","integrate_ode_adams","integrate_ode_bdf","integrate_ode_rk45","int_step","inv","inv_cloglog","inv_erfc","inverse","inverse_spd","inv_fft","inv_fft2","inv_inc_beta","inv_logit","inv_Phi","inv_sqrt","inv_square","is_inf","is_nan","lambert_w0","lambert_wm1","lbeta","lchoose","ldexp","lgamma","linspaced_array","linspaced_int_array","linspaced_row_vector","linspaced_vector","lmgamma","lmultiply","log","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_inv_logit_diff","logit","log_mix","log_modified_bessel_first_kind","log_rising_factorial","log_softmax","log_sum_exp","machine_precision","map_rect","matrix_exp","matrix_exp_multiply","matrix_power","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multiply_lower_tri_self_transpose","negative_infinity","norm","norm1","norm2","not_a_number","num_elements","ode_adams","ode_adams_tol","ode_adjoint_tol_ctl","ode_bdf","ode_bdf_tol","ode_ckrk","ode_ckrk_tol","ode_rk45","ode_rk45_tol","one_hot_array","one_hot_int_array","one_hot_row_vector","one_hot_vector","ones_array","ones_int_array","ones_row_vector","ones_vector","owens_t","Phi","Phi_approx","polar","positive_infinity","pow","print","prod","proj","qr","qr_Q","qr_R","qr_thin","qr_thin_Q","qr_thin_R","quad_form","quad_form_diag","quad_form_sym","quantile","rank","reduce_sum","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","reverse","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scale_matrix_exp_multiply","sd","segment","sin","singular_values","sinh","size","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","square","squared_distance","step","sub_col","sub_row","sum","svd","svd_U","svd_V","symmetrize_from_lower_tri","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_complex","to_int","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_simplex","variance","zeros_array","zeros_int_array","zeros_row_vector"],a=["bernoulli","bernoulli_logit","bernoulli_logit_glm","beta","beta_binomial","beta_proportion","binomial","binomial_logit","categorical","categorical_logit","categorical_logit_glm","cauchy","chi_square","dirichlet","discrete_range","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hmm_latent","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","inv_wishart_cholesky","lkj_corr","lkj_corr_cholesky","logistic","loglogistic","lognormal","multi_gp","multi_gp_cholesky","multinomial","multinomial_logit","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_cholesky_t","multi_student_t","multi_student_t_cholesky","neg_binomial","neg_binomial_2","neg_binomial_2_log","neg_binomial_2_log_glm","normal","normal_id_glm","ordered_logistic","ordered_logistic_glm","ordered_probit","pareto","pareto_type_2","poisson","poisson_log","poisson_log_glm","rayleigh","scaled_inv_chi_square","skew_double_exponential","skew_normal","std_normal","std_normal_log","student_t","uniform","von_mises","weibull","wiener","wishart","wishart_cholesky"],g=r.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{scope:"doctag",match:/@(return|param)/}]}),n={scope:"meta",begin:/#include\b/,end:/$/,contains:[{match:/[a-z][a-z-._]+/,scope:"string"},r.C_LINE_COMMENT_MODE]},c=["lower","upper","offset","multiplier"];return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:r.IDENT_RE,title:w,type:k,keyword:U,built_in:x},contains:[r.C_LINE_COMMENT_MODE,n,r.HASH_COMMENT_MODE,g,{scope:"built_in",match:/\s(pi|e|sqrt2|log2|log10)(?=\()/,relevance:0},{match:m.concat(/[<,]\s*/,m.either(...c),/\s*=/),keywords:c},{scope:"keyword",match:/\btarget(?=\s*\+=)/},{match:[/~\s*/,m.either(...a),/(?:\(\))/,/\s*T(?=\s*\[)/],scope:{2:"built_in",4:"keyword"}},{scope:"built_in",keywords:a,begin:m.concat(/\w*/,m.either(...a),/(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/)},{begin:[/~/,/\s*/,m.concat(m.either(...a),/(?=\s*[\(.*\)])/)],scope:{3:"built_in"}},{begin:[/~/,/\s*\w+(?=\s*[\(.*\)])/,"(?!.*/\b("+m.either(...a)+")\b)"],scope:{2:"title.function"}},{scope:"title.function",begin:/\w*(_lpdf|_lupdf|_lpmf|_cdf|_lcdf|_lccdf|_qf)(?=\s*[\(.*\)])/},{scope:"number",match:m.concat(/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)/,/(?:[eE][+-]?\d+(?:_\d+)*)?i?(?!\w)/),relevance:0},{scope:"string",begin:/"/,end:/"/}]}}return stan_1=b,stan_1}var stata_1,hasRequiredStata;function requireStata(){if(hasRequiredStata)return stata_1;hasRequiredStata=1;function b(r){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/,relevance:0},{className:"string",variants:[{begin:`\`"[^\r ]*?"'`},{begin:`"[^\r "]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},r.COMMENT("^[ ]*\\*.*$",!1),r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE]}}return stata_1=b,stata_1}var step21_1,hasRequiredStep21;function requireStep21(){if(hasRequiredStep21)return step21_1;hasRequiredStep21=1;function b(r){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.COMMENT("/\\*\\*!","\\*/"),r.C_NUMBER_MODE,r.inherit(r.APOS_STRING_MODE,{illegal:null}),r.inherit(r.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return step21_1=b,step21_1}var stylus_1,hasRequiredStylus;function requireStylus(){if(hasRequiredStylus)return stylus_1;hasRequiredStylus=1;const b=a=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:a.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[a.APOS_STRING_MODE,a.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:a.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),r=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],m=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],w=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],U=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],k=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function x(a){const g=b(a),n="and or not only",c={className:"variable",begin:"\\$"+a.IDENT_RE},R=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],v="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[a.QUOTE_STRING_MODE,a.APOS_STRING_MODE,a.C_LINE_COMMENT_MODE,a.C_BLOCK_COMMENT_MODE,g.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+v,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+v,className:"selector-id"},{begin:"\\b("+r.join("|")+")"+v,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+w.join("|")+")"+v},{className:"selector-pseudo",begin:"&?:(:)?("+U.join("|")+")"+v},g.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:n,attribute:m.join(" ")},contains:[g.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+R.join("|")+"))\\b"},c,g.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[g.HEXCOLOR,c,a.APOS_STRING_MODE,g.CSS_NUMBER_MODE,a.QUOTE_STRING_MODE]}]},g.CSS_VARIABLE,{className:"attribute",begin:"\\b("+k.join("|")+")\\b",starts:{end:/;|$/,contains:[g.HEXCOLOR,c,a.APOS_STRING_MODE,a.QUOTE_STRING_MODE,g.CSS_NUMBER_MODE,a.C_BLOCK_COMMENT_MODE,g.IMPORTANT,g.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},g.FUNCTION_DISPATCH]}}return stylus_1=x,stylus_1}var subunit_1,hasRequiredSubunit;function requireSubunit(){if(hasRequiredSubunit)return subunit_1;hasRequiredSubunit=1;function b(r){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:`\\[ (multipart)?`,end:`\\] `},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return subunit_1=b,subunit_1}var swift_1,hasRequiredSwift;function requireSwift(){if(hasRequiredSwift)return swift_1;hasRequiredSwift=1;function b(F){return F?typeof F=="string"?F:F.source:null}function r(F){return m("(?=",F,")")}function m(...F){return F.map(G=>b(G)).join("")}function w(F){const N=F[F.length-1];return typeof N=="object"&&N.constructor===Object?(F.splice(F.length-1,1),N):{}}function U(...F){return"("+(w(F).capture?"":"?:")+F.map(W=>b(W)).join("|")+")"}const k=F=>m(/\b/,F,/\w$/.test(F)?/\b/:/\B/),x=["Protocol","Type"].map(k),a=["init","self"].map(k),g=["Any","Self"],n=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],c=["false","nil","true"],R=["assignment","associativity","higherThan","left","lowerThan","none","right"],v=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],e=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],L=U(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),O=U(L,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),B=m(L,O,"*"),P=U(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),S=U(P,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),_=m(P,S,"*"),l=m(/[A-Z]/,S,"*"),y=["attached","autoclosure",m(/convention\(/,U("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",m(/objc\(/,_,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],D=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function M(F){const N={match:/\s+/,relevance:0},G=F.COMMENT("/\\*","\\*/",{contains:["self"]}),W=[F.C_LINE_COMMENT_MODE,G],J={match:[/\./,U(...x,...a)],className:{2:"keyword"}},Y={match:m(/\./,U(...n)),relevance:0},V=n.filter(tt=>typeof tt=="string").concat(["_|0"]),H=n.filter(tt=>typeof tt!="string").concat(g).map(k),z={variants:[{className:"keyword",match:U(...H,...a)}]},X={$pattern:U(/\b\w+/,/#\w+/),keyword:V.concat(v),literal:c},q=[J,Y,z],$={match:m(/\./,U(...e)),relevance:0},fe={className:"built_in",match:m(/\b/,U(...e),/(?=\()/)},Q=[$,fe],ie={match:/->/,relevance:0},Te={className:"operator",relevance:0,variants:[{match:B},{match:`\\.(\\.|${O})+`}]},me=[ie,Te],K="([0-9]_*)+",ce="([0-9a-fA-F]_*)+",de={className:"number",relevance:0,variants:[{match:`\\b(${K})(\\.(${K}))?([eE][+-]?(${K}))?\\b`},{match:`\\b0x(${ce})(\\.(${ce}))?([pP][+-]?(${K}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},Z=(tt="")=>({className:"subst",variants:[{match:m(/\\/,tt,/[0\\tnr"']/)},{match:m(/\\/,tt,/u\{[0-9a-fA-F]{1,8}\}/)}]}),ae=(tt="")=>({className:"subst",match:m(/\\/,tt,/[\t ]*(?:[\r\n]|\r\n)/)}),he=(tt="")=>({className:"subst",label:"interpol",begin:m(/\\/,tt,/\(/),end:/\)/}),we=(tt="")=>({begin:m(tt,/"""/),end:m(/"""/,tt),contains:[Z(tt),ae(tt),he(tt)]}),_e=(tt="")=>({begin:m(tt,/"/),end:m(/"/,tt),contains:[Z(tt),he(tt)]}),ye={className:"string",variants:[we(),we("#"),we("##"),we("###"),_e(),_e("#"),_e("##"),_e("###")]},se=[F.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[F.BACKSLASH_ESCAPE]}],Ie={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:se},Ce=tt=>{const je=m(tt,/\//),Je=m(/\//,tt);return{begin:je,end:Je,contains:[...se,{scope:"comment",begin:`#(?!.*${Je})`,end:/$/}]}},oe={scope:"regexp",variants:[Ce("###"),Ce("##"),Ce("#"),Ie]},pe={match:m(/`/,_,/`/)},xe={className:"variable",match:/\$\d+/},Ne={className:"variable",match:`\\$${S}+`},ke=[pe,xe,Ne],De={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:D,contains:[...me,de,ye]}]}},Fe={scope:"keyword",match:m(/@/,U(...y))},Pe={scope:"meta",match:m(/@/,_)},qe=[De,Fe,Pe],Le={match:r(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:m(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,S,"+")},{className:"type",match:l,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:m(/\s+&\s+/,r(l)),relevance:0}]},Oe={begin://,keywords:X,contains:[...W,...q,...qe,ie,Le]};Le.contains.push(Oe);const Ee={match:m(_,/\s*:/),keywords:"_|0",relevance:0},Ae={begin:/\(/,end:/\)/,relevance:0,keywords:X,contains:["self",Ee,...W,oe,...q,...Q,...me,de,ye,...ke,...qe,Le]},Ve={begin://,keywords:"repeat each",contains:[...W,Le]},$e={begin:U(r(m(_,/\s*:/)),r(m(_,/\s+/,_,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:_}]},Ue={begin:/\(/,end:/\)/,keywords:X,contains:[$e,...W,...q,...me,de,ye,...qe,Le,Ae],endsParent:!0,illegal:/["']/},He={match:[/(func|macro)/,/\s+/,U(pe.match,_,B)],className:{1:"keyword",3:"title.function"},contains:[Ve,Ue,N],illegal:[/\[/,/%/]},Qe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[Ve,Ue,N],illegal:/\[|%/},Ze={match:[/operator/,/\s+/,B],className:{1:"keyword",3:"title"}},et={begin:[/precedencegroup/,/\s+/,l],className:{1:"keyword",3:"title"},contains:[Le],keywords:[...R,...c],end:/}/};for(const tt of ye.variants){const je=tt.contains.find(nt=>nt.label==="interpol");je.keywords=X;const Je=[...q,...Q,...me,de,ye,...ke];je.contains=[...Je,{begin:/\(/,end:/\)/,contains:["self",...Je]}]}return{name:"Swift",keywords:X,contains:[...W,He,Qe,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:X,contains:[F.inherit(F.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...q]},Ze,et,{beginKeywords:"import",end:/$/,contains:[...W],relevance:0},oe,...q,...Q,...me,de,ye,...ke,...qe,Le,Ae]}}return swift_1=M,swift_1}var taggerscript_1,hasRequiredTaggerscript;function requireTaggerscript(){if(hasRequiredTaggerscript)return taggerscript_1;hasRequiredTaggerscript=1;function b(r){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\\[()]/},{begin:/\(/,end:/\)/,contains:[{begin:/\\[()]/},"self"]}],relevance:10},{className:"keyword",begin:/\$[_a-zA-Z0-9]+(?=\()/},{className:"variable",begin:/%[_a-zA-Z0-9:]+%/},{className:"symbol",begin:/\\[\\nt$%,()]/},{className:"symbol",begin:/\\u[a-fA-F0-9]{4}/}]}}return taggerscript_1=b,taggerscript_1}var yaml_1,hasRequiredYaml;function requireYaml(){if(hasRequiredYaml)return yaml_1;hasRequiredYaml=1;function b(r){const m="true false yes no null",w="[\\w#;/?:@&=+$,.~*'()[\\]]+",U={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},k={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},x={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[r.BACKSLASH_ESCAPE,k]},a=r.inherit(x,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),g="[0-9]{4}(-[0-9][0-9]){0,2}",n="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",c="(\\.[0-9]*)?",R="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",v={className:"number",begin:"\\b"+g+n+c+R+"\\b"},e={end:",",endsWithParent:!0,excludeEnd:!0,keywords:m,relevance:0},L={begin:/\{/,end:/\}/,contains:[e],illegal:"\\n",relevance:0},O={begin:"\\[",end:"\\]",contains:[e],illegal:"\\n",relevance:0},B=[U,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+w},{className:"type",begin:"!<"+w+">"},{className:"type",begin:"!"+w},{className:"type",begin:"!!"+w},{className:"meta",begin:"&"+r.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+r.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},r.HASH_COMMENT_MODE,{beginKeywords:m,keywords:{literal:m}},v,{className:"number",begin:r.C_NUMBER_RE+"\\b",relevance:0},L,O,x],P=[...B];return P.pop(),P.push(a),e.contains=P,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:B}}return yaml_1=b,yaml_1}var tap_1,hasRequiredTap;function requireTap(){if(hasRequiredTap)return tap_1;hasRequiredTap=1;function b(r){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[r.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}return tap_1=b,tap_1}var tcl_1,hasRequiredTcl;function requireTcl(){if(hasRequiredTcl)return tcl_1;hasRequiredTcl=1;function b(r){const m=r.regex,w=/[a-zA-Z_][a-zA-Z0-9_]*/,U={className:"number",variants:[r.BINARY_NUMBER_MODE,r.C_NUMBER_MODE]};return{name:"Tcl",aliases:["tk"],keywords:["after","append","apply","array","auto_execok","auto_import","auto_load","auto_mkindex","auto_mkindex_old","auto_qualify","auto_reset","bgerror","binary","break","catch","cd","chan","clock","close","concat","continue","dde","dict","encoding","eof","error","eval","exec","exit","expr","fblocked","fconfigure","fcopy","file","fileevent","filename","flush","for","foreach","format","gets","glob","global","history","http","if","incr","info","interp","join","lappend|10","lassign|10","lindex|10","linsert|10","list","llength|10","load","lrange|10","lrepeat|10","lreplace|10","lreverse|10","lsearch|10","lset|10","lsort|10","mathfunc","mathop","memory","msgcat","namespace","open","package","parray","pid","pkg::create","pkg_mkIndex","platform","platform::shell","proc","puts","pwd","read","refchan","regexp","registry","regsub|10","rename","return","safe","scan","seek","set","socket","source","split","string","subst","switch","tcl_endOfWord","tcl_findLibrary","tcl_startOfNextWord","tcl_startOfPreviousWord","tcl_wordBreakAfter","tcl_wordBreakBefore","tcltest","tclvars","tell","time","tm","trace","unknown","unload","unset","update","uplevel","upvar","variable","vwait","while"],contains:[r.COMMENT(";[ \\t]*#","$"),r.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{className:"variable",variants:[{begin:m.concat(/\$/,m.optional(/::/),w,"(::",w,")*")},{begin:"\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"\\}",contains:[U]}]},{className:"string",contains:[r.BACKSLASH_ESCAPE],variants:[r.inherit(r.QUOTE_STRING_MODE,{illegal:null})]},U]}}return tcl_1=b,tcl_1}var thrift_1,hasRequiredThrift;function requireThrift(){if(hasRequiredThrift)return thrift_1;hasRequiredThrift=1;function b(r){const m=["bool","byte","i16","i32","i64","double","string","binary"];return{name:"Thrift",keywords:{keyword:["namespace","const","typedef","struct","enum","service","exception","void","oneway","set","list","map","required","optional"],type:m,literal:"true false"},contains:[r.QUOTE_STRING_MODE,r.NUMBER_MODE,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[r.inherit(r.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",keywords:{type:[...m,"set","list","map"]},end:">",contains:["self"]}]}}return thrift_1=b,thrift_1}var tp_1,hasRequiredTp;function requireTp(){if(hasRequiredTp)return tp_1;hasRequiredTp=1;function b(r){const m={className:"number",begin:"[1-9][0-9]*",relevance:0},w={className:"symbol",begin:":[^\\]]+"},U={className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",m,w]},k={className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",m,r.QUOTE_STRING_MODE,w]};return{name:"TP",keywords:{keyword:["ABORT","ACC","ADJUST","AND","AP_LD","BREAK","CALL","CNT","COL","CONDITION","CONFIG","DA","DB","DIV","DETECT","ELSE","END","ENDFOR","ERR_NUM","ERROR_PROG","FINE","FOR","GP","GUARD","INC","IF","JMP","LINEAR_MAX_SPEED","LOCK","MOD","MONITOR","OFFSET","Offset","OR","OVERRIDE","PAUSE","PREG","PTH","RT_LD","RUN","SELECT","SKIP","Skip","TA","TB","TO","TOOL_OFFSET","Tool_Offset","UF","UT","UFRAME_NUM","UTOOL_NUM","UNLOCK","WAIT","X","Y","Z","W","P","R","STRLEN","SUBSTR","FINDSTR","VOFFSET","PROG","ATTR","MN","POS"],literal:["ON","OFF","max_speed","LPOS","JPOS","ENABLE","DISABLE","START","STOP","RESET"]},contains:[U,k,{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},r.COMMENT("//","[;$]"),r.COMMENT("!","[;$]"),r.COMMENT("--eg:","$"),r.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},r.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}return tp_1=b,tp_1}var twig_1,hasRequiredTwig;function requireTwig(){if(hasRequiredTwig)return twig_1;hasRequiredTwig=1;function b(r){const m=r.regex,w=["absolute_url","asset|0","asset_version","attribute","block","constant","controller|0","country_timezones","csrf_token","cycle","date","dump","expression","form|0","form_end","form_errors","form_help","form_label","form_rest","form_row","form_start","form_widget","html_classes","include","is_granted","logout_path","logout_url","max","min","parent","path|0","random","range","relative_path","render","render_esi","source","template_from_string","url|0"],U=["abs","abbr_class","abbr_method","batch","capitalize","column","convert_encoding","country_name","currency_name","currency_symbol","data_uri","date","date_modify","default","escape","file_excerpt","file_link","file_relative","filter","first","format","format_args","format_args_as_text","format_currency","format_date","format_datetime","format_file","format_file_from_text","format_number","format_time","html_to_markdown","humanize","inky_to_html","inline_css","join","json_encode","keys","language_name","last","length","locale_name","lower","map","markdown","markdown_to_html","merge","nl2br","number_format","raw","reduce","replace","reverse","round","slice","slug","sort","spaceless","split","striptags","timezone_name","title","trans","transchoice","trim","u|0","upper","url_encode","yaml_dump","yaml_encode"];let k=["apply","autoescape","block","cache","deprecated","do","embed","extends","filter","flush","for","form_theme","from","if","import","include","macro","sandbox","set","stopwatch","trans","trans_default_domain","transchoice","use","verbatim","with"];k=k.concat(k.map(O=>`end${O}`));const x={scope:"string",variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},a={scope:"number",match:/\d+/},g={begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[x,a]},n={beginKeywords:w.join(" "),keywords:{name:w},relevance:0,contains:[g]},c={match:/\|(?=[A-Za-z_]+:?)/,beginScope:"punctuation",relevance:0,contains:[{match:/[A-Za-z_]+:?/,keywords:U}]},R=(O,{relevance:B})=>({beginScope:{1:"template-tag",3:"name"},relevance:B||2,endScope:"template-tag",begin:[/\{%/,/\s*/,m.either(...O)],end:/%\}/,keywords:"in",contains:[c,n,x,a]}),v=/[a-z_]+/,e=R(k,{relevance:2}),L=R([v],{relevance:1});return{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[r.COMMENT(/\{#/,/#\}/),e,L,{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",c,n,x,a]}]}}return twig_1=b,twig_1}var typescript_1,hasRequiredTypescript;function requireTypescript(){if(hasRequiredTypescript)return typescript_1;hasRequiredTypescript=1;const b="[A-Za-z$_][0-9A-Za-z$_]*",r=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],m=["true","false","null","undefined","NaN","Infinity"],w=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],U=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],k=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],x=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],a=[].concat(k,w,U);function g(c){const R=c.regex,v=(Z,{after:ae})=>{const he="",end:""},O=/<[A-Za-z0-9\\._:-]+\s*\/>/,B={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Z,ae)=>{const he=Z[0].length+Z.index,we=Z.input[he];if(we==="<"||we===","){ae.ignoreMatch();return}we===">"&&(v(Z,{after:he})||ae.ignoreMatch());let _e;const ye=Z.input.substring(he);if(_e=ye.match(/^\s*=/)){ae.ignoreMatch();return}if((_e=ye.match(/^\s+extends\s+/))&&_e.index===0){ae.ignoreMatch();return}}},P={$pattern:b,keyword:r,literal:m,built_in:a,"variable.language":x},S="[0-9](_?[0-9])*",_=`\\.(${S})`,l="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",y={className:"number",variants:[{begin:`(\\b(${l})((${_})|\\.)?|(${_}))[eE][+-]?(${S})\\b`},{begin:`\\b(${l})\\b((${_})\\b|\\.)?|(${_})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},D={className:"subst",begin:"\\$\\{",end:"\\}",keywords:P,contains:[]},M={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,D],subLanguage:"xml"}},F={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,D],subLanguage:"css"}},N={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[c.BACKSLASH_ESCAPE,D],subLanguage:"graphql"}},G={className:"string",begin:"`",end:"`",contains:[c.BACKSLASH_ESCAPE,D]},J={className:"comment",variants:[c.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:e+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),c.C_BLOCK_COMMENT_MODE,c.C_LINE_COMMENT_MODE]},Y=[c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,M,F,N,G,{match:/\$\d+/},y];D.contains=Y.concat({begin:/\{/,end:/\}/,keywords:P,contains:["self"].concat(Y)});const V=[].concat(J,D.contains),H=V.concat([{begin:/\(/,end:/\)/,keywords:P,contains:["self"].concat(V)}]),z={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:P,contains:H},X={variants:[{match:[/class/,/\s+/,e,/\s+/,/extends/,/\s+/,R.concat(e,"(",R.concat(/\./,e),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,e],scope:{1:"keyword",3:"title.class"}}]},q={relevance:0,match:R.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...w,...U]}},$={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},fe={variants:[{match:[/function/,/\s+/,e,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[z],illegal:/%/},Q={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ie(Z){return R.concat("(?!",Z.join("|"),")")}const Te={match:R.concat(/\b/,ie([...k,"super","import"]),e,R.lookahead(/\(/)),className:"title.function",relevance:0},me={begin:R.concat(/\./,R.lookahead(R.concat(e,/(?![0-9A-Za-z$_(])/))),end:e,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},K={match:[/get|set/,/\s+/,e,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},z]},ce="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+c.UNDERSCORE_IDENT_RE+")\\s*=>",de={match:[/const|var|let/,/\s+/,e,/\s*/,/=\s*/,/(async\s*)?/,R.lookahead(ce)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[z]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:P,exports:{PARAMS_CONTAINS:H,CLASS_REFERENCE:q},illegal:/#(?![$_A-z])/,contains:[c.SHEBANG({label:"shebang",binary:"node",relevance:5}),$,c.APOS_STRING_MODE,c.QUOTE_STRING_MODE,M,F,N,G,J,{match:/\$\d+/},y,q,{className:"attr",begin:e+R.lookahead(":"),relevance:0},de,{begin:"("+c.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[J,c.REGEXP_MODE,{className:"function",begin:ce,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:c.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:P,contains:H}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:L.begin,end:L.end},{match:O},{begin:B.begin,"on:begin":B.isTrulyOpeningTag,end:B.end}],subLanguage:"xml",contains:[{begin:B.begin,end:B.end,skip:!0,contains:["self"]}]}]},fe,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+c.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[z,c.inherit(c.TITLE_MODE,{begin:e,className:"title.function"})]},{match:/\.\.\./,relevance:0},me,{match:"\\$"+e,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[z]},Te,Q,X,K,{match:/\$[(.]/}]}}function n(c){const R=g(c),v=b,e=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],L={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[R.exports.CLASS_REFERENCE]},O={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:e},contains:[R.exports.CLASS_REFERENCE]},B={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},P=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],S={$pattern:b,keyword:r.concat(P),literal:m,built_in:a.concat(e),"variable.language":x},_={className:"meta",begin:"@"+v},l=(D,M,F)=>{const N=D.contains.findIndex(G=>G.label===M);if(N===-1)throw new Error("can not find mode to replace");D.contains.splice(N,1,F)};Object.assign(R.keywords,S),R.exports.PARAMS_CONTAINS.push(_),R.contains=R.contains.concat([_,L,O]),l(R,"shebang",c.SHEBANG()),l(R,"use_strict",B);const y=R.contains.find(D=>D.label==="func.def");return y.relevance=0,Object.assign(R,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),R}return typescript_1=n,typescript_1}var vala_1,hasRequiredVala;function requireVala(){if(hasRequiredVala)return vala_1;hasRequiredVala=1;function b(r){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[r.UNDERSCORE_TITLE_MODE]},r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,r.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$"}]}}return vala_1=b,vala_1}var vbnet_1,hasRequiredVbnet;function requireVbnet(){if(hasRequiredVbnet)return vbnet_1;hasRequiredVbnet=1;function b(r){const m=r.regex,w={className:"string",begin:/"(""|[^/n])"C\b/},U={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},k=/\d{1,2}\/\d{1,2}\/\d{4}/,x=/\d{4}-\d{1,2}-\d{1,2}/,a=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,g=/\d{1,2}(:\d{1,2}){1,2}/,n={className:"literal",variants:[{begin:m.concat(/# */,m.either(x,k),/ *#/)},{begin:m.concat(/# */,g,/ *#/)},{begin:m.concat(/# */,a,/ *#/)},{begin:m.concat(/# */,m.either(x,k),/ +/,m.either(a,g),/ *#/)}]},c={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},R={className:"label",begin:/^\w+:/},v=r.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),e=r.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[w,U,n,c,R,v,e,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[e]}]}}return vbnet_1=b,vbnet_1}var vbscript_1,hasRequiredVbscript;function requireVbscript(){if(hasRequiredVbscript)return vbscript_1;hasRequiredVbscript=1;function b(r){const m=r.regex,w=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"],U=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],k={begin:m.concat(m.either(...w),"\\s*\\("),relevance:0,keywords:{built_in:w}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"],built_in:U,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[k,r.inherit(r.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),r.COMMENT(/'/,/$/,{relevance:0}),r.C_NUMBER_MODE]}}return vbscript_1=b,vbscript_1}var vbscriptHtml_1,hasRequiredVbscriptHtml;function requireVbscriptHtml(){if(hasRequiredVbscriptHtml)return vbscriptHtml_1;hasRequiredVbscriptHtml=1;function b(r){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}return vbscriptHtml_1=b,vbscriptHtml_1}var verilog_1,hasRequiredVerilog;function requireVerilog(){if(hasRequiredVerilog)return verilog_1;hasRequiredVerilog=1;function b(r){const m=r.regex,w={$pattern:/\$?[\w]+(\$[\w]+)*/,keyword:["accept_on","alias","always","always_comb","always_ff","always_latch","and","assert","assign","assume","automatic","before","begin","bind","bins","binsof","bit","break","buf|0","bufif0","bufif1","byte","case","casex","casez","cell","chandle","checker","class","clocking","cmos","config","const","constraint","context","continue","cover","covergroup","coverpoint","cross","deassign","default","defparam","design","disable","dist","do","edge","else","end","endcase","endchecker","endclass","endclocking","endconfig","endfunction","endgenerate","endgroup","endinterface","endmodule","endpackage","endprimitive","endprogram","endproperty","endspecify","endsequence","endtable","endtask","enum","event","eventually","expect","export","extends","extern","final","first_match","for","force","foreach","forever","fork","forkjoin","function","generate|5","genvar","global","highz0","highz1","if","iff","ifnone","ignore_bins","illegal_bins","implements","implies","import","incdir","include","initial","inout","input","inside","instance","int","integer","interconnect","interface","intersect","join","join_any","join_none","large","let","liblist","library","local","localparam","logic","longint","macromodule","matches","medium","modport","module","nand","negedge","nettype","new","nexttime","nmos","nor","noshowcancelled","not","notif0","notif1","or","output","package","packed","parameter","pmos","posedge","primitive","priority","program","property","protected","pull0","pull1","pulldown","pullup","pulsestyle_ondetect","pulsestyle_onevent","pure","rand","randc","randcase","randsequence","rcmos","real","realtime","ref","reg","reject_on","release","repeat","restrict","return","rnmos","rpmos","rtran","rtranif0","rtranif1","s_always","s_eventually","s_nexttime","s_until","s_until_with","scalared","sequence","shortint","shortreal","showcancelled","signed","small","soft","solve","specify","specparam","static","string","strong","strong0","strong1","struct","super","supply0","supply1","sync_accept_on","sync_reject_on","table","tagged","task","this","throughout","time","timeprecision","timeunit","tran","tranif0","tranif1","tri","tri0","tri1","triand","trior","trireg","type","typedef","union","unique","unique0","unsigned","until","until_with","untyped","use","uwire","var","vectored","virtual","void","wait","wait_order","wand","weak","weak0","weak1","while","wildcard","wire","with","within","wor","xnor","xor"],literal:["null"],built_in:["$finish","$stop","$exit","$fatal","$error","$warning","$info","$realtime","$time","$printtimescale","$bitstoreal","$bitstoshortreal","$itor","$signed","$cast","$bits","$stime","$timeformat","$realtobits","$shortrealtobits","$rtoi","$unsigned","$asserton","$assertkill","$assertpasson","$assertfailon","$assertnonvacuouson","$assertoff","$assertcontrol","$assertpassoff","$assertfailoff","$assertvacuousoff","$isunbounded","$sampled","$fell","$changed","$past_gclk","$fell_gclk","$changed_gclk","$rising_gclk","$steady_gclk","$coverage_control","$coverage_get","$coverage_save","$set_coverage_db_name","$rose","$stable","$past","$rose_gclk","$stable_gclk","$future_gclk","$falling_gclk","$changing_gclk","$display","$coverage_get_max","$coverage_merge","$get_coverage","$load_coverage_db","$typename","$unpacked_dimensions","$left","$low","$increment","$clog2","$ln","$log10","$exp","$sqrt","$pow","$floor","$ceil","$sin","$cos","$tan","$countbits","$onehot","$isunknown","$fatal","$warning","$dimensions","$right","$high","$size","$asin","$acos","$atan","$atan2","$hypot","$sinh","$cosh","$tanh","$asinh","$acosh","$atanh","$countones","$onehot0","$error","$info","$random","$dist_chi_square","$dist_erlang","$dist_exponential","$dist_normal","$dist_poisson","$dist_t","$dist_uniform","$q_initialize","$q_remove","$q_exam","$async$and$array","$async$nand$array","$async$or$array","$async$nor$array","$sync$and$array","$sync$nand$array","$sync$or$array","$sync$nor$array","$q_add","$q_full","$psprintf","$async$and$plane","$async$nand$plane","$async$or$plane","$async$nor$plane","$sync$and$plane","$sync$nand$plane","$sync$or$plane","$sync$nor$plane","$system","$display","$displayb","$displayh","$displayo","$strobe","$strobeb","$strobeh","$strobeo","$write","$readmemb","$readmemh","$writememh","$value$plusargs","$dumpvars","$dumpon","$dumplimit","$dumpports","$dumpportson","$dumpportslimit","$writeb","$writeh","$writeo","$monitor","$monitorb","$monitorh","$monitoro","$writememb","$dumpfile","$dumpoff","$dumpall","$dumpflush","$dumpportsoff","$dumpportsall","$dumpportsflush","$fclose","$fdisplay","$fdisplayb","$fdisplayh","$fdisplayo","$fstrobe","$fstrobeb","$fstrobeh","$fstrobeo","$swrite","$swriteb","$swriteh","$swriteo","$fscanf","$fread","$fseek","$fflush","$feof","$fopen","$fwrite","$fwriteb","$fwriteh","$fwriteo","$fmonitor","$fmonitorb","$fmonitorh","$fmonitoro","$sformat","$sformatf","$fgetc","$ungetc","$fgets","$sscanf","$rewind","$ftell","$ferror"]},U=["__FILE__","__LINE__"],k=["begin_keywords","celldefine","default_nettype","default_decay_time","default_trireg_strength","define","delay_mode_distributed","delay_mode_path","delay_mode_unit","delay_mode_zero","else","elsif","end_keywords","endcelldefine","endif","ifdef","ifndef","include","line","nounconnected_drive","pragma","resetall","timescale","unconnected_drive","undef","undefineall"];return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:w,contains:[r.C_BLOCK_COMMENT_MODE,r.C_LINE_COMMENT_MODE,r.QUOTE_STRING_MODE,{scope:"number",contains:[r.BACKSLASH_ESCAPE],variants:[{begin:/\b((\d+'([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\B(('([bhodBHOD]))[0-9xzXZa-fA-F_]+)/},{begin:/\b[0-9][0-9_]*/,relevance:0}]},{scope:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{scope:"variable.constant",match:m.concat(/`/,m.either(...U))},{scope:"meta",begin:m.concat(/`/,m.either(...k)),end:/$|\/\/|\/\*/,returnEnd:!0,keywords:k}]}}return verilog_1=b,verilog_1}var vhdl_1,hasRequiredVhdl;function requireVhdl(){if(hasRequiredVhdl)return vhdl_1;hasRequiredVhdl=1;function b(r){const m="\\d(_|\\d)*",w="[eE][-+]?"+m,U=m+"(\\."+m+")?("+w+")?",k="\\w+",a="\\b("+(m+"#"+k+"(\\."+k+")?#("+w+")?")+"|"+U+")";return{name:"VHDL",case_insensitive:!0,keywords:{keyword:["abs","access","after","alias","all","and","architecture","array","assert","assume","assume_guarantee","attribute","begin","block","body","buffer","bus","case","component","configuration","constant","context","cover","disconnect","downto","default","else","elsif","end","entity","exit","fairness","file","for","force","function","generate","generic","group","guarded","if","impure","in","inertial","inout","is","label","library","linkage","literal","loop","map","mod","nand","new","next","nor","not","null","of","on","open","or","others","out","package","parameter","port","postponed","procedure","process","property","protected","pure","range","record","register","reject","release","rem","report","restrict","restrict_guarantee","return","rol","ror","select","sequence","severity","shared","signal","sla","sll","sra","srl","strong","subtype","then","to","transport","type","unaffected","units","until","use","variable","view","vmode","vprop","vunit","wait","when","while","with","xnor","xor"],built_in:["boolean","bit","character","integer","time","delay_length","natural","positive","string","bit_vector","file_open_kind","file_open_status","std_logic","std_logic_vector","unsigned","signed","boolean_vector","integer_vector","std_ulogic","std_ulogic_vector","unresolved_unsigned","u_unsigned","unresolved_signed","u_signed","real_vector","time_vector"],literal:["false","true","note","warning","error","failure","line","text","side","width"]},illegal:/\{/,contains:[r.C_BLOCK_COMMENT_MODE,r.COMMENT("--","$"),r.QUOTE_STRING_MODE,{className:"number",begin:a,relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[r.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[r.BACKSLASH_ESCAPE]}]}}return vhdl_1=b,vhdl_1}var vim_1,hasRequiredVim;function requireVim(){if(hasRequiredVim)return vim_1;hasRequiredVim=1;function b(r){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[r.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},r.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,r.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}return vim_1=b,vim_1}var wasm_1,hasRequiredWasm;function requireWasm(){if(hasRequiredWasm)return wasm_1;hasRequiredWasm=1;function b(r){r.regex;const m=r.COMMENT(/\(;/,/;\)/);m.contains.push("self");const w=r.COMMENT(/;;/,/$/),U=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],k={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},x={className:"variable",begin:/\$[\w_]+/},a={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},g={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},n={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},c={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:U},contains:[w,m,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},x,a,k,r.QUOTE_STRING_MODE,n,c,g]}}return wasm_1=b,wasm_1}var wren_1,hasRequiredWren;function requireWren(){if(hasRequiredWren)return wren_1;hasRequiredWren=1;function b(r){const m=r.regex,w=/[a-zA-Z]\w*/,U=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],k=["true","false","null"],x=["this","super"],a=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],g=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],n={relevance:0,match:m.concat(/\b(?!(if|while|for|else|super)\b)/,w,/(?=\s*[({])/),className:"title.function"},c={match:m.concat(m.either(m.concat(/\b(?!(if|while|for|else|super)\b)/,w),m.either(...g)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:w}]}]}},R={variants:[{match:[/class\s+/,w,/\s+is\s+/,w]},{match:[/class\s+/,w]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:U},v={relevance:0,match:m.either(...g),className:"operator"},e={className:"string",begin:/"""/,end:/"""/},L={className:"property",begin:m.concat(/\./,m.lookahead(w)),end:w,excludeBegin:!0,relevance:0},O={relevance:0,match:m.concat(/\b_/,w),scope:"variable"},B={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:a}},P=r.C_NUMBER_MODE,S={match:[w,/\s*/,/=/,/\s*/,/\(/,w,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},_=r.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),l={scope:"subst",begin:/%\(/,end:/\)/,contains:[P,B,n,O,v]},y={scope:"string",begin:/"/,end:/"/,contains:[l,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};l.contains.push(y);const D=[...U,...x,...k],M={relevance:0,match:m.concat("\\b(?!",D.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:U,"variable.language":x,literal:k},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:k},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},P,y,e,_,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,B,R,S,c,n,v,O,L,M]}}return wren_1=b,wren_1}var x86asm_1,hasRequiredX86asm;function requireX86asm(){if(hasRequiredX86asm)return x86asm_1;hasRequiredX86asm=1;function b(r){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+r.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[r.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},r.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}return x86asm_1=b,x86asm_1}var xl_1,hasRequiredXl;function requireXl(){if(hasRequiredXl)return xl_1;hasRequiredXl=1;function b(r){const m=["if","then","else","do","while","until","for","loop","import","with","is","as","where","when","by","data","constant","integer","real","text","name","boolean","symbol","infix","prefix","postfix","block","tree"],w=["in","mod","rem","and","or","xor","not","abs","sign","floor","ceil","sqrt","sin","cos","tan","asin","acos","atan","exp","expm1","log","log2","log10","log1p","pi","at","text_length","text_range","text_find","text_replace","contains","page","slide","basic_slide","title_slide","title","subtitle","fade_in","fade_out","fade_at","clear_color","color","line_color","line_width","texture_wrap","texture_transform","texture","scale_?x","scale_?y","scale_?z?","translate_?x","translate_?y","translate_?z?","rotate_?x","rotate_?y","rotate_?z?","rectangle","circle","ellipse","sphere","path","line_to","move_to","quad_to","curve_to","theme","background","contents","locally","time","mouse_?x","mouse_?y","mouse_buttons"],U=["ObjectLoader","Animate","MovieCredits","Slides","Filters","Shading","Materials","LensFlare","Mapping","VLCAudioVideo","StereoDecoder","PointCloud","NetworkAccess","RemoteControl","RegExp","ChromaKey","Snowfall","NodeJS","Speech","Charts"],x={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:m,literal:["true","false","nil"],built_in:w.concat(U)},a={className:"string",begin:'"',end:'"',illegal:"\\n"},g={className:"string",begin:"'",end:"'",illegal:"\\n"},n={className:"string",begin:"<<",end:">>"},c={className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},R={beginKeywords:"import",end:"$",keywords:x,contains:[a]},v={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[r.inherit(r.TITLE_MODE,{starts:{endsWithParent:!0,keywords:x}})]};return{name:"XL",aliases:["tao"],keywords:x,contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,a,g,n,v,R,c,r.NUMBER_MODE]}}return xl_1=b,xl_1}var xquery_1,hasRequiredXquery;function requireXquery(){if(hasRequiredXquery)return xquery_1;hasRequiredXquery=1;function b(r){return{name:"XQuery",aliases:["xpath","xq","xqm"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:["module","schema","namespace","boundary-space","preserve","no-preserve","strip","default","collation","base-uri","ordering","context","decimal-format","decimal-separator","copy-namespaces","empty-sequence","except","exponent-separator","external","grouping-separator","inherit","no-inherit","lax","minus-sign","per-mille","percent","schema-attribute","schema-element","strict","unordered","zero-digit","declare","import","option","function","validate","variable","for","at","in","let","where","order","group","by","return","if","then","else","tumbling","sliding","window","start","when","only","end","previous","next","stable","ascending","descending","allowing","empty","greatest","least","some","every","satisfies","switch","case","typeswitch","try","catch","and","or","to","union","intersect","instance","of","treat","as","castable","cast","map","array","delete","insert","into","replace","value","rename","copy","modify","update"],type:["item","document-node","node","attribute","document","element","comment","namespace","namespace-node","processing-instruction","text","construction","xs:anyAtomicType","xs:untypedAtomic","xs:duration","xs:time","xs:decimal","xs:float","xs:double","xs:gYearMonth","xs:gYear","xs:gMonthDay","xs:gMonth","xs:gDay","xs:boolean","xs:base64Binary","xs:hexBinary","xs:anyURI","xs:QName","xs:NOTATION","xs:dateTime","xs:dateTimeStamp","xs:date","xs:string","xs:normalizedString","xs:token","xs:language","xs:NMTOKEN","xs:Name","xs:NCName","xs:ID","xs:IDREF","xs:ENTITY","xs:integer","xs:nonPositiveInteger","xs:negativeInteger","xs:long","xs:int","xs:short","xs:byte","xs:nonNegativeInteger","xs:unisignedLong","xs:unsignedInt","xs:unsignedShort","xs:unsignedByte","xs:positiveInteger","xs:yearMonthDuration","xs:dayTimeDuration"],literal:["eq","ne","lt","le","gt","ge","is","self::","child::","descendant::","descendant-or-self::","attribute::","following::","following-sibling::","parent::","ancestor::","ancestor-or-self::","preceding::","preceding-sibling::","NaN"]},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}return xquery_1=b,xquery_1}var zephir_1,hasRequiredZephir;function requireZephir(){if(hasRequiredZephir)return zephir_1;hasRequiredZephir=1;function b(r){const m={className:"string",contains:[r.BACKSLASH_ESCAPE],variants:[r.inherit(r.APOS_STRING_MODE,{illegal:null}),r.inherit(r.QUOTE_STRING_MODE,{illegal:null})]},w=r.UNDERSCORE_TITLE_MODE,U={variants:[r.BINARY_NUMBER_MODE,r.C_NUMBER_MODE]},k="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:k,contains:[r.C_LINE_COMMENT_MODE,r.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[r.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[w,{className:"params",begin:/\(/,end:/\)/,keywords:k,contains:["self",r.C_BLOCK_COMMENT_MODE,m,U]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},w]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[w]},{beginKeywords:"use",end:/;/,contains:[w]},{begin:/=>/},m,U]}}return zephir_1=b,zephir_1}var hljs=core;hljs.registerLanguage("1c",require_1c());hljs.registerLanguage("abnf",requireAbnf());hljs.registerLanguage("accesslog",requireAccesslog());hljs.registerLanguage("actionscript",requireActionscript());hljs.registerLanguage("ada",requireAda());hljs.registerLanguage("angelscript",requireAngelscript());hljs.registerLanguage("apache",requireApache());hljs.registerLanguage("applescript",requireApplescript());hljs.registerLanguage("arcade",requireArcade());hljs.registerLanguage("arduino",requireArduino());hljs.registerLanguage("armasm",requireArmasm());hljs.registerLanguage("xml",requireXml());hljs.registerLanguage("asciidoc",requireAsciidoc());hljs.registerLanguage("aspectj",requireAspectj());hljs.registerLanguage("autohotkey",requireAutohotkey());hljs.registerLanguage("autoit",requireAutoit());hljs.registerLanguage("avrasm",requireAvrasm());hljs.registerLanguage("awk",requireAwk());hljs.registerLanguage("axapta",requireAxapta());hljs.registerLanguage("bash",requireBash());hljs.registerLanguage("basic",requireBasic());hljs.registerLanguage("bnf",requireBnf());hljs.registerLanguage("brainfuck",requireBrainfuck());hljs.registerLanguage("c",requireC());hljs.registerLanguage("cal",requireCal());hljs.registerLanguage("capnproto",requireCapnproto());hljs.registerLanguage("ceylon",requireCeylon());hljs.registerLanguage("clean",requireClean());hljs.registerLanguage("clojure",requireClojure());hljs.registerLanguage("clojure-repl",requireClojureRepl());hljs.registerLanguage("cmake",requireCmake());hljs.registerLanguage("coffeescript",requireCoffeescript());hljs.registerLanguage("coq",requireCoq());hljs.registerLanguage("cos",requireCos());hljs.registerLanguage("cpp",requireCpp());hljs.registerLanguage("crmsh",requireCrmsh());hljs.registerLanguage("crystal",requireCrystal());hljs.registerLanguage("csharp",requireCsharp());hljs.registerLanguage("csp",requireCsp());hljs.registerLanguage("css",requireCss());hljs.registerLanguage("d",requireD());hljs.registerLanguage("markdown",requireMarkdown());hljs.registerLanguage("dart",requireDart());hljs.registerLanguage("delphi",requireDelphi());hljs.registerLanguage("diff",requireDiff());hljs.registerLanguage("django",requireDjango());hljs.registerLanguage("dns",requireDns());hljs.registerLanguage("dockerfile",requireDockerfile());hljs.registerLanguage("dos",requireDos());hljs.registerLanguage("dsconfig",requireDsconfig());hljs.registerLanguage("dts",requireDts());hljs.registerLanguage("dust",requireDust());hljs.registerLanguage("ebnf",requireEbnf());hljs.registerLanguage("elixir",requireElixir());hljs.registerLanguage("elm",requireElm());hljs.registerLanguage("ruby",requireRuby());hljs.registerLanguage("erb",requireErb());hljs.registerLanguage("erlang-repl",requireErlangRepl());hljs.registerLanguage("erlang",requireErlang());hljs.registerLanguage("excel",requireExcel());hljs.registerLanguage("fix",requireFix());hljs.registerLanguage("flix",requireFlix());hljs.registerLanguage("fortran",requireFortran());hljs.registerLanguage("fsharp",requireFsharp());hljs.registerLanguage("gams",requireGams());hljs.registerLanguage("gauss",requireGauss());hljs.registerLanguage("gcode",requireGcode());hljs.registerLanguage("gherkin",requireGherkin());hljs.registerLanguage("glsl",requireGlsl());hljs.registerLanguage("gml",requireGml());hljs.registerLanguage("go",requireGo());hljs.registerLanguage("golo",requireGolo());hljs.registerLanguage("gradle",requireGradle());hljs.registerLanguage("graphql",requireGraphql());hljs.registerLanguage("groovy",requireGroovy());hljs.registerLanguage("haml",requireHaml());hljs.registerLanguage("handlebars",requireHandlebars());hljs.registerLanguage("haskell",requireHaskell());hljs.registerLanguage("haxe",requireHaxe());hljs.registerLanguage("hsp",requireHsp());hljs.registerLanguage("http",requireHttp());hljs.registerLanguage("hy",requireHy());hljs.registerLanguage("inform7",requireInform7());hljs.registerLanguage("ini",requireIni());hljs.registerLanguage("irpf90",requireIrpf90());hljs.registerLanguage("isbl",requireIsbl());hljs.registerLanguage("java",requireJava());hljs.registerLanguage("javascript",requireJavascript());hljs.registerLanguage("jboss-cli",requireJbossCli());hljs.registerLanguage("json",requireJson());hljs.registerLanguage("julia",requireJulia());hljs.registerLanguage("julia-repl",requireJuliaRepl());hljs.registerLanguage("kotlin",requireKotlin());hljs.registerLanguage("lasso",requireLasso());hljs.registerLanguage("latex",requireLatex());hljs.registerLanguage("ldif",requireLdif());hljs.registerLanguage("leaf",requireLeaf());hljs.registerLanguage("less",requireLess());hljs.registerLanguage("lisp",requireLisp());hljs.registerLanguage("livecodeserver",requireLivecodeserver());hljs.registerLanguage("livescript",requireLivescript());hljs.registerLanguage("llvm",requireLlvm());hljs.registerLanguage("lsl",requireLsl());hljs.registerLanguage("lua",requireLua());hljs.registerLanguage("makefile",requireMakefile());hljs.registerLanguage("mathematica",requireMathematica());hljs.registerLanguage("matlab",requireMatlab());hljs.registerLanguage("maxima",requireMaxima());hljs.registerLanguage("mel",requireMel());hljs.registerLanguage("mercury",requireMercury());hljs.registerLanguage("mipsasm",requireMipsasm());hljs.registerLanguage("mizar",requireMizar());hljs.registerLanguage("perl",requirePerl());hljs.registerLanguage("mojolicious",requireMojolicious());hljs.registerLanguage("monkey",requireMonkey());hljs.registerLanguage("moonscript",requireMoonscript());hljs.registerLanguage("n1ql",requireN1ql());hljs.registerLanguage("nestedtext",requireNestedtext());hljs.registerLanguage("nginx",requireNginx());hljs.registerLanguage("nim",requireNim());hljs.registerLanguage("nix",requireNix());hljs.registerLanguage("node-repl",requireNodeRepl());hljs.registerLanguage("nsis",requireNsis());hljs.registerLanguage("objectivec",requireObjectivec());hljs.registerLanguage("ocaml",requireOcaml());hljs.registerLanguage("openscad",requireOpenscad());hljs.registerLanguage("oxygene",requireOxygene());hljs.registerLanguage("parser3",requireParser3());hljs.registerLanguage("pf",requirePf());hljs.registerLanguage("pgsql",requirePgsql());hljs.registerLanguage("php",requirePhp());hljs.registerLanguage("php-template",requirePhpTemplate());hljs.registerLanguage("plaintext",requirePlaintext());hljs.registerLanguage("pony",requirePony());hljs.registerLanguage("powershell",requirePowershell());hljs.registerLanguage("processing",requireProcessing());hljs.registerLanguage("profile",requireProfile());hljs.registerLanguage("prolog",requireProlog());hljs.registerLanguage("properties",requireProperties());hljs.registerLanguage("protobuf",requireProtobuf());hljs.registerLanguage("puppet",requirePuppet());hljs.registerLanguage("purebasic",requirePurebasic());hljs.registerLanguage("python",requirePython());hljs.registerLanguage("python-repl",requirePythonRepl());hljs.registerLanguage("q",requireQ());hljs.registerLanguage("qml",requireQml());hljs.registerLanguage("r",requireR());hljs.registerLanguage("reasonml",requireReasonml());hljs.registerLanguage("rib",requireRib());hljs.registerLanguage("roboconf",requireRoboconf());hljs.registerLanguage("routeros",requireRouteros());hljs.registerLanguage("rsl",requireRsl());hljs.registerLanguage("ruleslanguage",requireRuleslanguage());hljs.registerLanguage("rust",requireRust());hljs.registerLanguage("sas",requireSas());hljs.registerLanguage("scala",requireScala());hljs.registerLanguage("scheme",requireScheme());hljs.registerLanguage("scilab",requireScilab());hljs.registerLanguage("scss",requireScss());hljs.registerLanguage("shell",requireShell());hljs.registerLanguage("smali",requireSmali());hljs.registerLanguage("smalltalk",requireSmalltalk());hljs.registerLanguage("sml",requireSml());hljs.registerLanguage("sqf",requireSqf());hljs.registerLanguage("sql",requireSql());hljs.registerLanguage("stan",requireStan());hljs.registerLanguage("stata",requireStata());hljs.registerLanguage("step21",requireStep21());hljs.registerLanguage("stylus",requireStylus());hljs.registerLanguage("subunit",requireSubunit());hljs.registerLanguage("swift",requireSwift());hljs.registerLanguage("taggerscript",requireTaggerscript());hljs.registerLanguage("yaml",requireYaml());hljs.registerLanguage("tap",requireTap());hljs.registerLanguage("tcl",requireTcl());hljs.registerLanguage("thrift",requireThrift());hljs.registerLanguage("tp",requireTp());hljs.registerLanguage("twig",requireTwig());hljs.registerLanguage("typescript",requireTypescript());hljs.registerLanguage("vala",requireVala());hljs.registerLanguage("vbnet",requireVbnet());hljs.registerLanguage("vbscript",requireVbscript());hljs.registerLanguage("vbscript-html",requireVbscriptHtml());hljs.registerLanguage("verilog",requireVerilog());hljs.registerLanguage("vhdl",requireVhdl());hljs.registerLanguage("vim",requireVim());hljs.registerLanguage("wasm",requireWasm());hljs.registerLanguage("wren",requireWren());hljs.registerLanguage("x86asm",requireX86asm());hljs.registerLanguage("xl",requireXl());hljs.registerLanguage("xquery",requireXquery());hljs.registerLanguage("zephir",requireZephir());hljs.HighlightJS=hljs;hljs.default=hljs;var lib$2=hljs;const HighlightJS=getDefaultExportFromCjs(lib$2);var utils$1={};const Aacute="Á",aacute="á",Abreve="Ă",abreve="ă",ac="∾",acd="∿",acE="∾̳",Acirc="Â",acirc="â",acute="´",Acy="А",acy="а",AElig="Æ",aelig="æ",af="⁡",Afr="𝔄",afr="𝔞",Agrave="À",agrave="à",alefsym="ℵ",aleph="ℵ",Alpha="Α",alpha="α",Amacr="Ā",amacr="ā",amalg="⨿",amp="&",AMP="&",andand="⩕",And="⩓",and="∧",andd="⩜",andslope="⩘",andv="⩚",ang="∠",ange="⦤",angle="∠",angmsdaa="⦨",angmsdab="⦩",angmsdac="⦪",angmsdad="⦫",angmsdae="⦬",angmsdaf="⦭",angmsdag="⦮",angmsdah="⦯",angmsd="∡",angrt="∟",angrtvb="⊾",angrtvbd="⦝",angsph="∢",angst="Å",angzarr="⍼",Aogon="Ą",aogon="ą",Aopf="𝔸",aopf="𝕒",apacir="⩯",ap="≈",apE="⩰",ape="≊",apid="≋",apos="'",ApplyFunction="⁡",approx="≈",approxeq="≊",Aring="Å",aring="å",Ascr="𝒜",ascr="𝒶",Assign="≔",ast="*",asymp="≈",asympeq="≍",Atilde="Ã",atilde="ã",Auml="Ä",auml="ä",awconint="∳",awint="⨑",backcong="≌",backepsilon="϶",backprime="‵",backsim="∽",backsimeq="⋍",Backslash="∖",Barv="⫧",barvee="⊽",barwed="⌅",Barwed="⌆",barwedge="⌅",bbrk="⎵",bbrktbrk="⎶",bcong="≌",Bcy="Б",bcy="б",bdquo="„",becaus="∵",because="∵",Because="∵",bemptyv="⦰",bepsi="϶",bernou="ℬ",Bernoullis="ℬ",Beta="Β",beta="β",beth="ℶ",between="≬",Bfr="𝔅",bfr="𝔟",bigcap="⋂",bigcirc="◯",bigcup="⋃",bigodot="⨀",bigoplus="⨁",bigotimes="⨂",bigsqcup="⨆",bigstar="★",bigtriangledown="▽",bigtriangleup="△",biguplus="⨄",bigvee="⋁",bigwedge="⋀",bkarow="⤍",blacklozenge="⧫",blacksquare="▪",blacktriangle="▴",blacktriangledown="▾",blacktriangleleft="◂",blacktriangleright="▸",blank="␣",blk12="▒",blk14="░",blk34="▓",block$1="█",bne="=⃥",bnequiv="≡⃥",bNot="⫭",bnot="⌐",Bopf="𝔹",bopf="𝕓",bot="⊥",bottom="⊥",bowtie="⋈",boxbox="⧉",boxdl="┐",boxdL="╕",boxDl="╖",boxDL="╗",boxdr="┌",boxdR="╒",boxDr="╓",boxDR="╔",boxh="─",boxH="═",boxhd="┬",boxHd="╤",boxhD="╥",boxHD="╦",boxhu="┴",boxHu="╧",boxhU="╨",boxHU="╩",boxminus="⊟",boxplus="⊞",boxtimes="⊠",boxul="┘",boxuL="╛",boxUl="╜",boxUL="╝",boxur="└",boxuR="╘",boxUr="╙",boxUR="╚",boxv="│",boxV="║",boxvh="┼",boxvH="╪",boxVh="╫",boxVH="╬",boxvl="┤",boxvL="╡",boxVl="╢",boxVL="╣",boxvr="├",boxvR="╞",boxVr="╟",boxVR="╠",bprime="‵",breve="˘",Breve="˘",brvbar="¦",bscr="𝒷",Bscr="ℬ",bsemi="⁏",bsim="∽",bsime="⋍",bsolb="⧅",bsol="\\",bsolhsub="⟈",bull="•",bullet="•",bump="≎",bumpE="⪮",bumpe="≏",Bumpeq="≎",bumpeq="≏",Cacute="Ć",cacute="ć",capand="⩄",capbrcup="⩉",capcap="⩋",cap="∩",Cap="⋒",capcup="⩇",capdot="⩀",CapitalDifferentialD="ⅅ",caps="∩︀",caret="⁁",caron="ˇ",Cayleys="ℭ",ccaps="⩍",Ccaron="Č",ccaron="č",Ccedil="Ç",ccedil="ç",Ccirc="Ĉ",ccirc="ĉ",Cconint="∰",ccups="⩌",ccupssm="⩐",Cdot="Ċ",cdot="ċ",cedil="¸",Cedilla="¸",cemptyv="⦲",cent="¢",centerdot="·",CenterDot="·",cfr="𝔠",Cfr="ℭ",CHcy="Ч",chcy="ч",check$1="✓",checkmark="✓",Chi="Χ",chi="χ",circ="ˆ",circeq="≗",circlearrowleft="↺",circlearrowright="↻",circledast="⊛",circledcirc="⊚",circleddash="⊝",CircleDot="⊙",circledR="®",circledS="Ⓢ",CircleMinus="⊖",CirclePlus="⊕",CircleTimes="⊗",cir="○",cirE="⧃",cire="≗",cirfnint="⨐",cirmid="⫯",cirscir="⧂",ClockwiseContourIntegral="∲",CloseCurlyDoubleQuote="”",CloseCurlyQuote="’",clubs="♣",clubsuit="♣",colon=":",Colon="∷",Colone="⩴",colone="≔",coloneq="≔",comma=",",commat="@",comp="∁",compfn="∘",complement="∁",complexes="ℂ",cong="≅",congdot="⩭",Congruent="≡",conint="∮",Conint="∯",ContourIntegral="∮",copf="𝕔",Copf="ℂ",coprod="∐",Coproduct="∐",copy="©",COPY="©",copysr="℗",CounterClockwiseContourIntegral="∳",crarr="↵",cross="✗",Cross="⨯",Cscr="𝒞",cscr="𝒸",csub="⫏",csube="⫑",csup="⫐",csupe="⫒",ctdot="⋯",cudarrl="⤸",cudarrr="⤵",cuepr="⋞",cuesc="⋟",cularr="↶",cularrp="⤽",cupbrcap="⩈",cupcap="⩆",CupCap="≍",cup="∪",Cup="⋓",cupcup="⩊",cupdot="⊍",cupor="⩅",cups="∪︀",curarr="↷",curarrm="⤼",curlyeqprec="⋞",curlyeqsucc="⋟",curlyvee="⋎",curlywedge="⋏",curren="¤",curvearrowleft="↶",curvearrowright="↷",cuvee="⋎",cuwed="⋏",cwconint="∲",cwint="∱",cylcty="⌭",dagger="†",Dagger="‡",daleth="ℸ",darr="↓",Darr="↡",dArr="⇓",dash="‐",Dashv="⫤",dashv="⊣",dbkarow="⤏",dblac="˝",Dcaron="Ď",dcaron="ď",Dcy="Д",dcy="д",ddagger="‡",ddarr="⇊",DD="ⅅ",dd="ⅆ",DDotrahd="⤑",ddotseq="⩷",deg="°",Del="∇",Delta="Δ",delta="δ",demptyv="⦱",dfisht="⥿",Dfr="𝔇",dfr="𝔡",dHar="⥥",dharl="⇃",dharr="⇂",DiacriticalAcute="´",DiacriticalDot="˙",DiacriticalDoubleAcute="˝",DiacriticalGrave="`",DiacriticalTilde="˜",diam="⋄",diamond="⋄",Diamond="⋄",diamondsuit="♦",diams="♦",die="¨",DifferentialD="ⅆ",digamma="ϝ",disin="⋲",div="÷",divide="÷",divideontimes="⋇",divonx="⋇",DJcy="Ђ",djcy="ђ",dlcorn="⌞",dlcrop="⌍",dollar="$",Dopf="𝔻",dopf="𝕕",Dot="¨",dot="˙",DotDot="⃜",doteq="≐",doteqdot="≑",DotEqual="≐",dotminus="∸",dotplus="∔",dotsquare="⊡",doublebarwedge="⌆",DoubleContourIntegral="∯",DoubleDot="¨",DoubleDownArrow="⇓",DoubleLeftArrow="⇐",DoubleLeftRightArrow="⇔",DoubleLeftTee="⫤",DoubleLongLeftArrow="⟸",DoubleLongLeftRightArrow="⟺",DoubleLongRightArrow="⟹",DoubleRightArrow="⇒",DoubleRightTee="⊨",DoubleUpArrow="⇑",DoubleUpDownArrow="⇕",DoubleVerticalBar="∥",DownArrowBar="⤓",downarrow="↓",DownArrow="↓",Downarrow="⇓",DownArrowUpArrow="⇵",DownBreve="̑",downdownarrows="⇊",downharpoonleft="⇃",downharpoonright="⇂",DownLeftRightVector="⥐",DownLeftTeeVector="⥞",DownLeftVectorBar="⥖",DownLeftVector="↽",DownRightTeeVector="⥟",DownRightVectorBar="⥗",DownRightVector="⇁",DownTeeArrow="↧",DownTee="⊤",drbkarow="⤐",drcorn="⌟",drcrop="⌌",Dscr="𝒟",dscr="𝒹",DScy="Ѕ",dscy="ѕ",dsol="⧶",Dstrok="Đ",dstrok="đ",dtdot="⋱",dtri="▿",dtrif="▾",duarr="⇵",duhar="⥯",dwangle="⦦",DZcy="Џ",dzcy="џ",dzigrarr="⟿",Eacute="É",eacute="é",easter="⩮",Ecaron="Ě",ecaron="ě",Ecirc="Ê",ecirc="ê",ecir="≖",ecolon="≕",Ecy="Э",ecy="э",eDDot="⩷",Edot="Ė",edot="ė",eDot="≑",ee="ⅇ",efDot="≒",Efr="𝔈",efr="𝔢",eg="⪚",Egrave="È",egrave="è",egs="⪖",egsdot="⪘",el="⪙",Element="∈",elinters="⏧",ell="ℓ",els="⪕",elsdot="⪗",Emacr="Ē",emacr="ē",empty="∅",emptyset="∅",EmptySmallSquare="◻",emptyv="∅",EmptyVerySmallSquare="▫",emsp13=" ",emsp14=" ",emsp=" ",ENG="Ŋ",eng="ŋ",ensp=" ",Eogon="Ę",eogon="ę",Eopf="𝔼",eopf="𝕖",epar="⋕",eparsl="⧣",eplus="⩱",epsi="ε",Epsilon="Ε",epsilon="ε",epsiv="ϵ",eqcirc="≖",eqcolon="≕",eqsim="≂",eqslantgtr="⪖",eqslantless="⪕",Equal="⩵",equals="=",EqualTilde="≂",equest="≟",Equilibrium="⇌",equiv="≡",equivDD="⩸",eqvparsl="⧥",erarr="⥱",erDot="≓",escr="ℯ",Escr="ℰ",esdot="≐",Esim="⩳",esim="≂",Eta="Η",eta="η",ETH="Ð",eth="ð",Euml="Ë",euml="ë",euro="€",excl="!",exist="∃",Exists="∃",expectation="ℰ",exponentiale="ⅇ",ExponentialE="ⅇ",fallingdotseq="≒",Fcy="Ф",fcy="ф",female="♀",ffilig="ffi",fflig="ff",ffllig="ffl",Ffr="𝔉",ffr="𝔣",filig="fi",FilledSmallSquare="◼",FilledVerySmallSquare="▪",fjlig="fj",flat="♭",fllig="fl",fltns="▱",fnof="ƒ",Fopf="𝔽",fopf="𝕗",forall="∀",ForAll="∀",fork="⋔",forkv="⫙",Fouriertrf="ℱ",fpartint="⨍",frac12="½",frac13="⅓",frac14="¼",frac15="⅕",frac16="⅙",frac18="⅛",frac23="⅔",frac25="⅖",frac34="¾",frac35="⅗",frac38="⅜",frac45="⅘",frac56="⅚",frac58="⅝",frac78="⅞",frasl="⁄",frown="⌢",fscr="𝒻",Fscr="ℱ",gacute="ǵ",Gamma="Γ",gamma="γ",Gammad="Ϝ",gammad="ϝ",gap="⪆",Gbreve="Ğ",gbreve="ğ",Gcedil="Ģ",Gcirc="Ĝ",gcirc="ĝ",Gcy="Г",gcy="г",Gdot="Ġ",gdot="ġ",ge="≥",gE="≧",gEl="⪌",gel="⋛",geq="≥",geqq="≧",geqslant="⩾",gescc="⪩",ges="⩾",gesdot="⪀",gesdoto="⪂",gesdotol="⪄",gesl="⋛︀",gesles="⪔",Gfr="𝔊",gfr="𝔤",gg="≫",Gg="⋙",ggg="⋙",gimel="ℷ",GJcy="Ѓ",gjcy="ѓ",gla="⪥",gl="≷",glE="⪒",glj="⪤",gnap="⪊",gnapprox="⪊",gne="⪈",gnE="≩",gneq="⪈",gneqq="≩",gnsim="⋧",Gopf="𝔾",gopf="𝕘",grave="`",GreaterEqual="≥",GreaterEqualLess="⋛",GreaterFullEqual="≧",GreaterGreater="⪢",GreaterLess="≷",GreaterSlantEqual="⩾",GreaterTilde="≳",Gscr="𝒢",gscr="ℊ",gsim="≳",gsime="⪎",gsiml="⪐",gtcc="⪧",gtcir="⩺",gt=">",GT$1=">",Gt="≫",gtdot="⋗",gtlPar="⦕",gtquest="⩼",gtrapprox="⪆",gtrarr="⥸",gtrdot="⋗",gtreqless="⋛",gtreqqless="⪌",gtrless="≷",gtrsim="≳",gvertneqq="≩︀",gvnE="≩︀",Hacek="ˇ",hairsp=" ",half="½",hamilt="ℋ",HARDcy="Ъ",hardcy="ъ",harrcir="⥈",harr="↔",hArr="⇔",harrw="↭",Hat="^",hbar="ℏ",Hcirc="Ĥ",hcirc="ĥ",hearts="♥",heartsuit="♥",hellip="…",hercon="⊹",hfr="𝔥",Hfr="ℌ",HilbertSpace="ℋ",hksearow="⤥",hkswarow="⤦",hoarr="⇿",homtht="∻",hookleftarrow="↩",hookrightarrow="↪",hopf="𝕙",Hopf="ℍ",horbar="―",HorizontalLine="─",hscr="𝒽",Hscr="ℋ",hslash="ℏ",Hstrok="Ħ",hstrok="ħ",HumpDownHump="≎",HumpEqual="≏",hybull="⁃",hyphen="‐",Iacute="Í",iacute="í",ic="⁣",Icirc="Î",icirc="î",Icy="И",icy="и",Idot="İ",IEcy="Е",iecy="е",iexcl="¡",iff="⇔",ifr="𝔦",Ifr="ℑ",Igrave="Ì",igrave="ì",ii="ⅈ",iiiint="⨌",iiint="∭",iinfin="⧜",iiota="℩",IJlig="IJ",ijlig="ij",Imacr="Ī",imacr="ī",image$1="ℑ",ImaginaryI="ⅈ",imagline="ℐ",imagpart="ℑ",imath="ı",Im="ℑ",imof="⊷",imped="Ƶ",Implies="⇒",incare="℅",infin="∞",infintie="⧝",inodot="ı",intcal="⊺",int="∫",Int="∬",integers="ℤ",Integral="∫",intercal="⊺",Intersection="⋂",intlarhk="⨗",intprod="⨼",InvisibleComma="⁣",InvisibleTimes="⁢",IOcy="Ё",iocy="ё",Iogon="Į",iogon="į",Iopf="𝕀",iopf="𝕚",Iota="Ι",iota="ι",iprod="⨼",iquest="¿",iscr="𝒾",Iscr="ℐ",isin="∈",isindot="⋵",isinE="⋹",isins="⋴",isinsv="⋳",isinv="∈",it="⁢",Itilde="Ĩ",itilde="ĩ",Iukcy="І",iukcy="і",Iuml="Ï",iuml="ï",Jcirc="Ĵ",jcirc="ĵ",Jcy="Й",jcy="й",Jfr="𝔍",jfr="𝔧",jmath="ȷ",Jopf="𝕁",jopf="𝕛",Jscr="𝒥",jscr="𝒿",Jsercy="Ј",jsercy="ј",Jukcy="Є",jukcy="є",Kappa="Κ",kappa="κ",kappav="ϰ",Kcedil="Ķ",kcedil="ķ",Kcy="К",kcy="к",Kfr="𝔎",kfr="𝔨",kgreen="ĸ",KHcy="Х",khcy="х",KJcy="Ќ",kjcy="ќ",Kopf="𝕂",kopf="𝕜",Kscr="𝒦",kscr="𝓀",lAarr="⇚",Lacute="Ĺ",lacute="ĺ",laemptyv="⦴",lagran="ℒ",Lambda="Λ",lambda="λ",lang="⟨",Lang="⟪",langd="⦑",langle="⟨",lap="⪅",Laplacetrf="ℒ",laquo="«",larrb="⇤",larrbfs="⤟",larr="←",Larr="↞",lArr="⇐",larrfs="⤝",larrhk="↩",larrlp="↫",larrpl="⤹",larrsim="⥳",larrtl="↢",latail="⤙",lAtail="⤛",lat="⪫",late="⪭",lates="⪭︀",lbarr="⤌",lBarr="⤎",lbbrk="❲",lbrace="{",lbrack="[",lbrke="⦋",lbrksld="⦏",lbrkslu="⦍",Lcaron="Ľ",lcaron="ľ",Lcedil="Ļ",lcedil="ļ",lceil="⌈",lcub="{",Lcy="Л",lcy="л",ldca="⤶",ldquo="“",ldquor="„",ldrdhar="⥧",ldrushar="⥋",ldsh="↲",le="≤",lE="≦",LeftAngleBracket="⟨",LeftArrowBar="⇤",leftarrow="←",LeftArrow="←",Leftarrow="⇐",LeftArrowRightArrow="⇆",leftarrowtail="↢",LeftCeiling="⌈",LeftDoubleBracket="⟦",LeftDownTeeVector="⥡",LeftDownVectorBar="⥙",LeftDownVector="⇃",LeftFloor="⌊",leftharpoondown="↽",leftharpoonup="↼",leftleftarrows="⇇",leftrightarrow="↔",LeftRightArrow="↔",Leftrightarrow="⇔",leftrightarrows="⇆",leftrightharpoons="⇋",leftrightsquigarrow="↭",LeftRightVector="⥎",LeftTeeArrow="↤",LeftTee="⊣",LeftTeeVector="⥚",leftthreetimes="⋋",LeftTriangleBar="⧏",LeftTriangle="⊲",LeftTriangleEqual="⊴",LeftUpDownVector="⥑",LeftUpTeeVector="⥠",LeftUpVectorBar="⥘",LeftUpVector="↿",LeftVectorBar="⥒",LeftVector="↼",lEg="⪋",leg="⋚",leq="≤",leqq="≦",leqslant="⩽",lescc="⪨",les="⩽",lesdot="⩿",lesdoto="⪁",lesdotor="⪃",lesg="⋚︀",lesges="⪓",lessapprox="⪅",lessdot="⋖",lesseqgtr="⋚",lesseqqgtr="⪋",LessEqualGreater="⋚",LessFullEqual="≦",LessGreater="≶",lessgtr="≶",LessLess="⪡",lesssim="≲",LessSlantEqual="⩽",LessTilde="≲",lfisht="⥼",lfloor="⌊",Lfr="𝔏",lfr="𝔩",lg="≶",lgE="⪑",lHar="⥢",lhard="↽",lharu="↼",lharul="⥪",lhblk="▄",LJcy="Љ",ljcy="љ",llarr="⇇",ll="≪",Ll="⋘",llcorner="⌞",Lleftarrow="⇚",llhard="⥫",lltri="◺",Lmidot="Ŀ",lmidot="ŀ",lmoustache="⎰",lmoust="⎰",lnap="⪉",lnapprox="⪉",lne="⪇",lnE="≨",lneq="⪇",lneqq="≨",lnsim="⋦",loang="⟬",loarr="⇽",lobrk="⟦",longleftarrow="⟵",LongLeftArrow="⟵",Longleftarrow="⟸",longleftrightarrow="⟷",LongLeftRightArrow="⟷",Longleftrightarrow="⟺",longmapsto="⟼",longrightarrow="⟶",LongRightArrow="⟶",Longrightarrow="⟹",looparrowleft="↫",looparrowright="↬",lopar="⦅",Lopf="𝕃",lopf="𝕝",loplus="⨭",lotimes="⨴",lowast="∗",lowbar="_",LowerLeftArrow="↙",LowerRightArrow="↘",loz="◊",lozenge="◊",lozf="⧫",lpar="(",lparlt="⦓",lrarr="⇆",lrcorner="⌟",lrhar="⇋",lrhard="⥭",lrm="‎",lrtri="⊿",lsaquo="‹",lscr="𝓁",Lscr="ℒ",lsh="↰",Lsh="↰",lsim="≲",lsime="⪍",lsimg="⪏",lsqb="[",lsquo="‘",lsquor="‚",Lstrok="Ł",lstrok="ł",ltcc="⪦",ltcir="⩹",lt="<",LT$1="<",Lt="≪",ltdot="⋖",lthree="⋋",ltimes="⋉",ltlarr="⥶",ltquest="⩻",ltri="◃",ltrie="⊴",ltrif="◂",ltrPar="⦖",lurdshar="⥊",luruhar="⥦",lvertneqq="≨︀",lvnE="≨︀",macr="¯",male="♂",malt="✠",maltese="✠",map$1="↦",mapsto="↦",mapstodown="↧",mapstoleft="↤",mapstoup="↥",marker="▮",mcomma="⨩",Mcy="М",mcy="м",mdash="—",mDDot="∺",measuredangle="∡",MediumSpace=" ",Mellintrf="ℳ",Mfr="𝔐",mfr="𝔪",mho="℧",micro="µ",midast="*",midcir="⫰",mid="∣",middot="·",minusb="⊟",minus="−",minusd="∸",minusdu="⨪",MinusPlus="∓",mlcp="⫛",mldr="…",mnplus="∓",models="⊧",Mopf="𝕄",mopf="𝕞",mp="∓",mscr="𝓂",Mscr="ℳ",mstpos="∾",Mu="Μ",mu="μ",multimap="⊸",mumap="⊸",nabla="∇",Nacute="Ń",nacute="ń",nang="∠⃒",nap="≉",napE="⩰̸",napid="≋̸",napos="ʼn",napprox="≉",natural="♮",naturals="ℕ",natur="♮",nbsp=" ",nbump="≎̸",nbumpe="≏̸",ncap="⩃",Ncaron="Ň",ncaron="ň",Ncedil="Ņ",ncedil="ņ",ncong="≇",ncongdot="⩭̸",ncup="⩂",Ncy="Н",ncy="н",ndash="–",nearhk="⤤",nearr="↗",neArr="⇗",nearrow="↗",ne="≠",nedot="≐̸",NegativeMediumSpace="​",NegativeThickSpace="​",NegativeThinSpace="​",NegativeVeryThinSpace="​",nequiv="≢",nesear="⤨",nesim="≂̸",NestedGreaterGreater="≫",NestedLessLess="≪",NewLine=` `,nexist="∄",nexists="∄",Nfr="𝔑",nfr="𝔫",ngE="≧̸",nge="≱",ngeq="≱",ngeqq="≧̸",ngeqslant="⩾̸",nges="⩾̸",nGg="⋙̸",ngsim="≵",nGt="≫⃒",ngt="≯",ngtr="≯",nGtv="≫̸",nharr="↮",nhArr="⇎",nhpar="⫲",ni="∋",nis="⋼",nisd="⋺",niv="∋",NJcy="Њ",njcy="њ",nlarr="↚",nlArr="⇍",nldr="‥",nlE="≦̸",nle="≰",nleftarrow="↚",nLeftarrow="⇍",nleftrightarrow="↮",nLeftrightarrow="⇎",nleq="≰",nleqq="≦̸",nleqslant="⩽̸",nles="⩽̸",nless="≮",nLl="⋘̸",nlsim="≴",nLt="≪⃒",nlt="≮",nltri="⋪",nltrie="⋬",nLtv="≪̸",nmid="∤",NoBreak="⁠",NonBreakingSpace=" ",nopf="𝕟",Nopf="ℕ",Not="⫬",not="¬",NotCongruent="≢",NotCupCap="≭",NotDoubleVerticalBar="∦",NotElement="∉",NotEqual="≠",NotEqualTilde="≂̸",NotExists="∄",NotGreater="≯",NotGreaterEqual="≱",NotGreaterFullEqual="≧̸",NotGreaterGreater="≫̸",NotGreaterLess="≹",NotGreaterSlantEqual="⩾̸",NotGreaterTilde="≵",NotHumpDownHump="≎̸",NotHumpEqual="≏̸",notin="∉",notindot="⋵̸",notinE="⋹̸",notinva="∉",notinvb="⋷",notinvc="⋶",NotLeftTriangleBar="⧏̸",NotLeftTriangle="⋪",NotLeftTriangleEqual="⋬",NotLess="≮",NotLessEqual="≰",NotLessGreater="≸",NotLessLess="≪̸",NotLessSlantEqual="⩽̸",NotLessTilde="≴",NotNestedGreaterGreater="⪢̸",NotNestedLessLess="⪡̸",notni="∌",notniva="∌",notnivb="⋾",notnivc="⋽",NotPrecedes="⊀",NotPrecedesEqual="⪯̸",NotPrecedesSlantEqual="⋠",NotReverseElement="∌",NotRightTriangleBar="⧐̸",NotRightTriangle="⋫",NotRightTriangleEqual="⋭",NotSquareSubset="⊏̸",NotSquareSubsetEqual="⋢",NotSquareSuperset="⊐̸",NotSquareSupersetEqual="⋣",NotSubset="⊂⃒",NotSubsetEqual="⊈",NotSucceeds="⊁",NotSucceedsEqual="⪰̸",NotSucceedsSlantEqual="⋡",NotSucceedsTilde="≿̸",NotSuperset="⊃⃒",NotSupersetEqual="⊉",NotTilde="≁",NotTildeEqual="≄",NotTildeFullEqual="≇",NotTildeTilde="≉",NotVerticalBar="∤",nparallel="∦",npar="∦",nparsl="⫽⃥",npart="∂̸",npolint="⨔",npr="⊀",nprcue="⋠",nprec="⊀",npreceq="⪯̸",npre="⪯̸",nrarrc="⤳̸",nrarr="↛",nrArr="⇏",nrarrw="↝̸",nrightarrow="↛",nRightarrow="⇏",nrtri="⋫",nrtrie="⋭",nsc="⊁",nsccue="⋡",nsce="⪰̸",Nscr="𝒩",nscr="𝓃",nshortmid="∤",nshortparallel="∦",nsim="≁",nsime="≄",nsimeq="≄",nsmid="∤",nspar="∦",nsqsube="⋢",nsqsupe="⋣",nsub="⊄",nsubE="⫅̸",nsube="⊈",nsubset="⊂⃒",nsubseteq="⊈",nsubseteqq="⫅̸",nsucc="⊁",nsucceq="⪰̸",nsup="⊅",nsupE="⫆̸",nsupe="⊉",nsupset="⊃⃒",nsupseteq="⊉",nsupseteqq="⫆̸",ntgl="≹",Ntilde="Ñ",ntilde="ñ",ntlg="≸",ntriangleleft="⋪",ntrianglelefteq="⋬",ntriangleright="⋫",ntrianglerighteq="⋭",Nu="Ν",nu="ν",num="#",numero="№",numsp=" ",nvap="≍⃒",nvdash="⊬",nvDash="⊭",nVdash="⊮",nVDash="⊯",nvge="≥⃒",nvgt=">⃒",nvHarr="⤄",nvinfin="⧞",nvlArr="⤂",nvle="≤⃒",nvlt="<⃒",nvltrie="⊴⃒",nvrArr="⤃",nvrtrie="⊵⃒",nvsim="∼⃒",nwarhk="⤣",nwarr="↖",nwArr="⇖",nwarrow="↖",nwnear="⤧",Oacute="Ó",oacute="ó",oast="⊛",Ocirc="Ô",ocirc="ô",ocir="⊚",Ocy="О",ocy="о",odash="⊝",Odblac="Ő",odblac="ő",odiv="⨸",odot="⊙",odsold="⦼",OElig="Œ",oelig="œ",ofcir="⦿",Ofr="𝔒",ofr="𝔬",ogon="˛",Ograve="Ò",ograve="ò",ogt="⧁",ohbar="⦵",ohm="Ω",oint="∮",olarr="↺",olcir="⦾",olcross="⦻",oline="‾",olt="⧀",Omacr="Ō",omacr="ō",Omega="Ω",omega="ω",Omicron="Ο",omicron="ο",omid="⦶",ominus="⊖",Oopf="𝕆",oopf="𝕠",opar="⦷",OpenCurlyDoubleQuote="“",OpenCurlyQuote="‘",operp="⦹",oplus="⊕",orarr="↻",Or="⩔",or="∨",ord="⩝",order="ℴ",orderof="ℴ",ordf="ª",ordm="º",origof="⊶",oror="⩖",orslope="⩗",orv="⩛",oS="Ⓢ",Oscr="𝒪",oscr="ℴ",Oslash="Ø",oslash="ø",osol="⊘",Otilde="Õ",otilde="õ",otimesas="⨶",Otimes="⨷",otimes="⊗",Ouml="Ö",ouml="ö",ovbar="⌽",OverBar="‾",OverBrace="⏞",OverBracket="⎴",OverParenthesis="⏜",para="¶",parallel="∥",par="∥",parsim="⫳",parsl="⫽",part="∂",PartialD="∂",Pcy="П",pcy="п",percnt="%",period=".",permil="‰",perp="⊥",pertenk="‱",Pfr="𝔓",pfr="𝔭",Phi="Φ",phi="φ",phiv="ϕ",phmmat="ℳ",phone="☎",Pi="Π",pi="π",pitchfork="⋔",piv="ϖ",planck="ℏ",planckh="ℎ",plankv="ℏ",plusacir="⨣",plusb="⊞",pluscir="⨢",plus="+",plusdo="∔",plusdu="⨥",pluse="⩲",PlusMinus="±",plusmn="±",plussim="⨦",plustwo="⨧",pm="±",Poincareplane="ℌ",pointint="⨕",popf="𝕡",Popf="ℙ",pound="£",prap="⪷",Pr="⪻",pr="≺",prcue="≼",precapprox="⪷",prec="≺",preccurlyeq="≼",Precedes="≺",PrecedesEqual="⪯",PrecedesSlantEqual="≼",PrecedesTilde="≾",preceq="⪯",precnapprox="⪹",precneqq="⪵",precnsim="⋨",pre="⪯",prE="⪳",precsim="≾",prime="′",Prime="″",primes="ℙ",prnap="⪹",prnE="⪵",prnsim="⋨",prod="∏",Product="∏",profalar="⌮",profline="⌒",profsurf="⌓",prop="∝",Proportional="∝",Proportion="∷",propto="∝",prsim="≾",prurel="⊰",Pscr="𝒫",pscr="𝓅",Psi="Ψ",psi="ψ",puncsp=" ",Qfr="𝔔",qfr="𝔮",qint="⨌",qopf="𝕢",Qopf="ℚ",qprime="⁗",Qscr="𝒬",qscr="𝓆",quaternions="ℍ",quatint="⨖",quest="?",questeq="≟",quot='"',QUOT='"',rAarr="⇛",race="∽̱",Racute="Ŕ",racute="ŕ",radic="√",raemptyv="⦳",rang="⟩",Rang="⟫",rangd="⦒",range="⦥",rangle="⟩",raquo="»",rarrap="⥵",rarrb="⇥",rarrbfs="⤠",rarrc="⤳",rarr="→",Rarr="↠",rArr="⇒",rarrfs="⤞",rarrhk="↪",rarrlp="↬",rarrpl="⥅",rarrsim="⥴",Rarrtl="⤖",rarrtl="↣",rarrw="↝",ratail="⤚",rAtail="⤜",ratio="∶",rationals="ℚ",rbarr="⤍",rBarr="⤏",RBarr="⤐",rbbrk="❳",rbrace="}",rbrack="]",rbrke="⦌",rbrksld="⦎",rbrkslu="⦐",Rcaron="Ř",rcaron="ř",Rcedil="Ŗ",rcedil="ŗ",rceil="⌉",rcub="}",Rcy="Р",rcy="р",rdca="⤷",rdldhar="⥩",rdquo="”",rdquor="”",rdsh="↳",real="ℜ",realine="ℛ",realpart="ℜ",reals="ℝ",Re="ℜ",rect="▭",reg="®",REG="®",ReverseElement="∋",ReverseEquilibrium="⇋",ReverseUpEquilibrium="⥯",rfisht="⥽",rfloor="⌋",rfr="𝔯",Rfr="ℜ",rHar="⥤",rhard="⇁",rharu="⇀",rharul="⥬",Rho="Ρ",rho="ρ",rhov="ϱ",RightAngleBracket="⟩",RightArrowBar="⇥",rightarrow="→",RightArrow="→",Rightarrow="⇒",RightArrowLeftArrow="⇄",rightarrowtail="↣",RightCeiling="⌉",RightDoubleBracket="⟧",RightDownTeeVector="⥝",RightDownVectorBar="⥕",RightDownVector="⇂",RightFloor="⌋",rightharpoondown="⇁",rightharpoonup="⇀",rightleftarrows="⇄",rightleftharpoons="⇌",rightrightarrows="⇉",rightsquigarrow="↝",RightTeeArrow="↦",RightTee="⊢",RightTeeVector="⥛",rightthreetimes="⋌",RightTriangleBar="⧐",RightTriangle="⊳",RightTriangleEqual="⊵",RightUpDownVector="⥏",RightUpTeeVector="⥜",RightUpVectorBar="⥔",RightUpVector="↾",RightVectorBar="⥓",RightVector="⇀",ring="˚",risingdotseq="≓",rlarr="⇄",rlhar="⇌",rlm="‏",rmoustache="⎱",rmoust="⎱",rnmid="⫮",roang="⟭",roarr="⇾",robrk="⟧",ropar="⦆",ropf="𝕣",Ropf="ℝ",roplus="⨮",rotimes="⨵",RoundImplies="⥰",rpar=")",rpargt="⦔",rppolint="⨒",rrarr="⇉",Rrightarrow="⇛",rsaquo="›",rscr="𝓇",Rscr="ℛ",rsh="↱",Rsh="↱",rsqb="]",rsquo="’",rsquor="’",rthree="⋌",rtimes="⋊",rtri="▹",rtrie="⊵",rtrif="▸",rtriltri="⧎",RuleDelayed="⧴",ruluhar="⥨",rx="℞",Sacute="Ś",sacute="ś",sbquo="‚",scap="⪸",Scaron="Š",scaron="š",Sc="⪼",sc="≻",sccue="≽",sce="⪰",scE="⪴",Scedil="Ş",scedil="ş",Scirc="Ŝ",scirc="ŝ",scnap="⪺",scnE="⪶",scnsim="⋩",scpolint="⨓",scsim="≿",Scy="С",scy="с",sdotb="⊡",sdot="⋅",sdote="⩦",searhk="⤥",searr="↘",seArr="⇘",searrow="↘",sect="§",semi=";",seswar="⤩",setminus="∖",setmn="∖",sext="✶",Sfr="𝔖",sfr="𝔰",sfrown="⌢",sharp="♯",SHCHcy="Щ",shchcy="щ",SHcy="Ш",shcy="ш",ShortDownArrow="↓",ShortLeftArrow="←",shortmid="∣",shortparallel="∥",ShortRightArrow="→",ShortUpArrow="↑",shy="­",Sigma="Σ",sigma="σ",sigmaf="ς",sigmav="ς",sim="∼",simdot="⩪",sime="≃",simeq="≃",simg="⪞",simgE="⪠",siml="⪝",simlE="⪟",simne="≆",simplus="⨤",simrarr="⥲",slarr="←",SmallCircle="∘",smallsetminus="∖",smashp="⨳",smeparsl="⧤",smid="∣",smile="⌣",smt="⪪",smte="⪬",smtes="⪬︀",SOFTcy="Ь",softcy="ь",solbar="⌿",solb="⧄",sol="/",Sopf="𝕊",sopf="𝕤",spades="♠",spadesuit="♠",spar="∥",sqcap="⊓",sqcaps="⊓︀",sqcup="⊔",sqcups="⊔︀",Sqrt="√",sqsub="⊏",sqsube="⊑",sqsubset="⊏",sqsubseteq="⊑",sqsup="⊐",sqsupe="⊒",sqsupset="⊐",sqsupseteq="⊒",square="□",Square="□",SquareIntersection="⊓",SquareSubset="⊏",SquareSubsetEqual="⊑",SquareSuperset="⊐",SquareSupersetEqual="⊒",SquareUnion="⊔",squarf="▪",squ="□",squf="▪",srarr="→",Sscr="𝒮",sscr="𝓈",ssetmn="∖",ssmile="⌣",sstarf="⋆",Star="⋆",star="☆",starf="★",straightepsilon="ϵ",straightphi="ϕ",strns="¯",sub="⊂",Sub="⋐",subdot="⪽",subE="⫅",sube="⊆",subedot="⫃",submult="⫁",subnE="⫋",subne="⊊",subplus="⪿",subrarr="⥹",subset="⊂",Subset="⋐",subseteq="⊆",subseteqq="⫅",SubsetEqual="⊆",subsetneq="⊊",subsetneqq="⫋",subsim="⫇",subsub="⫕",subsup="⫓",succapprox="⪸",succ="≻",succcurlyeq="≽",Succeeds="≻",SucceedsEqual="⪰",SucceedsSlantEqual="≽",SucceedsTilde="≿",succeq="⪰",succnapprox="⪺",succneqq="⪶",succnsim="⋩",succsim="≿",SuchThat="∋",sum="∑",Sum="∑",sung="♪",sup1="¹",sup2="²",sup3="³",sup="⊃",Sup="⋑",supdot="⪾",supdsub="⫘",supE="⫆",supe="⊇",supedot="⫄",Superset="⊃",SupersetEqual="⊇",suphsol="⟉",suphsub="⫗",suplarr="⥻",supmult="⫂",supnE="⫌",supne="⊋",supplus="⫀",supset="⊃",Supset="⋑",supseteq="⊇",supseteqq="⫆",supsetneq="⊋",supsetneqq="⫌",supsim="⫈",supsub="⫔",supsup="⫖",swarhk="⤦",swarr="↙",swArr="⇙",swarrow="↙",swnwar="⤪",szlig="ß",Tab=" ",target="⌖",Tau="Τ",tau="τ",tbrk="⎴",Tcaron="Ť",tcaron="ť",Tcedil="Ţ",tcedil="ţ",Tcy="Т",tcy="т",tdot="⃛",telrec="⌕",Tfr="𝔗",tfr="𝔱",there4="∴",therefore="∴",Therefore="∴",Theta="Θ",theta="θ",thetasym="ϑ",thetav="ϑ",thickapprox="≈",thicksim="∼",ThickSpace="  ",ThinSpace=" ",thinsp=" ",thkap="≈",thksim="∼",THORN="Þ",thorn="þ",tilde="˜",Tilde="∼",TildeEqual="≃",TildeFullEqual="≅",TildeTilde="≈",timesbar="⨱",timesb="⊠",times="×",timesd="⨰",tint="∭",toea="⤨",topbot="⌶",topcir="⫱",top="⊤",Topf="𝕋",topf="𝕥",topfork="⫚",tosa="⤩",tprime="‴",trade="™",TRADE="™",triangle="▵",triangledown="▿",triangleleft="◃",trianglelefteq="⊴",triangleq="≜",triangleright="▹",trianglerighteq="⊵",tridot="◬",trie="≜",triminus="⨺",TripleDot="⃛",triplus="⨹",trisb="⧍",tritime="⨻",trpezium="⏢",Tscr="𝒯",tscr="𝓉",TScy="Ц",tscy="ц",TSHcy="Ћ",tshcy="ћ",Tstrok="Ŧ",tstrok="ŧ",twixt="≬",twoheadleftarrow="↞",twoheadrightarrow="↠",Uacute="Ú",uacute="ú",uarr="↑",Uarr="↟",uArr="⇑",Uarrocir="⥉",Ubrcy="Ў",ubrcy="ў",Ubreve="Ŭ",ubreve="ŭ",Ucirc="Û",ucirc="û",Ucy="У",ucy="у",udarr="⇅",Udblac="Ű",udblac="ű",udhar="⥮",ufisht="⥾",Ufr="𝔘",ufr="𝔲",Ugrave="Ù",ugrave="ù",uHar="⥣",uharl="↿",uharr="↾",uhblk="▀",ulcorn="⌜",ulcorner="⌜",ulcrop="⌏",ultri="◸",Umacr="Ū",umacr="ū",uml="¨",UnderBar="_",UnderBrace="⏟",UnderBracket="⎵",UnderParenthesis="⏝",Union="⋃",UnionPlus="⊎",Uogon="Ų",uogon="ų",Uopf="𝕌",uopf="𝕦",UpArrowBar="⤒",uparrow="↑",UpArrow="↑",Uparrow="⇑",UpArrowDownArrow="⇅",updownarrow="↕",UpDownArrow="↕",Updownarrow="⇕",UpEquilibrium="⥮",upharpoonleft="↿",upharpoonright="↾",uplus="⊎",UpperLeftArrow="↖",UpperRightArrow="↗",upsi="υ",Upsi="ϒ",upsih="ϒ",Upsilon="Υ",upsilon="υ",UpTeeArrow="↥",UpTee="⊥",upuparrows="⇈",urcorn="⌝",urcorner="⌝",urcrop="⌎",Uring="Ů",uring="ů",urtri="◹",Uscr="𝒰",uscr="𝓊",utdot="⋰",Utilde="Ũ",utilde="ũ",utri="▵",utrif="▴",uuarr="⇈",Uuml="Ü",uuml="ü",uwangle="⦧",vangrt="⦜",varepsilon="ϵ",varkappa="ϰ",varnothing="∅",varphi="ϕ",varpi="ϖ",varpropto="∝",varr="↕",vArr="⇕",varrho="ϱ",varsigma="ς",varsubsetneq="⊊︀",varsubsetneqq="⫋︀",varsupsetneq="⊋︀",varsupsetneqq="⫌︀",vartheta="ϑ",vartriangleleft="⊲",vartriangleright="⊳",vBar="⫨",Vbar="⫫",vBarv="⫩",Vcy="В",vcy="в",vdash="⊢",vDash="⊨",Vdash="⊩",VDash="⊫",Vdashl="⫦",veebar="⊻",vee="∨",Vee="⋁",veeeq="≚",vellip="⋮",verbar="|",Verbar="‖",vert="|",Vert="‖",VerticalBar="∣",VerticalLine="|",VerticalSeparator="❘",VerticalTilde="≀",VeryThinSpace=" ",Vfr="𝔙",vfr="𝔳",vltri="⊲",vnsub="⊂⃒",vnsup="⊃⃒",Vopf="𝕍",vopf="𝕧",vprop="∝",vrtri="⊳",Vscr="𝒱",vscr="𝓋",vsubnE="⫋︀",vsubne="⊊︀",vsupnE="⫌︀",vsupne="⊋︀",Vvdash="⊪",vzigzag="⦚",Wcirc="Ŵ",wcirc="ŵ",wedbar="⩟",wedge="∧",Wedge="⋀",wedgeq="≙",weierp="℘",Wfr="𝔚",wfr="𝔴",Wopf="𝕎",wopf="𝕨",wp="℘",wr="≀",wreath="≀",Wscr="𝒲",wscr="𝓌",xcap="⋂",xcirc="◯",xcup="⋃",xdtri="▽",Xfr="𝔛",xfr="𝔵",xharr="⟷",xhArr="⟺",Xi="Ξ",xi="ξ",xlarr="⟵",xlArr="⟸",xmap="⟼",xnis="⋻",xodot="⨀",Xopf="𝕏",xopf="𝕩",xoplus="⨁",xotime="⨂",xrarr="⟶",xrArr="⟹",Xscr="𝒳",xscr="𝓍",xsqcup="⨆",xuplus="⨄",xutri="△",xvee="⋁",xwedge="⋀",Yacute="Ý",yacute="ý",YAcy="Я",yacy="я",Ycirc="Ŷ",ycirc="ŷ",Ycy="Ы",ycy="ы",yen="¥",Yfr="𝔜",yfr="𝔶",YIcy="Ї",yicy="ї",Yopf="𝕐",yopf="𝕪",Yscr="𝒴",yscr="𝓎",YUcy="Ю",yucy="ю",yuml="ÿ",Yuml="Ÿ",Zacute="Ź",zacute="ź",Zcaron="Ž",zcaron="ž",Zcy="З",zcy="з",Zdot="Ż",zdot="ż",zeetrf="ℨ",ZeroWidthSpace="​",Zeta="Ζ",zeta="ζ",zfr="𝔷",Zfr="ℨ",ZHcy="Ж",zhcy="ж",zigrarr="⇝",zopf="𝕫",Zopf="ℤ",Zscr="𝒵",zscr="𝓏",zwj="‍",zwnj="‌",require$$0={Aacute,aacute,Abreve,abreve,ac,acd,acE,Acirc,acirc,acute,Acy,acy,AElig,aelig,af,Afr,afr,Agrave,agrave,alefsym,aleph,Alpha,alpha,Amacr,amacr,amalg,amp,AMP,andand,And,and,andd,andslope,andv,ang,ange,angle,angmsdaa,angmsdab,angmsdac,angmsdad,angmsdae,angmsdaf,angmsdag,angmsdah,angmsd,angrt,angrtvb,angrtvbd,angsph,angst,angzarr,Aogon,aogon,Aopf,aopf,apacir,ap,apE,ape,apid,apos,ApplyFunction,approx,approxeq,Aring,aring,Ascr,ascr,Assign,ast,asymp,asympeq,Atilde,atilde,Auml,auml,awconint,awint,backcong,backepsilon,backprime,backsim,backsimeq,Backslash,Barv,barvee,barwed,Barwed,barwedge,bbrk,bbrktbrk,bcong,Bcy,bcy,bdquo,becaus,because,Because,bemptyv,bepsi,bernou,Bernoullis,Beta,beta,beth,between,Bfr,bfr,bigcap,bigcirc,bigcup,bigodot,bigoplus,bigotimes,bigsqcup,bigstar,bigtriangledown,bigtriangleup,biguplus,bigvee,bigwedge,bkarow,blacklozenge,blacksquare,blacktriangle,blacktriangledown,blacktriangleleft,blacktriangleright,blank,blk12,blk14,blk34,block:block$1,bne,bnequiv,bNot,bnot,Bopf,bopf,bot,bottom,bowtie,boxbox,boxdl,boxdL,boxDl,boxDL,boxdr,boxdR,boxDr,boxDR,boxh,boxH,boxhd,boxHd,boxhD,boxHD,boxhu,boxHu,boxhU,boxHU,boxminus,boxplus,boxtimes,boxul,boxuL,boxUl,boxUL,boxur,boxuR,boxUr,boxUR,boxv,boxV,boxvh,boxvH,boxVh,boxVH,boxvl,boxvL,boxVl,boxVL,boxvr,boxvR,boxVr,boxVR,bprime,breve,Breve,brvbar,bscr,Bscr,bsemi,bsim,bsime,bsolb,bsol,bsolhsub,bull,bullet,bump,bumpE,bumpe,Bumpeq,bumpeq,Cacute,cacute,capand,capbrcup,capcap,cap,Cap,capcup,capdot,CapitalDifferentialD,caps,caret,caron,Cayleys,ccaps,Ccaron,ccaron,Ccedil,ccedil,Ccirc,ccirc,Cconint,ccups,ccupssm,Cdot,cdot,cedil,Cedilla,cemptyv,cent,centerdot,CenterDot,cfr,Cfr,CHcy,chcy,check:check$1,checkmark,Chi,chi,circ,circeq,circlearrowleft,circlearrowright,circledast,circledcirc,circleddash,CircleDot,circledR,circledS,CircleMinus,CirclePlus,CircleTimes,cir,cirE,cire,cirfnint,cirmid,cirscir,ClockwiseContourIntegral,CloseCurlyDoubleQuote,CloseCurlyQuote,clubs,clubsuit,colon,Colon,Colone,colone,coloneq,comma,commat,comp,compfn,complement,complexes,cong,congdot,Congruent,conint,Conint,ContourIntegral,copf,Copf,coprod,Coproduct,copy,COPY,copysr,CounterClockwiseContourIntegral,crarr,cross,Cross,Cscr,cscr,csub,csube,csup,csupe,ctdot,cudarrl,cudarrr,cuepr,cuesc,cularr,cularrp,cupbrcap,cupcap,CupCap,cup,Cup,cupcup,cupdot,cupor,cups,curarr,curarrm,curlyeqprec,curlyeqsucc,curlyvee,curlywedge,curren,curvearrowleft,curvearrowright,cuvee,cuwed,cwconint,cwint,cylcty,dagger,Dagger,daleth,darr,Darr,dArr,dash,Dashv,dashv,dbkarow,dblac,Dcaron,dcaron,Dcy,dcy,ddagger,ddarr,DD,dd,DDotrahd,ddotseq,deg,Del,Delta,delta,demptyv,dfisht,Dfr,dfr,dHar,dharl,dharr,DiacriticalAcute,DiacriticalDot,DiacriticalDoubleAcute,DiacriticalGrave,DiacriticalTilde,diam,diamond,Diamond,diamondsuit,diams,die,DifferentialD,digamma,disin,div,divide,divideontimes,divonx,DJcy,djcy,dlcorn,dlcrop,dollar,Dopf,dopf,Dot,dot,DotDot,doteq,doteqdot,DotEqual,dotminus,dotplus,dotsquare,doublebarwedge,DoubleContourIntegral,DoubleDot,DoubleDownArrow,DoubleLeftArrow,DoubleLeftRightArrow,DoubleLeftTee,DoubleLongLeftArrow,DoubleLongLeftRightArrow,DoubleLongRightArrow,DoubleRightArrow,DoubleRightTee,DoubleUpArrow,DoubleUpDownArrow,DoubleVerticalBar,DownArrowBar,downarrow,DownArrow,Downarrow,DownArrowUpArrow,DownBreve,downdownarrows,downharpoonleft,downharpoonright,DownLeftRightVector,DownLeftTeeVector,DownLeftVectorBar,DownLeftVector,DownRightTeeVector,DownRightVectorBar,DownRightVector,DownTeeArrow,DownTee,drbkarow,drcorn,drcrop,Dscr,dscr,DScy,dscy,dsol,Dstrok,dstrok,dtdot,dtri,dtrif,duarr,duhar,dwangle,DZcy,dzcy,dzigrarr,Eacute,eacute,easter,Ecaron,ecaron,Ecirc,ecirc,ecir,ecolon,Ecy,ecy,eDDot,Edot,edot,eDot,ee,efDot,Efr,efr,eg,Egrave,egrave,egs,egsdot,el,Element,elinters,ell,els,elsdot,Emacr,emacr,empty,emptyset,EmptySmallSquare,emptyv,EmptyVerySmallSquare,emsp13,emsp14,emsp,ENG,eng,ensp,Eogon,eogon,Eopf,eopf,epar,eparsl,eplus,epsi,Epsilon,epsilon,epsiv,eqcirc,eqcolon,eqsim,eqslantgtr,eqslantless,Equal,equals,EqualTilde,equest,Equilibrium,equiv,equivDD,eqvparsl,erarr,erDot,escr,Escr,esdot,Esim,esim,Eta,eta,ETH,eth,Euml,euml,euro,excl,exist,Exists,expectation,exponentiale,ExponentialE,fallingdotseq,Fcy,fcy,female,ffilig,fflig,ffllig,Ffr,ffr,filig,FilledSmallSquare,FilledVerySmallSquare,fjlig,flat,fllig,fltns,fnof,Fopf,fopf,forall,ForAll,fork,forkv,Fouriertrf,fpartint,frac12,frac13,frac14,frac15,frac16,frac18,frac23,frac25,frac34,frac35,frac38,frac45,frac56,frac58,frac78,frasl,frown,fscr,Fscr,gacute,Gamma,gamma,Gammad,gammad,gap,Gbreve,gbreve,Gcedil,Gcirc,gcirc,Gcy,gcy,Gdot,gdot,ge,gE,gEl,gel,geq,geqq,geqslant,gescc,ges,gesdot,gesdoto,gesdotol,gesl,gesles,Gfr,gfr,gg,Gg,ggg,gimel,GJcy,gjcy,gla,gl,glE,glj,gnap,gnapprox,gne,gnE,gneq,gneqq,gnsim,Gopf,gopf,grave,GreaterEqual,GreaterEqualLess,GreaterFullEqual,GreaterGreater,GreaterLess,GreaterSlantEqual,GreaterTilde,Gscr,gscr,gsim,gsime,gsiml,gtcc,gtcir,gt,GT:GT$1,Gt,gtdot,gtlPar,gtquest,gtrapprox,gtrarr,gtrdot,gtreqless,gtreqqless,gtrless,gtrsim,gvertneqq,gvnE,Hacek,hairsp,half,hamilt,HARDcy,hardcy,harrcir,harr,hArr,harrw,Hat,hbar,Hcirc,hcirc,hearts,heartsuit,hellip,hercon,hfr,Hfr,HilbertSpace,hksearow,hkswarow,hoarr,homtht,hookleftarrow,hookrightarrow,hopf,Hopf,horbar,HorizontalLine,hscr,Hscr,hslash,Hstrok,hstrok,HumpDownHump,HumpEqual,hybull,hyphen,Iacute,iacute,ic,Icirc,icirc,Icy,icy,Idot,IEcy,iecy,iexcl,iff,ifr,Ifr,Igrave,igrave,ii,iiiint,iiint,iinfin,iiota,IJlig,ijlig,Imacr,imacr,image:image$1,ImaginaryI,imagline,imagpart,imath,Im,imof,imped,Implies,incare,in:"∈",infin,infintie,inodot,intcal,int,Int,integers,Integral,intercal,Intersection,intlarhk,intprod,InvisibleComma,InvisibleTimes,IOcy,iocy,Iogon,iogon,Iopf,iopf,Iota,iota,iprod,iquest,iscr,Iscr,isin,isindot,isinE,isins,isinsv,isinv,it,Itilde,itilde,Iukcy,iukcy,Iuml,iuml,Jcirc,jcirc,Jcy,jcy,Jfr,jfr,jmath,Jopf,jopf,Jscr,jscr,Jsercy,jsercy,Jukcy,jukcy,Kappa,kappa,kappav,Kcedil,kcedil,Kcy,kcy,Kfr,kfr,kgreen,KHcy,khcy,KJcy,kjcy,Kopf,kopf,Kscr,kscr,lAarr,Lacute,lacute,laemptyv,lagran,Lambda,lambda,lang,Lang,langd,langle,lap,Laplacetrf,laquo,larrb,larrbfs,larr,Larr,lArr,larrfs,larrhk,larrlp,larrpl,larrsim,larrtl,latail,lAtail,lat,late,lates,lbarr,lBarr,lbbrk,lbrace,lbrack,lbrke,lbrksld,lbrkslu,Lcaron,lcaron,Lcedil,lcedil,lceil,lcub,Lcy,lcy,ldca,ldquo,ldquor,ldrdhar,ldrushar,ldsh,le,lE,LeftAngleBracket,LeftArrowBar,leftarrow,LeftArrow,Leftarrow,LeftArrowRightArrow,leftarrowtail,LeftCeiling,LeftDoubleBracket,LeftDownTeeVector,LeftDownVectorBar,LeftDownVector,LeftFloor,leftharpoondown,leftharpoonup,leftleftarrows,leftrightarrow,LeftRightArrow,Leftrightarrow,leftrightarrows,leftrightharpoons,leftrightsquigarrow,LeftRightVector,LeftTeeArrow,LeftTee,LeftTeeVector,leftthreetimes,LeftTriangleBar,LeftTriangle,LeftTriangleEqual,LeftUpDownVector,LeftUpTeeVector,LeftUpVectorBar,LeftUpVector,LeftVectorBar,LeftVector,lEg,leg,leq,leqq,leqslant,lescc,les,lesdot,lesdoto,lesdotor,lesg,lesges,lessapprox,lessdot,lesseqgtr,lesseqqgtr,LessEqualGreater,LessFullEqual,LessGreater,lessgtr,LessLess,lesssim,LessSlantEqual,LessTilde,lfisht,lfloor,Lfr,lfr,lg,lgE,lHar,lhard,lharu,lharul,lhblk,LJcy,ljcy,llarr,ll,Ll,llcorner,Lleftarrow,llhard,lltri,Lmidot,lmidot,lmoustache,lmoust,lnap,lnapprox,lne,lnE,lneq,lneqq,lnsim,loang,loarr,lobrk,longleftarrow,LongLeftArrow,Longleftarrow,longleftrightarrow,LongLeftRightArrow,Longleftrightarrow,longmapsto,longrightarrow,LongRightArrow,Longrightarrow,looparrowleft,looparrowright,lopar,Lopf,lopf,loplus,lotimes,lowast,lowbar,LowerLeftArrow,LowerRightArrow,loz,lozenge,lozf,lpar,lparlt,lrarr,lrcorner,lrhar,lrhard,lrm,lrtri,lsaquo,lscr,Lscr,lsh,Lsh,lsim,lsime,lsimg,lsqb,lsquo,lsquor,Lstrok,lstrok,ltcc,ltcir,lt,LT:LT$1,Lt,ltdot,lthree,ltimes,ltlarr,ltquest,ltri,ltrie,ltrif,ltrPar,lurdshar,luruhar,lvertneqq,lvnE,macr,male,malt,maltese,Map:"⤅",map:map$1,mapsto,mapstodown,mapstoleft,mapstoup,marker,mcomma,Mcy,mcy,mdash,mDDot,measuredangle,MediumSpace,Mellintrf,Mfr,mfr,mho,micro,midast,midcir,mid,middot,minusb,minus,minusd,minusdu,MinusPlus,mlcp,mldr,mnplus,models,Mopf,mopf,mp,mscr,Mscr,mstpos,Mu,mu,multimap,mumap,nabla,Nacute,nacute,nang,nap,napE,napid,napos,napprox,natural,naturals,natur,nbsp,nbump,nbumpe,ncap,Ncaron,ncaron,Ncedil,ncedil,ncong,ncongdot,ncup,Ncy,ncy,ndash,nearhk,nearr,neArr,nearrow,ne,nedot,NegativeMediumSpace,NegativeThickSpace,NegativeThinSpace,NegativeVeryThinSpace,nequiv,nesear,nesim,NestedGreaterGreater,NestedLessLess,NewLine,nexist,nexists,Nfr,nfr,ngE,nge,ngeq,ngeqq,ngeqslant,nges,nGg,ngsim,nGt,ngt,ngtr,nGtv,nharr,nhArr,nhpar,ni,nis,nisd,niv,NJcy,njcy,nlarr,nlArr,nldr,nlE,nle,nleftarrow,nLeftarrow,nleftrightarrow,nLeftrightarrow,nleq,nleqq,nleqslant,nles,nless,nLl,nlsim,nLt,nlt,nltri,nltrie,nLtv,nmid,NoBreak,NonBreakingSpace,nopf,Nopf,Not,not,NotCongruent,NotCupCap,NotDoubleVerticalBar,NotElement,NotEqual,NotEqualTilde,NotExists,NotGreater,NotGreaterEqual,NotGreaterFullEqual,NotGreaterGreater,NotGreaterLess,NotGreaterSlantEqual,NotGreaterTilde,NotHumpDownHump,NotHumpEqual,notin,notindot,notinE,notinva,notinvb,notinvc,NotLeftTriangleBar,NotLeftTriangle,NotLeftTriangleEqual,NotLess,NotLessEqual,NotLessGreater,NotLessLess,NotLessSlantEqual,NotLessTilde,NotNestedGreaterGreater,NotNestedLessLess,notni,notniva,notnivb,notnivc,NotPrecedes,NotPrecedesEqual,NotPrecedesSlantEqual,NotReverseElement,NotRightTriangleBar,NotRightTriangle,NotRightTriangleEqual,NotSquareSubset,NotSquareSubsetEqual,NotSquareSuperset,NotSquareSupersetEqual,NotSubset,NotSubsetEqual,NotSucceeds,NotSucceedsEqual,NotSucceedsSlantEqual,NotSucceedsTilde,NotSuperset,NotSupersetEqual,NotTilde,NotTildeEqual,NotTildeFullEqual,NotTildeTilde,NotVerticalBar,nparallel,npar,nparsl,npart,npolint,npr,nprcue,nprec,npreceq,npre,nrarrc,nrarr,nrArr,nrarrw,nrightarrow,nRightarrow,nrtri,nrtrie,nsc,nsccue,nsce,Nscr,nscr,nshortmid,nshortparallel,nsim,nsime,nsimeq,nsmid,nspar,nsqsube,nsqsupe,nsub,nsubE,nsube,nsubset,nsubseteq,nsubseteqq,nsucc,nsucceq,nsup,nsupE,nsupe,nsupset,nsupseteq,nsupseteqq,ntgl,Ntilde,ntilde,ntlg,ntriangleleft,ntrianglelefteq,ntriangleright,ntrianglerighteq,Nu,nu,num,numero,numsp,nvap,nvdash,nvDash,nVdash,nVDash,nvge,nvgt,nvHarr,nvinfin,nvlArr,nvle,nvlt,nvltrie,nvrArr,nvrtrie,nvsim,nwarhk,nwarr,nwArr,nwarrow,nwnear,Oacute,oacute,oast,Ocirc,ocirc,ocir,Ocy,ocy,odash,Odblac,odblac,odiv,odot,odsold,OElig,oelig,ofcir,Ofr,ofr,ogon,Ograve,ograve,ogt,ohbar,ohm,oint,olarr,olcir,olcross,oline,olt,Omacr,omacr,Omega,omega,Omicron,omicron,omid,ominus,Oopf,oopf,opar,OpenCurlyDoubleQuote,OpenCurlyQuote,operp,oplus,orarr,Or,or,ord,order,orderof,ordf,ordm,origof,oror,orslope,orv,oS,Oscr,oscr,Oslash,oslash,osol,Otilde,otilde,otimesas,Otimes,otimes,Ouml,ouml,ovbar,OverBar,OverBrace,OverBracket,OverParenthesis,para,parallel,par,parsim,parsl,part,PartialD,Pcy,pcy,percnt,period,permil,perp,pertenk,Pfr,pfr,Phi,phi,phiv,phmmat,phone,Pi,pi,pitchfork,piv,planck,planckh,plankv,plusacir,plusb,pluscir,plus,plusdo,plusdu,pluse,PlusMinus,plusmn,plussim,plustwo,pm,Poincareplane,pointint,popf,Popf,pound,prap,Pr,pr,prcue,precapprox,prec,preccurlyeq,Precedes,PrecedesEqual,PrecedesSlantEqual,PrecedesTilde,preceq,precnapprox,precneqq,precnsim,pre,prE,precsim,prime,Prime,primes,prnap,prnE,prnsim,prod,Product,profalar,profline,profsurf,prop,Proportional,Proportion,propto,prsim,prurel,Pscr,pscr,Psi,psi,puncsp,Qfr,qfr,qint,qopf,Qopf,qprime,Qscr,qscr,quaternions,quatint,quest,questeq,quot,QUOT,rAarr,race,Racute,racute,radic,raemptyv,rang,Rang,rangd,range,rangle,raquo,rarrap,rarrb,rarrbfs,rarrc,rarr,Rarr,rArr,rarrfs,rarrhk,rarrlp,rarrpl,rarrsim,Rarrtl,rarrtl,rarrw,ratail,rAtail,ratio,rationals,rbarr,rBarr,RBarr,rbbrk,rbrace,rbrack,rbrke,rbrksld,rbrkslu,Rcaron,rcaron,Rcedil,rcedil,rceil,rcub,Rcy,rcy,rdca,rdldhar,rdquo,rdquor,rdsh,real,realine,realpart,reals,Re,rect,reg,REG,ReverseElement,ReverseEquilibrium,ReverseUpEquilibrium,rfisht,rfloor,rfr,Rfr,rHar,rhard,rharu,rharul,Rho,rho,rhov,RightAngleBracket,RightArrowBar,rightarrow,RightArrow,Rightarrow,RightArrowLeftArrow,rightarrowtail,RightCeiling,RightDoubleBracket,RightDownTeeVector,RightDownVectorBar,RightDownVector,RightFloor,rightharpoondown,rightharpoonup,rightleftarrows,rightleftharpoons,rightrightarrows,rightsquigarrow,RightTeeArrow,RightTee,RightTeeVector,rightthreetimes,RightTriangleBar,RightTriangle,RightTriangleEqual,RightUpDownVector,RightUpTeeVector,RightUpVectorBar,RightUpVector,RightVectorBar,RightVector,ring,risingdotseq,rlarr,rlhar,rlm,rmoustache,rmoust,rnmid,roang,roarr,robrk,ropar,ropf,Ropf,roplus,rotimes,RoundImplies,rpar,rpargt,rppolint,rrarr,Rrightarrow,rsaquo,rscr,Rscr,rsh,Rsh,rsqb,rsquo,rsquor,rthree,rtimes,rtri,rtrie,rtrif,rtriltri,RuleDelayed,ruluhar,rx,Sacute,sacute,sbquo,scap,Scaron,scaron,Sc,sc,sccue,sce,scE,Scedil,scedil,Scirc,scirc,scnap,scnE,scnsim,scpolint,scsim,Scy,scy,sdotb,sdot,sdote,searhk,searr,seArr,searrow,sect,semi,seswar,setminus,setmn,sext,Sfr,sfr,sfrown,sharp,SHCHcy,shchcy,SHcy,shcy,ShortDownArrow,ShortLeftArrow,shortmid,shortparallel,ShortRightArrow,ShortUpArrow,shy,Sigma,sigma,sigmaf,sigmav,sim,simdot,sime,simeq,simg,simgE,siml,simlE,simne,simplus,simrarr,slarr,SmallCircle,smallsetminus,smashp,smeparsl,smid,smile,smt,smte,smtes,SOFTcy,softcy,solbar,solb,sol,Sopf,sopf,spades,spadesuit,spar,sqcap,sqcaps,sqcup,sqcups,Sqrt,sqsub,sqsube,sqsubset,sqsubseteq,sqsup,sqsupe,sqsupset,sqsupseteq,square,Square,SquareIntersection,SquareSubset,SquareSubsetEqual,SquareSuperset,SquareSupersetEqual,SquareUnion,squarf,squ,squf,srarr,Sscr,sscr,ssetmn,ssmile,sstarf,Star,star,starf,straightepsilon,straightphi,strns,sub,Sub,subdot,subE,sube,subedot,submult,subnE,subne,subplus,subrarr,subset,Subset,subseteq,subseteqq,SubsetEqual,subsetneq,subsetneqq,subsim,subsub,subsup,succapprox,succ,succcurlyeq,Succeeds,SucceedsEqual,SucceedsSlantEqual,SucceedsTilde,succeq,succnapprox,succneqq,succnsim,succsim,SuchThat,sum,Sum,sung,sup1,sup2,sup3,sup,Sup,supdot,supdsub,supE,supe,supedot,Superset,SupersetEqual,suphsol,suphsub,suplarr,supmult,supnE,supne,supplus,supset,Supset,supseteq,supseteqq,supsetneq,supsetneqq,supsim,supsub,supsup,swarhk,swarr,swArr,swarrow,swnwar,szlig,Tab,target,Tau,tau,tbrk,Tcaron,tcaron,Tcedil,tcedil,Tcy,tcy,tdot,telrec,Tfr,tfr,there4,therefore,Therefore,Theta,theta,thetasym,thetav,thickapprox,thicksim,ThickSpace,ThinSpace,thinsp,thkap,thksim,THORN,thorn,tilde,Tilde,TildeEqual,TildeFullEqual,TildeTilde,timesbar,timesb,times,timesd,tint,toea,topbot,topcir,top,Topf,topf,topfork,tosa,tprime,trade,TRADE,triangle,triangledown,triangleleft,trianglelefteq,triangleq,triangleright,trianglerighteq,tridot,trie,triminus,TripleDot,triplus,trisb,tritime,trpezium,Tscr,tscr,TScy,tscy,TSHcy,tshcy,Tstrok,tstrok,twixt,twoheadleftarrow,twoheadrightarrow,Uacute,uacute,uarr,Uarr,uArr,Uarrocir,Ubrcy,ubrcy,Ubreve,ubreve,Ucirc,ucirc,Ucy,ucy,udarr,Udblac,udblac,udhar,ufisht,Ufr,ufr,Ugrave,ugrave,uHar,uharl,uharr,uhblk,ulcorn,ulcorner,ulcrop,ultri,Umacr,umacr,uml,UnderBar,UnderBrace,UnderBracket,UnderParenthesis,Union,UnionPlus,Uogon,uogon,Uopf,uopf,UpArrowBar,uparrow,UpArrow,Uparrow,UpArrowDownArrow,updownarrow,UpDownArrow,Updownarrow,UpEquilibrium,upharpoonleft,upharpoonright,uplus,UpperLeftArrow,UpperRightArrow,upsi,Upsi,upsih,Upsilon,upsilon,UpTeeArrow,UpTee,upuparrows,urcorn,urcorner,urcrop,Uring,uring,urtri,Uscr,uscr,utdot,Utilde,utilde,utri,utrif,uuarr,Uuml,uuml,uwangle,vangrt,varepsilon,varkappa,varnothing,varphi,varpi,varpropto,varr,vArr,varrho,varsigma,varsubsetneq,varsubsetneqq,varsupsetneq,varsupsetneqq,vartheta,vartriangleleft,vartriangleright,vBar,Vbar,vBarv,Vcy,vcy,vdash,vDash,Vdash,VDash,Vdashl,veebar,vee,Vee,veeeq,vellip,verbar,Verbar,vert,Vert,VerticalBar,VerticalLine,VerticalSeparator,VerticalTilde,VeryThinSpace,Vfr,vfr,vltri,vnsub,vnsup,Vopf,vopf,vprop,vrtri,Vscr,vscr,vsubnE,vsubne,vsupnE,vsupne,Vvdash,vzigzag,Wcirc,wcirc,wedbar,wedge,Wedge,wedgeq,weierp,Wfr,wfr,Wopf,wopf,wp,wr,wreath,Wscr,wscr,xcap,xcirc,xcup,xdtri,Xfr,xfr,xharr,xhArr,Xi,xi,xlarr,xlArr,xmap,xnis,xodot,Xopf,xopf,xoplus,xotime,xrarr,xrArr,Xscr,xscr,xsqcup,xuplus,xutri,xvee,xwedge,Yacute,yacute,YAcy,yacy,Ycirc,ycirc,Ycy,ycy,yen,Yfr,yfr,YIcy,yicy,Yopf,yopf,Yscr,yscr,YUcy,yucy,yuml,Yuml,Zacute,zacute,Zcaron,zcaron,Zcy,zcy,Zdot,zdot,zeetrf,ZeroWidthSpace,Zeta,zeta,zfr,Zfr,ZHcy,zhcy,zigrarr,zopf,Zopf,Zscr,zscr,zwj,zwnj};var entities$1=require$$0,regex$4=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,mdurl$1={},encodeCache={};function getEncodeCache(b){var r,m,w=encodeCache[b];if(w)return w;for(w=encodeCache[b]=[],r=0;r<128;r++)m=String.fromCharCode(r),/^[0-9a-z]$/i.test(m)?w.push(m):w.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2));for(r=0;r"u"&&(m=!0),a=getEncodeCache(r),w=0,U=b.length;w=55296&&k<=57343){if(k>=55296&&k<=56319&&w+1=56320&&x<=57343)){g+=encodeURIComponent(b[w]+b[w+1]),w++;continue}g+="%EF%BF%BD";continue}g+=encodeURIComponent(b[w])}return g}encode$1.defaultChars=";/?:@&=+$,-_.!~*'()#";encode$1.componentChars="-_.!~*'()";var encode_1=encode$1,decodeCache={};function getDecodeCache(b){var r,m,w=decodeCache[b];if(w)return w;for(w=decodeCache[b]=[],r=0;r<128;r++)m=String.fromCharCode(r),w.push(m);for(r=0;r=55296&&c<=57343?R+="���":R+=String.fromCharCode(c),U+=6;continue}if((x&248)===240&&U+91114111?R+="����":(c-=65536,R+=String.fromCharCode(55296+(c>>10),56320+(c&1023))),U+=9;continue}R+="�"}return R})}decode$1.defaultChars=";/?:@&=+$,#";decode$1.componentChars="";var decode_1=decode$1,format=function(r){var m="";return m+=r.protocol||"",m+=r.slashes?"//":"",m+=r.auth?r.auth+"@":"",r.hostname&&r.hostname.indexOf(":")!==-1?m+="["+r.hostname+"]":m+=r.hostname||"",m+=r.port?":"+r.port:"",m+=r.pathname||"",m+=r.search||"",m+=r.hash||"",m};function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r",` `," "],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function urlParse(b,r){if(b&&b instanceof Url)return b;var m=new Url;return m.parse(b,r),m}Url.prototype.parse=function(b,r){var m,w,U,k,x,a=b;if(a=a.trim(),!r&&b.split("#").length===1){var g=simplePathPattern.exec(a);if(g)return this.pathname=g[1],g[2]&&(this.search=g[2]),this}var n=protocolPattern.exec(a);if(n&&(n=n[0],U=n.toLowerCase(),this.protocol=n,a=a.substr(n.length)),(r||n||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(x=a.substr(0,2)==="//",x&&!(n&&hostlessProtocol[n])&&(a=a.substr(2),this.slashes=!0)),!hostlessProtocol[n]&&(x||n&&!slashedProtocol[n])){var c=-1;for(m=0;m127?P+="x":P+=B[S];if(!P.match(hostnamePartPattern)){var l=O.slice(0,m),y=O.slice(m+1),D=B.match(hostnamePartStart);D&&(l.push(D[1]),y.unshift(D[2])),y.length&&(a=y.join(".")+a),this.hostname=l.join(".");break}}}}this.hostname.length>hostnameMaxLen&&(this.hostname=""),L&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var M=a.indexOf("#");M!==-1&&(this.hash=a.substr(M),a=a.slice(0,M));var F=a.indexOf("?");return F!==-1&&(this.search=a.substr(F),a=a.slice(0,F)),a&&(this.pathname=a),slashedProtocol[U]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Url.prototype.parseHost=function(b){var r=portPattern.exec(b);r&&(r=r[0],r!==":"&&(this.port=r.substr(1)),b=b.substr(0,b.length-r.length)),b&&(this.hostname=b)};var parse=urlParse;mdurl$1.encode=encode_1;mdurl$1.decode=decode_1;mdurl$1.format=format;mdurl$1.parse=parse;var uc_micro={},regex$3,hasRequiredRegex$3;function requireRegex$3(){return hasRequiredRegex$3||(hasRequiredRegex$3=1,regex$3=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),regex$3}var regex$2,hasRequiredRegex$2;function requireRegex$2(){return hasRequiredRegex$2||(hasRequiredRegex$2=1,regex$2=/[\0-\x1F\x7F-\x9F]/),regex$2}var regex$1,hasRequiredRegex$1;function requireRegex$1(){return hasRequiredRegex$1||(hasRequiredRegex$1=1,regex$1=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),regex$1}var regex,hasRequiredRegex;function requireRegex(){return hasRequiredRegex||(hasRequiredRegex=1,regex=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),regex}var hasRequiredUc_micro;function requireUc_micro(){return hasRequiredUc_micro||(hasRequiredUc_micro=1,uc_micro.Any=requireRegex$3(),uc_micro.Cc=requireRegex$2(),uc_micro.Cf=requireRegex$1(),uc_micro.P=regex$4,uc_micro.Z=requireRegex()),uc_micro}(function(b){function r(V){return Object.prototype.toString.call(V)}function m(V){return r(V)==="[object String]"}var w=Object.prototype.hasOwnProperty;function U(V,H){return w.call(V,H)}function k(V){var H=Array.prototype.slice.call(arguments,1);return H.forEach(function(z){if(z){if(typeof z!="object")throw new TypeError(z+"must be object");Object.keys(z).forEach(function(X){V[X]=z[X]})}}),V}function x(V,H,z){return[].concat(V.slice(0,H),z,V.slice(H+1))}function a(V){return!(V>=55296&&V<=57343||V>=64976&&V<=65007||(V&65535)===65535||(V&65535)===65534||V>=0&&V<=8||V===11||V>=14&&V<=31||V>=127&&V<=159||V>1114111)}function g(V){if(V>65535){V-=65536;var H=55296+(V>>10),z=56320+(V&1023);return String.fromCharCode(H,z)}return String.fromCharCode(V)}var n=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,c=/&([a-z#][a-z0-9]{1,31});/gi,R=new RegExp(n.source+"|"+c.source,"gi"),v=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,e=entities$1;function L(V,H){var z;return U(e,H)?e[H]:H.charCodeAt(0)===35&&v.test(H)&&(z=H[1].toLowerCase()==="x"?parseInt(H.slice(2),16):parseInt(H.slice(1),10),a(z))?g(z):V}function O(V){return V.indexOf("\\")<0?V:V.replace(n,"$1")}function B(V){return V.indexOf("\\")<0&&V.indexOf("&")<0?V:V.replace(R,function(H,z,X){return z||L(H,X)})}var P=/[&<>"]/,S=/[&<>"]/g,_={"&":"&","<":"<",">":">",'"':"""};function l(V){return _[V]}function y(V){return P.test(V)?V.replace(S,l):V}var D=/[.?*+^$[\]\\(){}|-]/g;function M(V){return V.replace(D,"\\$&")}function F(V){switch(V){case 9:case 32:return!0}return!1}function N(V){if(V>=8192&&V<=8202)return!0;switch(V){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var G=regex$4;function W(V){return G.test(V)}function J(V){switch(V){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Y(V){return V=V.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(V=V.replace(/ẞ/g,"ß")),V.toLowerCase().toUpperCase()}b.lib={},b.lib.mdurl=mdurl$1,b.lib.ucmicro=requireUc_micro(),b.assign=k,b.isString=m,b.has=U,b.unescapeMd=O,b.unescapeAll=B,b.isValidEntityCode=a,b.fromCodePoint=g,b.escapeHtml=y,b.arrayReplaceAt=x,b.isSpace=F,b.isWhiteSpace=N,b.isMdAsciiPunct=J,b.isPunctChar=W,b.escapeRE=M,b.normalizeReference=Y})(utils$1);var helpers$1={},parse_link_label=function(r,m,w){var U,k,x,a,g=-1,n=r.posMax,c=r.pos;for(r.pos=m+1,U=1;r.pos32))return a;if(U===41){if(k===0)break;k--}x++}return m===x||k!==0||(a.str=unescapeAll$2(r.slice(m,x)),a.pos=x,a.ok=!0),a},unescapeAll$1=utils$1.unescapeAll,parse_link_title=function(r,m,w){var U,k,x=0,a=m,g={ok:!1,pos:0,lines:0,str:""};if(a>=w||(k=r.charCodeAt(a),k!==34&&k!==39&&k!==40))return g;for(a++,k===40&&(k=41);a"+escapeHtml(k.content)+""};default_rules.code_block=function(b,r,m,w,U){var k=b[r];return""+escapeHtml(b[r].content)+` `};default_rules.fence=function(b,r,m,w,U){var k=b[r],x=k.info?unescapeAll(k.info).trim():"",a="",g="",n,c,R,v,e;return x&&(R=x.split(/(\s+)/g),a=R[0],g=R.slice(2).join("")),m.highlight?n=m.highlight(k.content,a,g)||escapeHtml(k.content):n=escapeHtml(k.content),n.indexOf(""+n+` `):"
"+n+`
`};default_rules.image=function(b,r,m,w,U){var k=b[r];return k.attrs[k.attrIndex("alt")][1]=U.renderInlineAsText(k.children,m,w),U.renderToken(b,r,m)};default_rules.hardbreak=function(b,r,m){return m.xhtmlOut?`
`:`
`};default_rules.softbreak=function(b,r,m){return m.breaks?m.xhtmlOut?`
`:`
`:` `};default_rules.text=function(b,r){return escapeHtml(b[r].content)};default_rules.html_block=function(b,r){return b[r].content};default_rules.html_inline=function(b,r){return b[r].content};function Renderer$1(){this.rules=assign$1({},default_rules)}Renderer$1.prototype.renderAttrs=function(r){var m,w,U;if(!r.attrs)return"";for(U="",m=0,w=r.attrs.length;m `:">",k)};Renderer$1.prototype.renderInline=function(b,r,m){for(var w,U="",k=this.rules,x=0,a=b.length;x\s]/i.test(b)}function isLinkClose$1(b){return/^<\/a\s*>/i.test(b)}var linkify$1=function(r){var m,w,U,k,x,a,g,n,c,R,v,e,L,O,B,P,S=r.tokens,_;if(r.md.options.linkify){for(w=0,U=S.length;w=0;m--){if(a=k[m],a.type==="link_close"){for(m--;k[m].level!==a.level&&k[m].type!=="link_open";)m--;continue}if(a.type==="html_inline"&&(isLinkOpen$1(a.content)&&L>0&&L--,isLinkClose$1(a.content)&&L++),!(L>0)&&a.type==="text"&&r.md.linkify.test(a.content)){for(c=a.content,_=r.md.linkify.match(c),g=[],e=a.level,v=0,_.length>0&&_[0].index===0&&m>0&&k[m-1].type==="text_special"&&(_=_.slice(1)),n=0;n<_.length;n++)O=_[n].url,B=r.md.normalizeLink(O),r.md.validateLink(B)&&(P=_[n].text,_[n].schema?_[n].schema==="mailto:"&&!/^mailto:/i.test(P)?P=r.md.normalizeLinkText("mailto:"+P).replace(/^mailto:/,""):P=r.md.normalizeLinkText(P):P=r.md.normalizeLinkText("http://"+P).replace(/^http:\/\//,""),R=_[n].index,R>v&&(x=new r.Token("text","",0),x.content=c.slice(v,R),x.level=e,g.push(x)),x=new r.Token("link_open","a",1),x.attrs=[["href",B]],x.level=e++,x.markup="linkify",x.info="auto",g.push(x),x=new r.Token("text","",0),x.content=P,x.level=e,g.push(x),x=new r.Token("link_close","a",-1),x.level=--e,x.markup="linkify",x.info="auto",g.push(x),v=_[n].lastIndex);v=0;r--)m=b[r],m.type==="text"&&!w&&(m.content=m.content.replace(SCOPED_ABBR_RE,replaceFn)),m.type==="link_open"&&m.info==="auto"&&w--,m.type==="link_close"&&m.info==="auto"&&w++}function replace_rare(b){var r,m,w=0;for(r=b.length-1;r>=0;r--)m=b[r],m.type==="text"&&!w&&RARE_RE.test(m.content)&&(m.content=m.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),m.type==="link_open"&&m.info==="auto"&&w--,m.type==="link_close"&&m.info==="auto"&&w++}var replacements=function(r){var m;if(r.md.options.typographer)for(m=r.tokens.length-1;m>=0;m--)r.tokens[m].type==="inline"&&(SCOPED_ABBR_TEST_RE.test(r.tokens[m].content)&&replace_scoped(r.tokens[m].children),RARE_RE.test(r.tokens[m].content)&&replace_rare(r.tokens[m].children))},isWhiteSpace$1=utils$1.isWhiteSpace,isPunctChar$1=utils$1.isPunctChar,isMdAsciiPunct$1=utils$1.isMdAsciiPunct,QUOTE_TEST_RE=/['"]/,QUOTE_RE=/['"]/g,APOSTROPHE="’";function replaceAt(b,r,m){return b.slice(0,r)+m+b.slice(r+1)}function process_inlines(b,r){var m,w,U,k,x,a,g,n,c,R,v,e,L,O,B,P,S,_,l,y,D;for(l=[],m=0;m=0&&!(l[S].level<=g);S--);if(l.length=S+1,w.type==="text"){U=w.content,x=0,a=U.length;e:for(;x=0)c=U.charCodeAt(k.index-1);else for(S=m-1;S>=0&&!(b[S].type==="softbreak"||b[S].type==="hardbreak");S--)if(b[S].content){c=b[S].content.charCodeAt(b[S].content.length-1);break}if(R=32,x=48&&c<=57&&(P=B=!1),B&&P&&(B=v,P=e),!B&&!P){_&&(w.content=replaceAt(w.content,k.index,APOSTROPHE));continue}if(P){for(S=l.length-1;S>=0&&(n=l[S],!(l[S].level=0;m--)r.tokens[m].type!=="inline"||!QUOTE_TEST_RE.test(r.tokens[m].content)||process_inlines(r.tokens[m].children,r)},text_join=function(r){var m,w,U,k,x,a,g=r.tokens;for(m=0,w=g.length;m=0&&(w=this.attrs[m][1]),w};Token$3.prototype.attrJoin=function(r,m){var w=this.attrIndex(r);w<0?this.attrPush([r,m]):this.attrs[w][1]=this.attrs[w][1]+" "+m};var token=Token$3,Token$2=token;function StateCore(b,r,m){this.src=b,this.env=m,this.tokens=[],this.inlineMode=!1,this.md=r}StateCore.prototype.Token=Token$2;var state_core=StateCore,Ruler$2=ruler,_rules$2=[["normalize",normalize$1],["block",block],["inline",inline],["linkify",linkify$1],["replacements",replacements],["smartquotes",smartquotes],["text_join",text_join]];function Core(){this.ruler=new Ruler$2;for(var b=0;b<_rules$2.length;b++)this.ruler.push(_rules$2[b][0],_rules$2[b][1])}Core.prototype.process=function(b){var r,m,w;for(w=this.ruler.getRules(""),r=0,m=w.length;rw||(c=m+1,r.sCount[c]=4||(a=r.bMarks[c]+r.tShift[c],a>=r.eMarks[c])||(y=r.src.charCodeAt(a++),y!==124&&y!==45&&y!==58)||a>=r.eMarks[c]||(D=r.src.charCodeAt(a++),D!==124&&D!==45&&D!==58&&!isSpace$a(D))||y===45&&isSpace$a(D))return!1;for(;a=4||(R=escapedSplit(x),R.length&&R[0]===""&&R.shift(),R.length&&R[R.length-1]===""&&R.pop(),v=R.length,v===0||v!==L.length))return!1;if(U)return!0;for(S=r.parentType,r.parentType="table",l=r.md.block.ruler.getRules("blockquote"),e=r.push("table_open","table",1),e.map=B=[m,0],e=r.push("thead_open","thead",1),e.map=[m,m+1],e=r.push("tr_open","tr",1),e.map=[m,m+1],g=0;g=4)break;for(R=escapedSplit(x),R.length&&R[0]===""&&R.shift(),R.length&&R[R.length-1]===""&&R.pop(),c===m+2&&(e=r.push("tbody_open","tbody",1),e.map=P=[m+2,0]),e=r.push("tr_open","tr",1),e.map=[c,c+1],g=0;g=4){U++,k=U;continue}break}return r.line=k,x=r.push("code_block","code",0),x.content=r.getLines(m,k,4+r.blkIndent,!1)+` `,x.map=[m,r.line],!0},fence=function(r,m,w,U){var k,x,a,g,n,c,R,v=!1,e=r.bMarks[m]+r.tShift[m],L=r.eMarks[m];if(r.sCount[m]-r.blkIndent>=4||e+3>L||(k=r.src.charCodeAt(e),k!==126&&k!==96)||(n=e,e=r.skipChars(e,k),x=e-n,x<3)||(R=r.src.slice(n,e),a=r.src.slice(e,L),k===96&&a.indexOf(String.fromCharCode(k))>=0))return!1;if(U)return!0;for(g=m;g++,!(g>=w||(e=n=r.bMarks[g]+r.tShift[g],L=r.eMarks[g],e=4)&&(e=r.skipChars(e,k),!(e-n=4||r.src.charCodeAt(G)!==62)return!1;if(U)return!0;for(L=[],O=[],S=[],_=[],D=r.md.block.ruler.getRules("blockquote"),P=r.parentType,r.parentType="blockquote",v=m;v=W));v++){if(r.src.charCodeAt(G++)===62&&!F){for(g=r.sCount[v]+1,r.src.charCodeAt(G)===32?(G++,g++,k=!1,l=!0):r.src.charCodeAt(G)===9?(l=!0,(r.bsCount[v]+g)%4===3?(G++,g++,k=!1):k=!0):l=!1,e=g,L.push(r.bMarks[v]),r.bMarks[v]=G;G=W,O.push(r.bsCount[v]),r.bsCount[v]=r.sCount[v]+1+(l?1:0),S.push(r.sCount[v]),r.sCount[v]=e-g,_.push(r.tShift[v]),r.tShift[v]=G-r.bMarks[v];continue}if(c)break;for(y=!1,a=0,n=D.length;a",M.map=R=[m,0],r.md.block.tokenize(r,m,v),M=r.push("blockquote_close","blockquote",-1),M.markup=">",r.lineMax=N,r.parentType=P,R[1]=r.line,a=0;a<_.length;a++)r.bMarks[a+m]=L[a],r.tShift[a+m]=_[a],r.sCount[a+m]=S[a],r.bsCount[a+m]=O[a];return r.blkIndent=B,!0},isSpace$8=utils$1.isSpace,hr=function(r,m,w,U){var k,x,a,g,n=r.bMarks[m]+r.tShift[m],c=r.eMarks[m];if(r.sCount[m]-r.blkIndent>=4||(k=r.src.charCodeAt(n++),k!==42&&k!==45&&k!==95))return!1;for(x=1;n=k||(m=b.src.charCodeAt(U++),m<48||m>57))return-1;for(;;){if(U>=k)return-1;if(m=b.src.charCodeAt(U++),m>=48&&m<=57){if(U-w>=10)return-1;continue}if(m===41||m===46)break;return-1}return U=4||r.listIndent>=0&&r.sCount[z]-r.listIndent>=4&&r.sCount[z]=r.blkIndent&&(X=!0),(G=skipOrderedListMarker(r,z))>=0){if(R=!0,J=r.bMarks[z]+r.tShift[z],P=Number(r.src.slice(J,G-1)),X&&P!==1)return!1}else if((G=skipBulletListMarker(r,z))>=0)R=!1;else return!1;if(X&&r.skipSpaces(G)>=r.eMarks[z])return!1;if(U)return!0;for(B=r.src.charCodeAt(G-1),O=r.tokens.length,R?(H=r.push("ordered_list_open","ol",1),P!==1&&(H.attrs=[["start",P]])):H=r.push("bullet_list_open","ul",1),H.map=L=[z,0],H.markup=String.fromCharCode(B),W=!1,V=r.md.block.ruler.getRules("list"),y=r.parentType,r.parentType="list";z=S?n=1:n=_-c,n>4&&(n=1),g=c+n,H=r.push("list_item_open","li",1),H.markup=String.fromCharCode(B),H.map=v=[z,0],R&&(H.info=r.src.slice(J,G-1)),F=r.tight,M=r.tShift[z],D=r.sCount[z],l=r.listIndent,r.listIndent=r.blkIndent,r.blkIndent=g,r.tight=!0,r.tShift[z]=x-r.bMarks[z],r.sCount[z]=_,x>=S&&r.isEmpty(z+1)?r.line=Math.min(r.line+2,w):r.md.block.tokenize(r,z,w,!0),(!r.tight||W)&&(q=!1),W=r.line-z>1&&r.isEmpty(r.line-1),r.blkIndent=r.listIndent,r.listIndent=l,r.tShift[z]=M,r.sCount[z]=D,r.tight=F,H=r.push("list_item_close","li",-1),H.markup=String.fromCharCode(B),z=r.line,v[1]=z,z>=w||r.sCount[z]=4)break;for(Y=!1,a=0,e=V.length;a=4||r.src.charCodeAt(D)!==91)return!1;for(;++D3)&&!(r.sCount[F]<0)){for(S=!1,c=0,R=_.length;c"u"&&(r.env.references={}),typeof r.env.references[v]>"u"&&(r.env.references[v]={title:l,href:n}),r.parentType=L,r.line=m+y+1),!0)},html_blocks=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],html_re={},attr_name="[a-zA-Z_:][a-zA-Z0-9:._-]*",unquoted="[^\"'=<>`\\x00-\\x20]+",single_quoted="'[^']*'",double_quoted='"[^"]*"',attr_value="(?:"+unquoted+"|"+single_quoted+"|"+double_quoted+")",attribute="(?:\\s+"+attr_name+"(?:\\s*=\\s*"+attr_value+")?)",open_tag="<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/?>",close_tag="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",comment="|",processing="<[?][\\s\\S]*?[?]>",declaration="]*>",cdata="",HTML_TAG_RE$1=new RegExp("^(?:"+open_tag+"|"+close_tag+"|"+comment+"|"+processing+"|"+declaration+"|"+cdata+")"),HTML_OPEN_CLOSE_TAG_RE$1=new RegExp("^(?:"+open_tag+"|"+close_tag+")");html_re.HTML_TAG_RE=HTML_TAG_RE$1;html_re.HTML_OPEN_CLOSE_TAG_RE=HTML_OPEN_CLOSE_TAG_RE$1;var block_names=html_blocks,HTML_OPEN_CLOSE_TAG_RE=html_re.HTML_OPEN_CLOSE_TAG_RE,HTML_SEQUENCES=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(HTML_OPEN_CLOSE_TAG_RE.source+"\\s*$"),/^$/,!1]],html_block=function(r,m,w,U){var k,x,a,g,n=r.bMarks[m]+r.tShift[m],c=r.eMarks[m];if(r.sCount[m]-r.blkIndent>=4||!r.md.options.html||r.src.charCodeAt(n)!==60)return!1;for(g=r.src.slice(n,c),k=0;k=4||(k=r.src.charCodeAt(n),k!==35||n>=c))return!1;for(x=1,k=r.src.charCodeAt(++n);k===35&&n6||nn&&isSpace$5(r.src.charCodeAt(a-1))&&(c=a),r.line=m+1,g=r.push("heading_open","h"+String(x),1),g.markup="########".slice(0,x),g.map=[m,r.line],g=r.push("inline","",0),g.content=r.src.slice(n,c).trim(),g.map=[m,r.line],g.children=[],g=r.push("heading_close","h"+String(x),-1),g.markup="########".slice(0,x)),!0)},lheading=function(r,m,w){var U,k,x,a,g,n,c,R,v,e=m+1,L,O=r.md.block.ruler.getRules("paragraph");if(r.sCount[m]-r.blkIndent>=4)return!1;for(L=r.parentType,r.parentType="paragraph";e3)){if(r.sCount[e]>=r.blkIndent&&(n=r.bMarks[e]+r.tShift[e],c=r.eMarks[e],n=c)))){R=v===61?1:2;break}if(!(r.sCount[e]<0)){for(k=!1,x=0,a=O.length;x3)&&!(r.sCount[c]<0)){for(k=!1,x=0,a=R.length;x0&&this.level++,this.tokens.push(w),w};StateBlock.prototype.isEmpty=function(r){return this.bMarks[r]+this.tShift[r]>=this.eMarks[r]};StateBlock.prototype.skipEmptyLines=function(r){for(var m=this.lineMax;rm;)if(!isSpace$4(this.src.charCodeAt(--r)))return r+1;return r};StateBlock.prototype.skipChars=function(r,m){for(var w=this.src.length;rw;)if(m!==this.src.charCodeAt(--r))return r+1;return r};StateBlock.prototype.getLines=function(r,m,w,U){var k,x,a,g,n,c,R,v=r;if(r>=m)return"";for(c=new Array(m-r),k=0;vw?c[k]=new Array(x-w+1).join(" ")+this.src.slice(g,n):c[k]=this.src.slice(g,n)}return c.join("")};StateBlock.prototype.Token=Token$1;var state_block=StateBlock,Ruler$1=ruler,_rules$1=[["table",table,["paragraph","reference"]],["code",code],["fence",fence,["paragraph","reference","blockquote","list"]],["blockquote",blockquote,["paragraph","reference","blockquote","list"]],["hr",hr,["paragraph","reference","blockquote","list"]],["list",list,["paragraph","reference","blockquote"]],["reference",reference],["html_block",html_block,["paragraph","reference","blockquote"]],["heading",heading,["paragraph","reference","blockquote"]],["lheading",lheading],["paragraph",paragraph]];function ParserBlock$1(){this.ruler=new Ruler$1;for(var b=0;b<_rules$1.length;b++)this.ruler.push(_rules$1[b][0],_rules$1[b][1],{alt:(_rules$1[b][2]||[]).slice()})}ParserBlock$1.prototype.tokenize=function(b,r,m){for(var w,U,k,x=this.ruler.getRules(""),a=x.length,g=r,n=!1,c=b.md.options.maxNesting;g=m||b.sCount[g]=c){b.line=m;break}for(k=b.line,U=0;U=b.line)throw new Error("block rule didn't increment state.line");break}if(!w)throw new Error("none of the block rules matched");b.tight=!n,b.isEmpty(b.line-1)&&(n=!0),g=b.line,g0||(w=r.pos,U=r.posMax,w+3>U)||r.src.charCodeAt(w)!==58||r.src.charCodeAt(w+1)!==47||r.src.charCodeAt(w+2)!==47||(k=r.pending.match(SCHEME_RE),!k)||(x=k[1],a=r.md.linkify.matchAtStart(r.src.slice(w-x.length)),!a)||(g=a.url,g.length<=x.length)||(g=g.replace(/\*+$/,""),n=r.md.normalizeLink(g),!r.md.validateLink(n))?!1:(m||(r.pending=r.pending.slice(0,-x.length),c=r.push("link_open","a",1),c.attrs=[["href",n]],c.markup="linkify",c.info="auto",c=r.push("text","",0),c.content=r.md.normalizeLinkText(g),c=r.push("link_close","a",-1),c.markup="linkify",c.info="auto"),r.pos+=g.length-x.length,!0)},isSpace$3=utils$1.isSpace,newline=function(r,m){var w,U,k,x=r.pos;if(r.src.charCodeAt(x)!==10)return!1;if(w=r.pending.length-1,U=r.posMax,!m)if(w>=0&&r.pending.charCodeAt(w)===32)if(w>=1&&r.pending.charCodeAt(w-1)===32){for(k=w-1;k>=1&&r.pending.charCodeAt(k-1)===32;)k--;r.pending=r.pending.slice(0,k),r.push("hardbreak","br",0)}else r.pending=r.pending.slice(0,-1),r.push("softbreak","br",0);else r.push("softbreak","br",0);for(x++;x?@[]^_`{|}~-".split("").forEach(function(b){ESCAPED[b.charCodeAt(0)]=1});var _escape=function(r,m){var w,U,k,x,a,g=r.pos,n=r.posMax;if(r.src.charCodeAt(g)!==92||(g++,g>=n))return!1;if(w=r.src.charCodeAt(g),w===10){for(m||r.push("hardbreak","br",0),g++;g=55296&&w<=56319&&g+1=56320&&U<=57343&&(x+=r.src[g+1],g++)),k="\\"+x,m||(a=r.push("text_special","",0),w<256&&ESCAPED[w]!==0?a.content=x:a.content=k,a.markup=k,a.info="escape"),r.pos=g+1,!0},backticks=function(r,m){var w,U,k,x,a,g,n,c,R=r.pos,v=r.src.charCodeAt(R);if(v!==96)return!1;for(w=R,R++,U=r.posMax;R=0;m--)w=r[m],!(w.marker!==95&&w.marker!==42)&&w.end!==-1&&(U=r[w.end],a=m>0&&r[m-1].end===w.end+1&&r[m-1].marker===w.marker&&r[m-1].token===w.token-1&&r[w.end+1].token===U.token+1,x=String.fromCharCode(w.marker),k=b.tokens[w.token],k.type=a?"strong_open":"em_open",k.tag=a?"strong":"em",k.nesting=1,k.markup=a?x+x:x,k.content="",k=b.tokens[U.token],k.type=a?"strong_close":"em_close",k.tag=a?"strong":"em",k.nesting=-1,k.markup=a?x+x:x,k.content="",a&&(b.tokens[r[m-1].token].content="",b.tokens[r[w.end+1].token].content="",m--))}emphasis.postProcess=function(r){var m,w=r.tokens_meta,U=r.tokens_meta.length;for(postProcess(r,r.delimiters),m=0;m=O)return!1;if(B=g,n=r.md.helpers.parseLinkDestination(r.src,g,r.posMax),n.ok){for(v=r.md.normalizeLink(n.str),r.md.validateLink(v)?g=n.pos:v="",B=g;g=O||r.src.charCodeAt(g)!==41)&&(P=!0),g++}if(P){if(typeof r.env.references>"u")return!1;if(g=0?k=r.src.slice(B,g++):g=x+1):g=x+1,k||(k=r.src.slice(a,x)),c=r.env.references[normalizeReference$1(k)],!c)return r.pos=L,!1;v=c.href,e=c.title}return m||(r.pos=a,r.posMax=x,R=r.push("link_open","a",1),R.attrs=w=[["href",v]],e&&w.push(["title",e]),r.linkLevel++,r.md.inline.tokenize(r),r.linkLevel--,R=r.push("link_close","a",-1)),r.pos=g,r.posMax=O,!0},normalizeReference=utils$1.normalizeReference,isSpace=utils$1.isSpace,image=function(r,m){var w,U,k,x,a,g,n,c,R,v,e,L,O,B="",P=r.pos,S=r.posMax;if(r.src.charCodeAt(r.pos)!==33||r.src.charCodeAt(r.pos+1)!==91||(g=r.pos+2,a=r.md.helpers.parseLinkLabel(r,r.pos+1,!1),a<0))return!1;if(n=a+1,n=S)return!1;for(O=n,R=r.md.helpers.parseLinkDestination(r.src,n,r.posMax),R.ok&&(B=r.md.normalizeLink(R.str),r.md.validateLink(B)?n=R.pos:B=""),O=n;n=S||r.src.charCodeAt(n)!==41)return r.pos=P,!1;n++}else{if(typeof r.env.references>"u")return!1;if(n=0?x=r.src.slice(O,n++):n=a+1):n=a+1,x||(x=r.src.slice(g,a)),c=r.env.references[normalizeReference(x)],!c)return r.pos=P,!1;B=c.href,v=c.title}return m||(k=r.src.slice(g,a),r.md.inline.parse(k,r.md,r.env,L=[]),e=r.push("image","img",0),e.attrs=w=[["src",B],["alt",""]],e.children=L,e.content=k,v&&w.push(["title",v])),r.pos=n,r.posMax=S,!0},EMAIL_RE=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,AUTOLINK_RE=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,autolink=function(r,m){var w,U,k,x,a,g,n=r.pos;if(r.src.charCodeAt(n)!==60)return!1;for(a=r.pos,g=r.posMax;;){if(++n>=g||(x=r.src.charCodeAt(n),x===60))return!1;if(x===62)break}return w=r.src.slice(a+1,n),AUTOLINK_RE.test(w)?(U=r.md.normalizeLink(w),r.md.validateLink(U)?(m||(k=r.push("link_open","a",1),k.attrs=[["href",U]],k.markup="autolink",k.info="auto",k=r.push("text","",0),k.content=r.md.normalizeLinkText(w),k=r.push("link_close","a",-1),k.markup="autolink",k.info="auto"),r.pos+=w.length+2,!0):!1):EMAIL_RE.test(w)?(U=r.md.normalizeLink("mailto:"+w),r.md.validateLink(U)?(m||(k=r.push("link_open","a",1),k.attrs=[["href",U]],k.markup="autolink",k.info="auto",k=r.push("text","",0),k.content=r.md.normalizeLinkText(w),k=r.push("link_close","a",-1),k.markup="autolink",k.info="auto"),r.pos+=w.length+2,!0):!1):!1},HTML_TAG_RE=html_re.HTML_TAG_RE;function isLinkOpen(b){return/^\s]/i.test(b)}function isLinkClose(b){return/^<\/a\s*>/i.test(b)}function isLetter(b){var r=b|32;return r>=97&&r<=122}var html_inline=function(r,m){var w,U,k,x,a=r.pos;return!r.md.options.html||(k=r.posMax,r.src.charCodeAt(a)!==60||a+2>=k)||(w=r.src.charCodeAt(a+1),w!==33&&w!==63&&w!==47&&!isLetter(w))||(U=r.src.slice(a).match(HTML_TAG_RE),!U)?!1:(m||(x=r.push("html_inline","",0),x.content=U[0],isLinkOpen(x.content)&&r.linkLevel++,isLinkClose(x.content)&&r.linkLevel--),r.pos+=U[0].length,!0)},entities=entities$1,has$2=utils$1.has,isValidEntityCode=utils$1.isValidEntityCode,fromCodePoint=utils$1.fromCodePoint,DIGITAL_RE=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,NAMED_RE=/^&([a-z][a-z0-9]{1,31});/i,entity=function(r,m){var w,U,k,x,a=r.pos,g=r.posMax;if(r.src.charCodeAt(a)!==38||a+1>=g)return!1;if(w=r.src.charCodeAt(a+1),w===35){if(k=r.src.slice(a).match(DIGITAL_RE),k)return m||(U=k[1][0].toLowerCase()==="x"?parseInt(k[1].slice(1),16):parseInt(k[1],10),x=r.push("text_special","",0),x.content=isValidEntityCode(U)?fromCodePoint(U):fromCodePoint(65533),x.markup=k[0],x.info="entity"),r.pos+=k[0].length,!0}else if(k=r.src.slice(a).match(NAMED_RE),k&&has$2(entities,k[1]))return m||(x=r.push("text_special","",0),x.content=entities[k[1]],x.markup=k[0],x.info="entity"),r.pos+=k[0].length,!0;return!1};function processDelimiters(b){var r,m,w,U,k,x,a,g,n={},c=b.length;if(c){var R=0,v=-2,e=[];for(r=0;rk;m-=e[m]+1)if(U=b[m],U.marker===w.marker&&U.open&&U.end<0&&(a=!1,(U.close||w.open)&&(U.length+w.length)%3===0&&(U.length%3!==0||w.length%3!==0)&&(a=!0),!a)){g=m>0&&!b[m-1].open?e[m-1]+1:0,e[r]=r-m+g,e[m]=g,w.open=!1,U.end=r,U.close=!1,x=-1,v=-2;break}x!==-1&&(n[w.marker][(w.open?3:0)+(w.length||0)%3]=x)}}}var balance_pairs=function(r){var m,w=r.tokens_meta,U=r.tokens_meta.length;for(processDelimiters(r.delimiters),m=0;m0&&U++,k[m].type==="text"&&m+10&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],U={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(w),this.tokens_meta.push(U),w};StateInline.prototype.scanDelims=function(b,r){var m=b,w,U,k,x,a,g,n,c,R,v=!0,e=!0,L=this.posMax,O=this.src.charCodeAt(b);for(w=b>0?this.src.charCodeAt(b-1):32;m=b.pos)throw new Error("inline rule didn't increment state.pos");break}}else b.pos=b.posMax;r||b.pos++,a[w]=b.pos};ParserInline$1.prototype.tokenize=function(b){for(var r,m,w,U=this.ruler.getRules(""),k=U.length,x=b.posMax,a=b.md.options.maxNesting;b.pos=b.pos)throw new Error("inline rule didn't increment state.pos");break}}if(r){if(b.pos>=x)break;continue}b.pending+=b.src[b.pos++]}b.pending&&b.pushPending()};ParserInline$1.prototype.parse=function(b,r,m,w){var U,k,x,a=new this.State(b,r,m,w);for(this.tokenize(a),k=this.ruler2.getRules(""),x=k.length,U=0;U|$))",r.tpl_email_fuzzy="(^|"+m+'|"|\\(|'+r.src_ZCc+")("+r.src_email_name+"@"+r.tpl_host_fuzzy_strict+")",r.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_fuzzy_strict+r.src_path+")",r.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_no_ip_fuzzy_strict+r.src_path+")",r}),re}function assign(b){var r=Array.prototype.slice.call(arguments,1);return r.forEach(function(m){m&&Object.keys(m).forEach(function(w){b[w]=m[w]})}),b}function _class(b){return Object.prototype.toString.call(b)}function isString(b){return _class(b)==="[object String]"}function isObject$1(b){return _class(b)==="[object Object]"}function isRegExp(b){return _class(b)==="[object RegExp]"}function isFunction(b){return _class(b)==="[object Function]"}function escapeRE(b){return b.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var defaultOptions={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function isOptionsObj(b){return Object.keys(b||{}).reduce(function(r,m){return r||defaultOptions.hasOwnProperty(m)},!1)}var defaultSchemas={"http:":{validate:function(b,r,m){var w=b.slice(r);return m.re.http||(m.re.http=new RegExp("^\\/\\/"+m.re.src_auth+m.re.src_host_port_strict+m.re.src_path,"i")),m.re.http.test(w)?w.match(m.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(b,r,m){var w=b.slice(r);return m.re.no_http||(m.re.no_http=new RegExp("^"+m.re.src_auth+"(?:localhost|(?:(?:"+m.re.src_domain+")\\.)+"+m.re.src_domain_root+")"+m.re.src_port+m.re.src_host_terminator+m.re.src_path,"i")),m.re.no_http.test(w)?r>=3&&b[r-3]===":"||r>=3&&b[r-3]==="/"?0:w.match(m.re.no_http)[0].length:0}},"mailto:":{validate:function(b,r,m){var w=b.slice(r);return m.re.mailto||(m.re.mailto=new RegExp("^"+m.re.src_email_name+"@"+m.re.src_host_strict,"i")),m.re.mailto.test(w)?w.match(m.re.mailto)[0].length:0}}},tlds_2ch_src_re="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",tlds_default="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function resetScanCache(b){b.__index__=-1,b.__text_cache__=""}function createValidator(b){return function(r,m){var w=r.slice(m);return b.test(w)?w.match(b)[0].length:0}}function createNormalizer(){return function(b,r){r.normalize(b)}}function compile(b){var r=b.re=requireRe()(b.__opts__),m=b.__tlds__.slice();b.onCompile(),b.__tlds_replaced__||m.push(tlds_2ch_src_re),m.push(r.src_xn),r.src_tlds=m.join("|");function w(a){return a.replace("%TLDS%",r.src_tlds)}r.email_fuzzy=RegExp(w(r.tpl_email_fuzzy),"i"),r.link_fuzzy=RegExp(w(r.tpl_link_fuzzy),"i"),r.link_no_ip_fuzzy=RegExp(w(r.tpl_link_no_ip_fuzzy),"i"),r.host_fuzzy_test=RegExp(w(r.tpl_host_fuzzy_test),"i");var U=[];b.__compiled__={};function k(a,g){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+g)}Object.keys(b.__schemas__).forEach(function(a){var g=b.__schemas__[a];if(g!==null){var n={validate:null,link:null};if(b.__compiled__[a]=n,isObject$1(g)){isRegExp(g.validate)?n.validate=createValidator(g.validate):isFunction(g.validate)?n.validate=g.validate:k(a,g),isFunction(g.normalize)?n.normalize=g.normalize:g.normalize?k(a,g):n.normalize=createNormalizer();return}if(isString(g)){U.push(a);return}k(a,g)}}),U.forEach(function(a){b.__compiled__[b.__schemas__[a]]&&(b.__compiled__[a].validate=b.__compiled__[b.__schemas__[a]].validate,b.__compiled__[a].normalize=b.__compiled__[b.__schemas__[a]].normalize)}),b.__compiled__[""]={validate:null,normalize:createNormalizer()};var x=Object.keys(b.__compiled__).filter(function(a){return a.length>0&&b.__compiled__[a]}).map(escapeRE).join("|");b.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+r.src_ZPCc+"))("+x+")","i"),b.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+r.src_ZPCc+"))("+x+")","ig"),b.re.schema_at_start=RegExp("^"+b.re.schema_search.source,"i"),b.re.pretest=RegExp("("+b.re.schema_test.source+")|("+b.re.host_fuzzy_test.source+")|@","i"),resetScanCache(b)}function Match(b,r){var m=b.__index__,w=b.__last_index__,U=b.__text_cache__.slice(m,w);this.schema=b.__schema__.toLowerCase(),this.index=m+r,this.lastIndex=w+r,this.raw=U,this.text=U,this.url=U}function createMatch(b,r){var m=new Match(b,r);return b.__compiled__[m.schema].normalize(m,b),m}function LinkifyIt$1(b,r){if(!(this instanceof LinkifyIt$1))return new LinkifyIt$1(b,r);r||isOptionsObj(b)&&(r=b,b={}),this.__opts__=assign({},defaultOptions,r),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=assign({},defaultSchemas,b),this.__compiled__={},this.__tlds__=tlds_default,this.__tlds_replaced__=!1,this.re={},compile(this)}LinkifyIt$1.prototype.add=function(r,m){return this.__schemas__[r]=m,compile(this),this};LinkifyIt$1.prototype.set=function(r){return this.__opts__=assign(this.__opts__,r),this};LinkifyIt$1.prototype.test=function(r){if(this.__text_cache__=r,this.__index__=-1,!r.length)return!1;var m,w,U,k,x,a,g,n,c;if(this.re.schema_test.test(r)){for(g=this.re.schema_search,g.lastIndex=0;(m=g.exec(r))!==null;)if(k=this.testSchemaAt(r,m[2],g.lastIndex),k){this.__schema__=m[2],this.__index__=m.index+m[1].length,this.__last_index__=m.index+m[0].length+k;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(n=r.search(this.re.host_fuzzy_test),n>=0&&(this.__index__<0||n=0&&(U=r.match(this.re.email_fuzzy))!==null&&(x=U.index+U[1].length,a=U.index+U[0].length,(this.__index__<0||xthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=x,this.__last_index__=a))),this.__index__>=0};LinkifyIt$1.prototype.pretest=function(r){return this.re.pretest.test(r)};LinkifyIt$1.prototype.testSchemaAt=function(r,m,w){return this.__compiled__[m.toLowerCase()]?this.__compiled__[m.toLowerCase()].validate(r,w,this):0};LinkifyIt$1.prototype.match=function(r){var m=0,w=[];this.__index__>=0&&this.__text_cache__===r&&(w.push(createMatch(this,m)),m=this.__last_index__);for(var U=m?r.slice(m):r;this.test(U);)w.push(createMatch(this,m)),U=U.slice(this.__last_index__),m+=this.__last_index__;return w.length?w:null};LinkifyIt$1.prototype.matchAtStart=function(r){if(this.__text_cache__=r,this.__index__=-1,!r.length)return null;var m=this.re.schema_at_start.exec(r);if(!m)return null;var w=this.testSchemaAt(r,m[2],m[0].length);return w?(this.__schema__=m[2],this.__index__=m.index+m[1].length,this.__last_index__=m.index+m[0].length+w,createMatch(this,0)):null};LinkifyIt$1.prototype.tlds=function(r,m){return r=Array.isArray(r)?r:[r],m?(this.__tlds__=this.__tlds__.concat(r).sort().filter(function(w,U,k){return w!==k[U-1]}).reverse(),compile(this),this):(this.__tlds__=r.slice(),this.__tlds_replaced__=!0,compile(this),this)};LinkifyIt$1.prototype.normalize=function(r){r.schema||(r.url="http://"+r.url),r.schema==="mailto:"&&!/^mailto:/i.test(r.url)&&(r.url="mailto:"+r.url)};LinkifyIt$1.prototype.onCompile=function(){};var linkifyIt=LinkifyIt$1;const maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter="-",regexPunycode=/^xn--/,regexNonASCII=/[^\0-\x7F]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor$1=Math.floor,stringFromCharCode=String.fromCharCode;function error(b){throw new RangeError(errors[b])}function map(b,r){const m=[];let w=b.length;for(;w--;)m[w]=r(b[w]);return m}function mapDomain(b,r){const m=b.split("@");let w="";m.length>1&&(w=m[0]+"@",b=m[1]),b=b.replace(regexSeparators,".");const U=b.split("."),k=map(U,r).join(".");return w+k}function ucs2decode(b){const r=[];let m=0;const w=b.length;for(;m=55296&&U<=56319&&mString.fromCodePoint(...b),basicToDigit=function(b){return b>=48&&b<58?26+(b-48):b>=65&&b<91?b-65:b>=97&&b<123?b-97:base},digitToBasic=function(b,r){return b+22+75*(b<26)-((r!=0)<<5)},adapt=function(b,r,m){let w=0;for(b=m?floor$1(b/damp):b>>1,b+=floor$1(b/r);b>baseMinusTMin*tMax>>1;w+=base)b=floor$1(b/baseMinusTMin);return floor$1(w+(baseMinusTMin+1)*b/(b+skew))},decode=function(b){const r=[],m=b.length;let w=0,U=initialN,k=initialBias,x=b.lastIndexOf(delimiter);x<0&&(x=0);for(let a=0;a=128&&error("not-basic"),r.push(b.charCodeAt(a));for(let a=x>0?x+1:0;a=m&&error("invalid-input");const v=basicToDigit(b.charCodeAt(a++));v>=base&&error("invalid-input"),v>floor$1((maxInt-w)/c)&&error("overflow"),w+=v*c;const e=R<=k?tMin:R>=k+tMax?tMax:R-k;if(vfloor$1(maxInt/L)&&error("overflow"),c*=L}const n=r.length+1;k=adapt(w-g,n,g==0),floor$1(w/n)>maxInt-U&&error("overflow"),U+=floor$1(w/n),w%=n,r.splice(w++,0,U)}return String.fromCodePoint(...r)},encode=function(b){const r=[];b=ucs2decode(b);const m=b.length;let w=initialN,U=0,k=initialBias;for(const g of b)g<128&&r.push(stringFromCharCode(g));const x=r.length;let a=x;for(x&&r.push(delimiter);a=w&&cfloor$1((maxInt-U)/n)&&error("overflow"),U+=(g-w)*n,w=g;for(const c of b)if(cmaxInt&&error("overflow"),c===w){let R=U;for(let v=base;;v+=base){const e=v<=k?tMin:v>=k+tMax?tMax:v-k;if(R=0))try{r.hostname=punycode.toASCII(r.hostname)}catch{}return mdurl.encode(mdurl.format(r))}function normalizeLinkText(b){var r=mdurl.parse(b,!0);if(r.hostname&&(!r.protocol||RECODE_HOSTNAME_FOR.indexOf(r.protocol)>=0))try{r.hostname=punycode.toUnicode(r.hostname)}catch{}return mdurl.decode(mdurl.format(r),mdurl.decode.defaultChars+"%")}function MarkdownIt$1(b,r){if(!(this instanceof MarkdownIt$1))return new MarkdownIt$1(b,r);r||utils.isString(b)||(r=b||{},b="default"),this.inline=new ParserInline,this.block=new ParserBlock,this.core=new ParserCore,this.renderer=new Renderer,this.linkify=new LinkifyIt,this.validateLink=validateLink,this.normalizeLink=normalizeLink,this.normalizeLinkText=normalizeLinkText,this.utils=utils,this.helpers=utils.assign({},helpers),this.options={},this.configure(b),r&&this.set(r)}MarkdownIt$1.prototype.set=function(b){return utils.assign(this.options,b),this};MarkdownIt$1.prototype.configure=function(b){var r=this,m;if(utils.isString(b)&&(m=b,b=config[m],!b))throw new Error('Wrong `markdown-it` preset "'+m+'", check name');if(!b)throw new Error("Wrong `markdown-it` preset, can't be empty");return b.options&&r.set(b.options),b.components&&Object.keys(b.components).forEach(function(w){b.components[w].rules&&r[w].ruler.enableOnly(b.components[w].rules),b.components[w].rules2&&r[w].ruler2.enableOnly(b.components[w].rules2)}),this};MarkdownIt$1.prototype.enable=function(b,r){var m=[];Array.isArray(b)||(b=[b]),["core","block","inline"].forEach(function(U){m=m.concat(this[U].ruler.enable(b,!0))},this),m=m.concat(this.inline.ruler2.enable(b,!0));var w=b.filter(function(U){return m.indexOf(U)<0});if(w.length&&!r)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+w);return this};MarkdownIt$1.prototype.disable=function(b,r){var m=[];Array.isArray(b)||(b=[b]),["core","block","inline"].forEach(function(U){m=m.concat(this[U].ruler.disable(b,!0))},this),m=m.concat(this.inline.ruler2.disable(b,!0));var w=b.filter(function(U){return m.indexOf(U)<0});if(w.length&&!r)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+w);return this};MarkdownIt$1.prototype.use=function(b){var r=[this].concat(Array.prototype.slice.call(arguments,1));return b.apply(b,r),this};MarkdownIt$1.prototype.parse=function(b,r){if(typeof b!="string")throw new Error("Input data should be a String");var m=new this.core.State(b,this,r);return this.core.process(m),m.tokens};MarkdownIt$1.prototype.render=function(b,r){return r=r||{},this.renderer.render(this.parse(b,r),this.options,r)};MarkdownIt$1.prototype.parseInline=function(b,r){var m=new this.core.State(b,this,r);return m.inlineMode=!0,this.core.process(m),m.tokens};MarkdownIt$1.prototype.renderInline=function(b,r){return r=r||{},this.renderer.render(this.parseInline(b,r),this.options,r)};var lib$1=MarkdownIt$1,markdownIt=lib$1;const MarkdownIt=getDefaultExportFromCjs(markdownIt);function findFirstMatchingConfig(b,r){var m,w,U=b.attrs[b.attrIndex("href")][1];for(m=0;mk.fileInfo?k.fileInfo.split(","):[]);computed(()=>{try{return JSON.parse(k.customId).buttons||[]}catch{return[]}});const k=b,x=m;useMessage();const{isMobile:a}=useBasicLayout();let g;watch(()=>k.status,D=>{g!==void 0&&(clearInterval(g),g=void 0),D===2&&(g=window.setInterval(async()=>{await c.queryActiveChatLogList()},5e3))},{immediate:!0}),onUnmounted(()=>{g!==void 0&&clearInterval(g)}),onUnmounted(()=>{clearInterval(g)});const n=ref(),c=useChatStore(),R=new MarkdownIt({linkify:!0,highlight(D,M){if(!!(M&&HighlightJS.getLanguage(M))){const N=M??"";return L(HighlightJS.highlight(D,{language:N}).value,N)}return L(HighlightJS.highlightAuto(D).value,"")}}),v=computed(()=>k.fileInfo);R.use(mila,{attrs:{target:"_blank",rel:"noopener"}}),R.use(mdKatex,{blockClass:"katexmath-block rounded-md p-[10px]",errorColor:" #cc0000"});const e=computed(()=>{const D=k.text??"";return k.asRawText?D:R.render(D)});function L(D,M){return`
${M}${t("chat.copyCode")}
${D}
`}function O(){x("copy")}function B(){x("delete")}async function P(D){try{let M;M=JSON.parse(k.customId);const F=M.find(N=>N.customId.includes(`upsample::${D}`));if(F){const N=F.customId;await w({msg:t("chat.enlargeImagePrefix")+D+t("chat.enlargeImageSuffix"),action:"UPSCALE",drawId:k.drawId,customId:N,modelType:2,model:"midjourney",modelName:k.modelName})}}catch{}}async function S(D){try{let M;M=JSON.parse(k.customId);const F=M.find(N=>N.customId.includes(`variation::${D}`));if(F){const N=F.customId;await w({msg:t("chat.transformImagePrefix")+D+t("chat.transformImageSuffix"),action:"UPSCALE",drawId:k.drawId,customId:N,modelType:2,model:"midjourney",modelName:k.modelName})}}catch{}}async function _(D){try{let M;M=JSON.parse(k.customId);const F=M.find(N=>N.customId.includes(`Outpaint::${D}`));if(F){const N=F.customId;await w({msg:t("chat.expandDrawing"),action:"UPSCALE",drawId:k.drawId,customId:N,modelType:2,model:"midjourney",modelName:k.modelName})}}catch{}}async function l(D){try{let M;M=JSON.parse(k.customId);const F=M.find(N=>N.customId.includes(`${D}`));if(F){const N=F.customId;await w({msg:t("chat.advancedTransform"),action:"UPSCALE",drawId:k.drawId,customId:N,modelType:2,model:"midjourney",modelName:k.modelName})}}catch{}}async function y(D){try{let M;M=JSON.parse(k.customId);const F=M.find(N=>N.customId.includes(`pan_${D}`));if(F){const N=F.customId;await w({msg:t("chat.translateImage"),action:"UPSCALE",drawId:k.drawId,customId:N,modelType:2,model:"midjourney",modelName:k.modelName})}}catch{}}return r({textRef:n}),(D,M)=>{var F,N,G,W,J,Y,V,H,z;return openBlock(),createElementBlock("div",_hoisted_1$i,[createBaseVNode("div",{ref_key:"textRef",ref:n,class:"leading-relaxed break-words w-full"},[createBaseVNode("div",_hoisted_2$h,[createBaseVNode("div",_hoisted_3$g,[D.status===2&&!e.value?(openBlock(),createElementBlock("span",_hoisted_4$c)):createCommentVNode("",!0),createBaseVNode("div",_hoisted_5$c,[createBaseVNode("div",_hoisted_6$b,[createBaseVNode("div",{class:normalizeClass(["w-full markdown-body text-gray-800 dark:text-gray-400 ",{"markdown-body-generate":D.status===1||D.status===2||!e.value}]),innerHTML:e.value},null,10,_hoisted_7$a)])])])])],512),createBaseVNode("div",_hoisted_8$9,[createBaseVNode("div",null,[createBaseVNode("div",null,[createBaseVNode("div",null,[createBaseVNode("div",{class:"my-1 flex w-auto",style:normalizeStyle({maxWidth:unref(a)?"100%":"",maxHeight:unref(a)?"":"30vh",objectFit:"contain"})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(U.value,(X,q)=>(openBlock(),createBlock(unref(NImage),{key:q,src:X,"preview-src":X,alt:"图片",class:"rounded-md flex mb-1 mr-4",style:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain"}},null,8,["src","preview-src"]))),128))],4)]),(F=D.model)!=null&&F.includes("midjourney")&&v.value&&D.status===3?(openBlock(),createElementBlock("div",_hoisted_9$9,[(N=D.customId)!=null&&N.includes("::upsample::1::")?(openBlock(),createElementBlock("div",_hoisted_10$8,[createBaseVNode("div",_hoisted_11$7,[createBaseVNode("div",_hoisted_12$6,[createBaseVNode("button",{onClick:M[0]||(M[0]=X=>P(1)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t)("chat.U1")),1),createBaseVNode("button",{onClick:M[1]||(M[1]=X=>P(2)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t)("chat.U2")),1),createBaseVNode("button",{onClick:M[2]||(M[2]=X=>P(3)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t)("chat.U3")),1),createBaseVNode("button",{onClick:M[3]||(M[3]=X=>P(4)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t)("chat.U4")),1)])])])):createCommentVNode("",!0),(G=D.customId)!=null&&G.includes("::variation::1::")?(openBlock(),createElementBlock("div",_hoisted_13$5,[createBaseVNode("div",_hoisted_14$5,[createBaseVNode("div",_hoisted_15$5,[createBaseVNode("button",{onClick:M[4]||(M[4]=X=>S(1)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t)("chat.V1")),1),createBaseVNode("button",{onClick:M[5]||(M[5]=X=>S(2)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t)("chat.V2")),1),createBaseVNode("button",{onClick:M[6]||(M[6]=X=>S(3)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t)("chat.V3")),1),createBaseVNode("button",{onClick:M[7]||(M[7]=X=>S(4)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t)("chat.V4")),1)])])])):createCommentVNode("",!0),(W=D.customId)!=null&&W.includes("::pan_left::1::")?(openBlock(),createElementBlock("div",_hoisted_16$5,[createBaseVNode("div",_hoisted_17$5,[createBaseVNode("div",_hoisted_18$5,[createBaseVNode("button",{onClick:M[8]||(M[8]=X=>y("left")),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t)("chat.panLeft")),1),createBaseVNode("button",{onClick:M[9]||(M[9]=X=>y("right")),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t)("chat.panRight")),1),createBaseVNode("button",{onClick:M[10]||(M[10]=X=>y("up")),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t)("chat.panUp")),1),createBaseVNode("button",{onClick:M[11]||(M[11]=X=>y("down")),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t)("chat.panDown")),1)])])])):createCommentVNode("",!0),(J=D.customId)!=null&&J.includes("Outpaint::50")?(openBlock(),createElementBlock("div",_hoisted_19$3,[createBaseVNode("div",_hoisted_20$3,[createBaseVNode("div",_hoisted_21$2,[(Y=D.customId)!=null&&Y.includes("Outpaint::50")?(openBlock(),createElementBlock("button",{key:0,onClick:M[12]||(M[12]=X=>_(75)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t)("chat.zoomIn15x")),1)):createCommentVNode("",!0),(V=D.customId)!=null&&V.includes("Outpaint::50")?(openBlock(),createElementBlock("button",{key:1,onClick:M[13]||(M[13]=X=>_(50)),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t)("chat.zoomIn2x")),1)):createCommentVNode("",!0),(H=D.customId)!=null&&H.includes("low_variation")?(openBlock(),createElementBlock("button",{key:2,onClick:M[14]||(M[14]=X=>l("low")),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t)("chat.minorTransform")),1)):createCommentVNode("",!0),(z=D.customId)!=null&&z.includes("low_variation")?(openBlock(),createElementBlock("button",{key:3,onClick:M[15]||(M[15]=X=>l("high")),class:"w-24 shadow-sm rounded-md py-1 text-sm hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-800 dark:text-gray-400 ring-1 ring-inset ring-gray-100 dark:bg-gray-800 dark:ring-gray-800"},toDisplayString(unref(t)("chat.strongTransform")),1)):createCommentVNode("",!0)])])])):createCommentVNode("",!0)])):createCommentVNode("",!0)])])]),createBaseVNode("div",_hoisted_22$2,[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_23$2,[createBaseVNode("button",{class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:O},[createVNode(unref(Copy),{class:"flex mr-1"}),createBaseVNode("span",_hoisted_24$2,toDisplayString(unref(t)("chat.copy")),1)]),createBaseVNode("button",{class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:B},[createVNode(unref(Delete),{class:"mr-1"}),createBaseVNode("span",_hoisted_25$2,toDisplayString(unref(t)("chat.delete")),1)])])])])])}}}),_hoisted_1$h={class:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50"},_hoisted_2$g={key:0,class:"p-2 w-full h-1/2"},_hoisted_3$f={key:1,class:"w-3/4 p-2"},_sfc_main$g=defineComponent({__name:"FullScreenModal",props:{text:{},close:{type:Function}},setup(b){const r=b,m=ref(),w=ref(r.text),{isMobile:U}=useBasicLayout(),k=new browserExports.Transformer;let x;onMounted(()=>{m.value&&(x=Markmap.create(m.value),a())}),watch(w,()=>{a()}),watchEffect(()=>{w.value=r.text});const a=()=>{const{root:c}=k.transform(w.value);x.setData(c),x.fit()},g=()=>{r.close()},n=async()=>{if(m.value){const c=await toPng(m.value);FileSaver_minExports.saveAs(c,"mindmap.png")}};return(c,R)=>(openBlock(),createElementBlock("div",_hoisted_1$h,[createVNode(unref(Close),{size:"18",class:"absolute top-3 right-3 cursor-pointer z-30",onClick:g}),createBaseVNode("div",{class:normalizeClass(["bg-white dark:bg-gray-900 w-full h-full p-4",[unref(U)?"flex-col":"flex"]])},[unref(U)?(openBlock(),createElementBlock("div",_hoisted_2$g,[(openBlock(),createElementBlock("svg",{ref_key:"svgRef",ref:m,class:"box-border w-full h-full border rounded-md dark:bg-gray-800 dark:text-gray-100 dark:border-gray-700",draggable:"false"},null,512))])):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["p-2 flex flex-col",[unref(U)?"w-full h-1/2":"w-1/4"]])},[withDirectives(createBaseVNode("textarea",{"onUpdate:modelValue":R[0]||(R[0]=v=>w.value=v),class:"w-full h-full p-2 border rounded-md resize-none text-base dark:bg-gray-800 dark:text-gray-100 dark:border-gray-700"},null,512),[[vModelText,w.value]]),createBaseVNode("div",{class:"mt-2 flex justify-end"},[createBaseVNode("button",{onClick:g,class:"px-4 py-2 shadow-sm ring-1 ring-inset bg-white ring-gray-300 hover:bg-gray-50 text-gray-900 rounded-md mr-4 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:ring-gray-700 dark:hover:ring-gray-600"}," 取消 "),createBaseVNode("button",{onClick:n,class:"px-4 py-2 shadow-sm bg-primary-600 hover:bg-primary-500 text-white dark rounded-md"}," 保存 ")])],2),unref(U)?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_3$f,[(openBlock(),createElementBlock("svg",{ref_key:"svgRef",ref:m,class:"box-border w-full h-full border rounded-md dark:bg-gray-800 dark:text-gray-100 dark:border-gray-700",draggable:"false"},null,512))]))],2)]))}}),_hoisted_1$g={class:"flex flex-col group max-w-full"},_hoisted_2$f={class:"text-wrap rounded-lg min-w-12 text-gray-800 dark:text-gray-400"},_hoisted_3$e={class:"flex transition-opacity duration-300 text-gray-700 opacity-0 group-hover:opacity-100"},_hoisted_4$b={class:"mt-1 flex"},_hoisted_5$b=createBaseVNode("span",{class:"flex text-sm"},"复制",-1),_hoisted_6$a=createBaseVNode("span",{class:"flex text-sm"},"删除",-1),_sfc_main$f=defineComponent({__name:"index",props:{chatId:{},inversion:{type:Boolean},text:{},modelType:{},status:{},loading:{type:Boolean},asRawText:{type:Boolean},fileInfo:{},ttsUrl:{},model:{}},emits:["delete","copy"],setup(b,{expose:r,emit:m}){useBasicLayout();const w=new browserExports.Transformer,U=b,k=m,x=ref(),a=ref(),g=ref(!1),n=ref(U.text);useChatStore();let c=null;onMounted(()=>{v=Markmap.create(x.value),R()});const R=()=>{c&&clearTimeout(c),c=setTimeout(()=>{const{root:_}=w.transform(U.text);v.setData(_),v.fit()},200)};let v;const e=new MarkdownIt({linkify:!0,highlight(_,l){if(!!(l&&HighlightJS.getLanguage(l))){const D=l??"";return L(HighlightJS.highlight(_,{language:D}).value,D)}return L(HighlightJS.highlightAuto(_).value,"")}});e.renderer.rules.image=function(_,l){const y=_[l],D=y.attrGet("src"),M=y.attrGet("title"),F=y.content;return`${F}`},e.use(mila,{attrs:{target:"_blank",rel:"noopener"}}),e.use(mdKatex,{blockClass:"katexmath-block rounded-md p-[10px]",errorColor:" #cc0000"}),onUpdated(R);function L(_,l){return`
${l}${t("chat.copyCode")}
${_}
`}function O(){k("copy")}function B(){k("delete")}async function P(){n.value=U.text,g.value=!0}function S(){g.value=!1}return r({textRef:a}),(_,l)=>(openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$g,[createBaseVNode("div",_hoisted_2$f,[createBaseVNode("div",{class:"flex w-full relative",onClick:P},[(openBlock(),createElementBlock("svg",{ref_key:"svgRef",ref:x,class:"box-border w-[600px] h-[400px] border rounded-md border-gray-200 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-100",style:{"pointer-events":"none"},draggable:"false"},null,512))])]),createBaseVNode("div",_hoisted_3$e,[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_4$b,[createBaseVNode("button",{class:"flex items-center text-gray-400 hover:text-gray-700 dark:text-gray-600 dark:hover:text-gray-400 mr-3",text:"",onClick:O},[createVNode(unref(Copy),{class:"flex mr-1"}),_hoisted_5$b]),createBaseVNode("button",{class:"flex ml-0 items-center text-gray-400 hover:text-gray-700 dark:text-gray-600 dark:hover:text-gray-400 mr-3",text:"",onClick:B},[createVNode(unref(Delete),{class:"mr-1"}),_hoisted_6$a])])])])]),g.value?(openBlock(),createBlock(_sfc_main$g,{key:0,text:n.value,close:S},null,8,["text"])):createCommentVNode("",!0)],64))}}),index_vue_vue_type_style_index_0_lang$2="",_hoisted_1$f={class:"flex flex-col group max-w-full"},_hoisted_2$e={class:"pr-12 w-full flex flex-col items-start"},_hoisted_3$d={key:0,class:"relative flex items-center justify-center group hover:opacity-80 transition-opacity duration-300"},_hoisted_4$a=["src","onClick"],_hoisted_5$a={class:"flex flex-col ml-4 w-full"},_hoisted_6$9={class:"flex justify-between items-center"},_hoisted_7$9=["onClick"],_hoisted_8$8=["onClick"],_hoisted_9$8={key:0,class:"flex items-center justify-start mt-8 w-full"},_hoisted_10$7={class:"text-white text-sm mr-2 w-8 text-right flex items-center"},_hoisted_11$6={class:"flex-grow flex items-center min-w-0"},_hoisted_12$5=["onUpdate:modelValue","onInput","onChange"],_hoisted_13$4={class:"text-white text-sm ml-4 mr-2 flex items-center"},_hoisted_14$4=["src","onTimeupdate"],_hoisted_15$4={key:0,class:"w-full"},_hoisted_16$4={key:0,class:"loading-anchor"},_hoisted_17$4=["innerHTML"],_hoisted_18$4={key:0,class:"flex-none mt-2 mb-1"},_hoisted_19$2={class:"flex transition-opacity duration-300 text-gray-700 opacity-0 group-hover:opacity-100"},_hoisted_20$2={class:"mt-1 flex"},_hoisted_21$1={class:"flex text-sm"},_hoisted_22$1={class:"flex text-sm"},_hoisted_23$1=["src"],_hoisted_24$1={key:1,class:"fixed inset-0 z-50 flex flex-col items-center justify-center bg-black bg-opacity-50"},_hoisted_25$1=createBaseVNode("div",{class:"flex-none"},[createBaseVNode("h2",{class:"text-2xl mb-4 font-semibold"},"歌词编辑"),createBaseVNode("p",{class:"mb-4"},"您可以点击内容进行编辑修改")],-1),_hoisted_26$1={class:"flex-1 overflow-y-auto p-4 rounded-lg border-2 dark:border-gray-700"},_hoisted_27$1={class:"flex items-center mb-4"},_hoisted_28$1=createBaseVNode("label",{class:"w-12 text-gray-500 font-semibold"},"标题",-1),_hoisted_29$1={class:"mb-4"},_hoisted_30$1={class:"flex flex-col"},_hoisted_31$1={key:0,class:"text-gray-500 font-semibold"},_hoisted_32$1=["onUpdate:modelValue"],_hoisted_33$1={class:"flex mt-4"},_hoisted_34$1={class:"flex-1 justify-start"},_hoisted_35$1={class:"py-1"},_hoisted_36$1=["onClick"],_hoisted_37$1={href:"#",class:"flex w-full items-center pl-3 pr-3 py-2 hover:bg-gray-100 dark:hover:bg-gray-700"},_hoisted_38$1={class:"w-28"},_hoisted_39$1={class:"py-1"},_hoisted_40$1=["onClick"],_hoisted_41$1={href:"#",class:"flex w-full items-center pl-3 pr-3 py-2 hover:bg-gray-100 dark:hover:bg-gray-700"},_hoisted_42$1={class:"w-28"},_sfc_main$e=defineComponent({__name:"Music",props:{inversion:{type:Boolean},text:{},modelType:{},status:{},loading:{type:Boolean},asRawText:{type:Boolean},videoUrl:{},audioUrl:{},model:{},drawId:{},customId:{},modelName:{},action:{},taskData:{},fileInfo:{},modelAvatar:{}},emits:["delete","copy"],setup(b,{expose:r,emit:m}){const w=ref(-1),U=ref(!1),k=ref(""),x=inject("onConversation"),a=b,g=m,{isMobile:n}=useBasicLayout();let c;const R=ref(!1),v=ref({title:"",text:""}),e=()=>{v.value=JSON.parse(a.taskData||"{}")};watch(()=>a.taskData,()=>{e()},{immediate:!0}),onMounted(()=>{e()});const L=()=>{R.value=!1},O=ref([{id:"default",title:"普通歌曲",values:!1},{id:"instrumental",title:"纯音乐",values:!0}]),B=ref([{id:"default",title:"默认",values:""},{id:"pop",title:"流行",values:"pop"},{id:"rock",title:"摇滚",values:"rock"},{id:"hiphop",title:"嘻哈/说唱",values:"hiphop"},{id:"jazz",title:"爵士",values:"jazz"},{id:"blues",title:"蓝调/灵魂",values:"blues"},{id:"country",title:"乡村",values:"country"},{id:"classical",title:"古典",values:"classical"},{id:"folk",title:"民谣",values:"folk"},{id:"latin",title:"拉丁",values:"latin"},{id:"world",title:"世界音乐",values:"world"},{id:"electronic",title:"电子",values:"electronic"},{id:"newage",title:"新世纪",values:"newage"},{id:"metal",title:"重金属",values:"metal"},{id:"punk",title:"朋克",values:"punk"},{id:"rnb",title:"节奏布鲁斯",values:"rnb"}]),P=ref(O.value[0]),S=ref(B.value[0]),_=ye=>{U.value=ye.values,P.value=ye},l=ye=>{k.value=ye.values,S.value=ye},y=computed(()=>v.value.text.split(` `).filter(ye=>ye.trim()!=="")),D=async()=>{R.value=!1;try{const ye=JSON.stringify({title:v.value.title,prompt:U.value?"":y.value.join(` `),mv:"chirp-v3-5",make_instrumental:U.value,tags:k.value});await x({msg:`${v.value.title}`,action:"MUSIC",customId:ye,modelType:2,model:a.model||"suno-v3",modelName:a.modelName||"AI音乐",modelAvatar:a.modelAvatar})}catch{}};watch(()=>a.status,ye=>{c!==void 0&&(clearInterval(c),c=void 0),ye===2&&(c=window.setInterval(async()=>{await Q.queryActiveChatLogList()},5e3))},{immediate:!0}),onUnmounted(()=>{c!==void 0&&clearInterval(c)});const M=computed(()=>a.fileInfo?a.fileInfo.split(",").map(ye=>({type:"image",url:ye})):[]),F=computed(()=>a.videoUrl?a.videoUrl.split(",").map(ye=>({type:"video",url:ye})):[]),N=computed(()=>a.audioUrl?a.audioUrl.split(",").map(ye=>({type:"audio",url:ye})):[]),G=computed(()=>(v.value=JSON.parse(a.taskData||"{}"),M.value.map((ye,se)=>({image:ye,video:F.value[se]||{type:"video",url:""},audio:N.value[se]||{type:"audio",url:""},title:"标题",subtitle:"媒体风格"})))),W=ref(new Array(G.value.length).fill(0)),J=ye=>{const se=H.value[ye];se&&(q.value[ye]=se.currentTime,se.duration&&($.value[ye]=se.duration),W.value[ye]=se.currentTime/se.duration*100)},Y=(ye,se)=>{const Ie=se.target;W.value[ye]=Number(Ie.value)},V=(ye,se)=>{const Ie=H.value[ye],Ce=se.target;if(Ie){const oe=Number(Ce.value)/100*Ie.duration;Ie.currentTime=oe}},H=ref([]),z=ye=>{const se=H.value[ye];se&&(H.value.forEach((Ie,Ce)=>{Ie&&Ce!==ye&&(Ie.pause(),Ie.currentTime=0)}),se.paused?(se.play(),w.value=ye):(se.pause(),w.value=-1))},X=ye=>{if(!isFinite(ye)||isNaN(ye))return"";const se=Math.floor(ye/60),Ie=Math.floor(ye%60);return`${se}:${Ie<10?"0":""}${Ie}`},q=ref([]),$=ref([]),fe=ref(),Q=useChatStore(),ie=new MarkdownIt({linkify:!0,highlight(ye,se){if(!!(se&&HighlightJS.getLanguage(se))){const Ce=se??"";return K(HighlightJS.highlight(ye,{language:Ce}).value,Ce)}return K(HighlightJS.highlightAuto(ye).value,"")}});ie.use(mila,{attrs:{target:"_blank",rel:"noopener"}}),ie.use(mdKatex,{blockClass:"katexmath-block rounded-md p-[10px]",errorColor:" #cc0000"});const Te=computed(()=>{const ye=a.text??"";return a.asRawText?ye:ie.render(ye)});function me(ye){fetch(ye).then(se=>se.blob()).then(se=>{const Ie=document.createElement("a"),Ce=URL.createObjectURL(se);Ie.href=Ce;const oe=a.text||"音频文件";Ie.setAttribute("download",`${oe}.mp3`),Ie.style.display="none",document.body.appendChild(Ie),Ie.click(),document.body.removeChild(Ie),URL.revokeObjectURL(Ce)}).catch(se=>{})}function K(ye,se){return`
${se}${t("chat.copyCode")}
${ye}
`}function ce(){g("copy")}function de(){g("delete")}r({textRef:fe});const Z=async()=>{try{v.value=JSON.parse(a.taskData||"{}");const ye=JSON.stringify({title:v.value.title,prompt:v.value.text,mv:"chirp-v3-5",make_instrumental:U.value});await x({msg:`${v.value.title}`,action:"MUSIC",customId:ye,modelType:2,model:a.model||"suno-v3",modelName:a.modelName||"AI音乐",modelAvatar:a.modelAvatar})}catch{}},ae=ref(!1),he=ref(""),we=ye=>{if(!ye){Q.queryActiveChatLogList();return}he.value=ye,ae.value=!0},_e=()=>{ae.value=!1};return(ye,se)=>(openBlock(),createElementBlock(Fragment,null,[createBaseVNode("div",_hoisted_1$f,[createBaseVNode("div",{ref_key:"textRef",ref:fe,class:"leading-relaxed break-words"},[createBaseVNode("div",_hoisted_2$e,[(openBlock(!0),createElementBlock(Fragment,null,renderList(G.value,(Ie,Ce)=>(openBlock(),createElementBlock("div",{key:Ce,class:normalizeClass(["flex justify-between items-center p-2 bg-gray-800 rounded-md mb-2",unref(n)?"w-[80vw]":"min-w-[35vw]"])},[Ie.audio.url?(openBlock(),createElementBlock("div",_hoisted_3$d,[createBaseVNode("img",{src:Ie.image.url,onClick:oe=>z(Ce),class:normalizeClass(["rounded-md cursor-pointer transition-opacity duration-300",{"opacity-80":w.value===Ce}]),style:normalizeStyle({maxWidth:unref(n)?"80px":"100px",maxHeight:unref(n)?"80px":"100px"})},null,14,_hoisted_4$a),(openBlock(),createBlock(resolveDynamicComponent(w.value===Ce?unref(Pause):unref(PlayOne)),{class:normalizeClass(["absolute text-white text-3xl opacity-80 cursor-pointer transition-opacity duration-300",{"opacity-100":w.value===Ce}]),onClick:oe=>z(Ce)},null,8,["onClick","class"]))])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_5$a,[createBaseVNode("div",_hoisted_6$9,[createBaseVNode("h3",{class:"text-white text-sm hover:underline cursor-pointer",onClick:oe=>we(Ie.video.url)},toDisplayString(a.text),9,_hoisted_7$9),createBaseVNode("button",{onClick:oe=>me(Ie.audio.url),class:"w-8 h-8 text-white text-sm rounded-full hover:bg-gray-700 px-2 py-1 mr-2"},[createVNode(unref(DownloadOne),{size:"16"})],8,_hoisted_8$8)]),Ie.audio.url?(openBlock(),createElementBlock("div",_hoisted_9$8,[createBaseVNode("span",_hoisted_10$7,toDisplayString(X(q.value[Ce]||0)),1),createBaseVNode("div",_hoisted_11$6,[withDirectives(createBaseVNode("input",{type:"range",min:"0",max:"100",step:"1","onUpdate:modelValue":oe=>W.value[Ce]=oe,onInput:oe=>Y(Ce,oe),onChange:oe=>V(Ce,oe),class:"flex-grow flex max-w-full"},null,40,_hoisted_12$5),[[vModelText,W.value[Ce]]])]),createBaseVNode("span",_hoisted_13$4,toDisplayString(X($.value[Ce]||0)),1)])):createCommentVNode("",!0)]),createBaseVNode("audio",{ref_for:!0,ref_key:"audioRefs",ref:H,src:Ie.audio.url,onTimeupdate:oe=>J(Ce),hidden:""},null,40,_hoisted_14$4)],2))),128)),ye.fileInfo?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_15$4,[ye.status===2&&!Te.value?(openBlock(),createElementBlock("span",_hoisted_16$4)):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["w-full markdown-body text-gray-800 dark:text-gray-400 ",{"markdown-body-generate":ye.status===2||!Te.value}]),innerHTML:Te.value},null,10,_hoisted_17$4)]))]),ye.status===3&&ye.action==="LYRICS"?(openBlock(),createElementBlock("div",_hoisted_18$4,[createBaseVNode("div",{class:"flex justify-start"},[createBaseVNode("button",{onClick:Z,class:"px-4 py-1 shadow-sm bg-primary-600 hover:bg-primary-500 text-white dark rounded-md"}," 创作音乐 ")])])):createCommentVNode("",!0)],512),createBaseVNode("div",_hoisted_19$2,[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_20$2,[createBaseVNode("button",{class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:ce},[createVNode(unref(Copy),{class:"flex mr-1"}),createBaseVNode("span",_hoisted_21$1,toDisplayString(unref(t)("chat.copy")),1)]),createBaseVNode("button",{class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:de},[createVNode(unref(Delete),{class:"mr-1"}),createBaseVNode("span",_hoisted_22$1,toDisplayString(unref(t)("chat.delete")),1)])])])])]),ae.value?(openBlock(),createElementBlock("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:_e},[createBaseVNode("div",{class:"relative p-0 rounded-md shadow-md max-w-full max-h-full",onClick:se[0]||(se[0]=withModifiers(()=>{},["stop"]))},[createVNode(unref(Close),{onClick:_e,class:"absolute top-2 -right-8 text-gray-500 hover:text-gray-600",size:"26"}),createBaseVNode("video",{src:he.value,controls:"",class:"w-full h-full rounded-md"},null,8,_hoisted_23$1)])])):createCommentVNode("",!0),R.value?(openBlock(),createElementBlock("div",_hoisted_24$1,[createBaseVNode("div",{class:normalizeClass(["bg-white p-6 w-full flex flex-col dark:bg-gray-900 dark:text-gray-400 relative",[unref(n)?"w-full h-full":"max-h-[80vh] max-w-3xl rounded-lg shadow-lg"]])},[createVNode(unref(Close),{size:"18",class:"absolute top-3 right-3 cursor-pointer z-30",onClick:L}),_hoisted_25$1,createBaseVNode("div",_hoisted_26$1,[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_27$1,[_hoisted_28$1,withDirectives(createBaseVNode("input",{type:"text","onUpdate:modelValue":se[1]||(se[1]=Ie=>v.value.title=Ie),class:"flex-1 p-2 text-lg font-semibold dark:bg-gray-900 dark:text-gray-400"},null,512),[[vModelText,v.value.title]])]),createBaseVNode("div",_hoisted_29$1,[createBaseVNode("div",_hoisted_30$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(y.value,(Ie,Ce)=>(openBlock(),createElementBlock("div",{key:Ce,class:"py-2"},[Ie.startsWith("[")&&Ie.endsWith("]")?(openBlock(),createElementBlock("span",_hoisted_31$1,toDisplayString(Ie),1)):withDirectives((openBlock(),createElementBlock("textarea",{key:1,"onUpdate:modelValue":oe=>y.value[Ce]=oe,class:"ml-3 flex-1 py-1 w-full dark:bg-gray-900 dark:text-gray-400",rows:"1",style:{resize:"none"}},null,8,_hoisted_32$1)),[[vModelText,y.value[Ce]]])]))),128))])])])]),createBaseVNode("div",_hoisted_33$1,[createBaseVNode("div",_hoisted_34$1,[createVNode(unref(ge$1),{as:"div",class:"relative inline-block text-left shadow-sm rounded-md group mr-4"},{default:withCtx(()=>[createVNode(unref(Se),{class:"px-4 py-2 shadow-sm ring-1 ring-inset bg-white ring-gray-300 hover:bg-gray-50 text-gray-900 rounded-md mr-4 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:ring-gray-700 dark:hover:ring-gray-600 inline-flex w-full justify-center text-sm group-hover:bg-gray-50 dark:group-hover:bg-gray-700 group-hover:text-gray-900 dark:group-hover:text-gray-400 whitespace-nowrap"},{default:withCtx(()=>[createTextVNode(toDisplayString(P.value.title),1)]),_:1}),createVNode(Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute left-0 bottom-full mb-2 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 dark:bg-gray-800 dark:text-gray-400 text-gray-900 overflow-y-auto"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_35$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(O.value,(Ie,Ce)=>(openBlock(),createBlock(unref(be),{key:Ce},{default:withCtx(()=>[createBaseVNode("div",{class:"group flex items-center",onClick:oe=>_(Ie)},[createBaseVNode("a",_hoisted_37$1,[createBaseVNode("div",_hoisted_38$1,toDisplayString(Ie.title),1)])],8,_hoisted_36$1)]),_:2},1024))),128))])]),_:1})]),_:1})]),_:1}),createVNode(unref(ge$1),{as:"div",class:"relative inline-block text-left shadow-sm rounded-md group"},{default:withCtx(()=>[createVNode(unref(Se),{class:"px-3 py-2 shadow-sm ring-1 ring-inset bg-white ring-gray-300 hover:bg-gray-50 text-gray-900 rounded-md mr-4 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:ring-gray-700 dark:hover:ring-gray-600 inline-flex w-full justify-center text-sm group-hover:bg-gray-50 dark:group-hover:bg-gray-700 group-hover:text-gray-900 dark:group-hover:text-gray-400 whitespace-nowrap"},{default:withCtx(()=>[createTextVNode(" 风格:"+toDisplayString(S.value.title),1)]),_:1}),createVNode(Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute left-0 bottom-full mb-2 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 dark:bg-gray-800 dark:text-gray-400 text-gray-900 overflow-y-auto max-h-[60vh]"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_39$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(B.value,(Ie,Ce)=>(openBlock(),createBlock(unref(be),{key:Ce},{default:withCtx(()=>[createBaseVNode("div",{class:"group flex items-center",onClick:oe=>l(Ie)},[createBaseVNode("a",_hoisted_41$1,[createBaseVNode("div",_hoisted_42$1,toDisplayString(Ie.title),1)])],8,_hoisted_40$1)]),_:2},1024))),128))])]),_:1})]),_:1})]),_:1})]),createBaseVNode("div",{class:"flex justify-end"},[createBaseVNode("button",{onClick:L,class:"px-4 py-2 shadow-sm ring-1 ring-inset bg-white ring-gray-300 hover:bg-gray-50 text-gray-900 rounded-md mr-4 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:ring-gray-700 dark:hover:ring-gray-600"}," 取消 "),createBaseVNode("button",{onClick:D,class:"px-4 py-2 shadow-sm bg-primary-600 hover:bg-primary-500 text-white rounded-md"}," 提交 ")])])],2)])):createCommentVNode("",!0)],64))}}),_hoisted_1$e={class:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50"},_hoisted_2$d={class:"w-full h-full p-2"},_hoisted_3$c=["srcDoc"],_sfc_main$d=defineComponent({__name:"htmlModal",props:{text:{},close:{type:Function}},setup(b){const r=b,m=ref(null),w=ref(r.text),{isMobile:U}=useBasicLayout();watch(w,()=>{k()}),watchEffect(()=>{w.value=r.text});const k=()=>{if(m.value){const a=m.value.contentDocument;a&&(a.body.innerHTML=w.value)}},x=()=>{r.close()};return(a,g)=>(openBlock(),createElementBlock("div",_hoisted_1$e,[createVNode(unref(Close),{size:"18",class:"absolute top-3 right-3 cursor-pointer z-30",onClick:x}),createBaseVNode("div",{class:normalizeClass(["bg-white dark:bg-gray-900 w-full h-full p-4",[unref(U)?"flex-col":"flex"]])},[createBaseVNode("div",_hoisted_2$d,[createBaseVNode("iframe",{srcDoc:w.value,class:"box-border w-full h-full border rounded-md"},null,8,_hoisted_3$c)])],2)]))}}),htmlModal_vue_vue_type_style_index_0_scoped_1dd8d391_lang="",HtmlModal=_export_sfc(_sfc_main$d,[["__scopeId","data-v-1dd8d391"]]),_hoisted_1$d={class:"flex flex-col group w-full"},_hoisted_2$c={class:"text-wrap rounded-lg min-w-12 flex w-full flex-col"},_hoisted_3$b={key:0,class:"flex flex-col items-start",style:{"max-width":"100%"}},_hoisted_4$9={class:"w-full"},_hoisted_5$9={key:0,class:"loading-anchor"},_hoisted_6$8=["innerHTML"],_hoisted_7$8={key:0,class:"p-3 rounded-lg w-full bg-opacity dark:bg-gray-750 break-words",style:{"max-width":"100%"}},_hoisted_8$7=["textContent"],_hoisted_9$7={class:"flex p-3 items-center justify-center ring-1 ring-inset ring-gray-200 dark:ring-gray-700 rounded-lg hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700"},_hoisted_10$6={key:0,class:"flex-none mt-2 mb-1"},_hoisted_11$5={class:"mt-2 flex"},_hoisted_12$4={class:"flex text-sm"},_hoisted_13$3={class:"flex text-sm"},_hoisted_14$3=createBaseVNode("span",{class:"flex text-sm"},"取消",-1),_hoisted_15$3=createBaseVNode("span",{class:"flex text-sm"},"提交",-1),_hoisted_16$3=createBaseVNode("span",{class:"flex text-sm"},"编辑",-1),_hoisted_17$3=createBaseVNode("span",{class:"flex text-sm"},"重新生成",-1),_hoisted_18$3={class:"flex text-sm"},_sfc_main$c=defineComponent({__name:"index",props:{chatId:{},index:{},inversion:{type:Boolean},text:{},modelType:{},status:{},loading:{type:Boolean},asRawText:{type:Boolean},fileInfo:{},ttsUrl:{},model:{}},emits:["regenerate","delete","copy"],setup(b,{expose:r,emit:m}){const w=useAuthStore(),U=inject("onConversation"),k=inject("handleRegenerate"),x=b,a=ref(!1),g=ref(x.text),n=computed(()=>{var Te;return Number((Te=w.globalConfig)==null?void 0:Te.isHideTts)===1}),c=m,{isMobile:R}=useBasicLayout(),v=ref(),e=ref(x.ttsUrl),L=ref(""),O=ref(!1),B=ref("paused");let P=null;const S=ref(x.text),_=ref(!1),l=ref(null);function y(){l.value&&(l.value.style.height="auto",l.value.style.height=l.value.scrollHeight+"px")}function D(){S.value=x.text,_.value=!1}const M=computed(()=>B.value!=="paused"||_.value?"opacity-100":"opacity-0 group-hover:opacity-100");async function F(){if(!(B.value==="loading"||B.value==="playing")){if(e.value){N(e.value);return}B.value="loading";try{const me=(await fetchTtsAPIProces({chatId:x.chatId,prompt:x.text})).ttsUrl;if(me)e.value=me,N(me);else throw new Error("TTS URL is undefined")}catch{B.value="paused"}}}function N(Te){P&&P.pause(),P=new Audio(Te),P.play().then(()=>{B.value="playing"}).catch(me=>{B.value="paused"}),P.onended=()=>{B.value="paused",P=null}}function G(){P&&(P.pause(),B.value="paused")}function W(){B.value==="playing"?G():F()}const J=new MarkdownIt({linkify:!0,highlight(Te,me){if(!!(me&&HighlightJS.getLanguage(me))){const ce=me??"";return console.log("language",me),me==="html"&&(L.value=Te,O.value=!0,console.log("htmlContent",L.value)),X(HighlightJS.highlight(Te,{language:ce}).value,ce)}return X(HighlightJS.highlightAuto(Te).value,"")}});J.renderer.rules.image=function(Te,me,K,ce,de){const Z=Te[me],ae=Z.attrGet("src"),he=Z.attrGet("title"),we=Z.content;return`${we}`};const Y=computed(()=>x.fileInfo),V=computed(()=>Y.value?/\.(mp4|avi|mov|wmv|flv)$/i.test(Y.value):!1),H=computed(()=>Y.value?/\.(jpg|jpeg|png|gif|webp)$/i.test(Y.value):!1);J.use(mila,{attrs:{target:"_blank",rel:"noopener"}}),J.use(mdKatex,{blockClass:"katexmath-block p-0 flex h-full items-center justify-start",inlineClass:"katexmath-inline",errorColor:" #cc0000"});const z=computed(()=>{const me=(x.text??"").replace(/\\\(\s*/g,"$").replace(/\s*\\\)/g,"$").replace(/\\\[\s*/g,"$$").replace(/\s*\\\]/g,"$$");return x.asRawText?me:J.render(me)});function X(Te,me){return`
${me}${t("chat.copyCode")}
${Te}
`}async function q(){g.value=x.text,a.value=!0}function $(){a.value=!1}async function fe(){if(_.value){const Te=S.value;await U({msg:Te,chatId:x.chatId}),_.value=!1}else S.value=x.text,_.value=!0,await nextTick(),y()}function Q(){c("copy")}function ie(){c("delete")}return r({textRef:v}),onMounted(()=>{var K;const Te=(K=document.querySelector(".preview-button"))==null?void 0:K.id,me=Te?document.getElementById(Te):null;me&&me.addEventListener("click",q)}),(Te,me)=>(openBlock(),createElementBlock("div",_hoisted_1$d,[createBaseVNode("div",_hoisted_2$c,[createBaseVNode("div",{ref_key:"textRef",ref:v,class:"flex w-full"},[Te.inversion?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["flex justify-end w-full",[unref(R)?"pl-20":"pl-28 "]]),style:{"max-width":"100%"}},[_.value?(openBlock(),createElementBlock("div",_hoisted_7$8,[withDirectives(createBaseVNode("textarea",{"onUpdate:modelValue":me[0]||(me[0]=K=>S.value=K),class:"min-w-full text-base resize-none overflow-hidden bg-transparent whitespace-pre-wrap text-gray-950 dark:text-gray-100",onInput:y,onKeydown:withKeys(fe,["enter"]),ref_key:"textarea",ref:l},null,544),[[vModelText,S.value]])])):(openBlock(),createElementBlock("div",{key:1,class:"p-3 rounded-lg text-base bg-opacity dark:bg-gray-750 break-words whitespace-pre-wrap text-gray-950 dark:text-gray-100",textContent:toDisplayString(z.value),style:{"max-width":"100%"}},null,8,_hoisted_8$7))],2)):(openBlock(),createElementBlock("div",_hoisted_3$b,[createBaseVNode("div",_hoisted_4$9,[Te.loading&&!z.value?(openBlock(),createElementBlock("span",_hoisted_5$9)):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["markdown-body text-gray-950 dark:text-gray-100",{"markdown-body-generate":Te.loading||!z.value}]),innerHTML:z.value},null,10,_hoisted_6$8)])]))],512),Y.value&&!H.value&&!V.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["my-1 flex w-full",[{"justify-end":Te.inversion}]])},[createBaseVNode("div",_hoisted_9$7,[createBaseVNode("span",null,toDisplayString(unref(t)("chat.fileAnalysis")),1)])],2)):createCommentVNode("",!0),Y.value&&H.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["mt-2 flex w-full",[{" justify-end":Te.inversion}]]),style:normalizeStyle({maxHeight:unref(R)?"":"30vh",maxWidth:(unref(R),"100%")})},[createVNode(unref(NImage),{src:Y.value,"preview-src":Y.value,alt:"图片",class:normalizeClass(["rounded-md flex w-full",[{" justify-end":Te.inversion}]])},null,8,["src","preview-src","class"])],6)):createCommentVNode("",!0)]),O.value&&!Te.inversion?(openBlock(),createElementBlock("div",_hoisted_10$6,[createBaseVNode("div",{class:"flex justify-start"},[createBaseVNode("button",{onClick:q,class:"px-4 py-1 shadow-sm ring-1 ring-inset bg-white ring-gray-300 hover:bg-gray-50 text-gray-900 rounded-md mr-4 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:ring-gray-700 dark:hover:ring-gray-600"}," 预览代码 ")])])):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["flex transition-opacity duration-300 text-gray-700 ",M.value,{"justify-end":Te.inversion}])},[createBaseVNode("div",_hoisted_11$5,[_.value?createCommentVNode("",!0):(openBlock(),createElementBlock("button",{key:0,class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:Q},[createVNode(unref(Copy),{class:"flex mr-1"}),createBaseVNode("span",_hoisted_12$4,toDisplayString(unref(t)("chat.copy")),1)])),_.value?createCommentVNode("",!0):(openBlock(),createElementBlock("button",{key:1,class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:ie},[createVNode(unref(Delete),{class:"mr-1"}),createBaseVNode("span",_hoisted_13$3,toDisplayString(unref(t)("chat.delete")),1)])),_.value?(openBlock(),createElementBlock("button",{key:2,class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:D},[createVNode(unref(Close),{class:"mr-1"}),_hoisted_14$3])):createCommentVNode("",!0),_.value?(openBlock(),createElementBlock("button",{key:3,class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:fe},[createVNode(unref(Send),{class:"mr-1"}),_hoisted_15$3])):createCommentVNode("",!0),Te.inversion&&!_.value&&Te.modelType===1?(openBlock(),createElementBlock("button",{key:4,class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:fe},[createVNode(unref(Edit),{class:"mr-1"}),_hoisted_16$3])):createCommentVNode("",!0),!Te.inversion&&Te.modelType===1?(openBlock(),createElementBlock("button",{key:5,class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:me[1]||(me[1]=K=>unref(k)(Te.index,Te.chatId))},[createVNode(unref(Refresh),{class:"mr-1"}),_hoisted_17$3])):createCommentVNode("",!0),!Te.inversion&&!n.value?(openBlock(),createElementBlock("button",{key:6,class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:W},[B.value==="paused"?(openBlock(),createBlock(unref(VoiceMessage),{key:0,class:"flex mr-1"})):createCommentVNode("",!0),B.value==="loading"?(openBlock(),createBlock(unref(Rotation),{key:1,class:"rotate-icon flex mr-1"})):B.value==="playing"?(openBlock(),createBlock(unref(PauseOne),{key:2,class:"flex mr-1"})):createCommentVNode("",!0),createBaseVNode("span",_hoisted_18$3,toDisplayString(B.value==="playing"?unref(t)("chat.pause"):B.value==="loading"?unref(t)("chat.loading"):unref(t)("chat.readAloud")),1)])):createCommentVNode("",!0)])],2),a.value?(openBlock(),createBlock(HtmlModal,{key:1,text:L.value,close:$},null,8,["text"])):createCommentVNode("",!0)]))}}),index_vue_vue_type_style_index_0_lang$1="",_hoisted_1$c={class:"flex flex-col group max-w-full"},_hoisted_2$b={class:"flex flex-col items-start"},_hoisted_3$a={class:"w-full"},_hoisted_4$8={key:0,class:"loading-anchor"},_hoisted_5$8=["innerHTML"],_hoisted_6$7=["src"],_hoisted_7$7={class:"text-wrap rounded-lg min-w-12 text-gray-800 dark:text-gray-400"},_hoisted_8$6={class:"mt-1 flex"},_hoisted_9$6={class:"flex text-sm"},_hoisted_10$5={class:"flex text-sm"},_sfc_main$b=defineComponent({__name:"Video",props:{inversion:{type:Boolean},error:{type:Boolean},text:{},modelType:{},status:{},loading:{type:Boolean},asRawText:{type:Boolean},fileInfo:{},model:{},drawId:{},customId:{},modelName:{}},emits:["regenerate","delete","copy"],setup(b,{expose:r,emit:m}){const w=b,U=m,{isMobile:k}=useBasicLayout();let x;watch(()=>w.status,P=>{x!==void 0&&(clearInterval(x),x=void 0),P===2&&(x=window.setInterval(async()=>{await g.queryActiveChatLogList()},5e3))},{immediate:!0}),onUnmounted(()=>{x!==void 0&&clearInterval(x)});const a=ref(),g=useChatStore(),n=new MarkdownIt({linkify:!0,highlight(P,S){if(!!(S&&HighlightJS.getLanguage(S))){const l=S??"";return v(HighlightJS.highlight(P,{language:l}).value,l)}return v(HighlightJS.highlightAuto(P).value,"")}}),c=computed(()=>w.fileInfo);n.use(mila,{attrs:{target:"_blank",rel:"noopener"}}),n.use(mdKatex,{blockClass:"katexmath-block rounded-md p-[10px]",errorColor:" #cc0000"});const R=computed(()=>{const P=w.text??"";return w.asRawText?P:n.render(P)});function v(P,S){return`
${S}${t("chat.copyCode")}
${P}
`}function e(){U("copy")}function L(){U("delete")}r({textRef:a});const O=ref("paused"),B=computed(()=>O.value!=="paused"?"opacity-100":"opacity-0 group-hover:opacity-100");return(P,S)=>(openBlock(),createElementBlock("div",_hoisted_1$c,[createBaseVNode("div",{ref_key:"textRef",ref:a,class:"leading-relaxed break-words"},[createBaseVNode("div",_hoisted_2$b,[createBaseVNode("div",_hoisted_3$a,[P.status===2&&!R.value?(openBlock(),createElementBlock("span",_hoisted_4$8)):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["w-full markdown-body text-gray-800 dark:text-gray-400 ",{"markdown-body-generate":P.status===2||!R.value}]),innerHTML:R.value},null,10,_hoisted_5$8)]),createBaseVNode("div",null,[withDirectives((openBlock(),createElementBlock("div",{key:c.value},[createBaseVNode("video",{src:c.value,controls:"",class:"rounded-md flex",style:normalizeStyle({maxWidth:unref(k)?"90%":"30vw",maxHeight:unref(k)?"":"30vh"})}," 您的浏览器不支持视频标签。 ",12,_hoisted_6$7)])),[[vShow,c.value]])])])],512),createBaseVNode("div",_hoisted_7$7,[createBaseVNode("div",null,[createBaseVNode("div",null,[createBaseVNode("div",{class:"my-1 flex w-auto",style:normalizeStyle({maxWidth:unref(k)?"100%":"25rem"})},null,4)])])]),createBaseVNode("div",{class:normalizeClass(["flex transition-opacity duration-300 text-gray-700",B.value])},[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_8$6,[createBaseVNode("button",{class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:e},[createVNode(unref(Copy),{class:"flex mr-1"}),createBaseVNode("span",_hoisted_9$6,toDisplayString(unref(t)("chat.copy")),1)]),createBaseVNode("button",{class:"flex ml-0 items-center text-gray-500 hover:text-gray-700 dark:text-gray-500 dark:hover:text-gray-300 mr-3",text:"",onClick:L},[createVNode(unref(Delete),{class:"mr-1"}),createBaseVNode("span",_hoisted_10$5,toDisplayString(unref(t)("chat.delete")),1)])])])],2)]))}}),Video_vue_vue_type_style_index_0_lang="",_hoisted_1$b={class:"flex items-center justify-center flex-shrink-0 mr-2"},_hoisted_2$a={class:"overflow-hidden text-sm items-start w-full"},_hoisted_3$9={class:"flex items-end gap-1 flex-row"},_sfc_main$a=defineComponent({__name:"index",props:{chatId:{},dateTime:{},text:{},model:{},modelName:{},modelType:{},status:{},inversion:{type:Boolean},loading:{type:Boolean},fileInfo:{},ttsUrl:{},videoUrl:{},audioUrl:{},drawId:{},extend:{},customId:{},modelAvatar:{},action:{},taskData:{},pluginParam:{},index:{}},emits:["regenerate","delete"],setup(b,{emit:r}){const m=b,w=r,U=useMessage(),k=ref(),x=ref(m.inversion),a=ref();function g(){w("delete")}function n(){copyText({text:m.text??""}),m.text&&U.success("复制成功!")}function c(){var R;(R=a.value)==null||R.scrollIntoView(),w("regenerate")}return(R,v)=>(openBlock(),createElementBlock("div",{ref_key:"messageRef",ref:a,class:"flex w-full my-2 overflow-hidden items-start flex-row'"},[createVNode(unref(NTooltip),{trigger:"hover",placement:"top-start"},{trigger:withCtx(()=>[createBaseVNode("div",_hoisted_1$b,[R.inversion?createCommentVNode("",!0):(openBlock(),createBlock(_sfc_main$i,{key:0,image:R.inversion,model:R.model,modelAvatar:R.modelAvatar},null,8,["image","model","modelAvatar"]))])]),default:withCtx(()=>[createTextVNode(" "+toDisplayString(R.modelName),1)]),_:1}),createBaseVNode("div",_hoisted_2$a,[createBaseVNode("div",_hoisted_3$9,[R.pluginParam==="mind-map"&&!R.inversion?(openBlock(),createBlock(_sfc_main$f,{key:0,ref_key:"textRef",ref:k,inversion:R.inversion,drawId:R.drawId,extend:R.extend,customId:R.customId,text:R.text,modelType:R.modelType,fileInfo:R.fileInfo,ttsUrl:R.ttsUrl,model:R.model,modelName:R.modelName,loading:R.loading,status:R.status,"as-raw-text":x.value,onRegenerate:c,onCopy:n,onDelete:g},null,8,["inversion","drawId","extend","customId","text","modelType","fileInfo","ttsUrl","model","modelName","loading","status","as-raw-text"])):R.model==="luma-video"&&!R.inversion?(openBlock(),createBlock(_sfc_main$b,{key:1,ref_key:"textRef",ref:k,inversion:R.inversion,drawId:R.drawId,extend:R.extend,customId:R.customId,text:R.text,modelType:R.modelType,fileInfo:R.fileInfo,ttsUrl:R.ttsUrl,audioUrl:R.audioUrl,videoUrl:R.videoUrl,model:R.model,modelName:R.modelName,loading:R.loading,status:R.status,"as-raw-text":x.value,action:R.action,taskData:R.taskData,modelAvatar:R.modelAvatar,onRegenerate:c,onCopy:n,onDelete:g},null,8,["inversion","drawId","extend","customId","text","modelType","fileInfo","ttsUrl","audioUrl","videoUrl","model","modelName","loading","status","as-raw-text","action","taskData","modelAvatar"])):R.model==="suno-v3"&&!R.inversion?(openBlock(),createBlock(_sfc_main$e,{key:2,ref_key:"textRef",ref:k,inversion:R.inversion,drawId:R.drawId,extend:R.extend,customId:R.customId,text:R.text,modelType:R.modelType,fileInfo:R.fileInfo,ttsUrl:R.ttsUrl,audioUrl:R.audioUrl,videoUrl:R.videoUrl,model:R.model,modelName:R.modelName,loading:R.loading,status:R.status,"as-raw-text":x.value,action:R.action,taskData:R.taskData,modelAvatar:R.modelAvatar,onRegenerate:c,onCopy:n,onDelete:g},null,8,["inversion","drawId","extend","customId","text","modelType","fileInfo","ttsUrl","audioUrl","videoUrl","model","modelName","loading","status","as-raw-text","action","taskData","modelAvatar"])):R.modelType===2&&!R.inversion?(openBlock(),createBlock(_sfc_main$h,{key:3,ref_key:"textRef",ref:k,inversion:R.inversion,drawId:R.drawId,extend:R.extend,customId:R.customId,text:R.text,modelType:R.modelType,fileInfo:R.fileInfo,ttsUrl:R.ttsUrl,model:R.model,modelName:R.modelName,loading:R.loading,status:R.status,"as-raw-text":x.value,onRegenerate:c,onCopy:n,onDelete:g},null,8,["inversion","drawId","extend","customId","text","modelType","fileInfo","ttsUrl","model","modelName","loading","status","as-raw-text"])):(openBlock(),createBlock(_sfc_main$c,{key:4,ref_key:"textRef",ref:k,index:R.index,modelName:R.modelName,chatId:R.chatId,inversion:R.inversion,text:R.text,modelType:R.modelType,fileInfo:R.fileInfo,ttsUrl:R.ttsUrl,model:R.model,loading:R.loading,"as-raw-text":x.value,onRegenerate:c,onCopy:n,onDelete:g},null,8,["index","modelName","chatId","inversion","text","modelType","fileInfo","ttsUrl","model","loading","as-raw-text"]))])])],512))}}),defaultPreset=[{title:"英语翻译官",prompt:"我希望你能担任英语翻译、拼写校对和修辞改进的角色。我会用任何语言和你交流,你会识别语言,将其翻译并用更为优美和精炼的英语回答我。请将我简单的词汇和句子替换成更为优美和高雅的表达方式,确保意思不变,但使其更具文学性。请仅回答更正和改进的部分,不要写解释。我的第一句话是“how are you ?”,请翻译它。",icon:"ri:ai-generate"},{title:"心理学家",prompt:"我想让你扮演一个心理学家。我会告诉你我的想法。我希望你能给我科学的建议,让我感觉更好。我的第一个想法,{ 在这里输入你的想法,如果你解释得更详细,我想你会得到更准确的答案。}",icon:"ri:heart-line"},{title:"产品经理",prompt:"请确认我的以下请求。请您作为产品经理回复我。我将会提供一个主题,您将帮助我编写一份包括以下章节标题的PRD文档:主题、简介、问题陈述、目标与目的、用户故事、技术要求、收益、KPI指标、开发风险以及结论。在我要求具体主题、功能或开发的PRD之前,请不要先写任何一份PRD文档。",icon:"ri:projector-line"},{title:"如何学做菜",prompt:"我要你做我的私人厨师。我会告诉你我的饮食偏好和过敏,你会建议我尝试的食谱。你应该只回复你推荐的食谱,别无其他。不要写解释。我的第一个请求是“我是一名素食主义者,我正在寻找健康的晚餐点子。”",icon:"ri:restaurant-line"},{title:"规划一个去上海的旅游攻略 参观博物馆",prompt:"我想让你做一个旅游指南。我会把我的位置写给你,你会推荐一个靠近我的位置的地方。在某些情况下,我还会告诉您我将访问的地方类型。您还会向我推荐靠近我的第一个位置的类似类型的地方。我的第一个建议请求是“我在上海,我只想参观博物馆。”",icon:"ri:map-pin-line"},{title:"穿越时空",prompt:"如果你能穿越时空,你会去哪个时代?",icon:"ri:time-line"},{title:"量子力学",prompt:"解释一下量子力学是什么?",icon:"ri:flask-line"},{title:"人工智能",prompt:"介绍一下人工智能的历史",icon:"ri:robot-line"},{title:"深度学习",prompt:"讲解一下深度学习是如何工作的?",icon:"ri:brain-line"},{title:"冯诺依曼体系结构",prompt:"请举例说明什么是冯诺依曼体系结构?",icon:"ri:computer-line"},{title:"红楼梦情感分析",prompt:"请分析《红楼梦》中林黛玉与贾宝玉的情感关系。",icon:"ri:book-2-line"},{title:"100米短跑训练",prompt:"如何训练才能提高100米短跑成绩?",icon:"ri:run-line"},{title:"北京旅游攻略",prompt:"请推荐一份适合初次来中国的外国人的北京旅游攻略。",icon:"ri:road-map-line"},{title:"低GI饮食",prompt:"什么是低GI饮食?这种饮食有哪些好处?",icon:"ri:restaurant-2-line",iconColor:"text-orange-500"},{title:"全球环境问题",prompt:"请列出目前全球主要面临的三大环境问题,并简单阐述其影响和应对措施。",icon:"ri:earth-line"},{title:"提高社交影响力",prompt:"在社交场合,如何提高自己的感染力和影响力?",icon:"ri:team-line"},{title:"地中海地理特征",prompt:"请描述一下地中海的地理特征,以及这些特征对于古代世界的影响。",icon:"ri:map-pin-line"},{title:"《肖申克的救赎》影评",prompt:"请评价电影《肖申克的救赎》的剧情、角色塑造和拍摄手法。",icon:"ri:film-line"},{title:"苹果公司成功分析",prompt:"为什么苹果公司的产品总是比其他公司的产品更受欢迎?请从市场策略、产品设计、品牌形象等方面进行分析。",icon:"ri:apple-line"},{title:"健康饮食计划",prompt:"如何制定一份健康的饮食计划?",icon:"ri:heart-line"},{title:"编程学习指南",prompt:"怎样学习编程?",icon:"ri:code-line"},{title:"巴厘岛旅游景点",prompt:"在巴厘岛旅游有哪些值得参观的景点?",icon:"ri:map-pin-2-line"},{title:"处理亲密关系分歧",prompt:"如何处理亲密关系中的分歧?",icon:"ri:heart-2-line"},{title:"费马大定理证明",prompt:"如何证明费马大定理?",icon:"ri:function-line"},{title:"吸烟相关疾病预防",prompt:"长期吸烟引起的疾病有哪些?应该如何预防?",icon:"ri:lungs-line"},{title:"克服拖延症",prompt:"如何克服拖延症?",icon:"ri:time-line"},{title:"减少家庭垃圾",prompt:"如何减少家庭垃圾产生?",icon:"ri:recycle-line"},{title:"股票价值评估",prompt:"如何评估股票的价值?",icon:"ri:stock-line"},{title:"自信的社交表现",prompt:"如何在社交场合自信地表现自己?",icon:"ri:team-line"},{title:"推荐科幻电影",prompt:"给我一个最近评分不错的科幻电影的名字和简介",icon:"ri:movie-line"},{title:"英文翻译校对",prompt:"将下面这句英文翻译成中文并纠正其中的语法错误:'Me and him goes to the store yesterday.'",icon:"ri:translate-2",iconColor:"text-orange-500"},{title:"科技类大市值股票",prompt:"给我一些市值超过1000亿美元的科技类股票",icon:"ri:bar-chart-box-line"},{title:"商品销售量预测",prompt:"基于历史销售数据,预测下周某商品的销售量。",icon:"ri:line-chart-line",iconColor:"text-cyan-500"},{title:"思念诗歌创作",prompt:"请用七言绝句写一首表达思念之情的诗歌。",icon:"ri:quill-pen-line"},{title:"情侣约会餐厅推荐",prompt:"给我一个适合情侣约会的餐厅的名字和地址。",icon:"ri:restaurant-2-line"},{title:"西班牙旅游行程规划",prompt:"我计划去西班牙旅游,请帮我安排一个10天的行程。",icon:"ri:suitcase-3-line",iconColor:"text-orange-500"},{title:"电影分类归类",prompt:"将电影从爱情片、动作片和恐怖片三种分类中分别归类。",icon:"ri:film-line"},{title:"豆腐美食推荐",prompt:"推荐一道以豆腐为主要原料的美食,附上制作方法。",icon:"ri:restaurant-line"},{title:"流行华语歌曲推荐",prompt:"推荐最近流行的三首华语歌曲,并简要介绍它们的风格和歌词主题。",icon:"ri:music-line"},{title:"减少塑料污染生活指南",prompt:"请提供三条减少塑料污染的生活指南。",icon:"ri:leaf-line"},{title:"团队合作处理矛盾",prompt:"如何在团队合作中处理与同事之间的矛盾?",icon:"ri:team-line"},{title:"前景股票投资",prompt:"你认为现在买入哪些股票比较有前景?",icon:"ri:stock-line"},{title:"科幻片推荐",prompt:"你能否给我推荐一部最近上映的好看的科幻片?",icon:"ri:film-line"},{title:"三亚旅游攻略",prompt:"希望去三亚旅游,你能提供一份详细的旅游攻略吗?",icon:"ri:suitcase-2-line",iconColor:"text-orange-500"},{title:"意大利面烹饪技巧",prompt:"我想学做意大利面,你有什么简单易学的做法推荐吗?",icon:"ri:restaurant-line"},{title:"缓解焦虑的方法",prompt:"我感到很紧张,有什么方法能够缓解焦虑吗?",icon:"ri:heart-pulse-line"},{title:"电商平台投诉处理",prompt:"我在某电商平台购买的商品质量不佳,该如何向平台进行投诉处理?",icon:"ri:feedback-line"},{title:"有效学外语的方法",prompt:"你觉得学外语最有效的方法是什么?",icon:"ri:translate-2"},{title:"职场发展建议",prompt:"我正在寻找新的工作机会,有哪些职业领域前景较好?",icon:"ri:briefcase-line",iconColor:"text-cyan-500"},{title:"日本旅游攻略",prompt:"提供至少三个去日本旅游必去的景点,并描述其特色和适合的旅游时间。",icon:"ri:map-pin-line"},{title:"提高保险销售业绩",prompt:"如何提高保险销售员的业绩?",icon:"ri:money-dollar-box-line"},{title:"公司网站改版建议",prompt:"公司网站需要进行改版,请列举至少五个需要更新的页面元素并说明更新的理由。",icon:"ri:layout-5-line"},{title:"印度首都查询",prompt:"请问印度的首都是哪里?",icon:"ri:flag-line"},{title:"红旗渠修建历史",prompt:"请问红旗渠修建的时间和地点分别是什么?",icon:"ri:history-line"},{title:"DNA结构与功能",prompt:"请简要介绍一下DNA的结构及其功能。",icon:"ri:dna-line"},{title:"GDP定义与计算",prompt:"请问什么是GDP?如何计算GDP?",icon:"ri:bar-chart-2-line"},{title:"原子核组成",prompt:"请问原子核由哪些粒子组成?它们各自的电荷和质量分别是多少?",icon:"ri:leaf-line"},{title:"莫扎特代表作",prompt:"请问莫扎特的代表作有哪些?",icon:"ri:music-2-line"},{title:"汉字词源",prompt:"请问“汉字”这个词最早出现的时间和在哪本书中出现的?",icon:"ri:book-line",iconColor:"text-orange-500"},{title:"全运会历史",prompt:"请问全运会是哪年开始举办的?每隔几年举办一次?",icon:"ri:football-line"},{title:"石油用途",prompt:"请问石油的主要用途有哪些?",icon:"ri:oil-line"},{title:"心脏起搏器介绍",prompt:"请简要介绍一下心脏起搏器的原理和使用方法。",icon:"ri:heart-2-line",iconColor:"text-cyan-500"},{title:"观众情感分析",prompt:"这部电影的观众反应如何?",icon:"ri:emotion-laugh-line"},{title:"沙滩美景短文",prompt:"请写出一篇描述橙色阳光下沙滩美景的短文。",icon:"ri:sun-line",iconColor:"text-orange-500"},{title:"亚马逊财报数据查询",prompt:"亚马逊公司的年度财报数据是多少?",icon:"ri:money-dollar-box-line"},{title:"苹果新产品新闻",prompt:"请问最近有关于苹果公司新发布产品的新闻吗?",icon:"ri:apple-line"},{title:"一加与华为手机性能对比",prompt:"请比较一加手机和华为手机的性能差异。",icon:"ri:smartphone-line"},{title:"文章主要观点提取",prompt:"请从这篇文章中提取出主要观点。",icon:"ri:article-line"},{title:"用户意图分类",prompt:"用户输入“我想要预定机票”,它的意图是什么?",icon:"ri:question-line"},{title:"文章可读性修改",prompt:"请编辑这篇文章,使得它更易读。",icon:"ri:edit-line"},{title:"星期推理",prompt:"如果今天是星期三,那么后天是星期几?",icon:"ri:calendar-line",iconColor:"text-cyan-500"},{title:"微软创始人查询",prompt:"谁创办了微软公司?",icon:"ri:building-4-line"},{title:"电影类型分类",prompt:"这个电影是哪个类型的?",icon:"ri:film-line"},{title:"乐器描述",prompt:"描述一下你最喜欢的乐器。",icon:"ri:music-line",iconColor:"text-orange-500"},{title:"句子改写",prompt:"请改写这句话:“天空飘着几朵云彩。”",icon:"ri:edit-2-line"},{title:"书籍对比",prompt:"这本书和那本书有什么区别?",icon:"ri:book-line"},{title:"自然风景描写",prompt:"写一段自然风景的描写。",icon:"ri:landscape-line"},{title:"音乐年代分类",prompt:"这首歌曲属于哪个年代的音乐?",icon:"ri:music-2-line"},{title:"餐厅美食对比",prompt:"这家餐厅和那家餐厅哪家更好吃?",icon:"ri:restaurant-line"},{title:"电影喜好",prompt:"把这句话翻译成英文:“我喜欢看电影,尤其是科幻电影。”",icon:"ri:movie-line"},{title:"理想度假胜地描述",prompt:"描述一下你理想中的度假胜地。",icon:"ri:tree-line",iconColor:"text-orange-500"},{title:"动物分类",prompt:"这个动物属于哪个门类?",icon:"ri:bug-line"},{title:"新闻摘要生成",prompt:"请问如何利用 GPT-3.5 生成一篇 100 字左右的新闻摘要?",icon:"ri:newspaper-line"},{title:"自动翻译实现",prompt:"请问如何让 GPT-3.5 实现从中文到英文的自动翻译?",icon:"ri:translate"},{title:"全球医疗保健评价",prompt:"你如何评价当前全球范围内的医疗保健体系?",icon:"ri:stethoscope-line"},{title:"文化多样性保护",prompt:"请问有哪些国家在法律层面上保护本国的文化多样性?",icon:"ri:global-line"},{title:"新能源普及国家",prompt:"现今世界上使用新能源最为普及的国家是哪些?",icon:"ri:flashlight-line"},{title:"股市走势预测",prompt:"你认为全球股市未来一个季度会走势如何?",icon:"ri:line-chart-line",iconColor:"text-orange-500"},{title:"前沿科技研究",prompt:"请列举一些目前全球前沿的科技研究领域。",icon:"ri:rocket-line"},{title:"社交媒体影响",prompt:"社交媒体对年轻人的影响有哪些?",icon:"ri:chat-3-line"},{title:"电商平台市场份额",prompt:"当前哪些电商平台在全球拥有最大的市场份额?",icon:"ri:shopping-cart-line",iconColor:"text-cyan-500"},{title:"气候变化影响",prompt:"气候变化对世界各地造成了哪些影响?",icon:"ri:sun-cloudy-line"},{title:"全球顶尖大学排名",prompt:"请问哪些国家拥有全球最顶尖的大学排名?",icon:"ri:school-line",iconColor:"text-orange-500"},{title:"手机发明者",prompt:"手机是谁发明的?",icon:"ri:smartphone-line"},{title:"旅行故事创作",prompt:"给我写一个关于旅行的故事。",icon:"ri:suitcase-3-line"},{title:"文章情感分析",prompt:"这篇文章中的情感倾向是积极、消极还是中性?",icon:"ri:emotion-line"},{title:"拼写错误纠正",prompt:"句子中的哪个单词拼写有误:“昨天我去了餐馆,品尝了他们的招牌菜。”",icon:"ri:check-line"},{title:"文章摘要生成",prompt:"请为这篇长文章生成一段简要的摘要。",icon:"ri:file-text-line"},{title:"任务执行指令",prompt:"请告诉我现在怎么做。",icon:"ri:task-line",iconColor:"text-orange-500"},{title:"明朝社会阶层研究",prompt:"针对明朝时期的社会阶层结构,你能列出几种不同的人群并描述他们的特征吗?",icon:"ri:book-line",iconColor:"text-brown-500"},{title:"物种区别解释",prompt:"两个相似物种的区别在哪里?请用一种易于理解的方式解释。",icon:"ri:leaf-line"},{title:"政治参与度分析",prompt:"哪些因素影响政治参与度?你认为如何激发公民参与政治?",icon:"ri:government-line"},{title:"情感分析技术",prompt:"如何利用自然语言处理技术进行情感分析?您可以列举一些常见的情感分析算法和应用场景吗?",icon:"ri:emotion-line"},{title:"经济发展水平衡量",prompt:"如何衡量一个国家的经济发展水平?您如何评估不同国家之间的贸易关系?",icon:"ri:money-dollar-circle-line"},{title:"机器学习简介",prompt:"讲述一下什么是机器学习,以及它在现代计算机科学中扮演的角色。",icon:"ri:robot-line"},{title:"气候变化影响",prompt:"近年来,气候变化对我们的环境造成了哪些影响?未来还可能会引起哪些灾难?",icon:"ri:sun-cloudy-line"},{title:"创新教育方法",prompt:"教师应该如何培养学生的创新思维和实践能力?您认为有效的教育方法是什么?",icon:"ri:lightbulb-line",iconColor:"text-orange-500"},{title:"学习心理素质",prompt:"学习一门新技能需要哪些心理素质?如何在学习过程中保持积极的情绪状态?",icon:"ri:psychotherapy-line"},{title:"未来科技趋势",prompt:"未来科技发展的趋势是什么?您认为会有哪些领域会得到革命性的改变?",icon:"ri:rocket-line"},{title:"电影推荐",prompt:"根据我的口味推荐一部近期上映的电影。",icon:"ri:film-line"},{title:"手机产品比较",prompt:"请分析一下 iPhone 和 Android 手机的优缺点,说明它们适合不同的用户群体。",icon:"ri:smartphone-line"},{title:"新闻头条创作",prompt:"请为明天的头条新闻写一个简短但有吸引力的标题,并提出三个相关问题。",icon:"ri:newspaper-line",iconColor:"text-orange-500"},{title:"市场零食品牌分析",prompt:"请列举五种最受欢迎的零食品牌,并分析其在市场上的竞争优势。",icon:"ri:shopping-bag-line"},{title:"自然之美短文",prompt:"请根据以下关键词写一篇题为“自然之美”的 300 字左右的短文:山水、湖泊、森林、鸟儿、日出日落。",icon:"ri:palette-line"},{title:"英文文本编辑",prompt:"翻译以下这段英文,同时对其进行适当的调整和编辑:He was lay down.",icon:"ri:edit-line"},{title:"近期电影推荐",prompt:"可以给我推荐几部最近比较值得观看的电影吗?",icon:"ri:film-line"},{title:"马克思主义知识问答",prompt:"马克思主义的基本原理是什么?",icon:"ri:questionnaire-line"},{title:"北京旅游攻略",prompt:"如果想去北京旅游,有哪些必去的景点和美食呢?",icon:"ri:road-map-line",iconColor:"text-orange-500"},{title:"经济形势分析",prompt:"分析一下目前国内外经济形势,对未来的发展有何预测?",icon:"ri:line-chart-line"},{title:"文章情感分类",prompt:"这篇文章是正面的还是负面的?",icon:"ri:emotion-line"},{title:"写作效率提升方法",prompt:"有哪些方法可以提高写作效率?",icon:"ri:keyboard-box-line"},{title:"电子书与纸质书对比",prompt:"阅读电子书和纸质书有什么区别?",icon:"ri:book-2-line"},{title:"论文语法修改",prompt:"请帮我修改这篇论文中的语法错误。",icon:"ri:file-edit-line"},{title:"人工智能知识查询",prompt:"什么是人工智能?",icon:"ri:robot-line"},{title:"实体识别",prompt:"在这段文字中,'苹果'指的是手机品牌还是水果?",icon:"ri:barcode-box-line"},{title:"文章主题分类",prompt:"这篇文章的主题是什么?",icon:"ri:layout-line",iconColor:"text-orange-500"},{title:"文章摘要生成",prompt:"请用一句话概括这篇文章的核心内容。",icon:"ri:file-text-line"},{title:"新上映电影推荐",prompt:"有哪些值得一看的新上映电影?",icon:"ri:movie-line"},{title:"欧洲杯赛程",prompt:"请列出近期欧洲杯足球赛程表。",icon:"ri:trophy-line",iconColor:"text-gold-500"},{title:"健康饮食方案",prompt:"有哪些适合控制体重的健康饮食方案?",icon:"ri:restaurant-line",iconColor:"text-orange-500"},{title:"日本旅游攻略",prompt:"如果我想去日本旅游,应该怎样规划我的行程和预算?",icon:"ri:suitcase-line"},{title:"最新科技新闻",prompt:"有哪些最近的科技进展值得关注?",icon:"ri:news-line"},{title:"编程语言选择",prompt:"当你需要开发一个新项目时,该如何选择合适的编程语言?",icon:"ri:code-box-line"},{title:"健康饮食搭配",prompt:"请问在平衡健康饮食方面,应该怎样搭配膳食结构?",icon:"ri:restaurant-2-line"},{title:"科技公司伦理标准",prompt:"微软、谷歌等科技公司是否有明确的伦理标准?如果有,请简要列举这些标准。",icon:"ri:shield-check-line"},{title:"机器人研究方向",prompt:"机器人研究领域都包括哪些方向?",icon:"ri:robot-line"},{title:"气候变化影响",prompt:"你认为气候变化对人类有哪些不利影响?",icon:"ri:cloud-windy-line"}],_hoisted_1$a={class:"mb-10 rounded px-4 py-2 text-center text-3xl font-bold text-primary-500"},_hoisted_2$9={key:0,class:"w-full md:max-w-[40rem]"},_hoisted_3$8={class:"grid grid-cols-2 sm:grid-cols-2 lg:grid-cols-4 gap-4"},_hoisted_4$7=["onClick"],_hoisted_5$7={class:"mt-8 line-clamp-2 break-all overflow-hidden text-gray-600 dark:text-gray-500 flex-grow text-sm"},_sfc_main$9=defineComponent({__name:"index",setup(b){var e;const r=inject("onConversation"),m=useAuthStore(),w=useChatStore(),U=computed(()=>w.groupList),{isMobile:k}=useBasicLayout(),x=ref(),a=computed(()=>{var L;return Number((L=m.globalConfig)==null?void 0:L.isHideDefaultPreset)===1}),g=()=>{x.value=defaultPreset.sort(()=>.5-Math.random()).slice(0,4)};onMounted(()=>{g()}),onMounted(()=>{g()});const n=((e=m.globalConfig)==null?void 0:e.siteName)||"AIWeb",c=inject("createNewChatGroup",()=>Promise.resolve());async function R(L){U.value.length===0&&await c();const{appId:O,prompt:B}=L;if(O&&O>0)try{await w.addNewChatGroup(O),await w.queryMyGroup()}catch{}else r({msg:B})}const v=()=>{const L=["text-red-500","text-blue-500","text-green-500","text-yellow-500","text-purple-500","text-pink-500","text-indigo-500"];return L[Math.floor(Math.random()*L.length)]};return(L,O)=>(openBlock(),createElementBlock("div",{class:normalizeClass([[unref(k)?"mb-16":"mt-8"],"px-4 select-none w-full flex flex-col items-center justify-center h-full"])},[createBaseVNode("h1",_hoisted_1$a,toDisplayString(unref(n)),1),a.value?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_2$9,[createBaseVNode("div",_hoisted_3$8,[(openBlock(!0),createElementBlock(Fragment,null,renderList(x.value,B=>(openBlock(),createElementBlock("div",{key:B.title,class:"space-y-4"},[createBaseVNode("button",{onClick:P=>R(B),class:"relative shadow-sm flex flex-col gap-2 rounded-xl ring-1 ring-gray-200 dark:ring-gray-700 px-3 pb-4 pt-3 text-start align-top text-sm transition dark:bg-gray-800 dark:hover:bg-gray-750 hover:bg-gray-50 w-full h-full min-h-[4rem] min-w-[8rem] flex-grow"},[createVNode(unref(_sfc_main$j),{icon:B.icon,class:normalizeClass(["mb-3 inline-block text-base absolute top-3 left-3",v()])},null,8,["icon","class"]),createBaseVNode("div",_hoisted_5$7,toDisplayString(B.title),1)],8,_hoisted_4$7)]))),128))])]))],2))}}),_hoisted_1$9={class:"w-full md:max-w-[40rem] mb-4"},_hoisted_2$8={class:"flex items-center justify-center"},_hoisted_3$7={key:0,class:"flex-shrink-0 dark:ring-gray-400 rounded-lg"},_hoisted_4$6=["src"],_hoisted_5$6={class:"text-white text-sm md:text-lg"},_hoisted_6$6={class:"rounded px-4 py-2 text-3xl font-bold text-primary-500"},_hoisted_7$6={class:"w-full md:max-w-[40rem] mb-5"},_hoisted_8$5={class:"flex items-center justify-center"},_hoisted_9$5={class:"w-full md:max-w-[40rem] mt-2"},_hoisted_10$4={class:"grid grid-cols-2 sm:grid-cols-2 lg:grid-cols-4 gap-4 justify-center"},_hoisted_11$4=["onClick"],_hoisted_12$3={class:"mt-8 line-clamp-2 break-all overflow-hidden text-gray-600 dark:text-gray-500 flex-grow text-sm"},_sfc_main$8=defineComponent({__name:"index",props:{appId:{}},setup(b){const{isMobile:r}=useBasicLayout(),m=ref(null),w=b,U=inject("onConversation"),k=async g=>{try{const n=await fetchQueryOneCatAPI({id:g});m.value=n.data}catch{}};function x(g){var n;U({msg:g,model:(n=m==null?void 0:m.value)==null?void 0:n.model,modelAvatar:m.value.modelAvatar})}function a(){const g=["bg-blue-300","bg-red-300","bg-green-300","bg-yellow-300","bg-purple-300","bg-pink-300"];return g[Math.floor(Math.random()*g.length)]}return onMounted(()=>{w.appId&&k(w.appId)}),watch(()=>w.appId,g=>{g&&k(g)}),(g,n)=>{var c,R,v;return m.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([[unref(r)?"mb-16":"mt-8"],"px-4 select-none w-full flex flex-col items-center justify-center h-full"])},[createBaseVNode("div",_hoisted_1$9,[createBaseVNode("div",_hoisted_2$8,[m.value.coverImg?(openBlock(),createElementBlock("div",_hoisted_3$7,[createBaseVNode("img",{src:m.value.coverImg,class:"rounded-full w-10 h-10 mr-4",alt:"app-image"},null,8,_hoisted_4$6)])):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([a(),"flex-shrink-0 dark:ring-gray-400 rounded-full w-10 h-10 flex items-center justify-center mr-4"])},[createBaseVNode("span",_hoisted_5$6,toDisplayString(m.value.name.slice(0,1)),1)],2)),createBaseVNode("h1",_hoisted_6$6,toDisplayString((c=m.value)==null?void 0:c.name),1)])]),createBaseVNode("div",_hoisted_7$6,[createBaseVNode("div",_hoisted_8$5,[createBaseVNode("p",null,toDisplayString((R=m.value)==null?void 0:R.des),1)])]),createBaseVNode("div",_hoisted_9$5,[createBaseVNode("div",_hoisted_10$4,[(openBlock(!0),createElementBlock(Fragment,null,renderList((v=m.value)==null?void 0:v.demoData,(e,L)=>(openBlock(),createElementBlock("div",{key:L,class:"space-y-4"},[createBaseVNode("button",{onClick:O=>x(e),class:"relative flex flex-col gap-2 rounded-xl border border-gray-200 dark:border-gray-800 px-3 pb-4 pt-3 text-start align-top text-sm shadow-sm transition dark:bg-gray-800 dark:hover:bg-gray-700 hover:bg-gray-50 w-full h-full min-h-[4rem] min-w-[8rem] flex-grow"},[createVNode(unref(_sfc_main$j),{class:"mb-3 inline-block text-base absolute top-3 left-3",icon:"material-symbols:tips-and-updates-outline"}),createBaseVNode("div",_hoisted_12$3,toDisplayString(e),1)],8,_hoisted_11$4)]))),128))])])],2)):createCommentVNode("",!0)}}});var jszip_min={exports:{}};/*! JSZip v3.10.1 - A JavaScript class for generating and reading zip files (c) 2009-2016 Stuart Knightley Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. JSZip uses the library pako released under the MIT license : https://github.com/nodeca/pako/blob/main/LICENSE */(function(b,r){(function(m){b.exports=m()})(function(){return function m(w,U,k){function x(n,c){if(!U[n]){if(!w[n]){var R=typeof commonjsRequire$1=="function"&&commonjsRequire$1;if(!c&&R)return R(n,!0);if(a)return a(n,!0);var v=new Error("Cannot find module '"+n+"'");throw v.code="MODULE_NOT_FOUND",v}var e=U[n]={exports:{}};w[n][0].call(e.exports,function(L){var O=w[n][1][L];return x(O||L)},e,e.exports,m,w,U,k)}return U[n].exports}for(var a=typeof commonjsRequire$1=="function"&&commonjsRequire$1,g=0;g>2,e=(3&n)<<4|c>>4,L=1<_?(15&c)<<2|R>>6:64,O=2<_?63&R:64,B.push(a.charAt(v)+a.charAt(e)+a.charAt(L)+a.charAt(O));return B.join("")},U.decode=function(g){var n,c,R,v,e,L,O=0,B=0,P="data:";if(g.substr(0,P.length)===P)throw new Error("Invalid base64 input, it looks like a data url.");var S,_=3*(g=g.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(g.charAt(g.length-1)===a.charAt(64)&&_--,g.charAt(g.length-2)===a.charAt(64)&&_--,_%1!=0)throw new Error("Invalid base64 input, bad content length.");for(S=x.uint8array?new Uint8Array(0|_):new Array(0|_);O>4,c=(15&v)<<4|(e=a.indexOf(g.charAt(O++)))>>2,R=(3&e)<<6|(L=a.indexOf(g.charAt(O++))),S[B++]=n,e!==64&&(S[B++]=c),L!==64&&(S[B++]=R);return S}},{"./support":30,"./utils":32}],2:[function(m,w,U){var k=m("./external"),x=m("./stream/DataWorker"),a=m("./stream/Crc32Probe"),g=m("./stream/DataLengthProbe");function n(c,R,v,e,L){this.compressedSize=c,this.uncompressedSize=R,this.crc32=v,this.compression=e,this.compressedContent=L}n.prototype={getContentWorker:function(){var c=new x(k.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new g("data_length")),R=this;return c.on("end",function(){if(this.streamInfo.data_length!==R.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),c},getCompressedWorker:function(){return new x(k.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},n.createWorkerFrom=function(c,R,v){return c.pipe(new a).pipe(new g("uncompressedSize")).pipe(R.compressWorker(v)).pipe(new g("compressedSize")).withStreamInfo("compression",R)},w.exports=n},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(m,w,U){var k=m("./stream/GenericWorker");U.STORE={magic:"\0\0",compressWorker:function(){return new k("STORE compression")},uncompressWorker:function(){return new k("STORE decompression")}},U.DEFLATE=m("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(m,w,U){var k=m("./utils"),x=function(){for(var a,g=[],n=0;n<256;n++){a=n;for(var c=0;c<8;c++)a=1&a?3988292384^a>>>1:a>>>1;g[n]=a}return g}();w.exports=function(a,g){return a!==void 0&&a.length?k.getTypeOf(a)!=="string"?function(n,c,R,v){var e=x,L=v+R;n^=-1;for(var O=v;O>>8^e[255&(n^c[O])];return-1^n}(0|g,a,a.length,0):function(n,c,R,v){var e=x,L=v+R;n^=-1;for(var O=v;O>>8^e[255&(n^c.charCodeAt(O))];return-1^n}(0|g,a,a.length,0):0}},{"./utils":32}],5:[function(m,w,U){U.base64=!1,U.binary=!1,U.dir=!1,U.createFolders=!0,U.date=null,U.compression=null,U.compressionOptions=null,U.comment=null,U.unixPermissions=null,U.dosPermissions=null},{}],6:[function(m,w,U){var k=null;k=typeof Promise<"u"?Promise:m("lie"),w.exports={Promise:k}},{lie:37}],7:[function(m,w,U){var k=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",x=m("pako"),a=m("./utils"),g=m("./stream/GenericWorker"),n=k?"uint8array":"array";function c(R,v){g.call(this,"FlateWorker/"+R),this._pako=null,this._pakoAction=R,this._pakoOptions=v,this.meta={}}U.magic="\b\0",a.inherits(c,g),c.prototype.processChunk=function(R){this.meta=R.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(n,R.data),!1)},c.prototype.flush=function(){g.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){g.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new x[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var R=this;this._pako.onData=function(v){R.push({data:v,meta:R.meta})}},U.compressWorker=function(R){return new c("Deflate",R)},U.uncompressWorker=function(){return new c("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(m,w,U){function k(e,L){var O,B="";for(O=0;O>>=8;return B}function x(e,L,O,B,P,S){var _,l,y=e.file,D=e.compression,M=S!==n.utf8encode,F=a.transformTo("string",S(y.name)),N=a.transformTo("string",n.utf8encode(y.name)),G=y.comment,W=a.transformTo("string",S(G)),J=a.transformTo("string",n.utf8encode(G)),Y=N.length!==y.name.length,V=J.length!==G.length,H="",z="",X="",q=y.dir,$=y.date,fe={crc32:0,compressedSize:0,uncompressedSize:0};L&&!O||(fe.crc32=e.crc32,fe.compressedSize=e.compressedSize,fe.uncompressedSize=e.uncompressedSize);var Q=0;L&&(Q|=8),M||!Y&&!V||(Q|=2048);var ie=0,Te=0;q&&(ie|=16),P==="UNIX"?(Te=798,ie|=function(K,ce){var de=K;return K||(de=ce?16893:33204),(65535&de)<<16}(y.unixPermissions,q)):(Te=20,ie|=function(K){return 63&(K||0)}(y.dosPermissions)),_=$.getUTCHours(),_<<=6,_|=$.getUTCMinutes(),_<<=5,_|=$.getUTCSeconds()/2,l=$.getUTCFullYear()-1980,l<<=4,l|=$.getUTCMonth()+1,l<<=5,l|=$.getUTCDate(),Y&&(z=k(1,1)+k(c(F),4)+N,H+="up"+k(z.length,2)+z),V&&(X=k(1,1)+k(c(W),4)+J,H+="uc"+k(X.length,2)+X);var me="";return me+=` \0`,me+=k(Q,2),me+=D.magic,me+=k(_,2),me+=k(l,2),me+=k(fe.crc32,4),me+=k(fe.compressedSize,4),me+=k(fe.uncompressedSize,4),me+=k(F.length,2),me+=k(H.length,2),{fileRecord:R.LOCAL_FILE_HEADER+me+F+H,dirRecord:R.CENTRAL_FILE_HEADER+k(Te,2)+me+k(W.length,2)+"\0\0\0\0"+k(ie,4)+k(B,4)+F+H+W}}var a=m("../utils"),g=m("../stream/GenericWorker"),n=m("../utf8"),c=m("../crc32"),R=m("../signature");function v(e,L,O,B){g.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=L,this.zipPlatform=O,this.encodeFileName=B,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(v,g),v.prototype.push=function(e){var L=e.meta.percent||0,O=this.entriesCount,B=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,g.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:O?(L+100*(O-B-1))/O:100}}))},v.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var L=this.streamFiles&&!e.file.dir;if(L){var O=x(e,L,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:O.fileRecord,meta:{percent:0}})}else this.accumulate=!0},v.prototype.closedSource=function(e){this.accumulate=!1;var L=this.streamFiles&&!e.file.dir,O=x(e,L,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(O.dirRecord),L)this.push({data:function(B){return R.DATA_DESCRIPTOR+k(B.crc32,4)+k(B.compressedSize,4)+k(B.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:O.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},v.prototype.flush=function(){for(var e=this.bytesWritten,L=0;L=this.index;g--)n=(n<<8)+this.byteAt(g);return this.index+=a,n},readString:function(a){return k.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},w.exports=x},{"../utils":32}],19:[function(m,w,U){var k=m("./Uint8ArrayReader");function x(a){k.call(this,a)}m("../utils").inherits(x,k),x.prototype.readData=function(a){this.checkOffset(a);var g=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,g},w.exports=x},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(m,w,U){var k=m("./DataReader");function x(a){k.call(this,a)}m("../utils").inherits(x,k),x.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},x.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},x.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},x.prototype.readData=function(a){this.checkOffset(a);var g=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,g},w.exports=x},{"../utils":32,"./DataReader":18}],21:[function(m,w,U){var k=m("./ArrayReader");function x(a){k.call(this,a)}m("../utils").inherits(x,k),x.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var g=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,g},w.exports=x},{"../utils":32,"./ArrayReader":17}],22:[function(m,w,U){var k=m("../utils"),x=m("../support"),a=m("./ArrayReader"),g=m("./StringReader"),n=m("./NodeBufferReader"),c=m("./Uint8ArrayReader");w.exports=function(R){var v=k.getTypeOf(R);return k.checkSupport(v),v!=="string"||x.uint8array?v==="nodebuffer"?new n(R):x.uint8array?new c(k.transformTo("uint8array",R)):new a(k.transformTo("array",R)):new g(R)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(m,w,U){U.LOCAL_FILE_HEADER="PK",U.CENTRAL_FILE_HEADER="PK",U.CENTRAL_DIRECTORY_END="PK",U.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",U.ZIP64_CENTRAL_DIRECTORY_END="PK",U.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(m,w,U){var k=m("./GenericWorker"),x=m("../utils");function a(g){k.call(this,"ConvertWorker to "+g),this.destType=g}x.inherits(a,k),a.prototype.processChunk=function(g){this.push({data:x.transformTo(this.destType,g.data),meta:g.meta})},w.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(m,w,U){var k=m("./GenericWorker"),x=m("../crc32");function a(){k.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}m("../utils").inherits(a,k),a.prototype.processChunk=function(g){this.streamInfo.crc32=x(g.data,this.streamInfo.crc32||0),this.push(g)},w.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(m,w,U){var k=m("../utils"),x=m("./GenericWorker");function a(g){x.call(this,"DataLengthProbe for "+g),this.propName=g,this.withStreamInfo(g,0)}k.inherits(a,x),a.prototype.processChunk=function(g){if(g){var n=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=n+g.data.length}x.prototype.processChunk.call(this,g)},w.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(m,w,U){var k=m("../utils"),x=m("./GenericWorker");function a(g){x.call(this,"DataWorker");var n=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,g.then(function(c){n.dataIsReady=!0,n.data=c,n.max=c&&c.length||0,n.type=k.getTypeOf(c),n.isPaused||n._tickAndRepeat()},function(c){n.error(c)})}k.inherits(a,x),a.prototype.cleanUp=function(){x.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!x.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,k.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(k.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var g=null,n=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":g=this.data.substring(this.index,n);break;case"uint8array":g=this.data.subarray(this.index,n);break;case"array":case"nodebuffer":g=this.data.slice(this.index,n)}return this.index=n,this.push({data:g,meta:{percent:this.max?this.index/this.max*100:0}})},w.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(m,w,U){function k(x){this.name=x||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}k.prototype={push:function(x){this.emit("data",x)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(x){this.emit("error",x)}return!0},error:function(x){return!this.isFinished&&(this.isPaused?this.generatedError=x:(this.isFinished=!0,this.emit("error",x),this.previous&&this.previous.error(x),this.cleanUp()),!0)},on:function(x,a){return this._listeners[x].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(x,a){if(this._listeners[x])for(var g=0;g "+x:x}},w.exports=k},{}],29:[function(m,w,U){var k=m("../utils"),x=m("./ConvertWorker"),a=m("./GenericWorker"),g=m("../base64"),n=m("../support"),c=m("../external"),R=null;if(n.nodestream)try{R=m("../nodejs/NodejsStreamOutputAdapter")}catch{}function v(L,O){return new c.Promise(function(B,P){var S=[],_=L._internalType,l=L._outputType,y=L._mimeType;L.on("data",function(D,M){S.push(D),O&&O(M)}).on("error",function(D){S=[],P(D)}).on("end",function(){try{var D=function(M,F,N){switch(M){case"blob":return k.newBlob(k.transformTo("arraybuffer",F),N);case"base64":return g.encode(F);default:return k.transformTo(M,F)}}(l,function(M,F){var N,G=0,W=null,J=0;for(N=0;N"u")U.blob=!1;else{var k=new ArrayBuffer(0);try{U.blob=new Blob([k],{type:"application/zip"}).size===0}catch{try{var x=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);x.append(k),U.blob=x.getBlob("application/zip").size===0}catch{U.blob=!1}}}try{U.nodestream=!!m("readable-stream").Readable}catch{U.nodestream=!1}},{"readable-stream":16}],31:[function(m,w,U){for(var k=m("./utils"),x=m("./support"),a=m("./nodejsUtils"),g=m("./stream/GenericWorker"),n=new Array(256),c=0;c<256;c++)n[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;n[254]=n[254]=1;function R(){g.call(this,"utf-8 decode"),this.leftOver=null}function v(){g.call(this,"utf-8 encode")}U.utf8encode=function(e){return x.nodebuffer?a.newBufferFrom(e,"utf-8"):function(L){var O,B,P,S,_,l=L.length,y=0;for(S=0;S>>6:(B<65536?O[_++]=224|B>>>12:(O[_++]=240|B>>>18,O[_++]=128|B>>>12&63),O[_++]=128|B>>>6&63),O[_++]=128|63&B);return O}(e)},U.utf8decode=function(e){return x.nodebuffer?k.transformTo("nodebuffer",e).toString("utf-8"):function(L){var O,B,P,S,_=L.length,l=new Array(2*_);for(O=B=0;O<_;)if((P=L[O++])<128)l[B++]=P;else if(4<(S=n[P]))l[B++]=65533,O+=S-1;else{for(P&=S===2?31:S===3?15:7;1>10&1023,l[B++]=56320|1023&P)}return l.length!==B&&(l.subarray?l=l.subarray(0,B):l.length=B),k.applyFromCharCode(l)}(e=k.transformTo(x.uint8array?"uint8array":"array",e))},k.inherits(R,g),R.prototype.processChunk=function(e){var L=k.transformTo(x.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(x.uint8array){var O=L;(L=new Uint8Array(O.length+this.leftOver.length)).set(this.leftOver,0),L.set(O,this.leftOver.length)}else L=this.leftOver.concat(L);this.leftOver=null}var B=function(S,_){var l;for((_=_||S.length)>S.length&&(_=S.length),l=_-1;0<=l&&(192&S[l])==128;)l--;return l<0||l===0?_:l+n[S[l]]>_?l:_}(L),P=L;B!==L.length&&(x.uint8array?(P=L.subarray(0,B),this.leftOver=L.subarray(B,L.length)):(P=L.slice(0,B),this.leftOver=L.slice(B,L.length))),this.push({data:U.utf8decode(P),meta:e.meta})},R.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:U.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},U.Utf8DecodeWorker=R,k.inherits(v,g),v.prototype.processChunk=function(e){this.push({data:U.utf8encode(e.data),meta:e.meta})},U.Utf8EncodeWorker=v},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(m,w,U){var k=m("./support"),x=m("./base64"),a=m("./nodejsUtils"),g=m("./external");function n(O){return O}function c(O,B){for(var P=0;P>8;this.dir=!!(16&this.externalFileAttributes),e==0&&(this.dosPermissions=63&this.externalFileAttributes),e==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=k(this.extraFields[1].value);this.uncompressedSize===x.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===x.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===x.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===x.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var L,O,B,P=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>6:(e<65536?v[B++]=224|e>>>12:(v[B++]=240|e>>>18,v[B++]=128|e>>>12&63),v[B++]=128|e>>>6&63),v[B++]=128|63&e);return v},U.buf2binstring=function(R){return c(R,R.length)},U.binstring2buf=function(R){for(var v=new k.Buf8(R.length),e=0,L=v.length;e>10&1023,S[L++]=56320|1023&O)}return c(S,L)},U.utf8border=function(R,v){var e;for((v=v||R.length)>R.length&&(v=R.length),e=v-1;0<=e&&(192&R[e])==128;)e--;return e<0||e===0?v:e+g[R[e]]>v?e:v}},{"./common":41}],43:[function(m,w,U){w.exports=function(k,x,a,g){for(var n=65535&k|0,c=k>>>16&65535|0,R=0;a!==0;){for(a-=R=2e3>>1:x>>>1;a[g]=x}return a}();w.exports=function(x,a,g,n){var c=k,R=n+g;x^=-1;for(var v=n;v>>8^c[255&(x^a[v])];return-1^x}},{}],46:[function(m,w,U){var k,x=m("../utils/common"),a=m("./trees"),g=m("./adler32"),n=m("./crc32"),c=m("./messages"),R=0,v=4,e=0,L=-2,O=-1,B=4,P=2,S=8,_=9,l=286,y=30,D=19,M=2*l+1,F=15,N=3,G=258,W=G+N+1,J=42,Y=113,V=1,H=2,z=3,X=4;function q(se,Ie){return se.msg=c[Ie],Ie}function $(se){return(se<<1)-(4se.avail_out&&(Ce=se.avail_out),Ce!==0&&(x.arraySet(se.output,Ie.pending_buf,Ie.pending_out,Ce,se.next_out),se.next_out+=Ce,Ie.pending_out+=Ce,se.total_out+=Ce,se.avail_out-=Ce,Ie.pending-=Ce,Ie.pending===0&&(Ie.pending_out=0))}function ie(se,Ie){a._tr_flush_block(se,0<=se.block_start?se.block_start:-1,se.strstart-se.block_start,Ie),se.block_start=se.strstart,Q(se.strm)}function Te(se,Ie){se.pending_buf[se.pending++]=Ie}function me(se,Ie){se.pending_buf[se.pending++]=Ie>>>8&255,se.pending_buf[se.pending++]=255&Ie}function K(se,Ie){var Ce,oe,pe=se.max_chain_length,xe=se.strstart,Ne=se.prev_length,ke=se.nice_match,De=se.strstart>se.w_size-W?se.strstart-(se.w_size-W):0,Fe=se.window,Pe=se.w_mask,qe=se.prev,Le=se.strstart+G,Oe=Fe[xe+Ne-1],Ee=Fe[xe+Ne];se.prev_length>=se.good_match&&(pe>>=2),ke>se.lookahead&&(ke=se.lookahead);do if(Fe[(Ce=Ie)+Ne]===Ee&&Fe[Ce+Ne-1]===Oe&&Fe[Ce]===Fe[xe]&&Fe[++Ce]===Fe[xe+1]){xe+=2,Ce++;do;while(Fe[++xe]===Fe[++Ce]&&Fe[++xe]===Fe[++Ce]&&Fe[++xe]===Fe[++Ce]&&Fe[++xe]===Fe[++Ce]&&Fe[++xe]===Fe[++Ce]&&Fe[++xe]===Fe[++Ce]&&Fe[++xe]===Fe[++Ce]&&Fe[++xe]===Fe[++Ce]&&xeDe&&--pe!=0);return Ne<=se.lookahead?Ne:se.lookahead}function ce(se){var Ie,Ce,oe,pe,xe,Ne,ke,De,Fe,Pe,qe=se.w_size;do{if(pe=se.window_size-se.lookahead-se.strstart,se.strstart>=qe+(qe-W)){for(x.arraySet(se.window,se.window,qe,qe,0),se.match_start-=qe,se.strstart-=qe,se.block_start-=qe,Ie=Ce=se.hash_size;oe=se.head[--Ie],se.head[Ie]=qe<=oe?oe-qe:0,--Ce;);for(Ie=Ce=qe;oe=se.prev[--Ie],se.prev[Ie]=qe<=oe?oe-qe:0,--Ce;);pe+=qe}if(se.strm.avail_in===0)break;if(Ne=se.strm,ke=se.window,De=se.strstart+se.lookahead,Fe=pe,Pe=void 0,Pe=Ne.avail_in,Fe=N)for(xe=se.strstart-se.insert,se.ins_h=se.window[xe],se.ins_h=(se.ins_h<=N&&(se.ins_h=(se.ins_h<=N)if(oe=a._tr_tally(se,se.strstart-se.match_start,se.match_length-N),se.lookahead-=se.match_length,se.match_length<=se.max_lazy_match&&se.lookahead>=N){for(se.match_length--;se.strstart++,se.ins_h=(se.ins_h<=N&&(se.ins_h=(se.ins_h<=N&&se.match_length<=se.prev_length){for(pe=se.strstart+se.lookahead-N,oe=a._tr_tally(se,se.strstart-1-se.prev_match,se.prev_length-N),se.lookahead-=se.prev_length-1,se.prev_length-=2;++se.strstart<=pe&&(se.ins_h=(se.ins_h<se.pending_buf_size-5&&(Ce=se.pending_buf_size-5);;){if(se.lookahead<=1){if(ce(se),se.lookahead===0&&Ie===R)return V;if(se.lookahead===0)break}se.strstart+=se.lookahead,se.lookahead=0;var oe=se.block_start+Ce;if((se.strstart===0||se.strstart>=oe)&&(se.lookahead=se.strstart-oe,se.strstart=oe,ie(se,!1),se.strm.avail_out===0)||se.strstart-se.block_start>=se.w_size-W&&(ie(se,!1),se.strm.avail_out===0))return V}return se.insert=0,Ie===v?(ie(se,!0),se.strm.avail_out===0?z:X):(se.strstart>se.block_start&&(ie(se,!1),se.strm.avail_out),V)}),new ae(4,4,8,4,de),new ae(4,5,16,8,de),new ae(4,6,32,32,de),new ae(4,4,16,16,Z),new ae(8,16,32,32,Z),new ae(8,16,128,128,Z),new ae(8,32,128,256,Z),new ae(32,128,258,1024,Z),new ae(32,258,258,4096,Z)],U.deflateInit=function(se,Ie){return ye(se,Ie,S,15,8,0)},U.deflateInit2=ye,U.deflateReset=_e,U.deflateResetKeep=we,U.deflateSetHeader=function(se,Ie){return se&&se.state?se.state.wrap!==2?L:(se.state.gzhead=Ie,e):L},U.deflate=function(se,Ie){var Ce,oe,pe,xe;if(!se||!se.state||5>8&255),Te(oe,oe.gzhead.time>>16&255),Te(oe,oe.gzhead.time>>24&255),Te(oe,oe.level===9?2:2<=oe.strategy||oe.level<2?4:0),Te(oe,255&oe.gzhead.os),oe.gzhead.extra&&oe.gzhead.extra.length&&(Te(oe,255&oe.gzhead.extra.length),Te(oe,oe.gzhead.extra.length>>8&255)),oe.gzhead.hcrc&&(se.adler=n(se.adler,oe.pending_buf,oe.pending,0)),oe.gzindex=0,oe.status=69):(Te(oe,0),Te(oe,0),Te(oe,0),Te(oe,0),Te(oe,0),Te(oe,oe.level===9?2:2<=oe.strategy||oe.level<2?4:0),Te(oe,3),oe.status=Y);else{var Ne=S+(oe.w_bits-8<<4)<<8;Ne|=(2<=oe.strategy||oe.level<2?0:oe.level<6?1:oe.level===6?2:3)<<6,oe.strstart!==0&&(Ne|=32),Ne+=31-Ne%31,oe.status=Y,me(oe,Ne),oe.strstart!==0&&(me(oe,se.adler>>>16),me(oe,65535&se.adler)),se.adler=1}if(oe.status===69)if(oe.gzhead.extra){for(pe=oe.pending;oe.gzindex<(65535&oe.gzhead.extra.length)&&(oe.pending!==oe.pending_buf_size||(oe.gzhead.hcrc&&oe.pending>pe&&(se.adler=n(se.adler,oe.pending_buf,oe.pending-pe,pe)),Q(se),pe=oe.pending,oe.pending!==oe.pending_buf_size));)Te(oe,255&oe.gzhead.extra[oe.gzindex]),oe.gzindex++;oe.gzhead.hcrc&&oe.pending>pe&&(se.adler=n(se.adler,oe.pending_buf,oe.pending-pe,pe)),oe.gzindex===oe.gzhead.extra.length&&(oe.gzindex=0,oe.status=73)}else oe.status=73;if(oe.status===73)if(oe.gzhead.name){pe=oe.pending;do{if(oe.pending===oe.pending_buf_size&&(oe.gzhead.hcrc&&oe.pending>pe&&(se.adler=n(se.adler,oe.pending_buf,oe.pending-pe,pe)),Q(se),pe=oe.pending,oe.pending===oe.pending_buf_size)){xe=1;break}xe=oe.gzindexpe&&(se.adler=n(se.adler,oe.pending_buf,oe.pending-pe,pe)),xe===0&&(oe.gzindex=0,oe.status=91)}else oe.status=91;if(oe.status===91)if(oe.gzhead.comment){pe=oe.pending;do{if(oe.pending===oe.pending_buf_size&&(oe.gzhead.hcrc&&oe.pending>pe&&(se.adler=n(se.adler,oe.pending_buf,oe.pending-pe,pe)),Q(se),pe=oe.pending,oe.pending===oe.pending_buf_size)){xe=1;break}xe=oe.gzindexpe&&(se.adler=n(se.adler,oe.pending_buf,oe.pending-pe,pe)),xe===0&&(oe.status=103)}else oe.status=103;if(oe.status===103&&(oe.gzhead.hcrc?(oe.pending+2>oe.pending_buf_size&&Q(se),oe.pending+2<=oe.pending_buf_size&&(Te(oe,255&se.adler),Te(oe,se.adler>>8&255),se.adler=0,oe.status=Y)):oe.status=Y),oe.pending!==0){if(Q(se),se.avail_out===0)return oe.last_flush=-1,e}else if(se.avail_in===0&&$(Ie)<=$(Ce)&&Ie!==v)return q(se,-5);if(oe.status===666&&se.avail_in!==0)return q(se,-5);if(se.avail_in!==0||oe.lookahead!==0||Ie!==R&&oe.status!==666){var ke=oe.strategy===2?function(De,Fe){for(var Pe;;){if(De.lookahead===0&&(ce(De),De.lookahead===0)){if(Fe===R)return V;break}if(De.match_length=0,Pe=a._tr_tally(De,0,De.window[De.strstart]),De.lookahead--,De.strstart++,Pe&&(ie(De,!1),De.strm.avail_out===0))return V}return De.insert=0,Fe===v?(ie(De,!0),De.strm.avail_out===0?z:X):De.last_lit&&(ie(De,!1),De.strm.avail_out===0)?V:H}(oe,Ie):oe.strategy===3?function(De,Fe){for(var Pe,qe,Le,Oe,Ee=De.window;;){if(De.lookahead<=G){if(ce(De),De.lookahead<=G&&Fe===R)return V;if(De.lookahead===0)break}if(De.match_length=0,De.lookahead>=N&&0De.lookahead&&(De.match_length=De.lookahead)}if(De.match_length>=N?(Pe=a._tr_tally(De,1,De.match_length-N),De.lookahead-=De.match_length,De.strstart+=De.match_length,De.match_length=0):(Pe=a._tr_tally(De,0,De.window[De.strstart]),De.lookahead--,De.strstart++),Pe&&(ie(De,!1),De.strm.avail_out===0))return V}return De.insert=0,Fe===v?(ie(De,!0),De.strm.avail_out===0?z:X):De.last_lit&&(ie(De,!1),De.strm.avail_out===0)?V:H}(oe,Ie):k[oe.level].func(oe,Ie);if(ke!==z&&ke!==X||(oe.status=666),ke===V||ke===z)return se.avail_out===0&&(oe.last_flush=-1),e;if(ke===H&&(Ie===1?a._tr_align(oe):Ie!==5&&(a._tr_stored_block(oe,0,0,!1),Ie===3&&(fe(oe.head),oe.lookahead===0&&(oe.strstart=0,oe.block_start=0,oe.insert=0))),Q(se),se.avail_out===0))return oe.last_flush=-1,e}return Ie!==v?e:oe.wrap<=0?1:(oe.wrap===2?(Te(oe,255&se.adler),Te(oe,se.adler>>8&255),Te(oe,se.adler>>16&255),Te(oe,se.adler>>24&255),Te(oe,255&se.total_in),Te(oe,se.total_in>>8&255),Te(oe,se.total_in>>16&255),Te(oe,se.total_in>>24&255)):(me(oe,se.adler>>>16),me(oe,65535&se.adler)),Q(se),0=Ce.w_size&&(xe===0&&(fe(Ce.head),Ce.strstart=0,Ce.block_start=0,Ce.insert=0),Fe=new x.Buf8(Ce.w_size),x.arraySet(Fe,Ie,Pe-Ce.w_size,Ce.w_size,0),Ie=Fe,Pe=Ce.w_size),Ne=se.avail_in,ke=se.next_in,De=se.input,se.avail_in=Pe,se.next_in=0,se.input=Ie,ce(Ce);Ce.lookahead>=N;){for(oe=Ce.strstart,pe=Ce.lookahead-(N-1);Ce.ins_h=(Ce.ins_h<>>=N=F>>>24,_-=N,(N=F>>>16&255)===0)H[c++]=65535&F;else{if(!(16&N)){if(!(64&N)){F=l[(65535&F)+(S&(1<>>=N,_-=N),_<15&&(S+=V[g++]<<_,_+=8,S+=V[g++]<<_,_+=8),F=y[S&M];n:for(;;){if(S>>>=N=F>>>24,_-=N,!(16&(N=F>>>16&255))){if(!(64&N)){F=y[(65535&F)+(S&(1<>>=N,_-=N,(N=c-R)>3,S&=(1<<(_-=G<<3))-1,k.next_in=g,k.next_out=c,k.avail_in=g>>24&255)+(J>>>8&65280)+((65280&J)<<8)+((255&J)<<24)}function S(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new k.Buf16(320),this.work=new k.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function _(J){var Y;return J&&J.state?(Y=J.state,J.total_in=J.total_out=Y.total=0,J.msg="",Y.wrap&&(J.adler=1&Y.wrap),Y.mode=L,Y.last=0,Y.havedict=0,Y.dmax=32768,Y.head=null,Y.hold=0,Y.bits=0,Y.lencode=Y.lendyn=new k.Buf32(O),Y.distcode=Y.distdyn=new k.Buf32(B),Y.sane=1,Y.back=-1,v):e}function l(J){var Y;return J&&J.state?((Y=J.state).wsize=0,Y.whave=0,Y.wnext=0,_(J)):e}function y(J,Y){var V,H;return J&&J.state?(H=J.state,Y<0?(V=0,Y=-Y):(V=1+(Y>>4),Y<48&&(Y&=15)),Y&&(Y<8||15=X.wsize?(k.arraySet(X.window,Y,V-X.wsize,X.wsize,0),X.wnext=0,X.whave=X.wsize):(H<(z=X.wsize-X.wnext)&&(z=H),k.arraySet(X.window,Y,V-H,z,X.wnext),(H-=z)?(k.arraySet(X.window,Y,V-H,H,0),X.wnext=H,X.whave=X.wsize):(X.wnext+=z,X.wnext===X.wsize&&(X.wnext=0),X.whave>>8&255,V.check=a(V.check,xe,2,0),ie=Q=0,V.mode=2;break}if(V.flags=0,V.head&&(V.head.done=!1),!(1&V.wrap)||(((255&Q)<<8)+(Q>>8))%31){J.msg="incorrect header check",V.mode=30;break}if((15&Q)!=8){J.msg="unknown compression method",V.mode=30;break}if(ie-=4,se=8+(15&(Q>>>=4)),V.wbits===0)V.wbits=se;else if(se>V.wbits){J.msg="invalid window size",V.mode=30;break}V.dmax=1<>8&1),512&V.flags&&(xe[0]=255&Q,xe[1]=Q>>>8&255,V.check=a(V.check,xe,2,0)),ie=Q=0,V.mode=3;case 3:for(;ie<32;){if($===0)break e;$--,Q+=H[X++]<>>8&255,xe[2]=Q>>>16&255,xe[3]=Q>>>24&255,V.check=a(V.check,xe,4,0)),ie=Q=0,V.mode=4;case 4:for(;ie<16;){if($===0)break e;$--,Q+=H[X++]<>8),512&V.flags&&(xe[0]=255&Q,xe[1]=Q>>>8&255,V.check=a(V.check,xe,2,0)),ie=Q=0,V.mode=5;case 5:if(1024&V.flags){for(;ie<16;){if($===0)break e;$--,Q+=H[X++]<>>8&255,V.check=a(V.check,xe,2,0)),ie=Q=0}else V.head&&(V.head.extra=null);V.mode=6;case 6:if(1024&V.flags&&($<(K=V.length)&&(K=$),K&&(V.head&&(se=V.head.extra_len-V.length,V.head.extra||(V.head.extra=new Array(V.head.extra_len)),k.arraySet(V.head.extra,H,X,K,se)),512&V.flags&&(V.check=a(V.check,H,K,X)),$-=K,X+=K,V.length-=K),V.length))break e;V.length=0,V.mode=7;case 7:if(2048&V.flags){if($===0)break e;for(K=0;se=H[X+K++],V.head&&se&&V.length<65536&&(V.head.name+=String.fromCharCode(se)),se&&K<$;);if(512&V.flags&&(V.check=a(V.check,H,K,X)),$-=K,X+=K,se)break e}else V.head&&(V.head.name=null);V.length=0,V.mode=8;case 8:if(4096&V.flags){if($===0)break e;for(K=0;se=H[X+K++],V.head&&se&&V.length<65536&&(V.head.comment+=String.fromCharCode(se)),se&&K<$;);if(512&V.flags&&(V.check=a(V.check,H,K,X)),$-=K,X+=K,se)break e}else V.head&&(V.head.comment=null);V.mode=9;case 9:if(512&V.flags){for(;ie<16;){if($===0)break e;$--,Q+=H[X++]<>9&1,V.head.done=!0),J.adler=V.check=0,V.mode=12;break;case 10:for(;ie<32;){if($===0)break e;$--,Q+=H[X++]<>>=7&ie,ie-=7&ie,V.mode=27;break}for(;ie<3;){if($===0)break e;$--,Q+=H[X++]<>>=1)){case 0:V.mode=14;break;case 1:if(G(V),V.mode=20,Y!==6)break;Q>>>=2,ie-=2;break e;case 2:V.mode=17;break;case 3:J.msg="invalid block type",V.mode=30}Q>>>=2,ie-=2;break;case 14:for(Q>>>=7&ie,ie-=7&ie;ie<32;){if($===0)break e;$--,Q+=H[X++]<>>16^65535)){J.msg="invalid stored block lengths",V.mode=30;break}if(V.length=65535&Q,ie=Q=0,V.mode=15,Y===6)break e;case 15:V.mode=16;case 16:if(K=V.length){if($>>=5,ie-=5,V.ndist=1+(31&Q),Q>>>=5,ie-=5,V.ncode=4+(15&Q),Q>>>=4,ie-=4,286>>=3,ie-=3}for(;V.have<19;)V.lens[Ne[V.have++]]=0;if(V.lencode=V.lendyn,V.lenbits=7,Ce={bits:V.lenbits},Ie=n(0,V.lens,0,19,V.lencode,0,V.work,Ce),V.lenbits=Ce.bits,Ie){J.msg="invalid code lengths set",V.mode=30;break}V.have=0,V.mode=19;case 19:for(;V.have>>16&255,he=65535&pe,!((Z=pe>>>24)<=ie);){if($===0)break e;$--,Q+=H[X++]<>>=Z,ie-=Z,V.lens[V.have++]=he;else{if(he===16){for(oe=Z+2;ie>>=Z,ie-=Z,V.have===0){J.msg="invalid bit length repeat",V.mode=30;break}se=V.lens[V.have-1],K=3+(3&Q),Q>>>=2,ie-=2}else if(he===17){for(oe=Z+3;ie>>=Z)),Q>>>=3,ie-=3}else{for(oe=Z+7;ie>>=Z)),Q>>>=7,ie-=7}if(V.have+K>V.nlen+V.ndist){J.msg="invalid bit length repeat",V.mode=30;break}for(;K--;)V.lens[V.have++]=se}}if(V.mode===30)break;if(V.lens[256]===0){J.msg="invalid code -- missing end-of-block",V.mode=30;break}if(V.lenbits=9,Ce={bits:V.lenbits},Ie=n(c,V.lens,0,V.nlen,V.lencode,0,V.work,Ce),V.lenbits=Ce.bits,Ie){J.msg="invalid literal/lengths set",V.mode=30;break}if(V.distbits=6,V.distcode=V.distdyn,Ce={bits:V.distbits},Ie=n(R,V.lens,V.nlen,V.ndist,V.distcode,0,V.work,Ce),V.distbits=Ce.bits,Ie){J.msg="invalid distances set",V.mode=30;break}if(V.mode=20,Y===6)break e;case 20:V.mode=21;case 21:if(6<=$&&258<=fe){J.next_out=q,J.avail_out=fe,J.next_in=X,J.avail_in=$,V.hold=Q,V.bits=ie,g(J,me),q=J.next_out,z=J.output,fe=J.avail_out,X=J.next_in,H=J.input,$=J.avail_in,Q=V.hold,ie=V.bits,V.mode===12&&(V.back=-1);break}for(V.back=0;ae=(pe=V.lencode[Q&(1<>>16&255,he=65535&pe,!((Z=pe>>>24)<=ie);){if($===0)break e;$--,Q+=H[X++]<>we)])>>>16&255,he=65535&pe,!(we+(Z=pe>>>24)<=ie);){if($===0)break e;$--,Q+=H[X++]<>>=we,ie-=we,V.back+=we}if(Q>>>=Z,ie-=Z,V.back+=Z,V.length=he,ae===0){V.mode=26;break}if(32&ae){V.back=-1,V.mode=12;break}if(64&ae){J.msg="invalid literal/length code",V.mode=30;break}V.extra=15&ae,V.mode=22;case 22:if(V.extra){for(oe=V.extra;ie>>=V.extra,ie-=V.extra,V.back+=V.extra}V.was=V.length,V.mode=23;case 23:for(;ae=(pe=V.distcode[Q&(1<>>16&255,he=65535&pe,!((Z=pe>>>24)<=ie);){if($===0)break e;$--,Q+=H[X++]<>we)])>>>16&255,he=65535&pe,!(we+(Z=pe>>>24)<=ie);){if($===0)break e;$--,Q+=H[X++]<>>=we,ie-=we,V.back+=we}if(Q>>>=Z,ie-=Z,V.back+=Z,64&ae){J.msg="invalid distance code",V.mode=30;break}V.offset=he,V.extra=15&ae,V.mode=24;case 24:if(V.extra){for(oe=V.extra;ie>>=V.extra,ie-=V.extra,V.back+=V.extra}if(V.offset>V.dmax){J.msg="invalid distance too far back",V.mode=30;break}V.mode=25;case 25:if(fe===0)break e;if(K=me-fe,V.offset>K){if((K=V.offset-K)>V.whave&&V.sane){J.msg="invalid distance too far back",V.mode=30;break}ce=K>V.wnext?(K-=V.wnext,V.wsize-K):V.wnext-K,K>V.length&&(K=V.length),de=V.window}else de=z,ce=q-V.offset,K=V.length;for(feM?(N=ce[de+B[Y]],ie[Te+B[Y]]):(N=96,0),S=1<>q)+(_-=S)]=F<<24|N<<16|G|0,_!==0;);for(S=1<>=1;if(S!==0?(Q&=S-1,Q+=S):Q=0,Y++,--me[J]==0){if(J===H)break;J=R[v+B[Y]]}if(z>>7)]}function Te(pe,xe){pe.pending_buf[pe.pending++]=255&xe,pe.pending_buf[pe.pending++]=xe>>>8&255}function me(pe,xe,Ne){pe.bi_valid>P-Ne?(pe.bi_buf|=xe<>P-pe.bi_valid,pe.bi_valid+=Ne-P):(pe.bi_buf|=xe<>>=1,Ne<<=1,0<--xe;);return Ne>>>1}function de(pe,xe,Ne){var ke,De,Fe=new Array(B+1),Pe=0;for(ke=1;ke<=B;ke++)Fe[ke]=Pe=Pe+Ne[ke-1]<<1;for(De=0;De<=xe;De++){var qe=pe[2*De+1];qe!==0&&(pe[2*De]=ce(Fe[qe]++,qe))}}function Z(pe){var xe;for(xe=0;xe>1;1<=Ne;Ne--)we(pe,Fe,Ne);for(De=Le;Ne=pe.heap[1],pe.heap[1]=pe.heap[pe.heap_len--],we(pe,Fe,1),ke=pe.heap[1],pe.heap[--pe.heap_max]=Ne,pe.heap[--pe.heap_max]=ke,Fe[2*De]=Fe[2*Ne]+Fe[2*ke],pe.depth[De]=(pe.depth[Ne]>=pe.depth[ke]?pe.depth[Ne]:pe.depth[ke])+1,Fe[2*Ne+1]=Fe[2*ke+1]=De,pe.heap[1]=De++,we(pe,Fe,1),2<=pe.heap_len;);pe.heap[--pe.heap_max]=pe.heap[1],function(Ee,Ae){var Ve,$e,Ue,He,Qe,Ze,et=Ae.dyn_tree,tt=Ae.max_code,je=Ae.stat_desc.static_tree,Je=Ae.stat_desc.has_stree,nt=Ae.stat_desc.extra_bits,Ke=Ae.stat_desc.extra_base,at=Ae.stat_desc.max_length,ot=0;for(He=0;He<=B;He++)Ee.bl_count[He]=0;for(et[2*Ee.heap[Ee.heap_max]+1]=0,Ve=Ee.heap_max+1;Ve>=7;De>>=1)if(1&Oe&&qe.dyn_ltree[2*Le]!==0)return x;if(qe.dyn_ltree[18]!==0||qe.dyn_ltree[20]!==0||qe.dyn_ltree[26]!==0)return a;for(Le=32;Le>>3,(Fe=pe.static_len+3+7>>>3)<=De&&(De=Fe)):De=Fe=Ne+5,Ne+4<=De&&xe!==-1?oe(pe,xe,Ne,ke):pe.strategy===4||Fe===De?(me(pe,2+(ke?1:0),3),_e(pe,W,J)):(me(pe,4+(ke?1:0),3),function(qe,Le,Oe,Ee){var Ae;for(me(qe,Le-257,5),me(qe,Oe-1,5),me(qe,Ee-4,4),Ae=0;Ae>>8&255,pe.pending_buf[pe.d_buf+2*pe.last_lit+1]=255&xe,pe.pending_buf[pe.l_buf+pe.last_lit]=255&Ne,pe.last_lit++,xe===0?pe.dyn_ltree[2*Ne]++:(pe.matches++,xe--,pe.dyn_ltree[2*(V[Ne]+R+1)]++,pe.dyn_dtree[2*ie(xe)]++),pe.last_lit===pe.lit_bufsize-1},U._tr_align=function(pe){me(pe,2,3),K(pe,_,W),function(xe){xe.bi_valid===16?(Te(xe,xe.bi_buf),xe.bi_buf=0,xe.bi_valid=0):8<=xe.bi_valid&&(xe.pending_buf[xe.pending++]=255&xe.bi_buf,xe.bi_buf>>=8,xe.bi_valid-=8)}(pe)}},{"../utils/common":41}],53:[function(m,w,U){w.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(m,w,U){(function(k){(function(x,a){if(!x.setImmediate){var g,n,c,R,v=1,e={},L=!1,O=x.document,B=Object.getPrototypeOf&&Object.getPrototypeOf(x);B=B&&B.setTimeout?B:x,g={}.toString.call(x.process)==="[object process]"?function(l){process.nextTick(function(){S(l)})}:function(){if(x.postMessage&&!x.importScripts){var l=!0,y=x.onmessage;return x.onmessage=function(){l=!1},x.postMessage("","*"),x.onmessage=y,l}}()?(R="setImmediate$"+Math.random()+"$",x.addEventListener?x.addEventListener("message",_,!1):x.attachEvent("onmessage",_),function(l){x.postMessage(R+l,"*")}):x.MessageChannel?((c=new MessageChannel).port1.onmessage=function(l){S(l.data)},function(l){c.port2.postMessage(l)}):O&&"onreadystatechange"in O.createElement("script")?(n=O.documentElement,function(l){var y=O.createElement("script");y.onreadystatechange=function(){S(l),y.onreadystatechange=null,n.removeChild(y),y=null},n.appendChild(y)}):function(l){setTimeout(S,0,l)},B.setImmediate=function(l){typeof l!="function"&&(l=new Function(""+l));for(var y=new Array(arguments.length-1),D=0;D"u"?k===void 0?this:k:self)}).call(this,typeof commonjsGlobal$1<"u"?commonjsGlobal$1:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(jszip_min);var jszip_minExports=jszip_min.exports;const JSZip=getDefaultExportFromCjs(jszip_minExports);var defaults={},hasRequiredDefaults;function requireDefaults(){return hasRequiredDefaults||(hasRequiredDefaults=1,(function(){defaults.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:` `},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(commonjsGlobal$1)),defaults}var builder={},lib={},Utility={},hasRequiredUtility;function requireUtility(){return hasRequiredUtility||(hasRequiredUtility=1,(function(){var b,r,m,w,U,k,x,a=[].slice,g={}.hasOwnProperty;b=function(){var n,c,R,v,e,L;if(L=arguments[0],e=2<=arguments.length?a.call(arguments,1):[],U(Object.assign))Object.assign.apply(null,arguments);else for(n=0,R=e.length;n":"attribute: {"+m+"}, parent: <"+this.parent.name+">"},r.prototype.isEqualNode=function(m){return!(m.namespaceURI!==this.namespaceURI||m.prefix!==this.prefix||m.localName!==this.localName||m.value!==this.value)},r}()}).call(commonjsGlobal$1)),XMLAttribute.exports}var XMLNamedNodeMap={exports:{}},hasRequiredXMLNamedNodeMap;function requireXMLNamedNodeMap(){return hasRequiredXMLNamedNodeMap||(hasRequiredXMLNamedNodeMap=1,(function(){XMLNamedNodeMap.exports=function(){function b(r){this.nodes=r}return Object.defineProperty(b.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),b.prototype.clone=function(){return this.nodes=null},b.prototype.getNamedItem=function(r){return this.nodes[r]},b.prototype.setNamedItem=function(r){var m;return m=this.nodes[r.nodeName],this.nodes[r.nodeName]=r,m||null},b.prototype.removeNamedItem=function(r){var m;return m=this.nodes[r],delete this.nodes[r],m||null},b.prototype.item=function(r){return this.nodes[Object.keys(this.nodes)[r]]||null},b.prototype.getNamedItemNS=function(r,m){throw new Error("This DOM method is not implemented.")},b.prototype.setNamedItemNS=function(r){throw new Error("This DOM method is not implemented.")},b.prototype.removeNamedItemNS=function(r,m){throw new Error("This DOM method is not implemented.")},b}()}).call(commonjsGlobal$1)),XMLNamedNodeMap.exports}var hasRequiredXMLElement;function requireXMLElement(){return hasRequiredXMLElement||(hasRequiredXMLElement=1,(function(){var b,r,m,w,U,k,x,a,g=function(c,R){for(var v in R)n.call(R,v)&&(c[v]=R[v]);function e(){this.constructor=c}return e.prototype=R.prototype,c.prototype=new e,c.__super__=R.prototype,c},n={}.hasOwnProperty;a=requireUtility(),x=a.isObject,k=a.isFunction,U=a.getValue,w=requireXMLNode(),b=requireNodeType(),r=requireXMLAttribute(),m=requireXMLNamedNodeMap(),XMLElement.exports=function(c){g(R,c);function R(v,e,L){var O,B,P,S;if(R.__super__.constructor.call(this,v),e==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(e),this.type=b.Element,this.attribs={},this.schemaTypeInfo=null,L!=null&&this.attribute(L),v.type===b.Document&&(this.isRoot=!0,this.documentObject=v,v.rootObject=this,v.children)){for(S=v.children,B=0,P=S.length;B=O;e=0<=O?++L:--L)if(!this.attribs[e].isEqualNode(v.attribs[e]))return!1;return!0},R}(w)}).call(commonjsGlobal$1)),XMLElement.exports}var XMLCData={exports:{}},XMLCharacterData={exports:{}},hasRequiredXMLCharacterData;function requireXMLCharacterData(){return hasRequiredXMLCharacterData||(hasRequiredXMLCharacterData=1,(function(){var b,r=function(w,U){for(var k in U)m.call(U,k)&&(w[k]=U[k]);function x(){this.constructor=w}return x.prototype=U.prototype,w.prototype=new x,w.__super__=U.prototype,w},m={}.hasOwnProperty;b=requireXMLNode(),XMLCharacterData.exports=function(w){r(U,w);function U(k){U.__super__.constructor.call(this,k),this.value=""}return Object.defineProperty(U.prototype,"data",{get:function(){return this.value},set:function(k){return this.value=k||""}}),Object.defineProperty(U.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(U.prototype,"textContent",{get:function(){return this.value},set:function(k){return this.value=k||""}}),U.prototype.clone=function(){return Object.create(this)},U.prototype.substringData=function(k,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.appendData=function(k){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.insertData=function(k,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.deleteData=function(k,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.replaceData=function(k,x,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},U.prototype.isEqualNode=function(k){return!(!U.__super__.isEqualNode.apply(this,arguments).isEqualNode(k)||k.data!==this.data)},U}(b)}).call(commonjsGlobal$1)),XMLCharacterData.exports}var hasRequiredXMLCData;function requireXMLCData(){return hasRequiredXMLCData||(hasRequiredXMLCData=1,(function(){var b,r,m=function(U,k){for(var x in k)w.call(k,x)&&(U[x]=k[x]);function a(){this.constructor=U}return a.prototype=k.prototype,U.prototype=new a,U.__super__=k.prototype,U},w={}.hasOwnProperty;b=requireNodeType(),r=requireXMLCharacterData(),XMLCData.exports=function(U){m(k,U);function k(x,a){if(k.__super__.constructor.call(this,x),a==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=b.CData,this.value=this.stringify.cdata(a)}return k.prototype.clone=function(){return Object.create(this)},k.prototype.toString=function(x){return this.options.writer.cdata(this,this.options.writer.filterOptions(x))},k}(r)}).call(commonjsGlobal$1)),XMLCData.exports}var XMLComment={exports:{}},hasRequiredXMLComment;function requireXMLComment(){return hasRequiredXMLComment||(hasRequiredXMLComment=1,(function(){var b,r,m=function(U,k){for(var x in k)w.call(k,x)&&(U[x]=k[x]);function a(){this.constructor=U}return a.prototype=k.prototype,U.prototype=new a,U.__super__=k.prototype,U},w={}.hasOwnProperty;b=requireNodeType(),r=requireXMLCharacterData(),XMLComment.exports=function(U){m(k,U);function k(x,a){if(k.__super__.constructor.call(this,x),a==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=b.Comment,this.value=this.stringify.comment(a)}return k.prototype.clone=function(){return Object.create(this)},k.prototype.toString=function(x){return this.options.writer.comment(this,this.options.writer.filterOptions(x))},k}(r)}).call(commonjsGlobal$1)),XMLComment.exports}var XMLDeclaration={exports:{}},hasRequiredXMLDeclaration;function requireXMLDeclaration(){return hasRequiredXMLDeclaration||(hasRequiredXMLDeclaration=1,(function(){var b,r,m,w=function(k,x){for(var a in x)U.call(x,a)&&(k[a]=x[a]);function g(){this.constructor=k}return g.prototype=x.prototype,k.prototype=new g,k.__super__=x.prototype,k},U={}.hasOwnProperty;m=requireUtility().isObject,r=requireXMLNode(),b=requireNodeType(),XMLDeclaration.exports=function(k){w(x,k);function x(a,g,n,c){var R;x.__super__.constructor.call(this,a),m(g)&&(R=g,g=R.version,n=R.encoding,c=R.standalone),g||(g="1.0"),this.type=b.Declaration,this.version=this.stringify.xmlVersion(g),n!=null&&(this.encoding=this.stringify.xmlEncoding(n)),c!=null&&(this.standalone=this.stringify.xmlStandalone(c))}return x.prototype.toString=function(a){return this.options.writer.declaration(this,this.options.writer.filterOptions(a))},x}(r)}).call(commonjsGlobal$1)),XMLDeclaration.exports}var XMLDocType={exports:{}},XMLDTDAttList={exports:{}},hasRequiredXMLDTDAttList;function requireXMLDTDAttList(){return hasRequiredXMLDTDAttList||(hasRequiredXMLDTDAttList=1,(function(){var b,r,m=function(U,k){for(var x in k)w.call(k,x)&&(U[x]=k[x]);function a(){this.constructor=U}return a.prototype=k.prototype,U.prototype=new a,U.__super__=k.prototype,U},w={}.hasOwnProperty;r=requireXMLNode(),b=requireNodeType(),XMLDTDAttList.exports=function(U){m(k,U);function k(x,a,g,n,c,R){if(k.__super__.constructor.call(this,x),a==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(g==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(a));if(!n)throw new Error("Missing DTD attribute type. "+this.debugInfo(a));if(!c)throw new Error("Missing DTD attribute default. "+this.debugInfo(a));if(c.indexOf("#")!==0&&(c="#"+c),!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(a));if(R&&!c.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(a));this.elementName=this.stringify.name(a),this.type=b.AttributeDeclaration,this.attributeName=this.stringify.name(g),this.attributeType=this.stringify.dtdAttType(n),R&&(this.defaultValue=this.stringify.dtdAttDefault(R)),this.defaultValueType=c}return k.prototype.toString=function(x){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(x))},k}(r)}).call(commonjsGlobal$1)),XMLDTDAttList.exports}var XMLDTDEntity={exports:{}},hasRequiredXMLDTDEntity;function requireXMLDTDEntity(){return hasRequiredXMLDTDEntity||(hasRequiredXMLDTDEntity=1,(function(){var b,r,m,w=function(k,x){for(var a in x)U.call(x,a)&&(k[a]=x[a]);function g(){this.constructor=k}return g.prototype=x.prototype,k.prototype=new g,k.__super__=x.prototype,k},U={}.hasOwnProperty;m=requireUtility().isObject,r=requireXMLNode(),b=requireNodeType(),XMLDTDEntity.exports=function(k){w(x,k);function x(a,g,n,c){if(x.__super__.constructor.call(this,a),n==null)throw new Error("Missing DTD entity name. "+this.debugInfo(n));if(c==null)throw new Error("Missing DTD entity value. "+this.debugInfo(n));if(this.pe=!!g,this.name=this.stringify.name(n),this.type=b.EntityDeclaration,!m(c))this.value=this.stringify.dtdEntityValue(c),this.internal=!0;else{if(!c.pubID&&!c.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(n));if(c.pubID&&!c.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(n));if(this.internal=!1,c.pubID!=null&&(this.pubID=this.stringify.dtdPubID(c.pubID)),c.sysID!=null&&(this.sysID=this.stringify.dtdSysID(c.sysID)),c.nData!=null&&(this.nData=this.stringify.dtdNData(c.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(n))}}return Object.defineProperty(x.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(x.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(x.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(x.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(x.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(x.prototype,"xmlVersion",{get:function(){return null}}),x.prototype.toString=function(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))},x}(r)}).call(commonjsGlobal$1)),XMLDTDEntity.exports}var XMLDTDElement={exports:{}},hasRequiredXMLDTDElement;function requireXMLDTDElement(){return hasRequiredXMLDTDElement||(hasRequiredXMLDTDElement=1,(function(){var b,r,m=function(U,k){for(var x in k)w.call(k,x)&&(U[x]=k[x]);function a(){this.constructor=U}return a.prototype=k.prototype,U.prototype=new a,U.__super__=k.prototype,U},w={}.hasOwnProperty;r=requireXMLNode(),b=requireNodeType(),XMLDTDElement.exports=function(U){m(k,U);function k(x,a,g){if(k.__super__.constructor.call(this,x),a==null)throw new Error("Missing DTD element name. "+this.debugInfo());g||(g="(#PCDATA)"),Array.isArray(g)&&(g="("+g.join(",")+")"),this.name=this.stringify.name(a),this.type=b.ElementDeclaration,this.value=this.stringify.dtdElementValue(g)}return k.prototype.toString=function(x){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(x))},k}(r)}).call(commonjsGlobal$1)),XMLDTDElement.exports}var XMLDTDNotation={exports:{}},hasRequiredXMLDTDNotation;function requireXMLDTDNotation(){return hasRequiredXMLDTDNotation||(hasRequiredXMLDTDNotation=1,(function(){var b,r,m=function(U,k){for(var x in k)w.call(k,x)&&(U[x]=k[x]);function a(){this.constructor=U}return a.prototype=k.prototype,U.prototype=new a,U.__super__=k.prototype,U},w={}.hasOwnProperty;r=requireXMLNode(),b=requireNodeType(),XMLDTDNotation.exports=function(U){m(k,U);function k(x,a,g){if(k.__super__.constructor.call(this,x),a==null)throw new Error("Missing DTD notation name. "+this.debugInfo(a));if(!g.pubID&&!g.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(a));this.name=this.stringify.name(a),this.type=b.NotationDeclaration,g.pubID!=null&&(this.pubID=this.stringify.dtdPubID(g.pubID)),g.sysID!=null&&(this.sysID=this.stringify.dtdSysID(g.sysID))}return Object.defineProperty(k.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(k.prototype,"systemId",{get:function(){return this.sysID}}),k.prototype.toString=function(x){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(x))},k}(r)}).call(commonjsGlobal$1)),XMLDTDNotation.exports}var hasRequiredXMLDocType;function requireXMLDocType(){return hasRequiredXMLDocType||(hasRequiredXMLDocType=1,(function(){var b,r,m,w,U,k,x,a,g=function(c,R){for(var v in R)n.call(R,v)&&(c[v]=R[v]);function e(){this.constructor=c}return e.prototype=R.prototype,c.prototype=new e,c.__super__=R.prototype,c},n={}.hasOwnProperty;a=requireUtility().isObject,x=requireXMLNode(),b=requireNodeType(),r=requireXMLDTDAttList(),w=requireXMLDTDEntity(),m=requireXMLDTDElement(),U=requireXMLDTDNotation(),k=requireXMLNamedNodeMap(),XMLDocType.exports=function(c){g(R,c);function R(v,e,L){var O,B,P,S,_,l;if(R.__super__.constructor.call(this,v),this.type=b.DocType,v.children){for(S=v.children,B=0,P=S.length;B":(y=this.parent)!=null&&y.name?"node: <"+_+">, parent: <"+this.parent.name+">":"node: <"+_+">"},S.prototype.ele=function(_,l,y){return this.element(_,l,y)},S.prototype.nod=function(_,l,y){return this.node(_,l,y)},S.prototype.txt=function(_){return this.text(_)},S.prototype.dat=function(_){return this.cdata(_)},S.prototype.com=function(_){return this.comment(_)},S.prototype.ins=function(_,l){return this.instruction(_,l)},S.prototype.doc=function(){return this.document()},S.prototype.dec=function(_,l,y){return this.declaration(_,l,y)},S.prototype.e=function(_,l,y){return this.element(_,l,y)},S.prototype.n=function(_,l,y){return this.node(_,l,y)},S.prototype.t=function(_){return this.text(_)},S.prototype.d=function(_){return this.cdata(_)},S.prototype.c=function(_){return this.comment(_)},S.prototype.r=function(_){return this.raw(_)},S.prototype.i=function(_,l){return this.instruction(_,l)},S.prototype.u=function(){return this.up()},S.prototype.importXMLBuilder=function(_){return this.importDocument(_)},S.prototype.replaceChild=function(_,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.removeChild=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.appendChild=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.hasChildNodes=function(){return this.children.length!==0},S.prototype.cloneNode=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.isSupported=function(_,l){return!0},S.prototype.hasAttributes=function(){return this.attribs.length!==0},S.prototype.compareDocumentPosition=function(_){var l,y;return l=this,l===_?0:this.document()!==_.document()?(y=b.Disconnected|b.ImplementationSpecific,Math.random()<.5?y|=b.Preceding:y|=b.Following,y):l.isAncestor(_)?b.Contains|b.Preceding:l.isDescendant(_)?b.Contains|b.Following:l.isPreceding(_)?b.Preceding:b.Following},S.prototype.isSameNode=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.lookupPrefix=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.isDefaultNamespace=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.lookupNamespaceURI=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.isEqualNode=function(_){var l,y,D;if(_.nodeType!==this.nodeType||_.children.length!==this.children.length)return!1;for(l=y=0,D=this.children.length-1;0<=D?y<=D:y>=D;l=0<=D?++y:--y)if(!this.children[l].isEqualNode(_.children[l]))return!1;return!0},S.prototype.getFeature=function(_,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.setUserData=function(_,l,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.getUserData=function(_){throw new Error("This DOM method is not implemented."+this.debugInfo())},S.prototype.contains=function(_){return _?_===this||this.isDescendant(_):!1},S.prototype.isDescendant=function(_){var l,y,D,M,F;for(F=this.children,D=0,M=F.length;Dy},S.prototype.treePosition=function(_){var l,y;return y=0,l=!1,this.foreachTreeNode(this.document(),function(D){if(y++,!l&&D===_)return l=!0}),l?y:-1},S.prototype.foreachTreeNode=function(_,l){var y,D,M,F,N;for(_||(_=this.document()),F=_.children,D=0,M=F.length;D","]]]]>"),this.assertLegalChar(w))},m.prototype.comment=function(w){if(this.options.noValidation)return w;if(w=""+w||"",w.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+w);return this.assertLegalChar(w)},m.prototype.raw=function(w){return this.options.noValidation?w:""+w||""},m.prototype.attValue=function(w){return this.options.noValidation?w:this.assertLegalChar(this.attEscape(w=""+w||""))},m.prototype.insTarget=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},m.prototype.insValue=function(w){if(this.options.noValidation)return w;if(w=""+w||"",w.match(/\?>/))throw new Error("Invalid processing instruction value: "+w);return this.assertLegalChar(w)},m.prototype.xmlVersion=function(w){if(this.options.noValidation)return w;if(w=""+w||"",!w.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+w);return w},m.prototype.xmlEncoding=function(w){if(this.options.noValidation)return w;if(w=""+w||"",!w.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+w);return this.assertLegalChar(w)},m.prototype.xmlStandalone=function(w){return this.options.noValidation?w:w?"yes":"no"},m.prototype.dtdPubID=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},m.prototype.dtdSysID=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},m.prototype.dtdElementValue=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},m.prototype.dtdAttType=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},m.prototype.dtdAttDefault=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},m.prototype.dtdEntityValue=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},m.prototype.dtdNData=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},m.prototype.convertAttKey="@",m.prototype.convertPIKey="?",m.prototype.convertTextKey="#text",m.prototype.convertCDataKey="#cdata",m.prototype.convertCommentKey="#comment",m.prototype.convertRawKey="#raw",m.prototype.assertLegalChar=function(w){var U,k;if(this.options.noValidation)return w;if(U="",this.options.version==="1.0"){if(U=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,k=w.match(U))throw new Error("Invalid character in string: "+w+" at index "+k.index)}else if(this.options.version==="1.1"&&(U=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,k=w.match(U)))throw new Error("Invalid character in string: "+w+" at index "+k.index);return w},m.prototype.assertLegalName=function(w){var U;if(this.options.noValidation)return w;if(this.assertLegalChar(w),U=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!w.match(U))throw new Error("Invalid character in name");return w},m.prototype.textEscape=function(w){var U;return this.options.noValidation?w:(U=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,w.replace(U,"&").replace(//g,">").replace(/\r/g," "))},m.prototype.attEscape=function(w){var U;return this.options.noValidation?w:(U=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,w.replace(U,"&").replace(/0)?new Array(g).join(x.indent):""},U.prototype.endline=function(k,x,a){return!x.pretty||x.suppressPrettyCount?"":x.newline},U.prototype.attribute=function(k,x,a){var g;return this.openAttribute(k,x,a),g=" "+k.name+'="'+k.value+'"',this.closeAttribute(k,x,a),g},U.prototype.cdata=function(k,x,a){var g;return this.openNode(k,x,a),x.state=r.OpenTag,g=this.indent(k,x,a)+""+this.endline(k,x,a),x.state=r.None,this.closeNode(k,x,a),g},U.prototype.comment=function(k,x,a){var g;return this.openNode(k,x,a),x.state=r.OpenTag,g=this.indent(k,x,a)+""+this.endline(k,x,a),x.state=r.None,this.closeNode(k,x,a),g},U.prototype.declaration=function(k,x,a){var g;return this.openNode(k,x,a),x.state=r.OpenTag,g=this.indent(k,x,a)+"",g+=this.endline(k,x,a),x.state=r.None,this.closeNode(k,x,a),g},U.prototype.docType=function(k,x,a){var g,n,c,R,v;if(a||(a=0),this.openNode(k,x,a),x.state=r.OpenTag,R=this.indent(k,x,a),R+="0){for(R+=" [",R+=this.endline(k,x,a),x.state=r.InsideTag,v=k.children,n=0,c=v.length;n",R+=this.endline(k,x,a),x.state=r.None,this.closeNode(k,x,a),R},U.prototype.element=function(k,x,a){var g,n,c,R,v,e,L,O,B,P,S,_,l,y;a||(a=0),P=!1,S="",this.openNode(k,x,a),x.state=r.OpenTag,S+=this.indent(k,x,a)+"<"+k.name,_=k.attribs;for(B in _)w.call(_,B)&&(g=_[B],S+=this.attribute(g,x,a));if(c=k.children.length,R=c===0?null:k.children[0],c===0||k.children.every(function(D){return(D.type===b.Text||D.type===b.Raw)&&D.value===""}))x.allowEmpty?(S+=">",x.state=r.CloseTag,S+=""+this.endline(k,x,a)):(x.state=r.CloseTag,S+=x.spaceBeforeSlash+"/>"+this.endline(k,x,a));else if(x.pretty&&c===1&&(R.type===b.Text||R.type===b.Raw)&&R.value!=null)S+=">",x.state=r.InsideTag,x.suppressPrettyCount++,P=!0,S+=this.writeChildNode(R,x,a+1),x.suppressPrettyCount--,P=!1,x.state=r.CloseTag,S+=""+this.endline(k,x,a);else{if(x.dontPrettyTextNodes){for(l=k.children,v=0,L=l.length;v"+this.endline(k,x,a),x.state=r.InsideTag,y=k.children,e=0,O=y.length;e",P&&x.suppressPrettyCount--,S+=this.endline(k,x,a),x.state=r.None}return this.closeNode(k,x,a),S},U.prototype.writeChildNode=function(k,x,a){switch(k.type){case b.CData:return this.cdata(k,x,a);case b.Comment:return this.comment(k,x,a);case b.Element:return this.element(k,x,a);case b.Raw:return this.raw(k,x,a);case b.Text:return this.text(k,x,a);case b.ProcessingInstruction:return this.processingInstruction(k,x,a);case b.Dummy:return"";case b.Declaration:return this.declaration(k,x,a);case b.DocType:return this.docType(k,x,a);case b.AttributeDeclaration:return this.dtdAttList(k,x,a);case b.ElementDeclaration:return this.dtdElement(k,x,a);case b.EntityDeclaration:return this.dtdEntity(k,x,a);case b.NotationDeclaration:return this.dtdNotation(k,x,a);default:throw new Error("Unknown XML node type: "+k.constructor.name)}},U.prototype.processingInstruction=function(k,x,a){var g;return this.openNode(k,x,a),x.state=r.OpenTag,g=this.indent(k,x,a)+"",g+=this.endline(k,x,a),x.state=r.None,this.closeNode(k,x,a),g},U.prototype.raw=function(k,x,a){var g;return this.openNode(k,x,a),x.state=r.OpenTag,g=this.indent(k,x,a),x.state=r.InsideTag,g+=k.value,x.state=r.CloseTag,g+=this.endline(k,x,a),x.state=r.None,this.closeNode(k,x,a),g},U.prototype.text=function(k,x,a){var g;return this.openNode(k,x,a),x.state=r.OpenTag,g=this.indent(k,x,a),x.state=r.InsideTag,g+=k.value,x.state=r.CloseTag,g+=this.endline(k,x,a),x.state=r.None,this.closeNode(k,x,a),g},U.prototype.dtdAttList=function(k,x,a){var g;return this.openNode(k,x,a),x.state=r.OpenTag,g=this.indent(k,x,a)+""+this.endline(k,x,a),x.state=r.None,this.closeNode(k,x,a),g},U.prototype.dtdElement=function(k,x,a){var g;return this.openNode(k,x,a),x.state=r.OpenTag,g=this.indent(k,x,a)+""+this.endline(k,x,a),x.state=r.None,this.closeNode(k,x,a),g},U.prototype.dtdEntity=function(k,x,a){var g;return this.openNode(k,x,a),x.state=r.OpenTag,g=this.indent(k,x,a)+""+this.endline(k,x,a),x.state=r.None,this.closeNode(k,x,a),g},U.prototype.dtdNotation=function(k,x,a){var g;return this.openNode(k,x,a),x.state=r.OpenTag,g=this.indent(k,x,a)+""+this.endline(k,x,a),x.state=r.None,this.closeNode(k,x,a),g},U.prototype.openNode=function(k,x,a){},U.prototype.closeNode=function(k,x,a){},U.prototype.openAttribute=function(k,x,a){},U.prototype.closeAttribute=function(k,x,a){},U}()}).call(commonjsGlobal$1)),XMLWriterBase.exports}var hasRequiredXMLStringWriter;function requireXMLStringWriter(){return hasRequiredXMLStringWriter||(hasRequiredXMLStringWriter=1,(function(){var b,r=function(w,U){for(var k in U)m.call(U,k)&&(w[k]=U[k]);function x(){this.constructor=w}return x.prototype=U.prototype,w.prototype=new x,w.__super__=U.prototype,w},m={}.hasOwnProperty;b=requireXMLWriterBase(),XMLStringWriter.exports=function(w){r(U,w);function U(k){U.__super__.constructor.call(this,k)}return U.prototype.document=function(k,x){var a,g,n,c,R;for(x=this.filterOptions(x),c="",R=k.children,g=0,n=R.length;g=0;)this.up();return this.onEnd()},F.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},F.prototype.openNode=function(N){var G,W,J,Y;if(!N.isOpen){if(!this.root&&this.currentLevel===0&&N.type===b.Element&&(this.root=N),W="",N.type===b.Element){this.writerOptions.state=r.OpenTag,W=this.writer.indent(N,this.writerOptions,this.currentLevel)+"<"+N.name,Y=N.attribs;for(J in Y)M.call(Y,J)&&(G=Y[J],W+=this.writer.attribute(G,this.writerOptions,this.currentLevel));W+=(N.children?">":"/>")+this.writer.endline(N,this.writerOptions,this.currentLevel),this.writerOptions.state=r.InsideTag}else this.writerOptions.state=r.OpenTag,W=this.writer.indent(N,this.writerOptions,this.currentLevel)+""),W+=this.writer.endline(N,this.writerOptions,this.currentLevel);return this.onData(W,this.currentLevel),N.isOpen=!0}},F.prototype.closeNode=function(N){var G;if(!N.isClosed)return G="",this.writerOptions.state=r.CloseTag,N.type===b.Element?G=this.writer.indent(N,this.writerOptions,this.currentLevel)+""+this.writer.endline(N,this.writerOptions,this.currentLevel):G=this.writer.indent(N,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(N,this.writerOptions,this.currentLevel),this.writerOptions.state=r.None,this.onData(G,this.currentLevel),N.isClosed=!0},F.prototype.onData=function(N,G){return this.documentStarted=!0,this.onDataCallback(N,G+1)},F.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},F.prototype.debugInfo=function(N){return N==null?"":"node: <"+N+">"},F.prototype.ele=function(){return this.element.apply(this,arguments)},F.prototype.nod=function(N,G,W){return this.node(N,G,W)},F.prototype.txt=function(N){return this.text(N)},F.prototype.dat=function(N){return this.cdata(N)},F.prototype.com=function(N){return this.comment(N)},F.prototype.ins=function(N,G){return this.instruction(N,G)},F.prototype.dec=function(N,G,W){return this.declaration(N,G,W)},F.prototype.dtd=function(N,G,W){return this.doctype(N,G,W)},F.prototype.e=function(N,G,W){return this.element(N,G,W)},F.prototype.n=function(N,G,W){return this.node(N,G,W)},F.prototype.t=function(N){return this.text(N)},F.prototype.d=function(N){return this.cdata(N)},F.prototype.c=function(N){return this.comment(N)},F.prototype.r=function(N){return this.raw(N)},F.prototype.i=function(N,G){return this.instruction(N,G)},F.prototype.att=function(){return this.currentNode&&this.currentNode.type===b.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},F.prototype.a=function(){return this.currentNode&&this.currentNode.type===b.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},F.prototype.ent=function(N,G){return this.entity(N,G)},F.prototype.pent=function(N,G){return this.pEntity(N,G)},F.prototype.not=function(N,G){return this.notation(N,G)},F}()}).call(commonjsGlobal$1)),XMLDocumentCB.exports}var XMLStreamWriter={exports:{}},hasRequiredXMLStreamWriter;function requireXMLStreamWriter(){return hasRequiredXMLStreamWriter||(hasRequiredXMLStreamWriter=1,(function(){var b,r,m,w=function(k,x){for(var a in x)U.call(x,a)&&(k[a]=x[a]);function g(){this.constructor=k}return g.prototype=x.prototype,k.prototype=new g,k.__super__=x.prototype,k},U={}.hasOwnProperty;b=requireNodeType(),m=requireXMLWriterBase(),r=requireWriterState(),XMLStreamWriter.exports=function(k){w(x,k);function x(a,g){this.stream=a,x.__super__.constructor.call(this,g)}return x.prototype.endline=function(a,g,n){return a.isLastRootNode&&g.state===r.CloseTag?"":x.__super__.endline.call(this,a,g,n)},x.prototype.document=function(a,g){var n,c,R,v,e,L,O,B,P;for(O=a.children,c=R=0,e=O.length;R0){for(this.stream.write(" ["),this.stream.write(this.endline(a,g,n)),g.state=r.InsideTag,e=a.children,R=0,v=e.length;R"),this.stream.write(this.endline(a,g,n)),g.state=r.None,this.closeNode(a,g,n)},x.prototype.element=function(a,g,n){var c,R,v,e,L,O,B,P,S;n||(n=0),this.openNode(a,g,n),g.state=r.OpenTag,this.stream.write(this.indent(a,g,n)+"<"+a.name),P=a.attribs;for(B in P)U.call(P,B)&&(c=P[B],this.attribute(c,g,n));if(v=a.children.length,e=v===0?null:a.children[0],v===0||a.children.every(function(_){return(_.type===b.Text||_.type===b.Raw)&&_.value===""}))g.allowEmpty?(this.stream.write(">"),g.state=r.CloseTag,this.stream.write("")):(g.state=r.CloseTag,this.stream.write(g.spaceBeforeSlash+"/>"));else if(g.pretty&&v===1&&(e.type===b.Text||e.type===b.Raw)&&e.value!=null)this.stream.write(">"),g.state=r.InsideTag,g.suppressPrettyCount++,this.writeChildNode(e,g,n+1),g.suppressPrettyCount--,g.state=r.CloseTag,this.stream.write("");else{for(this.stream.write(">"+this.endline(a,g,n)),g.state=r.InsideTag,S=a.children,L=0,O=S.length;L")}return this.stream.write(this.endline(a,g,n)),g.state=r.None,this.closeNode(a,g,n)},x.prototype.processingInstruction=function(a,g,n){return this.stream.write(x.__super__.processingInstruction.call(this,a,g,n))},x.prototype.raw=function(a,g,n){return this.stream.write(x.__super__.raw.call(this,a,g,n))},x.prototype.text=function(a,g,n){return this.stream.write(x.__super__.text.call(this,a,g,n))},x.prototype.dtdAttList=function(a,g,n){return this.stream.write(x.__super__.dtdAttList.call(this,a,g,n))},x.prototype.dtdElement=function(a,g,n){return this.stream.write(x.__super__.dtdElement.call(this,a,g,n))},x.prototype.dtdEntity=function(a,g,n){return this.stream.write(x.__super__.dtdEntity.call(this,a,g,n))},x.prototype.dtdNotation=function(a,g,n){return this.stream.write(x.__super__.dtdNotation.call(this,a,g,n))},x}(m)}).call(commonjsGlobal$1)),XMLStreamWriter.exports}var hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,(function(){var b,r,m,w,U,k,x,a,g,n;n=requireUtility(),a=n.assign,g=n.isFunction,m=requireXMLDOMImplementation(),w=requireXMLDocument(),U=requireXMLDocumentCB(),x=requireXMLStringWriter(),k=requireXMLStreamWriter(),b=requireNodeType(),r=requireWriterState(),lib.create=function(c,R,v,e){var L,O;if(c==null)throw new Error("Root element needs a name.");return e=a({},R,v,e),L=new w(e),O=L.element(c),e.headless||(L.declaration(e),(e.pubID!=null||e.sysID!=null)&&L.dtd(e)),O},lib.begin=function(c,R,v){var e;return g(c)&&(e=[c,R],R=e[0],v=e[1],c={}),R?new U(c,R,v):new w(c)},lib.stringWriter=function(c){return new x(c)},lib.streamWriter=function(c,R){return new k(c,R)},lib.implementation=new m,lib.nodeType=b,lib.writerState=r}).call(commonjsGlobal$1)),lib}var hasRequiredBuilder;function requireBuilder(){return hasRequiredBuilder||(hasRequiredBuilder=1,(function(){var b,r,m,w,U,k={}.hasOwnProperty;b=requireLib(),r=requireDefaults().defaults,w=function(x){return typeof x=="string"&&(x.indexOf("&")>=0||x.indexOf(">")>=0||x.indexOf("<")>=0)},U=function(x){return""},m=function(x){return x.replace("]]>","]]]]>")},builder.Builder=function(){function x(a){var g,n,c;this.options={},n=r["0.2"];for(g in n)k.call(n,g)&&(c=n[g],this.options[g]=c);for(g in a)k.call(a,g)&&(c=a[g],this.options[g]=c)}return x.prototype.buildObject=function(a){var g,n,c,R,v;return g=this.options.attrkey,n=this.options.charkey,Object.keys(a).length===1&&this.options.rootName===r["0.2"].rootName?(v=Object.keys(a)[0],a=a[v]):v=this.options.rootName,c=function(e){return function(L,O){var B,P,S,_,l,y;if(typeof O!="object")e.options.cdata&&w(O)?L.raw(U(O)):L.txt(O);else if(Array.isArray(O)){for(_ in O)if(k.call(O,_)){P=O[_];for(l in P)S=P[l],L=c(L.ele(l),S).up()}}else for(l in O)if(k.call(O,l))if(P=O[l],l===g){if(typeof P=="object")for(B in P)y=P[B],L=L.att(B,y)}else if(l===n)e.options.cdata&&w(P)?L=L.raw(U(P)):L=L.txt(P);else if(Array.isArray(P))for(_ in P)k.call(P,_)&&(S=P[_],typeof S=="string"?e.options.cdata&&w(S)?L=L.ele(l).raw(U(S)).up():L=L.ele(l,S).up():L=c(L.ele(l),S).up());else typeof P=="object"?L=c(L.ele(l),P).up():typeof P=="string"&&e.options.cdata&&w(P)?L=L.ele(l).raw(U(P)).up():(P==null&&(P=""),L=L.ele(l,P.toString()).up());return L}}(this),R=b.create(v,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),c(R,a).end(this.options.renderOpts)},x}()}).call(commonjsGlobal$1)),builder}var parser={},sax={},string_decoder={},safeBuffer={exports:{}},buffer={},base64Js={},hasRequiredBase64Js;function requireBase64Js(){if(hasRequiredBase64Js)return base64Js;hasRequiredBase64Js=1,base64Js.byteLength=a,base64Js.toByteArray=n,base64Js.fromByteArray=v;for(var b=[],r=[],m=typeof Uint8Array<"u"?Uint8Array:Array,w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",U=0,k=w.length;U0)throw new Error("Invalid string. Length must be a multiple of 4");var O=e.indexOf("=");O===-1&&(O=L);var B=O===L?0:4-O%4;return[O,B]}function a(e){var L=x(e),O=L[0],B=L[1];return(O+B)*3/4-B}function g(e,L,O){return(L+O)*3/4-O}function n(e){var L,O=x(e),B=O[0],P=O[1],S=new m(g(e,B,P)),_=0,l=P>0?B-4:B,y;for(y=0;y>16&255,S[_++]=L>>8&255,S[_++]=L&255;return P===2&&(L=r[e.charCodeAt(y)]<<2|r[e.charCodeAt(y+1)]>>4,S[_++]=L&255),P===1&&(L=r[e.charCodeAt(y)]<<10|r[e.charCodeAt(y+1)]<<4|r[e.charCodeAt(y+2)]>>2,S[_++]=L>>8&255,S[_++]=L&255),S}function c(e){return b[e>>18&63]+b[e>>12&63]+b[e>>6&63]+b[e&63]}function R(e,L,O){for(var B,P=[],S=L;Sl?l:_+S));return B===1?(L=e[O-1],P.push(b[L>>2]+b[L<<4&63]+"==")):B===2&&(L=(e[O-2]<<8)+e[O-1],P.push(b[L>>10]+b[L>>4&63]+b[L<<2&63]+"=")),P.join("")}return base64Js}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */var hasRequiredIeee754;function requireIeee754(){return hasRequiredIeee754||(hasRequiredIeee754=1,ieee754.read=function(b,r,m,w,U){var k,x,a=U*8-w-1,g=(1<>1,c=-7,R=m?U-1:0,v=m?-1:1,e=b[r+R];for(R+=v,k=e&(1<<-c)-1,e>>=-c,c+=a;c>0;k=k*256+b[r+R],R+=v,c-=8);for(x=k&(1<<-c)-1,k>>=-c,c+=w;c>0;x=x*256+b[r+R],R+=v,c-=8);if(k===0)k=1-n;else{if(k===g)return x?NaN:(e?-1:1)*(1/0);x=x+Math.pow(2,w),k=k-n}return(e?-1:1)*x*Math.pow(2,k-w)},ieee754.write=function(b,r,m,w,U,k){var x,a,g,n=k*8-U-1,c=(1<>1,v=U===23?Math.pow(2,-24)-Math.pow(2,-77):0,e=w?0:k-1,L=w?1:-1,O=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(a=isNaN(r)?1:0,x=c):(x=Math.floor(Math.log(r)/Math.LN2),r*(g=Math.pow(2,-x))<1&&(x--,g*=2),x+R>=1?r+=v/g:r+=v*Math.pow(2,1-R),r*g>=2&&(x++,g/=2),x+R>=c?(a=0,x=c):x+R>=1?(a=(r*g-1)*Math.pow(2,U),x=x+R):(a=r*Math.pow(2,R-1)*Math.pow(2,U),x=0));U>=8;b[m+e]=a&255,e+=L,a/=256,U-=8);for(x=x<0;b[m+e]=x&255,e+=L,x/=256,n-=8);b[m+e-L]|=O*128}),ieee754}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */var hasRequiredBuffer;function requireBuffer(){return hasRequiredBuffer||(hasRequiredBuffer=1,function(b){const r=requireBase64Js(),m=requireIeee754(),w=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;b.Buffer=a,b.SlowBuffer=S,b.INSPECT_MAX_BYTES=50;const U=2147483647;b.kMaxLength=U,a.TYPED_ARRAY_SUPPORT=k(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function k(){try{const Oe=new Uint8Array(1),Ee={foo:function(){return 42}};return Object.setPrototypeOf(Ee,Uint8Array.prototype),Object.setPrototypeOf(Oe,Ee),Oe.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function x(Oe){if(Oe>U)throw new RangeError('The value "'+Oe+'" is invalid for option "size"');const Ee=new Uint8Array(Oe);return Object.setPrototypeOf(Ee,a.prototype),Ee}function a(Oe,Ee,Ae){if(typeof Oe=="number"){if(typeof Ee=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return R(Oe)}return g(Oe,Ee,Ae)}a.poolSize=8192;function g(Oe,Ee,Ae){if(typeof Oe=="string")return v(Oe,Ee);if(ArrayBuffer.isView(Oe))return L(Oe);if(Oe==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Oe);if(De(Oe,ArrayBuffer)||Oe&&De(Oe.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(De(Oe,SharedArrayBuffer)||Oe&&De(Oe.buffer,SharedArrayBuffer)))return O(Oe,Ee,Ae);if(typeof Oe=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Ve=Oe.valueOf&&Oe.valueOf();if(Ve!=null&&Ve!==Oe)return a.from(Ve,Ee,Ae);const $e=B(Oe);if($e)return $e;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Oe[Symbol.toPrimitive]=="function")return a.from(Oe[Symbol.toPrimitive]("string"),Ee,Ae);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Oe)}a.from=function(Oe,Ee,Ae){return g(Oe,Ee,Ae)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function n(Oe){if(typeof Oe!="number")throw new TypeError('"size" argument must be of type number');if(Oe<0)throw new RangeError('The value "'+Oe+'" is invalid for option "size"')}function c(Oe,Ee,Ae){return n(Oe),Oe<=0?x(Oe):Ee!==void 0?typeof Ae=="string"?x(Oe).fill(Ee,Ae):x(Oe).fill(Ee):x(Oe)}a.alloc=function(Oe,Ee,Ae){return c(Oe,Ee,Ae)};function R(Oe){return n(Oe),x(Oe<0?0:P(Oe)|0)}a.allocUnsafe=function(Oe){return R(Oe)},a.allocUnsafeSlow=function(Oe){return R(Oe)};function v(Oe,Ee){if((typeof Ee!="string"||Ee==="")&&(Ee="utf8"),!a.isEncoding(Ee))throw new TypeError("Unknown encoding: "+Ee);const Ae=_(Oe,Ee)|0;let Ve=x(Ae);const $e=Ve.write(Oe,Ee);return $e!==Ae&&(Ve=Ve.slice(0,$e)),Ve}function e(Oe){const Ee=Oe.length<0?0:P(Oe.length)|0,Ae=x(Ee);for(let Ve=0;Ve=U)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+U.toString(16)+" bytes");return Oe|0}function S(Oe){return+Oe!=Oe&&(Oe=0),a.alloc(+Oe)}a.isBuffer=function(Ee){return Ee!=null&&Ee._isBuffer===!0&&Ee!==a.prototype},a.compare=function(Ee,Ae){if(De(Ee,Uint8Array)&&(Ee=a.from(Ee,Ee.offset,Ee.byteLength)),De(Ae,Uint8Array)&&(Ae=a.from(Ae,Ae.offset,Ae.byteLength)),!a.isBuffer(Ee)||!a.isBuffer(Ae))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ee===Ae)return 0;let Ve=Ee.length,$e=Ae.length;for(let Ue=0,He=Math.min(Ve,$e);Ue$e.length?(a.isBuffer(He)||(He=a.from(He)),He.copy($e,Ue)):Uint8Array.prototype.set.call($e,He,Ue);else if(a.isBuffer(He))He.copy($e,Ue);else throw new TypeError('"list" argument must be an Array of Buffers');Ue+=He.length}return $e};function _(Oe,Ee){if(a.isBuffer(Oe))return Oe.length;if(ArrayBuffer.isView(Oe)||De(Oe,ArrayBuffer))return Oe.byteLength;if(typeof Oe!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Oe);const Ae=Oe.length,Ve=arguments.length>2&&arguments[2]===!0;if(!Ve&&Ae===0)return 0;let $e=!1;for(;;)switch(Ee){case"ascii":case"latin1":case"binary":return Ae;case"utf8":case"utf-8":return oe(Oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ae*2;case"hex":return Ae>>>1;case"base64":return Ne(Oe).length;default:if($e)return Ve?-1:oe(Oe).length;Ee=(""+Ee).toLowerCase(),$e=!0}}a.byteLength=_;function l(Oe,Ee,Ae){let Ve=!1;if((Ee===void 0||Ee<0)&&(Ee=0),Ee>this.length||((Ae===void 0||Ae>this.length)&&(Ae=this.length),Ae<=0)||(Ae>>>=0,Ee>>>=0,Ae<=Ee))return"";for(Oe||(Oe="utf8");;)switch(Oe){case"hex":return $(this,Ee,Ae);case"utf8":case"utf-8":return V(this,Ee,Ae);case"ascii":return X(this,Ee,Ae);case"latin1":case"binary":return q(this,Ee,Ae);case"base64":return Y(this,Ee,Ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fe(this,Ee,Ae);default:if(Ve)throw new TypeError("Unknown encoding: "+Oe);Oe=(Oe+"").toLowerCase(),Ve=!0}}a.prototype._isBuffer=!0;function y(Oe,Ee,Ae){const Ve=Oe[Ee];Oe[Ee]=Oe[Ae],Oe[Ae]=Ve}a.prototype.swap16=function(){const Ee=this.length;if(Ee%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Ae=0;AeAe&&(Ee+=" ... "),""},w&&(a.prototype[w]=a.prototype.inspect),a.prototype.compare=function(Ee,Ae,Ve,$e,Ue){if(De(Ee,Uint8Array)&&(Ee=a.from(Ee,Ee.offset,Ee.byteLength)),!a.isBuffer(Ee))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ee);if(Ae===void 0&&(Ae=0),Ve===void 0&&(Ve=Ee?Ee.length:0),$e===void 0&&($e=0),Ue===void 0&&(Ue=this.length),Ae<0||Ve>Ee.length||$e<0||Ue>this.length)throw new RangeError("out of range index");if($e>=Ue&&Ae>=Ve)return 0;if($e>=Ue)return-1;if(Ae>=Ve)return 1;if(Ae>>>=0,Ve>>>=0,$e>>>=0,Ue>>>=0,this===Ee)return 0;let He=Ue-$e,Qe=Ve-Ae;const Ze=Math.min(He,Qe),et=this.slice($e,Ue),tt=Ee.slice(Ae,Ve);for(let je=0;je2147483647?Ae=2147483647:Ae<-2147483648&&(Ae=-2147483648),Ae=+Ae,Fe(Ae)&&(Ae=$e?0:Oe.length-1),Ae<0&&(Ae=Oe.length+Ae),Ae>=Oe.length){if($e)return-1;Ae=Oe.length-1}else if(Ae<0)if($e)Ae=0;else return-1;if(typeof Ee=="string"&&(Ee=a.from(Ee,Ve)),a.isBuffer(Ee))return Ee.length===0?-1:M(Oe,Ee,Ae,Ve,$e);if(typeof Ee=="number")return Ee=Ee&255,typeof Uint8Array.prototype.indexOf=="function"?$e?Uint8Array.prototype.indexOf.call(Oe,Ee,Ae):Uint8Array.prototype.lastIndexOf.call(Oe,Ee,Ae):M(Oe,[Ee],Ae,Ve,$e);throw new TypeError("val must be string, number or Buffer")}function M(Oe,Ee,Ae,Ve,$e){let Ue=1,He=Oe.length,Qe=Ee.length;if(Ve!==void 0&&(Ve=String(Ve).toLowerCase(),Ve==="ucs2"||Ve==="ucs-2"||Ve==="utf16le"||Ve==="utf-16le")){if(Oe.length<2||Ee.length<2)return-1;Ue=2,He/=2,Qe/=2,Ae/=2}function Ze(tt,je){return Ue===1?tt[je]:tt.readUInt16BE(je*Ue)}let et;if($e){let tt=-1;for(et=Ae;etHe&&(Ae=He-Qe),et=Ae;et>=0;et--){let tt=!0;for(let je=0;je$e&&(Ve=$e)):Ve=$e;const Ue=Ee.length;Ve>Ue/2&&(Ve=Ue/2);let He;for(He=0;He>>0,isFinite(Ve)?(Ve=Ve>>>0,$e===void 0&&($e="utf8")):($e=Ve,Ve=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Ue=this.length-Ae;if((Ve===void 0||Ve>Ue)&&(Ve=Ue),Ee.length>0&&(Ve<0||Ae<0)||Ae>this.length)throw new RangeError("Attempt to write outside buffer bounds");$e||($e="utf8");let He=!1;for(;;)switch($e){case"hex":return F(this,Ee,Ae,Ve);case"utf8":case"utf-8":return N(this,Ee,Ae,Ve);case"ascii":case"latin1":case"binary":return G(this,Ee,Ae,Ve);case"base64":return W(this,Ee,Ae,Ve);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,Ee,Ae,Ve);default:if(He)throw new TypeError("Unknown encoding: "+$e);$e=(""+$e).toLowerCase(),He=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(Oe,Ee,Ae){return Ee===0&&Ae===Oe.length?r.fromByteArray(Oe):r.fromByteArray(Oe.slice(Ee,Ae))}function V(Oe,Ee,Ae){Ae=Math.min(Oe.length,Ae);const Ve=[];let $e=Ee;for(;$e239?4:Ue>223?3:Ue>191?2:1;if($e+Qe<=Ae){let Ze,et,tt,je;switch(Qe){case 1:Ue<128&&(He=Ue);break;case 2:Ze=Oe[$e+1],(Ze&192)===128&&(je=(Ue&31)<<6|Ze&63,je>127&&(He=je));break;case 3:Ze=Oe[$e+1],et=Oe[$e+2],(Ze&192)===128&&(et&192)===128&&(je=(Ue&15)<<12|(Ze&63)<<6|et&63,je>2047&&(je<55296||je>57343)&&(He=je));break;case 4:Ze=Oe[$e+1],et=Oe[$e+2],tt=Oe[$e+3],(Ze&192)===128&&(et&192)===128&&(tt&192)===128&&(je=(Ue&15)<<18|(Ze&63)<<12|(et&63)<<6|tt&63,je>65535&&je<1114112&&(He=je))}}He===null?(He=65533,Qe=1):He>65535&&(He-=65536,Ve.push(He>>>10&1023|55296),He=56320|He&1023),Ve.push(He),$e+=Qe}return z(Ve)}const H=4096;function z(Oe){const Ee=Oe.length;if(Ee<=H)return String.fromCharCode.apply(String,Oe);let Ae="",Ve=0;for(;VeVe)&&(Ae=Ve);let $e="";for(let Ue=Ee;UeVe&&(Ee=Ve),Ae<0?(Ae+=Ve,Ae<0&&(Ae=0)):Ae>Ve&&(Ae=Ve),AeAe)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(Ee,Ae,Ve){Ee=Ee>>>0,Ae=Ae>>>0,Ve||Q(Ee,Ae,this.length);let $e=this[Ee],Ue=1,He=0;for(;++He>>0,Ae=Ae>>>0,Ve||Q(Ee,Ae,this.length);let $e=this[Ee+--Ae],Ue=1;for(;Ae>0&&(Ue*=256);)$e+=this[Ee+--Ae]*Ue;return $e},a.prototype.readUint8=a.prototype.readUInt8=function(Ee,Ae){return Ee=Ee>>>0,Ae||Q(Ee,1,this.length),this[Ee]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(Ee,Ae){return Ee=Ee>>>0,Ae||Q(Ee,2,this.length),this[Ee]|this[Ee+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(Ee,Ae){return Ee=Ee>>>0,Ae||Q(Ee,2,this.length),this[Ee]<<8|this[Ee+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(Ee,Ae){return Ee=Ee>>>0,Ae||Q(Ee,4,this.length),(this[Ee]|this[Ee+1]<<8|this[Ee+2]<<16)+this[Ee+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(Ee,Ae){return Ee=Ee>>>0,Ae||Q(Ee,4,this.length),this[Ee]*16777216+(this[Ee+1]<<16|this[Ee+2]<<8|this[Ee+3])},a.prototype.readBigUInt64LE=qe(function(Ee){Ee=Ee>>>0,ye(Ee,"offset");const Ae=this[Ee],Ve=this[Ee+7];(Ae===void 0||Ve===void 0)&&se(Ee,this.length-8);const $e=Ae+this[++Ee]*2**8+this[++Ee]*2**16+this[++Ee]*2**24,Ue=this[++Ee]+this[++Ee]*2**8+this[++Ee]*2**16+Ve*2**24;return BigInt($e)+(BigInt(Ue)<>>0,ye(Ee,"offset");const Ae=this[Ee],Ve=this[Ee+7];(Ae===void 0||Ve===void 0)&&se(Ee,this.length-8);const $e=Ae*2**24+this[++Ee]*2**16+this[++Ee]*2**8+this[++Ee],Ue=this[++Ee]*2**24+this[++Ee]*2**16+this[++Ee]*2**8+Ve;return(BigInt($e)<>>0,Ae=Ae>>>0,Ve||Q(Ee,Ae,this.length);let $e=this[Ee],Ue=1,He=0;for(;++He=Ue&&($e-=Math.pow(2,8*Ae)),$e},a.prototype.readIntBE=function(Ee,Ae,Ve){Ee=Ee>>>0,Ae=Ae>>>0,Ve||Q(Ee,Ae,this.length);let $e=Ae,Ue=1,He=this[Ee+--$e];for(;$e>0&&(Ue*=256);)He+=this[Ee+--$e]*Ue;return Ue*=128,He>=Ue&&(He-=Math.pow(2,8*Ae)),He},a.prototype.readInt8=function(Ee,Ae){return Ee=Ee>>>0,Ae||Q(Ee,1,this.length),this[Ee]&128?(255-this[Ee]+1)*-1:this[Ee]},a.prototype.readInt16LE=function(Ee,Ae){Ee=Ee>>>0,Ae||Q(Ee,2,this.length);const Ve=this[Ee]|this[Ee+1]<<8;return Ve&32768?Ve|4294901760:Ve},a.prototype.readInt16BE=function(Ee,Ae){Ee=Ee>>>0,Ae||Q(Ee,2,this.length);const Ve=this[Ee+1]|this[Ee]<<8;return Ve&32768?Ve|4294901760:Ve},a.prototype.readInt32LE=function(Ee,Ae){return Ee=Ee>>>0,Ae||Q(Ee,4,this.length),this[Ee]|this[Ee+1]<<8|this[Ee+2]<<16|this[Ee+3]<<24},a.prototype.readInt32BE=function(Ee,Ae){return Ee=Ee>>>0,Ae||Q(Ee,4,this.length),this[Ee]<<24|this[Ee+1]<<16|this[Ee+2]<<8|this[Ee+3]},a.prototype.readBigInt64LE=qe(function(Ee){Ee=Ee>>>0,ye(Ee,"offset");const Ae=this[Ee],Ve=this[Ee+7];(Ae===void 0||Ve===void 0)&&se(Ee,this.length-8);const $e=this[Ee+4]+this[Ee+5]*2**8+this[Ee+6]*2**16+(Ve<<24);return(BigInt($e)<>>0,ye(Ee,"offset");const Ae=this[Ee],Ve=this[Ee+7];(Ae===void 0||Ve===void 0)&&se(Ee,this.length-8);const $e=(Ae<<24)+this[++Ee]*2**16+this[++Ee]*2**8+this[++Ee];return(BigInt($e)<>>0,Ae||Q(Ee,4,this.length),m.read(this,Ee,!0,23,4)},a.prototype.readFloatBE=function(Ee,Ae){return Ee=Ee>>>0,Ae||Q(Ee,4,this.length),m.read(this,Ee,!1,23,4)},a.prototype.readDoubleLE=function(Ee,Ae){return Ee=Ee>>>0,Ae||Q(Ee,8,this.length),m.read(this,Ee,!0,52,8)},a.prototype.readDoubleBE=function(Ee,Ae){return Ee=Ee>>>0,Ae||Q(Ee,8,this.length),m.read(this,Ee,!1,52,8)};function ie(Oe,Ee,Ae,Ve,$e,Ue){if(!a.isBuffer(Oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ee>$e||EeOe.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(Ee,Ae,Ve,$e){if(Ee=+Ee,Ae=Ae>>>0,Ve=Ve>>>0,!$e){const Qe=Math.pow(2,8*Ve)-1;ie(this,Ee,Ae,Ve,Qe,0)}let Ue=1,He=0;for(this[Ae]=Ee&255;++He>>0,Ve=Ve>>>0,!$e){const Qe=Math.pow(2,8*Ve)-1;ie(this,Ee,Ae,Ve,Qe,0)}let Ue=Ve-1,He=1;for(this[Ae+Ue]=Ee&255;--Ue>=0&&(He*=256);)this[Ae+Ue]=Ee/He&255;return Ae+Ve},a.prototype.writeUint8=a.prototype.writeUInt8=function(Ee,Ae,Ve){return Ee=+Ee,Ae=Ae>>>0,Ve||ie(this,Ee,Ae,1,255,0),this[Ae]=Ee&255,Ae+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(Ee,Ae,Ve){return Ee=+Ee,Ae=Ae>>>0,Ve||ie(this,Ee,Ae,2,65535,0),this[Ae]=Ee&255,this[Ae+1]=Ee>>>8,Ae+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(Ee,Ae,Ve){return Ee=+Ee,Ae=Ae>>>0,Ve||ie(this,Ee,Ae,2,65535,0),this[Ae]=Ee>>>8,this[Ae+1]=Ee&255,Ae+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(Ee,Ae,Ve){return Ee=+Ee,Ae=Ae>>>0,Ve||ie(this,Ee,Ae,4,4294967295,0),this[Ae+3]=Ee>>>24,this[Ae+2]=Ee>>>16,this[Ae+1]=Ee>>>8,this[Ae]=Ee&255,Ae+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(Ee,Ae,Ve){return Ee=+Ee,Ae=Ae>>>0,Ve||ie(this,Ee,Ae,4,4294967295,0),this[Ae]=Ee>>>24,this[Ae+1]=Ee>>>16,this[Ae+2]=Ee>>>8,this[Ae+3]=Ee&255,Ae+4};function Te(Oe,Ee,Ae,Ve,$e){_e(Ee,Ve,$e,Oe,Ae,7);let Ue=Number(Ee&BigInt(4294967295));Oe[Ae++]=Ue,Ue=Ue>>8,Oe[Ae++]=Ue,Ue=Ue>>8,Oe[Ae++]=Ue,Ue=Ue>>8,Oe[Ae++]=Ue;let He=Number(Ee>>BigInt(32)&BigInt(4294967295));return Oe[Ae++]=He,He=He>>8,Oe[Ae++]=He,He=He>>8,Oe[Ae++]=He,He=He>>8,Oe[Ae++]=He,Ae}function me(Oe,Ee,Ae,Ve,$e){_e(Ee,Ve,$e,Oe,Ae,7);let Ue=Number(Ee&BigInt(4294967295));Oe[Ae+7]=Ue,Ue=Ue>>8,Oe[Ae+6]=Ue,Ue=Ue>>8,Oe[Ae+5]=Ue,Ue=Ue>>8,Oe[Ae+4]=Ue;let He=Number(Ee>>BigInt(32)&BigInt(4294967295));return Oe[Ae+3]=He,He=He>>8,Oe[Ae+2]=He,He=He>>8,Oe[Ae+1]=He,He=He>>8,Oe[Ae]=He,Ae+8}a.prototype.writeBigUInt64LE=qe(function(Ee,Ae=0){return Te(this,Ee,Ae,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=qe(function(Ee,Ae=0){return me(this,Ee,Ae,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(Ee,Ae,Ve,$e){if(Ee=+Ee,Ae=Ae>>>0,!$e){const Ze=Math.pow(2,8*Ve-1);ie(this,Ee,Ae,Ve,Ze-1,-Ze)}let Ue=0,He=1,Qe=0;for(this[Ae]=Ee&255;++Ue>0)-Qe&255;return Ae+Ve},a.prototype.writeIntBE=function(Ee,Ae,Ve,$e){if(Ee=+Ee,Ae=Ae>>>0,!$e){const Ze=Math.pow(2,8*Ve-1);ie(this,Ee,Ae,Ve,Ze-1,-Ze)}let Ue=Ve-1,He=1,Qe=0;for(this[Ae+Ue]=Ee&255;--Ue>=0&&(He*=256);)Ee<0&&Qe===0&&this[Ae+Ue+1]!==0&&(Qe=1),this[Ae+Ue]=(Ee/He>>0)-Qe&255;return Ae+Ve},a.prototype.writeInt8=function(Ee,Ae,Ve){return Ee=+Ee,Ae=Ae>>>0,Ve||ie(this,Ee,Ae,1,127,-128),Ee<0&&(Ee=255+Ee+1),this[Ae]=Ee&255,Ae+1},a.prototype.writeInt16LE=function(Ee,Ae,Ve){return Ee=+Ee,Ae=Ae>>>0,Ve||ie(this,Ee,Ae,2,32767,-32768),this[Ae]=Ee&255,this[Ae+1]=Ee>>>8,Ae+2},a.prototype.writeInt16BE=function(Ee,Ae,Ve){return Ee=+Ee,Ae=Ae>>>0,Ve||ie(this,Ee,Ae,2,32767,-32768),this[Ae]=Ee>>>8,this[Ae+1]=Ee&255,Ae+2},a.prototype.writeInt32LE=function(Ee,Ae,Ve){return Ee=+Ee,Ae=Ae>>>0,Ve||ie(this,Ee,Ae,4,2147483647,-2147483648),this[Ae]=Ee&255,this[Ae+1]=Ee>>>8,this[Ae+2]=Ee>>>16,this[Ae+3]=Ee>>>24,Ae+4},a.prototype.writeInt32BE=function(Ee,Ae,Ve){return Ee=+Ee,Ae=Ae>>>0,Ve||ie(this,Ee,Ae,4,2147483647,-2147483648),Ee<0&&(Ee=4294967295+Ee+1),this[Ae]=Ee>>>24,this[Ae+1]=Ee>>>16,this[Ae+2]=Ee>>>8,this[Ae+3]=Ee&255,Ae+4},a.prototype.writeBigInt64LE=qe(function(Ee,Ae=0){return Te(this,Ee,Ae,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=qe(function(Ee,Ae=0){return me(this,Ee,Ae,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function K(Oe,Ee,Ae,Ve,$e,Ue){if(Ae+Ve>Oe.length)throw new RangeError("Index out of range");if(Ae<0)throw new RangeError("Index out of range")}function ce(Oe,Ee,Ae,Ve,$e){return Ee=+Ee,Ae=Ae>>>0,$e||K(Oe,Ee,Ae,4),m.write(Oe,Ee,Ae,Ve,23,4),Ae+4}a.prototype.writeFloatLE=function(Ee,Ae,Ve){return ce(this,Ee,Ae,!0,Ve)},a.prototype.writeFloatBE=function(Ee,Ae,Ve){return ce(this,Ee,Ae,!1,Ve)};function de(Oe,Ee,Ae,Ve,$e){return Ee=+Ee,Ae=Ae>>>0,$e||K(Oe,Ee,Ae,8),m.write(Oe,Ee,Ae,Ve,52,8),Ae+8}a.prototype.writeDoubleLE=function(Ee,Ae,Ve){return de(this,Ee,Ae,!0,Ve)},a.prototype.writeDoubleBE=function(Ee,Ae,Ve){return de(this,Ee,Ae,!1,Ve)},a.prototype.copy=function(Ee,Ae,Ve,$e){if(!a.isBuffer(Ee))throw new TypeError("argument should be a Buffer");if(Ve||(Ve=0),!$e&&$e!==0&&($e=this.length),Ae>=Ee.length&&(Ae=Ee.length),Ae||(Ae=0),$e>0&&$e=this.length)throw new RangeError("Index out of range");if($e<0)throw new RangeError("sourceEnd out of bounds");$e>this.length&&($e=this.length),Ee.length-Ae<$e-Ve&&($e=Ee.length-Ae+Ve);const Ue=$e-Ve;return this===Ee&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(Ae,Ve,$e):Uint8Array.prototype.set.call(Ee,this.subarray(Ve,$e),Ae),Ue},a.prototype.fill=function(Ee,Ae,Ve,$e){if(typeof Ee=="string"){if(typeof Ae=="string"?($e=Ae,Ae=0,Ve=this.length):typeof Ve=="string"&&($e=Ve,Ve=this.length),$e!==void 0&&typeof $e!="string")throw new TypeError("encoding must be a string");if(typeof $e=="string"&&!a.isEncoding($e))throw new TypeError("Unknown encoding: "+$e);if(Ee.length===1){const He=Ee.charCodeAt(0);($e==="utf8"&&He<128||$e==="latin1")&&(Ee=He)}}else typeof Ee=="number"?Ee=Ee&255:typeof Ee=="boolean"&&(Ee=Number(Ee));if(Ae<0||this.length>>0,Ve=Ve===void 0?this.length:Ve>>>0,Ee||(Ee=0);let Ue;if(typeof Ee=="number")for(Ue=Ae;Ue2**32?$e=he(String(Ae)):typeof Ae=="bigint"&&($e=String(Ae),(Ae>BigInt(2)**BigInt(32)||Ae<-(BigInt(2)**BigInt(32)))&&($e=he($e)),$e+="n"),Ve+=` It must be ${Ee}. Received ${$e}`,Ve},RangeError);function he(Oe){let Ee="",Ae=Oe.length;const Ve=Oe[0]==="-"?1:0;for(;Ae>=Ve+4;Ae-=3)Ee=`_${Oe.slice(Ae-3,Ae)}${Ee}`;return`${Oe.slice(0,Ae)}${Ee}`}function we(Oe,Ee,Ae){ye(Ee,"offset"),(Oe[Ee]===void 0||Oe[Ee+Ae]===void 0)&&se(Ee,Oe.length-(Ae+1))}function _e(Oe,Ee,Ae,Ve,$e,Ue){if(Oe>Ae||Oe3?Ee===0||Ee===BigInt(0)?Qe=`>= 0${He} and < 2${He} ** ${(Ue+1)*8}${He}`:Qe=`>= -(2${He} ** ${(Ue+1)*8-1}${He}) and < 2 ** ${(Ue+1)*8-1}${He}`:Qe=`>= ${Ee}${He} and <= ${Ae}${He}`,new Z.ERR_OUT_OF_RANGE("value",Qe,Oe)}we(Ve,$e,Ue)}function ye(Oe,Ee){if(typeof Oe!="number")throw new Z.ERR_INVALID_ARG_TYPE(Ee,"number",Oe)}function se(Oe,Ee,Ae){throw Math.floor(Oe)!==Oe?(ye(Oe,Ae),new Z.ERR_OUT_OF_RANGE(Ae||"offset","an integer",Oe)):Ee<0?new Z.ERR_BUFFER_OUT_OF_BOUNDS:new Z.ERR_OUT_OF_RANGE(Ae||"offset",`>= ${Ae?1:0} and <= ${Ee}`,Oe)}const Ie=/[^+/0-9A-Za-z-_]/g;function Ce(Oe){if(Oe=Oe.split("=")[0],Oe=Oe.trim().replace(Ie,""),Oe.length<2)return"";for(;Oe.length%4!==0;)Oe=Oe+"=";return Oe}function oe(Oe,Ee){Ee=Ee||1/0;let Ae;const Ve=Oe.length;let $e=null;const Ue=[];for(let He=0;He55295&&Ae<57344){if(!$e){if(Ae>56319){(Ee-=3)>-1&&Ue.push(239,191,189);continue}else if(He+1===Ve){(Ee-=3)>-1&&Ue.push(239,191,189);continue}$e=Ae;continue}if(Ae<56320){(Ee-=3)>-1&&Ue.push(239,191,189),$e=Ae;continue}Ae=($e-55296<<10|Ae-56320)+65536}else $e&&(Ee-=3)>-1&&Ue.push(239,191,189);if($e=null,Ae<128){if((Ee-=1)<0)break;Ue.push(Ae)}else if(Ae<2048){if((Ee-=2)<0)break;Ue.push(Ae>>6|192,Ae&63|128)}else if(Ae<65536){if((Ee-=3)<0)break;Ue.push(Ae>>12|224,Ae>>6&63|128,Ae&63|128)}else if(Ae<1114112){if((Ee-=4)<0)break;Ue.push(Ae>>18|240,Ae>>12&63|128,Ae>>6&63|128,Ae&63|128)}else throw new Error("Invalid code point")}return Ue}function pe(Oe){const Ee=[];for(let Ae=0;Ae>8,$e=Ae%256,Ue.push($e),Ue.push(Ve);return Ue}function Ne(Oe){return r.toByteArray(Ce(Oe))}function ke(Oe,Ee,Ae,Ve){let $e;for($e=0;$e=Ee.length||$e>=Oe.length);++$e)Ee[$e+Ae]=Oe[$e];return $e}function De(Oe,Ee){return Oe instanceof Ee||Oe!=null&&Oe.constructor!=null&&Oe.constructor.name!=null&&Oe.constructor.name===Ee.name}function Fe(Oe){return Oe!==Oe}const Pe=function(){const Oe="0123456789abcdef",Ee=new Array(256);for(let Ae=0;Ae<16;++Ae){const Ve=Ae*16;for(let $e=0;$e<16;++$e)Ee[Ve+$e]=Oe[Ae]+Oe[$e]}return Ee}();function qe(Oe){return typeof BigInt>"u"?Le:Oe}function Le(){throw new Error("BigInt not supported")}}(buffer)),buffer}var hasRequiredSafeBuffer;function requireSafeBuffer(){return hasRequiredSafeBuffer||(hasRequiredSafeBuffer=1,function(b,r){var m=requireBuffer(),w=m.Buffer;function U(x,a){for(var g in x)a[g]=x[g]}w.from&&w.alloc&&w.allocUnsafe&&w.allocUnsafeSlow?b.exports=m:(U(m,r),r.Buffer=k);function k(x,a,g){return w(x,a,g)}U(w,k),k.from=function(x,a,g){if(typeof x=="number")throw new TypeError("Argument must not be a number");return w(x,a,g)},k.alloc=function(x,a,g){if(typeof x!="number")throw new TypeError("Argument must be a number");var n=w(x);return a!==void 0?typeof g=="string"?n.fill(a,g):n.fill(a):n.fill(0),n},k.allocUnsafe=function(x){if(typeof x!="number")throw new TypeError("Argument must be a number");return w(x)},k.allocUnsafeSlow=function(x){if(typeof x!="number")throw new TypeError("Argument must be a number");return m.SlowBuffer(x)}}(safeBuffer,safeBuffer.exports)),safeBuffer.exports}var hasRequiredString_decoder;function requireString_decoder(){if(hasRequiredString_decoder)return string_decoder;hasRequiredString_decoder=1;var b=requireSafeBuffer().Buffer,r=b.isEncoding||function(P){switch(P=""+P,P&&P.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function m(P){if(!P)return"utf8";for(var S;;)switch(P){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return P;default:if(S)return;P=(""+P).toLowerCase(),S=!0}}function w(P){var S=m(P);if(typeof S!="string"&&(b.isEncoding===r||!r(P)))throw new Error("Unknown encoding: "+P);return S||P}string_decoder.StringDecoder=U;function U(P){this.encoding=w(P);var S;switch(this.encoding){case"utf16le":this.text=R,this.end=v,S=4;break;case"utf8":this.fillLast=g,S=4;break;case"base64":this.text=e,this.end=L,S=3;break;default:this.write=O,this.end=B;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=b.allocUnsafe(S)}U.prototype.write=function(P){if(P.length===0)return"";var S,_;if(this.lastNeed){if(S=this.fillLast(P),S===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _>5===6?2:P>>4===14?3:P>>3===30?4:P>>6===2?-1:-2}function x(P,S,_){var l=S.length-1;if(l<_)return 0;var y=k(S[l]);return y>=0?(y>0&&(P.lastNeed=y-1),y):--l<_||y===-2?0:(y=k(S[l]),y>=0?(y>0&&(P.lastNeed=y-2),y):--l<_||y===-2?0:(y=k(S[l]),y>=0?(y>0&&(y===2?y=0:P.lastNeed=y-3),y):0))}function a(P,S,_){if((S[0]&192)!==128)return P.lastNeed=0,"�";if(P.lastNeed>1&&S.length>1){if((S[1]&192)!==128)return P.lastNeed=1,"�";if(P.lastNeed>2&&S.length>2&&(S[2]&192)!==128)return P.lastNeed=2,"�"}}function g(P){var S=this.lastTotal-this.lastNeed,_=a(this,P);if(_!==void 0)return _;if(this.lastNeed<=P.length)return P.copy(this.lastChar,S,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);P.copy(this.lastChar,S,0,P.length),this.lastNeed-=P.length}function n(P,S){var _=x(this,P,S);if(!this.lastNeed)return P.toString("utf8",S);this.lastTotal=_;var l=P.length-(_-this.lastNeed);return P.copy(this.lastChar,0,l),P.toString("utf8",S,l)}function c(P){var S=P&&P.length?this.write(P):"";return this.lastNeed?S+"�":S}function R(P,S){if((P.length-S)%2===0){var _=P.toString("utf16le",S);if(_){var l=_.charCodeAt(_.length-1);if(l>=55296&&l<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=P[P.length-2],this.lastChar[1]=P[P.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=P[P.length-1],P.toString("utf16le",S,P.length-1)}function v(P){var S=P&&P.length?this.write(P):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return S+this.lastChar.toString("utf16le",0,_)}return S}function e(P,S){var _=(P.length-S)%3;return _===0?P.toString("base64",S):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=P[P.length-1]:(this.lastChar[0]=P[P.length-2],this.lastChar[1]=P[P.length-1]),P.toString("base64",S,P.length-_))}function L(P){var S=P&&P.length?this.write(P):"";return this.lastNeed?S+this.lastChar.toString("base64",0,3-this.lastNeed):S}function O(P){return P.toString(this.encoding)}function B(P){return P&&P.length?this.write(P):""}return string_decoder}var hasRequiredSax;function requireSax(){return hasRequiredSax||(hasRequiredSax=1,function(b){(function(r){r.parser=function(de,Z){return new w(de,Z)},r.SAXParser=w,r.SAXStream=c,r.createStream=n,r.MAX_BUFFER_LENGTH=64*1024;var m=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];r.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function w(de,Z){if(!(this instanceof w))return new w(de,Z);var ae=this;k(ae),ae.q=ae.c="",ae.bufferCheckPosition=r.MAX_BUFFER_LENGTH,ae.opt=Z||{},ae.opt.lowercase=ae.opt.lowercase||ae.opt.lowercasetags,ae.looseCase=ae.opt.lowercase?"toLowerCase":"toUpperCase",ae.tags=[],ae.closed=ae.closedRoot=ae.sawRoot=!1,ae.tag=ae.error=null,ae.strict=!!de,ae.noscript=!!(de||ae.opt.noscript),ae.state=N.BEGIN,ae.strictEntities=ae.opt.strictEntities,ae.ENTITIES=ae.strictEntities?Object.create(r.XML_ENTITIES):Object.create(r.ENTITIES),ae.attribList=[],ae.opt.xmlns&&(ae.ns=Object.create(O)),ae.opt.unquotedAttributeValues===void 0&&(ae.opt.unquotedAttributeValues=!de),ae.trackPosition=ae.opt.position!==!1,ae.trackPosition&&(ae.position=ae.line=ae.column=0),W(ae,"onready")}Object.create||(Object.create=function(de){function Z(){}Z.prototype=de;var ae=new Z;return ae}),Object.keys||(Object.keys=function(de){var Z=[];for(var ae in de)de.hasOwnProperty(ae)&&Z.push(ae);return Z});function U(de){for(var Z=Math.max(r.MAX_BUFFER_LENGTH,10),ae=0,he=0,we=m.length;heZ)switch(m[he]){case"textNode":Y(de);break;case"cdata":J(de,"oncdata",de.cdata),de.cdata="";break;case"script":J(de,"onscript",de.script),de.script="";break;default:H(de,"Max buffer length exceeded: "+m[he])}ae=Math.max(ae,_e)}var ye=r.MAX_BUFFER_LENGTH-ae;de.bufferCheckPosition=ye+de.position}function k(de){for(var Z=0,ae=m.length;Z"||l(de)}function M(de,Z){return de.test(Z)}function F(de,Z){return!M(de,Z)}var N=0;r.STATE={BEGIN:N++,BEGIN_WHITESPACE:N++,TEXT:N++,TEXT_ENTITY:N++,OPEN_WAKA:N++,SGML_DECL:N++,SGML_DECL_QUOTED:N++,DOCTYPE:N++,DOCTYPE_QUOTED:N++,DOCTYPE_DTD:N++,DOCTYPE_DTD_QUOTED:N++,COMMENT_STARTING:N++,COMMENT:N++,COMMENT_ENDING:N++,COMMENT_ENDED:N++,CDATA:N++,CDATA_ENDING:N++,CDATA_ENDING_2:N++,PROC_INST:N++,PROC_INST_BODY:N++,PROC_INST_ENDING:N++,OPEN_TAG:N++,OPEN_TAG_SLASH:N++,ATTRIB:N++,ATTRIB_NAME:N++,ATTRIB_NAME_SAW_WHITE:N++,ATTRIB_VALUE:N++,ATTRIB_VALUE_QUOTED:N++,ATTRIB_VALUE_CLOSED:N++,ATTRIB_VALUE_UNQUOTED:N++,ATTRIB_VALUE_ENTITY_Q:N++,ATTRIB_VALUE_ENTITY_U:N++,CLOSE_TAG:N++,CLOSE_TAG_SAW_WHITE:N++,SCRIPT:N++,SCRIPT_ENDING:N++},r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},r.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(r.ENTITIES).forEach(function(de){var Z=r.ENTITIES[de],ae=typeof Z=="number"?String.fromCharCode(Z):Z;r.ENTITIES[de]=ae});for(var G in r.STATE)r.STATE[r.STATE[G]]=G;N=r.STATE;function W(de,Z,ae){de[Z]&&de[Z](ae)}function J(de,Z,ae){de.textNode&&Y(de),W(de,Z,ae)}function Y(de){de.textNode=V(de.opt,de.textNode),de.textNode&&W(de,"ontext",de.textNode),de.textNode=""}function V(de,Z){return de.trim&&(Z=Z.trim()),de.normalize&&(Z=Z.replace(/\s+/g," ")),Z}function H(de,Z){return Y(de),de.trackPosition&&(Z+=` Line: `+de.line+` Column: `+de.column+` Char: `+de.c),Z=new Error(Z),de.error=Z,W(de,"onerror",Z),de}function z(de){return de.sawRoot&&!de.closedRoot&&X(de,"Unclosed root tag"),de.state!==N.BEGIN&&de.state!==N.BEGIN_WHITESPACE&&de.state!==N.TEXT&&H(de,"Unexpected end"),Y(de),de.c="",de.closed=!0,W(de,"onend"),w.call(de,de.strict,de.opt),de}function X(de,Z){if(typeof de!="object"||!(de instanceof w))throw new Error("bad call to strictFail");de.strict&&H(de,Z)}function q(de){de.strict||(de.tagName=de.tagName[de.looseCase]());var Z=de.tags[de.tags.length-1]||de,ae=de.tag={name:de.tagName,attributes:{}};de.opt.xmlns&&(ae.ns=Z.ns),de.attribList.length=0,J(de,"onopentagstart",ae)}function $(de,Z){var ae=de.indexOf(":"),he=ae<0?["",de]:de.split(":"),we=he[0],_e=he[1];return Z&&de==="xmlns"&&(we="xmlns",_e=""),{prefix:we,local:_e}}function fe(de){if(de.strict||(de.attribName=de.attribName[de.looseCase]()),de.attribList.indexOf(de.attribName)!==-1||de.tag.attributes.hasOwnProperty(de.attribName)){de.attribName=de.attribValue="";return}if(de.opt.xmlns){var Z=$(de.attribName,!0),ae=Z.prefix,he=Z.local;if(ae==="xmlns")if(he==="xml"&&de.attribValue!==e)X(de,"xml: prefix must be bound to "+e+` Actual: `+de.attribValue);else if(he==="xmlns"&&de.attribValue!==L)X(de,"xmlns: prefix must be bound to "+L+` Actual: `+de.attribValue);else{var we=de.tag,_e=de.tags[de.tags.length-1]||de;we.ns===_e.ns&&(we.ns=Object.create(_e.ns)),we.ns[he]=de.attribValue}de.attribList.push([de.attribName,de.attribValue])}else de.tag.attributes[de.attribName]=de.attribValue,J(de,"onattribute",{name:de.attribName,value:de.attribValue});de.attribName=de.attribValue=""}function Q(de,Z){if(de.opt.xmlns){var ae=de.tag,he=$(de.tagName);ae.prefix=he.prefix,ae.local=he.local,ae.uri=ae.ns[he.prefix]||"",ae.prefix&&!ae.uri&&(X(de,"Unbound namespace prefix: "+JSON.stringify(de.tagName)),ae.uri=he.prefix);var we=de.tags[de.tags.length-1]||de;ae.ns&&we.ns!==ae.ns&&Object.keys(ae.ns).forEach(function(De){J(de,"onopennamespace",{prefix:De,uri:ae.ns[De]})});for(var _e=0,ye=de.attribList.length;_e",de.tagName="",de.state=N.SCRIPT;return}J(de,"onscript",de.script),de.script=""}var Z=de.tags.length,ae=de.tagName;de.strict||(ae=ae[de.looseCase]());for(var he=ae;Z--;){var we=de.tags[Z];if(we.name!==he)X(de,"Unexpected close tag");else break}if(Z<0){X(de,"Unmatched closing tag: "+de.tagName),de.textNode+="",de.state=N.TEXT;return}de.tagName=ae;for(var _e=de.tags.length;_e-- >Z;){var ye=de.tag=de.tags.pop();de.tagName=de.tag.name,J(de,"onclosetag",de.tagName);var se={};for(var Ie in ye.ns)se[Ie]=ye.ns[Ie];var Ce=de.tags[de.tags.length-1]||de;de.opt.xmlns&&ye.ns!==Ce.ns&&Object.keys(ye.ns).forEach(function(oe){var pe=ye.ns[oe];J(de,"onclosenamespace",{prefix:oe,uri:pe})})}Z===0&&(de.closedRoot=!0),de.tagName=de.attribValue=de.attribName="",de.attribList.length=0,de.state=N.TEXT}function Te(de){var Z=de.entity,ae=Z.toLowerCase(),he,we="";return de.ENTITIES[Z]?de.ENTITIES[Z]:de.ENTITIES[ae]?de.ENTITIES[ae]:(Z=ae,Z.charAt(0)==="#"&&(Z.charAt(1)==="x"?(Z=Z.slice(2),he=parseInt(Z,16),we=he.toString(16)):(Z=Z.slice(1),he=parseInt(Z,10),we=he.toString(10))),Z=Z.replace(/^0+/,""),isNaN(he)||we.toLowerCase()!==Z?(X(de,"Invalid character entity"),"&"+de.entity+";"):String.fromCodePoint(he))}function me(de,Z){Z==="<"?(de.state=N.OPEN_WAKA,de.startTagPosition=de.position):l(Z)||(X(de,"Non-whitespace before first tag."),de.textNode=Z,de.state=N.TEXT)}function K(de,Z){var ae="";return Z"?(J(Z,"onsgmldeclaration",Z.sgmlDecl),Z.sgmlDecl="",Z.state=N.TEXT):(y(he)&&(Z.state=N.SGML_DECL_QUOTED),Z.sgmlDecl+=he);continue;case N.SGML_DECL_QUOTED:he===Z.q&&(Z.state=N.SGML_DECL,Z.q=""),Z.sgmlDecl+=he;continue;case N.DOCTYPE:he===">"?(Z.state=N.TEXT,J(Z,"ondoctype",Z.doctype),Z.doctype=!0):(Z.doctype+=he,he==="["?Z.state=N.DOCTYPE_DTD:y(he)&&(Z.state=N.DOCTYPE_QUOTED,Z.q=he));continue;case N.DOCTYPE_QUOTED:Z.doctype+=he,he===Z.q&&(Z.q="",Z.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:he==="]"?(Z.doctype+=he,Z.state=N.DOCTYPE):he==="<"?(Z.state=N.OPEN_WAKA,Z.startTagPosition=Z.position):y(he)?(Z.doctype+=he,Z.state=N.DOCTYPE_DTD_QUOTED,Z.q=he):Z.doctype+=he;continue;case N.DOCTYPE_DTD_QUOTED:Z.doctype+=he,he===Z.q&&(Z.state=N.DOCTYPE_DTD,Z.q="");continue;case N.COMMENT:he==="-"?Z.state=N.COMMENT_ENDING:Z.comment+=he;continue;case N.COMMENT_ENDING:he==="-"?(Z.state=N.COMMENT_ENDED,Z.comment=V(Z.opt,Z.comment),Z.comment&&J(Z,"oncomment",Z.comment),Z.comment=""):(Z.comment+="-"+he,Z.state=N.COMMENT);continue;case N.COMMENT_ENDED:he!==">"?(X(Z,"Malformed comment"),Z.comment+="--"+he,Z.state=N.COMMENT):Z.doctype&&Z.doctype!==!0?Z.state=N.DOCTYPE_DTD:Z.state=N.TEXT;continue;case N.CDATA:he==="]"?Z.state=N.CDATA_ENDING:Z.cdata+=he;continue;case N.CDATA_ENDING:he==="]"?Z.state=N.CDATA_ENDING_2:(Z.cdata+="]"+he,Z.state=N.CDATA);continue;case N.CDATA_ENDING_2:he===">"?(Z.cdata&&J(Z,"oncdata",Z.cdata),J(Z,"onclosecdata"),Z.cdata="",Z.state=N.TEXT):he==="]"?Z.cdata+="]":(Z.cdata+="]]"+he,Z.state=N.CDATA);continue;case N.PROC_INST:he==="?"?Z.state=N.PROC_INST_ENDING:l(he)?Z.state=N.PROC_INST_BODY:Z.procInstName+=he;continue;case N.PROC_INST_BODY:if(!Z.procInstBody&&l(he))continue;he==="?"?Z.state=N.PROC_INST_ENDING:Z.procInstBody+=he;continue;case N.PROC_INST_ENDING:he===">"?(J(Z,"onprocessinginstruction",{name:Z.procInstName,body:Z.procInstBody}),Z.procInstName=Z.procInstBody="",Z.state=N.TEXT):(Z.procInstBody+="?"+he,Z.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:M(P,he)?Z.tagName+=he:(q(Z),he===">"?Q(Z):he==="/"?Z.state=N.OPEN_TAG_SLASH:(l(he)||X(Z,"Invalid character in tag name"),Z.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:he===">"?(Q(Z,!0),ie(Z)):(X(Z,"Forward-slash in opening tag not followed by >"),Z.state=N.ATTRIB);continue;case N.ATTRIB:if(l(he))continue;he===">"?Q(Z):he==="/"?Z.state=N.OPEN_TAG_SLASH:M(B,he)?(Z.attribName=he,Z.attribValue="",Z.state=N.ATTRIB_NAME):X(Z,"Invalid attribute name");continue;case N.ATTRIB_NAME:he==="="?Z.state=N.ATTRIB_VALUE:he===">"?(X(Z,"Attribute without value"),Z.attribValue=Z.attribName,fe(Z),Q(Z)):l(he)?Z.state=N.ATTRIB_NAME_SAW_WHITE:M(P,he)?Z.attribName+=he:X(Z,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if(he==="=")Z.state=N.ATTRIB_VALUE;else{if(l(he))continue;X(Z,"Attribute without value"),Z.tag.attributes[Z.attribName]="",Z.attribValue="",J(Z,"onattribute",{name:Z.attribName,value:""}),Z.attribName="",he===">"?Q(Z):M(B,he)?(Z.attribName=he,Z.state=N.ATTRIB_NAME):(X(Z,"Invalid attribute name"),Z.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(l(he))continue;y(he)?(Z.q=he,Z.state=N.ATTRIB_VALUE_QUOTED):(Z.opt.unquotedAttributeValues||H(Z,"Unquoted attribute value"),Z.state=N.ATTRIB_VALUE_UNQUOTED,Z.attribValue=he);continue;case N.ATTRIB_VALUE_QUOTED:if(he!==Z.q){he==="&"?Z.state=N.ATTRIB_VALUE_ENTITY_Q:Z.attribValue+=he;continue}fe(Z),Z.q="",Z.state=N.ATTRIB_VALUE_CLOSED;continue;case N.ATTRIB_VALUE_CLOSED:l(he)?Z.state=N.ATTRIB:he===">"?Q(Z):he==="/"?Z.state=N.OPEN_TAG_SLASH:M(B,he)?(X(Z,"No whitespace between attributes"),Z.attribName=he,Z.attribValue="",Z.state=N.ATTRIB_NAME):X(Z,"Invalid attribute name");continue;case N.ATTRIB_VALUE_UNQUOTED:if(!D(he)){he==="&"?Z.state=N.ATTRIB_VALUE_ENTITY_U:Z.attribValue+=he;continue}fe(Z),he===">"?Q(Z):Z.state=N.ATTRIB;continue;case N.CLOSE_TAG:if(Z.tagName)he===">"?ie(Z):M(P,he)?Z.tagName+=he:Z.script?(Z.script+=""?ie(Z):X(Z,"Invalid characters in closing tag");continue;case N.TEXT_ENTITY:case N.ATTRIB_VALUE_ENTITY_Q:case N.ATTRIB_VALUE_ENTITY_U:var ye,se;switch(Z.state){case N.TEXT_ENTITY:ye=N.TEXT,se="textNode";break;case N.ATTRIB_VALUE_ENTITY_Q:ye=N.ATTRIB_VALUE_QUOTED,se="attribValue";break;case N.ATTRIB_VALUE_ENTITY_U:ye=N.ATTRIB_VALUE_UNQUOTED,se="attribValue";break}if(he===";"){var Ie=Te(Z);Z.opt.unparsedEntities&&!Object.values(r.XML_ENTITIES).includes(Ie)?(Z.entity="",Z.state=ye,Z.write(Ie)):(Z[se]+=Ie,Z.entity="",Z.state=ye)}else M(Z.entity.length?_:S,he)?Z.entity+=he:(X(Z,"Invalid character in entity name"),Z[se]+="&"+Z.entity+he,Z.entity="",Z.state=ye);continue;default:throw new Error(Z,"Unknown state: "+Z.state)}return Z.position>=Z.bufferCheckPosition&&U(Z),Z}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var de=String.fromCharCode,Z=Math.floor,ae=function(){var he=16384,we=[],_e,ye,se=-1,Ie=arguments.length;if(!Ie)return"";for(var Ce="";++se1114111||Z(oe)!==oe)throw RangeError("Invalid code point: "+oe);oe<=65535?we.push(oe):(oe-=65536,_e=(oe>>10)+55296,ye=oe%1024+56320,we.push(_e,ye)),(se+1===Ie||we.length>he)&&(Ce+=de.apply(null,we),we.length=0)}return Ce};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:ae,configurable:!0,writable:!0}):String.fromCodePoint=ae}()})(b)}(sax)),sax}var events={exports:{}},hasRequiredEvents;function requireEvents(){if(hasRequiredEvents)return events.exports;hasRequiredEvents=1;var b=typeof Reflect=="object"?Reflect:null,r=b&&typeof b.apply=="function"?b.apply:function(y,D,M){return Function.prototype.apply.call(y,D,M)},m;b&&typeof b.ownKeys=="function"?m=b.ownKeys:Object.getOwnPropertySymbols?m=function(y){return Object.getOwnPropertyNames(y).concat(Object.getOwnPropertySymbols(y))}:m=function(y){return Object.getOwnPropertyNames(y)};function w(l){console&&console.warn&&console.warn(l)}var U=Number.isNaN||function(y){return y!==y};function k(){k.init.call(this)}events.exports=k,events.exports.once=P,k.EventEmitter=k,k.prototype._events=void 0,k.prototype._eventsCount=0,k.prototype._maxListeners=void 0;var x=10;function a(l){if(typeof l!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof l)}Object.defineProperty(k,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(l){if(typeof l!="number"||l<0||U(l))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+l+".");x=l}}),k.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},k.prototype.setMaxListeners=function(y){if(typeof y!="number"||y<0||U(y))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+y+".");return this._maxListeners=y,this};function g(l){return l._maxListeners===void 0?k.defaultMaxListeners:l._maxListeners}k.prototype.getMaxListeners=function(){return g(this)},k.prototype.emit=function(y){for(var D=[],M=1;M0&&(G=D[0]),G instanceof Error)throw G;var W=new Error("Unhandled error."+(G?" ("+G.message+")":""));throw W.context=G,W}var J=N[y];if(J===void 0)return!1;if(typeof J=="function")r(J,this,D);else for(var Y=J.length,V=L(J,Y),M=0;M0&&G.length>F&&!G.warned){G.warned=!0;var W=new Error("Possible EventEmitter memory leak detected. "+G.length+" "+String(y)+" listeners added. Use emitter.setMaxListeners() to increase limit");W.name="MaxListenersExceededWarning",W.emitter=l,W.type=y,W.count=G.length,w(W)}return l}k.prototype.addListener=function(y,D){return n(this,y,D,!1)},k.prototype.on=k.prototype.addListener,k.prototype.prependListener=function(y,D){return n(this,y,D,!0)};function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function R(l,y,D){var M={fired:!1,wrapFn:void 0,target:l,type:y,listener:D},F=c.bind(M);return F.listener=D,M.wrapFn=F,F}k.prototype.once=function(y,D){return a(D),this.on(y,R(this,y,D)),this},k.prototype.prependOnceListener=function(y,D){return a(D),this.prependListener(y,R(this,y,D)),this},k.prototype.removeListener=function(y,D){var M,F,N,G,W;if(a(D),F=this._events,F===void 0)return this;if(M=F[y],M===void 0)return this;if(M===D||M.listener===D)--this._eventsCount===0?this._events=Object.create(null):(delete F[y],F.removeListener&&this.emit("removeListener",y,M.listener||D));else if(typeof M!="function"){for(N=-1,G=M.length-1;G>=0;G--)if(M[G]===D||M[G].listener===D){W=M[G].listener,N=G;break}if(N<0)return this;N===0?M.shift():O(M,N),M.length===1&&(F[y]=M[0]),F.removeListener!==void 0&&this.emit("removeListener",y,W||D)}return this},k.prototype.off=k.prototype.removeListener,k.prototype.removeAllListeners=function(y){var D,M,F;if(M=this._events,M===void 0)return this;if(M.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):M[y]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete M[y]),this;if(arguments.length===0){var N=Object.keys(M),G;for(F=0;F=0;F--)this.removeListener(y,D[F]);return this};function v(l,y,D){var M=l._events;if(M===void 0)return[];var F=M[y];return F===void 0?[]:typeof F=="function"?D?[F.listener||F]:[F]:D?B(F):L(F,F.length)}k.prototype.listeners=function(y){return v(this,y,!0)},k.prototype.rawListeners=function(y){return v(this,y,!1)},k.listenerCount=function(l,y){return typeof l.listenerCount=="function"?l.listenerCount(y):e.call(l,y)},k.prototype.listenerCount=e;function e(l){var y=this._events;if(y!==void 0){var D=y[l];if(typeof D=="function")return 1;if(D!==void 0)return D.length}return 0}k.prototype.eventNames=function(){return this._eventsCount>0?m(this._events):[]};function L(l,y){for(var D=new Array(y),M=0;M0&&(M[_.options.childkey]=N),N=M;else if(J){J[_.options.childkey]=J[_.options.childkey]||[],G={};for(D in N)v.call(N,D)&&w(G,D,N[D]);J[_.options.childkey].push(G),delete N["#name"],Object.keys(N).length===1&&B in N&&!_.EXPLICIT_CHARKEY&&(N=N[B])}}return S.length>0?_.assignOrPush(J,F,N):(_.options.explicitRoot&&(W=N,N={},w(N,F,W)),_.resultObject=N,_.saxParser.ended=!0,_.emit("end",_.resultObject))}}(this),P=function(_){return function(l){var y,D;if(D=S[S.length-1],D)return D[B]+=l,_.options.explicitChildren&&_.options.preserveChildrenOrder&&_.options.charsAsChildren&&(_.options.includeWhiteChars||l.replace(/\\n/g,"").trim()!=="")&&(D[_.options.childkey]=D[_.options.childkey]||[],y={"#name":"__text__"},y[B]=l,_.options.normalize&&(y[B]=y[B].replace(/\s{2,}/g," ").trim()),D[_.options.childkey].push(y)),D}}(this),this.saxParser.ontext=P,this.saxParser.oncdata=function(_){return function(l){var y;if(y=P(l),y)return y.cdata=!0}}()},L.prototype.parseString=function(O,B){var P;B!=null&&typeof B=="function"&&(this.on("end",function(S){return this.reset(),B(null,S)}),this.on("error",function(S){return this.reset(),B(S)}));try{return O=O.toString(),O.trim()===""?(this.emit("end",null),!0):(O=r.stripBOM(O),this.options.async?(this.remaining=O,n(this.processAsync),this.saxParser):this.saxParser.write(O).close())}catch(S){if(P=S,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw P}else return this.emit("error",P),this.saxParser.errThrown=!0}},L.prototype.parseStringPromise=function(O){return new Promise(function(B){return function(P,S){return B.parseString(O,function(_,l){return _?S(_):P(l)})}}(this))},L}(U),b.parseString=function(e,L,O){var B,P,S;return O!=null?(typeof O=="function"&&(B=O),typeof L=="object"&&(P=L)):(typeof L=="function"&&(B=L),P={}),S=new b.Parser(P),S.parseString(e,B)},b.parseStringPromise=function(e,L){var O,B;return typeof L=="object"&&(O=L),B=new b.Parser(O),B.parseStringPromise(e)}}).call(commonjsGlobal$1)}(parser)),parser}var parseStringPromise;(function(){var b,r,m,w=function(k,x){for(var a in x)U.call(x,a)&&(k[a]=x[a]);function g(){this.constructor=k}return g.prototype=x.prototype,k.prototype=new g,k.__super__=x.prototype,k},U={}.hasOwnProperty;r=requireDefaults(),b=requireBuilder(),m=requireParser(),requireProcessors(),r.defaults,function(k){w(x,k);function x(a){this.message=a}return x}(Error),b.Builder,m.Parser,m.parseString,parseStringPromise=m.parseStringPromise}).call(commonjsGlobal$1);var pdf={exports:{}},dommatrix={exports:{}};/*! * DOMMatrix v1.0.3 (https://thednp.github.io/dommatrix/) * Copyright 2022 © thednp * Licensed under MIT (https://github.com/thednp/DOMMatrix/blob/master/LICENSE) */var hasRequiredDommatrix;function requireDommatrix(){return hasRequiredDommatrix||(hasRequiredDommatrix=1,function(b,r){(function(m,w){b.exports=w()})(commonjsGlobal$1,function(){function m(S){var _=new L,l=Array.from(S);if(!l.every(function(de){return!Number.isNaN(de)}))throw TypeError('CSSMatrix: "'+S+'" must only have numbers.');if(l.length===16){var y=l[0],D=l[1],M=l[2],F=l[3],N=l[4],G=l[5],W=l[6],J=l[7],Y=l[8],V=l[9],H=l[10],z=l[11],X=l[12],q=l[13],$=l[14],fe=l[15];_.m11=y,_.a=y,_.m21=N,_.c=N,_.m31=Y,_.m41=X,_.e=X,_.m12=D,_.b=D,_.m22=G,_.d=G,_.m32=V,_.m42=q,_.f=q,_.m13=M,_.m23=W,_.m33=H,_.m43=$,_.m14=F,_.m24=J,_.m34=z,_.m44=fe}else if(l.length===6){var Q=l[0],ie=l[1],Te=l[2],me=l[3],K=l[4],ce=l[5];_.m11=Q,_.a=Q,_.m12=ie,_.b=ie,_.m21=Te,_.c=Te,_.m22=me,_.d=me,_.m41=K,_.e=K,_.m42=ce,_.f=ce}else throw new TypeError("CSSMatrix: expecting an Array of 6/16 values.");return _}function w(S){var _=Object.keys(new L);if(typeof S=="object"&&_.every(function(l){return l in S}))return m([S.m11,S.m12,S.m13,S.m14,S.m21,S.m22,S.m23,S.m24,S.m31,S.m32,S.m33,S.m34,S.m41,S.m42,S.m43,S.m44]);throw TypeError('CSSMatrix: "'+JSON.stringify(S)+'" is not a DOMMatrix / CSSMatrix / JSON compatible object.')}function U(S){if(typeof S!="string")throw TypeError('CSSMatrix: "'+S+'" is not a string.');var _=String(S).replace(/\s/g,""),l=new L,y='CSSMatrix: invalid transform string "'+S+'"';return _.split(")").filter(function(D){return D}).forEach(function(D){var M=D.split("("),F=M[0],N=M[1];if(!N)throw TypeError(y);var G=N.split(",").map(function(K){return K.includes("rad")?parseFloat(K)*(180/Math.PI):parseFloat(K)}),W=G[0],J=G[1],Y=G[2],V=G[3],H=[W,J,Y],z=[W,J,Y,V];if(F==="perspective"&&W&&[J,Y].every(function(K){return K===void 0}))l.m34=-1/W;else if(F.includes("matrix")&&[6,16].includes(G.length)&&G.every(function(K){return!Number.isNaN(+K)})){var X=G.map(function(K){return Math.abs(K)<1e-6?0:K});l=l.multiply(m(X))}else if(F==="translate3d"&&H.every(function(K){return!Number.isNaN(+K)}))l=l.translate(W,J,Y);else if(F==="translate"&&W&&Y===void 0)l=l.translate(W,J||0,0);else if(F==="rotate3d"&&z.every(function(K){return!Number.isNaN(+K)})&&V)l=l.rotateAxisAngle(W,J,Y,V);else if(F==="rotate"&&W&&[J,Y].every(function(K){return K===void 0}))l=l.rotate(0,0,W);else if(F==="scale3d"&&H.every(function(K){return!Number.isNaN(+K)})&&H.some(function(K){return K!==1}))l=l.scale(W,J,Y);else if(F==="scale"&&!Number.isNaN(W)&&W!==1&&Y===void 0){var q=Number.isNaN(+J),$=q?W:J;l=l.scale(W,$,1)}else if(F==="skew"&&(W||!Number.isNaN(W)&&J)&&Y===void 0)l=l.skew(W,J||0);else if(/[XYZ]/.test(F)&&W&&[J,Y].every(function(K){return K===void 0})&&["translate","rotate","scale","skew"].some(function(K){return F.includes(K)}))if(["skewX","skewY"].includes(F))l=l[F](W);else{var fe=F.replace(/[XYZ]/,""),Q=F.replace(fe,""),ie=["X","Y","Z"].indexOf(Q),Te=fe==="scale"?1:0,me=[ie===0?W:Te,ie===1?W:Te,ie===2?W:Te];l=l[fe].apply(l,me)}else throw TypeError(y)}),l}function k(S,_){return _?[S.a,S.b,S.c,S.d,S.e,S.f]:[S.m11,S.m12,S.m13,S.m14,S.m21,S.m22,S.m23,S.m24,S.m31,S.m32,S.m33,S.m34,S.m41,S.m42,S.m43,S.m44]}function x(S,_,l){var y=new L;return y.m41=S,y.e=S,y.m42=_,y.f=_,y.m43=l,y}function a(S,_,l){var y=new L,D=Math.PI/180,M=S*D,F=_*D,N=l*D,G=Math.cos(M),W=-Math.sin(M),J=Math.cos(F),Y=-Math.sin(F),V=Math.cos(N),H=-Math.sin(N),z=J*V,X=-J*H;y.m11=z,y.a=z,y.m12=X,y.b=X,y.m13=Y;var q=W*Y*V+G*H;y.m21=q,y.c=q;var $=G*V-W*Y*H;return y.m22=$,y.d=$,y.m23=-W*J,y.m31=W*H-G*Y*V,y.m32=W*V+G*Y*H,y.m33=G*J,y}function g(S,_,l,y){var D=new L,M=Math.sqrt(S*S+_*_+l*l);if(M===0)return D;var F=S/M,N=_/M,G=l/M,W=y*(Math.PI/360),J=Math.sin(W),Y=Math.cos(W),V=J*J,H=F*F,z=N*N,X=G*G,q=1-2*(z+X)*V;D.m11=q,D.a=q;var $=2*(F*N*V+G*J*Y);D.m12=$,D.b=$,D.m13=2*(F*G*V-N*J*Y);var fe=2*(N*F*V-G*J*Y);D.m21=fe,D.c=fe;var Q=1-2*(X+H)*V;return D.m22=Q,D.d=Q,D.m23=2*(N*G*V+F*J*Y),D.m31=2*(G*F*V+N*J*Y),D.m32=2*(G*N*V-F*J*Y),D.m33=1-2*(H+z)*V,D}function n(S,_,l){var y=new L;return y.m11=S,y.a=S,y.m22=_,y.d=_,y.m33=l,y}function c(S,_){var l=new L;if(S){var y=S*Math.PI/180,D=Math.tan(y);l.m21=D,l.c=D}if(_){var M=_*Math.PI/180,F=Math.tan(M);l.m12=F,l.b=F}return l}function R(S){return c(S,0)}function v(S){return c(0,S)}function e(S,_){var l=_.m11*S.m11+_.m12*S.m21+_.m13*S.m31+_.m14*S.m41,y=_.m11*S.m12+_.m12*S.m22+_.m13*S.m32+_.m14*S.m42,D=_.m11*S.m13+_.m12*S.m23+_.m13*S.m33+_.m14*S.m43,M=_.m11*S.m14+_.m12*S.m24+_.m13*S.m34+_.m14*S.m44,F=_.m21*S.m11+_.m22*S.m21+_.m23*S.m31+_.m24*S.m41,N=_.m21*S.m12+_.m22*S.m22+_.m23*S.m32+_.m24*S.m42,G=_.m21*S.m13+_.m22*S.m23+_.m23*S.m33+_.m24*S.m43,W=_.m21*S.m14+_.m22*S.m24+_.m23*S.m34+_.m24*S.m44,J=_.m31*S.m11+_.m32*S.m21+_.m33*S.m31+_.m34*S.m41,Y=_.m31*S.m12+_.m32*S.m22+_.m33*S.m32+_.m34*S.m42,V=_.m31*S.m13+_.m32*S.m23+_.m33*S.m33+_.m34*S.m43,H=_.m31*S.m14+_.m32*S.m24+_.m33*S.m34+_.m34*S.m44,z=_.m41*S.m11+_.m42*S.m21+_.m43*S.m31+_.m44*S.m41,X=_.m41*S.m12+_.m42*S.m22+_.m43*S.m32+_.m44*S.m42,q=_.m41*S.m13+_.m42*S.m23+_.m43*S.m33+_.m44*S.m43,$=_.m41*S.m14+_.m42*S.m24+_.m43*S.m34+_.m44*S.m44;return m([l,y,D,M,F,N,G,W,J,Y,V,H,z,X,q,$])}var L=function(){for(var _=[],l=arguments.length;l--;)_[l]=arguments[l];var y=this;if(y.a=1,y.b=0,y.c=0,y.d=1,y.e=0,y.f=0,y.m11=1,y.m12=0,y.m13=0,y.m14=0,y.m21=0,y.m22=1,y.m23=0,y.m24=0,y.m31=0,y.m32=0,y.m33=1,y.m34=0,y.m41=0,y.m42=0,y.m43=0,y.m44=1,_.length){var D=[16,6].some(function(M){return M===_.length})?_:_[0];return y.setMatrixValue(D)}return y},O={isIdentity:{configurable:!0},is2D:{configurable:!0}};O.isIdentity.get=function(){var S=this;return S.m11===1&&S.m12===0&&S.m13===0&&S.m14===0&&S.m21===0&&S.m22===1&&S.m23===0&&S.m24===0&&S.m31===0&&S.m32===0&&S.m33===1&&S.m34===0&&S.m41===0&&S.m42===0&&S.m43===0&&S.m44===1},O.is2D.get=function(){var S=this;return S.m31===0&&S.m32===0&&S.m33===1&&S.m34===0&&S.m43===0&&S.m44===1},L.prototype.setMatrixValue=function(_){var l=this;return typeof _=="string"&&_.length&&_!=="none"?U(_):[Array,Float64Array,Float32Array].some(function(y){return _ instanceof y})?m(_):[L,DOMMatrix,Object].some(function(y){return _ instanceof y})?w(_):l},L.prototype.toFloat32Array=function(_){return Float32Array.from(k(this,_))},L.prototype.toFloat64Array=function(_){return Float64Array.from(k(this,_))},L.prototype.toString=function(){var _=this,l=_.is2D,y=_.toFloat64Array(l).join(", "),D=l?"matrix":"matrix3d";return D+"("+y+")"},L.prototype.toJSON=function(){var _=this,l=_.is2D,y=_.isIdentity;return Object.assign({},_,{is2D:l,isIdentity:y})},L.prototype.multiply=function(_){return e(this,_)},L.prototype.translate=function(_,l,y){var D=_,M=l,F=y;return M===void 0&&(M=0),F===void 0&&(F=0),e(this,x(D,M,F))},L.prototype.scale=function(_,l,y){var D=_,M=l,F=y;return M===void 0&&(M=_),F===void 0&&(F=1),e(this,n(D,M,F))},L.prototype.rotate=function(_,l,y){var D=_,M=l||0,F=y||0;return typeof _=="number"&&l===void 0&&y===void 0&&(F=D,D=0,M=0),e(this,a(D,M,F))},L.prototype.rotateAxisAngle=function(_,l,y,D){if([_,l,y,D].some(function(M){return Number.isNaN(+M)}))throw new TypeError("CSSMatrix: expecting 4 values");return e(this,g(_,l,y,D))},L.prototype.skewX=function(_){return e(this,R(_))},L.prototype.skewY=function(_){return e(this,v(_))},L.prototype.skew=function(_,l){return e(this,c(_,l))},L.prototype.transformPoint=function(_){var l=this,y=l.m11*_.x+l.m21*_.y+l.m31*_.z+l.m41*_.w,D=l.m12*_.x+l.m22*_.y+l.m32*_.z+l.m42*_.w,M=l.m13*_.x+l.m23*_.y+l.m33*_.z+l.m43*_.w,F=l.m14*_.x+l.m24*_.y+l.m34*_.z+l.m44*_.w;return _ instanceof DOMPoint?new DOMPoint(y,D,M,F):{x:y,y:D,z:M,w:F}},Object.defineProperties(L.prototype,O),Object.assign(L,{Translate:x,Rotate:a,RotateAxisAngle:g,Scale:n,SkewX:R,SkewY:v,Skew:c,Multiply:e,fromArray:m,fromMatrix:w,fromString:U,toArray:k});var B="1.0.3",P=B;return Object.assign(L,{Version:P}),L})}(dommatrix)),dommatrix.exports}var ponyfill={exports:{}};/** * @license * web-streams-polyfill v3.3.3 * Copyright 2024 Mattias Buelens, Diwank Singh Tomer and other contributors. * This code is released under the MIT license. * SPDX-License-Identifier: MIT */var hasRequiredPonyfill;function requirePonyfill(){return hasRequiredPonyfill||(hasRequiredPonyfill=1,function(b,r){(function(m,w){w(r)})(commonjsGlobal$1,function(m){var w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol:function(ve){return"Symbol(".concat(ve,")")};function U(ve,Be){var We={label:0,sent:function(){if(St[0]&1)throw St[1];return St[1]},trys:[],ops:[]},ct,pt,St,Mt;return Mt={next:jt(0),throw:jt(1),return:jt(2)},typeof Symbol=="function"&&(Mt[Symbol.iterator]=function(){return this}),Mt;function jt(zt){return function(un){return sn([zt,un])}}function sn(zt){if(ct)throw new TypeError("Generator is already executing.");for(;Mt&&(Mt=0,zt[0]&&(We=0)),We;)try{if(ct=1,pt&&(St=zt[0]&2?pt.return:zt[0]?pt.throw||((St=pt.return)&&St.call(pt),0):pt.next)&&!(St=St.call(pt,zt[1])).done)return St;switch(pt=0,St&&(zt=[zt[0]&2,St.value]),zt[0]){case 0:case 1:St=zt;break;case 4:return We.label++,{value:zt[1],done:!1};case 5:We.label++,pt=zt[1],zt=[0];continue;case 7:zt=We.ops.pop(),We.trys.pop();continue;default:if(St=We.trys,!(St=St.length>0&&St[St.length-1])&&(zt[0]===6||zt[0]===2)){We=0;continue}if(zt[0]===3&&(!St||zt[1]>St[0]&&zt[1]=ve.length&&(ve=void 0),{value:ve&&ve[ct++],done:!ve}}};throw new TypeError(Be?"Object is not iterable.":"Symbol.iterator is not defined.")}function x(ve){return this instanceof x?(this.v=ve,this):new x(ve)}function a(ve,Be,We){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ct=We.apply(ve,Be||[]),pt,St=[];return pt={},Mt("next"),Mt("throw"),Mt("return"),pt[Symbol.asyncIterator]=function(){return this},pt;function Mt(Sn){ct[Sn]&&(pt[Sn]=function(Nn){return new Promise(function(Bn,Vn){St.push([Sn,Nn,Bn,Vn])>1||jt(Sn,Nn)})})}function jt(Sn,Nn){try{sn(ct[Sn](Nn))}catch(Bn){mn(St[0][3],Bn)}}function sn(Sn){Sn.value instanceof x?Promise.resolve(Sn.value.v).then(zt,un):mn(St[0][2],Sn)}function zt(Sn){jt("next",Sn)}function un(Sn){jt("throw",Sn)}function mn(Sn,Nn){Sn(Nn),St.shift(),St.length&&jt(St[0][0],St[0][1])}}function g(ve){var Be,We;return Be={},ct("next"),ct("throw",function(pt){throw pt}),ct("return"),Be[Symbol.iterator]=function(){return this},Be;function ct(pt,St){Be[pt]=ve[pt]?function(Mt){return(We=!We)?{value:x(ve[pt](Mt)),done:!1}:St?St(Mt):Mt}:St}}function n(ve){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Be=ve[Symbol.asyncIterator],We;return Be?Be.call(ve):(ve=typeof k=="function"?k(ve):ve[Symbol.iterator](),We={},ct("next"),ct("throw"),ct("return"),We[Symbol.asyncIterator]=function(){return this},We);function ct(St){We[St]=ve[St]&&function(Mt){return new Promise(function(jt,sn){Mt=ve[St](Mt),pt(jt,sn,Mt.done,Mt.value)})}}function pt(St,Mt,jt,sn){Promise.resolve(sn).then(function(zt){St({value:zt,done:jt})},Mt)}}typeof SuppressedError=="function"&&SuppressedError;function c(){}function R(ve){return typeof ve=="object"&&ve!==null||typeof ve=="function"}var v=c;function e(ve,Be){try{Object.defineProperty(ve,"name",{value:Be,configurable:!0})}catch{}}var L=Promise,O=Promise.prototype.then,B=Promise.reject.bind(L);function P(ve){return new L(ve)}function S(ve){return P(function(Be){return Be(ve)})}function _(ve){return B(ve)}function l(ve,Be,We){return O.call(ve,Be,We)}function y(ve,Be,We){l(l(ve,Be,We),void 0,v)}function D(ve,Be){y(ve,Be)}function M(ve,Be){y(ve,void 0,Be)}function F(ve,Be,We){return l(ve,Be,We)}function N(ve){l(ve,void 0,v)}var G=function(ve){if(typeof queueMicrotask=="function")G=queueMicrotask;else{var Be=S(void 0);G=function(We){return l(Be,We)}}return G(ve)};function W(ve,Be,We){if(typeof ve!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(ve,Be,We)}function J(ve,Be,We){try{return S(W(ve,Be,We))}catch(ct){return _(ct)}}var Y=16384,V=function(){function ve(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(ve.prototype,"length",{get:function(){return this._size},enumerable:!1,configurable:!0}),ve.prototype.push=function(Be){var We=this._back,ct=We;We._elements.length===Y-1&&(ct={_elements:[],_next:void 0}),We._elements.push(Be),ct!==We&&(this._back=ct,We._next=ct),++this._size},ve.prototype.shift=function(){var Be=this._front,We=Be,ct=this._cursor,pt=ct+1,St=Be._elements,Mt=St[ct];return pt===Y&&(We=Be._next,pt=0),--this._size,this._cursor=pt,Be!==We&&(this._front=We),St[ct]=void 0,Mt},ve.prototype.forEach=function(Be){for(var We=this._cursor,ct=this._front,pt=ct._elements;(We!==pt.length||ct._next!==void 0)&&!(We===pt.length&&(ct=ct._next,pt=ct._elements,We=0,pt.length===0));)Be(pt[We]),++We},ve.prototype.peek=function(){var Be=this._front,We=this._cursor;return Be._elements[We]},ve}(),H=w("[[AbortSteps]]"),z=w("[[ErrorSteps]]"),X=w("[[CancelSteps]]"),q=w("[[PullSteps]]"),$=w("[[ReleaseSteps]]");function fe(ve,Be){ve._ownerReadableStream=Be,Be._reader=ve,Be._state==="readable"?me(ve):Be._state==="closed"?ce(ve):K(ve,Be._storedError)}function Q(ve,Be){var We=ve._ownerReadableStream;return Xn(We,Be)}function ie(ve){var Be=ve._ownerReadableStream;Be._state==="readable"?de(ve,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):Z(ve,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),Be._readableStreamController[$](),Be._reader=void 0,ve._ownerReadableStream=void 0}function Te(ve){return new TypeError("Cannot "+ve+" a stream using a released reader")}function me(ve){ve._closedPromise=P(function(Be,We){ve._closedPromise_resolve=Be,ve._closedPromise_reject=We})}function K(ve,Be){me(ve),de(ve,Be)}function ce(ve){me(ve),ae(ve)}function de(ve,Be){ve._closedPromise_reject!==void 0&&(N(ve._closedPromise),ve._closedPromise_reject(Be),ve._closedPromise_resolve=void 0,ve._closedPromise_reject=void 0)}function Z(ve,Be){K(ve,Be)}function ae(ve){ve._closedPromise_resolve!==void 0&&(ve._closedPromise_resolve(void 0),ve._closedPromise_resolve=void 0,ve._closedPromise_reject=void 0)}var he=Number.isFinite||function(ve){return typeof ve=="number"&&isFinite(ve)},we=Math.trunc||function(ve){return ve<0?Math.ceil(ve):Math.floor(ve)};function _e(ve){return typeof ve=="object"||typeof ve=="function"}function ye(ve,Be){if(ve!==void 0&&!_e(ve))throw new TypeError("".concat(Be," is not an object."))}function se(ve,Be){if(typeof ve!="function")throw new TypeError("".concat(Be," is not a function."))}function Ie(ve){return typeof ve=="object"&&ve!==null||typeof ve=="function"}function Ce(ve,Be){if(!Ie(ve))throw new TypeError("".concat(Be," is not an object."))}function oe(ve,Be,We){if(ve===void 0)throw new TypeError("Parameter ".concat(Be," is required in '").concat(We,"'."))}function pe(ve,Be,We){if(ve===void 0)throw new TypeError("".concat(Be," is required in '").concat(We,"'."))}function xe(ve){return Number(ve)}function Ne(ve){return ve===0?0:ve}function ke(ve){return Ne(we(ve))}function De(ve,Be){var We=0,ct=Number.MAX_SAFE_INTEGER,pt=Number(ve);if(pt=Ne(pt),!he(pt))throw new TypeError("".concat(Be," is not a finite number"));if(pt=ke(pt),ptct)throw new TypeError("".concat(Be," is outside the accepted range of ").concat(We," to ").concat(ct,", inclusive"));return!he(pt)||pt===0?0:pt}function Fe(ve,Be){if(!Ir(ve))throw new TypeError("".concat(Be," is not a ReadableStream."))}function Pe(ve){return new Ae(ve)}function qe(ve,Be){ve._reader._readRequests.push(Be)}function Le(ve,Be,We){var ct=ve._reader,pt=ct._readRequests.shift();We?pt._closeSteps():pt._chunkSteps(Be)}function Oe(ve){return ve._reader._readRequests.length}function Ee(ve){var Be=ve._reader;return!(Be===void 0||!Ve(Be))}var Ae=function(){function ve(Be){if(oe(Be,1,"ReadableStreamDefaultReader"),Fe(Be,"First parameter"),Nr(Be))throw new TypeError("This stream has already been locked for exclusive reading by another reader");fe(this,Be),this._readRequests=new V}return Object.defineProperty(ve.prototype,"closed",{get:function(){return Ve(this)?this._closedPromise:_(Qe("closed"))},enumerable:!1,configurable:!0}),ve.prototype.cancel=function(Be){return Be===void 0&&(Be=void 0),Ve(this)?this._ownerReadableStream===void 0?_(Te("cancel")):Q(this,Be):_(Qe("cancel"))},ve.prototype.read=function(){if(!Ve(this))return _(Qe("read"));if(this._ownerReadableStream===void 0)return _(Te("read from"));var Be,We,ct=P(function(St,Mt){Be=St,We=Mt}),pt={_chunkSteps:function(St){return Be({value:St,done:!1})},_closeSteps:function(){return Be({value:void 0,done:!0})},_errorSteps:function(St){return We(St)}};return $e(this,pt),ct},ve.prototype.releaseLock=function(){if(!Ve(this))throw Qe("releaseLock");this._ownerReadableStream!==void 0&&Ue(this)},ve}();Object.defineProperties(Ae.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),e(Ae.prototype.cancel,"cancel"),e(Ae.prototype.read,"read"),e(Ae.prototype.releaseLock,"releaseLock"),typeof w.toStringTag=="symbol"&&Object.defineProperty(Ae.prototype,w.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function Ve(ve){return!R(ve)||!Object.prototype.hasOwnProperty.call(ve,"_readRequests")?!1:ve instanceof Ae}function $e(ve,Be){var We=ve._ownerReadableStream;We._disturbed=!0,We._state==="closed"?Be._closeSteps():We._state==="errored"?Be._errorSteps(We._storedError):We._readableStreamController[q](Be)}function Ue(ve){ie(ve);var Be=new TypeError("Reader was released");He(ve,Be)}function He(ve,Be){var We=ve._readRequests;ve._readRequests=new V,We.forEach(function(ct){ct._errorSteps(Be)})}function Qe(ve){return new TypeError("ReadableStreamDefaultReader.prototype.".concat(ve," can only be used on a ReadableStreamDefaultReader"))}var Ze,et,tt;function je(ve){return ve.slice()}function Je(ve,Be,We,ct,pt){new Uint8Array(ve).set(new Uint8Array(We,ct,pt),Be)}var nt=function(ve){return typeof ve.transfer=="function"?nt=function(Be){return Be.transfer()}:typeof structuredClone=="function"?nt=function(Be){return structuredClone(Be,{transfer:[Be]})}:nt=function(Be){return Be},nt(ve)},Ke=function(ve){return typeof ve.detached=="boolean"?Ke=function(Be){return Be.detached}:Ke=function(Be){return Be.byteLength===0},Ke(ve)};function at(ve,Be,We){if(ve.slice)return ve.slice(Be,We);var ct=We-Be,pt=new ArrayBuffer(ct);return Je(pt,0,ve,Be,ct),pt}function ot(ve,Be){var We=ve[Be];if(We!=null){if(typeof We!="function")throw new TypeError("".concat(String(Be)," is not a function"));return We}}function Xe(ve){var Be,We=(Be={},Be[w.iterator]=function(){return ve.iterator},Be),ct=function(){return a(this,arguments,function(){return U(this,function(St){switch(St.label){case 0:return[5,k(g(n(We)))];case 1:return[4,x.apply(void 0,[St.sent()])];case 2:return[4,x.apply(void 0,[St.sent()])];case 3:return[2,St.sent()]}})})}(),pt=ct.next;return{iterator:ct,nextMethod:pt,done:!1}}var ze=(tt=(Ze=w.asyncIterator)!==null&&Ze!==void 0?Ze:(et=w.for)===null||et===void 0?void 0:et.call(w,"Symbol.asyncIterator"))!==null&&tt!==void 0?tt:"@@asyncIterator";function Ye(ve,Be,We){if(Be===void 0&&(Be="sync"),We===void 0)if(Be==="async"){if(We=ot(ve,ze),We===void 0){var ct=ot(ve,w.iterator),pt=Ye(ve,"sync",ct);return Xe(pt)}}else We=ot(ve,w.iterator);if(We===void 0)throw new TypeError("The object is not iterable");var St=W(We,ve,[]);if(!R(St))throw new TypeError("The iterator method must return an object");var Mt=St.next;return{iterator:St,nextMethod:Mt,done:!1}}function st(ve){var Be=W(ve.nextMethod,ve.iterator,[]);if(!R(Be))throw new TypeError("The iterator.next() method must return an object");return Be}function _t(ve){return!!ve.done}function ft(ve){return ve.value}var Ct,ut=(Ct={},Ct[ze]=function(){return this},Ct);Object.defineProperty(ut,ze,{enumerable:!1});var rt=function(){function ve(Be,We){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=Be,this._preventCancel=We}return ve.prototype.next=function(){var Be=this,We=function(){return Be._nextSteps()};return this._ongoingPromise=this._ongoingPromise?F(this._ongoingPromise,We,We):We(),this._ongoingPromise},ve.prototype.return=function(Be){var We=this,ct=function(){return We._returnSteps(Be)};return this._ongoingPromise?F(this._ongoingPromise,ct,ct):ct()},ve.prototype._nextSteps=function(){var Be=this;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});var We=this._reader,ct,pt,St=P(function(jt,sn){ct=jt,pt=sn}),Mt={_chunkSteps:function(jt){Be._ongoingPromise=void 0,G(function(){return ct({value:jt,done:!1})})},_closeSteps:function(){Be._ongoingPromise=void 0,Be._isFinished=!0,ie(We),ct({value:void 0,done:!0})},_errorSteps:function(jt){Be._ongoingPromise=void 0,Be._isFinished=!0,ie(We),pt(jt)}};return $e(We,Mt),St},ve.prototype._returnSteps=function(Be){if(this._isFinished)return Promise.resolve({value:Be,done:!0});this._isFinished=!0;var We=this._reader;if(!this._preventCancel){var ct=Q(We,Be);return ie(We),F(ct,function(){return{value:Be,done:!0}})}return ie(We),S({value:Be,done:!0})},ve}(),mt={next:function(){return dt(this)?this._asyncIteratorImpl.next():_(Nt("next"))},return:function(ve){return dt(this)?this._asyncIteratorImpl.return(ve):_(Nt("return"))}};Object.setPrototypeOf(mt,ut);function Ot(ve,Be){var We=Pe(ve),ct=new rt(We,Be),pt=Object.create(mt);return pt._asyncIteratorImpl=ct,pt}function dt(ve){if(!R(ve)||!Object.prototype.hasOwnProperty.call(ve,"_asyncIteratorImpl"))return!1;try{return ve._asyncIteratorImpl instanceof rt}catch{return!1}}function Nt(ve){return new TypeError("ReadableStreamAsyncIterator.".concat(ve," can only be used on a ReadableSteamAsyncIterator"))}var kt=Number.isNaN||function(ve){return ve!==ve};function Ut(ve){return!(typeof ve!="number"||kt(ve)||ve<0)}function Ht(ve){var Be=at(ve.buffer,ve.byteOffset,ve.byteOffset+ve.byteLength);return new Uint8Array(Be)}function Kt(ve){var Be=ve._queue.shift();return ve._queueTotalSize-=Be.size,ve._queueTotalSize<0&&(ve._queueTotalSize=0),Be.value}function qt(ve,Be,We){if(!Ut(We)||We===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");ve._queue.push({value:Be,size:We}),ve._queueTotalSize+=We}function pn(ve){var Be=ve._queue.peek();return Be.value}function vt(ve){ve._queue=new V,ve._queueTotalSize=0}function xt(ve){return ve===DataView}function Rt(ve){return xt(ve.constructor)}function At(ve){return xt(ve)?1:ve.BYTES_PER_ELEMENT}var Pt=function(){function ve(){throw new TypeError("Illegal constructor")}return Object.defineProperty(ve.prototype,"view",{get:function(){if(!Dt(this))throw Jn("view");return this._view},enumerable:!1,configurable:!0}),ve.prototype.respond=function(Be){if(!Dt(this))throw Jn("respond");if(oe(Be,1,"respond"),Be=De(Be,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Ke(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");Qn(this._associatedReadableByteStreamController,Be)},ve.prototype.respondWithNewView=function(Be){if(!Dt(this))throw Jn("respondWithNewView");if(oe(Be,1,"respondWithNewView"),!ArrayBuffer.isView(Be))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Ke(Be.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");Zn(this._associatedReadableByteStreamController,Be)},ve}();Object.defineProperties(Pt.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),e(Pt.prototype.respond,"respond"),e(Pt.prototype.respondWithNewView,"respondWithNewView"),typeof w.toStringTag=="symbol"&&Object.defineProperty(Pt.prototype,w.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});var $t=function(){function ve(){throw new TypeError("Illegal constructor")}return Object.defineProperty(ve.prototype,"byobRequest",{get:function(){if(!Wt(this))throw qn("byobRequest");return lr(this)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"desiredSize",{get:function(){if(!Wt(this))throw qn("desiredSize");return Tr(this)},enumerable:!1,configurable:!0}),ve.prototype.close=function(){if(!Wt(this))throw qn("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var Be=this._controlledReadableByteStream._state;if(Be!=="readable")throw new TypeError("The stream (in ".concat(Be," state) is not in the readable state and cannot be closed"));Hn(this)},ve.prototype.enqueue=function(Be){if(!Wt(this))throw qn("enqueue");if(oe(Be,1,"enqueue"),!ArrayBuffer.isView(Be))throw new TypeError("chunk must be an array buffer view");if(Be.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(Be.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");var We=this._controlledReadableByteStream._state;if(We!=="readable")throw new TypeError("The stream (in ".concat(We," state) is not in the readable state and cannot be enqueued to"));zn(this,Be)},ve.prototype.error=function(Be){if(Be===void 0&&(Be=void 0),!Wt(this))throw qn("error");kn(this,Be)},ve.prototype[X]=function(Be){Vt(this),vt(this);var We=this._cancelAlgorithm(Be);return Kn(this),We},ve.prototype[q]=function(Be){var We=this._controlledReadableByteStream;if(this._queueTotalSize>0){vr(this,Be);return}var ct=this._autoAllocateChunkSize;if(ct!==void 0){var pt=void 0;try{pt=new ArrayBuffer(ct)}catch(Mt){Be._errorSteps(Mt);return}var St={buffer:pt,bufferByteLength:ct,byteOffset:0,byteLength:ct,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(St)}qe(We,Be),Yt(this)},ve.prototype[$]=function(){if(this._pendingPullIntos.length>0){var Be=this._pendingPullIntos.peek();Be.readerType="none",this._pendingPullIntos=new V,this._pendingPullIntos.push(Be)}},ve}();Object.defineProperties($t.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),e($t.prototype.close,"close"),e($t.prototype.enqueue,"enqueue"),e($t.prototype.error,"error"),typeof w.toStringTag=="symbol"&&Object.defineProperty($t.prototype,w.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function Wt(ve){return!R(ve)||!Object.prototype.hasOwnProperty.call(ve,"_controlledReadableByteStream")?!1:ve instanceof $t}function Dt(ve){return!R(ve)||!Object.prototype.hasOwnProperty.call(ve,"_associatedReadableByteStreamController")?!1:ve instanceof Pt}function Yt(ve){var Be=xr(ve);if(Be){if(ve._pulling){ve._pullAgain=!0;return}ve._pulling=!0;var We=ve._pullAlgorithm();y(We,function(){return ve._pulling=!1,ve._pullAgain&&(ve._pullAgain=!1,Yt(ve)),null},function(ct){return kn(ve,ct),null})}}function Vt(ve){Jt(ve),ve._pendingPullIntos=new V}function rn(ve,Be){var We=!1;ve._state==="closed"&&(We=!0);var ct=en(Be);Be.readerType==="default"?Le(ve,ct,We):Rr(ve,ct,We)}function en(ve){var Be=ve.bytesFilled,We=ve.elementSize;return new ve.viewConstructor(ve.buffer,ve.byteOffset,Be/We)}function Xt(ve,Be,We,ct){ve._queue.push({buffer:Be,byteOffset:We,byteLength:ct}),ve._queueTotalSize+=ct}function ht(ve,Be,We,ct){var pt;try{pt=at(Be,We,We+ct)}catch(St){throw kn(ve,St),St}Xt(ve,pt,0,ct)}function Et(ve,Be){Be.bytesFilled>0&&ht(ve,Be.buffer,Be.byteOffset,Be.bytesFilled),Gn(ve)}function It(ve,Be){var We=Math.min(ve._queueTotalSize,Be.byteLength-Be.bytesFilled),ct=Be.bytesFilled+We,pt=We,St=!1,Mt=ct%Be.elementSize,jt=ct-Mt;jt>=Be.minimumFill&&(pt=jt-Be.bytesFilled,St=!0);for(var sn=ve._queue;pt>0;){var zt=sn.peek(),un=Math.min(pt,zt.byteLength),mn=Be.byteOffset+Be.bytesFilled;Je(Be.buffer,mn,zt.buffer,zt.byteOffset,un),zt.byteLength===un?sn.shift():(zt.byteOffset+=un,zt.byteLength-=un),ve._queueTotalSize-=un,wt(ve,un,Be),pt-=un}return St}function wt(ve,Be,We){We.bytesFilled+=Be}function Bt(ve){ve._queueTotalSize===0&&ve._closeRequested?(Kn(ve),Kr(ve._controlledReadableByteStream)):Yt(ve)}function Jt(ve){ve._byobRequest!==null&&(ve._byobRequest._associatedReadableByteStreamController=void 0,ve._byobRequest._view=null,ve._byobRequest=null)}function _n(ve){for(;ve._pendingPullIntos.length>0;){if(ve._queueTotalSize===0)return;var Be=ve._pendingPullIntos.peek();It(ve,Be)&&(Gn(ve),rn(ve._controlledReadableByteStream,Be))}}function nn(ve){for(var Be=ve._controlledReadableByteStream._reader;Be._readRequests.length>0;){if(ve._queueTotalSize===0)return;var We=Be._readRequests.shift();vr(ve,We)}}function an(ve,Be,We,ct){var pt=ve._controlledReadableByteStream,St=Be.constructor,Mt=At(St),jt=Be.byteOffset,sn=Be.byteLength,zt=We*Mt,un;try{un=nt(Be.buffer)}catch(Vn){ct._errorSteps(Vn);return}var mn={buffer:un,bufferByteLength:un.byteLength,byteOffset:jt,byteLength:sn,bytesFilled:0,minimumFill:zt,elementSize:Mt,viewConstructor:St,readerType:"byob"};if(ve._pendingPullIntos.length>0){ve._pendingPullIntos.push(mn),er(pt,ct);return}if(pt._state==="closed"){var Sn=new St(mn.buffer,mn.byteOffset,0);ct._closeSteps(Sn);return}if(ve._queueTotalSize>0){if(It(ve,mn)){var Nn=en(mn);Bt(ve),ct._chunkSteps(Nn);return}if(ve._closeRequested){var Bn=new TypeError("Insufficient bytes to fill elements in the given buffer");kn(ve,Bn),ct._errorSteps(Bn);return}}ve._pendingPullIntos.push(mn),er(pt,ct),Yt(ve)}function bn(ve,Be){Be.readerType==="none"&&Gn(ve);var We=ve._controlledReadableByteStream;if(tr(We))for(;gr(We)>0;){var ct=Gn(ve);rn(We,ct)}}function Cn(ve,Be,We){if(wt(ve,Be,We),We.readerType==="none"){Et(ve,We),_n(ve);return}if(!(We.bytesFilled0){var pt=We.byteOffset+We.bytesFilled;ht(ve,We.buffer,pt-ct,ct)}We.bytesFilled-=ct,rn(ve._controlledReadableByteStream,We),_n(ve)}}function Mn(ve,Be){var We=ve._pendingPullIntos.peek();Jt(ve);var ct=ve._controlledReadableByteStream._state;ct==="closed"?bn(ve,We):Cn(ve,Be,We),Yt(ve)}function Gn(ve){var Be=ve._pendingPullIntos.shift();return Be}function xr(ve){var Be=ve._controlledReadableByteStream;if(Be._state!=="readable"||ve._closeRequested||!ve._started)return!1;if(Ee(Be)&&Oe(Be)>0||tr(Be)&&gr(Be)>0)return!0;var We=Tr(ve);return We>0}function Kn(ve){ve._pullAlgorithm=void 0,ve._cancelAlgorithm=void 0}function Hn(ve){var Be=ve._controlledReadableByteStream;if(!(ve._closeRequested||Be._state!=="readable")){if(ve._queueTotalSize>0){ve._closeRequested=!0;return}if(ve._pendingPullIntos.length>0){var We=ve._pendingPullIntos.peek();if(We.bytesFilled%We.elementSize!==0){var ct=new TypeError("Insufficient bytes to fill elements in the given buffer");throw kn(ve,ct),ct}}Kn(ve),Kr(Be)}}function zn(ve,Be){var We=ve._controlledReadableByteStream;if(!(ve._closeRequested||We._state!=="readable")){var ct=Be.buffer,pt=Be.byteOffset,St=Be.byteLength;if(Ke(ct))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");var Mt=nt(ct);if(ve._pendingPullIntos.length>0){var jt=ve._pendingPullIntos.peek();if(Ke(jt.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");Jt(ve),jt.buffer=nt(jt.buffer),jt.readerType==="none"&&Et(ve,jt)}if(Ee(We))if(nn(ve),Oe(We)===0)Xt(ve,Mt,pt,St);else{ve._pendingPullIntos.length>0&&Gn(ve);var sn=new Uint8Array(Mt,pt,St);Le(We,sn,!1)}else tr(We)?(Xt(ve,Mt,pt,St),_n(ve)):Xt(ve,Mt,pt,St);Yt(ve)}}function kn(ve,Be){var We=ve._controlledReadableByteStream;We._state==="readable"&&(Vt(ve),vt(ve),Kn(ve),Zi(We,Be))}function vr(ve,Be){var We=ve._queue.shift();ve._queueTotalSize-=We.byteLength,Bt(ve);var ct=new Uint8Array(We.buffer,We.byteOffset,We.byteLength);Be._chunkSteps(ct)}function lr(ve){if(ve._byobRequest===null&&ve._pendingPullIntos.length>0){var Be=ve._pendingPullIntos.peek(),We=new Uint8Array(Be.buffer,Be.byteOffset+Be.bytesFilled,Be.byteLength-Be.bytesFilled),ct=Object.create(Pt.prototype);Cr(ct,ve,We),ve._byobRequest=ct}return ve._byobRequest}function Tr(ve){var Be=ve._controlledReadableByteStream._state;return Be==="errored"?null:Be==="closed"?0:ve._strategyHWM-ve._queueTotalSize}function Qn(ve,Be){var We=ve._pendingPullIntos.peek(),ct=ve._controlledReadableByteStream._state;if(ct==="closed"){if(Be!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(Be===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(We.bytesFilled+Be>We.byteLength)throw new RangeError("bytesWritten out of range")}We.buffer=nt(We.buffer),Mn(ve,Be)}function Zn(ve,Be){var We=ve._pendingPullIntos.peek(),ct=ve._controlledReadableByteStream._state;if(ct==="closed"){if(Be.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(Be.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(We.byteOffset+We.bytesFilled!==Be.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(We.bufferByteLength!==Be.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(We.bytesFilled+Be.byteLength>We.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");var pt=Be.byteLength;We.buffer=nt(Be.buffer),Mn(ve,pt)}function cr(ve,Be,We,ct,pt,St,Mt){Be._controlledReadableByteStream=ve,Be._pullAgain=!1,Be._pulling=!1,Be._byobRequest=null,Be._queue=Be._queueTotalSize=void 0,vt(Be),Be._closeRequested=!1,Be._started=!1,Be._strategyHWM=St,Be._pullAlgorithm=ct,Be._cancelAlgorithm=pt,Be._autoAllocateChunkSize=Mt,Be._pendingPullIntos=new V,ve._readableStreamController=Be;var jt=We();y(S(jt),function(){return Be._started=!0,Yt(Be),null},function(sn){return kn(Be,sn),null})}function ur(ve,Be,We){var ct=Object.create($t.prototype),pt,St,Mt;Be.start!==void 0?pt=function(){return Be.start(ct)}:pt=function(){},Be.pull!==void 0?St=function(){return Be.pull(ct)}:St=function(){return S(void 0)},Be.cancel!==void 0?Mt=function(sn){return Be.cancel(sn)}:Mt=function(){return S(void 0)};var jt=Be.autoAllocateChunkSize;if(jt===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");cr(ve,ct,pt,St,Mt,We,jt)}function Cr(ve,Be,We){ve._associatedReadableByteStreamController=Be,ve._view=We}function Jn(ve){return new TypeError("ReadableStreamBYOBRequest.prototype.".concat(ve," can only be used on a ReadableStreamBYOBRequest"))}function qn(ve){return new TypeError("ReadableByteStreamController.prototype.".concat(ve," can only be used on a ReadableByteStreamController"))}function dr(ve,Be){ye(ve,Be);var We=ve==null?void 0:ve.mode;return{mode:We===void 0?void 0:Ar(We,"".concat(Be," has member 'mode' that"))}}function Ar(ve,Be){if(ve="".concat(ve),ve!=="byob")throw new TypeError("".concat(Be," '").concat(ve,"' is not a valid enumeration value for ReadableStreamReaderMode"));return ve}function fr(ve,Be){var We;ye(ve,Be);var ct=(We=ve==null?void 0:ve.min)!==null&&We!==void 0?We:1;return{min:De(ct,"".concat(Be," has member 'min' that"))}}function Wn(ve){return new Ln(ve)}function er(ve,Be){ve._reader._readIntoRequests.push(Be)}function Rr(ve,Be,We){var ct=ve._reader,pt=ct._readIntoRequests.shift();We?pt._closeSteps(Be):pt._chunkSteps(Be)}function gr(ve){return ve._reader._readIntoRequests.length}function tr(ve){var Be=ve._reader;return!(Be===void 0||!$n(Be))}var Ln=function(){function ve(Be){if(oe(Be,1,"ReadableStreamBYOBReader"),Fe(Be,"First parameter"),Nr(Be))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Wt(Be._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");fe(this,Be),this._readIntoRequests=new V}return Object.defineProperty(ve.prototype,"closed",{get:function(){return $n(this)?this._closedPromise:_(yt("closed"))},enumerable:!1,configurable:!0}),ve.prototype.cancel=function(Be){return Be===void 0&&(Be=void 0),$n(this)?this._ownerReadableStream===void 0?_(Te("cancel")):Q(this,Be):_(yt("cancel"))},ve.prototype.read=function(Be,We){if(We===void 0&&(We={}),!$n(this))return _(yt("read"));if(!ArrayBuffer.isView(Be))return _(new TypeError("view must be an array buffer view"));if(Be.byteLength===0)return _(new TypeError("view must have non-zero byteLength"));if(Be.buffer.byteLength===0)return _(new TypeError("view's buffer must have non-zero byteLength"));if(Ke(Be.buffer))return _(new TypeError("view's buffer has been detached"));var ct;try{ct=fr(We,"options")}catch(zt){return _(zt)}var pt=ct.min;if(pt===0)return _(new TypeError("options.min must be greater than 0"));if(Rt(Be)){if(pt>Be.byteLength)return _(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(pt>Be.length)return _(new RangeError("options.min must be less than or equal to view's length"));if(this._ownerReadableStream===void 0)return _(Te("read from"));var St,Mt,jt=P(function(zt,un){St=zt,Mt=un}),sn={_chunkSteps:function(zt){return St({value:zt,done:!1})},_closeSteps:function(zt){return St({value:zt,done:!0})},_errorSteps:function(zt){return Mt(zt)}};return mr(this,Be,pt,sn),jt},ve.prototype.releaseLock=function(){if(!$n(this))throw yt("releaseLock");this._ownerReadableStream!==void 0&&zr(this)},ve}();Object.defineProperties(Ln.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),e(Ln.prototype.cancel,"cancel"),e(Ln.prototype.read,"read"),e(Ln.prototype.releaseLock,"releaseLock"),typeof w.toStringTag=="symbol"&&Object.defineProperty(Ln.prototype,w.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function $n(ve){return!R(ve)||!Object.prototype.hasOwnProperty.call(ve,"_readIntoRequests")?!1:ve instanceof Ln}function mr(ve,Be,We,ct){var pt=ve._ownerReadableStream;pt._disturbed=!0,pt._state==="errored"?ct._errorSteps(pt._storedError):an(pt._readableStreamController,Be,We,ct)}function zr(ve){ie(ve);var Be=new TypeError("Reader was released");_r(ve,Be)}function _r(ve,Be){var We=ve._readIntoRequests;ve._readIntoRequests=new V,We.forEach(function(ct){ct._errorSteps(Be)})}function yt(ve){return new TypeError("ReadableStreamBYOBReader.prototype.".concat(ve," can only be used on a ReadableStreamBYOBReader"))}function te(ve,Be){var We=ve.highWaterMark;if(We===void 0)return Be;if(kt(We)||We<0)throw new RangeError("Invalid highWaterMark");return We}function Ge(ve){var Be=ve.size;return Be||function(){return 1}}function bt(ve,Be){ye(ve,Be);var We=ve==null?void 0:ve.highWaterMark,ct=ve==null?void 0:ve.size;return{highWaterMark:We===void 0?void 0:xe(We),size:ct===void 0?void 0:Tt(ct,"".concat(Be," has member 'size' that"))}}function Tt(ve,Be){return se(ve,Be),function(We){return xe(ve(We))}}function Ft(ve,Be){ye(ve,Be);var We=ve==null?void 0:ve.abort,ct=ve==null?void 0:ve.close,pt=ve==null?void 0:ve.start,St=ve==null?void 0:ve.type,Mt=ve==null?void 0:ve.write;return{abort:We===void 0?void 0:Zt(We,ve,"".concat(Be," has member 'abort' that")),close:ct===void 0?void 0:Qt(ct,ve,"".concat(Be," has member 'close' that")),start:pt===void 0?void 0:tn(pt,ve,"".concat(Be," has member 'start' that")),write:Mt===void 0?void 0:on(Mt,ve,"".concat(Be," has member 'write' that")),type:St}}function Zt(ve,Be,We){return se(ve,We),function(ct){return J(ve,Be,[ct])}}function Qt(ve,Be,We){return se(ve,We),function(){return J(ve,Be,[])}}function tn(ve,Be,We){return se(ve,We),function(ct){return W(ve,Be,[ct])}}function on(ve,Be,We){return se(ve,We),function(ct,pt){return J(ve,Be,[ct,pt])}}function gn(ve,Be){if(!fn(ve))throw new TypeError("".concat(Be," is not a WritableStream."))}function xn(ve){if(typeof ve!="object"||ve===null)return!1;try{return typeof ve.aborted=="boolean"}catch{return!1}}var yn=typeof AbortController=="function";function Tn(){if(yn)return new AbortController}var En=function(){function ve(Be,We){Be===void 0&&(Be={}),We===void 0&&(We={}),Be===void 0?Be=null:Ce(Be,"First parameter");var ct=bt(We,"Second parameter"),pt=Ft(Be,"First parameter");cn(this);var St=pt.type;if(St!==void 0)throw new RangeError("Invalid type is specified");var Mt=Ge(ct),jt=te(ct,1);ya(this,pt,jt,Mt)}return Object.defineProperty(ve.prototype,"locked",{get:function(){if(!fn(this))throw ti("locked");return In(this)},enumerable:!1,configurable:!0}),ve.prototype.abort=function(Be){return Be===void 0&&(Be=void 0),fn(this)?In(this)?_(new TypeError("Cannot abort a stream that already has a writer")):dn(this,Be):_(ti("abort"))},ve.prototype.close=function(){return fn(this)?In(this)?_(new TypeError("Cannot close a stream that already has a writer")):rr(this)?_(new TypeError("Cannot close an already-closing stream")):Yn(this):_(ti("close"))},ve.prototype.getWriter=function(){if(!fn(this))throw ti("getWriter");return ln(this)},ve}();Object.defineProperties(En.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),e(En.prototype.abort,"abort"),e(En.prototype.close,"close"),e(En.prototype.getWriter,"getWriter"),typeof w.toStringTag=="symbol"&&Object.defineProperty(En.prototype,w.toStringTag,{value:"WritableStream",configurable:!0});function ln(ve){return new Sr(ve)}function Rn(ve,Be,We,ct,pt,St){pt===void 0&&(pt=1),St===void 0&&(St=function(){return 1});var Mt=Object.create(En.prototype);cn(Mt);var jt=Object.create(Gr.prototype);return Ui(Mt,jt,ve,Be,We,ct,pt,St),Mt}function cn(ve){ve._state="writable",ve._storedError=void 0,ve._writer=void 0,ve._writableStreamController=void 0,ve._writeRequests=new V,ve._inFlightWriteRequest=void 0,ve._closeRequest=void 0,ve._inFlightCloseRequest=void 0,ve._pendingAbortRequest=void 0,ve._backpressure=!1}function fn(ve){return!R(ve)||!Object.prototype.hasOwnProperty.call(ve,"_writableStreamController")?!1:ve instanceof En}function In(ve){return ve._writer!==void 0}function dn(ve,Be){var We;if(ve._state==="closed"||ve._state==="errored")return S(void 0);ve._writableStreamController._abortReason=Be,(We=ve._writableStreamController._abortController)===null||We===void 0||We.abort(Be);var ct=ve._state;if(ct==="closed"||ct==="errored")return S(void 0);if(ve._pendingAbortRequest!==void 0)return ve._pendingAbortRequest._promise;var pt=!1;ct==="erroring"&&(pt=!0,Be=void 0);var St=P(function(Mt,jt){ve._pendingAbortRequest={_promise:void 0,_resolve:Mt,_reject:jt,_reason:Be,_wasAlreadyErroring:pt}});return ve._pendingAbortRequest._promise=St,pt||br(ve,Be),St}function Yn(ve){var Be=ve._state;if(Be==="closed"||Be==="errored")return _(new TypeError("The stream (in ".concat(Be," state) is not in the writable state and cannot be closed")));var We=P(function(pt,St){var Mt={_resolve:pt,_reject:St};ve._closeRequest=Mt}),ct=ve._writer;return ct!==void 0&&ve._backpressure&&Be==="writable"&&Ci(ct),xa(ve._writableStreamController),We}function Fn(ve){var Be=P(function(We,ct){var pt={_resolve:We,_reject:ct};ve._writeRequests.push(pt)});return Be}function On(ve,Be){var We=ve._state;if(We==="writable"){br(ve,Be);return}nr(ve)}function br(ve,Be){var We=ve._writableStreamController;ve._state="erroring",ve._storedError=Be;var ct=ve._writer;ct!==void 0&&Mi(ct,Be),!pa(ve)&&We._started&&nr(ve)}function nr(ve){ve._state="errored",ve._writableStreamController[z]();var Be=ve._storedError;if(ve._writeRequests.forEach(function(pt){pt._reject(Be)}),ve._writeRequests=new V,ve._pendingAbortRequest===void 0){Zr(ve);return}var We=ve._pendingAbortRequest;if(ve._pendingAbortRequest=void 0,We._wasAlreadyErroring){We._reject(Be),Zr(ve);return}var ct=ve._writableStreamController[H](We._reason);y(ct,function(){return We._resolve(),Zr(ve),null},function(pt){return We._reject(pt),Zr(ve),null})}function _i(ve){ve._inFlightWriteRequest._resolve(void 0),ve._inFlightWriteRequest=void 0}function Ur(ve,Be){ve._inFlightWriteRequest._reject(Be),ve._inFlightWriteRequest=void 0,On(ve,Be)}function ha(ve){ve._inFlightCloseRequest._resolve(void 0),ve._inFlightCloseRequest=void 0;var Be=ve._state;Be==="erroring"&&(ve._storedError=void 0,ve._pendingAbortRequest!==void 0&&(ve._pendingAbortRequest._resolve(),ve._pendingAbortRequest=void 0)),ve._state="closed";var We=ve._writer;We!==void 0&&Vi(We)}function fa(ve,Be){ve._inFlightCloseRequest._reject(Be),ve._inFlightCloseRequest=void 0,ve._pendingAbortRequest!==void 0&&(ve._pendingAbortRequest._reject(Be),ve._pendingAbortRequest=void 0),On(ve,Be)}function rr(ve){return!(ve._closeRequest===void 0&&ve._inFlightCloseRequest===void 0)}function pa(ve){return!(ve._inFlightWriteRequest===void 0&&ve._inFlightCloseRequest===void 0)}function ga(ve){ve._inFlightCloseRequest=ve._closeRequest,ve._closeRequest=void 0}function ma(ve){ve._inFlightWriteRequest=ve._writeRequests.shift()}function Zr(ve){ve._closeRequest!==void 0&&(ve._closeRequest._reject(ve._storedError),ve._closeRequest=void 0);var Be=ve._writer;Be!==void 0&&vi(Be,ve._storedError)}function bi(ve,Be){var We=ve._writer;We!==void 0&&Be!==ve._backpressure&&(Be?Ia(We):Ci(We)),ve._backpressure=Be}var Sr=function(){function ve(Be){if(oe(Be,1,"WritableStreamDefaultWriter"),gn(Be,"First parameter"),In(Be))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=Be,Be._writer=this;var We=Be._state;if(We==="writable")!rr(Be)&&Be._backpressure?ai(this):Hi(this),ri(this);else if(We==="erroring")Ti(this,Be._storedError),ri(this);else if(We==="closed")Hi(this),wa(this);else{var ct=Be._storedError;Ti(this,ct),$i(this,ct)}}return Object.defineProperty(ve.prototype,"closed",{get:function(){return Mr(this)?this._closedPromise:_(Lr("closed"))},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"desiredSize",{get:function(){if(!Mr(this))throw Lr("desiredSize");if(this._ownerWritableStream===void 0)throw Yr("desiredSize");return Ea(this)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"ready",{get:function(){return Mr(this)?this._readyPromise:_(Lr("ready"))},enumerable:!1,configurable:!0}),ve.prototype.abort=function(Be){return Be===void 0&&(Be=void 0),Mr(this)?this._ownerWritableStream===void 0?_(Yr("abort")):_a(this,Be):_(Lr("abort"))},ve.prototype.close=function(){if(!Mr(this))return _(Lr("close"));var Be=this._ownerWritableStream;return Be===void 0?_(Yr("close")):rr(Be)?_(new TypeError("Cannot close an already-closing stream")):Di(this)},ve.prototype.releaseLock=function(){if(!Mr(this))throw Lr("releaseLock");var Be=this._ownerWritableStream;Be!==void 0&&Li(this)},ve.prototype.write=function(Be){return Be===void 0&&(Be=void 0),Mr(this)?this._ownerWritableStream===void 0?_(Yr("write to")):Fi(this,Be):_(Lr("write"))},ve}();Object.defineProperties(Sr.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),e(Sr.prototype.abort,"abort"),e(Sr.prototype.close,"close"),e(Sr.prototype.releaseLock,"releaseLock"),e(Sr.prototype.write,"write"),typeof w.toStringTag=="symbol"&&Object.defineProperty(Sr.prototype,w.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function Mr(ve){return!R(ve)||!Object.prototype.hasOwnProperty.call(ve,"_ownerWritableStream")?!1:ve instanceof Sr}function _a(ve,Be){var We=ve._ownerWritableStream;return dn(We,Be)}function Di(ve){var Be=ve._ownerWritableStream;return Yn(Be)}function ba(ve){var Be=ve._ownerWritableStream,We=Be._state;return rr(Be)||We==="closed"?S(void 0):We==="errored"?_(Be._storedError):Di(ve)}function Sa(ve,Be){ve._closedPromiseState==="pending"?vi(ve,Be):Ra(ve,Be)}function Mi(ve,Be){ve._readyPromiseState==="pending"?zi(ve,Be):Oa(ve,Be)}function Ea(ve){var Be=ve._ownerWritableStream,We=Be._state;return We==="errored"||We==="erroring"?null:We==="closed"?0:Gi(Be._writableStreamController)}function Li(ve){var Be=ve._ownerWritableStream,We=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Mi(ve,We),Sa(ve,We),Be._writer=void 0,ve._ownerWritableStream=void 0}function Fi(ve,Be){var We=ve._ownerWritableStream,ct=We._writableStreamController,pt=va(ct,Be);if(We!==ve._ownerWritableStream)return _(Yr("write to"));var St=We._state;if(St==="errored")return _(We._storedError);if(rr(We)||St==="closed")return _(new TypeError("The stream is closing or closed and cannot be written to"));if(St==="erroring")return _(We._storedError);var Mt=Fn(We);return Ta(ct,Be,pt),Mt}var Bi={},Gr=function(){function ve(){throw new TypeError("Illegal constructor")}return Object.defineProperty(ve.prototype,"abortReason",{get:function(){if(!Si(this))throw yi("abortReason");return this._abortReason},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"signal",{get:function(){if(!Si(this))throw yi("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal},enumerable:!1,configurable:!0}),ve.prototype.error=function(Be){if(Be===void 0&&(Be=void 0),!Si(this))throw yi("error");var We=this._controlledWritableStream._state;We==="writable"&&qi(this,Be)},ve.prototype[H]=function(Be){var We=this._abortAlgorithm(Be);return Jr(this),We},ve.prototype[z]=function(){vt(this)},ve}();Object.defineProperties(Gr.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof w.toStringTag=="symbol"&&Object.defineProperty(Gr.prototype,w.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function Si(ve){return!R(ve)||!Object.prototype.hasOwnProperty.call(ve,"_controlledWritableStream")?!1:ve instanceof Gr}function Ui(ve,Be,We,ct,pt,St,Mt,jt){Be._controlledWritableStream=ve,ve._writableStreamController=Be,Be._queue=void 0,Be._queueTotalSize=void 0,vt(Be),Be._abortReason=void 0,Be._abortController=Tn(),Be._started=!1,Be._strategySizeAlgorithm=jt,Be._strategyHWM=Mt,Be._writeAlgorithm=ct,Be._closeAlgorithm=pt,Be._abortAlgorithm=St;var sn=Ei(Be);bi(ve,sn);var zt=We(),un=S(zt);y(un,function(){return Be._started=!0,ei(Be),null},function(mn){return Be._started=!0,On(ve,mn),null})}function ya(ve,Be,We,ct){var pt=Object.create(Gr.prototype),St,Mt,jt,sn;Be.start!==void 0?St=function(){return Be.start(pt)}:St=function(){},Be.write!==void 0?Mt=function(zt){return Be.write(zt,pt)}:Mt=function(){return S(void 0)},Be.close!==void 0?jt=function(){return Be.close()}:jt=function(){return S(void 0)},Be.abort!==void 0?sn=function(zt){return Be.abort(zt)}:sn=function(){return S(void 0)},Ui(ve,pt,St,Mt,jt,sn,We,ct)}function Jr(ve){ve._writeAlgorithm=void 0,ve._closeAlgorithm=void 0,ve._abortAlgorithm=void 0,ve._strategySizeAlgorithm=void 0}function xa(ve){qt(ve,Bi,0),ei(ve)}function va(ve,Be){try{return ve._strategySizeAlgorithm(Be)}catch(We){return Wr(ve,We),1}}function Gi(ve){return ve._strategyHWM-ve._queueTotalSize}function Ta(ve,Be,We){try{qt(ve,Be,We)}catch(St){Wr(ve,St);return}var ct=ve._controlledWritableStream;if(!rr(ct)&&ct._state==="writable"){var pt=Ei(ve);bi(ct,pt)}ei(ve)}function ei(ve){var Be=ve._controlledWritableStream;if(ve._started&&Be._inFlightWriteRequest===void 0){var We=Be._state;if(We==="erroring"){nr(Be);return}if(ve._queue.length!==0){var ct=pn(ve);ct===Bi?Ca(ve):Aa(ve,ct)}}}function Wr(ve,Be){ve._controlledWritableStream._state==="writable"&&qi(ve,Be)}function Ca(ve){var Be=ve._controlledWritableStream;ga(Be),Kt(ve);var We=ve._closeAlgorithm();Jr(ve),y(We,function(){return ha(Be),null},function(ct){return fa(Be,ct),null})}function Aa(ve,Be){var We=ve._controlledWritableStream;ma(We);var ct=ve._writeAlgorithm(Be);y(ct,function(){_i(We);var pt=We._state;if(Kt(ve),!rr(We)&&pt==="writable"){var St=Ei(ve);bi(We,St)}return ei(ve),null},function(pt){return We._state==="writable"&&Jr(ve),Ur(We,pt),null})}function Ei(ve){var Be=Gi(ve);return Be<=0}function qi(ve,Be){var We=ve._controlledWritableStream;Jr(ve),br(We,Be)}function ti(ve){return new TypeError("WritableStream.prototype.".concat(ve," can only be used on a WritableStream"))}function yi(ve){return new TypeError("WritableStreamDefaultController.prototype.".concat(ve," can only be used on a WritableStreamDefaultController"))}function Lr(ve){return new TypeError("WritableStreamDefaultWriter.prototype.".concat(ve," can only be used on a WritableStreamDefaultWriter"))}function Yr(ve){return new TypeError("Cannot "+ve+" a stream using a released writer")}function ri(ve){ve._closedPromise=P(function(Be,We){ve._closedPromise_resolve=Be,ve._closedPromise_reject=We,ve._closedPromiseState="pending"})}function $i(ve,Be){ri(ve),vi(ve,Be)}function wa(ve){ri(ve),Vi(ve)}function vi(ve,Be){ve._closedPromise_reject!==void 0&&(N(ve._closedPromise),ve._closedPromise_reject(Be),ve._closedPromise_resolve=void 0,ve._closedPromise_reject=void 0,ve._closedPromiseState="rejected")}function Ra(ve,Be){$i(ve,Be)}function Vi(ve){ve._closedPromise_resolve!==void 0&&(ve._closedPromise_resolve(void 0),ve._closedPromise_resolve=void 0,ve._closedPromise_reject=void 0,ve._closedPromiseState="resolved")}function ai(ve){ve._readyPromise=P(function(Be,We){ve._readyPromise_resolve=Be,ve._readyPromise_reject=We}),ve._readyPromiseState="pending"}function Ti(ve,Be){ai(ve),zi(ve,Be)}function Hi(ve){ai(ve),Ci(ve)}function zi(ve,Be){ve._readyPromise_reject!==void 0&&(N(ve._readyPromise),ve._readyPromise_reject(Be),ve._readyPromise_resolve=void 0,ve._readyPromise_reject=void 0,ve._readyPromiseState="rejected")}function Ia(ve){ai(ve)}function Oa(ve,Be){Ti(ve,Be)}function Ci(ve){ve._readyPromise_resolve!==void 0&&(ve._readyPromise_resolve(void 0),ve._readyPromise_resolve=void 0,ve._readyPromise_reject=void 0,ve._readyPromiseState="fulfilled")}function Na(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof commonjsGlobal$1<"u")return commonjsGlobal$1}var Ai=Na();function ka(ve){if(!(typeof ve=="function"||typeof ve=="object")||ve.name!=="DOMException")return!1;try{return new ve,!0}catch{return!1}}function Da(){var ve=Ai==null?void 0:Ai.DOMException;return ka(ve)?ve:void 0}function Ma(){var ve=function(We,ct){this.message=We||"",this.name=ct||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return e(ve,"DOMException"),ve.prototype=Object.create(Error.prototype),Object.defineProperty(ve.prototype,"constructor",{value:ve,writable:!0,configurable:!0}),ve}var Pa=Da()||Ma();function Wi(ve,Be,We,ct,pt,St){var Mt=Pe(ve),jt=ln(Be);ve._disturbed=!0;var sn=!1,zt=S(void 0);return P(function(un,mn){var Sn;if(St!==void 0){if(Sn=function(){var hn=St.reason!==void 0?St.reason:new Pa("Aborted","AbortError"),vn=[];ct||vn.push(function(){return Be._state==="writable"?dn(Be,hn):S(void 0)}),pt||vn.push(function(){return ve._state==="readable"?Xn(ve,hn):S(void 0)}),Un(function(){return Promise.all(vn.map(function(wn){return wn()}))},!0,hn)},St.aborted){Sn();return}St.addEventListener("abort",Sn)}function Nn(){return P(function(hn,vn){function wn(sr){sr?hn():l(Bn(),wn,vn)}wn(!1)})}function Bn(){return sn?S(!0):l(jt._readyPromise,function(){return P(function(hn,vn){$e(Mt,{_chunkSteps:function(wn){zt=l(Fi(jt,wn),void 0,c),hn(!1)},_closeSteps:function(){return hn(!0)},_errorSteps:vn})})})}if(Dn(ve,Mt._closedPromise,function(hn){return ct?yr(!0,hn):Un(function(){return dn(Be,hn)},!0,hn),null}),Dn(Be,jt._closedPromise,function(hn){return pt?yr(!0,hn):Un(function(){return Xn(ve,hn)},!0,hn),null}),ar(ve,Mt._closedPromise,function(){return We?yr():Un(function(){return ba(jt)}),null}),rr(Be)||Be._state==="closed"){var Vn=new TypeError("the destination writable stream closed before all data could be piped to it");pt?yr(!0,Vn):Un(function(){return Xn(ve,Vn)},!0,Vn)}N(Nn());function ir(){var hn=zt;return l(zt,function(){return hn!==zt?ir():void 0})}function Dn(hn,vn,wn){hn._state==="errored"?wn(hn._storedError):M(vn,wn)}function ar(hn,vn,wn){hn._state==="closed"?wn():D(vn,wn)}function Un(hn,vn,wn){if(sn)return;sn=!0,Be._state==="writable"&&!rr(Be)?D(ir(),sr):sr();function sr(){return y(hn(),function(){return An(vn,wn)},function(Dr){return An(!0,Dr)}),null}}function yr(hn,vn){sn||(sn=!0,Be._state==="writable"&&!rr(Be)?D(ir(),function(){return An(hn,vn)}):An(hn,vn))}function An(hn,vn){return Li(jt),ie(Mt),St!==void 0&&St.removeEventListener("abort",Sn),hn?mn(vn):un(void 0),null}})}var Er=function(){function ve(){throw new TypeError("Illegal constructor")}return Object.defineProperty(ve.prototype,"desiredSize",{get:function(){if(!si(this))throw li("desiredSize");return wi(this)},enumerable:!1,configurable:!0}),ve.prototype.close=function(){if(!si(this))throw li("close");if(!$r(this))throw new TypeError("The stream is not in a state that permits close");Fr(this)},ve.prototype.enqueue=function(Be){if(Be===void 0&&(Be=void 0),!si(this))throw li("enqueue");if(!$r(this))throw new TypeError("The stream is not in a state that permits enqueue");return qr(this,Be)},ve.prototype.error=function(Be){if(Be===void 0&&(Be=void 0),!si(this))throw li("error");jn(this,Be)},ve.prototype[X]=function(Be){vt(this);var We=this._cancelAlgorithm(Be);return oi(this),We},ve.prototype[q]=function(Be){var We=this._controlledReadableStream;if(this._queue.length>0){var ct=Kt(this);this._closeRequested&&this._queue.length===0?(oi(this),Kr(We)):jr(this),Be._chunkSteps(ct)}else qe(We,Be),jr(this)},ve.prototype[$]=function(){},ve}();Object.defineProperties(Er.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),e(Er.prototype.close,"close"),e(Er.prototype.enqueue,"enqueue"),e(Er.prototype.error,"error"),typeof w.toStringTag=="symbol"&&Object.defineProperty(Er.prototype,w.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function si(ve){return!R(ve)||!Object.prototype.hasOwnProperty.call(ve,"_controlledReadableStream")?!1:ve instanceof Er}function jr(ve){var Be=Yi(ve);if(Be){if(ve._pulling){ve._pullAgain=!0;return}ve._pulling=!0;var We=ve._pullAlgorithm();y(We,function(){return ve._pulling=!1,ve._pullAgain&&(ve._pullAgain=!1,jr(ve)),null},function(ct){return jn(ve,ct),null})}}function Yi(ve){var Be=ve._controlledReadableStream;if(!$r(ve)||!ve._started)return!1;if(Nr(Be)&&Oe(Be)>0)return!0;var We=wi(ve);return We>0}function oi(ve){ve._pullAlgorithm=void 0,ve._cancelAlgorithm=void 0,ve._strategySizeAlgorithm=void 0}function Fr(ve){if($r(ve)){var Be=ve._controlledReadableStream;ve._closeRequested=!0,ve._queue.length===0&&(oi(ve),Kr(Be))}}function qr(ve,Be){if($r(ve)){var We=ve._controlledReadableStream;if(Nr(We)&&Oe(We)>0)Le(We,Be,!1);else{var ct=void 0;try{ct=ve._strategySizeAlgorithm(Be)}catch(pt){throw jn(ve,pt),pt}try{qt(ve,Be,ct)}catch(pt){throw jn(ve,pt),pt}}jr(ve)}}function jn(ve,Be){var We=ve._controlledReadableStream;We._state==="readable"&&(vt(ve),oi(ve),Zi(We,Be))}function wi(ve){var Be=ve._controlledReadableStream._state;return Be==="errored"?null:Be==="closed"?0:ve._strategyHWM-ve._queueTotalSize}function La(ve){return!Yi(ve)}function $r(ve){var Be=ve._controlledReadableStream._state;return!ve._closeRequested&&Be==="readable"}function ji(ve,Be,We,ct,pt,St,Mt){Be._controlledReadableStream=ve,Be._queue=void 0,Be._queueTotalSize=void 0,vt(Be),Be._started=!1,Be._closeRequested=!1,Be._pullAgain=!1,Be._pulling=!1,Be._strategySizeAlgorithm=Mt,Be._strategyHWM=St,Be._pullAlgorithm=ct,Be._cancelAlgorithm=pt,ve._readableStreamController=Be;var jt=We();y(S(jt),function(){return Be._started=!0,jr(Be),null},function(sn){return jn(Be,sn),null})}function Fa(ve,Be,We,ct){var pt=Object.create(Er.prototype),St,Mt,jt;Be.start!==void 0?St=function(){return Be.start(pt)}:St=function(){},Be.pull!==void 0?Mt=function(){return Be.pull(pt)}:Mt=function(){return S(void 0)},Be.cancel!==void 0?jt=function(sn){return Be.cancel(sn)}:jt=function(){return S(void 0)},ji(ve,pt,St,Mt,jt,We,ct)}function li(ve){return new TypeError("ReadableStreamDefaultController.prototype.".concat(ve," can only be used on a ReadableStreamDefaultController"))}function Ba(ve,Be){return Wt(ve._readableStreamController)?Ga(ve):Ua(ve)}function Ua(ve,Be){var We=Pe(ve),ct=!1,pt=!1,St=!1,Mt=!1,jt,sn,zt,un,mn,Sn=P(function(Dn){mn=Dn});function Nn(){if(ct)return pt=!0,S(void 0);ct=!0;var Dn={_chunkSteps:function(ar){G(function(){pt=!1;var Un=ar,yr=ar;St||qr(zt._readableStreamController,Un),Mt||qr(un._readableStreamController,yr),ct=!1,pt&&Nn()})},_closeSteps:function(){ct=!1,St||Fr(zt._readableStreamController),Mt||Fr(un._readableStreamController),(!St||!Mt)&&mn(void 0)},_errorSteps:function(){ct=!1}};return $e(We,Dn),S(void 0)}function Bn(Dn){if(St=!0,jt=Dn,Mt){var ar=je([jt,sn]),Un=Xn(ve,ar);mn(Un)}return Sn}function Vn(Dn){if(Mt=!0,sn=Dn,St){var ar=je([jt,sn]),Un=Xn(ve,ar);mn(Un)}return Sn}function ir(){}return zt=Xr(ir,Nn,Bn),un=Xr(ir,Nn,Vn),M(We._closedPromise,function(Dn){return jn(zt._readableStreamController,Dn),jn(un._readableStreamController,Dn),(!St||!Mt)&&mn(void 0),null}),[zt,un]}function Ga(ve){var Be=Pe(ve),We=!1,ct=!1,pt=!1,St=!1,Mt=!1,jt,sn,zt,un,mn,Sn=P(function(An){mn=An});function Nn(An){M(An._closedPromise,function(hn){return An!==Be||(kn(zt._readableStreamController,hn),kn(un._readableStreamController,hn),(!St||!Mt)&&mn(void 0)),null})}function Bn(){$n(Be)&&(ie(Be),Be=Pe(ve),Nn(Be));var An={_chunkSteps:function(hn){G(function(){ct=!1,pt=!1;var vn=hn,wn=hn;if(!St&&!Mt)try{wn=Ht(hn)}catch(sr){kn(zt._readableStreamController,sr),kn(un._readableStreamController,sr),mn(Xn(ve,sr));return}St||zn(zt._readableStreamController,vn),Mt||zn(un._readableStreamController,wn),We=!1,ct?ir():pt&&Dn()})},_closeSteps:function(){We=!1,St||Hn(zt._readableStreamController),Mt||Hn(un._readableStreamController),zt._readableStreamController._pendingPullIntos.length>0&&Qn(zt._readableStreamController,0),un._readableStreamController._pendingPullIntos.length>0&&Qn(un._readableStreamController,0),(!St||!Mt)&&mn(void 0)},_errorSteps:function(){We=!1}};$e(Be,An)}function Vn(An,hn){Ve(Be)&&(ie(Be),Be=Wn(ve),Nn(Be));var vn=hn?un:zt,wn=hn?zt:un,sr={_chunkSteps:function(Dr){G(function(){ct=!1,pt=!1;var Hr=hn?Mt:St,Qr=hn?St:Mt;if(Qr)Hr||Zn(vn._readableStreamController,Dr);else{var da=void 0;try{da=Ht(Dr)}catch(ki){kn(vn._readableStreamController,ki),kn(wn._readableStreamController,ki),mn(Xn(ve,ki));return}Hr||Zn(vn._readableStreamController,Dr),zn(wn._readableStreamController,da)}We=!1,ct?ir():pt&&Dn()})},_closeSteps:function(Dr){We=!1;var Hr=hn?Mt:St,Qr=hn?St:Mt;Hr||Hn(vn._readableStreamController),Qr||Hn(wn._readableStreamController),Dr!==void 0&&(Hr||Zn(vn._readableStreamController,Dr),!Qr&&wn._readableStreamController._pendingPullIntos.length>0&&Qn(wn._readableStreamController,0)),(!Hr||!Qr)&&mn(void 0)},_errorSteps:function(){We=!1}};mr(Be,An,1,sr)}function ir(){if(We)return ct=!0,S(void 0);We=!0;var An=lr(zt._readableStreamController);return An===null?Bn():Vn(An._view,!1),S(void 0)}function Dn(){if(We)return pt=!0,S(void 0);We=!0;var An=lr(un._readableStreamController);return An===null?Bn():Vn(An._view,!0),S(void 0)}function ar(An){if(St=!0,jt=An,Mt){var hn=je([jt,sn]),vn=Xn(ve,hn);mn(vn)}return Sn}function Un(An){if(Mt=!0,sn=An,St){var hn=je([jt,sn]),vn=Xn(ve,hn);mn(vn)}return Sn}function yr(){}return zt=Qi(yr,ir,ar),un=Qi(yr,Dn,Un),Nn(Be),[zt,un]}function qa(ve){return R(ve)&&typeof ve.getReader<"u"}function $a(ve){return qa(ve)?Ha(ve.getReader()):Va(ve)}function Va(ve){var Be,We=Ye(ve,"async"),ct=c;function pt(){var Mt;try{Mt=st(We)}catch(sn){return _(sn)}var jt=S(Mt);return F(jt,function(sn){if(!R(sn))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");var zt=_t(sn);if(zt)Fr(Be._readableStreamController);else{var un=ft(sn);qr(Be._readableStreamController,un)}})}function St(Mt){var jt=We.iterator,sn;try{sn=ot(jt,"return")}catch(mn){return _(mn)}if(sn===void 0)return S(void 0);var zt;try{zt=W(sn,jt,[Mt])}catch(mn){return _(mn)}var un=S(zt);return F(un,function(mn){if(!R(mn))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})}return Be=Xr(ct,pt,St,0),Be}function Ha(ve){var Be,We=c;function ct(){var St;try{St=ve.read()}catch(Mt){return _(Mt)}return F(St,function(Mt){if(!R(Mt))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(Mt.done)Fr(Be._readableStreamController);else{var jt=Mt.value;qr(Be._readableStreamController,jt)}})}function pt(St){try{return S(ve.cancel(St))}catch(Mt){return _(Mt)}}return Be=Xr(We,ct,pt,0),Be}function za(ve,Be){ye(ve,Be);var We=ve,ct=We==null?void 0:We.autoAllocateChunkSize,pt=We==null?void 0:We.cancel,St=We==null?void 0:We.pull,Mt=We==null?void 0:We.start,jt=We==null?void 0:We.type;return{autoAllocateChunkSize:ct===void 0?void 0:De(ct,"".concat(Be," has member 'autoAllocateChunkSize' that")),cancel:pt===void 0?void 0:Wa(pt,We,"".concat(Be," has member 'cancel' that")),pull:St===void 0?void 0:Ya(St,We,"".concat(Be," has member 'pull' that")),start:Mt===void 0?void 0:ja(Mt,We,"".concat(Be," has member 'start' that")),type:jt===void 0?void 0:Xa(jt,"".concat(Be," has member 'type' that"))}}function Wa(ve,Be,We){return se(ve,We),function(ct){return J(ve,Be,[ct])}}function Ya(ve,Be,We){return se(ve,We),function(ct){return J(ve,Be,[ct])}}function ja(ve,Be,We){return se(ve,We),function(ct){return W(ve,Be,[ct])}}function Xa(ve,Be){if(ve="".concat(ve),ve!=="bytes")throw new TypeError("".concat(Be," '").concat(ve,"' is not a valid enumeration value for ReadableStreamType"));return ve}function Ka(ve,Be){ye(ve,Be);var We=ve==null?void 0:ve.preventCancel;return{preventCancel:!!We}}function Ki(ve,Be){ye(ve,Be);var We=ve==null?void 0:ve.preventAbort,ct=ve==null?void 0:ve.preventCancel,pt=ve==null?void 0:ve.preventClose,St=ve==null?void 0:ve.signal;return St!==void 0&&Qa(St,"".concat(Be," has member 'signal' that")),{preventAbort:!!We,preventCancel:!!ct,preventClose:!!pt,signal:St}}function Qa(ve,Be){if(!xn(ve))throw new TypeError("".concat(Be," is not an AbortSignal."))}function Za(ve,Be){ye(ve,Be);var We=ve==null?void 0:ve.readable;pe(We,"readable","ReadableWritablePair"),Fe(We,"".concat(Be," has member 'readable' that"));var ct=ve==null?void 0:ve.writable;return pe(ct,"writable","ReadableWritablePair"),gn(ct,"".concat(Be," has member 'writable' that")),{readable:We,writable:ct}}var Pn=function(){function ve(Be,We){Be===void 0&&(Be={}),We===void 0&&(We={}),Be===void 0?Be=null:Ce(Be,"First parameter");var ct=bt(We,"Second parameter"),pt=za(Be,"First parameter");if(Ri(this),pt.type==="bytes"){if(ct.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");var St=te(ct,0);ur(this,pt,St)}else{var Mt=Ge(ct),St=te(ct,1);Fa(this,pt,St,Mt)}}return Object.defineProperty(ve.prototype,"locked",{get:function(){if(!Ir(this))throw Br("locked");return Nr(this)},enumerable:!1,configurable:!0}),ve.prototype.cancel=function(Be){return Be===void 0&&(Be=void 0),Ir(this)?Nr(this)?_(new TypeError("Cannot cancel a stream that already has a reader")):Xn(this,Be):_(Br("cancel"))},ve.prototype.getReader=function(Be){if(Be===void 0&&(Be=void 0),!Ir(this))throw Br("getReader");var We=dr(Be,"First parameter");return We.mode===void 0?Pe(this):Wn(this)},ve.prototype.pipeThrough=function(Be,We){if(We===void 0&&(We={}),!Ir(this))throw Br("pipeThrough");oe(Be,1,"pipeThrough");var ct=Za(Be,"First parameter"),pt=Ki(We,"Second parameter");if(Nr(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(In(ct.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var St=Wi(this,ct.writable,pt.preventClose,pt.preventAbort,pt.preventCancel,pt.signal);return N(St),ct.readable},ve.prototype.pipeTo=function(Be,We){if(We===void 0&&(We={}),!Ir(this))return _(Br("pipeTo"));if(Be===void 0)return _("Parameter 1 is required in 'pipeTo'.");if(!fn(Be))return _(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));var ct;try{ct=Ki(We,"Second parameter")}catch(pt){return _(pt)}return Nr(this)?_(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):In(Be)?_(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Wi(this,Be,ct.preventClose,ct.preventAbort,ct.preventCancel,ct.signal)},ve.prototype.tee=function(){if(!Ir(this))throw Br("tee");var Be=Ba(this);return je(Be)},ve.prototype.values=function(Be){if(Be===void 0&&(Be=void 0),!Ir(this))throw Br("values");var We=Ka(Be,"First parameter");return Ot(this,We.preventCancel)},ve.prototype[ze]=function(Be){return this.values(Be)},ve.from=function(Be){return $a(Be)},ve}();Object.defineProperties(Pn,{from:{enumerable:!0}}),Object.defineProperties(Pn.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),e(Pn.from,"from"),e(Pn.prototype.cancel,"cancel"),e(Pn.prototype.getReader,"getReader"),e(Pn.prototype.pipeThrough,"pipeThrough"),e(Pn.prototype.pipeTo,"pipeTo"),e(Pn.prototype.tee,"tee"),e(Pn.prototype.values,"values"),typeof w.toStringTag=="symbol"&&Object.defineProperty(Pn.prototype,w.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(Pn.prototype,ze,{value:Pn.prototype.values,writable:!0,configurable:!0});function Xr(ve,Be,We,ct,pt){ct===void 0&&(ct=1),pt===void 0&&(pt=function(){return 1});var St=Object.create(Pn.prototype);Ri(St);var Mt=Object.create(Er.prototype);return ji(St,Mt,ve,Be,We,ct,pt),St}function Qi(ve,Be,We){var ct=Object.create(Pn.prototype);Ri(ct);var pt=Object.create($t.prototype);return cr(ct,pt,ve,Be,We,0,void 0),ct}function Ri(ve){ve._state="readable",ve._reader=void 0,ve._storedError=void 0,ve._disturbed=!1}function Ir(ve){return!R(ve)||!Object.prototype.hasOwnProperty.call(ve,"_readableStreamController")?!1:ve instanceof Pn}function Nr(ve){return ve._reader!==void 0}function Xn(ve,Be){if(ve._disturbed=!0,ve._state==="closed")return S(void 0);if(ve._state==="errored")return _(ve._storedError);Kr(ve);var We=ve._reader;if(We!==void 0&&$n(We)){var ct=We._readIntoRequests;We._readIntoRequests=new V,ct.forEach(function(St){St._closeSteps(void 0)})}var pt=ve._readableStreamController[X](Be);return F(pt,c)}function Kr(ve){ve._state="closed";var Be=ve._reader;if(Be!==void 0&&(ae(Be),Ve(Be))){var We=Be._readRequests;Be._readRequests=new V,We.forEach(function(ct){ct._closeSteps()})}}function Zi(ve,Be){ve._state="errored",ve._storedError=Be;var We=ve._reader;We!==void 0&&(de(We,Be),Ve(We)?He(We,Be):_r(We,Be))}function Br(ve){return new TypeError("ReadableStream.prototype.".concat(ve," can only be used on a ReadableStream"))}function Ji(ve,Be){ye(ve,Be);var We=ve==null?void 0:ve.highWaterMark;return pe(We,"highWaterMark","QueuingStrategyInit"),{highWaterMark:xe(We)}}var ea=function(ve){return ve.byteLength};e(ea,"size");var ci=function(){function ve(Be){oe(Be,1,"ByteLengthQueuingStrategy"),Be=Ji(Be,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=Be.highWaterMark}return Object.defineProperty(ve.prototype,"highWaterMark",{get:function(){if(!na(this))throw ta("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"size",{get:function(){if(!na(this))throw ta("size");return ea},enumerable:!1,configurable:!0}),ve}();Object.defineProperties(ci.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof w.toStringTag=="symbol"&&Object.defineProperty(ci.prototype,w.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function ta(ve){return new TypeError("ByteLengthQueuingStrategy.prototype.".concat(ve," can only be used on a ByteLengthQueuingStrategy"))}function na(ve){return!R(ve)||!Object.prototype.hasOwnProperty.call(ve,"_byteLengthQueuingStrategyHighWaterMark")?!1:ve instanceof ci}var ra=function(){return 1};e(ra,"size");var ui=function(){function ve(Be){oe(Be,1,"CountQueuingStrategy"),Be=Ji(Be,"First parameter"),this._countQueuingStrategyHighWaterMark=Be.highWaterMark}return Object.defineProperty(ve.prototype,"highWaterMark",{get:function(){if(!aa(this))throw ia("highWaterMark");return this._countQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"size",{get:function(){if(!aa(this))throw ia("size");return ra},enumerable:!1,configurable:!0}),ve}();Object.defineProperties(ui.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof w.toStringTag=="symbol"&&Object.defineProperty(ui.prototype,w.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function ia(ve){return new TypeError("CountQueuingStrategy.prototype.".concat(ve," can only be used on a CountQueuingStrategy"))}function aa(ve){return!R(ve)||!Object.prototype.hasOwnProperty.call(ve,"_countQueuingStrategyHighWaterMark")?!1:ve instanceof ui}function Ja(ve,Be){ye(ve,Be);var We=ve==null?void 0:ve.cancel,ct=ve==null?void 0:ve.flush,pt=ve==null?void 0:ve.readableType,St=ve==null?void 0:ve.start,Mt=ve==null?void 0:ve.transform,jt=ve==null?void 0:ve.writableType;return{cancel:We===void 0?void 0:rs(We,ve,"".concat(Be," has member 'cancel' that")),flush:ct===void 0?void 0:es(ct,ve,"".concat(Be," has member 'flush' that")),readableType:pt,start:St===void 0?void 0:ts(St,ve,"".concat(Be," has member 'start' that")),transform:Mt===void 0?void 0:ns(Mt,ve,"".concat(Be," has member 'transform' that")),writableType:jt}}function es(ve,Be,We){return se(ve,We),function(ct){return J(ve,Be,[ct])}}function ts(ve,Be,We){return se(ve,We),function(ct){return W(ve,Be,[ct])}}function ns(ve,Be,We){return se(ve,We),function(ct,pt){return J(ve,Be,[ct,pt])}}function rs(ve,Be,We){return se(ve,We),function(ct){return J(ve,Be,[ct])}}var di=function(){function ve(Be,We,ct){Be===void 0&&(Be={}),We===void 0&&(We={}),ct===void 0&&(ct={}),Be===void 0&&(Be=null);var pt=bt(We,"Second parameter"),St=bt(ct,"Third parameter"),Mt=Ja(Be,"First parameter");if(Mt.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(Mt.writableType!==void 0)throw new RangeError("Invalid writableType specified");var jt=te(St,0),sn=Ge(St),zt=te(pt,1),un=Ge(pt),mn,Sn=P(function(Nn){mn=Nn});is(this,Sn,zt,un,jt,sn),ss(this,Mt),Mt.start!==void 0?mn(Mt.start(this._transformStreamController)):mn(void 0)}return Object.defineProperty(ve.prototype,"readable",{get:function(){if(!sa(this))throw ua("readable");return this._readable},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"writable",{get:function(){if(!sa(this))throw ua("writable");return this._writable},enumerable:!1,configurable:!0}),ve}();Object.defineProperties(di.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof w.toStringTag=="symbol"&&Object.defineProperty(di.prototype,w.toStringTag,{value:"TransformStream",configurable:!0});function is(ve,Be,We,ct,pt,St){function Mt(){return Be}function jt(Sn){return cs(ve,Sn)}function sn(Sn){return us(ve,Sn)}function zt(){return ds(ve)}ve._writable=Rn(Mt,jt,zt,sn,We,ct);function un(){return hs(ve)}function mn(Sn){return fs(ve,Sn)}ve._readable=Xr(Mt,un,mn,pt,St),ve._backpressure=void 0,ve._backpressureChangePromise=void 0,ve._backpressureChangePromise_resolve=void 0,hi(ve,!0),ve._transformStreamController=void 0}function sa(ve){return!R(ve)||!Object.prototype.hasOwnProperty.call(ve,"_transformStreamController")?!1:ve instanceof di}function oa(ve,Be){jn(ve._readable._readableStreamController,Be),Ii(ve,Be)}function Ii(ve,Be){gi(ve._transformStreamController),Wr(ve._writable._writableStreamController,Be),Oi(ve)}function Oi(ve){ve._backpressure&&hi(ve,!1)}function hi(ve,Be){ve._backpressureChangePromise!==void 0&&ve._backpressureChangePromise_resolve(),ve._backpressureChangePromise=P(function(We){ve._backpressureChangePromise_resolve=We}),ve._backpressure=Be}var kr=function(){function ve(){throw new TypeError("Illegal constructor")}return Object.defineProperty(ve.prototype,"desiredSize",{get:function(){if(!fi(this))throw mi("desiredSize");var Be=this._controlledTransformStream._readable._readableStreamController;return wi(Be)},enumerable:!1,configurable:!0}),ve.prototype.enqueue=function(Be){if(Be===void 0&&(Be=void 0),!fi(this))throw mi("enqueue");la(this,Be)},ve.prototype.error=function(Be){if(Be===void 0&&(Be=void 0),!fi(this))throw mi("error");os(this,Be)},ve.prototype.terminate=function(){if(!fi(this))throw mi("terminate");ls(this)},ve}();Object.defineProperties(kr.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),e(kr.prototype.enqueue,"enqueue"),e(kr.prototype.error,"error"),e(kr.prototype.terminate,"terminate"),typeof w.toStringTag=="symbol"&&Object.defineProperty(kr.prototype,w.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function fi(ve){return!R(ve)||!Object.prototype.hasOwnProperty.call(ve,"_controlledTransformStream")?!1:ve instanceof kr}function as(ve,Be,We,ct,pt){Be._controlledTransformStream=ve,ve._transformStreamController=Be,Be._transformAlgorithm=We,Be._flushAlgorithm=ct,Be._cancelAlgorithm=pt,Be._finishPromise=void 0,Be._finishPromise_resolve=void 0,Be._finishPromise_reject=void 0}function ss(ve,Be){var We=Object.create(kr.prototype),ct,pt,St;Be.transform!==void 0?ct=function(Mt){return Be.transform(Mt,We)}:ct=function(Mt){try{return la(We,Mt),S(void 0)}catch(jt){return _(jt)}},Be.flush!==void 0?pt=function(){return Be.flush(We)}:pt=function(){return S(void 0)},Be.cancel!==void 0?St=function(Mt){return Be.cancel(Mt)}:St=function(){return S(void 0)},as(ve,We,ct,pt,St)}function gi(ve){ve._transformAlgorithm=void 0,ve._flushAlgorithm=void 0,ve._cancelAlgorithm=void 0}function la(ve,Be){var We=ve._controlledTransformStream,ct=We._readable._readableStreamController;if(!$r(ct))throw new TypeError("Readable side is not in a state that permits enqueue");try{qr(ct,Be)}catch(St){throw Ii(We,St),We._readable._storedError}var pt=La(ct);pt!==We._backpressure&&hi(We,!0)}function os(ve,Be){oa(ve._controlledTransformStream,Be)}function ca(ve,Be){var We=ve._transformAlgorithm(Be);return F(We,void 0,function(ct){throw oa(ve._controlledTransformStream,ct),ct})}function ls(ve){var Be=ve._controlledTransformStream,We=Be._readable._readableStreamController;Fr(We);var ct=new TypeError("TransformStream terminated");Ii(Be,ct)}function cs(ve,Be){var We=ve._transformStreamController;if(ve._backpressure){var ct=ve._backpressureChangePromise;return F(ct,function(){var pt=ve._writable,St=pt._state;if(St==="erroring")throw pt._storedError;return ca(We,Be)})}return ca(We,Be)}function us(ve,Be){var We=ve._transformStreamController;if(We._finishPromise!==void 0)return We._finishPromise;var ct=ve._readable;We._finishPromise=P(function(St,Mt){We._finishPromise_resolve=St,We._finishPromise_reject=Mt});var pt=We._cancelAlgorithm(Be);return gi(We),y(pt,function(){return ct._state==="errored"?Vr(We,ct._storedError):(jn(ct._readableStreamController,Be),Ni(We)),null},function(St){return jn(ct._readableStreamController,St),Vr(We,St),null}),We._finishPromise}function ds(ve){var Be=ve._transformStreamController;if(Be._finishPromise!==void 0)return Be._finishPromise;var We=ve._readable;Be._finishPromise=P(function(pt,St){Be._finishPromise_resolve=pt,Be._finishPromise_reject=St});var ct=Be._flushAlgorithm();return gi(Be),y(ct,function(){return We._state==="errored"?Vr(Be,We._storedError):(Fr(We._readableStreamController),Ni(Be)),null},function(pt){return jn(We._readableStreamController,pt),Vr(Be,pt),null}),Be._finishPromise}function hs(ve){return hi(ve,!1),ve._backpressureChangePromise}function fs(ve,Be){var We=ve._transformStreamController;if(We._finishPromise!==void 0)return We._finishPromise;var ct=ve._writable;We._finishPromise=P(function(St,Mt){We._finishPromise_resolve=St,We._finishPromise_reject=Mt});var pt=We._cancelAlgorithm(Be);return gi(We),y(pt,function(){return ct._state==="errored"?Vr(We,ct._storedError):(Wr(ct._writableStreamController,Be),Oi(ve),Ni(We)),null},function(St){return Wr(ct._writableStreamController,St),Oi(ve),Vr(We,St),null}),We._finishPromise}function mi(ve){return new TypeError("TransformStreamDefaultController.prototype.".concat(ve," can only be used on a TransformStreamDefaultController"))}function Ni(ve){ve._finishPromise_resolve!==void 0&&(ve._finishPromise_resolve(),ve._finishPromise_resolve=void 0,ve._finishPromise_reject=void 0)}function Vr(ve,Be){ve._finishPromise_reject!==void 0&&(N(ve._finishPromise),ve._finishPromise_reject(Be),ve._finishPromise_resolve=void 0,ve._finishPromise_reject=void 0)}function ua(ve){return new TypeError("TransformStream.prototype.".concat(ve," can only be used on a TransformStream"))}m.ByteLengthQueuingStrategy=ci,m.CountQueuingStrategy=ui,m.ReadableByteStreamController=$t,m.ReadableStream=Pn,m.ReadableStreamBYOBReader=Ln,m.ReadableStreamBYOBRequest=Pt,m.ReadableStreamDefaultController=Er,m.ReadableStreamDefaultReader=Ae,m.TransformStream=di,m.TransformStreamDefaultController=kr,m.WritableStream=En,m.WritableStreamDefaultController=Gr,m.WritableStreamDefaultWriter=Sr})}(ponyfill,ponyfill.exports)),ponyfill.exports}var hasRequiredPdf;function requirePdf(){return hasRequiredPdf||(hasRequiredPdf=1,function(module,exports){(function(r,m){module.exports=m()})(globalThis,()=>(()=>{var __webpack_modules__=[,(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.VerbosityLevel=r.Util=r.UnknownErrorException=r.UnexpectedResponseException=r.UNSUPPORTED_FEATURES=r.TextRenderingMode=r.StreamType=r.RenderingIntentFlag=r.PermissionFlag=r.PasswordResponses=r.PasswordException=r.PageActionEventType=r.OPS=r.MissingPDFException=r.LINE_FACTOR=r.LINE_DESCENT_FACTOR=r.InvalidPDFException=r.ImageKind=r.IDENTITY_MATRIX=r.FormatError=r.FontType=r.FeatureTest=r.FONT_IDENTITY_MATRIX=r.DocumentActionEventType=r.CMapCompressionType=r.BaseException=r.AnnotationType=r.AnnotationStateModelType=r.AnnotationReviewState=r.AnnotationReplyType=r.AnnotationMode=r.AnnotationMarkedState=r.AnnotationFlag=r.AnnotationFieldFlag=r.AnnotationEditorType=r.AnnotationEditorPrefix=r.AnnotationEditorParamsType=r.AnnotationBorderStyleType=r.AnnotationActionEventType=r.AbortException=void 0,r.arrayByteLength=oe,r.arraysToBytes=pe,r.assert=Te,r.bytesToString=Ie,r.createPromiseCapability=tt,r.createValidAbsoluteUrl=K,r.escapeString=Ae,r.getModificationDate=et,r.getVerbosityLevel=$,r.info=fe,r.isArrayBuffer=Qe,r.isArrayEqual=Ze,r.isAscii=Ve,r.objectFromMap=ke,r.objectSize=Ne,r.setVerbosityLevel=q,r.shadow=ce,r.string32=xe,r.stringToBytes=Ce,r.stringToPDFString=Ee,r.stringToUTF16BEString=$e,r.stringToUTF8String=Ue,r.unreachable=ie,r.utf8StringToString=He,r.warn=Q,m(2);const w=[1,0,0,1,0,0];r.IDENTITY_MATRIX=w;const U=[.001,0,0,.001,0,0];r.FONT_IDENTITY_MATRIX=U;const k=1.35;r.LINE_FACTOR=k;const x=.35;r.LINE_DESCENT_FACTOR=x;const a={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};r.RenderingIntentFlag=a;const g={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};r.AnnotationMode=g;const n="pdfjs_internal_editor_";r.AnnotationEditorPrefix=n;const c={DISABLE:-1,NONE:0,FREETEXT:3,INK:15};r.AnnotationEditorType=c;const R={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13};r.AnnotationEditorParamsType=R;const v={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};r.PermissionFlag=v;const e={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};r.TextRenderingMode=e;const L={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};r.ImageKind=L;const O={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};r.AnnotationType=O;const B={MARKED:"Marked",REVIEW:"Review"};r.AnnotationStateModelType=B;const P={MARKED:"Marked",UNMARKED:"Unmarked"};r.AnnotationMarkedState=P;const S={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};r.AnnotationReviewState=S;const _={GROUP:"Group",REPLY:"R"};r.AnnotationReplyType=_;const l={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};r.AnnotationFlag=l;const y={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};r.AnnotationFieldFlag=y;const D={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};r.AnnotationBorderStyleType=D;const M={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};r.AnnotationActionEventType=M;const F={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};r.DocumentActionEventType=F;const N={O:"PageOpen",C:"PageClose"};r.PageActionEventType=N;const G={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};r.StreamType=G;const W={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};r.FontType=W;const J={ERRORS:0,WARNINGS:1,INFOS:5};r.VerbosityLevel=J;const Y={NONE:0,BINARY:1,STREAM:2};r.CMapCompressionType=Y;const V={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};r.OPS=V;const H={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"};r.UNSUPPORTED_FEATURES=H;const z={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};r.PasswordResponses=z;let X=J.WARNINGS;function q(je){Number.isInteger(je)&&(X=je)}function $(){return X}function fe(je){X>=J.INFOS&&console.log(`Info: ${je}`)}function Q(je){X>=J.WARNINGS&&console.log(`Warning: ${je}`)}function ie(je){throw new Error(je)}function Te(je,Je){je||ie(Je)}function me(je){if(!je)return!1;switch(je.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function K(je){let Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!je)return null;try{if(nt&&typeof je=="string"){if(nt.addDefaultProtocol&&je.startsWith("www.")){const at=je.match(/\./g);at&&at.length>=2&&(je=`http://${je}`)}if(nt.tryConvertEncoding)try{je=Ue(je)}catch{}}const Ke=Je?new URL(je,Je):new URL(je);if(me(Ke))return Ke}catch{}return null}function ce(je,Je,nt){return Object.defineProperty(je,Je,{value:nt,enumerable:!0,configurable:!0,writable:!1}),nt}const de=function(){function Je(nt,Ke){this.constructor===Je&&ie("Cannot initialize BaseException."),this.message=nt,this.name=Ke}return Je.prototype=new Error,Je.constructor=Je,Je}();r.BaseException=de;class Z extends de{constructor(Je,nt){super(Je,"PasswordException"),this.code=nt}}r.PasswordException=Z;class ae extends de{constructor(Je,nt){super(Je,"UnknownErrorException"),this.details=nt}}r.UnknownErrorException=ae;class he extends de{constructor(Je){super(Je,"InvalidPDFException")}}r.InvalidPDFException=he;class we extends de{constructor(Je){super(Je,"MissingPDFException")}}r.MissingPDFException=we;class _e extends de{constructor(Je,nt){super(Je,"UnexpectedResponseException"),this.status=nt}}r.UnexpectedResponseException=_e;class ye extends de{constructor(Je){super(Je,"FormatError")}}r.FormatError=ye;class se extends de{constructor(Je){super(Je,"AbortException")}}r.AbortException=se;function Ie(je){(typeof je!="object"||je===null||je.length===void 0)&&ie("Invalid argument for bytesToString");const Je=je.length,nt=8192;if(Je>24&255,je>>16&255,je>>8&255,je&255)}function Ne(je){return Object.keys(je).length}function ke(je){const Je=Object.create(null);for(const[nt,Ke]of je)Je[nt]=Ke;return Je}function De(){const je=new Uint8Array(4);return je[0]=1,new Uint32Array(je.buffer,0,1)[0]===1}function Fe(){try{return new Function(""),!0}catch{return!1}}class Pe{static get isLittleEndian(){return ce(this,"isLittleEndian",De())}static get isEvalSupported(){return ce(this,"isEvalSupported",Fe())}static get isOffscreenCanvasSupported(){return ce(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}}r.FeatureTest=Pe;const qe=[...Array(256).keys()].map(je=>je.toString(16).padStart(2,"0"));class Le{static makeHexColor(Je,nt,Ke){return`#${qe[Je]}${qe[nt]}${qe[Ke]}`}static scaleMinMax(Je,nt){let Ke;Je[0]?(Je[0]<0&&(Ke=nt[0],nt[0]=nt[1],nt[1]=Ke),nt[0]*=Je[0],nt[1]*=Je[0],Je[3]<0&&(Ke=nt[2],nt[2]=nt[3],nt[3]=Ke),nt[2]*=Je[3],nt[3]*=Je[3]):(Ke=nt[0],nt[0]=nt[2],nt[2]=Ke,Ke=nt[1],nt[1]=nt[3],nt[3]=Ke,Je[1]<0&&(Ke=nt[2],nt[2]=nt[3],nt[3]=Ke),nt[2]*=Je[1],nt[3]*=Je[1],Je[2]<0&&(Ke=nt[0],nt[0]=nt[1],nt[1]=Ke),nt[0]*=Je[2],nt[1]*=Je[2]),nt[0]+=Je[4],nt[1]+=Je[4],nt[2]+=Je[5],nt[3]+=Je[5]}static transform(Je,nt){return[Je[0]*nt[0]+Je[2]*nt[1],Je[1]*nt[0]+Je[3]*nt[1],Je[0]*nt[2]+Je[2]*nt[3],Je[1]*nt[2]+Je[3]*nt[3],Je[0]*nt[4]+Je[2]*nt[5]+Je[4],Je[1]*nt[4]+Je[3]*nt[5]+Je[5]]}static applyTransform(Je,nt){const Ke=Je[0]*nt[0]+Je[1]*nt[2]+nt[4],at=Je[0]*nt[1]+Je[1]*nt[3]+nt[5];return[Ke,at]}static applyInverseTransform(Je,nt){const Ke=nt[0]*nt[3]-nt[1]*nt[2],at=(Je[0]*nt[3]-Je[1]*nt[2]+nt[2]*nt[5]-nt[4]*nt[3])/Ke,ot=(-Je[0]*nt[1]+Je[1]*nt[0]+nt[4]*nt[1]-nt[5]*nt[0])/Ke;return[at,ot]}static getAxialAlignedBoundingBox(Je,nt){const Ke=Le.applyTransform(Je,nt),at=Le.applyTransform(Je.slice(2,4),nt),ot=Le.applyTransform([Je[0],Je[3]],nt),Xe=Le.applyTransform([Je[2],Je[1]],nt);return[Math.min(Ke[0],at[0],ot[0],Xe[0]),Math.min(Ke[1],at[1],ot[1],Xe[1]),Math.max(Ke[0],at[0],ot[0],Xe[0]),Math.max(Ke[1],at[1],ot[1],Xe[1])]}static inverseTransform(Je){const nt=Je[0]*Je[3]-Je[1]*Je[2];return[Je[3]/nt,-Je[1]/nt,-Je[2]/nt,Je[0]/nt,(Je[2]*Je[5]-Je[4]*Je[3])/nt,(Je[4]*Je[1]-Je[5]*Je[0])/nt]}static apply3dTransform(Je,nt){return[Je[0]*nt[0]+Je[1]*nt[1]+Je[2]*nt[2],Je[3]*nt[0]+Je[4]*nt[1]+Je[5]*nt[2],Je[6]*nt[0]+Je[7]*nt[1]+Je[8]*nt[2]]}static singularValueDecompose2dScale(Je){const nt=[Je[0],Je[2],Je[1],Je[3]],Ke=Je[0]*nt[0]+Je[1]*nt[2],at=Je[0]*nt[1]+Je[1]*nt[3],ot=Je[2]*nt[0]+Je[3]*nt[2],Xe=Je[2]*nt[1]+Je[3]*nt[3],ze=(Ke+Xe)/2,Ye=Math.sqrt((Ke+Xe)**2-4*(Ke*Xe-ot*at))/2,st=ze+Ye||1,_t=ze-Ye||1;return[Math.sqrt(st),Math.sqrt(_t)]}static normalizeRect(Je){const nt=Je.slice(0);return Je[0]>Je[2]&&(nt[0]=Je[2],nt[2]=Je[0]),Je[1]>Je[3]&&(nt[1]=Je[3],nt[3]=Je[1]),nt}static intersect(Je,nt){const Ke=Math.max(Math.min(Je[0],Je[2]),Math.min(nt[0],nt[2])),at=Math.min(Math.max(Je[0],Je[2]),Math.max(nt[0],nt[2]));if(Ke>at)return null;const ot=Math.max(Math.min(Je[1],Je[3]),Math.min(nt[1],nt[3])),Xe=Math.min(Math.max(Je[1],Je[3]),Math.max(nt[1],nt[3]));return ot>Xe?null:[Ke,ot,at,Xe]}static bezierBoundingBox(Je,nt,Ke,at,ot,Xe,ze,Ye){const st=[],_t=[[],[]];let ft,Ct,ut,rt,mt,Ot,dt,Nt;for(let Kt=0;Kt<2;++Kt){if(Kt===0?(Ct=6*Je-12*Ke+6*ot,ft=-3*Je+9*Ke-9*ot+3*ze,ut=3*Ke-3*Je):(Ct=6*nt-12*at+6*Xe,ft=-3*nt+9*at-9*Xe+3*Ye,ut=3*at-3*nt),Math.abs(ft)<1e-12){if(Math.abs(Ct)<1e-12)continue;rt=-ut/Ct,0="ï"){let nt;if(je[0]==="þ"&&je[1]==="ÿ"?nt="utf-16be":je[0]==="ÿ"&&je[1]==="þ"?nt="utf-16le":je[0]==="ï"&&je[1]==="»"&&je[2]==="¿"&&(nt="utf-8"),nt)try{const Ke=new TextDecoder(nt,{fatal:!0}),at=Ce(je);return Ke.decode(at)}catch(Ke){Q(`stringToPDFString: "${Ke}".`)}}const Je=[];for(let nt=0,Ke=je.length;ntJe===` `?"\\n":Je==="\r"?"\\r":`\\${Je}`)}function Ve(je){return/^[\x00-\x7F]*$/.test(je)}function $e(je){const Je=["þÿ"];for(let nt=0,Ke=je.length;nt>8&255),String.fromCharCode(at&255))}return Je.join("")}function Ue(je){return decodeURIComponent(escape(je))}function He(je){return unescape(encodeURIComponent(je))}function Qe(je){return typeof je=="object"&&je!==null&&je.byteLength!==void 0}function Ze(je,Je){if(je.length!==Je.length)return!1;for(let nt=0,Ke=je.length;nt0&&arguments[0]!==void 0?arguments[0]:new Date;return[je.getUTCFullYear().toString(),(je.getUTCMonth()+1).toString().padStart(2,"0"),je.getUTCDate().toString().padStart(2,"0"),je.getUTCHours().toString().padStart(2,"0"),je.getUTCMinutes().toString().padStart(2,"0"),je.getUTCSeconds().toString().padStart(2,"0")].join("")}function tt(){const je=Object.create(null);let Je=!1;return Object.defineProperty(je,"settled",{get(){return Je}}),je.promise=new Promise(function(nt,Ke){je.resolve=function(at){Je=!0,nt(at)},je.reject=function(at){Je=!0,Ke(at)}}),je}},(b,r,m)=>{var w=m(3);globalThis._pdfjsCompatibilityChecked||(globalThis._pdfjsCompatibilityChecked=!0,function(){globalThis.btoa||!w.isNodeJS||(globalThis.btoa=function(k){return Buffer.from(k,"binary").toString("base64")})}(),function(){globalThis.atob||!w.isNodeJS||(globalThis.atob=function(k){return Buffer.from(k,"base64").toString("binary")})}(),function(){globalThis.DOMMatrix||!w.isNodeJS||(globalThis.DOMMatrix=requireDommatrix())}(),function(){globalThis.ReadableStream||!w.isNodeJS||(globalThis.ReadableStream=requirePonyfill().ReadableStream)}(),function(){Array.prototype.at||m(4)}(),function(){Uint8Array.prototype.at||m(76)}(),function(){globalThis.structuredClone||m(86)}())},(b,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.isNodeJS=void 0;const m=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");r.isNodeJS=m},(b,r,m)=>{m(5);var w=m(75);b.exports=w("Array","at")},(b,r,m)=>{var w=m(6),U=m(41),k=m(65),x=m(63),a=m(70);w({target:"Array",proto:!0},{at:function(n){var c=U(this),R=k(c),v=x(n),e=v>=0?v:R+v;return e<0||e>=R?void 0:c[e]}}),a("at")},(b,r,m)=>{var w=m(7),U=m(8).f,k=m(45),x=m(49),a=m(39),g=m(57),n=m(69);b.exports=function(c,R){var v=c.target,e=c.global,L=c.stat,O,B,P,S,_,l;if(e?B=w:L?B=w[v]||a(v,{}):B=(w[v]||{}).prototype,B)for(P in R){if(_=R[P],c.dontCallGetSet?(l=U(B,P),S=l&&l.value):S=B[P],O=n(e?P:v+(L?".":"#")+P,c.forced),!O&&S!==void 0){if(typeof _==typeof S)continue;g(_,S)}(c.sham||S&&S.sham)&&k(_,"sham",!0),x(B,P,_,c)}}},b=>{var r=function(m){return m&&m.Math==Math&&m};b.exports=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof commonjsGlobal$1=="object"&&commonjsGlobal$1)||function(){return this}()||Function("return this")()},(b,r,m)=>{var w=m(9),U=m(11),k=m(13),x=m(14),a=m(15),g=m(20),n=m(40),c=m(43),R=Object.getOwnPropertyDescriptor;r.f=w?R:function(e,L){if(e=a(e),L=g(L),c)try{return R(e,L)}catch{}if(n(e,L))return x(!U(k.f,e,L),e[L])}},(b,r,m)=>{var w=m(10);b.exports=!w(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},b=>{b.exports=function(r){try{return!!r()}catch{return!0}}},(b,r,m)=>{var w=m(12),U=Function.prototype.call;b.exports=w?U.bind(U):function(){return U.apply(U,arguments)}},(b,r,m)=>{var w=m(10);b.exports=!w(function(){var U=(function(){}).bind();return typeof U!="function"||U.hasOwnProperty("prototype")})},(b,r)=>{var m={}.propertyIsEnumerable,w=Object.getOwnPropertyDescriptor,U=w&&!m.call({1:2},1);r.f=U?function(x){var a=w(this,x);return!!a&&a.enumerable}:m},b=>{b.exports=function(r,m){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:m}}},(b,r,m)=>{var w=m(16),U=m(19);b.exports=function(k){return w(U(k))}},(b,r,m)=>{var w=m(17),U=m(10),k=m(18),x=Object,a=w("".split);b.exports=U(function(){return!x("z").propertyIsEnumerable(0)})?function(g){return k(g)=="String"?a(g,""):x(g)}:x},(b,r,m)=>{var w=m(12),U=Function.prototype,k=U.bind,x=U.call,a=w&&k.bind(x,x);b.exports=w?function(g){return g&&a(g)}:function(g){return g&&function(){return x.apply(g,arguments)}}},(b,r,m)=>{var w=m(17),U=w({}.toString),k=w("".slice);b.exports=function(x){return k(U(x),8,-1)}},b=>{var r=TypeError;b.exports=function(m){if(m==null)throw r("Can't call method on "+m);return m}},(b,r,m)=>{var w=m(21),U=m(24);b.exports=function(k){var x=w(k,"string");return U(x)?x:x+""}},(b,r,m)=>{var w=m(11),U=m(22),k=m(24),x=m(31),a=m(34),g=m(35),n=TypeError,c=g("toPrimitive");b.exports=function(R,v){if(!U(R)||k(R))return R;var e=x(R,c),L;if(e){if(v===void 0&&(v="default"),L=w(e,R,v),!U(L)||k(L))return L;throw n("Can't convert object to primitive value")}return v===void 0&&(v="number"),a(R,v)}},(b,r,m)=>{var w=m(23);b.exports=function(U){return typeof U=="object"?U!==null:w(U)}},b=>{b.exports=function(r){return typeof r=="function"}},(b,r,m)=>{var w=m(25),U=m(23),k=m(26),x=m(27),a=Object;b.exports=x?function(g){return typeof g=="symbol"}:function(g){var n=w("Symbol");return U(n)&&k(n.prototype,a(g))}},(b,r,m)=>{var w=m(7),U=m(23),k=function(x){return U(x)?x:void 0};b.exports=function(x,a){return arguments.length<2?k(w[x]):w[x]&&w[x][a]}},(b,r,m)=>{var w=m(17);b.exports=w({}.isPrototypeOf)},(b,r,m)=>{var w=m(28);b.exports=w&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},(b,r,m)=>{var w=m(29),U=m(10);b.exports=!!Object.getOwnPropertySymbols&&!U(function(){var k=Symbol();return!String(k)||!(Object(k)instanceof Symbol)||!Symbol.sham&&w&&w<41})},(b,r,m)=>{var w=m(7),U=m(30),k=w.process,x=w.Deno,a=k&&k.versions||x&&x.version,g=a&&a.v8,n,c;g&&(n=g.split("."),c=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!c&&U&&(n=U.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=U.match(/Chrome\/(\d+)/),n&&(c=+n[1]))),b.exports=c},(b,r,m)=>{var w=m(25);b.exports=w("navigator","userAgent")||""},(b,r,m)=>{var w=m(32);b.exports=function(U,k){var x=U[k];return x==null?void 0:w(x)}},(b,r,m)=>{var w=m(23),U=m(33),k=TypeError;b.exports=function(x){if(w(x))return x;throw k(U(x)+" is not a function")}},b=>{var r=String;b.exports=function(m){try{return r(m)}catch{return"Object"}}},(b,r,m)=>{var w=m(11),U=m(23),k=m(22),x=TypeError;b.exports=function(a,g){var n,c;if(g==="string"&&U(n=a.toString)&&!k(c=w(n,a))||U(n=a.valueOf)&&!k(c=w(n,a))||g!=="string"&&U(n=a.toString)&&!k(c=w(n,a)))return c;throw x("Can't convert object to primitive value")}},(b,r,m)=>{var w=m(7),U=m(36),k=m(40),x=m(42),a=m(28),g=m(27),n=U("wks"),c=w.Symbol,R=c&&c.for,v=g?c:c&&c.withoutSetter||x;b.exports=function(e){if(!k(n,e)||!(a||typeof n[e]=="string")){var L="Symbol."+e;a&&k(c,e)?n[e]=c[e]:g&&R?n[e]=R(L):n[e]=v(L)}return n[e]}},(b,r,m)=>{var w=m(37),U=m(38);(b.exports=function(k,x){return U[k]||(U[k]=x!==void 0?x:{})})("versions",[]).push({version:"3.24.1",mode:w?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},b=>{b.exports=!1},(b,r,m)=>{var w=m(7),U=m(39),k="__core-js_shared__",x=w[k]||U(k,{});b.exports=x},(b,r,m)=>{var w=m(7),U=Object.defineProperty;b.exports=function(k,x){try{U(w,k,{value:x,configurable:!0,writable:!0})}catch{w[k]=x}return x}},(b,r,m)=>{var w=m(17),U=m(41),k=w({}.hasOwnProperty);b.exports=Object.hasOwn||function(a,g){return k(U(a),g)}},(b,r,m)=>{var w=m(19),U=Object;b.exports=function(k){return U(w(k))}},(b,r,m)=>{var w=m(17),U=0,k=Math.random(),x=w(1 .toString);b.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+x(++U+k,36)}},(b,r,m)=>{var w=m(9),U=m(10),k=m(44);b.exports=!w&&!U(function(){return Object.defineProperty(k("div"),"a",{get:function(){return 7}}).a!=7})},(b,r,m)=>{var w=m(7),U=m(22),k=w.document,x=U(k)&&U(k.createElement);b.exports=function(a){return x?k.createElement(a):{}}},(b,r,m)=>{var w=m(9),U=m(46),k=m(14);b.exports=w?function(x,a,g){return U.f(x,a,k(1,g))}:function(x,a,g){return x[a]=g,x}},(b,r,m)=>{var w=m(9),U=m(43),k=m(47),x=m(48),a=m(20),g=TypeError,n=Object.defineProperty,c=Object.getOwnPropertyDescriptor,R="enumerable",v="configurable",e="writable";r.f=w?k?function(O,B,P){if(x(O),B=a(B),x(P),typeof O=="function"&&B==="prototype"&&"value"in P&&e in P&&!P[e]){var S=c(O,B);S&&S[e]&&(O[B]=P.value,P={configurable:v in P?P[v]:S[v],enumerable:R in P?P[R]:S[R],writable:!1})}return n(O,B,P)}:n:function(O,B,P){if(x(O),B=a(B),x(P),U)try{return n(O,B,P)}catch{}if("get"in P||"set"in P)throw g("Accessors not supported");return"value"in P&&(O[B]=P.value),O}},(b,r,m)=>{var w=m(9),U=m(10);b.exports=w&&U(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},(b,r,m)=>{var w=m(22),U=String,k=TypeError;b.exports=function(x){if(w(x))return x;throw k(U(x)+" is not an object")}},(b,r,m)=>{var w=m(23),U=m(46),k=m(50),x=m(39);b.exports=function(a,g,n,c){c||(c={});var R=c.enumerable,v=c.name!==void 0?c.name:g;if(w(n)&&k(n,v,c),c.global)R?a[g]=n:x(g,n);else{try{c.unsafe?a[g]&&(R=!0):delete a[g]}catch{}R?a[g]=n:U.f(a,g,{value:n,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return a}},(b,r,m)=>{var w=m(10),U=m(23),k=m(40),x=m(9),a=m(51).CONFIGURABLE,g=m(52),n=m(53),c=n.enforce,R=n.get,v=Object.defineProperty,e=x&&!w(function(){return v(function(){},"length",{value:8}).length!==8}),L=String(String).split("String"),O=b.exports=function(B,P,S){String(P).slice(0,7)==="Symbol("&&(P="["+String(P).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),S&&S.getter&&(P="get "+P),S&&S.setter&&(P="set "+P),(!k(B,"name")||a&&B.name!==P)&&(x?v(B,"name",{value:P,configurable:!0}):B.name=P),e&&S&&k(S,"arity")&&B.length!==S.arity&&v(B,"length",{value:S.arity});try{S&&k(S,"constructor")&&S.constructor?x&&v(B,"prototype",{writable:!1}):B.prototype&&(B.prototype=void 0)}catch{}var _=c(B);return k(_,"source")||(_.source=L.join(typeof P=="string"?P:"")),B};Function.prototype.toString=O(function(){return U(this)&&R(this).source||g(this)},"toString")},(b,r,m)=>{var w=m(9),U=m(40),k=Function.prototype,x=w&&Object.getOwnPropertyDescriptor,a=U(k,"name"),g=a&&(function(){}).name==="something",n=a&&(!w||w&&x(k,"name").configurable);b.exports={EXISTS:a,PROPER:g,CONFIGURABLE:n}},(b,r,m)=>{var w=m(17),U=m(23),k=m(38),x=w(Function.toString);U(k.inspectSource)||(k.inspectSource=function(a){return x(a)}),b.exports=k.inspectSource},(b,r,m)=>{var w=m(54),U=m(7),k=m(17),x=m(22),a=m(45),g=m(40),n=m(38),c=m(55),R=m(56),v="Object already initialized",e=U.TypeError,L=U.WeakMap,O,B,P,S=function(N){return P(N)?B(N):O(N,{})},_=function(N){return function(G){var W;if(!x(G)||(W=B(G)).type!==N)throw e("Incompatible receiver, "+N+" required");return W}};if(w||n.state){var l=n.state||(n.state=new L),y=k(l.get),D=k(l.has),M=k(l.set);O=function(N,G){if(D(l,N))throw new e(v);return G.facade=N,M(l,N,G),G},B=function(N){return y(l,N)||{}},P=function(N){return D(l,N)}}else{var F=c("state");R[F]=!0,O=function(N,G){if(g(N,F))throw new e(v);return G.facade=N,a(N,F,G),G},B=function(N){return g(N,F)?N[F]:{}},P=function(N){return g(N,F)}}b.exports={set:O,get:B,has:P,enforce:S,getterFor:_}},(b,r,m)=>{var w=m(7),U=m(23),k=m(52),x=w.WeakMap;b.exports=U(x)&&/native code/.test(k(x))},(b,r,m)=>{var w=m(36),U=m(42),k=w("keys");b.exports=function(x){return k[x]||(k[x]=U(x))}},b=>{b.exports={}},(b,r,m)=>{var w=m(40),U=m(58),k=m(8),x=m(46);b.exports=function(a,g,n){for(var c=U(g),R=x.f,v=k.f,e=0;e{var w=m(25),U=m(17),k=m(59),x=m(68),a=m(48),g=U([].concat);b.exports=w("Reflect","ownKeys")||function(c){var R=k.f(a(c)),v=x.f;return v?g(R,v(c)):R}},(b,r,m)=>{var w=m(60),U=m(67),k=U.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(a){return w(a,k)}},(b,r,m)=>{var w=m(17),U=m(40),k=m(15),x=m(61).indexOf,a=m(56),g=w([].push);b.exports=function(n,c){var R=k(n),v=0,e=[],L;for(L in R)!U(a,L)&&U(R,L)&&g(e,L);for(;c.length>v;)U(R,L=c[v++])&&(~x(e,L)||g(e,L));return e}},(b,r,m)=>{var w=m(15),U=m(62),k=m(65),x=function(a){return function(g,n,c){var R=w(g),v=k(R),e=U(c,v),L;if(a&&n!=n){for(;v>e;)if(L=R[e++],L!=L)return!0}else for(;v>e;e++)if((a||e in R)&&R[e]===n)return a||e||0;return!a&&-1}};b.exports={includes:x(!0),indexOf:x(!1)}},(b,r,m)=>{var w=m(63),U=Math.max,k=Math.min;b.exports=function(x,a){var g=w(x);return g<0?U(g+a,0):k(g,a)}},(b,r,m)=>{var w=m(64);b.exports=function(U){var k=+U;return k!==k||k===0?0:w(k)}},b=>{var r=Math.ceil,m=Math.floor;b.exports=Math.trunc||function(U){var k=+U;return(k>0?m:r)(k)}},(b,r,m)=>{var w=m(66);b.exports=function(U){return w(U.length)}},(b,r,m)=>{var w=m(63),U=Math.min;b.exports=function(k){return k>0?U(w(k),9007199254740991):0}},b=>{b.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(b,r)=>{r.f=Object.getOwnPropertySymbols},(b,r,m)=>{var w=m(10),U=m(23),k=/#|\.prototype\./,x=function(R,v){var e=g[a(R)];return e==c?!0:e==n?!1:U(v)?w(v):!!v},a=x.normalize=function(R){return String(R).replace(k,".").toLowerCase()},g=x.data={},n=x.NATIVE="N",c=x.POLYFILL="P";b.exports=x},(b,r,m)=>{var w=m(35),U=m(71),k=m(46).f,x=w("unscopables"),a=Array.prototype;a[x]==null&&k(a,x,{configurable:!0,value:U(null)}),b.exports=function(g){a[x][g]=!0}},(b,r,m)=>{var w=m(48),U=m(72),k=m(67),x=m(56),a=m(74),g=m(44),n=m(55),c=">",R="<",v="prototype",e="script",L=n("IE_PROTO"),O=function(){},B=function(y){return R+e+c+y+R+"/"+e+c},P=function(y){y.write(B("")),y.close();var D=y.parentWindow.Object;return y=null,D},S=function(){var y=g("iframe"),D="java"+e+":",M;return y.style.display="none",a.appendChild(y),y.src=String(D),M=y.contentWindow.document,M.open(),M.write(B("document.F=Object")),M.close(),M.F},_,l=function(){try{_=new ActiveXObject("htmlfile")}catch{}l=typeof document<"u"?document.domain&&_?P(_):S():P(_);for(var y=k.length;y--;)delete l[v][k[y]];return l()};x[L]=!0,b.exports=Object.create||function(D,M){var F;return D!==null?(O[v]=w(D),F=new O,O[v]=null,F[L]=D):F=l(),M===void 0?F:U.f(F,M)}},(b,r,m)=>{var w=m(9),U=m(47),k=m(46),x=m(48),a=m(15),g=m(73);r.f=w&&!U?Object.defineProperties:function(c,R){x(c);for(var v=a(R),e=g(R),L=e.length,O=0,B;L>O;)k.f(c,B=e[O++],v[B]);return c}},(b,r,m)=>{var w=m(60),U=m(67);b.exports=Object.keys||function(x){return w(x,U)}},(b,r,m)=>{var w=m(25);b.exports=w("document","documentElement")},(b,r,m)=>{var w=m(7),U=m(17);b.exports=function(k,x){return U(w[k].prototype[x])}},(b,r,m)=>{m(77)},(b,r,m)=>{var w=m(78),U=m(65),k=m(63),x=w.aTypedArray,a=w.exportTypedArrayMethod;a("at",function(n){var c=x(this),R=U(c),v=k(n),e=v>=0?v:R+v;return e<0||e>=R?void 0:c[e]})},(b,r,m)=>{var w=m(79),U=m(9),k=m(7),x=m(23),a=m(22),g=m(40),n=m(80),c=m(33),R=m(45),v=m(49),e=m(46).f,L=m(26),O=m(82),B=m(84),P=m(35),S=m(42),_=m(53),l=_.enforce,y=_.get,D=k.Int8Array,M=D&&D.prototype,F=k.Uint8ClampedArray,N=F&&F.prototype,G=D&&O(D),W=M&&O(M),J=Object.prototype,Y=k.TypeError,V=P("toStringTag"),H=S("TYPED_ARRAY_TAG"),z="TypedArrayConstructor",X=w&&!!B&&n(k.opera)!=="Opera",q=!1,$,fe,Q,ie={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Te={BigInt64Array:8,BigUint64Array:8},me=function(_e){if(!a(_e))return!1;var ye=n(_e);return ye==="DataView"||g(ie,ye)||g(Te,ye)},K=function(we){var _e=O(we);if(a(_e)){var ye=y(_e);return ye&&g(ye,z)?ye[z]:K(_e)}},ce=function(we){if(!a(we))return!1;var _e=n(we);return g(ie,_e)||g(Te,_e)},de=function(we){if(ce(we))return we;throw Y("Target is not a typed array")},Z=function(we){if(x(we)&&(!B||L(G,we)))return we;throw Y(c(we)+" is not a typed array constructor")},ae=function(we,_e,ye,se){if(U){if(ye)for(var Ie in ie){var Ce=k[Ie];if(Ce&&g(Ce.prototype,we))try{delete Ce.prototype[we]}catch{try{Ce.prototype[we]=_e}catch{}}}(!W[we]||ye)&&v(W,we,ye?_e:X&&M[we]||_e,se)}},he=function(we,_e,ye){var se,Ie;if(U){if(B){if(ye){for(se in ie)if(Ie=k[se],Ie&&g(Ie,we))try{delete Ie[we]}catch{}}if(!G[we]||ye)try{return v(G,we,ye?_e:X&&G[we]||_e)}catch{}else return}for(se in ie)Ie=k[se],Ie&&(!Ie[we]||ye)&&v(Ie,we,_e)}};for($ in ie)fe=k[$],Q=fe&&fe.prototype,Q?l(Q)[z]=fe:X=!1;for($ in Te)fe=k[$],Q=fe&&fe.prototype,Q&&(l(Q)[z]=fe);if((!X||!x(G)||G===Function.prototype)&&(G=function(){throw Y("Incorrect invocation")},X))for($ in ie)k[$]&&B(k[$],G);if((!X||!W||W===J)&&(W=G.prototype,X))for($ in ie)k[$]&&B(k[$].prototype,W);if(X&&O(N)!==W&&B(N,W),U&&!g(W,V)){q=!0,e(W,V,{get:function(){return a(this)?this[H]:void 0}});for($ in ie)k[$]&&R(k[$],H,$)}b.exports={NATIVE_ARRAY_BUFFER_VIEWS:X,TYPED_ARRAY_TAG:q&&H,aTypedArray:de,aTypedArrayConstructor:Z,exportTypedArrayMethod:ae,exportTypedArrayStaticMethod:he,getTypedArrayConstructor:K,isView:me,isTypedArray:ce,TypedArray:G,TypedArrayPrototype:W}},b=>{b.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},(b,r,m)=>{var w=m(81),U=m(23),k=m(18),x=m(35),a=x("toStringTag"),g=Object,n=k(function(){return arguments}())=="Arguments",c=function(R,v){try{return R[v]}catch{}};b.exports=w?k:function(R){var v,e,L;return R===void 0?"Undefined":R===null?"Null":typeof(e=c(v=g(R),a))=="string"?e:n?k(v):(L=k(v))=="Object"&&U(v.callee)?"Arguments":L}},(b,r,m)=>{var w=m(35),U=w("toStringTag"),k={};k[U]="z",b.exports=String(k)==="[object z]"},(b,r,m)=>{var w=m(40),U=m(23),k=m(41),x=m(55),a=m(83),g=x("IE_PROTO"),n=Object,c=n.prototype;b.exports=a?n.getPrototypeOf:function(R){var v=k(R);if(w(v,g))return v[g];var e=v.constructor;return U(e)&&v instanceof e?e.prototype:v instanceof n?c:null}},(b,r,m)=>{var w=m(10);b.exports=!w(function(){function U(){}return U.prototype.constructor=null,Object.getPrototypeOf(new U)!==U.prototype})},(b,r,m)=>{var w=m(17),U=m(48),k=m(85);b.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var x=!1,a={},g;try{g=w(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),g(a,[]),x=a instanceof Array}catch{}return function(c,R){return U(c),k(R),x?g(c,R):c.__proto__=R,c}}():void 0)},(b,r,m)=>{var w=m(23),U=String,k=TypeError;b.exports=function(x){if(typeof x=="object"||w(x))return x;throw k("Can't set "+U(x)+" as a prototype")}},(b,r,m)=>{m(87),m(93),m(95),m(117),m(119);var w=m(128);b.exports=w.structuredClone},(b,r,m)=>{var w=m(15),U=m(70),k=m(88),x=m(53),a=m(46).f,g=m(89),n=m(37),c=m(9),R="Array Iterator",v=x.set,e=x.getterFor(R);b.exports=g(Array,"Array",function(O,B){v(this,{type:R,target:w(O),index:0,kind:B})},function(){var O=e(this),B=O.target,P=O.kind,S=O.index++;return!B||S>=B.length?(O.target=void 0,{value:void 0,done:!0}):P=="keys"?{value:S,done:!1}:P=="values"?{value:B[S],done:!1}:{value:[S,B[S]],done:!1}},"values");var L=k.Arguments=k.Array;if(U("keys"),U("values"),U("entries"),!n&&c&&L.name!=="values")try{a(L,"name",{value:"values"})}catch{}},b=>{b.exports={}},(b,r,m)=>{var w=m(6),U=m(11),k=m(37),x=m(51),a=m(23),g=m(90),n=m(82),c=m(84),R=m(92),v=m(45),e=m(49),L=m(35),O=m(88),B=m(91),P=x.PROPER,S=x.CONFIGURABLE,_=B.IteratorPrototype,l=B.BUGGY_SAFARI_ITERATORS,y=L("iterator"),D="keys",M="values",F="entries",N=function(){return this};b.exports=function(G,W,J,Y,V,H,z){g(J,W,Y);var X=function(de){if(de===V&&ie)return ie;if(!l&&de in fe)return fe[de];switch(de){case D:return function(){return new J(this,de)};case M:return function(){return new J(this,de)};case F:return function(){return new J(this,de)}}return function(){return new J(this)}},q=W+" Iterator",$=!1,fe=G.prototype,Q=fe[y]||fe["@@iterator"]||V&&fe[V],ie=!l&&Q||X(V),Te=W=="Array"&&fe.entries||Q,me,K,ce;if(Te&&(me=n(Te.call(new G)),me!==Object.prototype&&me.next&&(!k&&n(me)!==_&&(c?c(me,_):a(me[y])||e(me,y,N)),R(me,q,!0,!0),k&&(O[q]=N))),P&&V==M&&Q&&Q.name!==M&&(!k&&S?v(fe,"name",M):($=!0,ie=function(){return U(Q,this)})),V)if(K={values:X(M),keys:H?ie:X(D),entries:X(F)},z)for(ce in K)(l||$||!(ce in fe))&&e(fe,ce,K[ce]);else w({target:W,proto:!0,forced:l||$},K);return(!k||z)&&fe[y]!==ie&&e(fe,y,ie,{name:V}),O[W]=ie,K}},(b,r,m)=>{var w=m(91).IteratorPrototype,U=m(71),k=m(14),x=m(92),a=m(88),g=function(){return this};b.exports=function(n,c,R,v){var e=c+" Iterator";return n.prototype=U(w,{next:k(+!v,R)}),x(n,e,!1,!0),a[e]=g,n}},(b,r,m)=>{var w=m(10),U=m(23),k=m(71),x=m(82),a=m(49),g=m(35),n=m(37),c=g("iterator"),R=!1,v,e,L;[].keys&&(L=[].keys(),"next"in L?(e=x(x(L)),e!==Object.prototype&&(v=e)):R=!0);var O=v==null||w(function(){var B={};return v[c].call(B)!==B});O?v={}:n&&(v=k(v)),U(v[c])||a(v,c,function(){return this}),b.exports={IteratorPrototype:v,BUGGY_SAFARI_ITERATORS:R}},(b,r,m)=>{var w=m(46).f,U=m(40),k=m(35),x=k("toStringTag");b.exports=function(a,g,n){a&&!n&&(a=a.prototype),a&&!U(a,x)&&w(a,x,{configurable:!0,value:g})}},(b,r,m)=>{var w=m(81),U=m(49),k=m(94);w||U(Object.prototype,"toString",k,{unsafe:!0})},(b,r,m)=>{var w=m(81),U=m(80);b.exports=w?{}.toString:function(){return"[object "+U(this)+"]"}},(b,r,m)=>{m(96)},(b,r,m)=>{var w=m(97),U=m(114);w("Map",function(k){return function(){return k(this,arguments.length?arguments[0]:void 0)}},U)},(b,r,m)=>{var w=m(6),U=m(7),k=m(17),x=m(69),a=m(49),g=m(98),n=m(105),c=m(111),R=m(23),v=m(22),e=m(10),L=m(112),O=m(92),B=m(113);b.exports=function(P,S,_){var l=P.indexOf("Map")!==-1,y=P.indexOf("Weak")!==-1,D=l?"set":"add",M=U[P],F=M&&M.prototype,N=M,G={},W=function(q){var $=k(F[q]);a(F,q,q=="add"?function(Q){return $(this,Q===0?0:Q),this}:q=="delete"?function(fe){return y&&!v(fe)?!1:$(this,fe===0?0:fe)}:q=="get"?function(Q){return y&&!v(Q)?void 0:$(this,Q===0?0:Q)}:q=="has"?function(Q){return y&&!v(Q)?!1:$(this,Q===0?0:Q)}:function(Q,ie){return $(this,Q===0?0:Q,ie),this})},J=x(P,!R(M)||!(y||F.forEach&&!e(function(){new M().entries().next()})));if(J)N=_.getConstructor(S,P,l,D),g.enable();else if(x(P,!0)){var Y=new N,V=Y[D](y?{}:-0,1)!=Y,H=e(function(){Y.has(1)}),z=L(function(q){new M(q)}),X=!y&&e(function(){for(var q=new M,$=5;$--;)q[D]($,$);return!q.has(-0)});z||(N=S(function(q,$){c(q,F);var fe=B(new M,q,N);return $!=null&&n($,fe[D],{that:fe,AS_ENTRIES:l}),fe}),N.prototype=F,F.constructor=N),(H||X)&&(W("delete"),W("has"),l&&W("get")),(X||V)&&W(D),y&&F.clear&&delete F.clear}return G[P]=N,w({global:!0,constructor:!0,forced:N!=M},G),O(N,P),y||_.setStrong(N,P,l),N}},(b,r,m)=>{var w=m(6),U=m(17),k=m(56),x=m(22),a=m(40),g=m(46).f,n=m(59),c=m(99),R=m(102),v=m(42),e=m(104),L=!1,O=v("meta"),B=0,P=function(M){g(M,O,{value:{objectID:"O"+B++,weakData:{}}})},S=function(M,F){if(!x(M))return typeof M=="symbol"?M:(typeof M=="string"?"S":"P")+M;if(!a(M,O)){if(!R(M))return"F";if(!F)return"E";P(M)}return M[O].objectID},_=function(M,F){if(!a(M,O)){if(!R(M))return!0;if(!F)return!1;P(M)}return M[O].weakData},l=function(M){return e&&L&&R(M)&&!a(M,O)&&P(M),M},y=function(){D.enable=function(){},L=!0;var M=n.f,F=U([].splice),N={};N[O]=1,M(N).length&&(n.f=function(G){for(var W=M(G),J=0,Y=W.length;J{var w=m(18),U=m(15),k=m(59).f,x=m(100),a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],g=function(n){try{return k(n)}catch{return x(a)}};b.exports.f=function(c){return a&&w(c)=="Window"?g(c):k(U(c))}},(b,r,m)=>{var w=m(62),U=m(65),k=m(101),x=Array,a=Math.max;b.exports=function(g,n,c){for(var R=U(g),v=w(n,R),e=w(c===void 0?R:c,R),L=x(a(e-v,0)),O=0;v{var w=m(20),U=m(46),k=m(14);b.exports=function(x,a,g){var n=w(a);n in x?U.f(x,n,k(0,g)):x[n]=g}},(b,r,m)=>{var w=m(10),U=m(22),k=m(18),x=m(103),a=Object.isExtensible,g=w(function(){});b.exports=g||x?function(c){return!U(c)||x&&k(c)=="ArrayBuffer"?!1:a?a(c):!0}:a},(b,r,m)=>{var w=m(10);b.exports=w(function(){if(typeof ArrayBuffer=="function"){var U=new ArrayBuffer(8);Object.isExtensible(U)&&Object.defineProperty(U,"a",{value:8})}})},(b,r,m)=>{var w=m(10);b.exports=!w(function(){return Object.isExtensible(Object.preventExtensions({}))})},(b,r,m)=>{var w=m(106),U=m(11),k=m(48),x=m(33),a=m(107),g=m(65),n=m(26),c=m(108),R=m(109),v=m(110),e=TypeError,L=function(B,P){this.stopped=B,this.result=P},O=L.prototype;b.exports=function(B,P,S){var _=S&&S.that,l=!!(S&&S.AS_ENTRIES),y=!!(S&&S.IS_RECORD),D=!!(S&&S.IS_ITERATOR),M=!!(S&&S.INTERRUPTED),F=w(P,_),N,G,W,J,Y,V,H,z=function(q){return N&&v(N,"normal",q),new L(!0,q)},X=function(q){return l?(k(q),M?F(q[0],q[1],z):F(q[0],q[1])):M?F(q,z):F(q)};if(y)N=B.iterator;else if(D)N=B;else{if(G=R(B),!G)throw e(x(B)+" is not iterable");if(a(G)){for(W=0,J=g(B);J>W;W++)if(Y=X(B[W]),Y&&n(O,Y))return Y;return new L(!1)}N=c(B,G)}for(V=y?B.next:N.next;!(H=U(V,N)).done;){try{Y=X(H.value)}catch(q){v(N,"throw",q)}if(typeof Y=="object"&&Y&&n(O,Y))return Y}return new L(!1)}},(b,r,m)=>{var w=m(17),U=m(32),k=m(12),x=w(w.bind);b.exports=function(a,g){return U(a),g===void 0?a:k?x(a,g):function(){return a.apply(g,arguments)}}},(b,r,m)=>{var w=m(35),U=m(88),k=w("iterator"),x=Array.prototype;b.exports=function(a){return a!==void 0&&(U.Array===a||x[k]===a)}},(b,r,m)=>{var w=m(11),U=m(32),k=m(48),x=m(33),a=m(109),g=TypeError;b.exports=function(n,c){var R=arguments.length<2?a(n):c;if(U(R))return k(w(R,n));throw g(x(n)+" is not iterable")}},(b,r,m)=>{var w=m(80),U=m(31),k=m(88),x=m(35),a=x("iterator");b.exports=function(g){if(g!=null)return U(g,a)||U(g,"@@iterator")||k[w(g)]}},(b,r,m)=>{var w=m(11),U=m(48),k=m(31);b.exports=function(x,a,g){var n,c;U(x);try{if(n=k(x,"return"),!n){if(a==="throw")throw g;return g}n=w(n,x)}catch(R){c=!0,n=R}if(a==="throw")throw g;if(c)throw n;return U(n),g}},(b,r,m)=>{var w=m(26),U=TypeError;b.exports=function(k,x){if(w(x,k))return k;throw U("Incorrect invocation")}},(b,r,m)=>{var w=m(35),U=w("iterator"),k=!1;try{var x=0,a={next:function(){return{done:!!x++}},return:function(){k=!0}};a[U]=function(){return this},Array.from(a,function(){throw 2})}catch{}b.exports=function(g,n){if(!n&&!k)return!1;var c=!1;try{var R={};R[U]=function(){return{next:function(){return{done:c=!0}}}},g(R)}catch{}return c}},(b,r,m)=>{var w=m(23),U=m(22),k=m(84);b.exports=function(x,a,g){var n,c;return k&&w(n=a.constructor)&&n!==g&&U(c=n.prototype)&&c!==g.prototype&&k(x,c),x}},(b,r,m)=>{var w=m(46).f,U=m(71),k=m(115),x=m(106),a=m(111),g=m(105),n=m(89),c=m(116),R=m(9),v=m(98).fastKey,e=m(53),L=e.set,O=e.getterFor;b.exports={getConstructor:function(B,P,S,_){var l=B(function(N,G){a(N,y),L(N,{type:P,index:U(null),first:void 0,last:void 0,size:0}),R||(N.size=0),G!=null&&g(G,N[_],{that:N,AS_ENTRIES:S})}),y=l.prototype,D=O(P),M=function(N,G,W){var J=D(N),Y=F(N,G),V,H;return Y?Y.value=W:(J.last=Y={index:H=v(G,!0),key:G,value:W,previous:V=J.last,next:void 0,removed:!1},J.first||(J.first=Y),V&&(V.next=Y),R?J.size++:N.size++,H!=="F"&&(J.index[H]=Y)),N},F=function(N,G){var W=D(N),J=v(G),Y;if(J!=="F")return W.index[J];for(Y=W.first;Y;Y=Y.next)if(Y.key==G)return Y};return k(y,{clear:function(){for(var G=this,W=D(G),J=W.index,Y=W.first;Y;)Y.removed=!0,Y.previous&&(Y.previous=Y.previous.next=void 0),delete J[Y.index],Y=Y.next;W.first=W.last=void 0,R?W.size=0:G.size=0},delete:function(N){var G=this,W=D(G),J=F(G,N);if(J){var Y=J.next,V=J.previous;delete W.index[J.index],J.removed=!0,V&&(V.next=Y),Y&&(Y.previous=V),W.first==J&&(W.first=Y),W.last==J&&(W.last=V),R?W.size--:G.size--}return!!J},forEach:function(G){for(var W=D(this),J=x(G,arguments.length>1?arguments[1]:void 0),Y;Y=Y?Y.next:W.first;)for(J(Y.value,Y.key,this);Y&&Y.removed;)Y=Y.previous},has:function(G){return!!F(this,G)}}),k(y,S?{get:function(G){var W=F(this,G);return W&&W.value},set:function(G,W){return M(this,G===0?0:G,W)}}:{add:function(G){return M(this,G=G===0?0:G,G)}}),R&&w(y,"size",{get:function(){return D(this).size}}),l},setStrong:function(B,P,S){var _=P+" Iterator",l=O(P),y=O(_);n(B,P,function(D,M){L(this,{type:_,target:D,state:l(D),kind:M,last:void 0})},function(){for(var D=y(this),M=D.kind,F=D.last;F&&F.removed;)F=F.previous;return!D.target||!(D.last=F=F?F.next:D.state.first)?(D.target=void 0,{value:void 0,done:!0}):M=="keys"?{value:F.key,done:!1}:M=="values"?{value:F.value,done:!1}:{value:[F.key,F.value],done:!1}},S?"entries":"values",!S,!0),c(P)}}},(b,r,m)=>{var w=m(49);b.exports=function(U,k,x){for(var a in k)w(U,a,k[a],x);return U}},(b,r,m)=>{var w=m(25),U=m(46),k=m(35),x=m(9),a=k("species");b.exports=function(g){var n=w(g),c=U.f;x&&n&&!n[a]&&c(n,a,{configurable:!0,get:function(){return this}})}},(b,r,m)=>{m(118)},(b,r,m)=>{var w=m(97),U=m(114);w("Set",function(k){return function(){return k(this,arguments.length?arguments[0]:void 0)}},U)},(b,r,m)=>{var w=m(37),U=m(6),k=m(7),x=m(25),a=m(17),g=m(10),n=m(42),c=m(23),R=m(120),v=m(22),e=m(24),L=m(105),O=m(48),B=m(80),P=m(40),S=m(101),_=m(45),l=m(65),y=m(121),D=m(122),M=m(124),F=m(29),N=m(125),G=m(126),W=m(127),J=k.Object,Y=k.Date,V=k.Error,H=k.EvalError,z=k.RangeError,X=k.ReferenceError,q=k.SyntaxError,$=k.TypeError,fe=k.URIError,Q=k.PerformanceMark,ie=k.WebAssembly,Te=ie&&ie.CompileError||V,me=ie&&ie.LinkError||V,K=ie&&ie.RuntimeError||V,ce=x("DOMException"),de=x("Set"),Z=x("Map"),ae=Z.prototype,he=a(ae.has),we=a(ae.get),_e=a(ae.set),ye=a(de.prototype.add),se=x("Object","keys"),Ie=a([].push),Ce=a((!0).valueOf),oe=a(1 .valueOf),pe=a("".valueOf),xe=a(Y.prototype.getTime),Ne=n("structuredClone"),ke="DataCloneError",De="Transferring",Fe=function(Ze){return!g(function(){var et=new k.Set([7]),tt=Ze(et),je=Ze(J(7));return tt==et||!tt.has(7)||typeof je!="object"||je!=7})&&Ze},Pe=function(Ze,et){return!g(function(){var tt=new et,je=Ze({a:tt,b:tt});return!(je&&je.a===je.b&&je.a instanceof et&&je.a.stack===tt.stack)})},qe=function(Ze){return!g(function(){var et=Ze(new k.AggregateError([1],Ne,{cause:3}));return et.name!="AggregateError"||et.errors[0]!=1||et.message!=Ne||et.cause!=3})},Le=k.structuredClone,Oe=w||!Pe(Le,V)||!Pe(Le,ce)||!qe(Le),Ee=!Le&&Fe(function(Ze){return new Q(Ne,{detail:Ze}).detail}),Ae=Fe(Le)||Ee,Ve=function(Ze){throw new ce("Uncloneable type: "+Ze,ke)},$e=function(Ze,et){throw new ce((et||"Cloning")+" of "+Ze+" cannot be properly polyfilled in this engine",ke)},Ue=function(Ze,et){if(e(Ze)&&Ve("Symbol"),!v(Ze))return Ze;if(et){if(he(et,Ze))return we(et,Ze)}else et=new Z;var tt=B(Ze),je=!1,Je,nt,Ke,at,ot,Xe,ze,Ye,st,_t;switch(tt){case"Array":Ke=[],je=!0;break;case"Object":Ke={},je=!0;break;case"Map":Ke=new Z,je=!0;break;case"Set":Ke=new de,je=!0;break;case"RegExp":Ke=new RegExp(Ze.source,D(Ze));break;case"Error":switch(nt=Ze.name,nt){case"AggregateError":Ke=x("AggregateError")([]);break;case"EvalError":Ke=H();break;case"RangeError":Ke=z();break;case"ReferenceError":Ke=X();break;case"SyntaxError":Ke=q();break;case"TypeError":Ke=$();break;case"URIError":Ke=fe();break;case"CompileError":Ke=Te();break;case"LinkError":Ke=me();break;case"RuntimeError":Ke=K();break;default:Ke=V()}je=!0;break;case"DOMException":Ke=new ce(Ze.message,Ze.name),je=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":Je=k[tt],v(Je)||$e(tt),Ke=new Je(Ue(Ze.buffer,et),Ze.byteOffset,tt==="DataView"?Ze.byteLength:Ze.length);break;case"DOMQuad":try{Ke=new DOMQuad(Ue(Ze.p1,et),Ue(Ze.p2,et),Ue(Ze.p3,et),Ue(Ze.p4,et))}catch{Ae?Ke=Ae(Ze):$e(tt)}break;case"FileList":if(Je=k.DataTransfer,R(Je)){for(at=new Je,ot=0,Xe=l(Ze);ot92||W&&F>94||N&&F>97)return!1;var Ze=new ArrayBuffer(8),et=Le(Ze,{transfer:[Ze]});return Ze.byteLength!=0||et.byteLength!=8}),Qe=function(Ze,et){if(!v(Ze))throw $("Transfer option cannot be converted to a sequence");var tt=[];L(Ze,function(st){Ie(tt,O(st))});var je=0,Je=l(tt),nt,Ke,at,ot,Xe,ze,Ye;if(He)for(ot=Le(tt,{transfer:tt});je1&&arguments[1]!=null?O(arguments[1]):void 0,je=tt?tt.transfer:void 0,Je;return je!==void 0&&(Je=new Z,Qe(je,Je)),Ue(et,Je)}})},(b,r,m)=>{var w=m(17),U=m(10),k=m(23),x=m(80),a=m(25),g=m(52),n=function(){},c=[],R=a("Reflect","construct"),v=/^\s*(?:class|function)\b/,e=w(v.exec),L=!v.exec(n),O=function(S){if(!k(S))return!1;try{return R(n,c,S),!0}catch{return!1}},B=function(S){if(!k(S))return!1;switch(x(S)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return L||!!e(v,g(S))}catch{return!0}};B.sham=!0,b.exports=!R||U(function(){var P;return O(O.call)||!O(Object)||!O(function(){P=!0})||P})?B:O},b=>{var r=TypeError;b.exports=function(m,w){if(m{var w=m(11),U=m(40),k=m(26),x=m(123),a=RegExp.prototype;b.exports=function(g){var n=g.flags;return n===void 0&&!("flags"in a)&&!U(g,"flags")&&k(a,g)?w(x,g):n}},(b,r,m)=>{var w=m(48);b.exports=function(){var U=w(this),k="";return U.hasIndices&&(k+="d"),U.global&&(k+="g"),U.ignoreCase&&(k+="i"),U.multiline&&(k+="m"),U.dotAll&&(k+="s"),U.unicode&&(k+="u"),U.unicodeSets&&(k+="v"),U.sticky&&(k+="y"),k}},(b,r,m)=>{var w=m(10),U=m(14);b.exports=!w(function(){var k=Error("a");return"stack"in k?(Object.defineProperty(k,"stack",U(1,7)),k.stack!==7):!0})},(b,r,m)=>{var w=m(126),U=m(127);b.exports=!w&&!U&&typeof window=="object"&&typeof document=="object"},b=>{b.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},(b,r,m)=>{var w=m(18),U=m(7);b.exports=w(U.process)=="process"},(b,r,m)=>{var w=m(7);b.exports=w},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(130),_display_utils=__w_pdfjs_require__(133),_font_loader=__w_pdfjs_require__(136),_canvas=__w_pdfjs_require__(137),_worker_options=__w_pdfjs_require__(140),_is_node=__w_pdfjs_require__(3),_message_handler=__w_pdfjs_require__(141),_metadata=__w_pdfjs_require__(142),_optional_content_config=__w_pdfjs_require__(143),_transport_stream=__w_pdfjs_require__(144),_xfa_text=__w_pdfjs_require__(145);function _classPrivateMethodInitSpec(b,r){_checkPrivateRedeclaration(b,r),r.add(b)}function _classPrivateMethodGet(b,r,m){if(!r.has(b))throw new TypeError("attempted to get private field on non-instance");return m}function _classPrivateFieldInitSpec(b,r,m){_checkPrivateRedeclaration(b,r),r.set(b,m)}function _checkPrivateRedeclaration(b,r){if(r.has(b))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldSet(b,r,m){var w=_classExtractFieldDescriptor(b,r,"set");return _classApplyDescriptorSet(b,w,m),m}function _classPrivateFieldGet(b,r){var m=_classExtractFieldDescriptor(b,r,"get");return _classApplyDescriptorGet(b,m)}function _classExtractFieldDescriptor(b,r,m){if(!r.has(b))throw new TypeError("attempted to "+m+" private field on non-instance");return r.get(b)}function _classStaticPrivateFieldSpecSet(b,r,m,w){return _classCheckPrivateStaticAccess(b,r),_classCheckPrivateStaticFieldDescriptor(m,"set"),_classApplyDescriptorSet(b,m,w),w}function _classApplyDescriptorSet(b,r,m){if(r.set)r.set.call(b,m);else{if(!r.writable)throw new TypeError("attempted to set read only private field");r.value=m}}function _classStaticPrivateFieldSpecGet(b,r,m){return _classCheckPrivateStaticAccess(b,r),_classCheckPrivateStaticFieldDescriptor(m,"get"),_classApplyDescriptorGet(b,m)}function _classCheckPrivateStaticFieldDescriptor(b,r){if(b===void 0)throw new TypeError("attempted to "+r+" private static field before its declaration")}function _classCheckPrivateStaticAccess(b,r){if(b!==r)throw new TypeError("Private static access of wrong provenance")}function _classApplyDescriptorGet(b,r){return r.get?r.get.call(b):r.value}const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let DefaultCanvasFactory=_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;let DefaultCMapReaderFactory=_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;let DefaultStandardFontDataFactory=_display_utils.DOMStandardFontDataFactory;if(exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory,_is_node.isNodeJS){const{NodeCanvasFactory:b,NodeCMapReaderFactory:r,NodeStandardFontDataFactory:m}=__w_pdfjs_require__(146);exports.DefaultCanvasFactory=DefaultCanvasFactory=b,exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory=r,exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory=m}let createPDFNetworkStream;function setPDFNetworkStreamFactory(b){createPDFNetworkStream=b}function getDocument(b){const r=new PDFDocumentLoadingTask;let m;if(typeof b=="string"||b instanceof URL)m={url:b};else if((0,_util.isArrayBuffer)(b))m={data:b};else if(b instanceof PDFDataRangeTransport)m={range:b};else{if(typeof b!="object")throw new Error("Invalid parameter in getDocument, need either string, URL, TypedArray, or parameter object.");if(!b.url&&!b.data&&!b.range)throw new Error("Invalid parameter object: need either .data, .range or .url");m=b}const w=Object.create(null);let U=null,k=null;for(const a in m){const g=m[a];switch(a){case"url":if(typeof window<"u")try{w[a]=new URL(g,window.location).href;continue}catch(n){(0,_util.warn)(`Cannot create valid URL: "${n}".`)}else if(typeof g=="string"||g instanceof URL){w[a]=g.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":U=g;continue;case"worker":k=g;continue;case"data":if(_is_node.isNodeJS&&typeof Buffer<"u"&&g instanceof Buffer)w[a]=new Uint8Array(g);else{if(g instanceof Uint8Array)break;if(typeof g=="string")w[a]=(0,_util.stringToBytes)(g);else if(typeof g=="object"&&g!==null&&!isNaN(g.length))w[a]=new Uint8Array(g);else if((0,_util.isArrayBuffer)(g))w[a]=new Uint8Array(g);else throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}continue}w[a]=g}if(w.CMapReaderFactory=w.CMapReaderFactory||DefaultCMapReaderFactory,w.StandardFontDataFactory=w.StandardFontDataFactory||DefaultStandardFontDataFactory,w.ignoreErrors=w.stopAtErrors!==!0,w.fontExtraProperties=w.fontExtraProperties===!0,w.pdfBug=w.pdfBug===!0,w.enableXfa=w.enableXfa===!0,(!Number.isInteger(w.rangeChunkSize)||w.rangeChunkSize<1)&&(w.rangeChunkSize=DEFAULT_RANGE_CHUNK_SIZE),(typeof w.docBaseUrl!="string"||(0,_display_utils.isDataScheme)(w.docBaseUrl))&&(w.docBaseUrl=null),(!Number.isInteger(w.maxImageSize)||w.maxImageSize<-1)&&(w.maxImageSize=-1),typeof w.cMapUrl!="string"&&(w.cMapUrl=null),typeof w.standardFontDataUrl!="string"&&(w.standardFontDataUrl=null),typeof w.useWorkerFetch!="boolean"&&(w.useWorkerFetch=w.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&w.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),typeof w.isEvalSupported!="boolean"&&(w.isEvalSupported=!0),typeof w.disableFontFace!="boolean"&&(w.disableFontFace=_is_node.isNodeJS),typeof w.useSystemFonts!="boolean"&&(w.useSystemFonts=!_is_node.isNodeJS&&!w.disableFontFace),(typeof w.ownerDocument!="object"||w.ownerDocument===null)&&(w.ownerDocument=globalThis.document),typeof w.disableRange!="boolean"&&(w.disableRange=!1),typeof w.disableStream!="boolean"&&(w.disableStream=!1),typeof w.disableAutoFetch!="boolean"&&(w.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(w.verbosity),!k){const a={verbosity:w.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};k=a.port?PDFWorker.fromPort(a):new PDFWorker(a),r._worker=k}const x=r.docId;return k.promise.then(function(){if(r.destroyed)throw new Error("Loading aborted");const a=_fetchDocument(k,w,U,x),g=new Promise(function(n){let c;U?c=new _transport_stream.PDFDataTransportStream({length:w.length,initialData:w.initialData,progressiveDone:w.progressiveDone,contentDispositionFilename:w.contentDispositionFilename,disableRange:w.disableRange,disableStream:w.disableStream},U):w.data||(c=createPDFNetworkStream({url:w.url,length:w.length,httpHeaders:w.httpHeaders,withCredentials:w.withCredentials,rangeChunkSize:w.rangeChunkSize,disableRange:w.disableRange,disableStream:w.disableStream})),n(c)});return Promise.all([a,g]).then(function(n){let[c,R]=n;if(r.destroyed)throw new Error("Loading aborted");const v=new _message_handler.MessageHandler(x,c,k.port),e=new WorkerTransport(v,r,R,w);r._transport=e,v.send("Ready",null)})}).catch(r._capability.reject),r}async function _fetchDocument(b,r,m,w){if(b.destroyed)throw new Error("Worker was destroyed");m&&(r.length=m.length,r.initialData=m.initialData,r.progressiveDone=m.progressiveDone,r.contentDispositionFilename=m.contentDispositionFilename);const U=await b.messageHandler.sendWithPromise("GetDocRequest",{docId:w,apiVersion:"2.16.105",source:{data:r.data,url:r.url,password:r.password,disableAutoFetch:r.disableAutoFetch,rangeChunkSize:r.rangeChunkSize,length:r.length},maxImageSize:r.maxImageSize,disableFontFace:r.disableFontFace,docBaseUrl:r.docBaseUrl,ignoreErrors:r.ignoreErrors,isEvalSupported:r.isEvalSupported,fontExtraProperties:r.fontExtraProperties,enableXfa:r.enableXfa,useSystemFonts:r.useSystemFonts,cMapUrl:r.useWorkerFetch?r.cMapUrl:null,standardFontDataUrl:r.useWorkerFetch?r.standardFontDataUrl:null});if(r.data&&(r.data=null),b.destroyed)throw new Error("Worker was destroyed");return U}class PDFDocumentLoadingTask{constructor(){var r,m;this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId=`d${_classStaticPrivateFieldSpecSet(PDFDocumentLoadingTask,PDFDocumentLoadingTask,_docId,(r=_classStaticPrivateFieldSpecGet(PDFDocumentLoadingTask,PDFDocumentLoadingTask,_docId),m=r++,r)),m}`,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}async destroy(){var r;this.destroyed=!0,await((r=this._transport)===null||r===void 0?void 0:r.destroy()),this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;var _docId={writable:!0,value:0};class PDFDataRangeTransport{constructor(r,m){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;this.length=r,this.initialData=m,this.progressiveDone=w,this.contentDispositionFilename=U,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(r){this._rangeListeners.push(r)}addProgressListener(r){this._progressListeners.push(r)}addProgressiveReadListener(r){this._progressiveReadListeners.push(r)}addProgressiveDoneListener(r){this._progressiveDoneListeners.push(r)}onDataRange(r,m){for(const w of this._rangeListeners)w(r,m)}onDataProgress(r,m){this._readyCapability.promise.then(()=>{for(const w of this._progressListeners)w(r,m)})}onDataProgressiveRead(r){this._readyCapability.promise.then(()=>{for(const m of this._progressiveReadListeners)m(r)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const r of this._progressiveDoneListeners)r()})}transportReady(){this._readyCapability.resolve()}requestDataRange(r,m){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(r,m){this._pdfInfo=r,this._transport=m,Object.defineProperty(this,"fingerprint",{get(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}}),Object.defineProperty(this,"getStats",{value:async()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getStats`, please use the `PDFDocumentProxy.stats`-getter instead."),this.stats||{streamTypes:{},fontTypes:{}})})}get annotationStorage(){return this._transport.annotationStorage}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get stats(){return this._transport.stats}get isPureXfa(){return!!this._transport._htmlForXfa}get allXfaHtml(){return this._transport._htmlForXfa}getPage(r){return this._transport.getPage(r)}getPageIndex(r){return this._transport.getPageIndex(r)}getDestinations(){return this._transport.getDestinations()}getDestination(r){return this._transport.getDestination(r)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this._transport.startCleanup(r||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}saveDocument(){return this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(r,m,w,U){let k=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;this._pageIndex=r,this._pageInfo=m,this._ownerDocument=U,this._transport=w,this._stats=k?new _display_utils.StatTimer:null,this._pdfBug=k,this.commonObjs=w.commonObjs,this.objs=new PDFObjects,this._bitmaps=new Set,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this._annotationPromises=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport(){let{scale:r,rotation:m=this.rotate,offsetX:w=0,offsetY:U=0,dontFlip:k=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new _display_utils.PageViewport({viewBox:this.view,scale:r,rotation:m,offsetX:w,offsetY:U,dontFlip:k})}getAnnotations(){let{intent:r="display"}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const m=this._transport.getRenderingIntent(r);let w=this._annotationPromises.get(m.cacheKey);return w||(w=this._transport.getAnnotations(this._pageIndex,m.renderingIntent),this._annotationPromises.set(m.cacheKey,w),w=w.then(U=>{for(const k of U)k.titleObj!==void 0&&Object.defineProperty(k,"title",{get(){return(0,_display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."),k.titleObj.str}}),k.contentsObj!==void 0&&Object.defineProperty(k,"contents",{get(){return(0,_display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."),k.contentsObj.str}});return U})),w}getJSActions(){return this._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex))}async getXfa(){var r;return((r=this._transport._htmlForXfa)===null||r===void 0?void 0:r.children[this._pageIndex])||null}render(r){var m,w,U;let{canvasContext:k,viewport:x,intent:a="display",annotationMode:g=_util.AnnotationMode.ENABLE,transform:n=null,imageLayer:c=null,canvasFactory:R=null,background:v=null,optionalContentConfigPromise:e=null,annotationCanvasMap:L=null,pageColors:O=null,printAnnotationStorage:B=null}=r;((m=arguments[0])===null||m===void 0?void 0:m.renderInteractiveForms)!==void 0&&((0,_display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."),arguments[0].renderInteractiveForms===!0&&g===_util.AnnotationMode.ENABLE&&(g=_util.AnnotationMode.ENABLE_FORMS)),((w=arguments[0])===null||w===void 0?void 0:w.includeAnnotationStorage)!==void 0&&((0,_display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."),arguments[0].includeAnnotationStorage===!0&&g===_util.AnnotationMode.ENABLE&&(g=_util.AnnotationMode.ENABLE_STORAGE)),this._stats&&this._stats.time("Overall");const P=this._transport.getRenderingIntent(a,g,B);this.pendingCleanup=!1,e||(e=this._transport.getOptionalContentConfig());let S=this._intentStates.get(P.cacheKey);S||(S=Object.create(null),this._intentStates.set(P.cacheKey,S)),S.streamReaderCancelTimeout&&(clearTimeout(S.streamReaderCancelTimeout),S.streamReaderCancelTimeout=null);const _=R||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),l=!!(P.renderingIntent&_util.RenderingIntentFlag.PRINT);S.displayReadyCapability||(S.displayReadyCapability=(0,_util.createPromiseCapability)(),S.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(P));const y=F=>{S.renderTasks.delete(D),(this.cleanupAfterRender||l)&&(this.pendingCleanup=!0),this._tryCleanup(),F?(D.capability.reject(F),this._abortOperatorList({intentState:S,reason:F instanceof Error?F:new Error(F)})):D.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},D=new InternalRenderTask({callback:y,params:{canvasContext:k,viewport:x,transform:n,imageLayer:c,background:v},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:L,operatorList:S.operatorList,pageIndex:this._pageIndex,canvasFactory:_,useRequestAnimationFrame:!l,pdfBug:this._pdfBug,pageColors:O});((U=S).renderTasks||(U.renderTasks=new Set)).add(D);const M=D.task;return Promise.all([S.displayReadyCapability.promise,e]).then(F=>{let[N,G]=F;if(this.pendingCleanup){y();return}this._stats&&this._stats.time("Rendering"),D.initializeGraphics({transparency:N,optionalContentConfig:G}),D.operatorListChanged()}).catch(y),M}getOperatorList(){let{intent:r="display",annotationMode:m=_util.AnnotationMode.ENABLE,printAnnotationStorage:w=null}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};function U(){x.operatorList.lastChunk&&(x.opListReadCapability.resolve(x.operatorList),x.renderTasks.delete(a))}const k=this._transport.getRenderingIntent(r,m,w,!0);let x=this._intentStates.get(k.cacheKey);x||(x=Object.create(null),this._intentStates.set(k.cacheKey,x));let a;if(!x.opListReadCapability){var g;a=Object.create(null),a.operatorListChanged=U,x.opListReadCapability=(0,_util.createPromiseCapability)(),((g=x).renderTasks||(g.renderTasks=new Set)).add(a),x.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(k)}return x.opListReadCapability.promise}streamTextContent(){let{disableCombineTextItems:r=!1,includeMarkedContent:m=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const w=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,combineTextItems:r!==!0,includeMarkedContent:m===!0},{highWaterMark:w,size(U){return U.items.length}})}getTextContent(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then(w=>_xfa_text.XfaText.textContent(w));const m=this.streamTextContent(r);return new Promise(function(w,U){function k(){x.read().then(function(g){let{value:n,done:c}=g;if(c){w(a);return}Object.assign(a.styles,n.styles),a.items.push(...n.items),k()},U)}const x=m.getReader(),a={items:[],styles:Object.create(null)};k()})}getStructTree(){return this._structTreePromise||(this._structTreePromise=this._transport.getStructTree(this._pageIndex))}_destroy(){this.destroyed=!0;const r=[];for(const m of this._intentStates.values())if(this._abortOperatorList({intentState:m,reason:new Error("Page was destroyed."),force:!0}),!m.opListReadCapability)for(const w of m.renderTasks)r.push(w.completed),w.cancel();this.objs.clear();for(const m of this._bitmaps)m.close();return this._bitmaps.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(r)}cleanup(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.pendingCleanup=!0,this._tryCleanup(r)}_tryCleanup(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.pendingCleanup)return!1;for(const{renderTasks:m,operatorList:w}of this._intentStates.values())if(m.size>0||!w.lastChunk)return!1;this._intentStates.clear(),this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,r&&this._stats&&(this._stats=new _display_utils.StatTimer);for(const m of this._bitmaps)m.close();return this._bitmaps.clear(),this.pendingCleanup=!1,!0}_startRenderPage(r,m){const w=this._intentStates.get(m);w&&(this._stats&&this._stats.timeEnd("Page Request"),w.displayReadyCapability&&w.displayReadyCapability.resolve(r))}_renderPageChunk(r,m){for(let w=0,U=r.length;w{x.read().then(n=>{let{value:c,done:R}=n;if(R){a.streamReader=null;return}this._transport.destroyed||(this._renderPageChunk(c,a),g())},n=>{if(a.streamReader=null,!this._transport.destroyed){if(a.operatorList){a.operatorList.lastChunk=!0;for(const c of a.renderTasks)c.operatorListChanged();this._tryCleanup()}if(a.displayReadyCapability)a.displayReadyCapability.reject(n);else if(a.opListReadCapability)a.opListReadCapability.reject(n);else throw n}})};g()}_abortOperatorList(r){let{intentState:m,reason:w,force:U=!1}=r;if(m.streamReader){if(!U){if(m.renderTasks.size>0)return;if(w instanceof _display_utils.RenderingCancelledException){m.streamReaderCancelTimeout=setTimeout(()=>{this._abortOperatorList({intentState:m,reason:w,force:!0}),m.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT);return}}if(m.streamReader.cancel(new _util.AbortException(w.message)).catch(()=>{}),m.streamReader=null,!this._transport.destroyed){for(const[k,x]of this._intentStates)if(x===m){this._intentStates.delete(k);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){this._listeners=[],this._deferred=Promise.resolve()}postMessage(r,m){const w={data:structuredClone(r,m)};this._deferred.then(()=>{for(const U of this._listeners)U.call(this,w)})}addEventListener(r,m){this._listeners.push(m)}removeEventListener(r,m){const w=this._listeners.indexOf(m);this._listeners.splice(w,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};exports.PDFWorkerUtil=PDFWorkerUtil;{if(_is_node.isNodeJS&&typeof commonjsRequire$1=="function")PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if(typeof document=="object"){var _document,_document$currentScri;const b=(_document=document)===null||_document===void 0||(_document$currentScri=_document.currentScript)===null||_document$currentScri===void 0?void 0:_document$currentScri.src;b&&(PDFWorkerUtil.fallbackWorkerSrc=b.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(b,r){let m;try{if(m=new URL(b),!m.origin||m.origin==="null")return!1}catch{return!1}const w=new URL(r,m);return m.origin===w.origin},PDFWorkerUtil.createCDNWrapper=function(b){const r=`importScripts("${b}");`;return URL.createObjectURL(new Blob([r]))}}class PDFWorker{constructor(){let{name:b=null,port:r=null,verbosity:m=(0,_util.getVerbosityLevel)()}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r&&_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts).has(r))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=b,this.destroyed=!1,this.verbosity=m,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,r){_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts).set(r,this),this._initializeFromPort(r);return}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(b){this._port=b,this._messageHandler=new _message_handler.MessageHandler("main","worker",b),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:b}=PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,b)||(b=PDFWorkerUtil.createCDNWrapper(new URL(b,window.location).href));const r=new Worker(b),m=new _message_handler.MessageHandler("main","worker",r),w=()=>{r.removeEventListener("error",U),m.destroy(),r.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},U=()=>{this._webWorker||w()};r.addEventListener("error",U),m.on("test",x=>{if(r.removeEventListener("error",U),this.destroyed){w();return}x?(this._messageHandler=m,this._port=r,this._webWorker=r,this._readyCapability.resolve(),m.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),m.destroy(),r.terminate())}),m.on("ready",x=>{if(r.removeEventListener("error",U),this.destroyed){w();return}try{k()}catch{this._setupFakeWorker()}});const k=()=>{const x=new Uint8Array;m.send("test",x,[x.buffer])};k();return}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then(b=>{if(this.destroyed){this._readyCapability.reject(new Error("Worker was destroyed"));return}const r=new LoopbackPort;this._port=r;const m=`fake${PDFWorkerUtil.fakeWorkerId++}`,w=new _message_handler.MessageHandler(m+"_worker",m,r);b.setup(w,r);const U=new _message_handler.MessageHandler(m,m+"_worker",r);this._messageHandler=U,this._readyCapability.resolve(),U.send("configure",{verbosity:this.verbosity})}).catch(b=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${b.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),_classStaticPrivateFieldSpecGet(PDFWorker,PDFWorker,_workerPorts).delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(b){if(!(b!=null&&b.port))throw new Error("PDFWorker.fromPort - invalid method signature.");return _classStaticPrivateFieldSpecGet(this,PDFWorker,_workerPorts).has(b.port)?_classStaticPrivateFieldSpecGet(this,PDFWorker,_workerPorts).get(b.port):new PDFWorker(b)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(PDFWorkerUtil.fallbackWorkerSrc!==null)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{var b;return((b=globalThis.pdfjsWorker)===null||b===void 0?void 0:b.WorkerMessageHandler)||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS&&typeof commonjsRequire$1=="function"){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}exports.PDFWorker=PDFWorker;var _workerPorts={writable:!0,value:new WeakMap};PDFWorker.getWorkerSrc=function(){return(0,_display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."),this.workerSrc};var _docStats=new WeakMap,_pageCache=new WeakMap,_pagePromises=new WeakMap,_metadataPromise=new WeakMap;class WorkerTransport{constructor(r,m,w,U){_classPrivateFieldInitSpec(this,_docStats,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,_pageCache,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_pagePromises,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_metadataPromise,{writable:!0,value:null}),this.messageHandler=r,this.loadingTask=m,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:m.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:U.ownerDocument,styleElement:U.styleElement}),this._params=U,U.useWorkerFetch||(this.CMapReaderFactory=new U.CMapReaderFactory({baseUrl:U.cMapUrl,isCompressed:U.cMapPacked}),this.StandardFontDataFactory=new U.StandardFontDataFactory({baseUrl:U.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=w,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}get stats(){return _classPrivateFieldGet(this,_docStats)}getRenderingIntent(r){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_util.AnnotationMode.ENABLE,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,k=_util.RenderingIntentFlag.DISPLAY,x=null;switch(r){case"any":k=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":k=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${r}`)}switch(m){case _util.AnnotationMode.DISABLE:k+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:k+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:k+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,x=(k&_util.RenderingIntentFlag.PRINT&&w instanceof _annotation_storage.PrintAnnotationStorage?w:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${m}`)}return U&&(k+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:k,cacheKey:`${k}_${_annotation_storage.AnnotationStorage.getHash(x)}`,annotationStorageMap:x}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const r=[];for(const w of _classPrivateFieldGet(this,_pageCache).values())r.push(w._destroy());_classPrivateFieldGet(this,_pageCache).clear(),_classPrivateFieldGet(this,_pagePromises).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const m=this.messageHandler.sendWithPromise("Terminate",null);return r.push(m),Promise.all(r).then(()=>{this.commonObjs.clear(),this.fontLoader.clear(),_classPrivateFieldSet(this,_metadataPromise,null),this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null,this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:r,loadingTask:m}=this;r.on("GetReader",(w,U)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=k=>{this._lastProgress={loaded:k.loaded,total:k.total}},U.onPull=()=>{this._fullReader.read().then(function(k){let{value:x,done:a}=k;if(a){U.close();return}(0,_util.assert)((0,_util.isArrayBuffer)(x),"GetReader - expected an ArrayBuffer."),U.enqueue(new Uint8Array(x),1,[x])}).catch(k=>{U.error(k)})},U.onCancel=k=>{this._fullReader.cancel(k),U.ready.catch(x=>{if(!this.destroyed)throw x})}}),r.on("ReaderHeadersReady",w=>{const U=(0,_util.createPromiseCapability)(),k=this._fullReader;return k.headersReady.then(()=>{if(!k.isStreamingSupported||!k.isRangeSupported){if(this._lastProgress){var x;(x=m.onProgress)===null||x===void 0||x.call(m,this._lastProgress)}k.onProgress=a=>{var g;(g=m.onProgress)===null||g===void 0||g.call(m,{loaded:a.loaded,total:a.total})}}U.resolve({isStreamingSupported:k.isStreamingSupported,isRangeSupported:k.isRangeSupported,contentLength:k.contentLength})},U.reject),U.promise}),r.on("GetRangeReader",(w,U)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const k=this._networkStream.getRangeReader(w.begin,w.end);if(!k){U.close();return}U.onPull=()=>{k.read().then(function(x){let{value:a,done:g}=x;if(g){U.close();return}(0,_util.assert)((0,_util.isArrayBuffer)(a),"GetRangeReader - expected an ArrayBuffer."),U.enqueue(new Uint8Array(a),1,[a])}).catch(x=>{U.error(x)})},U.onCancel=x=>{k.cancel(x),U.ready.catch(a=>{if(!this.destroyed)throw a})}}),r.on("GetDoc",w=>{let{pdfInfo:U}=w;this._numPages=U.numPages,this._htmlForXfa=U.htmlForXfa,delete U.htmlForXfa,m._capability.resolve(new PDFDocumentProxy(U,this))}),r.on("DocException",function(w){let U;switch(w.name){case"PasswordException":U=new _util.PasswordException(w.message,w.code);break;case"InvalidPDFException":U=new _util.InvalidPDFException(w.message);break;case"MissingPDFException":U=new _util.MissingPDFException(w.message);break;case"UnexpectedResponseException":U=new _util.UnexpectedResponseException(w.message,w.status);break;case"UnknownErrorException":U=new _util.UnknownErrorException(w.message,w.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}m._capability.reject(U)}),r.on("PasswordRequest",w=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),m.onPassword){const U=k=>{k instanceof Error?this._passwordCapability.reject(k):this._passwordCapability.resolve({password:k})};try{m.onPassword(U,w.code)}catch(k){this._passwordCapability.reject(k)}}else this._passwordCapability.reject(new _util.PasswordException(w.message,w.code));return this._passwordCapability.promise}),r.on("DataLoaded",w=>{var U;(U=m.onProgress)===null||U===void 0||U.call(m,{loaded:w.length,total:w.length}),this.downloadInfoCapability.resolve(w)}),r.on("StartRenderPage",w=>{if(this.destroyed)return;_classPrivateFieldGet(this,_pageCache).get(w.pageIndex)._startRenderPage(w.transparency,w.cacheKey)}),r.on("commonobj",w=>{var U;let[k,x,a]=w;if(!this.destroyed&&!this.commonObjs.has(k))switch(x){case"Font":const g=this._params;if("error"in a){const R=a.error;(0,_util.warn)(`Error during font loading: ${R}`),this.commonObjs.resolve(k,R);break}let n=null;g.pdfBug&&(U=globalThis.FontInspector)!==null&&U!==void 0&&U.enabled&&(n={registerFont(R,v){globalThis.FontInspector.fontAdded(R,v)}});const c=new _font_loader.FontFaceObject(a,{isEvalSupported:g.isEvalSupported,disableFontFace:g.disableFontFace,ignoreErrors:g.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:n});this.fontLoader.bind(c).catch(R=>r.sendWithPromise("FontFallback",{id:k})).finally(()=>{!g.fontExtraProperties&&c.data&&(c.data=null),this.commonObjs.resolve(k,c)});break;case"FontPath":case"Image":this.commonObjs.resolve(k,a);break;default:throw new Error(`Got unknown common object type ${x}`)}}),r.on("obj",w=>{let[U,k,x,a]=w;if(this.destroyed)return;const g=_classPrivateFieldGet(this,_pageCache).get(k);if(!g.objs.has(U))switch(x){case"Image":g.objs.resolve(U,a);const c=8e6;if(a){let R;if(a.bitmap){const{bitmap:v,width:e,height:L}=a;R=e*L*4,g._bitmaps.add(v)}else{var n;R=((n=a.data)===null||n===void 0?void 0:n.length)||0}R>c&&(g.cleanupAfterRender=!0)}break;case"Pattern":g.objs.resolve(U,a);break;default:throw new Error(`Got unknown object type ${x}`)}}),r.on("DocProgress",w=>{var U;this.destroyed||(U=m.onProgress)===null||U===void 0||U.call(m,{loaded:w.loaded,total:w.total})}),r.on("DocStats",w=>{this.destroyed||_classPrivateFieldSet(this,_docStats,Object.freeze({streamTypes:Object.freeze(w.streamTypes),fontTypes:Object.freeze(w.fontTypes)}))}),r.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),r.on("FetchBuiltInCMap",w=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.CMapReaderFactory?this.CMapReaderFactory.fetch(w):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),r.on("FetchStandardFontData",w=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.StandardFontDataFactory?this.StandardFontDataFactory.fetch(w):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}_onUnsupportedFeature(r){var m,w;let{featureId:U}=r;this.destroyed||(m=(w=this.loadingTask).onUnsupportedFeature)===null||m===void 0||m.call(w,U)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(r){if(!Number.isInteger(r)||r<=0||r>this._numPages)return Promise.reject(new Error("Invalid page request."));const m=r-1,w=_classPrivateFieldGet(this,_pagePromises).get(m);if(w)return w;const U=this.messageHandler.sendWithPromise("GetPage",{pageIndex:m}).then(k=>{if(this.destroyed)throw new Error("Transport destroyed");const x=new PDFPageProxy(m,k,this,this._params.ownerDocument,this._params.pdfBug);return _classPrivateFieldGet(this,_pageCache).set(m,x),x});return _classPrivateFieldGet(this,_pagePromises).set(m,U),U}getPageIndex(r){return typeof r!="object"||r===null||!Number.isInteger(r.num)||r.num<0||!Number.isInteger(r.gen)||r.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:r.num,gen:r.gen})}getAnnotations(r,m){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:r,intent:m})}saveDocument(){var r,m;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:(r=(m=this._fullReader)===null||m===void 0?void 0:m.filename)!==null&&r!==void 0?r:null}).finally(()=>{this.annotationStorage.resetModified()})}getFieldObjects(){return this._getFieldObjectsPromise||(this._getFieldObjectsPromise=this.messageHandler.sendWithPromise("GetFieldObjects",null))}hasJSActions(){return this._hasJSActionsPromise||(this._hasJSActionsPromise=this.messageHandler.sendWithPromise("HasJSActions",null))}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(r){return typeof r!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:r})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(r){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:r})}getStructTree(r){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:r})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(r=>new _optional_content_config.OptionalContentConfig(r))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return _classPrivateFieldGet(this,_metadataPromise)||_classPrivateFieldSet(this,_metadataPromise,this.messageHandler.sendWithPromise("GetMetadata",null).then(r=>{var m,w,U,k;return{info:r[0],metadata:r[1]?new _metadata.Metadata(r[1]):null,contentDispositionFilename:(m=(w=this._fullReader)===null||w===void 0?void 0:w.filename)!==null&&m!==void 0?m:null,contentLength:(U=(k=this._fullReader)===null||k===void 0?void 0:k.contentLength)!==null&&U!==void 0?U:null}}))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(await this.messageHandler.sendWithPromise("Cleanup",null),!this.destroyed){for(const m of _classPrivateFieldGet(this,_pageCache).values())if(!m.cleanup())throw new Error(`startCleanup: Page ${m.pageNumber} is currently rendering.`);this.commonObjs.clear(),r||this.fontLoader.clear(),_classPrivateFieldSet(this,_metadataPromise,null),this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null}}get loadingParams(){const r=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:r.disableAutoFetch,enableXfa:r.enableXfa})}}var _objs=new WeakMap,_ensureObj=new WeakSet;class PDFObjects{constructor(){_classPrivateMethodInitSpec(this,_ensureObj),_classPrivateFieldInitSpec(this,_objs,{writable:!0,value:Object.create(null)})}get(r){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(m){const U=_classPrivateMethodGet(this,_ensureObj,_ensureObj2).call(this,r);return U.capability.promise.then(()=>m(U.data)),null}const w=_classPrivateFieldGet(this,_objs)[r];if(!(w!=null&&w.capability.settled))throw new Error(`Requesting object that isn't resolved yet ${r}.`);return w.data}has(r){const m=_classPrivateFieldGet(this,_objs)[r];return(m==null?void 0:m.capability.settled)||!1}resolve(r){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const w=_classPrivateMethodGet(this,_ensureObj,_ensureObj2).call(this,r);w.data=m,w.capability.resolve()}clear(){_classPrivateFieldSet(this,_objs,Object.create(null))}}function _ensureObj2(b){const r=_classPrivateFieldGet(this,_objs)[b];return r||(_classPrivateFieldGet(this,_objs)[b]={capability:(0,_util.createPromiseCapability)(),data:null})}var _internalRenderTask=new WeakMap;class RenderTask{constructor(r){_classPrivateFieldInitSpec(this,_internalRenderTask,{writable:!0,value:null}),_classPrivateFieldSet(this,_internalRenderTask,r),this.onContinue=null}get promise(){return _classPrivateFieldGet(this,_internalRenderTask).capability.promise}cancel(){_classPrivateFieldGet(this,_internalRenderTask).cancel()}get separateAnnots(){const{separateAnnots:r}=_classPrivateFieldGet(this,_internalRenderTask).operatorList;if(!r)return!1;const{annotationCanvasMap:m}=_classPrivateFieldGet(this,_internalRenderTask);return r.form||r.canvas&&(m==null?void 0:m.size)>0}}exports.RenderTask=RenderTask;class InternalRenderTask{constructor(r){let{callback:m,params:w,objs:U,commonObjs:k,annotationCanvasMap:x,operatorList:a,pageIndex:g,canvasFactory:n,useRequestAnimationFrame:c=!1,pdfBug:R=!1,pageColors:v=null}=r;this.callback=m,this.params=w,this.objs=U,this.commonObjs=k,this.annotationCanvasMap=x,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=g,this.canvasFactory=n,this._pdfBug=R,this.pageColors=v,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=c===!0&&typeof window<"u",this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=w.canvasContext.canvas}get completed(){return this.capability.promise.catch(function(){})}initializeGraphics(r){var m;let{transparency:w=!1,optionalContentConfig:U}=r;if(this.cancelled)return;if(this._canvas){if(_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).add(this._canvas)}this._pdfBug&&(m=globalThis.StepperManager)!==null&&m!==void 0&&m.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:k,viewport:x,transform:a,imageLayer:g,background:n}=this.params;this.gfx=new _canvas.CanvasGraphics(k,this.commonObjs,this.objs,this.canvasFactory,g,U,this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:a,viewport:x,transparency:w,background:n}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).delete(this._canvas),this.callback(r||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}this.stepper&&this.stepper.updateOperatorList(this.operatorList),!this.running&&this._continue()}_continue(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame(()=>{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&_classStaticPrivateFieldSpecGet(InternalRenderTask,InternalRenderTask,_canvasInUse).delete(this._canvas),this.callback())))}}var _canvasInUse={writable:!0,value:new WeakSet};const version="2.16.105";exports.version=version;const build="172ccdbe5";exports.build=build},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.PrintAnnotationStorage=r.AnnotationStorage=void 0;var w=m(1),U=m(131),k=m(135);function x(l,y,D){e(l,y),y.set(l,D)}function a(l,y){var D=c(l,y,"get");return g(l,D)}function g(l,y){return y.get?y.get.call(l):y.value}function n(l,y,D){var M=c(l,y,"set");return R(l,M,D),D}function c(l,y,D){if(!y.has(l))throw new TypeError("attempted to "+D+" private field on non-instance");return y.get(l)}function R(l,y,D){if(y.set)y.set.call(l,D);else{if(!y.writable)throw new TypeError("attempted to set read only private field");y.value=D}}function v(l,y){e(l,y),y.add(l)}function e(l,y){if(y.has(l))throw new TypeError("Cannot initialize the same private elements twice on an object")}function L(l,y,D){if(!y.has(l))throw new TypeError("attempted to get private field on non-instance");return D}var O=new WeakSet;class B{constructor(){v(this,O),this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(y,D){const M=this._storage.get(y);return M===void 0?D:Object.assign(D,M)}getRawValue(y){return this._storage.get(y)}remove(y){if(this._storage.delete(y),this._storage.size===0&&this.resetModified(),typeof this.onAnnotationEditor=="function"){for(const D of this._storage.values())if(D instanceof U.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(y,D){const M=this._storage.get(y);let F=!1;if(M!==void 0)for(const[N,G]of Object.entries(D))M[N]!==G&&(F=!0,M[N]=G);else F=!0,this._storage.set(y,D);F&&L(this,O,P).call(this),D instanceof U.AnnotationEditor&&typeof this.onAnnotationEditor=="function"&&this.onAnnotationEditor(D.constructor._type)}has(y){return this._storage.has(y)}getAll(){return this._storage.size>0?(0,w.objectFromMap)(this._storage):null}get size(){return this._storage.size}resetModified(){this._modified&&(this._modified=!1,typeof this.onResetModified=="function"&&this.onResetModified())}get print(){return new _(this)}get serializable(){if(this._storage.size===0)return null;const y=new Map;for(const[D,M]of this._storage){const F=M instanceof U.AnnotationEditor?M.serialize():M;F&&y.set(D,F)}return y}static getHash(y){if(!y)return"";const D=new k.MurmurHash3_64;for(const[M,F]of y)D.update(`${M}:${JSON.stringify(F)}`);return D.hexdigest()}}r.AnnotationStorage=B;function P(){this._modified||(this._modified=!0,typeof this.onSetModified=="function"&&this.onSetModified())}var S=new WeakMap;class _ extends B{constructor(y){super(),x(this,S,{writable:!0,value:null}),n(this,S,structuredClone(y.serializable))}get print(){(0,w.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return a(this,S)}}r.PrintAnnotationStorage=_},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.AnnotationEditor=void 0;var w=m(132),U=m(1);function k(l,y,D){return y in l?Object.defineProperty(l,y,{value:D,enumerable:!0,configurable:!0,writable:!0}):l[y]=D,l}function x(l,y,D){a(l,y),y.set(l,D)}function a(l,y){if(y.has(l))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(l,y,D){var M=R(l,y,"set");return n(l,M,D),D}function n(l,y,D){if(y.set)y.set.call(l,D);else{if(!y.writable)throw new TypeError("attempted to set read only private field");y.value=D}}function c(l,y){var D=R(l,y,"get");return v(l,D)}function R(l,y,D){if(!y.has(l))throw new TypeError("attempted to "+D+" private field on non-instance");return y.get(l)}function v(l,y){return y.get?y.get.call(l):y.value}var e=new WeakMap,L=new WeakMap,O=new WeakMap,B=new WeakMap,P=new WeakMap,S=new WeakMap;class _{constructor(y){x(this,e,{writable:!0,value:this.focusin.bind(this)}),x(this,L,{writable:!0,value:this.focusout.bind(this)}),x(this,O,{writable:!0,value:!1}),x(this,B,{writable:!0,value:!1}),x(this,P,{writable:!0,value:!1}),x(this,S,{writable:!0,value:_._zIndex++}),this.constructor===_&&(0,U.unreachable)("Cannot initialize AnnotationEditor."),this.parent=y.parent,this.id=y.id,this.width=this.height=null,this.pageIndex=y.parent.pageIndex,this.name=y.name,this.div=null;const[D,M]=this.parent.viewportBaseDimensions;this.x=y.x/D,this.y=y.y/M,this.rotation=this.parent.viewport.rotation,this.isAttachedToDOM=!1}static get _defaultLineColor(){return(0,U.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=c(this,S)}focusin(y){c(this,O)?g(this,O,!1):this.parent.setSelected(this)}focusout(y){if(!this.isAttachedToDOM)return;const D=y.relatedTarget;D!=null&&D.closest(`#${this.id}`)||(y.preventDefault(),this.parent.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.parent.addToAnnotationStorage(this)}dragstart(y){const D=this.parent.div.getBoundingClientRect();this.startX=y.clientX-D.x,this.startY=y.clientY-D.y,y.dataTransfer.setData("text/plain",this.id),y.dataTransfer.effectAllowed="move"}setAt(y,D,M,F){const[N,G]=this.parent.viewportBaseDimensions;[M,F]=this.screenToPageTranslation(M,F),this.x=(y+M)/N,this.y=(D+F)/G,this.div.style.left=`${100*this.x}%`,this.div.style.top=`${100*this.y}%`}translate(y,D){const[M,F]=this.parent.viewportBaseDimensions;[y,D]=this.screenToPageTranslation(y,D),this.x+=y/M,this.y+=D/F,this.div.style.left=`${100*this.x}%`,this.div.style.top=`${100*this.y}%`}screenToPageTranslation(y,D){const{rotation:M}=this.parent.viewport;switch(M){case 90:return[D,-y];case 180:return[-y,-D];case 270:return[-D,y];default:return[y,D]}}setDims(y,D){const[M,F]=this.parent.viewportBaseDimensions;this.div.style.width=`${100*y/M}%`,this.div.style.height=`${100*D/F}%`}getInitialTranslation(){return[0,0]}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",c(this,e)),this.div.addEventListener("focusout",c(this,L));const[y,D]=this.getInitialTranslation();return this.translate(y,D),(0,w.bindEvents)(this,this.div,["dragstart","pointerdown"]),this.div}pointerdown(y){const D=w.KeyboardManager.platform.isMac;if(y.button!==0||y.ctrlKey&&D){y.preventDefault();return}y.ctrlKey&&!D||y.shiftKey||y.metaKey&&D?this.parent.toggleSelected(this):this.parent.setSelected(this),g(this,O,!0)}getRect(y,D){const[M,F]=this.parent.viewportBaseDimensions,[N,G]=this.parent.pageDimensions,W=N*y/M,J=G*D/F,Y=this.x*N,V=this.y*G,H=this.width*N,z=this.height*G;switch(this.rotation){case 0:return[Y+W,G-V-J-z,Y+W+H,G-V-J];case 90:return[Y+J,G-V+W,Y+J+z,G-V+W+H];case 180:return[Y-W-H,G-V+J,Y-W,G-V+J+z];case 270:return[Y-J-z,G-V-W-H,Y-J,G-V-W];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(y,D){const[M,F,N,G]=y,W=N-M,J=G-F;switch(this.rotation){case 0:return[M,D-G,W,J];case 90:return[M,D-F,J,W];case 180:return[N,D-F,W,J];case 270:return[N,D-G,J,W];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){g(this,P,!0)}disableEditMode(){g(this,P,!1)}isInEditMode(){return c(this,P)}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){var y;(y=this.div)===null||y===void 0||y.addEventListener("focusin",c(this,e))}serialize(){(0,U.unreachable)("An editor must be serializable")}static deserialize(y,D){const M=new this.prototype.constructor({parent:D,id:D.getNextId()});M.rotation=y.rotation;const[F,N]=D.pageDimensions,[G,W,J,Y]=M.getRectInCurrentCoords(y.rect,N);return M.x=G/F,M.y=W/N,M.width=J/F,M.height=Y/N,M}remove(){this.div.removeEventListener("focusin",c(this,e)),this.div.removeEventListener("focusout",c(this,L)),this.isEmpty()||this.commit(),this.parent.remove(this)}select(){var y;(y=this.div)===null||y===void 0||y.classList.add("selectedEditor")}unselect(){var y;(y=this.div)===null||y===void 0||y.classList.remove("selectedEditor")}updateParams(y,D){}disableEditing(){}enableEditing(){}get propertiesToUpdate(){return{}}get contentDiv(){return this.div}get isEditing(){return c(this,B)}set isEditing(y){g(this,B,y),y?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null)}}r.AnnotationEditor=_,k(_,"_colorManager",new w.ColorManager),k(_,"_zIndex",1)},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.KeyboardManager=r.CommandManager=r.ColorManager=r.AnnotationEditorUIManager=void 0,r.bindEvents=O,r.opacityToHex=B;var w=m(1),U=m(133);function k(Ve,$e,Ue){return $e in Ve?Object.defineProperty(Ve,$e,{value:Ue,enumerable:!0,configurable:!0,writable:!0}):Ve[$e]=Ue,Ve}function x(Ve,$e){n(Ve,$e),$e.add(Ve)}function a(Ve,$e,Ue){if(!$e.has(Ve))throw new TypeError("attempted to get private field on non-instance");return Ue}function g(Ve,$e,Ue){n(Ve,$e),$e.set(Ve,Ue)}function n(Ve,$e){if($e.has(Ve))throw new TypeError("Cannot initialize the same private elements twice on an object")}function c(Ve,$e,Ue){var He=e(Ve,$e,"set");return R(Ve,He,Ue),Ue}function R(Ve,$e,Ue){if($e.set)$e.set.call(Ve,Ue);else{if(!$e.writable)throw new TypeError("attempted to set read only private field");$e.value=Ue}}function v(Ve,$e){var Ue=e(Ve,$e,"get");return L(Ve,Ue)}function e(Ve,$e,Ue){if(!$e.has(Ve))throw new TypeError("attempted to "+Ue+" private field on non-instance");return $e.get(Ve)}function L(Ve,$e){return $e.get?$e.get.call(Ve):$e.value}function O(Ve,$e,Ue){for(const He of Ue)$e.addEventListener(He,Ve[He].bind(Ve))}function B(Ve){return Math.round(Math.min(255,Math.max(1,255*Ve))).toString(16).padStart(2,"0")}var P=new WeakMap;class S{constructor(){g(this,P,{writable:!0,value:0})}getId(){var $e,Ue;return`${w.AnnotationEditorPrefix}${c(this,P,($e=v(this,P),Ue=$e++,$e)),Ue}`}}var _=new WeakMap,l=new WeakMap,y=new WeakMap,D=new WeakMap;class M{constructor(){let $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:128;g(this,_,{writable:!0,value:[]}),g(this,l,{writable:!0,value:!1}),g(this,y,{writable:!0,value:void 0}),g(this,D,{writable:!0,value:-1}),c(this,y,$e)}add($e){let{cmd:Ue,undo:He,mustExec:Qe,type:Ze=NaN,overwriteIfSameType:et=!1,keepUndo:tt=!1}=$e;if(Qe&&Ue(),v(this,l))return;const je={cmd:Ue,undo:He,type:Ze};if(v(this,D)===-1){v(this,_).length>0&&(v(this,_).length=0),c(this,D,0),v(this,_).push(je);return}if(et&&v(this,_)[v(this,D)].type===Ze){tt&&(je.undo=v(this,_)[v(this,D)].undo),v(this,_)[v(this,D)]=je;return}const Je=v(this,D)+1;Je===v(this,y)?v(this,_).splice(0,1):(c(this,D,Je),JeUe.serialize())):c(this,W,[$e.serialize()]),c(this,W,v(this,W).filter(Ue=>!!Ue)),v(this,W).length===0&&c(this,W,null))}paste(){return v(this,W)}isEmpty(){return v(this,W)===null}destroy(){c(this,W,null)}}class Y{get _colors(){const $e=new Map([["CanvasText",null],["Canvas",null]]);return(0,U.getColorValues)($e),(0,w.shadow)(this,"_colors",$e)}convert($e){const Ue=(0,U.getRGB)($e);if(!window.matchMedia("(forced-colors: active)").matches)return Ue;for(const[He,Qe]of this._colors)if(Qe.every((Ze,et)=>Ze===Ue[et]))return Y._colorsMapping.get(He);return Ue}getHexCode($e){const Ue=this._colors.get($e);return Ue?w.Util.makeHexColor(...Ue):$e}}r.ColorManager=Y,k(Y,"_colorsMapping",new Map([["CanvasText",[0,0,0]],["Canvas",[255,255,255]]]));var V=new WeakMap,H=new WeakMap,z=new WeakMap,X=new WeakMap,q=new WeakMap,$=new WeakMap,fe=new WeakMap,Q=new WeakMap,ie=new WeakMap,Te=new WeakMap,me=new WeakMap,K=new WeakMap,ce=new WeakMap,de=new WeakMap,Z=new WeakMap,ae=new WeakMap,he=new WeakMap,we=new WeakSet,_e=new WeakSet,ye=new WeakSet,se=new WeakSet,Ie=new WeakSet,Ce=new WeakSet,oe=new WeakSet,pe=new WeakSet,xe=new WeakSet;class Ne{constructor($e,Ue){x(this,xe),x(this,pe),x(this,oe),x(this,Ce),x(this,Ie),x(this,se),x(this,ye),x(this,_e),x(this,we),g(this,V,{writable:!0,value:null}),g(this,H,{writable:!0,value:new Map}),g(this,z,{writable:!0,value:new Map}),g(this,X,{writable:!0,value:new J}),g(this,q,{writable:!0,value:new M}),g(this,$,{writable:!0,value:0}),g(this,fe,{writable:!0,value:null}),g(this,Q,{writable:!0,value:null}),g(this,ie,{writable:!0,value:new S}),g(this,Te,{writable:!0,value:!1}),g(this,me,{writable:!0,value:w.AnnotationEditorType.NONE}),g(this,K,{writable:!0,value:new Set}),g(this,ce,{writable:!0,value:this.keydown.bind(this)}),g(this,de,{writable:!0,value:this.onEditingAction.bind(this)}),g(this,Z,{writable:!0,value:this.onPageChanging.bind(this)}),g(this,ae,{writable:!0,value:{isEditing:!1,isEmpty:!0,hasEmptyClipboard:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1}}),g(this,he,{writable:!0,value:null}),c(this,he,$e),c(this,Q,Ue),v(this,Q)._on("editingaction",v(this,de)),v(this,Q)._on("pagechanging",v(this,Z))}destroy(){a(this,_e,De).call(this),v(this,Q)._off("editingaction",v(this,de)),v(this,Q)._off("pagechanging",v(this,Z));for(const $e of v(this,z).values())$e.destroy();v(this,z).clear(),v(this,H).clear(),c(this,V,null),v(this,K).clear(),v(this,X).destroy(),v(this,q).destroy()}onPageChanging($e){let{pageNumber:Ue}=$e;c(this,$,Ue-1)}focusMainContainer(){v(this,he).focus()}keydown($e){var Ue;(Ue=this.getActive())!==null&&Ue!==void 0&&Ue.shouldGetKeyboardEvents()||Ne._keyboardManager.exec(this,$e)}onEditingAction($e){["undo","redo","cut","copy","paste","delete","selectAll"].includes($e.name)&&this[$e.name]()}setEditingState($e){$e?(a(this,we,ke).call(this),a(this,ye,Fe).call(this,{isEditing:v(this,me)!==w.AnnotationEditorType.NONE,isEmpty:a(this,pe,Ee).call(this),hasSomethingToUndo:v(this,q).hasSomethingToUndo(),hasSomethingToRedo:v(this,q).hasSomethingToRedo(),hasSelectedEditor:!1,hasEmptyClipboard:v(this,X).isEmpty()})):(a(this,_e,De).call(this),a(this,ye,Fe).call(this,{isEditing:!1}))}registerEditorTypes($e){c(this,fe,$e);for(const Ue of v(this,fe))a(this,se,Pe).call(this,Ue.defaultPropertiesToUpdate)}getId(){return v(this,ie).getId()}addLayer($e){v(this,z).set($e.pageIndex,$e),v(this,Te)?$e.enable():$e.disable()}removeLayer($e){v(this,z).delete($e.pageIndex)}updateMode($e){if(c(this,me,$e),$e===w.AnnotationEditorType.NONE)this.setEditingState(!1),a(this,Ce,Le).call(this);else{this.setEditingState(!0),a(this,Ie,qe).call(this);for(const Ue of v(this,z).values())Ue.updateMode($e)}}updateToolbar($e){$e!==v(this,me)&&v(this,Q).dispatch("switchannotationeditormode",{source:this,mode:$e})}updateParams($e,Ue){for(const He of v(this,K))He.updateParams($e,Ue);for(const He of v(this,fe))He.updateDefaultParams($e,Ue)}getEditors($e){const Ue=[];for(const He of v(this,H).values())He.pageIndex===$e&&Ue.push(He);return Ue}getEditor($e){return v(this,H).get($e)}addEditor($e){v(this,H).set($e.id,$e)}removeEditor($e){v(this,H).delete($e.id),this.unselect($e)}setActiveEditor($e){v(this,V)!==$e&&(c(this,V,$e),$e&&a(this,se,Pe).call(this,$e.propertiesToUpdate))}toggleSelected($e){if(v(this,K).has($e)){v(this,K).delete($e),$e.unselect(),a(this,ye,Fe).call(this,{hasSelectedEditor:this.hasSelection});return}v(this,K).add($e),$e.select(),a(this,se,Pe).call(this,$e.propertiesToUpdate),a(this,ye,Fe).call(this,{hasSelectedEditor:!0})}setSelected($e){for(const Ue of v(this,K))Ue!==$e&&Ue.unselect();v(this,K).clear(),v(this,K).add($e),$e.select(),a(this,se,Pe).call(this,$e.propertiesToUpdate),a(this,ye,Fe).call(this,{hasSelectedEditor:!0})}isSelected($e){return v(this,K).has($e)}unselect($e){$e.unselect(),v(this,K).delete($e),a(this,ye,Fe).call(this,{hasSelectedEditor:this.hasSelection})}get hasSelection(){return v(this,K).size!==0}undo(){v(this,q).undo(),a(this,ye,Fe).call(this,{hasSomethingToUndo:v(this,q).hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:a(this,pe,Ee).call(this)})}redo(){v(this,q).redo(),a(this,ye,Fe).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:v(this,q).hasSomethingToRedo(),isEmpty:a(this,pe,Ee).call(this)})}addCommands($e){v(this,q).add($e),a(this,ye,Fe).call(this,{hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:a(this,pe,Ee).call(this)})}delete(){if(v(this,V)&&v(this,V).commitOrRemove(),!this.hasSelection)return;const $e=[...v(this,K)],Ue=()=>{for(const Qe of $e)Qe.remove()},He=()=>{for(const Qe of $e)a(this,oe,Oe).call(this,Qe)};this.addCommands({cmd:Ue,undo:He,mustExec:!0})}copy(){if(v(this,V)&&v(this,V).commitOrRemove(),this.hasSelection){const $e=[];for(const Ue of v(this,K))Ue.isEmpty()||$e.push(Ue);if($e.length===0)return;v(this,X).copy($e),a(this,ye,Fe).call(this,{hasEmptyClipboard:!1})}}cut(){this.copy(),this.delete()}paste(){if(v(this,X).isEmpty())return;this.unselectAll();const $e=v(this,z).get(v(this,$)),Ue=v(this,X).paste().map(Ze=>$e.deserialize(Ze)),He=()=>{for(const Ze of Ue)a(this,oe,Oe).call(this,Ze);a(this,xe,Ae).call(this,Ue)},Qe=()=>{for(const Ze of Ue)Ze.remove()};this.addCommands({cmd:He,undo:Qe,mustExec:!0})}selectAll(){for(const $e of v(this,K))$e.commit();a(this,xe,Ae).call(this,v(this,H).values())}unselectAll(){if(v(this,V)){v(this,V).commitOrRemove();return}if(a(this,xe,Ae).size!==0){for(const $e of v(this,K))$e.unselect();v(this,K).clear(),a(this,ye,Fe).call(this,{hasSelectedEditor:!1})}}isActive($e){return v(this,V)===$e}getActive(){return v(this,V)}getMode(){return v(this,me)}}r.AnnotationEditorUIManager=Ne;function ke(){v(this,he).addEventListener("keydown",v(this,ce))}function De(){v(this,he).removeEventListener("keydown",v(this,ce))}function Fe(Ve){Object.entries(Ve).some(Ue=>{let[He,Qe]=Ue;return v(this,ae)[He]!==Qe})&&v(this,Q).dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(v(this,ae),Ve)})}function Pe(Ve){v(this,Q).dispatch("annotationeditorparamschanged",{source:this,details:Ve})}function qe(){if(!v(this,Te)){c(this,Te,!0);for(const Ve of v(this,z).values())Ve.enable()}}function Le(){if(this.unselectAll(),v(this,Te)){c(this,Te,!1);for(const Ve of v(this,z).values())Ve.disable()}}function Oe(Ve){const $e=v(this,z).get(Ve.pageIndex);$e?$e.addOrRebuild(Ve):this.addEditor(Ve)}function Ee(){if(v(this,H).size===0)return!0;if(v(this,H).size===1)for(const Ve of v(this,H).values())return Ve.isEmpty();return!1}function Ae(Ve){v(this,K).clear();for(const $e of Ve)$e.isEmpty()||(v(this,K).add($e),$e.select());a(this,ye,Fe).call(this,{hasSelectedEditor:!0})}k(Ne,"_keyboardManager",new N([[["ctrl+a","mac+meta+a"],Ne.prototype.selectAll],[["ctrl+c","mac+meta+c"],Ne.prototype.copy],[["ctrl+v","mac+meta+v"],Ne.prototype.paste],[["ctrl+x","mac+meta+x"],Ne.prototype.cut],[["ctrl+z","mac+meta+z"],Ne.prototype.undo],[["ctrl+y","ctrl+shift+Z","mac+meta+shift+Z"],Ne.prototype.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete"],Ne.prototype.delete],[["Escape","mac+Escape"],Ne.prototype.unselectAll]]))},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.StatTimer=r.RenderingCancelledException=r.PixelsPerInch=r.PageViewport=r.PDFDateString=r.DOMStandardFontDataFactory=r.DOMSVGFactory=r.DOMCanvasFactory=r.DOMCMapReaderFactory=r.AnnotationPrefix=void 0,r.deprecated=M,r.getColorValues=J,r.getCurrentTransform=Y,r.getCurrentTransformInverse=V,r.getFilenameFromUrl=S,r.getPdfFilenameFromUrl=_,r.getRGB=W,r.getXfaPageViewport=G,r.isDataScheme=B,r.isPdfFile=P,r.isValidFetchUrl=y,r.loadScript=D;var w=m(134),U=m(1);function k(H,z,X){return z in H?Object.defineProperty(H,z,{value:X,enumerable:!0,configurable:!0,writable:!0}):H[z]=X,H}const x="http://www.w3.org/2000/svg",a="pdfjs_internal_id_";r.AnnotationPrefix=a;class g{}r.PixelsPerInch=g,k(g,"CSS",96),k(g,"PDF",72),k(g,"PDF_TO_CSS_UNITS",g.CSS/g.PDF);class n extends w.BaseCanvasFactory{constructor(){let{ownerDocument:z=globalThis.document}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(),this._document=z}_createCanvas(z,X){const q=this._document.createElement("canvas");return q.width=z,q.height=X,q}}r.DOMCanvasFactory=n;async function c(H){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(y(H,document.baseURI)){const X=await fetch(H);if(!X.ok)throw new Error(X.statusText);return z?new Uint8Array(await X.arrayBuffer()):(0,U.stringToBytes)(await X.text())}return new Promise((X,q)=>{const $=new XMLHttpRequest;$.open("GET",H,!0),z&&($.responseType="arraybuffer"),$.onreadystatechange=()=>{if($.readyState===XMLHttpRequest.DONE){if($.status===200||$.status===0){let fe;if(z&&$.response?fe=new Uint8Array($.response):!z&&$.responseText&&(fe=(0,U.stringToBytes)($.responseText)),fe){X(fe);return}}q(new Error($.statusText))}},$.send(null)})}class R extends w.BaseCMapReaderFactory{_fetchData(z,X){return c(z,this.isCompressed).then(q=>({cMapData:q,compressionType:X}))}}r.DOMCMapReaderFactory=R;class v extends w.BaseStandardFontDataFactory{_fetchData(z){return c(z,!0)}}r.DOMStandardFontDataFactory=v;class e extends w.BaseSVGFactory{_createSVG(z){return document.createElementNS(x,z)}}r.DOMSVGFactory=e;class L{constructor(z){let{viewBox:X,scale:q,rotation:$,offsetX:fe=0,offsetY:Q=0,dontFlip:ie=!1}=z;this.viewBox=X,this.scale=q,this.rotation=$,this.offsetX=fe,this.offsetY=Q;const Te=(X[2]+X[0])/2,me=(X[3]+X[1])/2;let K,ce,de,Z;switch($%=360,$<0&&($+=360),$){case 180:K=-1,ce=0,de=0,Z=1;break;case 90:K=0,ce=1,de=1,Z=0;break;case 270:K=0,ce=-1,de=-1,Z=0;break;case 0:K=1,ce=0,de=0,Z=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}ie&&(de=-de,Z=-Z);let ae,he,we,_e;K===0?(ae=Math.abs(me-X[1])*q+fe,he=Math.abs(Te-X[0])*q+Q,we=Math.abs(X[3]-X[1])*q,_e=Math.abs(X[2]-X[0])*q):(ae=Math.abs(Te-X[0])*q+fe,he=Math.abs(me-X[1])*q+Q,we=Math.abs(X[2]-X[0])*q,_e=Math.abs(X[3]-X[1])*q),this.transform=[K*q,ce*q,de*q,Z*q,ae-K*q*Te-de*q*me,he-ce*q*Te-Z*q*me],this.width=we,this.height=_e}clone(){let{scale:z=this.scale,rotation:X=this.rotation,offsetX:q=this.offsetX,offsetY:$=this.offsetY,dontFlip:fe=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new L({viewBox:this.viewBox.slice(),scale:z,rotation:X,offsetX:q,offsetY:$,dontFlip:fe})}convertToViewportPoint(z,X){return U.Util.applyTransform([z,X],this.transform)}convertToViewportRectangle(z){const X=U.Util.applyTransform([z[0],z[1]],this.transform),q=U.Util.applyTransform([z[2],z[3]],this.transform);return[X[0],X[1],q[0],q[1]]}convertToPdfPoint(z,X){return U.Util.applyInverseTransform([z,X],this.transform)}}r.PageViewport=L;class O extends U.BaseException{constructor(z,X){super(z,"RenderingCancelledException"),this.type=X}}r.RenderingCancelledException=O;function B(H){const z=H.length;let X=0;for(;X0?z:H.length,X>0?X:H.length);return H.substring(H.lastIndexOf("/",q)+1,q)}function _(H){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"document.pdf";if(typeof H!="string")return z;if(B(H))return(0,U.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),z;const X=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,q=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,$=X.exec(H);let fe=q.exec($[1])||q.exec($[2])||q.exec($[3]);if(fe&&(fe=fe[0],fe.includes("%")))try{fe=q.exec(decodeURIComponent(fe))[0]}catch{}return fe||z}class l{constructor(){this.started=Object.create(null),this.times=[]}time(z){z in this.started&&(0,U.warn)(`Timer is already running for ${z}`),this.started[z]=Date.now()}timeEnd(z){z in this.started||(0,U.warn)(`Timer has not been started for ${z}`),this.times.push({name:z,start:this.started[z],end:Date.now()}),delete this.started[z]}toString(){const z=[];let X=0;for(const q of this.times){const $=q.name;$.length>X&&(X=$.length)}for(const q of this.times){const $=q.end-q.start;z.push(`${q.name.padEnd(X)} ${$}ms `)}return z.join("")}}r.StatTimer=l;function y(H,z){try{const{protocol:X}=z?new URL(H,z):new URL(H);return X==="http:"||X==="https:"}catch{return!1}}function D(H){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return new Promise((X,q)=>{const $=document.createElement("script");$.src=H,$.onload=function(fe){z&&$.remove(),X(fe)},$.onerror=function(){q(new Error(`Cannot load script at: ${$.src}`))},(document.head||document.documentElement).append($)})}function M(H){console.log("Deprecated API usage: "+H)}let F;class N{static toDateObject(z){if(!z||typeof z!="string")return null;F||(F=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const X=F.exec(z);if(!X)return null;const q=parseInt(X[1],10);let $=parseInt(X[2],10);$=$>=1&&$<=12?$-1:0;let fe=parseInt(X[3],10);fe=fe>=1&&fe<=31?fe:1;let Q=parseInt(X[4],10);Q=Q>=0&&Q<=23?Q:0;let ie=parseInt(X[5],10);ie=ie>=0&&ie<=59?ie:0;let Te=parseInt(X[6],10);Te=Te>=0&&Te<=59?Te:0;const me=X[7]||"Z";let K=parseInt(X[8],10);K=K>=0&&K<=23?K:0;let ce=parseInt(X[9],10)||0;return ce=ce>=0&&ce<=59?ce:0,me==="-"?(Q+=K,ie+=ce):me==="+"&&(Q-=K,ie-=ce),new Date(Date.UTC(q,$,fe,Q,ie,Te))}}r.PDFDateString=N;function G(H,z){let{scale:X=1,rotation:q=0}=z;const{width:$,height:fe}=H.attributes.style,Q=[0,0,parseInt($),parseInt(fe)];return new L({viewBox:Q,scale:X,rotation:q})}function W(H){if(H.startsWith("#")){const z=parseInt(H.slice(1),16);return[(z&16711680)>>16,(z&65280)>>8,z&255]}return H.startsWith("rgb(")?H.slice(4,-1).split(",").map(z=>parseInt(z)):H.startsWith("rgba(")?H.slice(5,-1).split(",").map(z=>parseInt(z)).slice(0,3):((0,U.warn)(`Not a valid color format: "${H}"`),[0,0,0])}function J(H){const z=document.createElement("span");z.style.visibility="hidden",document.body.append(z);for(const X of H.keys()){z.style.color=X;const q=window.getComputedStyle(z).color;H.set(X,W(q))}z.remove()}function Y(H){const{a:z,b:X,c:q,d:$,e:fe,f:Q}=H.getTransform();return[z,X,q,$,fe,Q]}function V(H){const{a:z,b:X,c:q,d:$,e:fe,f:Q}=H.getTransform().invertSelf();return[z,X,q,$,fe,Q]}},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BaseStandardFontDataFactory=r.BaseSVGFactory=r.BaseCanvasFactory=r.BaseCMapReaderFactory=void 0;var w=m(1);class U{constructor(){this.constructor===U&&(0,w.unreachable)("Cannot initialize BaseCanvasFactory.")}create(n,c){if(n<=0||c<=0)throw new Error("Invalid canvas size");const R=this._createCanvas(n,c);return{canvas:R,context:R.getContext("2d")}}reset(n,c,R){if(!n.canvas)throw new Error("Canvas is not specified");if(c<=0||R<=0)throw new Error("Invalid canvas size");n.canvas.width=c,n.canvas.height=R}destroy(n){if(!n.canvas)throw new Error("Canvas is not specified");n.canvas.width=0,n.canvas.height=0,n.canvas=null,n.context=null}_createCanvas(n,c){(0,w.unreachable)("Abstract method `_createCanvas` called.")}}r.BaseCanvasFactory=U;class k{constructor(n){let{baseUrl:c=null,isCompressed:R=!1}=n;this.constructor===k&&(0,w.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=c,this.isCompressed=R}async fetch(n){let{name:c}=n;if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!c)throw new Error("CMap name must be specified.");const R=this.baseUrl+c+(this.isCompressed?".bcmap":""),v=this.isCompressed?w.CMapCompressionType.BINARY:w.CMapCompressionType.NONE;return this._fetchData(R,v).catch(e=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${R}`)})}_fetchData(n,c){(0,w.unreachable)("Abstract method `_fetchData` called.")}}r.BaseCMapReaderFactory=k;class x{constructor(n){let{baseUrl:c=null}=n;this.constructor===x&&(0,w.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=c}async fetch(n){let{filename:c}=n;if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!c)throw new Error("Font filename must be specified.");const R=`${this.baseUrl}${c}`;return this._fetchData(R).catch(v=>{throw new Error(`Unable to load font data at: ${R}`)})}_fetchData(n){(0,w.unreachable)("Abstract method `_fetchData` called.")}}r.BaseStandardFontDataFactory=x;class a{constructor(){this.constructor===a&&(0,w.unreachable)("Cannot initialize BaseSVGFactory.")}create(n,c){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(n<=0||c<=0)throw new Error("Invalid SVG dimensions");const v=this._createSVG("svg:svg");return v.setAttribute("version","1.1"),R||(v.setAttribute("width",`${n}px`),v.setAttribute("height",`${c}px`)),v.setAttribute("preserveAspectRatio","none"),v.setAttribute("viewBox",`0 0 ${n} ${c}`),v}createElement(n){if(typeof n!="string")throw new Error("Invalid SVG element type");return this._createSVG(n)}_createSVG(n){(0,w.unreachable)("Abstract method `_createSVG` called.")}}r.BaseSVGFactory=a},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.MurmurHash3_64=void 0;var w=m(1);const U=3285377520,k=4294901760,x=65535;class a{constructor(n){this.h1=n?n&4294967295:U,this.h2=n?n&4294967295:U}update(n){let c,R;if(typeof n=="string"){c=new Uint8Array(n.length*2),R=0;for(let M=0,F=n.length;M>>8,c[R++]=N&255)}}else if((0,w.isArrayBuffer)(n))c=n.slice(),R=c.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const v=R>>2,e=R-v*4,L=new Uint32Array(c.buffer,0,v);let O=0,B=0,P=this.h1,S=this.h2;const _=3432918353,l=461845907,y=_&x,D=l&x;for(let M=0;M>>17,O=O*l&k|O*D&x,P^=O,P=P<<13|P>>>19,P=P*5+3864292196):(B=L[M],B=B*_&k|B*y&x,B=B<<15|B>>>17,B=B*l&k|B*D&x,S^=B,S=S<<13|S>>>19,S=S*5+3864292196);switch(O=0,e){case 3:O^=c[v*4+2]<<16;case 2:O^=c[v*4+1]<<8;case 1:O^=c[v*4],O=O*_&k|O*y&x,O=O<<15|O>>>17,O=O*l&k|O*D&x,v&1?P^=O:S^=O}this.h1=P,this.h2=S}hexdigest(){let n=this.h1,c=this.h2;n^=c>>>1,n=n*3981806797&k|n*36045&x,c=c*4283543511&k|((c<<16|n>>>16)*2950163797&k)>>>16,n^=c>>>1,n=n*444984403&k|n*60499&x,c=c*3301882366&k|((c<<16|n>>>16)*3120437893&k)>>>16,n^=c>>>1;const R=(n>>>0).toString(16),v=(c>>>0).toString(16);return R.padStart(8,"0")+v.padStart(8,"0")}}r.MurmurHash3_64=a},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.FontLoader=r.FontFaceObject=void 0;var w=m(1);class U{constructor(g){let{docId:n,onUnsupportedFeature:c,ownerDocument:R=globalThis.document,styleElement:v=null}=g;this.constructor===U&&(0,w.unreachable)("Cannot initialize BaseFontLoader."),this.docId=n,this._onUnsupportedFeature=c,this._document=R,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(g){this.nativeFontFaces.push(g),this._document.fonts.add(g)}insertRule(g){let n=this.styleElement;n||(n=this.styleElement=this._document.createElement("style"),n.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,this._document.documentElement.getElementsByTagName("head")[0].append(n));const c=n.sheet;c.insertRule(g,c.cssRules.length)}clear(){for(const g of this.nativeFontFaces)this._document.fonts.delete(g);this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(g){if(g.attached||g.missingFile)return;if(g.attached=!0,this.isFontLoadingAPISupported){const c=g.createNativeFontFace();if(c){this.addNativeFontFace(c);try{await c.loaded}catch(R){throw this._onUnsupportedFeature({featureId:w.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,w.warn)(`Failed to load font '${c.family}': '${R}'.`),g.disableFontFace=!0,R}}return}const n=g.createFontFaceRule();if(n){if(this.insertRule(n),this.isSyncFontLoadingSupported)return;await new Promise(c=>{const R=this._queueLoadingCallback(c);this._prepareFontLoadEvent([n],[g],R)})}}_queueLoadingCallback(g){(0,w.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){var g;const n=!!((g=this._document)!==null&&g!==void 0&&g.fonts);return(0,w.shadow)(this,"isFontLoadingAPISupported",n)}get isSyncFontLoadingSupported(){(0,w.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,w.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(g,n,c){(0,w.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let k;r.FontLoader=k,r.FontLoader=k=class extends U{constructor(g){super(g),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let g=!1;if(typeof navigator>"u")g=!0;else{const n=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);(n==null?void 0:n[1])>=14&&(g=!0)}return(0,w.shadow)(this,"isSyncFontLoadingSupported",g)}_queueLoadingCallback(g){function n(){for((0,w.assert)(!R.done,"completeRequest() cannot be called twice."),R.done=!0;c.requests.length>0&&c.requests[0].done;){const v=c.requests.shift();setTimeout(v.callback,0)}}const c=this.loadingContext,R={id:`pdfjs-font-loading-${c.nextRequestId++}`,done:!1,complete:n,callback:g};return c.requests.push(R),R}get _loadTestFont(){const g=function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};return(0,w.shadow)(this,"_loadTestFont",g())}_prepareFontLoadEvent(g,n,c){function R(Y,V){return Y.charCodeAt(V)<<24|Y.charCodeAt(V+1)<<16|Y.charCodeAt(V+2)<<8|Y.charCodeAt(V+3)&255}function v(Y,V,H,z){const X=Y.substring(0,V),q=Y.substring(V+H);return X+z+q}let e,L;const O=this._document.createElement("canvas");O.width=1,O.height=1;const B=O.getContext("2d");let P=0;function S(Y,V){if(P++,P>30){(0,w.warn)("Load test font never loaded."),V();return}if(B.font="30px "+Y,B.fillText(".",0,20),B.getImageData(0,0,1,1).data[3]>0){V();return}setTimeout(S.bind(null,Y,V))}const _=`lt${Date.now()}${this.loadTestFontId++}`;let l=this._loadTestFont;l=v(l,976,_.length,_);const D=16,M=1482184792;let F=R(l,D);for(e=0,L=_.length-3;e{J.remove(),c.complete()})}};class x{constructor(g,n){let{isEvalSupported:c=!0,disableFontFace:R=!1,ignoreErrors:v=!1,onUnsupportedFeature:e,fontRegistry:L=null}=n;this.compiledGlyphs=Object.create(null);for(const O in g)this[O]=g[O];this.isEvalSupported=c!==!1,this.disableFontFace=R===!0,this.ignoreErrors=v===!0,this._onUnsupportedFeature=e,this.fontRegistry=L}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let g;if(!this.cssFontInfo)g=new FontFace(this.loadedName,this.data,{});else{const n={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(n.style=`oblique ${this.cssFontInfo.italicAngle}deg`),g=new FontFace(this.cssFontInfo.fontFamily,this.data,n)}return this.fontRegistry&&this.fontRegistry.registerFont(this),g}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const g=(0,w.bytesToString)(this.data),n=`url(data:${this.mimetype};base64,${btoa(g)});`;let c;if(!this.cssFontInfo)c=`@font-face {font-family:"${this.loadedName}";src:${n}}`;else{let R=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(R+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),c=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${R}src:${n}}`}return this.fontRegistry&&this.fontRegistry.registerFont(this,n),c}getPathGenerator(g,n){if(this.compiledGlyphs[n]!==void 0)return this.compiledGlyphs[n];let c;try{c=g.get(this.loadedName+"_path_"+n)}catch(R){if(!this.ignoreErrors)throw R;return this._onUnsupportedFeature({featureId:w.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,w.warn)(`getPathGenerator - ignoring character: "${R}".`),this.compiledGlyphs[n]=function(v,e){}}if(this.isEvalSupported&&w.FeatureTest.isEvalSupported){const R=[];for(const v of c){const e=v.args!==void 0?v.args.join(","):"";R.push("c.",v.cmd,"(",e,`); `)}return this.compiledGlyphs[n]=new Function("c","size",R.join(""))}return this.compiledGlyphs[n]=function(R,v){for(const e of c)e.cmd==="scale"&&(e.args=[v,-v]),R[e.cmd].apply(R,e.args)}}}r.FontFaceObject=x},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CanvasGraphics=void 0;var w=m(133),U=m(1),k=m(138),x=m(139),a=m(3);function g(me,K){n(me,K),K.add(me)}function n(me,K){if(K.has(me))throw new TypeError("Cannot initialize the same private elements twice on an object")}function c(me,K,ce){if(!K.has(me))throw new TypeError("attempted to get private field on non-instance");return ce}const R=16,v=100,e=4096,L=15,O=10,B=a.isNodeJS&&typeof Path2D>"u"?-1:1e3,P=16;function S(me,K){if(me._removeMirroring)throw new Error("Context is already forwarding operations.");me.__originalSave=me.save,me.__originalRestore=me.restore,me.__originalRotate=me.rotate,me.__originalScale=me.scale,me.__originalTranslate=me.translate,me.__originalTransform=me.transform,me.__originalSetTransform=me.setTransform,me.__originalResetTransform=me.resetTransform,me.__originalClip=me.clip,me.__originalMoveTo=me.moveTo,me.__originalLineTo=me.lineTo,me.__originalBezierCurveTo=me.bezierCurveTo,me.__originalRect=me.rect,me.__originalClosePath=me.closePath,me.__originalBeginPath=me.beginPath,me._removeMirroring=()=>{me.save=me.__originalSave,me.restore=me.__originalRestore,me.rotate=me.__originalRotate,me.scale=me.__originalScale,me.translate=me.__originalTranslate,me.transform=me.__originalTransform,me.setTransform=me.__originalSetTransform,me.resetTransform=me.__originalResetTransform,me.clip=me.__originalClip,me.moveTo=me.__originalMoveTo,me.lineTo=me.__originalLineTo,me.bezierCurveTo=me.__originalBezierCurveTo,me.rect=me.__originalRect,me.closePath=me.__originalClosePath,me.beginPath=me.__originalBeginPath,delete me._removeMirroring},me.save=function(){K.save(),this.__originalSave()},me.restore=function(){K.restore(),this.__originalRestore()},me.translate=function(de,Z){K.translate(de,Z),this.__originalTranslate(de,Z)},me.scale=function(de,Z){K.scale(de,Z),this.__originalScale(de,Z)},me.transform=function(de,Z,ae,he,we,_e){K.transform(de,Z,ae,he,we,_e),this.__originalTransform(de,Z,ae,he,we,_e)},me.setTransform=function(de,Z,ae,he,we,_e){K.setTransform(de,Z,ae,he,we,_e),this.__originalSetTransform(de,Z,ae,he,we,_e)},me.resetTransform=function(){K.resetTransform(),this.__originalResetTransform()},me.rotate=function(de){K.rotate(de),this.__originalRotate(de)},me.clip=function(de){K.clip(de),this.__originalClip(de)},me.moveTo=function(ce,de){K.moveTo(ce,de),this.__originalMoveTo(ce,de)},me.lineTo=function(ce,de){K.lineTo(ce,de),this.__originalLineTo(ce,de)},me.bezierCurveTo=function(ce,de,Z,ae,he,we){K.bezierCurveTo(ce,de,Z,ae,he,we),this.__originalBezierCurveTo(ce,de,Z,ae,he,we)},me.rect=function(ce,de,Z,ae){K.rect(ce,de,Z,ae),this.__originalRect(ce,de,Z,ae)},me.closePath=function(){K.closePath(),this.__originalClosePath()},me.beginPath=function(){K.beginPath(),this.__originalBeginPath()}}class _{constructor(K){this.canvasFactory=K,this.cache=Object.create(null)}getCanvas(K,ce,de){let Z;return this.cache[K]!==void 0?(Z=this.cache[K],this.canvasFactory.reset(Z,ce,de)):(Z=this.canvasFactory.create(ce,de),this.cache[K]=Z),Z}delete(K){delete this.cache[K]}clear(){for(const K in this.cache){const ce=this.cache[K];this.canvasFactory.destroy(ce),delete this.cache[K]}}}function l(me,K,ce,de,Z,ae,he,we,_e,ye){const[se,Ie,Ce,oe,pe,xe]=(0,w.getCurrentTransform)(me);if(Ie===0&&Ce===0){const De=he*se+pe,Fe=Math.round(De),Pe=we*oe+xe,qe=Math.round(Pe),Le=(he+_e)*se+pe,Oe=Math.abs(Math.round(Le)-Fe)||1,Ee=(we+ye)*oe+xe,Ae=Math.abs(Math.round(Ee)-qe)||1;return me.setTransform(Math.sign(se),0,0,Math.sign(oe),Fe,qe),me.drawImage(K,ce,de,Z,ae,0,0,Oe,Ae),me.setTransform(se,Ie,Ce,oe,pe,xe),[Oe,Ae]}if(se===0&&oe===0){const De=we*Ce+pe,Fe=Math.round(De),Pe=he*Ie+xe,qe=Math.round(Pe),Le=(we+ye)*Ce+pe,Oe=Math.abs(Math.round(Le)-Fe)||1,Ee=(he+_e)*Ie+xe,Ae=Math.abs(Math.round(Ee)-qe)||1;return me.setTransform(0,Math.sign(Ie),Math.sign(Ce),0,Fe,qe),me.drawImage(K,ce,de,Z,ae,0,0,Ae,Oe),me.setTransform(se,Ie,Ce,oe,pe,xe),[Ae,Oe]}me.drawImage(K,ce,de,Z,ae,he,we,_e,ye);const Ne=Math.hypot(se,Ie),ke=Math.hypot(Ce,oe);return[Ne*_e,ke*ye]}function y(me){const{width:K,height:ce}=me;if(K>B||ce>B)return null;const de=1e3,Z=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),ae=K+1;let he=new Uint8Array(ae*(ce+1)),we,_e,ye;const se=K+7&-8;let Ie=new Uint8Array(se*ce),Ce=0;for(const ke of me.data){let De=128;for(;De>0;)Ie[Ce++]=ke&De?0:255,De>>=1}let oe=0;for(Ce=0,Ie[Ce]!==0&&(he[0]=1,++oe),_e=1;_e>2)+(Ie[Ce+1]?4:0)+(Ie[Ce-se+1]?8:0),Z[ke]&&(he[ye+_e]=Z[ke],++oe),Ce++;if(Ie[Ce-se]!==Ie[Ce]&&(he[ye+_e]=Ie[Ce]?2:4,++oe),oe>de)return null}for(Ce=se*(ce-1),ye=we*ae,Ie[Ce]!==0&&(he[ye]=8,++oe),_e=1;_ede)return null;const pe=new Int32Array([0,ae,-1,0,-ae,0,0,0,1]),xe=new Path2D;for(we=0;oe&&we<=ce;we++){let ke=we*ae;const De=ke+K;for(;ke>4,he[ke]&=Pe>>2|Pe<<2),xe.lineTo(ke%ae,ke/ae|0),he[ke]||--oe}while(Fe!==ke);--we}return Ie=null,he=null,function(ke){ke.save(),ke.scale(1/K,-1/ce),ke.translate(0,-ce),ke.fill(xe),ke.beginPath(),ke.restore()}}class D{constructor(K,ce){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=U.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=U.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=U.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,K,ce])}clone(){const K=Object.create(this);return K.clipBox=this.clipBox.slice(),K}setCurrentPoint(K,ce){this.x=K,this.y=ce}updatePathMinMax(K,ce,de){[ce,de]=U.Util.applyTransform([ce,de],K),this.minX=Math.min(this.minX,ce),this.minY=Math.min(this.minY,de),this.maxX=Math.max(this.maxX,ce),this.maxY=Math.max(this.maxY,de)}updateRectMinMax(K,ce){const de=U.Util.applyTransform(ce,K),Z=U.Util.applyTransform(ce.slice(2),K);this.minX=Math.min(this.minX,de[0],Z[0]),this.minY=Math.min(this.minY,de[1],Z[1]),this.maxX=Math.max(this.maxX,de[0],Z[0]),this.maxY=Math.max(this.maxY,de[1],Z[1])}updateScalingPathMinMax(K,ce){U.Util.scaleMinMax(K,ce),this.minX=Math.min(this.minX,ce[0]),this.maxX=Math.max(this.maxX,ce[1]),this.minY=Math.min(this.minY,ce[2]),this.maxY=Math.max(this.maxY,ce[3])}updateCurvePathMinMax(K,ce,de,Z,ae,he,we,_e,ye,se){const Ie=U.Util.bezierBoundingBox(ce,de,Z,ae,he,we,_e,ye);if(se){se[0]=Math.min(se[0],Ie[0],Ie[2]),se[1]=Math.max(se[1],Ie[0],Ie[2]),se[2]=Math.min(se[2],Ie[1],Ie[3]),se[3]=Math.max(se[3],Ie[1],Ie[3]);return}this.updateRectMinMax(K,Ie)}getPathBoundingBox(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:k.PathType.FILL,ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const de=[this.minX,this.minY,this.maxX,this.maxY];if(K===k.PathType.STROKE){ce||(0,U.unreachable)("Stroke bounding box must include transform.");const Z=U.Util.singularValueDecompose2dScale(ce),ae=Z[0]*this.lineWidth/2,he=Z[1]*this.lineWidth/2;de[0]-=ae,de[1]-=he,de[2]+=ae,de[3]+=he}return de}updateClipFromPath(){const K=U.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(K||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(K){this.clipBox=K,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:k.PathType.FILL,ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return U.Util.intersect(this.clipBox,this.getPathBoundingBox(K,ce))}}function M(me,K){let ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(typeof ImageData<"u"&&K instanceof ImageData){me.putImageData(K,0,0);return}const de=K.height,Z=K.width,ae=de%P,he=(de-ae)/P,we=ae===0?he:he+1,_e=me.createImageData(Z,P);let ye=0,se;const Ie=K.data,Ce=_e.data;let oe,pe,xe,Ne,ke,De,Fe,Pe;if(ce)switch(ce.length){case 1:ke=ce[0],De=ce[0],Fe=ce[0],Pe=ce[0];break;case 4:ke=ce[0],De=ce[1],Fe=ce[2],Pe=ce[3];break}if(K.kind===U.ImageKind.GRAYSCALE_1BPP){const qe=Ie.byteLength,Le=new Uint32Array(Ce.buffer,0,Ce.byteLength>>2),Oe=Le.length,Ee=Z+7>>3;let Ae=4294967295,Ve=U.FeatureTest.isLittleEndian?4278190080:255;for(Pe&&Pe[0]===255&&Pe[255]===0&&([Ae,Ve]=[Ve,Ae]),oe=0;oeEe?Z:$e*8-7,Qe=He&-8;let Ze=0,et=0;for(;Ue>=1}for(;se=he&&(xe=ae,Ne=Z*xe),se=0,pe=Ne;pe--;)Ce[se++]=Ie[ye++],Ce[se++]=Ie[ye++],Ce[se++]=Ie[ye++],Ce[se++]=255;if(qe)for(let Le=0;Le>8,me[ae-2]=me[ae-2]*he+ce*we>>8,me[ae-1]=me[ae-1]*he+de*we>>8}}}function J(me,K,ce){const de=me.length,Z=1/255;for(let ae=3;ae>8]>>8:K[Z]*ae>>16}}function V(me,K,ce,de,Z,ae,he,we,_e,ye,se){const Ie=!!ae,Ce=Ie?ae[0]:0,oe=Ie?ae[1]:0,pe=Ie?ae[2]:0;let xe;Z==="Luminosity"?xe=Y:xe=J;const ke=Math.min(de,Math.ceil(1048576/ce));for(let De=0;De1&&arguments[1]!==void 0?arguments[1]:null;return typeof K=="string"?K.startsWith("g_")?this.commonObjs.get(K):this.objs.get(K):ce}beginDrawing(K){let{transform:ce,viewport:de,transparency:Z=!1,background:ae=null}=K;const he=this.ctx.canvas.width,we=this.ctx.canvas.height,_e=ae||"#ffffff";if(this.ctx.save(),this.foregroundColor&&this.backgroundColor){this.ctx.fillStyle=this.foregroundColor;const ye=this.foregroundColor=this.ctx.fillStyle;this.ctx.fillStyle=this.backgroundColor;const se=this.backgroundColor=this.ctx.fillStyle;let Ie=!0,Ce=_e;if(this.ctx.fillStyle=_e,Ce=this.ctx.fillStyle,Ie=typeof Ce=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Ce),ye==="#000000"&&se==="#ffffff"||ye===se||!Ie)this.foregroundColor=this.backgroundColor=null;else{const[oe,pe,xe]=(0,w.getRGB)(Ce),Ne=De=>(De/=255,De<=.03928?De/12.92:((De+.055)/1.055)**2.4),ke=Math.round(.2126*Ne(oe)+.7152*Ne(pe)+.0722*Ne(xe));this.selectColor=(De,Fe,Pe)=>{const qe=.2126*Ne(De)+.7152*Ne(Fe)+.0722*Ne(Pe);return Math.round(qe)===ke?se:ye}}}if(this.ctx.fillStyle=this.backgroundColor||_e,this.ctx.fillRect(0,0,he,we),this.ctx.restore(),Z){const ye=this.cachedCanvases.getCanvas("transparent",he,we);this.compositeCtx=this.ctx,this.transparentCanvas=ye.canvas,this.ctx=ye.context,this.ctx.save(),this.ctx.transform(...(0,w.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),G(this.ctx,this.foregroundColor),ce&&(this.ctx.transform(...ce),this.outputScaleX=ce[0],this.outputScaleY=ce[0]),this.ctx.transform(...de.transform),this.viewportScale=de.scale,this.baseTransform=(0,w.getCurrentTransform)(this.ctx),this.imageLayer&&((0,w.deprecated)("The `imageLayer` functionality will be removed in the future."),this.imageLayer.beginLayout())}executeOperatorList(K,ce,de,Z){const ae=K.argsArray,he=K.fnArray;let we=ce||0;const _e=ae.length;if(_e===we)return we;const ye=_e-we>O&&typeof de=="function",se=ye?Date.now()+L:0;let Ie=0;const Ce=this.commonObjs,oe=this.objs;let pe;for(;;){if(Z!==void 0&&we===Z.nextBreakPoint)return Z.breakIt(we,de),we;if(pe=he[we],pe!==U.OPS.dependency)this[pe].apply(this,ae[we]);else for(const xe of ae[we]){const Ne=xe.startsWith("g_")?Ce:oe;if(!Ne.has(xe))return Ne.get(xe,de),we}if(we++,we===_e)return we;if(ye&&++Ie>O){if(Date.now()>se)return de(),we;Ie=0}}}endDrawing(){c(this,Q,Te).call(this),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const K of this._cachedBitmapsMap.values()){for(const ce of K.values())typeof HTMLCanvasElement<"u"&&ce instanceof HTMLCanvasElement&&(ce.width=ce.height=0);K.clear()}this._cachedBitmapsMap.clear(),this.imageLayer&&this.imageLayer.endLayout()}_scaleImage(K,ce){const de=K.width,Z=K.height;let ae=Math.max(Math.hypot(ce[0],ce[1]),1),he=Math.max(Math.hypot(ce[2],ce[3]),1),we=de,_e=Z,ye="prescale1",se,Ie;for(;ae>2&&we>1||he>2&&_e>1;){let Ce=we,oe=_e;ae>2&&we>1&&(Ce=Math.ceil(we/2),ae/=we/Ce),he>2&&_e>1&&(oe=Math.ceil(_e/2),he/=_e/oe),se=this.cachedCanvases.getCanvas(ye,Ce,oe),Ie=se.context,Ie.clearRect(0,0,Ce,oe),Ie.drawImage(K,0,0,we,_e,0,0,Ce,oe),K=se.canvas,we=Ce,_e=oe,ye=ye==="prescale1"?"prescale2":"prescale1"}return{img:K,paintWidth:we,paintHeight:_e}}_createMaskCanvas(K){const ce=this.ctx,{width:de,height:Z}=K,ae=this.current.fillColor,he=this.current.patternFill,we=(0,w.getCurrentTransform)(ce);let _e,ye,se,Ie;if((K.bitmap||K.data)&&K.count>1){const Oe=K.bitmap||K.data.buffer,Ee=we.slice(0,4);ye=JSON.stringify(he?Ee:[Ee,ae]),_e=this._cachedBitmapsMap.get(Oe),_e||(_e=new Map,this._cachedBitmapsMap.set(Oe,_e));const Ae=_e.get(ye);if(Ae&&!he){const Ve=Math.round(Math.min(we[0],we[2])+we[4]),$e=Math.round(Math.min(we[1],we[3])+we[5]);return{canvas:Ae,offsetX:Ve,offsetY:$e}}se=Ae}se||(Ie=this.cachedCanvases.getCanvas("maskCanvas",de,Z),F(Ie.context,K));let Ce=U.Util.transform(we,[1/de,0,0,-1/Z,0,0]);Ce=U.Util.transform(Ce,[1,0,0,1,0,-Z]);const oe=U.Util.applyTransform([0,0],Ce),pe=U.Util.applyTransform([de,Z],Ce),xe=U.Util.normalizeRect([oe[0],oe[1],pe[0],pe[1]]),Ne=Math.round(xe[2]-xe[0])||1,ke=Math.round(xe[3]-xe[1])||1,De=this.cachedCanvases.getCanvas("fillCanvas",Ne,ke),Fe=De.context,Pe=Math.min(oe[0],pe[0]),qe=Math.min(oe[1],pe[1]);Fe.translate(-Pe,-qe),Fe.transform(...Ce),se||(se=this._scaleImage(Ie.canvas,(0,w.getCurrentTransformInverse)(Fe)),se=se.img,_e&&he&&_e.set(ye,se)),Fe.imageSmoothingEnabled=z((0,w.getCurrentTransform)(Fe),K.interpolate),l(Fe,se,0,0,se.width,se.height,0,0,de,Z),Fe.globalCompositeOperation="source-in";const Le=U.Util.transform((0,w.getCurrentTransformInverse)(Fe),[1,0,0,1,-Pe,-qe]);return Fe.fillStyle=he?ae.getPattern(ce,this,Le,k.PathType.FILL):ae,Fe.fillRect(0,0,de,Z),_e&&!he&&(this.cachedCanvases.delete("fillCanvas"),_e.set(ye,De.canvas)),{canvas:De.canvas,offsetX:Math.round(Pe),offsetY:Math.round(qe)}}setLineWidth(K){K!==this.current.lineWidth&&(this._cachedScaleForStroking=null),this.current.lineWidth=K,this.ctx.lineWidth=K}setLineCap(K){this.ctx.lineCap=X[K]}setLineJoin(K){this.ctx.lineJoin=q[K]}setMiterLimit(K){this.ctx.miterLimit=K}setDash(K,ce){const de=this.ctx;de.setLineDash!==void 0&&(de.setLineDash(K),de.lineDashOffset=ce)}setRenderingIntent(K){}setFlatness(K){}setGState(K){for(let ce=0,de=K.length;cev&&(ye=v),this.current.fontSizeScale=ce/ye,this.ctx.font=`${we} ${he} ${ye}px ${_e}`}setTextRenderingMode(K){this.current.textRenderingMode=K}setTextRise(K){this.current.textRise=K}moveText(K,ce){this.current.x=this.current.lineX+=K,this.current.y=this.current.lineY+=ce}setLeadingMoveText(K,ce){this.setLeading(-ce),this.moveText(K,ce)}setTextMatrix(K,ce,de,Z,ae,he){this.current.textMatrix=[K,ce,de,Z,ae,he],this.current.textMatrixScale=Math.hypot(K,ce),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(K,ce,de,Z){const ae=this.ctx,he=this.current,we=he.font,_e=he.textRenderingMode,ye=he.fontSize/he.fontSizeScale,se=_e&U.TextRenderingMode.FILL_STROKE_MASK,Ie=!!(_e&U.TextRenderingMode.ADD_TO_PATH_FLAG),Ce=he.patternFill&&!we.missingFile;let oe;(we.disableFontFace||Ie||Ce)&&(oe=we.getPathGenerator(this.commonObjs,K)),we.disableFontFace||Ce?(ae.save(),ae.translate(ce,de),ae.beginPath(),oe(ae,ye),Z&&ae.setTransform(...Z),(se===U.TextRenderingMode.FILL||se===U.TextRenderingMode.FILL_STROKE)&&ae.fill(),(se===U.TextRenderingMode.STROKE||se===U.TextRenderingMode.FILL_STROKE)&&ae.stroke(),ae.restore()):((se===U.TextRenderingMode.FILL||se===U.TextRenderingMode.FILL_STROKE)&&ae.fillText(K,ce,de),(se===U.TextRenderingMode.STROKE||se===U.TextRenderingMode.FILL_STROKE)&&ae.strokeText(K,ce,de)),Ie&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:(0,w.getCurrentTransform)(ae),x:ce,y:de,fontSize:ye,addToPath:oe})}get isFontSubpixelAAEnabled(){const{context:K}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);K.scale(1.5,1),K.fillText("I",0,10);const ce=K.getImageData(0,0,10,10).data;let de=!1;for(let Z=3;Z0&&ce[Z]<255){de=!0;break}return(0,U.shadow)(this,"isFontSubpixelAAEnabled",de)}showText(K){const ce=this.current,de=ce.font;if(de.isType3Font)return this.showType3Text(K);const Z=ce.fontSize;if(Z===0)return;const ae=this.ctx,he=ce.fontSizeScale,we=ce.charSpacing,_e=ce.wordSpacing,ye=ce.fontDirection,se=ce.textHScale*ye,Ie=K.length,Ce=de.vertical,oe=Ce?1:-1,pe=de.defaultVMetrics,xe=Z*ce.fontMatrix[0],Ne=ce.textRenderingMode===U.TextRenderingMode.FILL&&!de.disableFontFace&&!ce.patternFill;ae.save(),ae.transform(...ce.textMatrix),ae.translate(ce.x,ce.y+ce.textRise),ye>0?ae.scale(se,-1):ae.scale(se,1);let ke;if(ce.patternFill){ae.save();const Le=ce.fillColor.getPattern(ae,this,(0,w.getCurrentTransformInverse)(ae),k.PathType.FILL);ke=(0,w.getCurrentTransform)(ae),ae.restore(),ae.fillStyle=Le}let De=ce.lineWidth;const Fe=ce.textMatrixScale;if(Fe===0||De===0){const Le=ce.textRenderingMode&U.TextRenderingMode.FILL_STROKE_MASK;(Le===U.TextRenderingMode.STROKE||Le===U.TextRenderingMode.FILL_STROKE)&&(De=this.getSinglePixelWidth())}else De/=Fe;he!==1&&(ae.scale(he,he),De/=he),ae.lineWidth=De;let Pe=0,qe;for(qe=0;qe0){const Ze=ae.measureText(Ae).width*1e3/Z*he;if(Henew ie(he,this.commonObjs,this.objs,this.canvasFactory)};ce=new k.TilingPattern(K,de,this.ctx,ae,Z)}else ce=this._getPattern(K[1],K[2]);return ce}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(K,ce,de){var Z;const ae=((Z=this.selectColor)===null||Z===void 0?void 0:Z.call(this,K,ce,de))||U.Util.makeHexColor(K,ce,de);this.ctx.strokeStyle=ae,this.current.strokeColor=ae}setFillRGBColor(K,ce,de){var Z;const ae=((Z=this.selectColor)===null||Z===void 0?void 0:Z.call(this,K,ce,de))||U.Util.makeHexColor(K,ce,de);this.ctx.fillStyle=ae,this.current.fillColor=ae,this.current.patternFill=!1}_getPattern(K){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,de;return this.cachedPatterns.has(K)?de=this.cachedPatterns.get(K):(de=(0,k.getShadingPattern)(this.objs.get(K)),this.cachedPatterns.set(K,de)),ce&&(de.matrix=ce),de}shadingFill(K){if(!this.contentVisible)return;const ce=this.ctx;this.save();const de=this._getPattern(K);ce.fillStyle=de.getPattern(ce,this,(0,w.getCurrentTransformInverse)(ce),k.PathType.SHADING);const Z=(0,w.getCurrentTransformInverse)(ce);if(Z){const ae=ce.canvas,he=ae.width,we=ae.height,_e=U.Util.applyTransform([0,0],Z),ye=U.Util.applyTransform([0,we],Z),se=U.Util.applyTransform([he,0],Z),Ie=U.Util.applyTransform([he,we],Z),Ce=Math.min(_e[0],ye[0],se[0],Ie[0]),oe=Math.min(_e[1],ye[1],se[1],Ie[1]),pe=Math.max(_e[0],ye[0],se[0],Ie[0]),xe=Math.max(_e[1],ye[1],se[1],Ie[1]);this.ctx.fillRect(Ce,oe,pe-Ce,xe-oe)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,U.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,U.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(K,ce){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(K)&&K.length===6&&this.transform(...K),this.baseTransform=(0,w.getCurrentTransform)(this.ctx),ce)){const de=ce[2]-ce[0],Z=ce[3]-ce[1];this.ctx.rect(ce[0],ce[1],de,Z),this.current.updateRectMinMax((0,w.getCurrentTransform)(this.ctx),ce),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(K){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const ce=this.ctx;K.isolated||(0,U.info)("TODO: Support non-isolated groups."),K.knockout&&(0,U.warn)("Knockout groups not supported.");const de=(0,w.getCurrentTransform)(ce);if(K.matrix&&ce.transform(...K.matrix),!K.bbox)throw new Error("Bounding box is required.");let Z=U.Util.getAxialAlignedBoundingBox(K.bbox,(0,w.getCurrentTransform)(ce));const ae=[0,0,ce.canvas.width,ce.canvas.height];Z=U.Util.intersect(Z,ae)||[0,0,0,0];const he=Math.floor(Z[0]),we=Math.floor(Z[1]);let _e=Math.max(Math.ceil(Z[2])-he,1),ye=Math.max(Math.ceil(Z[3])-we,1),se=1,Ie=1;_e>e&&(se=_e/e,_e=e),ye>e&&(Ie=ye/e,ye=e),this.current.startNewPathAndClipBox([0,0,_e,ye]);let Ce="groupAt"+this.groupLevel;K.smask&&(Ce+="_smask_"+this.smaskCounter++%2);const oe=this.cachedCanvases.getCanvas(Ce,_e,ye),pe=oe.context;pe.scale(1/se,1/Ie),pe.translate(-he,-we),pe.transform(...de),K.smask?this.smaskStack.push({canvas:oe.canvas,context:pe,offsetX:he,offsetY:we,scaleX:se,scaleY:Ie,subtype:K.smask.subtype,backdrop:K.smask.backdrop,transferMap:K.smask.transferMap||null,startTransformInverse:null}):(ce.setTransform(1,0,0,1,0,0),ce.translate(he,we),ce.scale(se,Ie),ce.save()),N(ce,pe),this.ctx=pe,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(ce),this.groupLevel++}endGroup(K){if(!this.contentVisible)return;this.groupLevel--;const ce=this.ctx,de=this.groupStack.pop();if(this.ctx=de,this.ctx.imageSmoothingEnabled=!1,K.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const Z=(0,w.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...Z);const ae=U.Util.getAxialAlignedBoundingBox([0,0,ce.canvas.width,ce.canvas.height],Z);this.ctx.drawImage(ce.canvas,0,0),this.ctx.restore(),this.compose(ae)}}beginAnnotation(K,ce,de,Z,ae){if(c(this,Q,Te).call(this),G(this.ctx,this.foregroundColor),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(ce)&&ce.length===4){const he=ce[2]-ce[0],we=ce[3]-ce[1];if(ae&&this.annotationCanvasMap){de=de.slice(),de[4]-=ce[0],de[5]-=ce[1],ce=ce.slice(),ce[0]=ce[1]=0,ce[2]=he,ce[3]=we;const[_e,ye]=U.Util.singularValueDecompose2dScale((0,w.getCurrentTransform)(this.ctx)),{viewportScale:se}=this,Ie=Math.ceil(he*this.outputScaleX*se),Ce=Math.ceil(we*this.outputScaleY*se);this.annotationCanvas=this.canvasFactory.create(Ie,Ce);const{canvas:oe,context:pe}=this.annotationCanvas;this.annotationCanvasMap.set(K,oe),this.annotationCanvas.savedCtx=this.ctx,this.ctx=pe,this.ctx.setTransform(_e,0,0,-ye,0,we*ye),G(this.ctx,this.foregroundColor)}else G(this.ctx,this.foregroundColor),this.ctx.rect(ce[0],ce[1],he,we),this.ctx.clip(),this.endPath()}this.current=new D(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...de),this.transform(...Z)}endAnnotation(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(K){if(!this.contentVisible)return;const ce=K.count;K=this.getObject(K.data,K),K.count=ce;const de=this.ctx,Z=this.processingType3;if(Z&&(Z.compiled===void 0&&(Z.compiled=y(K)),Z.compiled)){Z.compiled(de);return}const ae=this._createMaskCanvas(K),he=ae.canvas;de.save(),de.setTransform(1,0,0,1,0,0),de.drawImage(he,ae.offsetX,ae.offsetY),de.restore(),this.compose()}paintImageMaskXObjectRepeat(K,ce){let de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,ae=arguments.length>4?arguments[4]:void 0,he=arguments.length>5?arguments[5]:void 0;if(!this.contentVisible)return;K=this.getObject(K.data,K);const we=this.ctx;we.save();const _e=(0,w.getCurrentTransform)(we);we.transform(ce,de,Z,ae,0,0);const ye=this._createMaskCanvas(K);we.setTransform(1,0,0,1,0,0);for(let se=0,Ie=he.length;se_e?we/_e:1,Z=he>_e?he/_e:1}}this._cachedScaleForStroking=[de,Z]}return this._cachedScaleForStroking}rescaleAndStroke(K){const{ctx:ce}=this,{lineWidth:de}=this.current,[Z,ae]=this.getScaleForStroking();if(ce.lineWidth=de||1,Z===1&&ae===1){ce.stroke();return}let he,we,_e;K&&(he=(0,w.getCurrentTransform)(ce),we=ce.getLineDash().slice(),_e=ce.lineDashOffset),ce.scale(Z,ae);const ye=Math.max(Z,ae);ce.setLineDash(ce.getLineDash().map(se=>se/ye)),ce.lineDashOffset/=ye,ce.stroke(),K&&(ce.setTransform(...he),ce.setLineDash(we),ce.lineDashOffset=_e)}isContentVisible(){for(let K=this.markedContentStack.length-1;K>=0;K--)if(!this.markedContentStack[K].visible)return!1;return!0}}r.CanvasGraphics=ie;function Te(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}for(const me in U.OPS)ie.prototype[me]!==void 0&&(ie.prototype[U.OPS[me]]=ie.prototype[me])},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.TilingPattern=r.PathType=void 0,r.getShadingPattern=L;var w=m(1),U=m(133),k=m(3);const x={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};r.PathType=x;function a(P,S){if(!S||k.isNodeJS)return;const _=S[2]-S[0],l=S[3]-S[1],y=new Path2D;y.rect(S[0],S[1],_,l),P.clip(y)}class g{constructor(){this.constructor===g&&(0,w.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,w.unreachable)("Abstract method `getPattern` called.")}}class n extends g{constructor(S){super(),this._type=S[1],this._bbox=S[2],this._colorStops=S[3],this._p0=S[4],this._p1=S[5],this._r0=S[6],this._r1=S[7],this.matrix=null}_createGradient(S){let _;this._type==="axial"?_=S.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(_=S.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const l of this._colorStops)_.addColorStop(l[0],l[1]);return _}getPattern(S,_,l,y){let D;if(y===x.STROKE||y===x.FILL){const M=_.current.getClippedPathBoundingBox(y,(0,U.getCurrentTransform)(S))||[0,0,0,0],F=Math.ceil(M[2]-M[0])||1,N=Math.ceil(M[3]-M[1])||1,G=_.cachedCanvases.getCanvas("pattern",F,N,!0),W=G.context;W.clearRect(0,0,W.canvas.width,W.canvas.height),W.beginPath(),W.rect(0,0,W.canvas.width,W.canvas.height),W.translate(-M[0],-M[1]),l=w.Util.transform(l,[1,0,0,1,M[0],M[1]]),W.transform(..._.baseTransform),this.matrix&&W.transform(...this.matrix),a(W,this._bbox),W.fillStyle=this._createGradient(W),W.fill(),D=S.createPattern(G.canvas,"no-repeat");const J=new DOMMatrix(l);try{D.setTransform(J)}catch(Y){(0,w.warn)(`RadialAxialShadingPattern.getPattern: "${Y==null?void 0:Y.message}".`)}}else a(S,this._bbox),D=this._createGradient(S);return D}}function c(P,S,_,l,y,D,M,F){const N=S.coords,G=S.colors,W=P.data,J=P.width*4;let Y;N[_+1]>N[l+1]&&(Y=_,_=l,l=Y,Y=D,D=M,M=Y),N[l+1]>N[y+1]&&(Y=l,l=y,y=Y,Y=M,M=F,F=Y),N[_+1]>N[l+1]&&(Y=_,_=l,l=Y,Y=D,D=M,M=Y);const V=(N[_]+S.offsetX)*S.scaleX,H=(N[_+1]+S.offsetY)*S.scaleY,z=(N[l]+S.offsetX)*S.scaleX,X=(N[l+1]+S.offsetY)*S.scaleY,q=(N[y]+S.offsetX)*S.scaleX,$=(N[y+1]+S.offsetY)*S.scaleY;if(H>=$)return;const fe=G[D],Q=G[D+1],ie=G[D+2],Te=G[M],me=G[M+1],K=G[M+2],ce=G[F],de=G[F+1],Z=G[F+2],ae=Math.round(H),he=Math.round($);let we,_e,ye,se,Ie,Ce,oe,pe;for(let xe=ae;xe<=he;xe++){if(xe$?Pe=1:X===$?Pe=0:Pe=(X-xe)/(X-$),we=z-(z-q)*Pe,_e=Te-(Te-ce)*Pe,ye=me-(me-de)*Pe,se=K-(K-Z)*Pe}let Ne;xe$?Ne=1:Ne=(H-xe)/(H-$),Ie=V-(V-q)*Ne,Ce=fe-(fe-ce)*Ne,oe=Q-(Q-de)*Ne,pe=ie-(ie-Z)*Ne;const ke=Math.round(Math.min(we,Ie)),De=Math.round(Math.max(we,Ie));let Fe=J*xe+ke*4;for(let Pe=ke;Pe<=De;Pe++)Ne=(we-Pe)/(we-Ie),Ne<0?Ne=0:Ne>1&&(Ne=1),W[Fe++]=_e-(_e-Ce)*Ne|0,W[Fe++]=ye-(ye-oe)*Ne|0,W[Fe++]=se-(se-pe)*Ne|0,W[Fe++]=255}}function R(P,S,_){const l=S.coords,y=S.colors;let D,M;switch(S.type){case"lattice":const F=S.verticesPerRow,N=Math.floor(l.length/F)-1,G=F-1;for(D=0;D=y?D=y:l=D/S,{scale:l,size:D}}clipBbox(S,_,l,y,D){const M=y-_,F=D-l;S.ctx.rect(_,l,M,F),S.current.updateRectMinMax((0,U.getCurrentTransform)(S.ctx),[_,l,y,D]),S.clip(),S.endPath()}setFillAndStrokeStyleToContext(S,_,l){const y=S.ctx,D=S.current;switch(_){case O.COLORED:const M=this.ctx;y.fillStyle=M.fillStyle,y.strokeStyle=M.strokeStyle,D.fillColor=M.fillStyle,D.strokeColor=M.strokeStyle;break;case O.UNCOLORED:const F=w.Util.makeHexColor(l[0],l[1],l[2]);y.fillStyle=F,y.strokeStyle=F,D.fillColor=F,D.strokeColor=F;break;default:throw new w.FormatError(`Unsupported paint type: ${_}`)}}getPattern(S,_,l,y){let D=l;y!==x.SHADING&&(D=w.Util.transform(D,_.baseTransform),this.matrix&&(D=w.Util.transform(D,this.matrix)));const M=this.createPatternCanvas(_);let F=new DOMMatrix(D);F=F.translate(M.offsetX,M.offsetY),F=F.scale(1/M.scaleX,1/M.scaleY);const N=S.createPattern(M.canvas,"repeat");try{N.setTransform(F)}catch(G){(0,w.warn)(`TilingPattern.getPattern: "${G==null?void 0:G.message}".`)}return N}}r.TilingPattern=B},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.applyMaskImageData=U;var w=m(1);function U(k){let{src:x,srcPos:a=0,dest:g,destPos:n=0,width:c,height:R,inverseDecode:v=!1}=k;const e=w.FeatureTest.isLittleEndian?4278190080:255,[L,O]=v?[0,e]:[e,0],B=c>>3,P=c&7,S=x.length;g=new Uint32Array(g.buffer);for(let _=0;_{Object.defineProperty(r,"__esModule",{value:!0}),r.GlobalWorkerOptions=void 0;const m=Object.create(null);r.GlobalWorkerOptions=m,m.workerPort=m.workerPort===void 0?null:m.workerPort,m.workerSrc=m.workerSrc===void 0?"":m.workerSrc},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.MessageHandler=void 0;var w=m(1);const U={UNKNOWN:0,DATA:1,ERROR:2},k={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function x(g){switch(g instanceof Error||typeof g=="object"&&g!==null||(0,w.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),g.name){case"AbortException":return new w.AbortException(g.message);case"MissingPDFException":return new w.MissingPDFException(g.message);case"PasswordException":return new w.PasswordException(g.message,g.code);case"UnexpectedResponseException":return new w.UnexpectedResponseException(g.message,g.status);case"UnknownErrorException":return new w.UnknownErrorException(g.message,g.details);default:return new w.UnknownErrorException(g.message,g.toString())}}class a{constructor(n,c,R){this.sourceName=n,this.targetName=c,this.comObj=R,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=v=>{const e=v.data;if(e.targetName!==this.sourceName)return;if(e.stream){this._processStreamMessage(e);return}if(e.callback){const O=e.callbackId,B=this.callbackCapabilities[O];if(!B)throw new Error(`Cannot resolve callback ${O}`);if(delete this.callbackCapabilities[O],e.callback===U.DATA)B.resolve(e.data);else if(e.callback===U.ERROR)B.reject(x(e.reason));else throw new Error("Unexpected callback case");return}const L=this.actionHandler[e.action];if(!L)throw new Error(`Unknown action from worker: ${e.action}`);if(e.callbackId){const O=this.sourceName,B=e.sourceName;new Promise(function(P){P(L(e.data))}).then(function(P){R.postMessage({sourceName:O,targetName:B,callback:U.DATA,callbackId:e.callbackId,data:P})},function(P){R.postMessage({sourceName:O,targetName:B,callback:U.ERROR,callbackId:e.callbackId,reason:x(P)})});return}if(e.streamId){this._createStreamSink(e);return}L(e.data)},R.addEventListener("message",this._onComObjOnMessage)}on(n,c){const R=this.actionHandler;if(R[n])throw new Error(`There is already an actionName called "${n}"`);R[n]=c}send(n,c,R){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:n,data:c},R)}sendWithPromise(n,c,R){const v=this.callbackId++,e=(0,w.createPromiseCapability)();this.callbackCapabilities[v]=e;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:n,callbackId:v,data:c},R)}catch(L){e.reject(L)}return e.promise}sendWithStream(n,c,R,v){const e=this.streamId++,L=this.sourceName,O=this.targetName,B=this.comObj;return new ReadableStream({start:P=>{const S=(0,w.createPromiseCapability)();return this.streamControllers[e]={controller:P,startCall:S,pullCall:null,cancelCall:null,isClosed:!1},B.postMessage({sourceName:L,targetName:O,action:n,streamId:e,data:c,desiredSize:P.desiredSize},v),S.promise},pull:P=>{const S=(0,w.createPromiseCapability)();return this.streamControllers[e].pullCall=S,B.postMessage({sourceName:L,targetName:O,stream:k.PULL,streamId:e,desiredSize:P.desiredSize}),S.promise},cancel:P=>{(0,w.assert)(P instanceof Error,"cancel must have a valid reason");const S=(0,w.createPromiseCapability)();return this.streamControllers[e].cancelCall=S,this.streamControllers[e].isClosed=!0,B.postMessage({sourceName:L,targetName:O,stream:k.CANCEL,streamId:e,reason:x(P)}),S.promise}},R)}_createStreamSink(n){const c=n.streamId,R=this.sourceName,v=n.sourceName,e=this.comObj,L=this,O=this.actionHandler[n.action],B={enqueue(P){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=S,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,w.createPromiseCapability)(),this.ready=this.sinkCapability.promise),e.postMessage({sourceName:R,targetName:v,stream:k.ENQUEUE,streamId:c,chunk:P},_)},close(){this.isCancelled||(this.isCancelled=!0,e.postMessage({sourceName:R,targetName:v,stream:k.CLOSE,streamId:c}),delete L.streamSinks[c])},error(P){(0,w.assert)(P instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,e.postMessage({sourceName:R,targetName:v,stream:k.ERROR,streamId:c,reason:x(P)}))},sinkCapability:(0,w.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:n.desiredSize,ready:null};B.sinkCapability.resolve(),B.ready=B.sinkCapability.promise,this.streamSinks[c]=B,new Promise(function(P){P(O(n.data,B))}).then(function(){e.postMessage({sourceName:R,targetName:v,stream:k.START_COMPLETE,streamId:c,success:!0})},function(P){e.postMessage({sourceName:R,targetName:v,stream:k.START_COMPLETE,streamId:c,reason:x(P)})})}_processStreamMessage(n){const c=n.streamId,R=this.sourceName,v=n.sourceName,e=this.comObj,L=this.streamControllers[c],O=this.streamSinks[c];switch(n.stream){case k.START_COMPLETE:n.success?L.startCall.resolve():L.startCall.reject(x(n.reason));break;case k.PULL_COMPLETE:n.success?L.pullCall.resolve():L.pullCall.reject(x(n.reason));break;case k.PULL:if(!O){e.postMessage({sourceName:R,targetName:v,stream:k.PULL_COMPLETE,streamId:c,success:!0});break}O.desiredSize<=0&&n.desiredSize>0&&O.sinkCapability.resolve(),O.desiredSize=n.desiredSize,new Promise(function(B){B(O.onPull&&O.onPull())}).then(function(){e.postMessage({sourceName:R,targetName:v,stream:k.PULL_COMPLETE,streamId:c,success:!0})},function(B){e.postMessage({sourceName:R,targetName:v,stream:k.PULL_COMPLETE,streamId:c,reason:x(B)})});break;case k.ENQUEUE:if((0,w.assert)(L,"enqueue should have stream controller"),L.isClosed)break;L.controller.enqueue(n.chunk);break;case k.CLOSE:if((0,w.assert)(L,"close should have stream controller"),L.isClosed)break;L.isClosed=!0,L.controller.close(),this._deleteStreamController(L,c);break;case k.ERROR:(0,w.assert)(L,"error should have stream controller"),L.controller.error(x(n.reason)),this._deleteStreamController(L,c);break;case k.CANCEL_COMPLETE:n.success?L.cancelCall.resolve():L.cancelCall.reject(x(n.reason)),this._deleteStreamController(L,c);break;case k.CANCEL:if(!O)break;new Promise(function(B){B(O.onCancel&&O.onCancel(x(n.reason)))}).then(function(){e.postMessage({sourceName:R,targetName:v,stream:k.CANCEL_COMPLETE,streamId:c,success:!0})},function(B){e.postMessage({sourceName:R,targetName:v,stream:k.CANCEL_COMPLETE,streamId:c,reason:x(B)})}),O.sinkCapability.reject(x(n.reason)),O.isCancelled=!0,delete this.streamSinks[c];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(n,c){await Promise.allSettled([n.startCall&&n.startCall.promise,n.pullCall&&n.pullCall.promise,n.cancelCall&&n.cancelCall.promise]),delete this.streamControllers[c]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}r.MessageHandler=a},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Metadata=void 0;var w=m(1);function U(L,O,B){k(L,O),O.set(L,B)}function k(L,O){if(O.has(L))throw new TypeError("Cannot initialize the same private elements twice on an object")}function x(L,O){var B=n(L,O,"get");return a(L,B)}function a(L,O){return O.get?O.get.call(L):O.value}function g(L,O,B){var P=n(L,O,"set");return c(L,P,B),B}function n(L,O,B){if(!O.has(L))throw new TypeError("attempted to "+B+" private field on non-instance");return O.get(L)}function c(L,O,B){if(O.set)O.set.call(L,B);else{if(!O.writable)throw new TypeError("attempted to set read only private field");O.value=B}}var R=new WeakMap,v=new WeakMap;class e{constructor(O){let{parsedData:B,rawData:P}=O;U(this,R,{writable:!0,value:void 0}),U(this,v,{writable:!0,value:void 0}),g(this,R,B),g(this,v,P)}getRaw(){return x(this,v)}get(O){var B;return(B=x(this,R).get(O))!==null&&B!==void 0?B:null}getAll(){return(0,w.objectFromMap)(x(this,R))}has(O){return x(this,R).has(O)}}r.Metadata=e},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.OptionalContentConfig=void 0;var w=m(1);function U(M,F){a(M,F),F.add(M)}function k(M,F,N){if(!F.has(M))throw new TypeError("attempted to get private field on non-instance");return N}function x(M,F,N){a(M,F),F.set(M,N)}function a(M,F){if(F.has(M))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(M,F,N){var G=R(M,F,"set");return n(M,G,N),N}function n(M,F,N){if(F.set)F.set.call(M,N);else{if(!F.writable)throw new TypeError("attempted to set read only private field");F.value=N}}function c(M,F){var N=R(M,F,"get");return v(M,N)}function R(M,F,N){if(!F.has(M))throw new TypeError("attempted to "+N+" private field on non-instance");return F.get(M)}function v(M,F){return F.get?F.get.call(M):F.value}const e=Symbol("INTERNAL");var L=new WeakMap;class O{constructor(F,N){x(this,L,{writable:!0,value:!0}),this.name=F,this.intent=N}get visible(){return c(this,L)}_setVisible(F,N){F!==e&&(0,w.unreachable)("Internal method `_setVisible` called."),g(this,L,N)}}var B=new WeakMap,P=new WeakMap,S=new WeakMap,_=new WeakMap,l=new WeakSet;class y{constructor(F){if(U(this,l),x(this,B,{writable:!0,value:!0}),x(this,P,{writable:!0,value:new Map}),x(this,S,{writable:!0,value:null}),x(this,_,{writable:!0,value:null}),this.name=null,this.creator=null,F!==null){this.name=F.name,this.creator=F.creator,g(this,_,F.order);for(const N of F.groups)c(this,P).set(N.id,new O(N.name,N.intent));if(F.baseState==="OFF")for(const N of c(this,P).values())N._setVisible(e,!1);for(const N of F.on)c(this,P).get(N)._setVisible(e,!0);for(const N of F.off)c(this,P).get(N)._setVisible(e,!1);g(this,S,new Map);for(const[N,G]of c(this,P))c(this,S).set(N,G.visible)}}isVisible(F){if(c(this,P).size===0)return!0;if(!F)return(0,w.warn)("Optional content group not defined."),!0;if(F.type==="OCG")return c(this,P).has(F.id)?c(this,P).get(F.id).visible:((0,w.warn)(`Optional content group not found: ${F.id}`),!0);if(F.type==="OCMD"){if(F.expression)return k(this,l,D).call(this,F.expression);if(!F.policy||F.policy==="AnyOn"){for(const N of F.ids){if(!c(this,P).has(N))return(0,w.warn)(`Optional content group not found: ${N}`),!0;if(c(this,P).get(N).visible)return!0}return!1}else if(F.policy==="AllOn"){for(const N of F.ids){if(!c(this,P).has(N))return(0,w.warn)(`Optional content group not found: ${N}`),!0;if(!c(this,P).get(N).visible)return!1}return!0}else if(F.policy==="AnyOff"){for(const N of F.ids){if(!c(this,P).has(N))return(0,w.warn)(`Optional content group not found: ${N}`),!0;if(!c(this,P).get(N).visible)return!0}return!1}else if(F.policy==="AllOff"){for(const N of F.ids){if(!c(this,P).has(N))return(0,w.warn)(`Optional content group not found: ${N}`),!0;if(c(this,P).get(N).visible)return!1}return!0}return(0,w.warn)(`Unknown optional content policy ${F.policy}.`),!0}return(0,w.warn)(`Unknown group type ${F.type}.`),!0}setVisibility(F){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!c(this,P).has(F)){(0,w.warn)(`Optional content group not found: ${F}`);return}c(this,P).get(F)._setVisible(e,!!N),g(this,B,null)}get hasInitialVisibility(){if(c(this,B)!==null)return c(this,B);for(const[F,N]of c(this,P)){const G=c(this,S).get(F);if(N.visible!==G)return g(this,B,!1)}return g(this,B,!0)}getOrder(){return c(this,P).size?c(this,_)?c(this,_).slice():[...c(this,P).keys()]:null}getGroups(){return c(this,P).size>0?(0,w.objectFromMap)(c(this,P)):null}getGroup(F){return c(this,P).get(F)||null}}r.OptionalContentConfig=y;function D(M){const F=M.length;if(F<2)return!0;const N=M[0];for(let G=1;G{Object.defineProperty(r,"__esModule",{value:!0}),r.PDFDataTransportStream=void 0;var w=m(1),U=m(133);class k{constructor(n,c){(0,w.assert)(c,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=n.progressiveDone||!1,this._contentDispositionFilename=n.contentDispositionFilename||null;const R=n.initialData;if((R==null?void 0:R.length)>0){const v=new Uint8Array(R).buffer;this._queuedChunks.push(v)}this._pdfDataRangeTransport=c,this._isStreamingSupported=!n.disableStream,this._isRangeSupported=!n.disableRange,this._contentLength=n.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener((v,e)=>{this._onReceiveData({begin:v,chunk:e})}),this._pdfDataRangeTransport.addProgressListener((v,e)=>{this._onProgress({loaded:v,total:e})}),this._pdfDataRangeTransport.addProgressiveReadListener(v=>{this._onReceiveData({chunk:v})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(n){const c=new Uint8Array(n.chunk).buffer;if(n.begin===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(c):this._queuedChunks.push(c);else{const R=this._rangeReaders.some(function(v){return v._begin!==n.begin?!1:(v._enqueue(c),!0)});(0,w.assert)(R,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){var n,c;return(n=(c=this._fullRequestReader)===null||c===void 0?void 0:c._loaded)!==null&&n!==void 0?n:0}_onProgress(n){if(n.total===void 0){const c=this._rangeReaders[0];c!=null&&c.onProgress&&c.onProgress({loaded:n.loaded})}else{const c=this._fullRequestReader;c!=null&&c.onProgress&&c.onProgress({loaded:n.loaded,total:n.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(n){const c=this._rangeReaders.indexOf(n);c>=0&&this._rangeReaders.splice(c,1)}getFullReader(){(0,w.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const n=this._queuedChunks;return this._queuedChunks=null,new x(this,n,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(n,c){if(c<=this._progressiveDataLength)return null;const R=new a(this,n,c);return this._pdfDataRangeTransport.requestDataRange(n,c),this._rangeReaders.push(R),R}cancelAllRequests(n){this._fullRequestReader&&this._fullRequestReader.cancel(n);for(const c of this._rangeReaders.slice(0))c.cancel(n);this._pdfDataRangeTransport.abort()}}r.PDFDataTransportStream=k;class x{constructor(n,c){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;this._stream=n,this._done=R||!1,this._filename=(0,U.isPdfFile)(v)?v:null,this._queuedChunks=c||[],this._loaded=0;for(const e of this._queuedChunks)this._loaded+=e.byteLength;this._requests=[],this._headersReady=Promise.resolve(),n._fullRequestReader=this,this.onProgress=null}_enqueue(n){this._done||(this._requests.length>0?this._requests.shift().resolve({value:n,done:!1}):this._queuedChunks.push(n),this._loaded+=n.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const n=(0,w.createPromiseCapability)();return this._requests.push(n),n.promise}cancel(n){this._done=!0;for(const c of this._requests)c.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class a{constructor(n,c,R){this._stream=n,this._begin=c,this._end=R,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(n){if(!this._done){if(this._requests.length===0)this._queuedChunk=n;else{this._requests.shift().resolve({value:n,done:!1});for(const R of this._requests)R.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const c=this._queuedChunk;return this._queuedChunk=null,{value:c,done:!1}}if(this._done)return{value:void 0,done:!0};const n=(0,w.createPromiseCapability)();return this._requests.push(n),n.promise}cancel(n){this._done=!0;for(const c of this._requests)c.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(b,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.XfaText=void 0;class m{static textContent(U){const k=[],x={items:k,styles:Object.create(null)};function a(g){var n;if(!g)return;let c=null;const R=g.name;if(R==="#text")c=g.value;else if(m.shouldBuildText(R))g!=null&&(n=g.attributes)!==null&&n!==void 0&&n.textContent?c=g.attributes.textContent:g.value&&(c=g.value);else return;if(c!==null&&k.push({str:c}),!!g.children)for(const v of g.children)a(v)}return a(U),x}static shouldBuildText(U){return!(U==="textarea"||U==="input"||U==="option"||U==="select")}}r.XfaText=m},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.NodeStandardFontDataFactory=r.NodeCanvasFactory=r.NodeCMapReaderFactory=void 0;var w=m(134);const U=function(g){return new Promise((n,c)=>{require$$7.readFile(g,(v,e)=>{if(v||!e){c(new Error(v));return}n(new Uint8Array(e))})})};class k extends w.BaseCanvasFactory{_createCanvas(n,c){return require$$7.createCanvas(n,c)}}r.NodeCanvasFactory=k;class x extends w.BaseCMapReaderFactory{_fetchData(n,c){return U(n).then(R=>({cMapData:R,compressionType:c}))}}r.NodeCMapReaderFactory=x;class a extends w.BaseStandardFontDataFactory{_fetchData(n){return U(n)}}r.NodeStandardFontDataFactory=a},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.AnnotationEditorLayer=void 0;var w=m(132),U=m(1),k=m(148),x=m(149);function a(q,$){c(q,$),$.add(q)}function g(q,$,fe){return $ in q?Object.defineProperty(q,$,{value:fe,enumerable:!0,configurable:!0,writable:!0}):q[$]=fe,q}function n(q,$,fe){c(q,$),$.set(q,fe)}function c(q,$){if($.has(q))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R(q,$,fe){if(!$.has(q))throw new TypeError("attempted to get private field on non-instance");return fe}function v(q,$){var fe=O(q,$,"get");return e(q,fe)}function e(q,$){return $.get?$.get.call(q):$.value}function L(q,$,fe){var Q=O(q,$,"set");return B(q,Q,fe),fe}function O(q,$,fe){if(!$.has(q))throw new TypeError("attempted to "+fe+" private field on non-instance");return $.get(q)}function B(q,$,fe){if($.set)$.set.call(q,fe);else{if(!$.writable)throw new TypeError("attempted to set read only private field");$.value=fe}}var P=new WeakMap,S=new WeakMap,_=new WeakMap,l=new WeakMap,y=new WeakMap,D=new WeakMap,M=new WeakMap,F=new WeakMap,N=new WeakSet,G=new WeakSet,W=new WeakSet,J=new WeakSet;class Y{constructor($){a(this,J),a(this,W),a(this,G),a(this,N),n(this,P,{writable:!0,value:void 0}),n(this,S,{writable:!0,value:!1}),n(this,_,{writable:!0,value:this.pointerup.bind(this)}),n(this,l,{writable:!0,value:this.pointerdown.bind(this)}),n(this,y,{writable:!0,value:new Map}),n(this,D,{writable:!0,value:!1}),n(this,M,{writable:!0,value:!1}),n(this,F,{writable:!0,value:void 0}),Y._initialized||(Y._initialized=!0,k.FreeTextEditor.initialize($.l10n),x.InkEditor.initialize($.l10n),$.uiManager.registerEditorTypes([k.FreeTextEditor,x.InkEditor])),L(this,F,$.uiManager),this.annotationStorage=$.annotationStorage,this.pageIndex=$.pageIndex,this.div=$.div,L(this,P,$.accessibilityManager),v(this,F).addLayer(this)}updateToolbar($){v(this,F).updateToolbar($)}updateMode(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v(this,F).getMode();R(this,J,X).call(this),$===U.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),v(this,F).unselectAll()}addInkEditorIfNeeded($){if(!$&&v(this,F).getMode()!==U.AnnotationEditorType.INK)return;if(!$){for(const Q of v(this,y).values())if(Q.isEmpty()){Q.setInBackground();return}}R(this,W,z).call(this,{offsetX:0,offsetY:0}).setInBackground()}setEditingState($){v(this,F).setEditingState($)}addCommands($){v(this,F).addCommands($)}enable(){this.div.style.pointerEvents="auto";for(const $ of v(this,y).values())$.enableEditing()}disable(){this.div.style.pointerEvents="none";for(const $ of v(this,y).values())$.disableEditing()}setActiveEditor($){v(this,F).getActive()!==$&&v(this,F).setActiveEditor($)}enableClick(){this.div.addEventListener("pointerdown",v(this,l)),this.div.addEventListener("pointerup",v(this,_))}disableClick(){this.div.removeEventListener("pointerdown",v(this,l)),this.div.removeEventListener("pointerup",v(this,_))}attach($){v(this,y).set($.id,$)}detach($){var fe;v(this,y).delete($.id),(fe=v(this,P))===null||fe===void 0||fe.removePointerInTextLayer($.contentDiv)}remove($){v(this,F).removeEditor($),this.detach($),this.annotationStorage.remove($.id),$.div.style.display="none",setTimeout(()=>{$.div.style.display="",$.div.remove(),$.isAttachedToDOM=!1,document.activeElement===document.body&&v(this,F).focusMainContainer()},0),v(this,M)||this.addInkEditorIfNeeded(!1)}add($){if(R(this,N,V).call(this,$),v(this,F).addEditor($),this.attach($),!$.isAttachedToDOM){const fe=$.render();this.div.append(fe),$.isAttachedToDOM=!0}this.moveEditorInDOM($),$.onceAdded(),this.addToAnnotationStorage($)}moveEditorInDOM($){var fe;(fe=v(this,P))===null||fe===void 0||fe.moveElementInDOM(this.div,$.div,$.contentDiv,!0)}addToAnnotationStorage($){!$.isEmpty()&&!this.annotationStorage.has($.id)&&this.annotationStorage.setValue($.id,$)}addOrRebuild($){$.needsToBeRebuilt()?$.rebuild():this.add($)}addANewEditor($){const fe=()=>{this.addOrRebuild($)},Q=()=>{$.remove()};this.addCommands({cmd:fe,undo:Q,mustExec:!0})}addUndoableEditor($){const fe=()=>{this.addOrRebuild($)},Q=()=>{$.remove()};this.addCommands({cmd:fe,undo:Q,mustExec:!1})}getNextId(){return v(this,F).getId()}deserialize($){switch($.annotationType){case U.AnnotationEditorType.FREETEXT:return k.FreeTextEditor.deserialize($,this);case U.AnnotationEditorType.INK:return x.InkEditor.deserialize($,this)}return null}setSelected($){v(this,F).setSelected($)}toggleSelected($){v(this,F).toggleSelected($)}isSelected($){return v(this,F).isSelected($)}unselect($){v(this,F).unselect($)}pointerup($){const fe=w.KeyboardManager.platform.isMac;if(!($.button!==0||$.ctrlKey&&fe)&&$.target===this.div&&v(this,D)){if(L(this,D,!1),!v(this,S)){L(this,S,!0);return}R(this,W,z).call(this,$)}}pointerdown($){const fe=w.KeyboardManager.platform.isMac;if($.button!==0||$.ctrlKey&&fe||$.target!==this.div)return;L(this,D,!0);const Q=v(this,F).getActive();L(this,S,!Q||Q.isEmpty())}drop($){const fe=$.dataTransfer.getData("text/plain"),Q=v(this,F).getEditor(fe);if(!Q)return;$.preventDefault(),$.dataTransfer.dropEffect="move",R(this,N,V).call(this,Q);const ie=this.div.getBoundingClientRect(),Te=$.clientX-ie.x,me=$.clientY-ie.y;Q.translate(Te-Q.startX,me-Q.startY),this.moveEditorInDOM(Q),Q.div.focus()}dragover($){$.preventDefault()}destroy(){var $;(($=v(this,F).getActive())===null||$===void 0?void 0:$.parent)===this&&v(this,F).setActiveEditor(null);for(const Q of v(this,y).values()){var fe;(fe=v(this,P))===null||fe===void 0||fe.removePointerInTextLayer(Q.contentDiv),Q.isAttachedToDOM=!1,Q.div.remove(),Q.parent=null}this.div=null,v(this,y).clear(),v(this,F).removeLayer(this)}render($){this.viewport=$.viewport,(0,w.bindEvents)(this,this.div,["dragover","drop"]),this.setDimensions();for(const fe of v(this,F).getEditors(this.pageIndex))this.add(fe);this.updateMode()}update($){this.viewport=$.viewport,this.setDimensions(),this.updateMode()}get scaleFactor(){return this.viewport.scale}get pageDimensions(){const[$,fe,Q,ie]=this.viewport.viewBox,Te=Q-$,me=ie-fe;return[Te,me]}get viewportBaseDimensions(){const{width:$,height:fe,rotation:Q}=this.viewport;return Q%180===0?[$,fe]:[fe,$]}setDimensions(){const{width:$,height:fe,rotation:Q}=this.viewport,ie=Q%180!==0,Te=Math.floor($)+"px",me=Math.floor(fe)+"px";this.div.style.width=ie?me:Te,this.div.style.height=ie?Te:me,this.div.setAttribute("data-main-rotation",Q)}}r.AnnotationEditorLayer=Y;function V(q){var $;q.parent!==this&&(this.attach(q),q.pageIndex=this.pageIndex,($=q.parent)===null||$===void 0||$.detach(q),q.parent=this,q.div&&q.isAttachedToDOM&&(q.div.remove(),this.div.append(q.div)))}function H(q){switch(v(this,F).getMode()){case U.AnnotationEditorType.FREETEXT:return new k.FreeTextEditor(q);case U.AnnotationEditorType.INK:return new x.InkEditor(q)}return null}function z(q){const $=this.getNextId(),fe=R(this,G,H).call(this,{parent:this,id:$,x:q.offsetX,y:q.offsetY});return fe&&this.add(fe),fe}function X(){L(this,M,!0);for(const q of v(this,y).values())q.isEmpty()&&q.remove();L(this,M,!1)}g(Y,"_initialized",!1)},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.FreeTextEditor=void 0;var w=m(1),U=m(132),k=m(131);function x(z,X){n(z,X),X.add(z)}function a(z,X,q){return X in z?Object.defineProperty(z,X,{value:q,enumerable:!0,configurable:!0,writable:!0}):z[X]=q,z}function g(z,X,q){n(z,X),X.set(z,q)}function n(z,X){if(X.has(z))throw new TypeError("Cannot initialize the same private elements twice on an object")}function c(z,X){var q=L(z,X,"get");return R(z,q)}function R(z,X){return X.get?X.get.call(z):X.value}function v(z,X,q){if(!X.has(z))throw new TypeError("attempted to get private field on non-instance");return q}function e(z,X,q){var $=L(z,X,"set");return O(z,$,q),q}function L(z,X,q){if(!X.has(z))throw new TypeError("attempted to "+q+" private field on non-instance");return X.get(z)}function O(z,X,q){if(X.set)X.set.call(z,q);else{if(!X.writable)throw new TypeError("attempted to set read only private field");X.value=q}}var B=new WeakMap,P=new WeakMap,S=new WeakMap,_=new WeakMap,l=new WeakMap,y=new WeakMap,D=new WeakMap,M=new WeakSet,F=new WeakSet,N=new WeakSet,G=new WeakSet;class W extends k.AnnotationEditor{constructor(X){super({...X,name:"freeTextEditor"}),x(this,G),x(this,N),x(this,F),x(this,M),g(this,B,{writable:!0,value:this.editorDivBlur.bind(this)}),g(this,P,{writable:!0,value:this.editorDivFocus.bind(this)}),g(this,S,{writable:!0,value:this.editorDivKeydown.bind(this)}),g(this,_,{writable:!0,value:void 0}),g(this,l,{writable:!0,value:""}),g(this,y,{writable:!0,value:!1}),g(this,D,{writable:!0,value:void 0}),e(this,_,X.color||W._defaultColor||k.AnnotationEditor._defaultLineColor),e(this,D,X.fontSize||W._defaultFontSize)}static initialize(X){this._l10nPromise=new Map(["free_text_default_content","editor_free_text_aria_label"].map($=>[$,X.get($)]));const q=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(q.getPropertyValue("--freetext-padding"))}static updateDefaultParams(X,q){switch(X){case w.AnnotationEditorParamsType.FREETEXT_SIZE:W._defaultFontSize=q;break;case w.AnnotationEditorParamsType.FREETEXT_COLOR:W._defaultColor=q;break}}updateParams(X,q){switch(X){case w.AnnotationEditorParamsType.FREETEXT_SIZE:v(this,M,J).call(this,q);break;case w.AnnotationEditorParamsType.FREETEXT_COLOR:v(this,F,Y).call(this,q);break}}static get defaultPropertiesToUpdate(){return[[w.AnnotationEditorParamsType.FREETEXT_SIZE,W._defaultFontSize],[w.AnnotationEditorParamsType.FREETEXT_COLOR,W._defaultColor||k.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[w.AnnotationEditorParamsType.FREETEXT_SIZE,c(this,D)],[w.AnnotationEditorParamsType.FREETEXT_COLOR,c(this,_)]]}getInitialTranslation(){return[-W._internalPadding*this.parent.scaleFactor,-(W._internalPadding+c(this,D))*this.parent.scaleFactor]}rebuild(){super.rebuild(),this.div!==null&&(this.isAttachedToDOM||this.parent.add(this))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(w.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.enableEditing(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this.div.draggable=!1,this.editorDiv.addEventListener("keydown",c(this,S)),this.editorDiv.addEventListener("focus",c(this,P)),this.editorDiv.addEventListener("blur",c(this,B)))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.disableEditing(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.draggable=!0,this.editorDiv.removeEventListener("keydown",c(this,S)),this.editorDiv.removeEventListener("focus",c(this,P)),this.editorDiv.removeEventListener("blur",c(this,B)),this.div.focus(),this.isEditing=!1)}focusin(X){super.focusin(X),X.target!==this.editorDiv&&this.editorDiv.focus()}onceAdded(){this.width||(this.enableEditMode(),this.editorDiv.focus())}isEmpty(){return!this.editorDiv||this.editorDiv.innerText.trim()===""}remove(){this.isEditing=!1,this.parent.setEditingState(!0),super.remove()}commit(){super.commit(),c(this,y)||(e(this,y,!0),this.parent.addUndoableEditor(this)),this.disableEditMode(),e(this,l,v(this,N,V).call(this).trimEnd()),v(this,G,H).call(this)}shouldGetKeyboardEvents(){return this.isInEditMode()}dblclick(X){this.enableEditMode(),this.editorDiv.focus()}keydown(X){X.target===this.div&&X.key==="Enter"&&(this.enableEditMode(),this.editorDiv.focus())}editorDivKeydown(X){W._keyboardManager.exec(this,X)}editorDivFocus(X){this.isEditing=!0}editorDivBlur(X){this.isEditing=!1}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let X,q;this.width&&(X=this.x,q=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",`${this.id}-editor`),this.enableEditing(),W._l10nPromise.get("editor_free_text_aria_label").then(fe=>{var Q;return(Q=this.editorDiv)===null||Q===void 0?void 0:Q.setAttribute("aria-label",fe)}),W._l10nPromise.get("free_text_default_content").then(fe=>{var Q;return(Q=this.editorDiv)===null||Q===void 0?void 0:Q.setAttribute("default-content",fe)}),this.editorDiv.contentEditable=!0;const{style:$}=this.editorDiv;if($.fontSize=`calc(${c(this,D)}px * var(--scale-factor))`,$.color=c(this,_),this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,U.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[fe,Q]=this.parent.viewportBaseDimensions;this.setAt(X*fe,q*Q,this.width*fe,this.height*Q);for(const ie of c(this,l).split(` `)){const Te=document.createElement("div");Te.append(ie?document.createTextNode(ie):document.createElement("br")),this.editorDiv.append(Te)}this.div.draggable=!0,this.editorDiv.contentEditable=!1}else this.div.draggable=!1,this.editorDiv.contentEditable=!0;return this.div}get contentDiv(){return this.editorDiv}static deserialize(X,q){const $=super.deserialize(X,q);return e($,D,X.fontSize),e($,_,w.Util.makeHexColor(...X.color)),e($,l,X.value),$}serialize(){if(this.isEmpty())return null;const X=W._internalPadding*this.parent.scaleFactor,q=this.getRect(X,X),$=k.AnnotationEditor._colorManager.convert(getComputedStyle(this.editorDiv).color);return{annotationType:w.AnnotationEditorType.FREETEXT,color:$,fontSize:c(this,D),value:c(this,l),pageIndex:this.parent.pageIndex,rect:q,rotation:this.rotation}}}r.FreeTextEditor=W;function J(z){const X=$=>{this.editorDiv.style.fontSize=`calc(${$}px * var(--scale-factor))`,this.translate(0,-($-c(this,D))*this.parent.scaleFactor),e(this,D,$),v(this,G,H).call(this)},q=c(this,D);this.parent.addCommands({cmd:()=>{X(z)},undo:()=>{X(q)},mustExec:!0,type:w.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}function Y(z){const X=c(this,_);this.parent.addCommands({cmd:()=>{e(this,_,z),this.editorDiv.style.color=z},undo:()=>{e(this,_,X),this.editorDiv.style.color=X},mustExec:!0,type:w.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function V(){const z=this.editorDiv.getElementsByTagName("div");if(z.length===0)return this.editorDiv.innerText;const X=[];for(let q=0,$=z.length;q<$;q++){const Q=z[q].firstChild;(Q==null?void 0:Q.nodeName)==="#text"?X.push(Q.data):X.push("")}return X.join(` `)}function H(){const[z,X]=this.parent.viewportBaseDimensions,q=this.div.getBoundingClientRect();this.width=q.width/z,this.height=q.height/X}a(W,"_freeTextDefaultContent",""),a(W,"_l10nPromise",void 0),a(W,"_internalPadding",0),a(W,"_defaultColor",null),a(W,"_defaultFontSize",10),a(W,"_keyboardManager",new U.KeyboardManager([[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],W.prototype.commitOrRemove]])),a(W,"_type","freetext")},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.InkEditor=void 0,Object.defineProperty(r,"fitCurve",{enumerable:!0,get:function(){return k.fitCurve}});var w=m(1),U=m(131),k=m(150),x=m(132);function a(Xe,ze){c(Xe,ze),ze.add(Xe)}function g(Xe,ze,Ye){return ze in Xe?Object.defineProperty(Xe,ze,{value:Ye,enumerable:!0,configurable:!0,writable:!0}):Xe[ze]=Ye,Xe}function n(Xe,ze,Ye){c(Xe,ze),ze.set(Xe,Ye)}function c(Xe,ze){if(ze.has(Xe))throw new TypeError("Cannot initialize the same private elements twice on an object")}function R(Xe,ze,Ye){return v(Xe,ze),Ye}function v(Xe,ze){if(Xe!==ze)throw new TypeError("Private static access of wrong provenance")}function e(Xe,ze,Ye){var st=B(Xe,ze,"set");return L(Xe,st,Ye),Ye}function L(Xe,ze,Ye){if(ze.set)ze.set.call(Xe,Ye);else{if(!ze.writable)throw new TypeError("attempted to set read only private field");ze.value=Ye}}function O(Xe,ze){var Ye=B(Xe,ze,"get");return P(Xe,Ye)}function B(Xe,ze,Ye){if(!ze.has(Xe))throw new TypeError("attempted to "+Ye+" private field on non-instance");return ze.get(Xe)}function P(Xe,ze){return ze.get?ze.get.call(Xe):ze.value}function S(Xe,ze,Ye){if(!ze.has(Xe))throw new TypeError("attempted to get private field on non-instance");return Ye}const _=16;var l=new WeakMap,y=new WeakMap,D=new WeakMap,M=new WeakMap,F=new WeakMap,N=new WeakMap,G=new WeakMap,W=new WeakMap,J=new WeakMap,Y=new WeakMap,V=new WeakMap,H=new WeakMap,z=new WeakMap,X=new WeakMap,q=new WeakSet,$=new WeakSet,fe=new WeakSet,Q=new WeakSet,ie=new WeakSet,Te=new WeakSet,me=new WeakSet,K=new WeakSet,ce=new WeakSet,de=new WeakSet,Z=new WeakSet,ae=new WeakSet,he=new WeakSet,we=new WeakSet,_e=new WeakSet,ye=new WeakSet,se=new WeakSet,Ie=new WeakSet,Ce=new WeakSet,oe=new WeakSet,pe=new WeakSet,xe=new WeakSet;class Ne extends U.AnnotationEditor{constructor(ze){super({...ze,name:"inkEditor"}),a(this,xe),a(this,pe),a(this,oe),a(this,Ce),a(this,Ie),a(this,se),a(this,ye),a(this,_e),a(this,we),a(this,he),a(this,ae),a(this,Z),a(this,de),a(this,ce),a(this,K),a(this,me),a(this,Te),a(this,ie),a(this,Q),a(this,fe),a(this,$),a(this,q),n(this,l,{writable:!0,value:0}),n(this,y,{writable:!0,value:0}),n(this,D,{writable:!0,value:0}),n(this,M,{writable:!0,value:this.canvasPointermove.bind(this)}),n(this,F,{writable:!0,value:this.canvasPointerleave.bind(this)}),n(this,N,{writable:!0,value:this.canvasPointerup.bind(this)}),n(this,G,{writable:!0,value:this.canvasPointerdown.bind(this)}),n(this,W,{writable:!0,value:!1}),n(this,J,{writable:!0,value:!1}),n(this,Y,{writable:!0,value:null}),n(this,V,{writable:!0,value:null}),n(this,H,{writable:!0,value:0}),n(this,z,{writable:!0,value:0}),n(this,X,{writable:!0,value:null}),this.color=ze.color||null,this.thickness=ze.thickness||null,this.opacity=ze.opacity||null,this.paths=[],this.bezierPath2D=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0}static initialize(ze){this._l10nPromise=new Map(["editor_ink_canvas_aria_label","editor_ink_aria_label"].map(Ye=>[Ye,ze.get(Ye)]))}static updateDefaultParams(ze,Ye){switch(ze){case w.AnnotationEditorParamsType.INK_THICKNESS:Ne._defaultThickness=Ye;break;case w.AnnotationEditorParamsType.INK_COLOR:Ne._defaultColor=Ye;break;case w.AnnotationEditorParamsType.INK_OPACITY:Ne._defaultOpacity=Ye/100;break}}updateParams(ze,Ye){switch(ze){case w.AnnotationEditorParamsType.INK_THICKNESS:S(this,q,ke).call(this,Ye);break;case w.AnnotationEditorParamsType.INK_COLOR:S(this,$,De).call(this,Ye);break;case w.AnnotationEditorParamsType.INK_OPACITY:S(this,fe,Fe).call(this,Ye);break}}static get defaultPropertiesToUpdate(){return[[w.AnnotationEditorParamsType.INK_THICKNESS,Ne._defaultThickness],[w.AnnotationEditorParamsType.INK_COLOR,Ne._defaultColor||U.AnnotationEditor._defaultLineColor],[w.AnnotationEditorParamsType.INK_OPACITY,Math.round(Ne._defaultOpacity*100)]]}get propertiesToUpdate(){var ze;return[[w.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||Ne._defaultThickness],[w.AnnotationEditorParamsType.INK_COLOR,this.color||Ne._defaultColor||U.AnnotationEditor._defaultLineColor],[w.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*((ze=this.opacity)!==null&&ze!==void 0?ze:Ne._defaultOpacity))]]}rebuild(){super.rebuild(),this.div!==null&&(this.canvas||(S(this,Z,$e).call(this),S(this,ae,Ue).call(this)),this.isAttachedToDOM||(this.parent.add(this),S(this,he,He).call(this)),S(this,pe,at).call(this))}remove(){this.canvas!==null&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,O(this,V).disconnect(),e(this,V,null),super.remove())}enableEditMode(){O(this,W)||this.canvas===null||(super.enableEditMode(),this.div.draggable=!1,this.canvas.addEventListener("pointerdown",O(this,G)),this.canvas.addEventListener("pointerup",O(this,N)))}disableEditMode(){!this.isInEditMode()||this.canvas===null||(super.disableEditMode(),this.div.draggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",O(this,G)),this.canvas.removeEventListener("pointerup",O(this,N)))}onceAdded(){this.div.draggable=!this.isEmpty()}isEmpty(){return this.paths.length===0||this.paths.length===1&&this.paths[0].length===0}commit(){O(this,W)||(super.commit(),this.isEditing=!1,this.disableEditMode(),this.setInForeground(),e(this,W,!0),this.div.classList.add("disabled"),S(this,pe,at).call(this,!0),this.parent.addInkEditorIfNeeded(!0),this.parent.moveEditorInDOM(this),this.div.focus())}focusin(ze){super.focusin(ze),this.enableEditMode()}canvasPointerdown(ze){ze.button!==0||!this.isInEditMode()||O(this,W)||(this.setInForeground(),ze.type!=="mouse"&&this.div.focus(),ze.stopPropagation(),this.canvas.addEventListener("pointerleave",O(this,F)),this.canvas.addEventListener("pointermove",O(this,M)),S(this,Te,Le).call(this,ze.offsetX,ze.offsetY))}canvasPointermove(ze){ze.stopPropagation(),S(this,me,Oe).call(this,ze.offsetX,ze.offsetY)}canvasPointerup(ze){ze.button===0&&this.isInEditMode()&&this.currentPath.length!==0&&(ze.stopPropagation(),S(this,de,Ve).call(this,ze),this.setInBackground())}canvasPointerleave(ze){S(this,de,Ve).call(this,ze),this.setInBackground()}render(){if(this.div)return this.div;let ze,Ye;this.width&&(ze=this.x,Ye=this.y),super.render(),Ne._l10nPromise.get("editor_ink_aria_label").then(ut=>{var rt;return(rt=this.div)===null||rt===void 0?void 0:rt.setAttribute("aria-label",ut)});const[st,_t,ft,Ct]=S(this,Q,Pe).call(this);if(this.setAt(st,_t,0,0),this.setDims(ft,Ct),S(this,Z,$e).call(this),this.width){const[ut,rt]=this.parent.viewportBaseDimensions;this.setAt(ze*ut,Ye*rt,this.width*ut,this.height*rt),e(this,J,!0),S(this,he,He).call(this),this.setDims(this.width*ut,this.height*rt),S(this,ce,Ae).call(this),S(this,xe,ot).call(this),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return S(this,ae,Ue).call(this),this.div}setDimensions(ze,Ye){const st=Math.round(ze),_t=Math.round(Ye);if(O(this,H)===st&&O(this,z)===_t)return;e(this,H,st),e(this,z,_t),this.canvas.style.visibility="hidden",O(this,l)&&Math.abs(O(this,l)-ze/Ye)>.01&&(Ye=Math.ceil(ze/O(this,l)),this.setDims(ze,Ye));const[ft,Ct]=this.parent.viewportBaseDimensions;this.width=ze/ft,this.height=Ye/Ct,O(this,W)&&S(this,we,Qe).call(this,ze,Ye),S(this,he,He).call(this),S(this,ce,Ae).call(this),this.canvas.style.visibility="visible"}static deserialize(ze,Ye){const st=super.deserialize(ze,Ye);st.thickness=ze.thickness,st.color=w.Util.makeHexColor(...ze.color),st.opacity=ze.opacity;const[_t,ft]=Ye.pageDimensions,Ct=st.width*_t,ut=st.height*ft,rt=Ye.scaleFactor,mt=ze.thickness/2;e(st,l,Ct/ut),e(st,W,!0),e(st,H,Math.round(Ct)),e(st,z,Math.round(ut));for(const{bezier:dt}of ze.paths){const Nt=[];st.paths.push(Nt);let kt=rt*(dt[0]-mt),Ut=rt*(ut-dt[1]-mt);for(let Kt=2,qt=dt.length;Kt{this.thickness=Xe,S(this,pe,at).call(this)},undo:()=>{this.thickness=ze,S(this,pe,at).call(this)},mustExec:!0,type:w.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}function De(Xe){const ze=this.color;this.parent.addCommands({cmd:()=>{this.color=Xe,S(this,ce,Ae).call(this)},undo:()=>{this.color=ze,S(this,ce,Ae).call(this)},mustExec:!0,type:w.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}function Fe(Xe){Xe/=100;const ze=this.opacity;this.parent.addCommands({cmd:()=>{this.opacity=Xe,S(this,ce,Ae).call(this)},undo:()=>{this.opacity=ze,S(this,ce,Ae).call(this)},mustExec:!0,type:w.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}function Pe(){const{width:Xe,height:ze,rotation:Ye}=this.parent.viewport;switch(Ye){case 90:return[0,Xe,Xe,ze];case 180:return[Xe,ze,Xe,ze];case 270:return[ze,0,Xe,ze];default:return[0,0,Xe,ze]}}function qe(){this.ctx.lineWidth=this.thickness*this.parent.scaleFactor/this.scaleFactor,this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.miterLimit=10,this.ctx.strokeStyle=`${this.color}${(0,x.opacityToHex)(this.opacity)}`}function Le(Xe,ze){if(this.isEditing=!0,!O(this,J)){var Ye;e(this,J,!0),S(this,he,He).call(this),this.thickness||(this.thickness=Ne._defaultThickness),this.color||(this.color=Ne._defaultColor||U.AnnotationEditor._defaultLineColor),(Ye=this.opacity)!==null&&Ye!==void 0||(this.opacity=Ne._defaultOpacity)}this.currentPath.push([Xe,ze]),e(this,Y,null),S(this,ie,qe).call(this),this.ctx.beginPath(),this.ctx.moveTo(Xe,ze),e(this,X,()=>{O(this,X)&&(O(this,Y)&&(this.isEmpty()?(this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height)):S(this,ce,Ae).call(this),this.ctx.lineTo(...O(this,Y)),e(this,Y,null),this.ctx.stroke()),window.requestAnimationFrame(O(this,X)))}),window.requestAnimationFrame(O(this,X))}function Oe(Xe,ze){const[Ye,st]=this.currentPath.at(-1);Xe===Ye&&ze===st||(this.currentPath.push([Xe,ze]),e(this,Y,[Xe,ze]))}function Ee(Xe,ze){this.ctx.closePath(),e(this,X,null),Xe=Math.min(Math.max(Xe,0),this.canvas.width),ze=Math.min(Math.max(ze,0),this.canvas.height);const[Ye,st]=this.currentPath.at(-1);(Xe!==Ye||ze!==st)&&this.currentPath.push([Xe,ze]);let _t;if(this.currentPath.length!==1)_t=(0,k.fitCurve)(this.currentPath,30,null);else{const rt=[Xe,ze];_t=[[rt,rt.slice(),rt.slice(),rt]]}const ft=R(Ne,Ne,et).call(Ne,_t);this.currentPath.length=0;const Ct=()=>{this.paths.push(_t),this.bezierPath2D.push(ft),this.rebuild()},ut=()=>{this.paths.pop(),this.bezierPath2D.pop(),this.paths.length===0?this.remove():(this.canvas||(S(this,Z,$e).call(this),S(this,ae,Ue).call(this)),S(this,pe,at).call(this))};this.parent.addCommands({cmd:Ct,undo:ut,mustExec:!0})}function Ae(){if(this.isEmpty()){S(this,_e,Ze).call(this);return}S(this,ie,qe).call(this);const{canvas:Xe,ctx:ze}=this;ze.setTransform(1,0,0,1,0,0),ze.clearRect(0,0,Xe.width,Xe.height),S(this,_e,Ze).call(this);for(const Ye of this.bezierPath2D)ze.stroke(Ye)}function Ve(Xe){S(this,K,Ee).call(this,Xe.offsetX,Xe.offsetY),this.canvas.removeEventListener("pointerleave",O(this,F)),this.canvas.removeEventListener("pointermove",O(this,M)),this.parent.addToAnnotationStorage(this)}function $e(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",Ne._l10nPromise.get("editor_ink_canvas_aria_label").then(Xe=>{var ze;return(ze=this.canvas)===null||ze===void 0?void 0:ze.setAttribute("aria-label",Xe)}),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}function Ue(){e(this,V,new ResizeObserver(Xe=>{const ze=Xe[0].contentRect;ze.width&&ze.height&&this.setDimensions(ze.width,ze.height)})),O(this,V).observe(this.div)}function He(){if(!O(this,J))return;const[Xe,ze]=this.parent.viewportBaseDimensions;this.canvas.width=Math.ceil(this.width*Xe),this.canvas.height=Math.ceil(this.height*ze),S(this,_e,Ze).call(this)}function Qe(Xe,ze){const Ye=S(this,oe,Ke).call(this),st=(Xe-Ye)/O(this,D),_t=(ze-Ye)/O(this,y);this.scaleFactor=Math.min(st,_t)}function Ze(){const Xe=S(this,oe,Ke).call(this)/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+Xe,this.translationY*this.scaleFactor+Xe)}function et(Xe){const ze=new Path2D;for(let Ye=0,st=Xe.length;Ye0&&arguments[0]!==void 0?arguments[0]:!1;if(this.isEmpty())return;if(!O(this,W)){S(this,ce,Ae).call(this);return}const ze=S(this,Ce,nt).call(this),Ye=S(this,oe,Ke).call(this);e(this,D,Math.max(_,ze[2]-ze[0])),e(this,y,Math.max(_,ze[3]-ze[1]));const st=Math.ceil(Ye+O(this,D)*this.scaleFactor),_t=Math.ceil(Ye+O(this,y)*this.scaleFactor),[ft,Ct]=this.parent.viewportBaseDimensions;this.width=st/ft,this.height=_t/Ct,e(this,l,st/_t),S(this,xe,ot).call(this);const ut=this.translationX,rt=this.translationY;this.translationX=-ze[0],this.translationY=-ze[1],S(this,he,He).call(this),S(this,ce,Ae).call(this),e(this,H,st),e(this,z,_t),this.setDims(st,_t);const mt=Xe?Ye/this.scaleFactor/2:0;this.translate(ut-this.translationX-mt,rt-this.translationY-mt)}function ot(){const{style:Xe}=this.div;O(this,l)>=1?(Xe.minHeight=`${_}px`,Xe.minWidth=`${Math.round(O(this,l)*_)}px`):(Xe.minWidth=`${_}px`,Xe.minHeight=`${Math.round(_/O(this,l))}px`)}g(Ne,"_defaultColor",null),g(Ne,"_defaultOpacity",1),g(Ne,"_defaultThickness",1),g(Ne,"_l10nPromise",void 0),g(Ne,"_type","ink")},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.fitCurve=void 0;const w=m(151);r.fitCurve=w},b=>{function r(L,O,B){if(!Array.isArray(L))throw new TypeError("First argument should be an array");if(L.forEach(l=>{if(!Array.isArray(l)||l.some(y=>typeof y!="number")||l.length!==L[0].length)throw Error("Each point should be an array of numbers. Each point should have the same amount of numbers.")}),L=L.filter((l,y)=>y===0||!l.every((D,M)=>D===L[y-1][M])),L.length<2)return[];const P=L.length,S=R(L[1],L[0]),_=R(L[P-2],L[P-1]);return m(L,S,_,O,B)}function m(L,O,B,P,S){var l,y,D,M,F,N,G,W,J,Y,V,H,z;if(L.length===2)return H=v.vectorLen(v.subtract(L[0],L[1]))/3,l=[L[0],v.addArrays(L[0],v.mulItems(O,H)),v.addArrays(L[1],v.mulItems(B,H)),L[1]],[l];if(y=a(L),[l,M,N]=w(L,y,y,O,B,S),M===0||M.9999&&X<1.0001)break}F=M,G=N}return V=[],W=v.subtract(L[N-1],L[N+1]),W.every(X=>X===0)&&(W=v.subtract(L[N-1],L[N]),[W[0],W[1]]=[-W[1],W[0]]),J=v.normalize(W),Y=v.mulItems(J,-1),V=V.concat(m(L.slice(0,N+1),O,J,P,S)),V=V.concat(m(L.slice(N),Y,B,P,S)),V}function w(L,O,B,P,S,_){var l,y,D;return l=U(L,B,P,S),[y,D]=g(L,l,O),_&&_({bez:l,points:L,params:O,maxErr:y,maxPoint:D}),[l,y,D]}function U(L,O,B,P){var S,_,l,y,D,M,F,N,G,W,J,Y,V,H,z,X,q,$=L[0],fe=L[L.length-1];for(S=[$,null,null,fe],_=v.zeros_Xx2x2(O.length),V=0,H=O.length;Vx(L,O[S],P))}function x(L,O,B){var P=v.subtract(e.q(L,B),O),S=e.qprime(L,B),_=v.mulMatrix(P,S),l=v.sum(v.squareItems(S))+2*v.mulMatrix(P,e.qprimeprime(L,B));return l===0?B:B-_/l}function a(L){var O=[],B,P,S;return L.forEach((_,l)=>{B=l?P+v.vectorLen(v.subtract(_,S)):0,O.push(B),P=B,S=_}),O=O.map(_=>_/P),O}function g(L,O,B){var P,S,_,l,y,D,M,F;S=0,_=Math.floor(L.length/2);const N=n(O,10);for(y=0,D=L.length;yS&&(S=P,_=y);return[S,_]}var n=function(L,O){for(var B,P=[0],S=L[0],_=0,l=1;l<=O;l++)B=e.q(L,l/O),_+=v.vectorLen(v.subtract(B,S)),P.push(_),S=B;return P=P.map(y=>y/_),P};function c(L,O,B,P){if(O<0)return 0;if(O>1)return 1;for(var S,_,l,y,D,M=1;M<=P;M++)if(O<=B[M]){y=(M-1)/P,l=M/P,_=B[M-1],S=B[M],D=(O-_)/(S-_)*(l-y)+y;break}return D}function R(L,O){return v.normalize(v.subtract(L,O))}class v{static zeros_Xx2x2(O){for(var B=[];O--;)B.push([0,0]);return B}static mulItems(O,B){return O.map(P=>P*B)}static mulMatrix(O,B){return O.reduce((P,S,_)=>P+S*B[_],0)}static subtract(O,B){return O.map((P,S)=>P-B[S])}static addArrays(O,B){return O.map((P,S)=>P+B[S])}static addItems(O,B){return O.map(P=>P+B)}static sum(O){return O.reduce((B,P)=>B+P)}static dot(O,B){return v.mulMatrix(O,B)}static vectorLen(O){return Math.hypot(...O)}static divItems(O,B){return O.map(P=>P/B)}static squareItems(O){return O.map(B=>B*B)}static normalize(O){return this.divItems(O,this.vectorLen(O))}}class e{static q(O,B){var P=1-B,S=v.mulItems(O[0],P*P*P),_=v.mulItems(O[1],3*P*P*B),l=v.mulItems(O[2],3*P*B*B),y=v.mulItems(O[3],B*B*B);return v.addArrays(v.addArrays(S,_),v.addArrays(l,y))}static qprime(O,B){var P=1-B,S=v.mulItems(v.subtract(O[1],O[0]),3*P*P),_=v.mulItems(v.subtract(O[2],O[1]),6*P*B),l=v.mulItems(v.subtract(O[3],O[2]),3*B*B);return v.addArrays(v.addArrays(S,_),l)}static qprimeprime(O,B){return v.addArrays(v.mulItems(v.addArrays(v.subtract(O[2],v.mulItems(O[1],2)),O[0]),6*(1-B)),v.mulItems(v.addArrays(v.subtract(O[3],v.mulItems(O[2],2)),O[1]),6*B))}}b.exports=r,b.exports.fitCubic=m,b.exports.createTangent=R},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.AnnotationLayer=void 0;var w=m(1),U=m(133),k=m(130),x=m(153),a=m(154);function g(Z,ae,he){return n(Z,ae),he}function n(Z,ae){if(Z!==ae)throw new TypeError("Private static access of wrong provenance")}const c=1e3,R=9,v=new WeakSet;function e(Z){return{width:Z[2]-Z[0],height:Z[3]-Z[1]}}class L{static create(ae){switch(ae.data.annotationType){case w.AnnotationType.LINK:return new B(ae);case w.AnnotationType.TEXT:return new P(ae);case w.AnnotationType.WIDGET:switch(ae.data.fieldType){case"Tx":return new _(ae);case"Btn":return ae.data.radioButton?new y(ae):ae.data.checkBox?new l(ae):new D(ae);case"Ch":return new M(ae)}return new S(ae);case w.AnnotationType.POPUP:return new F(ae);case w.AnnotationType.FREETEXT:return new G(ae);case w.AnnotationType.LINE:return new W(ae);case w.AnnotationType.SQUARE:return new J(ae);case w.AnnotationType.CIRCLE:return new Y(ae);case w.AnnotationType.POLYLINE:return new V(ae);case w.AnnotationType.CARET:return new z(ae);case w.AnnotationType.INK:return new X(ae);case w.AnnotationType.POLYGON:return new H(ae);case w.AnnotationType.HIGHLIGHT:return new q(ae);case w.AnnotationType.UNDERLINE:return new $(ae);case w.AnnotationType.SQUIGGLY:return new fe(ae);case w.AnnotationType.STRIKEOUT:return new Q(ae);case w.AnnotationType.STAMP:return new ie(ae);case w.AnnotationType.FILEATTACHMENT:return new Te(ae);default:return new O(ae)}}}class O{constructor(ae){let{isRenderable:he=!1,ignoreBorder:we=!1,createQuadrilaterals:_e=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.isRenderable=he,this.data=ae.data,this.layer=ae.layer,this.page=ae.page,this.viewport=ae.viewport,this.linkService=ae.linkService,this.downloadManager=ae.downloadManager,this.imageResourcesPath=ae.imageResourcesPath,this.renderForms=ae.renderForms,this.svgFactory=ae.svgFactory,this.annotationStorage=ae.annotationStorage,this.enableScripting=ae.enableScripting,this.hasJSActions=ae.hasJSActions,this._fieldObjects=ae.fieldObjects,this._mouseState=ae.mouseState,he&&(this.container=this._createContainer(we)),_e&&(this.quadrilaterals=this._createQuadrilaterals(we))}_createContainer(){let ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const he=this.data,we=this.page,_e=this.viewport,ye=document.createElement("section"),{width:se,height:Ie}=e(he.rect),[Ce,oe,pe,xe]=_e.viewBox,Ne=pe-Ce,ke=xe-oe;ye.setAttribute("data-annotation-id",he.id);const De=w.Util.normalizeRect([he.rect[0],we.view[3]-he.rect[1]+we.view[1],he.rect[2],we.view[3]-he.rect[3]+we.view[1]]);if(!ae&&he.borderStyle.width>0){ye.style.borderWidth=`${he.borderStyle.width}px`;const Pe=he.borderStyle.horizontalCornerRadius,qe=he.borderStyle.verticalCornerRadius;if(Pe>0||qe>0){const Oe=`calc(${Pe}px * var(--scale-factor)) / calc(${qe}px * var(--scale-factor))`;ye.style.borderRadius=Oe}else if(this instanceof y){const Oe=`calc(${se}px * var(--scale-factor)) / calc(${Ie}px * var(--scale-factor))`;ye.style.borderRadius=Oe}switch(he.borderStyle.style){case w.AnnotationBorderStyleType.SOLID:ye.style.borderStyle="solid";break;case w.AnnotationBorderStyleType.DASHED:ye.style.borderStyle="dashed";break;case w.AnnotationBorderStyleType.BEVELED:(0,w.warn)("Unimplemented border style: beveled");break;case w.AnnotationBorderStyleType.INSET:(0,w.warn)("Unimplemented border style: inset");break;case w.AnnotationBorderStyleType.UNDERLINE:ye.style.borderBottomStyle="solid";break}const Le=he.borderColor||null;Le?ye.style.borderColor=w.Util.makeHexColor(Le[0]|0,Le[1]|0,Le[2]|0):ye.style.borderWidth=0}ye.style.left=`${100*(De[0]-Ce)/Ne}%`,ye.style.top=`${100*(De[1]-oe)/ke}%`;const{rotation:Fe}=he;return he.hasOwnCanvas||Fe===0?(ye.style.width=`${100*se/Ne}%`,ye.style.height=`${100*Ie/ke}%`):this.setRotation(Fe,ye),ye}setRotation(ae){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.container;const[we,_e,ye,se]=this.viewport.viewBox,Ie=ye-we,Ce=se-_e,{width:oe,height:pe}=e(this.data.rect);let xe,Ne;ae%180===0?(xe=100*oe/Ie,Ne=100*pe/Ce):(xe=100*pe/Ie,Ne=100*oe/Ce),he.style.width=`${xe}%`,he.style.height=`${Ne}%`,he.setAttribute("data-main-rotation",(360-ae)%360)}get _commonActions(){const ae=(he,we,_e)=>{const ye=_e.detail[he];_e.target.style[we]=x.ColorConverters[`${ye[0]}_HTML`](ye.slice(1))};return(0,w.shadow)(this,"_commonActions",{display:he=>{const we=he.detail.display%2===1;this.container.style.visibility=we?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:we,print:he.detail.display===0||he.detail.display===3})},print:he=>{this.annotationStorage.setValue(this.data.id,{print:he.detail.print})},hidden:he=>{this.container.style.visibility=he.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:he.detail.hidden})},focus:he=>{setTimeout(()=>he.target.focus({preventScroll:!1}),0)},userName:he=>{he.target.title=he.detail.userName},readonly:he=>{he.detail.readonly?he.target.setAttribute("readonly",""):he.target.removeAttribute("readonly")},required:he=>{this._setRequired(he.target,he.detail.required)},bgColor:he=>{ae("bgColor","backgroundColor",he)},fillColor:he=>{ae("fillColor","backgroundColor",he)},fgColor:he=>{ae("fgColor","color",he)},textColor:he=>{ae("textColor","color",he)},borderColor:he=>{ae("borderColor","borderColor",he)},strokeColor:he=>{ae("strokeColor","borderColor",he)},rotation:he=>{const we=he.detail.rotation;this.setRotation(we),this.annotationStorage.setValue(this.data.id,{rotation:we})}})}_dispatchEventFromSandbox(ae,he){const we=this._commonActions;for(const _e of Object.keys(he.detail)){const ye=ae[_e]||we[_e];ye&&ye(he)}}_setDefaultPropertiesFromJS(ae){if(!this.enableScripting)return;const he=this.annotationStorage.getRawValue(this.data.id);if(!he)return;const we=this._commonActions;for(const[_e,ye]of Object.entries(he)){const se=we[_e];if(se){const Ie={detail:{[_e]:ye},target:ae};se(Ie),delete he[_e]}}}_createQuadrilaterals(){let ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.data.quadPoints)return null;const he=[],we=this.data.rect;for(const _e of this.data.quadPoints)this.data.rect=[_e[2].x,_e[2].y,_e[1].x,_e[1].y],he.push(this._createContainer(ae));return this.data.rect=we,he}_createPopup(ae,he){let we=this.container;this.quadrilaterals&&(ae=ae||this.quadrilaterals,we=this.quadrilaterals[0]),ae||(ae=document.createElement("div"),ae.className="popupTriggerArea",we.append(ae));const ye=new N({container:we,trigger:ae,color:he.color,titleObj:he.titleObj,modificationDate:he.modificationDate,contentsObj:he.contentsObj,richText:he.richText,hideWrapper:!0}).render();ye.style.left="100%",we.append(ye)}_renderQuadrilaterals(ae){for(const he of this.quadrilaterals)he.className=ae;return this.quadrilaterals}render(){(0,w.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(ae){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const we=[];if(this._fieldObjects){const _e=this._fieldObjects[ae];if(_e)for(const{page:ye,id:se,exportValues:Ie}of _e){if(ye===-1||se===he)continue;const Ce=typeof Ie=="string"?Ie:null,oe=document.querySelector(`[data-element-id="${se}"]`);if(oe&&!v.has(oe)){(0,w.warn)(`_getElementsByName - element not allowed: ${se}`);continue}we.push({id:se,exportValue:Ce,domElement:oe})}return we}for(const _e of document.getElementsByName(ae)){const{id:ye,exportValue:se}=_e;ye!==he&&v.has(_e)&&we.push({id:ye,exportValue:se,domElement:_e})}return we}static get platform(){const ae=typeof navigator<"u"?navigator.platform:"";return(0,w.shadow)(this,"platform",{isWin:ae.includes("Win"),isMac:ae.includes("Mac")})}}class B extends O{constructor(ae){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;super(ae,{isRenderable:!0,ignoreBorder:!!(he!=null&&he.ignoreBorder),createQuadrilaterals:!0}),this.isTooltipOnly=ae.data.isTooltipOnly}render(){const{data:ae,linkService:he}=this,we=document.createElement("a");we.setAttribute("data-element-id",ae.id);let _e=!1;return ae.url?(he.addLinkAttributes(we,ae.url,ae.newWindow),_e=!0):ae.action?(this._bindNamedAction(we,ae.action),_e=!0):ae.dest?(this._bindLink(we,ae.dest),_e=!0):(ae.actions&&(ae.actions.Action||ae.actions["Mouse Up"]||ae.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(we,ae),_e=!0),ae.resetForm?(this._bindResetFormAction(we,ae.resetForm),_e=!0):this.isTooltipOnly&&!_e&&(this._bindLink(we,""),_e=!0)),this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map((ye,se)=>{const Ie=se===0?we:we.cloneNode();return ye.append(Ie),ye}):(this.container.className="linkAnnotation",_e&&this.container.append(we),this.container)}_bindLink(ae,he){ae.href=this.linkService.getDestinationHash(he),ae.onclick=()=>(he&&this.linkService.goToDestination(he),!1),(he||he==="")&&(ae.className="internalLink")}_bindNamedAction(ae,he){ae.href=this.linkService.getAnchorUrl(""),ae.onclick=()=>(this.linkService.executeNamedAction(he),!1),ae.className="internalLink"}_bindJSAction(ae,he){ae.href=this.linkService.getAnchorUrl("");const we=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const _e of Object.keys(he.actions)){const ye=we.get(_e);ye&&(ae[ye]=()=>{var se;return(se=this.linkService.eventBus)===null||se===void 0||se.dispatch("dispatcheventinsandbox",{source:this,detail:{id:he.id,name:_e}}),!1})}ae.onclick||(ae.onclick=()=>!1),ae.className="internalLink"}_bindResetFormAction(ae,he){const we=ae.onclick;if(we||(ae.href=this.linkService.getAnchorUrl("")),ae.className="internalLink",!this._fieldObjects){(0,w.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),we||(ae.onclick=()=>!1);return}ae.onclick=()=>{we&&we();const{fields:_e,refs:ye,include:se}=he,Ie=[];if(_e.length!==0||ye.length!==0){const xe=new Set(ye);for(const Ne of _e){const ke=this._fieldObjects[Ne]||[];for(const{id:De}of ke)xe.add(De)}for(const Ne of Object.values(this._fieldObjects))for(const ke of Ne)xe.has(ke.id)===se&&Ie.push(ke)}else for(const xe of Object.values(this._fieldObjects))Ie.push(...xe);const Ce=this.annotationStorage,oe=[];for(const xe of Ie){const{id:Ne}=xe;switch(oe.push(Ne),xe.type){case"text":{const De=xe.defaultValue||"";Ce.setValue(Ne,{value:De});break}case"checkbox":case"radiobutton":{const De=xe.defaultValue===xe.exportValues;Ce.setValue(Ne,{value:De});break}case"combobox":case"listbox":{const De=xe.defaultValue||"";Ce.setValue(Ne,{value:De});break}default:continue}const ke=document.querySelector(`[data-element-id="${Ne}"]`);if(ke){if(!v.has(ke)){(0,w.warn)(`_bindResetFormAction - element not allowed: ${Ne}`);continue}}else continue;ke.dispatchEvent(new Event("resetform"))}if(this.enableScripting){var pe;(pe=this.linkService.eventBus)===null||pe===void 0||pe.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:oe,name:"ResetForm"}})}return!1}}}class P extends O{constructor(ae){var he,we,_e;const ye=!!(ae.data.hasPopup||(he=ae.data.titleObj)!==null&&he!==void 0&&he.str||(we=ae.data.contentsObj)!==null&&we!==void 0&&we.str||(_e=ae.data.richText)!==null&&_e!==void 0&&_e.str);super(ae,{isRenderable:ye})}render(){this.container.className="textAnnotation";const ae=document.createElement("img");return ae.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",ae.alt="[{{type}} Annotation]",ae.dataset.l10nId="text_annotation_type",ae.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(ae,this.data),this.container.append(ae),this.container}}class S extends O{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(ae){const{isWin:he,isMac:we}=O.platform;return he&&ae.ctrlKey||we&&ae.metaKey}_setEventListener(ae,he,we,_e){he.includes("mouse")?ae.addEventListener(he,ye=>{var se;(se=this.linkService.eventBus)===null||se===void 0||se.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:we,value:_e(ye),shift:ye.shiftKey,modifier:this._getKeyModifier(ye)}})}):ae.addEventListener(he,ye=>{var se;(se=this.linkService.eventBus)===null||se===void 0||se.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:we,value:_e(ye)}})})}_setEventListeners(ae,he,we){for(const[ye,se]of he){var _e;(se==="Action"||(_e=this.data.actions)!==null&&_e!==void 0&&_e[se])&&this._setEventListener(ae,ye,se,we)}}_setBackgroundColor(ae){const he=this.data.backgroundColor||null;ae.style.backgroundColor=he===null?"transparent":w.Util.makeHexColor(he[0],he[1],he[2])}_setTextStyle(ae){const he=["left","center","right"],{fontColor:we}=this.data.defaultAppearanceData,_e=this.data.defaultAppearanceData.fontSize||R,ye=ae.style;let se;if(this.data.multiLine){const Ie=Math.abs(this.data.rect[3]-this.data.rect[1]),Ce=Math.round(Ie/(w.LINE_FACTOR*_e))||1,oe=Ie/Ce;se=Math.min(_e,Math.round(oe/w.LINE_FACTOR))}else{const Ie=Math.abs(this.data.rect[3]-this.data.rect[1]);se=Math.min(_e,Math.round(Ie/w.LINE_FACTOR))}ye.fontSize=`calc(${se}px * var(--scale-factor))`,ye.color=w.Util.makeHexColor(we[0],we[1],we[2]),this.data.textAlignment!==null&&(ye.textAlign=he[this.data.textAlignment])}_setRequired(ae,he){he?ae.setAttribute("required",!0):ae.removeAttribute("required"),ae.setAttribute("aria-required",he)}}class _ extends S{constructor(ae){const he=ae.renderForms||!ae.data.hasAppearance&&!!ae.data.fieldValue;super(ae,{isRenderable:he})}setPropertyOnSiblings(ae,he,we,_e){const ye=this.annotationStorage;for(const se of this._getElementsByName(ae.name,ae.id))se.domElement&&(se.domElement[he]=we),ye.setValue(se.id,{[_e]:we})}render(){const ae=this.annotationStorage,he=this.data.id;this.container.className="textWidgetAnnotation";let we=null;if(this.renderForms){const ye=ae.getValue(he,{value:this.data.fieldValue});let se=ye.formattedValue||ye.value||"";const Ie=ae.getValue(he,{charLimit:this.data.maxLen}).charLimit;Ie&&se.length>Ie&&(se=se.slice(0,Ie));const Ce={userValue:se,formattedValue:null,valueOnFocus:""};this.data.multiLine?(we=document.createElement("textarea"),we.textContent=se,this.data.doNotScroll&&(we.style.overflowY="hidden")):(we=document.createElement("input"),we.type="text",we.setAttribute("value",se),this.data.doNotScroll&&(we.style.overflowX="hidden")),v.add(we),we.setAttribute("data-element-id",he),we.disabled=this.data.readOnly,we.name=this.data.fieldName,we.tabIndex=c,this._setRequired(we,this.data.required),Ie&&(we.maxLength=Ie),we.addEventListener("input",pe=>{ae.setValue(he,{value:pe.target.value}),this.setPropertyOnSiblings(we,"value",pe.target.value,"value")}),we.addEventListener("resetform",pe=>{var xe;const Ne=(xe=this.data.defaultFieldValue)!==null&&xe!==void 0?xe:"";we.value=Ce.userValue=Ne,Ce.formattedValue=null});let oe=pe=>{const{formattedValue:xe}=Ce;xe!=null&&(pe.target.value=xe),pe.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){var _e;we.addEventListener("focus",xe=>{Ce.userValue&&(xe.target.value=Ce.userValue),Ce.valueOnFocus=xe.target.value}),we.addEventListener("updatefromsandbox",xe=>{const Ne={value(ke){var De;Ce.userValue=(De=ke.detail.value)!==null&&De!==void 0?De:"",ae.setValue(he,{value:Ce.userValue.toString()}),ke.target.value=Ce.userValue},formattedValue(ke){const{formattedValue:De}=ke.detail;Ce.formattedValue=De,De!=null&&ke.target!==document.activeElement&&(ke.target.value=De),ae.setValue(he,{formattedValue:De})},selRange(ke){ke.target.setSelectionRange(...ke.detail.selRange)},charLimit:ke=>{var De;const{charLimit:Fe}=ke.detail,{target:Pe}=ke;if(Fe===0){Pe.removeAttribute("maxLength");return}Pe.setAttribute("maxLength",Fe);let qe=Ce.userValue;!qe||qe.length<=Fe||(qe=qe.slice(0,Fe),Pe.value=Ce.userValue=qe,ae.setValue(he,{value:qe}),(De=this.linkService.eventBus)===null||De===void 0||De.dispatch("dispatcheventinsandbox",{source:this,detail:{id:he,name:"Keystroke",value:qe,willCommit:!0,commitKey:1,selStart:Pe.selectionStart,selEnd:Pe.selectionEnd}}))}};this._dispatchEventFromSandbox(Ne,xe)}),we.addEventListener("keydown",xe=>{var Ne;let ke=-1;if(xe.key==="Escape"?ke=0:xe.key==="Enter"?ke=2:xe.key==="Tab"&&(ke=3),ke===-1)return;const{value:De}=xe.target;Ce.valueOnFocus!==De&&(Ce.userValue=De,(Ne=this.linkService.eventBus)===null||Ne===void 0||Ne.dispatch("dispatcheventinsandbox",{source:this,detail:{id:he,name:"Keystroke",value:De,willCommit:!0,commitKey:ke,selStart:xe.target.selectionStart,selEnd:xe.target.selectionEnd}}))});const pe=oe;oe=null,we.addEventListener("blur",xe=>{const{value:Ne}=xe.target;if(Ce.userValue=Ne,this._mouseState.isDown&&Ce.valueOnFocus!==Ne){var ke;(ke=this.linkService.eventBus)===null||ke===void 0||ke.dispatch("dispatcheventinsandbox",{source:this,detail:{id:he,name:"Keystroke",value:Ne,willCommit:!0,commitKey:1,selStart:xe.target.selectionStart,selEnd:xe.target.selectionEnd}})}pe(xe)}),(_e=this.data.actions)!==null&&_e!==void 0&&_e.Keystroke&&we.addEventListener("beforeinput",xe=>{var Ne;const{data:ke,target:De}=xe,{value:Fe,selectionStart:Pe,selectionEnd:qe}=De;let Le=Pe,Oe=qe;switch(xe.inputType){case"deleteWordBackward":{const Ee=Fe.substring(0,Pe).match(/\w*[^\w]*$/);Ee&&(Le-=Ee[0].length);break}case"deleteWordForward":{const Ee=Fe.substring(Pe).match(/^[^\w]*\w*/);Ee&&(Oe+=Ee[0].length);break}case"deleteContentBackward":Pe===qe&&(Le-=1);break;case"deleteContentForward":Pe===qe&&(Oe+=1);break}xe.preventDefault(),(Ne=this.linkService.eventBus)===null||Ne===void 0||Ne.dispatch("dispatcheventinsandbox",{source:this,detail:{id:he,name:"Keystroke",value:Fe,change:ke||"",willCommit:!1,selStart:Le,selEnd:Oe}})}),this._setEventListeners(we,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],xe=>xe.target.value)}if(oe&&we.addEventListener("blur",oe),this.data.comb){const xe=(this.data.rect[2]-this.data.rect[0])/Ie;we.classList.add("comb"),we.style.letterSpacing=`calc(${xe}px * var(--scale-factor) - 1ch)`}}else we=document.createElement("div"),we.textContent=this.data.fieldValue,we.style.verticalAlign="middle",we.style.display="table-cell";return this._setTextStyle(we),this._setBackgroundColor(we),this._setDefaultPropertiesFromJS(we),this.container.append(we),this.container}}class l extends S{constructor(ae){super(ae,{isRenderable:ae.renderForms})}render(){const ae=this.annotationStorage,he=this.data,we=he.id;let _e=ae.getValue(we,{value:he.exportValue===he.fieldValue}).value;typeof _e=="string"&&(_e=_e!=="Off",ae.setValue(we,{value:_e})),this.container.className="buttonWidgetAnnotation checkBox";const ye=document.createElement("input");return v.add(ye),ye.setAttribute("data-element-id",we),ye.disabled=he.readOnly,this._setRequired(ye,this.data.required),ye.type="checkbox",ye.name=he.fieldName,_e&&ye.setAttribute("checked",!0),ye.setAttribute("exportValue",he.exportValue),ye.tabIndex=c,ye.addEventListener("change",se=>{const{name:Ie,checked:Ce}=se.target;for(const oe of this._getElementsByName(Ie,we)){const pe=Ce&&oe.exportValue===he.exportValue;oe.domElement&&(oe.domElement.checked=pe),ae.setValue(oe.id,{value:pe})}ae.setValue(we,{value:Ce})}),ye.addEventListener("resetform",se=>{const Ie=he.defaultFieldValue||"Off";se.target.checked=Ie===he.exportValue}),this.enableScripting&&this.hasJSActions&&(ye.addEventListener("updatefromsandbox",se=>{const Ie={value(Ce){Ce.target.checked=Ce.detail.value!=="Off",ae.setValue(we,{value:Ce.target.checked})}};this._dispatchEventFromSandbox(Ie,se)}),this._setEventListeners(ye,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],se=>se.target.checked)),this._setBackgroundColor(ye),this._setDefaultPropertiesFromJS(ye),this.container.append(ye),this.container}}class y extends S{constructor(ae){super(ae,{isRenderable:ae.renderForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";const ae=this.annotationStorage,he=this.data,we=he.id;let _e=ae.getValue(we,{value:he.fieldValue===he.buttonValue}).value;typeof _e=="string"&&(_e=_e!==he.buttonValue,ae.setValue(we,{value:_e}));const ye=document.createElement("input");if(v.add(ye),ye.setAttribute("data-element-id",we),ye.disabled=he.readOnly,this._setRequired(ye,this.data.required),ye.type="radio",ye.name=he.fieldName,_e&&ye.setAttribute("checked",!0),ye.tabIndex=c,ye.addEventListener("change",se=>{const{name:Ie,checked:Ce}=se.target;for(const oe of this._getElementsByName(Ie,we))ae.setValue(oe.id,{value:!1});ae.setValue(we,{value:Ce})}),ye.addEventListener("resetform",se=>{const Ie=he.defaultFieldValue;se.target.checked=Ie!=null&&Ie===he.buttonValue}),this.enableScripting&&this.hasJSActions){const se=he.buttonValue;ye.addEventListener("updatefromsandbox",Ie=>{const Ce={value:oe=>{const pe=se===oe.detail.value;for(const xe of this._getElementsByName(oe.target.name)){const Ne=pe&&xe.id===we;xe.domElement&&(xe.domElement.checked=Ne),ae.setValue(xe.id,{value:Ne})}}};this._dispatchEventFromSandbox(Ce,Ie)}),this._setEventListeners(ye,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],Ie=>Ie.target.checked)}return this._setBackgroundColor(ye),this._setDefaultPropertiesFromJS(ye),this.container.append(ye),this.container}}class D extends B{constructor(ae){super(ae,{ignoreBorder:ae.data.hasAppearance})}render(){const ae=super.render();ae.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(ae.title=this.data.alternativeText);const he=ae.lastChild;return this.enableScripting&&this.hasJSActions&&he&&(this._setDefaultPropertiesFromJS(he),he.addEventListener("updatefromsandbox",we=>{this._dispatchEventFromSandbox({},we)})),ae}}class M extends S{constructor(ae){super(ae,{isRenderable:ae.renderForms})}render(){this.container.className="choiceWidgetAnnotation";const ae=this.annotationStorage,he=this.data.id,we=ae.getValue(he,{value:this.data.fieldValue}),_e=document.createElement("select");v.add(_e),_e.setAttribute("data-element-id",he),_e.disabled=this.data.readOnly,this._setRequired(_e,this.data.required),_e.name=this.data.fieldName,_e.tabIndex=c;let ye=this.data.combo&&this.data.options.length>0;this.data.combo||(_e.size=this.data.options.length,this.data.multiSelect&&(_e.multiple=!0)),_e.addEventListener("resetform",oe=>{const pe=this.data.defaultFieldValue;for(const xe of _e.options)xe.selected=xe.value===pe});for(const oe of this.data.options){const pe=document.createElement("option");pe.textContent=oe.displayValue,pe.value=oe.exportValue,we.value.includes(oe.exportValue)&&(pe.setAttribute("selected",!0),ye=!1),_e.append(pe)}let se=null;if(ye){const oe=document.createElement("option");oe.value=" ",oe.setAttribute("hidden",!0),oe.setAttribute("selected",!0),_e.prepend(oe),se=()=>{oe.remove(),_e.removeEventListener("input",se),se=null},_e.addEventListener("input",se)}const Ie=(oe,pe)=>{const xe=pe?"value":"textContent",Ne=oe.target.options;return oe.target.multiple?Array.prototype.filter.call(Ne,ke=>ke.selected).map(ke=>ke[xe]):Ne.selectedIndex===-1?null:Ne[Ne.selectedIndex][xe]},Ce=oe=>{const pe=oe.target.options;return Array.prototype.map.call(pe,xe=>({displayValue:xe.textContent,exportValue:xe.value}))};return this.enableScripting&&this.hasJSActions?(_e.addEventListener("updatefromsandbox",oe=>{const pe={value(xe){var Ne;(Ne=se)===null||Ne===void 0||Ne();const ke=xe.detail.value,De=new Set(Array.isArray(ke)?ke:[ke]);for(const Fe of _e.options)Fe.selected=De.has(Fe.value);ae.setValue(he,{value:Ie(xe,!0)})},multipleSelection(xe){_e.multiple=!0},remove(xe){const Ne=_e.options,ke=xe.detail.remove;Ne[ke].selected=!1,_e.remove(ke),Ne.length>0&&Array.prototype.findIndex.call(Ne,Fe=>Fe.selected)===-1&&(Ne[0].selected=!0),ae.setValue(he,{value:Ie(xe,!0),items:Ce(xe)})},clear(xe){for(;_e.length!==0;)_e.remove(0);ae.setValue(he,{value:null,items:[]})},insert(xe){const{index:Ne,displayValue:ke,exportValue:De}=xe.detail.insert,Fe=_e.children[Ne],Pe=document.createElement("option");Pe.textContent=ke,Pe.value=De,Fe?Fe.before(Pe):_e.append(Pe),ae.setValue(he,{value:Ie(xe,!0),items:Ce(xe)})},items(xe){const{items:Ne}=xe.detail;for(;_e.length!==0;)_e.remove(0);for(const ke of Ne){const{displayValue:De,exportValue:Fe}=ke,Pe=document.createElement("option");Pe.textContent=De,Pe.value=Fe,_e.append(Pe)}_e.options.length>0&&(_e.options[0].selected=!0),ae.setValue(he,{value:Ie(xe,!0),items:Ce(xe)})},indices(xe){const Ne=new Set(xe.detail.indices);for(const ke of xe.target.options)ke.selected=Ne.has(ke.index);ae.setValue(he,{value:Ie(xe,!0)})},editable(xe){xe.target.disabled=!xe.detail.editable}};this._dispatchEventFromSandbox(pe,oe)}),_e.addEventListener("input",oe=>{var pe;const xe=Ie(oe,!0),Ne=Ie(oe,!1);ae.setValue(he,{value:xe}),(pe=this.linkService.eventBus)===null||pe===void 0||pe.dispatch("dispatcheventinsandbox",{source:this,detail:{id:he,name:"Keystroke",value:Ne,changeEx:xe,willCommit:!0,commitKey:1,keyDown:!1}})}),this._setEventListeners(_e,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],oe=>oe.target.checked)):_e.addEventListener("input",function(oe){ae.setValue(he,{value:Ie(oe,!0)})}),this.data.combo&&this._setTextStyle(_e),this._setBackgroundColor(_e),this._setDefaultPropertiesFromJS(_e),this.container.append(_e),this.container}}class F extends O{constructor(ae){var he,we,_e;const ye=!!((he=ae.data.titleObj)!==null&&he!==void 0&&he.str||(we=ae.data.contentsObj)!==null&&we!==void 0&&we.str||(_e=ae.data.richText)!==null&&_e!==void 0&&_e.str);super(ae,{isRenderable:ye})}render(){const ae=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",ae.includes(this.data.parentType))return this.container;const he=`[data-annotation-id="${this.data.parentId}"]`,we=this.layer.querySelectorAll(he);if(we.length===0)return this.container;const _e=new N({container:this.container,trigger:Array.from(we),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),ye=this.page,se=w.Util.normalizeRect([this.data.parentRect[0],ye.view[3]-this.data.parentRect[1]+ye.view[1],this.data.parentRect[2],ye.view[3]-this.data.parentRect[3]+ye.view[1]]),Ie=se[0]+this.data.parentRect[2]-this.data.parentRect[0],Ce=se[1],[oe,pe,xe,Ne]=this.viewport.viewBox,ke=xe-oe,De=Ne-pe;return this.container.style.left=`${100*(Ie-oe)/ke}%`,this.container.style.top=`${100*(Ce-pe)/De}%`,this.container.append(_e.render()),this.container}}class N{constructor(ae){this.container=ae.container,this.trigger=ae.trigger,this.color=ae.color,this.titleObj=ae.titleObj,this.modificationDate=ae.modificationDate,this.contentsObj=ae.contentsObj,this.richText=ae.richText,this.hideWrapper=ae.hideWrapper||!1,this.pinned=!1}render(){var ae,he;const _e=document.createElement("div");_e.className="popupWrapper",this.hideElement=this.hideWrapper?_e:this.container,this.hideElement.hidden=!0;const ye=document.createElement("div");ye.className="popup";const se=this.color;if(se){const oe=.7*(255-se[0])+se[0],pe=.7*(255-se[1])+se[1],xe=.7*(255-se[2])+se[2];ye.style.backgroundColor=w.Util.makeHexColor(oe|0,pe|0,xe|0)}const Ie=document.createElement("h1");Ie.dir=this.titleObj.dir,Ie.textContent=this.titleObj.str,ye.append(Ie);const Ce=U.PDFDateString.toDateObject(this.modificationDate);if(Ce){const oe=document.createElement("span");oe.className="popupDate",oe.textContent="{{date}}, {{time}}",oe.dataset.l10nId="annotation_date_string",oe.dataset.l10nArgs=JSON.stringify({date:Ce.toLocaleDateString(),time:Ce.toLocaleTimeString()}),ye.append(oe)}if((ae=this.richText)!==null&&ae!==void 0&&ae.str&&(!((he=this.contentsObj)!==null&&he!==void 0&&he.str)||this.contentsObj.str===this.richText.str))a.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:ye}),ye.lastChild.className="richText popupContent";else{const oe=this._formatContents(this.contentsObj);ye.append(oe)}Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const oe of this.trigger)oe.addEventListener("click",this._toggle.bind(this)),oe.addEventListener("mouseover",this._show.bind(this,!1)),oe.addEventListener("mouseout",this._hide.bind(this,!1));return ye.addEventListener("click",this._hide.bind(this,!0)),_e.append(ye),_e}_formatContents(ae){let{str:he,dir:we}=ae;const _e=document.createElement("p");_e.className="popupContent",_e.dir=we;const ye=he.split(/(?:\r\n?|\n)/);for(let se=0,Ie=ye.length;se0&&arguments[0]!==void 0?arguments[0]:!1)&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex=parseInt(this.container.style.zIndex)+1e3)}_hide(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)&&(this.pinned=!1),!this.hideElement.hidden&&!this.pinned&&(this.hideElement.hidden=!0,this.container.style.zIndex=parseInt(this.container.style.zIndex)-1e3)}}class G extends O{constructor(ae){var he,we,_e;const ye=!!(ae.data.hasPopup||(he=ae.data.titleObj)!==null&&he!==void 0&&he.str||(we=ae.data.contentsObj)!==null&&we!==void 0&&we.str||(_e=ae.data.richText)!==null&&_e!==void 0&&_e.str);super(ae,{isRenderable:ye,ignoreBorder:!0}),this.textContent=ae.data.textContent}render(){if(this.container.className="freeTextAnnotation",this.textContent){const ae=document.createElement("div");ae.className="annotationTextContent",ae.setAttribute("role","comment");for(const he of this.textContent){const we=document.createElement("span");we.textContent=he,ae.append(we)}this.container.append(ae)}return this.data.hasPopup||this._createPopup(null,this.data),this.container}}class W extends O{constructor(ae){var he,we,_e;const ye=!!(ae.data.hasPopup||(he=ae.data.titleObj)!==null&&he!==void 0&&he.str||(we=ae.data.contentsObj)!==null&&we!==void 0&&we.str||(_e=ae.data.richText)!==null&&_e!==void 0&&_e.str);super(ae,{isRenderable:ye,ignoreBorder:!0})}render(){this.container.className="lineAnnotation";const ae=this.data,{width:he,height:we}=e(ae.rect),_e=this.svgFactory.create(he,we,!0),ye=this.svgFactory.createElement("svg:line");return ye.setAttribute("x1",ae.rect[2]-ae.lineCoordinates[0]),ye.setAttribute("y1",ae.rect[3]-ae.lineCoordinates[1]),ye.setAttribute("x2",ae.rect[2]-ae.lineCoordinates[2]),ye.setAttribute("y2",ae.rect[3]-ae.lineCoordinates[3]),ye.setAttribute("stroke-width",ae.borderStyle.width||1),ye.setAttribute("stroke","transparent"),ye.setAttribute("fill","transparent"),_e.append(ye),this.container.append(_e),this._createPopup(ye,ae),this.container}}class J extends O{constructor(ae){var he,we,_e;const ye=!!(ae.data.hasPopup||(he=ae.data.titleObj)!==null&&he!==void 0&&he.str||(we=ae.data.contentsObj)!==null&&we!==void 0&&we.str||(_e=ae.data.richText)!==null&&_e!==void 0&&_e.str);super(ae,{isRenderable:ye,ignoreBorder:!0})}render(){this.container.className="squareAnnotation";const ae=this.data,{width:he,height:we}=e(ae.rect),_e=this.svgFactory.create(he,we,!0),ye=ae.borderStyle.width,se=this.svgFactory.createElement("svg:rect");return se.setAttribute("x",ye/2),se.setAttribute("y",ye/2),se.setAttribute("width",he-ye),se.setAttribute("height",we-ye),se.setAttribute("stroke-width",ye||1),se.setAttribute("stroke","transparent"),se.setAttribute("fill","transparent"),_e.append(se),this.container.append(_e),this._createPopup(se,ae),this.container}}class Y extends O{constructor(ae){var he,we,_e;const ye=!!(ae.data.hasPopup||(he=ae.data.titleObj)!==null&&he!==void 0&&he.str||(we=ae.data.contentsObj)!==null&&we!==void 0&&we.str||(_e=ae.data.richText)!==null&&_e!==void 0&&_e.str);super(ae,{isRenderable:ye,ignoreBorder:!0})}render(){this.container.className="circleAnnotation";const ae=this.data,{width:he,height:we}=e(ae.rect),_e=this.svgFactory.create(he,we,!0),ye=ae.borderStyle.width,se=this.svgFactory.createElement("svg:ellipse");return se.setAttribute("cx",he/2),se.setAttribute("cy",we/2),se.setAttribute("rx",he/2-ye/2),se.setAttribute("ry",we/2-ye/2),se.setAttribute("stroke-width",ye||1),se.setAttribute("stroke","transparent"),se.setAttribute("fill","transparent"),_e.append(se),this.container.append(_e),this._createPopup(se,ae),this.container}}class V extends O{constructor(ae){var he,we,_e;const ye=!!(ae.data.hasPopup||(he=ae.data.titleObj)!==null&&he!==void 0&&he.str||(we=ae.data.contentsObj)!==null&&we!==void 0&&we.str||(_e=ae.data.richText)!==null&&_e!==void 0&&_e.str);super(ae,{isRenderable:ye,ignoreBorder:!0}),this.containerClassName="polylineAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const ae=this.data,{width:he,height:we}=e(ae.rect),_e=this.svgFactory.create(he,we,!0);let ye=[];for(const Ie of ae.vertices){const Ce=Ie.x-ae.rect[0],oe=ae.rect[3]-Ie.y;ye.push(Ce+","+oe)}ye=ye.join(" ");const se=this.svgFactory.createElement(this.svgElementName);return se.setAttribute("points",ye),se.setAttribute("stroke-width",ae.borderStyle.width||1),se.setAttribute("stroke","transparent"),se.setAttribute("fill","transparent"),_e.append(se),this.container.append(_e),this._createPopup(se,ae),this.container}}class H extends V{constructor(ae){super(ae),this.containerClassName="polygonAnnotation",this.svgElementName="svg:polygon"}}class z extends O{constructor(ae){var he,we,_e;const ye=!!(ae.data.hasPopup||(he=ae.data.titleObj)!==null&&he!==void 0&&he.str||(we=ae.data.contentsObj)!==null&&we!==void 0&&we.str||(_e=ae.data.richText)!==null&&_e!==void 0&&_e.str);super(ae,{isRenderable:ye,ignoreBorder:!0})}render(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class X extends O{constructor(ae){var he,we,_e;const ye=!!(ae.data.hasPopup||(he=ae.data.titleObj)!==null&&he!==void 0&&he.str||(we=ae.data.contentsObj)!==null&&we!==void 0&&we.str||(_e=ae.data.richText)!==null&&_e!==void 0&&_e.str);super(ae,{isRenderable:ye,ignoreBorder:!0}),this.containerClassName="inkAnnotation",this.svgElementName="svg:polyline"}render(){this.container.className=this.containerClassName;const ae=this.data,{width:he,height:we}=e(ae.rect),_e=this.svgFactory.create(he,we,!0);for(const ye of ae.inkLists){let se=[];for(const Ce of ye){const oe=Ce.x-ae.rect[0],pe=ae.rect[3]-Ce.y;se.push(`${oe},${pe}`)}se=se.join(" ");const Ie=this.svgFactory.createElement(this.svgElementName);Ie.setAttribute("points",se),Ie.setAttribute("stroke-width",ae.borderStyle.width||1),Ie.setAttribute("stroke","transparent"),Ie.setAttribute("fill","transparent"),this._createPopup(Ie,ae),_e.append(Ie)}return this.container.append(_e),this.container}}class q extends O{constructor(ae){var he,we,_e;const ye=!!(ae.data.hasPopup||(he=ae.data.titleObj)!==null&&he!==void 0&&he.str||(we=ae.data.contentsObj)!==null&&we!==void 0&&we.str||(_e=ae.data.richText)!==null&&_e!==void 0&&_e.str);super(ae,{isRenderable:ye,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}class $ extends O{constructor(ae){var he,we,_e;const ye=!!(ae.data.hasPopup||(he=ae.data.titleObj)!==null&&he!==void 0&&he.str||(we=ae.data.contentsObj)!==null&&we!==void 0&&we.str||(_e=ae.data.richText)!==null&&_e!==void 0&&_e.str);super(ae,{isRenderable:ye,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}class fe extends O{constructor(ae){var he,we,_e;const ye=!!(ae.data.hasPopup||(he=ae.data.titleObj)!==null&&he!==void 0&&he.str||(we=ae.data.contentsObj)!==null&&we!==void 0&&we.str||(_e=ae.data.richText)!==null&&_e!==void 0&&_e.str);super(ae,{isRenderable:ye,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}class Q extends O{constructor(ae){var he,we,_e;const ye=!!(ae.data.hasPopup||(he=ae.data.titleObj)!==null&&he!==void 0&&he.str||(we=ae.data.contentsObj)!==null&&we!==void 0&&we.str||(_e=ae.data.richText)!==null&&_e!==void 0&&_e.str);super(ae,{isRenderable:ye,ignoreBorder:!0,createQuadrilaterals:!0})}render(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}class ie extends O{constructor(ae){var he,we,_e;const ye=!!(ae.data.hasPopup||(he=ae.data.titleObj)!==null&&he!==void 0&&he.str||(we=ae.data.contentsObj)!==null&&we!==void 0&&we.str||(_e=ae.data.richText)!==null&&_e!==void 0&&_e.str);super(ae,{isRenderable:ye,ignoreBorder:!0})}render(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}class Te extends O{constructor(ae){var he;super(ae,{isRenderable:!0});const{filename:we,content:_e}=this.data.file;this.filename=(0,U.getFilenameFromUrl)(we),this.content=_e,(he=this.linkService.eventBus)===null||he===void 0||he.dispatch("fileattachmentannotation",{source:this,filename:we,content:_e})}render(){var ae,he;this.container.className="fileAttachmentAnnotation";const we=document.createElement("div");return we.className="popupTriggerArea",we.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&((ae=this.data.titleObj)!==null&&ae!==void 0&&ae.str||(he=this.data.contentsObj)!==null&&he!==void 0&&he.str||this.data.richText)&&this._createPopup(we,this.data),this.container.append(we),this.container}_download(){var ae;(ae=this.downloadManager)===null||ae===void 0||ae.openOrDownloadData(this.container,this.content,this.filename)}}class me{static render(ae){const{annotations:he,div:we,viewport:_e,accessibilityManager:ye}=ae;g(this,me,ce).call(this,we,_e);let se=0;for(const Ie of he){if(Ie.annotationType!==w.AnnotationType.POPUP){const{width:oe,height:pe}=e(Ie.rect);if(oe<=0||pe<=0)continue}const Ce=L.create({data:Ie,layer:we,page:ae.page,viewport:_e,linkService:ae.linkService,downloadManager:ae.downloadManager,imageResourcesPath:ae.imageResourcesPath||"",renderForms:ae.renderForms!==!1,svgFactory:new U.DOMSVGFactory,annotationStorage:ae.annotationStorage||new k.AnnotationStorage,enableScripting:ae.enableScripting,hasJSActions:ae.hasJSActions,fieldObjects:ae.fieldObjects,mouseState:ae.mouseState||{isDown:!1}});if(Ce.isRenderable){const oe=Ce.render();if(Ie.hidden&&(oe.style.visibility="hidden"),Array.isArray(oe))for(const pe of oe)pe.style.zIndex=se++,g(me,me,K).call(me,pe,Ie.id,we,ye);else oe.style.zIndex=se++,Ce instanceof F?we.prepend(oe):g(me,me,K).call(me,oe,Ie.id,we,ye)}}g(this,me,de).call(this,we,ae.annotationCanvasMap)}static update(ae){const{annotationCanvasMap:he,div:we,viewport:_e}=ae;g(this,me,ce).call(this,we,_e),g(this,me,de).call(this,we,he),we.hidden=!1}}r.AnnotationLayer=me;function K(Z,ae,he,we){const _e=Z.firstChild||Z;_e.id=`${U.AnnotationPrefix}${ae}`,he.append(Z),we==null||we.moveElementInDOM(he,Z,_e,!1)}function ce(Z,ae){let{width:he,height:we,rotation:_e}=ae;const{style:ye}=Z,se=_e%180!==0,Ie=Math.floor(he)+"px",Ce=Math.floor(we)+"px";ye.width=se?Ce:Ie,ye.height=se?Ie:Ce,Z.setAttribute("data-main-rotation",_e)}function de(Z,ae){if(ae){for(const[he,we]of ae){const _e=Z.querySelector(`[data-annotation-id="${he}"]`);if(!_e)continue;const{firstChild:ye}=_e;ye?ye.nodeName==="CANVAS"?ye.replaceWith(we):ye.before(we):_e.append(we)}ae.clear()}}},(b,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorConverters=void 0;function m(U){return Math.floor(Math.max(0,Math.min(1,U))*255).toString(16).padStart(2,"0")}class w{static CMYK_G(k){let[x,a,g,n]=k;return["G",1-Math.min(1,.3*x+.59*g+.11*a+n)]}static G_CMYK(k){let[x]=k;return["CMYK",0,0,0,1-x]}static G_RGB(k){let[x]=k;return["RGB",x,x,x]}static G_HTML(k){let[x]=k;const a=m(x);return`#${a}${a}${a}`}static RGB_G(k){let[x,a,g]=k;return["G",.3*x+.59*a+.11*g]}static RGB_HTML(k){let[x,a,g]=k;const n=m(x),c=m(a),R=m(g);return`#${n}${c}${R}`}static T_HTML(){return"#00000000"}static CMYK_RGB(k){let[x,a,g,n]=k;return["RGB",1-Math.min(1,x+n),1-Math.min(1,g+n),1-Math.min(1,a+n)]}static CMYK_HTML(k){const x=this.CMYK_RGB(k).slice(1);return this.RGB_HTML(x)}static RGB_CMYK(k){let[x,a,g]=k;const n=1-x,c=1-a,R=1-g,v=Math.min(n,c,R);return["CMYK",n,c,R,v]}}r.ColorConverters=w},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.XfaLayer=void 0;var w=m(145);class U{static setupStorage(x,a,g,n,c){const R=n.getValue(a,{value:null});switch(g.name){case"textarea":if(R.value!==null&&(x.textContent=R.value),c==="print")break;x.addEventListener("input",v=>{n.setValue(a,{value:v.target.value})});break;case"input":if(g.attributes.type==="radio"||g.attributes.type==="checkbox"){if(R.value===g.attributes.xfaOn?x.setAttribute("checked",!0):R.value===g.attributes.xfaOff&&x.removeAttribute("checked"),c==="print")break;x.addEventListener("change",v=>{n.setValue(a,{value:v.target.checked?v.target.getAttribute("xfaOn"):v.target.getAttribute("xfaOff")})})}else{if(R.value!==null&&x.setAttribute("value",R.value),c==="print")break;x.addEventListener("input",v=>{n.setValue(a,{value:v.target.value})})}break;case"select":if(R.value!==null)for(const v of g.children)v.attributes.value===R.value&&(v.attributes.selected=!0);x.addEventListener("input",v=>{const e=v.target.options,L=e.selectedIndex===-1?"":e[e.selectedIndex].value;n.setValue(a,{value:L})});break}}static setAttributes(x){let{html:a,element:g,storage:n=null,intent:c,linkService:R}=x;const{attributes:v}=g,e=a instanceof HTMLAnchorElement;v.type==="radio"&&(v.name=`${v.name}-${c}`);for(const[L,O]of Object.entries(v))if(O!=null)switch(L){case"class":O.length&&a.setAttribute(L,O.join(" "));break;case"dataId":break;case"id":a.setAttribute("data-element-id",O);break;case"style":Object.assign(a.style,O);break;case"textContent":a.textContent=O;break;default:(!e||L!=="href"&&L!=="newWindow")&&a.setAttribute(L,O)}e&&R.addLinkAttributes(a,v.href,v.newWindow),n&&v.dataId&&this.setupStorage(a,v.dataId,g,n)}static render(x){const a=x.annotationStorage,g=x.linkService,n=x.xfaHtml,c=x.intent||"display",R=document.createElement(n.name);n.attributes&&this.setAttributes({html:R,element:n,intent:c,linkService:g});const v=[[n,-1,R]],e=x.div;if(e.append(R),x.viewport){const B=`matrix(${x.viewport.transform.join(",")})`;e.style.transform=B}c!=="richText"&&e.setAttribute("class","xfaLayer xfaFont");const L=[];for(;v.length>0;){var O;const[B,P,S]=v.at(-1);if(P+1===B.children.length){v.pop();continue}const _=B.children[++v.at(-1)[1]];if(_===null)continue;const{name:l}=_;if(l==="#text"){const D=document.createTextNode(_.value);L.push(D),S.append(D);continue}let y;if(_!=null&&(O=_.attributes)!==null&&O!==void 0&&O.xmlns?y=document.createElementNS(_.attributes.xmlns,l):y=document.createElement(l),S.append(y),_.attributes&&this.setAttributes({html:y,element:_,storage:a,intent:c,linkService:g}),_.children&&_.children.length>0)v.push([_,-1,y]);else if(_.value){const D=document.createTextNode(_.value);w.XfaText.shouldBuildText(l)&&L.push(D),y.append(D)}}for(const B of e.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))B.setAttribute("readOnly",!0);return{textDivs:L}}static update(x){const a=`matrix(${x.viewport.transform.join(",")})`;x.div.style.transform=a,x.div.hidden=!1}}r.XfaLayer=U},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.TextLayerRenderTask=void 0,r.renderTextLayer=S;var w=m(1),U=m(133);const k=1e5,x=30,a=.8,g=new Map,n=/^\s+$/g;function c(_,l){const y=g.get(_);if(y)return y;l.save(),l.font=`${x}px ${_}`;const D=l.measureText("");let M=D.fontBoundingBoxAscent,F=Math.abs(D.fontBoundingBoxDescent);if(M){l.restore();const G=M/(M+F);return g.set(_,G),G}l.strokeStyle="red",l.clearRect(0,0,x,x),l.strokeText("g",0,0);let N=l.getImageData(0,0,x,x).data;F=0;for(let G=N.length-1-3;G>=0;G-=4)if(N[G]>0){F=Math.ceil(G/4/x);break}l.clearRect(0,0,x,x),l.strokeText("A",0,x),N=l.getImageData(0,0,x,x).data,M=0;for(let G=0,W=N.length;G0){M=x-Math.floor(G/4/x);break}if(l.restore(),M){const G=M/(M+F);return g.set(_,G),G}return g.set(_,a),a}function R(_,l,y,D){const M=document.createElement("span"),F=_._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:l.str!=="",hasEOL:l.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1,fontSize:0}:{angle:0,canvasWidth:0,hasText:l.str!=="",hasEOL:l.hasEOL,fontSize:0};_._textDivs.push(M);const N=w.Util.transform(_._viewport.transform,l.transform);let G=Math.atan2(N[1],N[0]);const W=y[l.fontName];W.vertical&&(G+=Math.PI/2);const J=Math.hypot(N[2],N[3]),Y=J*c(W.fontFamily,D);let V,H;G===0?(V=N[4],H=N[5]-Y):(V=N[4]+Y*Math.sin(G),H=N[5]-Y*Math.cos(G)),M.style.left=`${V}px`,M.style.top=`${H}px`,M.style.fontSize=`${J}px`,M.style.fontFamily=W.fontFamily,F.fontSize=J,M.setAttribute("role","presentation"),M.textContent=l.str,M.dir=l.dir,_._fontInspectorEnabled&&(M.dataset.fontName=l.fontName),G!==0&&(F.angle=G*(180/Math.PI));let z=!1;if(l.str.length>1||_._enhanceTextSelection&&n.test(l.str))z=!0;else if(l.str!==" "&&l.transform[0]!==l.transform[3]){const X=Math.abs(l.transform[0]),q=Math.abs(l.transform[3]);X!==q&&Math.max(X,q)/Math.min(X,q)>1.5&&(z=!0)}if(z&&(W.vertical?F.canvasWidth=l.height*_._viewport.scale:F.canvasWidth=l.width*_._viewport.scale),_._textDivProperties.set(M,F),_._textContentStream&&_._layoutText(M),_._enhanceTextSelection&&F.hasText){let X=1,q=0;G!==0&&(X=Math.cos(G),q=Math.sin(G));const $=(W.vertical?l.height:l.width)*_._viewport.scale,fe=J;let Q,ie;G!==0?(Q=[X,q,-q,X,V,H],ie=w.Util.getAxialAlignedBoundingBox([0,0,$,fe],Q)):ie=[V,H,V+$,H+fe],_._bounds.push({left:ie[0],top:ie[1],right:ie[2],bottom:ie[3],div:M,size:[$,fe],m:Q})}}function v(_){if(_._canceled)return;const l=_._textDivs,y=_._capability,D=l.length;if(D>k){_._renderingDone=!0,y.resolve();return}if(!_._textContentStream)for(let M=0;M0&&(D=D?Math.min(F,D):F)}return D}function L(_){const l=_._bounds,y=_._viewport,D=O(y.width,y.height,l);for(let M=0;M=0&&D[N].start>=M.y2;)N--;let G,W,J,Y,V=-1/0;for(J=F;J<=N;J++){G=D[J],W=G.boundary;let X;W.x2>M.x1?X=W.index>M.index?W.x1New:M.x1:W.x2New===void 0?X=(W.x2+M.x1)/2:X=W.x2New,X>V&&(V=X)}for(M.x1New=V,J=F;J<=N;J++)G=D[J],W=G.boundary,W.x2New===void 0?W.x2>M.x1?W.index>M.index&&(W.x2New=W.x2):W.x2New=V:W.x2New>V&&(W.x2New=Math.max(V,W.x2));const H=[];let z=null;for(J=F;J<=N;J++){G=D[J],W=G.boundary;const X=W.x2>M.x2?W:M;z===X?H.at(-1).end=G.end:(H.push({start:G.start,end:G.end,boundary:X}),z=X)}for(D[F].start=0&&D[Y].start>=W.y1;Y--)X=D[Y].boundary===W;for(Y=N+1;!X&&Y{this._enhanceTextSelection||(this._textDivProperties=null),this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new w.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),this._renderTimer!==null&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}_processItems(l,y){for(let D=0,M=l.length;D0){const G=this._devicePixelRatio*y.canvasWidth/N;this._enhanceTextSelection&&(y.scale=G),D=`scaleX(${G})`}}if(y.angle!==0&&(D=`rotate(${y.angle}deg) ${D}`),D.length>0&&(this._enhanceTextSelection&&(y.originalTransform=D),l.style.transform=D),y.hasText&&this._container.append(l),y.hasEOL){const M=document.createElement("br");M.setAttribute("role","presentation"),this._container.append(M)}}_render(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const y=(0,w.createPromiseCapability)();let D=Object.create(null);const M=this._document.createElement("canvas");if(M.height=M.width=x,this._layoutTextCtx=M.getContext("2d",{alpha:!1}),this._textContent){const F=this._textContent.items,N=this._textContent.styles;this._processItems(F,N),y.resolve()}else if(this._textContentStream){const F=()=>{this._reader.read().then(N=>{let{value:G,done:W}=N;if(W){y.resolve();return}Object.assign(D,G.styles),this._processItems(G.items,D),F()},y.reject)};this._reader=this._textContentStream.getReader(),F()}else throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');y.promise.then(()=>{D=null,l?this._renderTimer=setTimeout(()=>{v(this),this._renderTimer=null},l):v(this)},this._capability.reject)}expandTextDivs(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this._enhanceTextSelection||!this._renderingDone)return;this._bounds!==null&&(L(this),this._bounds=null);const y=[],D=[];for(let M=0,F=this._textDivs.length;M0?(D.push(`${G.paddingTop}px`),y.push(`translateY(${-G.paddingTop}px)`)):D.push(0),G.paddingRight>0?D.push(`${G.paddingRight/G.scale}px`):D.push(0),G.paddingBottom>0?D.push(`${G.paddingBottom}px`):D.push(0),G.paddingLeft>0?(D.push(`${G.paddingLeft/G.scale}px`),y.push(`translateX(${-G.paddingLeft/G.scale}px)`)):D.push(0),N.style.padding=D.join(" "),y.length&&(N.style.transform=y.join(" "))):(N.style.padding=null,N.style.transform=G.originalTransform))}}}r.TextLayerRenderTask=P;function S(_){const l=new P({textContent:_.textContent,textContentStream:_.textContentStream,container:_.container,viewport:_.viewport,textDivs:_.textDivs,textContentItemsStr:_.textContentItemsStr,enhanceTextSelection:_.enhanceTextSelection});return l._render(_.timeout),l}},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.SVGGraphics=void 0;var w=m(133),U=m(1),k=m(3);let x=class{constructor(){(0,U.unreachable)("Not implemented: SVGGraphics")}};r.SVGGraphics=x;{let O=function(y){let D=[];const M=[];for(const F of y){if(F.fn==="save"){D.push({fnId:92,fn:"group",items:[]}),M.push(D),D=D.at(-1).items;continue}F.fn==="restore"?D=M.pop():D.push(F)}return D},B=function(y){if(Number.isInteger(y))return y.toString();const D=y.toFixed(10);let M=D.length-1;if(D[M]!=="0")return D;do M--;while(D[M]==="0");return D.substring(0,D[M]==="."?M:M+1)},P=function(y){if(y[4]===0&&y[5]===0){if(y[1]===0&&y[2]===0)return y[0]===1&&y[3]===1?"":`scale(${B(y[0])} ${B(y[3])})`;if(y[0]===y[3]&&y[1]===-y[2]){const D=Math.acos(y[0])*180/Math.PI;return`rotate(${B(D)})`}}else if(y[0]===1&&y[1]===0&&y[2]===0&&y[3]===1)return`translate(${B(y[4])} ${B(y[5])})`;return`matrix(${B(y[0])} ${B(y[1])} ${B(y[2])} ${B(y[3])} ${B(y[4])} ${B(y[5])})`};const a={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},g="http://www.w3.org/XML/1998/namespace",n="http://www.w3.org/1999/xlink",c=["butt","round","square"],R=["miter","round","bevel"],v=function(y){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(URL.createObjectURL&&typeof Blob<"u"&&!M)return URL.createObjectURL(new Blob([y],{type:D}));const F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let N=`data:${D};base64,`;for(let G=0,W=y.length;G>2,z=(J&3)<<4|Y>>4,X=G+1>6:64,q=G+2>1&2147483647:H=H>>1&2147483647;M[V]=H}function F(V,H,z){let X=-1;for(let q=H;q>>8^fe}return X^-1}function N(V,H,z,X){let q=X;const $=H.length;z[q]=$>>24&255,z[q+1]=$>>16&255,z[q+2]=$>>8&255,z[q+3]=$&255,q+=4,z[q]=V.charCodeAt(0)&255,z[q+1]=V.charCodeAt(1)&255,z[q+2]=V.charCodeAt(2)&255,z[q+3]=V.charCodeAt(3)&255,q+=4,z.set(H,q),q+=H.length;const fe=F(z,X+4,q);z[q]=fe>>24&255,z[q+1]=fe>>16&255,z[q+2]=fe>>8&255,z[q+3]=fe&255}function G(V,H,z){let X=1,q=0;for(let $=H;$=8?H=V:H=Buffer.from(V);const z=require$$7.deflateSync(H,{level:9});return z instanceof Uint8Array?z:new Uint8Array(z)}catch(H){(0,U.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+H)}return J(V)}function J(V){let H=V.length;const z=65535,X=Math.ceil(H/z),q=new Uint8Array(2+H+X*5+4);let $=0;q[$++]=120,q[$++]=156;let fe=0;for(;H>z;)q[$++]=0,q[$++]=255,q[$++]=255,q[$++]=0,q[$++]=0,q.set(V.subarray(fe,fe+z),$),$+=z,fe+=z,H-=z;q[$++]=1,q[$++]=H&255,q[$++]=H>>8&255,q[$++]=~H&65535&255,q[$++]=(~H&65535)>>8&255,q.set(V.subarray(fe),$),$+=V.length-fe;const Q=G(V,0,V.length);return q[$++]=Q>>24&255,q[$++]=Q>>16&255,q[$++]=Q>>8&255,q[$++]=Q&255,q}function Y(V,H,z,X){const q=V.width,$=V.height;let fe,Q,ie;const Te=V.data;switch(H){case U.ImageKind.GRAYSCALE_1BPP:Q=0,fe=1,ie=q+7>>3;break;case U.ImageKind.RGB_24BPP:Q=2,fe=8,ie=q*3;break;case U.ImageKind.RGBA_32BPP:Q=6,fe=8,ie=q*4;break;default:throw new Error("invalid format")}const me=new Uint8Array((1+ie)*$);let K=0,ce=0;for(let _e=0;_e<$;++_e)me[K++]=0,me.set(Te.subarray(ce,ce+ie),K),ce+=ie,K+=ie;if(H===U.ImageKind.GRAYSCALE_1BPP&&X){K=0;for(let _e=0;_e<$;_e++){K++;for(let ye=0;ye>24&255,q>>16&255,q>>8&255,q&255,$>>24&255,$>>16&255,$>>8&255,$&255,fe,Q,0,0,0]),Z=W(me),ae=y.length+D*3+de.length+Z.length,he=new Uint8Array(ae);let we=0;return he.set(y,we),we+=y.length,N("IHDR",de,he,we),we+=D+de.length,N("IDATA",Z,he,we),we+=D+Z.length,N("IEND",new Uint8Array(0),he,we),v(he,"image/png",z)}return function(H,z,X){const q=H.kind===void 0?U.ImageKind.GRAYSCALE_1BPP:H.kind;return Y(H,q,z,X)}}();class L{constructor(){this.fontSizeScale=1,this.fontWeight=a.fontWeight,this.fontSize=0,this.textMatrix=U.IDENTITY_MATRIX,this.fontMatrix=U.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=U.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=a.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(D,M){this.x=D,this.y=M}}let S=0,_=0,l=0;r.SVGGraphics=x=class{constructor(y,D){let M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(0,w.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new w.DOMSVGFactory,this.current=new L,this.transformMatrix=U.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=y,this.objs=D,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!M,this._operatorIdMapping=[];for(const F in U.OPS)this._operatorIdMapping[U.OPS[F]]=F}save(){this.transformStack.push(this.transformMatrix);const y=this.current;this.extraStack.push(y),this.current=y.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(y){this.save(),this.executeOpTree(y),this.restore()}loadDependencies(y){const D=y.fnArray,M=y.argsArray;for(let F=0,N=D.length;F{W.get(G,Y)});this.current.dependencies.push(J)}return Promise.all(this.current.dependencies)}transform(y,D,M,F,N,G){const W=[y,D,M,F,N,G];this.transformMatrix=U.Util.transform(this.transformMatrix,W),this.tgrp=null}getSVG(y,D){this.viewport=D;const M=this._initialize(D);return this.loadDependencies(y).then(()=>(this.transformMatrix=U.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(y)),M))}convertOpList(y){const D=this._operatorIdMapping,M=y.argsArray,F=y.fnArray,N=[];for(let G=0,W=F.length;G0&&(this.current.lineWidth=y)}setLineCap(y){this.current.lineCap=c[y]}setLineJoin(y){this.current.lineJoin=R[y]}setMiterLimit(y){this.current.miterLimit=y}setStrokeAlpha(y){this.current.strokeAlpha=y}setStrokeRGBColor(y,D,M){this.current.strokeColor=U.Util.makeHexColor(y,D,M)}setFillAlpha(y){this.current.fillAlpha=y}setFillRGBColor(y,D,M){this.current.fillColor=U.Util.makeHexColor(y,D,M),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(y){this.current.strokeColor=this._makeColorN_Pattern(y)}setFillColorN(y){this.current.fillColor=this._makeColorN_Pattern(y)}shadingFill(y){const D=this.viewport.width,M=this.viewport.height,F=U.Util.inverseTransform(this.transformMatrix),N=U.Util.applyTransform([0,0],F),G=U.Util.applyTransform([0,M],F),W=U.Util.applyTransform([D,0],F),J=U.Util.applyTransform([D,M],F),Y=Math.min(N[0],G[0],W[0],J[0]),V=Math.min(N[1],G[1],W[1],J[1]),H=Math.max(N[0],G[0],W[0],J[0]),z=Math.max(N[1],G[1],W[1],J[1]),X=this.svgFactory.createElement("svg:rect");X.setAttributeNS(null,"x",Y),X.setAttributeNS(null,"y",V),X.setAttributeNS(null,"width",H-Y),X.setAttributeNS(null,"height",z-V),X.setAttributeNS(null,"fill",this._makeShadingPattern(y)),this.current.fillAlpha<1&&X.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(X)}_makeColorN_Pattern(y){return y[0]==="TilingPattern"?this._makeTilingPattern(y):this._makeShadingPattern(y)}_makeTilingPattern(y){const D=y[1],M=y[2],F=y[3]||U.IDENTITY_MATRIX,[N,G,W,J]=y[4],Y=y[5],V=y[6],H=y[7],z=`shading${l++}`,[X,q,$,fe]=U.Util.normalizeRect([...U.Util.applyTransform([N,G],F),...U.Util.applyTransform([W,J],F)]),[Q,ie]=U.Util.singularValueDecompose2dScale(F),Te=Y*Q,me=V*ie,K=this.svgFactory.createElement("svg:pattern");K.setAttributeNS(null,"id",z),K.setAttributeNS(null,"patternUnits","userSpaceOnUse"),K.setAttributeNS(null,"width",Te),K.setAttributeNS(null,"height",me),K.setAttributeNS(null,"x",`${X}`),K.setAttributeNS(null,"y",`${q}`);const ce=this.svg,de=this.transformMatrix,Z=this.current.fillColor,ae=this.current.strokeColor,he=this.svgFactory.create($-X,fe-q);if(this.svg=he,this.transformMatrix=F,H===2){const we=U.Util.makeHexColor(...D);this.current.fillColor=we,this.current.strokeColor=we}return this.executeOpTree(this.convertOpList(M)),this.svg=ce,this.transformMatrix=de,this.current.fillColor=Z,this.current.strokeColor=ae,K.append(he.childNodes[0]),this.defs.append(K),`url(#${z})`}_makeShadingPattern(y){switch(typeof y=="string"&&(y=this.objs.get(y)),y[0]){case"RadialAxial":const D=`shading${l++}`,M=y[3];let F;switch(y[1]){case"axial":const N=y[4],G=y[5];F=this.svgFactory.createElement("svg:linearGradient"),F.setAttributeNS(null,"id",D),F.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),F.setAttributeNS(null,"x1",N[0]),F.setAttributeNS(null,"y1",N[1]),F.setAttributeNS(null,"x2",G[0]),F.setAttributeNS(null,"y2",G[1]);break;case"radial":const W=y[4],J=y[5],Y=y[6],V=y[7];F=this.svgFactory.createElement("svg:radialGradient"),F.setAttributeNS(null,"id",D),F.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),F.setAttributeNS(null,"cx",J[0]),F.setAttributeNS(null,"cy",J[1]),F.setAttributeNS(null,"r",V),F.setAttributeNS(null,"fx",W[0]),F.setAttributeNS(null,"fy",W[1]),F.setAttributeNS(null,"fr",Y);break;default:throw new Error(`Unknown RadialAxial type: ${y[1]}`)}for(const N of M){const G=this.svgFactory.createElement("svg:stop");G.setAttributeNS(null,"offset",N[0]),G.setAttributeNS(null,"stop-color",N[1]),F.append(G)}return this.defs.append(F),`url(#${D})`;case"Mesh":return(0,U.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${y[0]}`)}}setDash(y,D){this.current.dashArray=y,this.current.dashPhase=D}constructPath(y,D){const M=this.current;let F=M.x,N=M.y,G=[],W=0;for(const J of y)switch(J|0){case U.OPS.rectangle:F=D[W++],N=D[W++];const Y=D[W++],V=D[W++],H=F+Y,z=N+V;G.push("M",B(F),B(N),"L",B(H),B(N),"L",B(H),B(z),"L",B(F),B(z),"Z");break;case U.OPS.moveTo:F=D[W++],N=D[W++],G.push("M",B(F),B(N));break;case U.OPS.lineTo:F=D[W++],N=D[W++],G.push("L",B(F),B(N));break;case U.OPS.curveTo:F=D[W+4],N=D[W+5],G.push("C",B(D[W]),B(D[W+1]),B(D[W+2]),B(D[W+3]),B(F),B(N)),W+=6;break;case U.OPS.curveTo2:G.push("C",B(F),B(N),B(D[W]),B(D[W+1]),B(D[W+2]),B(D[W+3])),F=D[W+2],N=D[W+3],W+=4;break;case U.OPS.curveTo3:F=D[W+2],N=D[W+3],G.push("C",B(D[W]),B(D[W+1]),B(F),B(N),B(F),B(N)),W+=4;break;case U.OPS.closePath:G.push("Z");break}G=G.join(" "),M.path&&y.length>0&&y[0]!==U.OPS.rectangle&&y[0]!==U.OPS.moveTo?G=M.path.getAttributeNS(null,"d")+G:(M.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(M.path)),M.path.setAttributeNS(null,"d",G),M.path.setAttributeNS(null,"fill","none"),M.element=M.path,M.setCurrentPoint(F,N)}endPath(){const y=this.current;if(y.path=null,!this.pendingClip)return;if(!y.element){this.pendingClip=null;return}const D=`clippath${S++}`,M=this.svgFactory.createElement("svg:clipPath");M.setAttributeNS(null,"id",D),M.setAttributeNS(null,"transform",P(this.transformMatrix));const F=y.element.cloneNode(!0);if(this.pendingClip==="evenodd"?F.setAttributeNS(null,"clip-rule","evenodd"):F.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,M.append(F),this.defs.append(M),y.activeClipUrl){y.clipGroup=null;for(const N of this.extraStack)N.clipGroup=null;M.setAttributeNS(null,"clip-path",y.activeClipUrl)}y.activeClipUrl=`url(#${D})`,this.tgrp=null}clip(y){this.pendingClip=y}closePath(){const y=this.current;if(y.path){const D=`${y.path.getAttributeNS(null,"d")}Z`;y.path.setAttributeNS(null,"d",D)}}setLeading(y){this.current.leading=-y}setTextRise(y){this.current.textRise=y}setTextRenderingMode(y){this.current.textRenderingMode=y}setHScale(y){this.current.textHScale=y/100}setRenderingIntent(y){}setFlatness(y){}setGState(y){for(const[D,M]of y)switch(D){case"LW":this.setLineWidth(M);break;case"LC":this.setLineCap(M);break;case"LJ":this.setLineJoin(M);break;case"ML":this.setMiterLimit(M);break;case"D":this.setDash(M[0],M[1]);break;case"RI":this.setRenderingIntent(M);break;case"FL":this.setFlatness(M);break;case"Font":this.setFont(M);break;case"CA":this.setStrokeAlpha(M);break;case"ca":this.setFillAlpha(M);break;default:(0,U.warn)(`Unimplemented graphic state operator ${D}`);break}}fill(){const y=this.current;y.element&&(y.element.setAttributeNS(null,"fill",y.fillColor),y.element.setAttributeNS(null,"fill-opacity",y.fillAlpha),this.endPath())}stroke(){const y=this.current;y.element&&(this._setStrokeAttributes(y.element),y.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(y){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const M=this.current;let F=M.dashArray;D!==1&&F.length>0&&(F=F.map(function(N){return D*N})),y.setAttributeNS(null,"stroke",M.strokeColor),y.setAttributeNS(null,"stroke-opacity",M.strokeAlpha),y.setAttributeNS(null,"stroke-miterlimit",B(M.miterLimit)),y.setAttributeNS(null,"stroke-linecap",M.lineCap),y.setAttributeNS(null,"stroke-linejoin",M.lineJoin),y.setAttributeNS(null,"stroke-width",B(D*M.lineWidth)+"px"),y.setAttributeNS(null,"stroke-dasharray",F.map(B).join(" ")),y.setAttributeNS(null,"stroke-dashoffset",B(D*M.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const y=this.svgFactory.createElement("svg:rect");y.setAttributeNS(null,"x","0"),y.setAttributeNS(null,"y","0"),y.setAttributeNS(null,"width","1px"),y.setAttributeNS(null,"height","1px"),y.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(y)}paintImageXObject(y){const D=y.startsWith("g_")?this.commonObjs.get(y):this.objs.get(y);if(!D){(0,U.warn)(`Dependent image with object ID ${y} is not ready yet`);return}this.paintInlineImageXObject(D)}paintInlineImageXObject(y,D){const M=y.width,F=y.height,N=e(y,this.forceDataSchema,!!D),G=this.svgFactory.createElement("svg:rect");G.setAttributeNS(null,"x","0"),G.setAttributeNS(null,"y","0"),G.setAttributeNS(null,"width",B(M)),G.setAttributeNS(null,"height",B(F)),this.current.element=G,this.clip("nonzero");const W=this.svgFactory.createElement("svg:image");W.setAttributeNS(n,"xlink:href",N),W.setAttributeNS(null,"x","0"),W.setAttributeNS(null,"y",B(-F)),W.setAttributeNS(null,"width",B(M)+"px"),W.setAttributeNS(null,"height",B(F)+"px"),W.setAttributeNS(null,"transform",`scale(${B(1/M)} ${B(-1/F)})`),D?D.append(W):this._ensureTransformGroup().append(W)}paintImageMaskXObject(y){const D=this.current,M=y.width,F=y.height,N=D.fillColor;D.maskId=`mask${_++}`;const G=this.svgFactory.createElement("svg:mask");G.setAttributeNS(null,"id",D.maskId);const W=this.svgFactory.createElement("svg:rect");W.setAttributeNS(null,"x","0"),W.setAttributeNS(null,"y","0"),W.setAttributeNS(null,"width",B(M)),W.setAttributeNS(null,"height",B(F)),W.setAttributeNS(null,"fill",N),W.setAttributeNS(null,"mask",`url(#${D.maskId})`),this.defs.append(G),this._ensureTransformGroup().append(W),this.paintInlineImageXObject(y,G)}paintFormXObjectBegin(y,D){if(Array.isArray(y)&&y.length===6&&this.transform(y[0],y[1],y[2],y[3],y[4],y[5]),D){const M=D[2]-D[0],F=D[3]-D[1],N=this.svgFactory.createElement("svg:rect");N.setAttributeNS(null,"x",D[0]),N.setAttributeNS(null,"y",D[1]),N.setAttributeNS(null,"width",B(M)),N.setAttributeNS(null,"height",B(F)),this.current.element=N,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(y){const D=this.svgFactory.create(y.width,y.height),M=this.svgFactory.createElement("svg:defs");D.append(M),this.defs=M;const F=this.svgFactory.createElement("svg:g");return F.setAttributeNS(null,"transform",P(y.transform)),D.append(F),this.svg=F,D}_ensureClipGroup(){if(!this.current.clipGroup){const y=this.svgFactory.createElement("svg:g");y.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(y),this.current.clipGroup=y}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",P(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}}},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.PDFNodeStream=void 0;var w=m(1),U=m(158);const k=require$$7,x=require$$7,a=require$$7,g=require$$7,n=/^file:\/\/\/[a-zA-Z]:\//;function c(_){const l=g.parse(_);return l.protocol==="file:"||l.host?l:/^[a-z]:[/\\]/i.test(_)?g.parse(`file:///${_}`):(l.host||(l.protocol="file:"),l)}class R{constructor(l){this.source=l,this.url=c(l.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&l.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var l,y;return(l=(y=this._fullRequestReader)===null||y===void 0?void 0:y._loaded)!==null&&l!==void 0?l:0}getFullReader(){return(0,w.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new P(this):new O(this),this._fullRequestReader}getRangeReader(l,y){if(y<=this._progressiveDataLength)return null;const D=this.isFsUrl?new S(this,l,y):new B(this,l,y);return this._rangeRequestReaders.push(D),D}cancelAllRequests(l){this._fullRequestReader&&this._fullRequestReader.cancel(l);for(const y of this._rangeRequestReaders.slice(0))y.cancel(l)}}r.PDFNodeStream=R;class v{constructor(l){this._url=l.url,this._done=!1,this._storedError=null,this.onProgress=null;const y=l.source;this._contentLength=y.length,this._loaded=0,this._filename=null,this._disableRange=y.disableRange||!1,this._rangeChunkSize=y.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!y.disableStream,this._isRangeSupported=!y.disableRange,this._readableStream=null,this._readCapability=(0,w.createPromiseCapability)(),this._headersCapability=(0,w.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const l=this._readableStream.read();return l===null?(this._readCapability=(0,w.createPromiseCapability)(),this.read()):(this._loaded+=l.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(l).buffer,done:!1})}cancel(l){if(!this._readableStream){this._error(l);return}this._readableStream.destroy(l)}_error(l){this._storedError=l,this._readCapability.resolve()}_setReadableStream(l){this._readableStream=l,l.on("readable",()=>{this._readCapability.resolve()}),l.on("end",()=>{l.destroy(),this._done=!0,this._readCapability.resolve()}),l.on("error",y=>{this._error(y)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new w.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class e{constructor(l){this._url=l.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,w.createPromiseCapability)();const y=l.source;this._isStreamingSupported=!y.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const l=this._readableStream.read();return l===null?(this._readCapability=(0,w.createPromiseCapability)(),this.read()):(this._loaded+=l.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(l).buffer,done:!1})}cancel(l){if(!this._readableStream){this._error(l);return}this._readableStream.destroy(l)}_error(l){this._storedError=l,this._readCapability.resolve()}_setReadableStream(l){this._readableStream=l,l.on("readable",()=>{this._readCapability.resolve()}),l.on("end",()=>{l.destroy(),this._done=!0,this._readCapability.resolve()}),l.on("error",y=>{this._error(y)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function L(_,l){return{protocol:_.protocol,auth:_.auth,host:_.hostname,port:_.port,path:_.path,method:"GET",headers:l}}class O extends v{constructor(l){super(l);const y=D=>{if(D.statusCode===404){const G=new w.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=G,this._headersCapability.reject(G);return}this._headersCapability.resolve(),this._setReadableStream(D);const M=G=>this._readableStream.headers[G.toLowerCase()],{allowRangeRequests:F,suggestedLength:N}=(0,U.validateRangeRequestCapabilities)({getResponseHeader:M,isHttp:l.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=F,this._contentLength=N||this._contentLength,this._filename=(0,U.extractFilenameFromHeader)(M)};this._request=null,this._url.protocol==="http:"?this._request=x.request(L(this._url,l.httpHeaders),y):this._request=a.request(L(this._url,l.httpHeaders),y),this._request.on("error",D=>{this._storedError=D,this._headersCapability.reject(D)}),this._request.end()}}class B extends e{constructor(l,y,D){super(l),this._httpHeaders={};for(const F in l.httpHeaders){const N=l.httpHeaders[F];typeof N>"u"||(this._httpHeaders[F]=N)}this._httpHeaders.Range=`bytes=${y}-${D-1}`;const M=F=>{if(F.statusCode===404){const N=new w.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=N;return}this._setReadableStream(F)};this._request=null,this._url.protocol==="http:"?this._request=x.request(L(this._url,this._httpHeaders),M):this._request=a.request(L(this._url,this._httpHeaders),M),this._request.on("error",F=>{this._storedError=F}),this._request.end()}}class P extends v{constructor(l){super(l);let y=decodeURIComponent(this._url.path);n.test(this._url.href)&&(y=y.replace(/^\//,"")),k.lstat(y,(D,M)=>{if(D){D.code==="ENOENT"&&(D=new w.MissingPDFException(`Missing PDF "${y}".`)),this._storedError=D,this._headersCapability.reject(D);return}this._contentLength=M.size,this._setReadableStream(k.createReadStream(y)),this._headersCapability.resolve()})}}class S extends e{constructor(l,y,D){super(l);let M=decodeURIComponent(this._url.path);n.test(this._url.href)&&(M=M.replace(/^\//,"")),this._setReadableStream(k.createReadStream(M,{start:y,end:D-1}))}}},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.createResponseStatusError=g,r.extractFilenameFromHeader=a,r.validateRangeRequestCapabilities=x,r.validateResponseStatus=n;var w=m(1),U=m(159),k=m(133);function x(c){let{getResponseHeader:R,isHttp:v,rangeChunkSize:e,disableRange:L}=c;const O={allowRangeRequests:!1,suggestedLength:void 0},B=parseInt(R("Content-Length"),10);return!Number.isInteger(B)||(O.suggestedLength=B,B<=2*e)||L||!v||R("Accept-Ranges")!=="bytes"||(R("Content-Encoding")||"identity")!=="identity"||(O.allowRangeRequests=!0),O}function a(c){const R=c("Content-Disposition");if(R){let v=(0,U.getFilenameFromContentDispositionHeader)(R);if(v.includes("%"))try{v=decodeURIComponent(v)}catch{}if((0,k.isPdfFile)(v))return v}return null}function g(c,R){return c===404||c===0&&R.startsWith("file:")?new w.MissingPDFException('Missing PDF "'+R+'".'):new w.UnexpectedResponseException(`Unexpected server response (${c}) while retrieving PDF "${R}".`,c)}function n(c){return c===200||c===206}},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.getFilenameFromContentDispositionHeader=U;var w=m(1);function U(k){let x=!0,a=g("filename\\*","i").exec(k);if(a){a=a[1];let O=v(a);return O=unescape(O),O=e(O),O=L(O),c(O)}if(a=R(k),a){const O=L(a);return c(O)}if(a=g("filename","i").exec(k),a){a=a[1];let O=v(a);return O=L(O),c(O)}function g(O,B){return new RegExp("(?:^|;)\\s*"+O+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',B)}function n(O,B){if(O){if(!/^[\x00-\xFF]+$/.test(B))return B;try{const P=new TextDecoder(O,{fatal:!0}),S=(0,w.stringToBytes)(B);B=P.decode(S),x=!1}catch{}}return B}function c(O){return x&&/[\x80-\xff]/.test(O)&&(O=n("utf-8",O),x&&(O=n("iso-8859-1",O))),O}function R(O){const B=[];let P;const S=g("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;(P=S.exec(O))!==null;){let[,l,y,D]=P;if(l=parseInt(l,10),l in B){if(l===0)break;continue}B[l]=[y,D]}const _=[];for(let l=0;l{Object.defineProperty(r,"__esModule",{value:!0}),r.PDFNetworkStream=void 0;var w=m(1),U=m(158);const k=200,x=206;function a(v){const e=v.response;return typeof e!="string"?e:(0,w.stringToBytes)(e).buffer}class g{constructor(e){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&L.httpHeaders||Object.create(null),this.withCredentials=L.withCredentials||!1,this.getXhr=L.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,L,O){const B={begin:e,end:L};for(const P in O)B[P]=O[P];return this.request(B)}requestFull(e){return this.request(e)}request(e){const L=this.getXhr(),O=this.currXhrId++,B=this.pendingRequests[O]={xhr:L};L.open("GET",this.url),L.withCredentials=this.withCredentials;for(const P in this.httpHeaders){const S=this.httpHeaders[P];typeof S>"u"||L.setRequestHeader(P,S)}return this.isHttp&&"begin"in e&&"end"in e?(L.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),B.expectedStatus=x):B.expectedStatus=k,L.responseType="arraybuffer",e.onError&&(L.onerror=function(P){e.onError(L.status)}),L.onreadystatechange=this.onStateChange.bind(this,O),L.onprogress=this.onProgress.bind(this,O),B.onHeadersReceived=e.onHeadersReceived,B.onDone=e.onDone,B.onError=e.onError,B.onProgress=e.onProgress,L.send(null),O}onProgress(e,L){var O;const B=this.pendingRequests[e];B&&((O=B.onProgress)===null||O===void 0||O.call(B,L))}onStateChange(e,L){const O=this.pendingRequests[e];if(!O)return;const B=O.xhr;if(B.readyState>=2&&O.onHeadersReceived&&(O.onHeadersReceived(),delete O.onHeadersReceived),B.readyState!==4||!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],B.status===0&&this.isHttp){var P;(P=O.onError)===null||P===void 0||P.call(O,B.status);return}const S=B.status||k;if(!(S===k&&O.expectedStatus===x)&&S!==O.expectedStatus){var l;(l=O.onError)===null||l===void 0||l.call(O,B.status);return}const y=a(B);if(S===x){const M=B.getResponseHeader("Content-Range"),F=/bytes (\d+)-(\d+)\/(\d+)/.exec(M);O.onDone({begin:parseInt(F[1],10),chunk:y})}else if(y)O.onDone({begin:0,chunk:y});else{var D;(D=O.onError)===null||D===void 0||D.call(O,B.status)}}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const L=this.pendingRequests[e].xhr;delete this.pendingRequests[e],L.abort()}}class n{constructor(e){this._source=e,this._manager=new g(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const L=this._rangeRequestReaders.indexOf(e);L>=0&&this._rangeRequestReaders.splice(L,1)}getFullReader(){return(0,w.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new c(this._manager,this._source),this._fullRequestReader}getRangeReader(e,L){const O=new R(this._manager,e,L);return O.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(O),O}cancelAllRequests(e){var L;(L=this._fullRequestReader)===null||L===void 0||L.cancel(e);for(const O of this._rangeRequestReaders.slice(0))O.cancel(e)}}r.PDFNetworkStream=n;class c{constructor(e,L){this._manager=e;const O={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=L.url,this._fullRequestId=e.requestFull(O),this._headersReceivedCapability=(0,w.createPromiseCapability)(),this._disableRange=L.disableRange||!1,this._contentLength=L.length,this._rangeChunkSize=L.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,L=this._manager.getRequestXhr(e),O=S=>L.getResponseHeader(S),{allowRangeRequests:B,suggestedLength:P}=(0,U.validateRangeRequestCapabilities)({getResponseHeader:O,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});B&&(this._isRangeSupported=!0),this._contentLength=P||this._contentLength,this._filename=(0,U.extractFilenameFromHeader)(O),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const L of this._requests)L.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=(0,U.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError);for(const L of this._requests)L.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){var L;(L=this.onProgress)===null||L===void 0||L.call(this,{loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=(0,w.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e);for(const L of this._requests)L.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class R{constructor(e,L,O){this._manager=e;const B={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(L,O,B),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){var e;(e=this.onClosed)===null||e===void 0||e.call(this,this)}_onDone(e){const L=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:L,done:!1}):this._queuedChunk=L,this._done=!0;for(const O of this._requests)O.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError=(0,U.createResponseStatusError)(e,this._url);for(const L of this._requests)L.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){if(!this.isStreamingSupported){var L;(L=this.onProgress)===null||L===void 0||L.call(this,{loaded:e.loaded})}}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(this._queuedChunk!==null){const L=this._queuedChunk;return this._queuedChunk=null,{value:L,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,w.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const L of this._requests)L.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(b,r,m)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.PDFFetchStream=void 0;var w=m(1),U=m(158);function k(c,R,v){return{method:"GET",headers:c,signal:v.signal,mode:"cors",credentials:R?"include":"same-origin",redirect:"follow"}}function x(c){const R=new Headers;for(const v in c){const e=c[v];typeof e>"u"||R.append(v,e)}return R}class a{constructor(R){this.source=R,this.isHttp=/^https?:/i.test(R.url),this.httpHeaders=this.isHttp&&R.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){var R,v;return(R=(v=this._fullRequestReader)===null||v===void 0?void 0:v._loaded)!==null&&R!==void 0?R:0}getFullReader(){return(0,w.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new g(this),this._fullRequestReader}getRangeReader(R,v){if(v<=this._progressiveDataLength)return null;const e=new n(this,R,v);return this._rangeRequestReaders.push(e),e}cancelAllRequests(R){this._fullRequestReader&&this._fullRequestReader.cancel(R);for(const v of this._rangeRequestReaders.slice(0))v.cancel(R)}}r.PDFFetchStream=a;class g{constructor(R){this._stream=R,this._reader=null,this._loaded=0,this._filename=null;const v=R.source;this._withCredentials=v.withCredentials||!1,this._contentLength=v.length,this._headersCapability=(0,w.createPromiseCapability)(),this._disableRange=v.disableRange||!1,this._rangeChunkSize=v.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!v.disableStream,this._isRangeSupported=!v.disableRange,this._headers=x(this._stream.httpHeaders);const e=v.url;fetch(e,k(this._headers,this._withCredentials,this._abortController)).then(L=>{if(!(0,U.validateResponseStatus)(L.status))throw(0,U.createResponseStatusError)(L.status,e);this._reader=L.body.getReader(),this._headersCapability.resolve();const O=S=>L.headers.get(S),{allowRangeRequests:B,suggestedLength:P}=(0,U.validateRangeRequestCapabilities)({getResponseHeader:O,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=B,this._contentLength=P||this._contentLength,this._filename=(0,U.extractFilenameFromHeader)(O),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new w.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:R,done:v}=await this._reader.read();return v?{value:R,done:v}:(this._loaded+=R.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(R).buffer,done:!1})}cancel(R){this._reader&&this._reader.cancel(R),this._abortController.abort()}}class n{constructor(R,v,e){this._stream=R,this._reader=null,this._loaded=0;const L=R.source;this._withCredentials=L.withCredentials||!1,this._readCapability=(0,w.createPromiseCapability)(),this._isStreamingSupported=!L.disableStream,this._abortController=new AbortController,this._headers=x(this._stream.httpHeaders),this._headers.append("Range",`bytes=${v}-${e-1}`);const O=L.url;fetch(O,k(this._headers,this._withCredentials,this._abortController)).then(B=>{if(!(0,U.validateResponseStatus)(B.status))throw(0,U.createResponseStatusError)(B.status,O);this._readCapability.resolve(),this._reader=B.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:R,done:v}=await this._reader.read();return v?{value:R,done:v}:(this._loaded+=R.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(R).buffer,done:!1})}cancel(R){this._reader&&this._reader.cancel(R),this._abortController.abort()}}}],__webpack_module_cache__={};function __w_pdfjs_require__(b){var r=__webpack_module_cache__[b];if(r!==void 0)return r.exports;var m=__webpack_module_cache__[b]={exports:{}};return __webpack_modules__[b](m,m.exports,__w_pdfjs_require__),m.exports}var __webpack_exports__={};return(()=>{var b=__webpack_exports__;Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"AnnotationEditorLayer",{enumerable:!0,get:function(){return U.AnnotationEditorLayer}}),Object.defineProperty(b,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return r.AnnotationEditorParamsType}}),Object.defineProperty(b,"AnnotationEditorType",{enumerable:!0,get:function(){return r.AnnotationEditorType}}),Object.defineProperty(b,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return k.AnnotationEditorUIManager}}),Object.defineProperty(b,"AnnotationLayer",{enumerable:!0,get:function(){return x.AnnotationLayer}}),Object.defineProperty(b,"AnnotationMode",{enumerable:!0,get:function(){return r.AnnotationMode}}),Object.defineProperty(b,"CMapCompressionType",{enumerable:!0,get:function(){return r.CMapCompressionType}}),Object.defineProperty(b,"GlobalWorkerOptions",{enumerable:!0,get:function(){return a.GlobalWorkerOptions}}),Object.defineProperty(b,"InvalidPDFException",{enumerable:!0,get:function(){return r.InvalidPDFException}}),Object.defineProperty(b,"LoopbackPort",{enumerable:!0,get:function(){return m.LoopbackPort}}),Object.defineProperty(b,"MissingPDFException",{enumerable:!0,get:function(){return r.MissingPDFException}}),Object.defineProperty(b,"OPS",{enumerable:!0,get:function(){return r.OPS}}),Object.defineProperty(b,"PDFDataRangeTransport",{enumerable:!0,get:function(){return m.PDFDataRangeTransport}}),Object.defineProperty(b,"PDFDateString",{enumerable:!0,get:function(){return w.PDFDateString}}),Object.defineProperty(b,"PDFWorker",{enumerable:!0,get:function(){return m.PDFWorker}}),Object.defineProperty(b,"PasswordResponses",{enumerable:!0,get:function(){return r.PasswordResponses}}),Object.defineProperty(b,"PermissionFlag",{enumerable:!0,get:function(){return r.PermissionFlag}}),Object.defineProperty(b,"PixelsPerInch",{enumerable:!0,get:function(){return w.PixelsPerInch}}),Object.defineProperty(b,"RenderingCancelledException",{enumerable:!0,get:function(){return w.RenderingCancelledException}}),Object.defineProperty(b,"SVGGraphics",{enumerable:!0,get:function(){return c.SVGGraphics}}),Object.defineProperty(b,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return r.UNSUPPORTED_FEATURES}}),Object.defineProperty(b,"UnexpectedResponseException",{enumerable:!0,get:function(){return r.UnexpectedResponseException}}),Object.defineProperty(b,"Util",{enumerable:!0,get:function(){return r.Util}}),Object.defineProperty(b,"VerbosityLevel",{enumerable:!0,get:function(){return r.VerbosityLevel}}),Object.defineProperty(b,"XfaLayer",{enumerable:!0,get:function(){return R.XfaLayer}}),Object.defineProperty(b,"build",{enumerable:!0,get:function(){return m.build}}),Object.defineProperty(b,"createPromiseCapability",{enumerable:!0,get:function(){return r.createPromiseCapability}}),Object.defineProperty(b,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return r.createValidAbsoluteUrl}}),Object.defineProperty(b,"getDocument",{enumerable:!0,get:function(){return m.getDocument}}),Object.defineProperty(b,"getFilenameFromUrl",{enumerable:!0,get:function(){return w.getFilenameFromUrl}}),Object.defineProperty(b,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return w.getPdfFilenameFromUrl}}),Object.defineProperty(b,"getXfaPageViewport",{enumerable:!0,get:function(){return w.getXfaPageViewport}}),Object.defineProperty(b,"isPdfFile",{enumerable:!0,get:function(){return w.isPdfFile}}),Object.defineProperty(b,"loadScript",{enumerable:!0,get:function(){return w.loadScript}}),Object.defineProperty(b,"renderTextLayer",{enumerable:!0,get:function(){return n.renderTextLayer}}),Object.defineProperty(b,"shadow",{enumerable:!0,get:function(){return r.shadow}}),Object.defineProperty(b,"version",{enumerable:!0,get:function(){return m.version}});var r=__w_pdfjs_require__(1),m=__w_pdfjs_require__(129),w=__w_pdfjs_require__(133),U=__w_pdfjs_require__(147),k=__w_pdfjs_require__(132),x=__w_pdfjs_require__(152),a=__w_pdfjs_require__(140),g=__w_pdfjs_require__(3),n=__w_pdfjs_require__(155),c=__w_pdfjs_require__(156),R=__w_pdfjs_require__(154);if(g.isNodeJS){const{PDFNodeStream:v}=__w_pdfjs_require__(157);(0,m.setPDFNetworkStreamFactory)(e=>new v(e))}else{const{PDFNetworkStream:v}=__w_pdfjs_require__(160),{PDFFetchStream:e}=__w_pdfjs_require__(161);(0,m.setPDFNetworkStreamFactory)(L=>(0,w.isValidFetchUrl)(L.url)?new e(L):new v(L))}})(),__webpack_exports__})())}(pdf)),pdf.exports}var pdfExports=requirePdf(),pdf_worker_entry={},pdf_worker={exports:{}};(function(b,r){(function(w,U){b.exports=U()})(globalThis,()=>(()=>{var m=[,(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.WorkerTask=a.WorkerMessageHandler=void 0;var n=g(2),c=g(130),R=g(131),v=g(133),e=g(196),L=g(190),O=g(4),B=g(227),P=g(228);class S{constructor(D){this.name=D,this.terminated=!1,this._capability=(0,n.createPromiseCapability)()}get finished(){return this._capability.promise}finish(){this._capability.resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}}a.WorkerTask=S;class _{static setup(D,M){let F=!1;D.on("test",function(G){F||(F=!0,D.send("test",G instanceof Uint8Array))}),D.on("configure",function(G){(0,n.setVerbosityLevel)(G.verbosity)}),D.on("GetDocRequest",function(G){return _.createDocumentHandler(G,M)})}static createDocumentHandler(D,M){let F,N=!1,G=null;const W=[],J=(0,n.getVerbosityLevel)(),Y=D.apiVersion,V="2.16.105";if(Y!==V)throw new Error(`The API version "${Y}" does not match the Worker version "${V}".`);const H=[];for(const ce in[])H.push(ce);if(H.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+H.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");if(typeof ReadableStream>"u"){const ce="The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `ReadableStream`); ";throw O.isNodeJS?new Error(ce+"please use a `legacy`-build instead."):new Error(ce+"please update to a supported browser.")}const z=D.docId,X=D.docBaseUrl,q=D.docId+"_worker";let $=new B.MessageHandler(q,z,M);function fe(){if(N)throw new Error("Worker was terminated")}function Q(ce){W.push(ce)}function ie(ce){ce.finish();const de=W.indexOf(ce);W.splice(de,1)}async function Te(ce){await F.ensureDoc("checkHeader"),await F.ensureDoc("parseStartXRef"),await F.ensureDoc("parse",[ce]),await F.ensureDoc("checkFirstPage",[ce]),await F.ensureDoc("checkLastPage",[ce]);const de=await F.ensureDoc("isPureXfa");if(de){const we=new S("loadXfaFonts");Q(we),await Promise.all([F.loadXfaFonts($,we).catch(_e=>{}).then(()=>ie(we)),F.loadXfaImages()])}const[Z,ae]=await Promise.all([F.ensureDoc("numPages"),F.ensureDoc("fingerprints")]),he=de?await F.ensureDoc("htmlForXfa"):null;return{numPages:Z,fingerprints:ae,htmlForXfa:he}}function me(ce,de,Z){const ae=(0,n.createPromiseCapability)();let he;const we=ce.source;if(we.data){try{he=new v.LocalPdfManager(z,we.data,we.password,$,de,Z,X),ae.resolve(he)}catch(pe){ae.reject(pe)}return ae.promise}let _e,ye=[];try{_e=new P.PDFWorkerStream($)}catch(pe){return ae.reject(pe),ae.promise}const se=_e.getFullReader();se.headersReady.then(function(){if(!se.isRangeSupported)return;const pe=we.disableAutoFetch||se.isStreamingSupported;he=new v.NetworkPdfManager(z,_e,{msgHandler:$,password:we.password,length:se.contentLength,disableAutoFetch:pe,rangeChunkSize:we.rangeChunkSize},de,Z,X);for(const xe of ye)he.sendProgressiveData(xe);ye=[],ae.resolve(he),G=null}).catch(function(pe){ae.reject(pe),G=null});let Ie=0;const Ce=function(){const pe=(0,n.arraysToBytes)(ye);we.length&&pe.length!==we.length&&(0,n.warn)("reported HTTP length is different from actual");try{he=new v.LocalPdfManager(z,pe,we.password,$,de,Z,X),ae.resolve(he)}catch(xe){ae.reject(xe)}ye=[]};return new Promise(function(pe,xe){const Ne=function(ke){let{value:De,done:Fe}=ke;try{if(fe(),Fe){he||Ce(),G=null;return}Ie+=(0,n.arrayByteLength)(De),se.isStreamingSupported||$.send("DocProgress",{loaded:Ie,total:Math.max(Ie,se.contentLength||0)}),he?he.sendProgressiveData(De):ye.push(De),se.read().then(Ne,xe)}catch(Pe){xe(Pe)}};se.read().then(Ne,xe)}).catch(function(pe){ae.reject(pe),G=null}),G=function(pe){_e.cancelAllRequests(pe)},ae.promise}function K(ce){function de(we){fe(),$.send("GetDoc",{pdfInfo:we})}function Z(we){if(fe(),we instanceof n.PasswordException){const _e=new S(`PasswordException: response ${we.code}`);Q(_e),$.sendWithPromise("PasswordRequest",we).then(function(ye){let{password:se}=ye;ie(_e),F.updatePassword(se),ae()}).catch(function(){ie(_e),$.send("DocException",we)})}else we instanceof n.InvalidPDFException||we instanceof n.MissingPDFException||we instanceof n.UnexpectedResponseException||we instanceof n.UnknownErrorException?$.send("DocException",we):$.send("DocException",new n.UnknownErrorException(we.message,we.toString()))}function ae(){fe(),Te(!1).then(de,function(we){if(fe(),!(we instanceof R.XRefParseException)){Z(we);return}F.requestLoadedStream(),F.onLoadedStream().then(function(){fe(),Te(!0).then(de,Z)})})}fe();const he={maxImageSize:ce.maxImageSize,disableFontFace:ce.disableFontFace,ignoreErrors:ce.ignoreErrors,isEvalSupported:ce.isEvalSupported,fontExtraProperties:ce.fontExtraProperties,useSystemFonts:ce.useSystemFonts,cMapUrl:ce.cMapUrl,standardFontDataUrl:ce.standardFontDataUrl};me(ce,he,ce.enableXfa).then(function(we){if(N)throw we.terminate(new n.AbortException("Worker was terminated.")),new Error("Worker was terminated");F=we,F.onLoadedStream().then(function(_e){$.send("DataLoaded",{length:_e.bytes.byteLength})})}).then(ae,Z)}return $.on("GetPage",function(de){return F.getPage(de.pageIndex).then(function(Z){return Promise.all([F.ensure(Z,"rotate"),F.ensure(Z,"ref"),F.ensure(Z,"userUnit"),F.ensure(Z,"view")]).then(function(ae){let[he,we,_e,ye]=ae;return{rotate:he,ref:we,userUnit:_e,view:ye}})})}),$.on("GetPageIndex",function(de){const Z=c.Ref.get(de.num,de.gen);return F.ensureCatalog("getPageIndex",[Z])}),$.on("GetDestinations",function(de){return F.ensureCatalog("destinations")}),$.on("GetDestination",function(de){return F.ensureCatalog("getDestination",[de.id])}),$.on("GetPageLabels",function(de){return F.ensureCatalog("pageLabels")}),$.on("GetPageLayout",function(de){return F.ensureCatalog("pageLayout")}),$.on("GetPageMode",function(de){return F.ensureCatalog("pageMode")}),$.on("GetViewerPreferences",function(ce){return F.ensureCatalog("viewerPreferences")}),$.on("GetOpenAction",function(ce){return F.ensureCatalog("openAction")}),$.on("GetAttachments",function(de){return F.ensureCatalog("attachments")}),$.on("GetJavaScript",function(de){return F.ensureCatalog("javaScript")}),$.on("GetDocJSActions",function(de){return F.ensureCatalog("jsActions")}),$.on("GetPageJSActions",function(ce){let{pageIndex:de}=ce;return F.getPage(de).then(function(Z){return F.ensure(Z,"jsActions")})}),$.on("GetOutline",function(de){return F.ensureCatalog("documentOutline")}),$.on("GetOptionalContentConfig",function(ce){return F.ensureCatalog("optionalContentConfig")}),$.on("GetPermissions",function(ce){return F.ensureCatalog("permissions")}),$.on("GetMetadata",function(de){return Promise.all([F.ensureDoc("documentInfo"),F.ensureCatalog("metadata")])}),$.on("GetMarkInfo",function(de){return F.ensureCatalog("markInfo")}),$.on("GetData",function(de){return F.requestLoadedStream(),F.onLoadedStream().then(function(Z){return Z.bytes})}),$.on("GetAnnotations",function(ce){let{pageIndex:de,intent:Z}=ce;return F.getPage(de).then(function(ae){const he=new S(`GetAnnotations: page ${de}`);return Q(he),ae.getAnnotationsData($,he,Z).then(we=>(ie(he),we),we=>{ie(he)})})}),$.on("GetFieldObjects",function(ce){return F.ensureDoc("fieldObjects")}),$.on("HasJSActions",function(ce){return F.ensureDoc("hasJSActions")}),$.on("GetCalculationOrderIds",function(ce){return F.ensureDoc("calculationOrderIds")}),$.on("SaveDocument",function(ce){let{isPureXfa:de,numPages:Z,annotationStorage:ae,filename:he}=ce;F.requestLoadedStream();const we=de?null:(0,R.getNewAnnotationsMap)(ae),_e=[F.onLoadedStream(),F.ensureCatalog("acroForm"),F.ensureCatalog("acroFormRef"),F.ensureDoc("xref"),F.ensureDoc("startXRef")];if(we)for(const[ye,se]of we)_e.push(F.getPage(ye).then(Ie=>{const Ce=new S(`Save (editor): page ${ye}`);return Ie.saveNewAnnotations($,Ce,se).finally(function(){ie(Ce)})}));if(de)_e.push(F.serializeXfaData(ae));else for(let ye=0;ye{typeof Ae=="string"&&(Le[Ee]=(0,n.stringToPDFString)(Ae))}),qe={rootRef:oe.trailer.getRaw("Root")||null,encryptRef:oe.trailer.getRaw("Encrypt")||null,newRef:oe.getNewRef(),infoRef:oe.trailer.getRaw("Info")||null,info:Le,fileIds:oe.trailer.get("ID")||null,startXRef:pe,filename:he}}return oe.resetNewRef(),(0,L.incrementalUpdate)({originalData:se.bytes,xrefInfo:qe,newRefs:Ne,xref:oe,hasXfa:!!De,xfaDatasetsRef:Fe,hasXfaDatasetsEntry:Pe,acroFormRef:Ce,acroForm:Ie,xfaData:ke})})}),$.on("GetOperatorList",function(de,Z){const ae=de.pageIndex;F.getPage(ae).then(function(he){const we=new S(`GetOperatorList: page ${ae}`);Q(we);const _e=J>=n.VerbosityLevel.INFOS?Date.now():0;he.getOperatorList({handler:$,sink:Z,task:we,intent:de.intent,cacheKey:de.cacheKey,annotationStorage:de.annotationStorage}).then(function(ye){ie(we),_e&&(0,n.info)(`page=${ae+1} - getOperatorList: time=${Date.now()-_e}ms, len=${ye.length}`),Z.close()},function(ye){ie(we),!we.terminated&&($.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorOperatorList}),Z.error(ye))})})}),$.on("GetTextContent",function(de,Z){const ae=de.pageIndex;F.getPage(ae).then(function(he){const we=new S("GetTextContent: page "+ae);Q(we);const _e=J>=n.VerbosityLevel.INFOS?Date.now():0;he.extractTextContent({handler:$,task:we,sink:Z,includeMarkedContent:de.includeMarkedContent,combineTextItems:de.combineTextItems}).then(function(){ie(we),_e&&(0,n.info)(`page=${ae+1} - getTextContent: time=${Date.now()-_e}ms`),Z.close()},function(ye){ie(we),!we.terminated&&Z.error(ye)})})}),$.on("GetStructTree",function(de){return F.getPage(de.pageIndex).then(function(Z){return F.ensure(Z,"getStructTree")})}),$.on("FontFallback",function(ce){return F.fontFallback(ce.id,$)}),$.on("Cleanup",function(de){return F.cleanup(!0)}),$.on("Terminate",function(de){N=!0;const Z=[];if(F){F.terminate(new n.AbortException("Worker was terminated."));const ae=F.cleanup();Z.push(ae),F=null}else(0,e.clearGlobalCaches)();G&&G(new n.AbortException("Worker was terminated."));for(const ae of W)Z.push(ae.finished),ae.terminate();return Promise.all(Z).then(function(){$.destroy(),$=null})}),$.on("Ready",function(de){K(D),D=null}),q}static initializeFromPort(D){const M=new B.MessageHandler("worker","main",D);_.setup(M,D),M.send("ready",null)}}a.WorkerMessageHandler=_;function l(y){return typeof y.postMessage=="function"&&"onmessage"in y}typeof window>"u"&&!O.isNodeJS&&typeof self<"u"&&l(self)&&_.initializeFromPort(self)},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.VerbosityLevel=a.Util=a.UnknownErrorException=a.UnexpectedResponseException=a.UNSUPPORTED_FEATURES=a.TextRenderingMode=a.StreamType=a.RenderingIntentFlag=a.PermissionFlag=a.PasswordResponses=a.PasswordException=a.PageActionEventType=a.OPS=a.MissingPDFException=a.LINE_FACTOR=a.LINE_DESCENT_FACTOR=a.InvalidPDFException=a.ImageKind=a.IDENTITY_MATRIX=a.FormatError=a.FontType=a.FeatureTest=a.FONT_IDENTITY_MATRIX=a.DocumentActionEventType=a.CMapCompressionType=a.BaseException=a.AnnotationType=a.AnnotationStateModelType=a.AnnotationReviewState=a.AnnotationReplyType=a.AnnotationMode=a.AnnotationMarkedState=a.AnnotationFlag=a.AnnotationFieldFlag=a.AnnotationEditorType=a.AnnotationEditorPrefix=a.AnnotationEditorParamsType=a.AnnotationBorderStyleType=a.AnnotationActionEventType=a.AbortException=void 0,a.arrayByteLength=Fe,a.arraysToBytes=Pe,a.assert=ae,a.bytesToString=ke,a.createPromiseCapability=ot,a.createValidAbsoluteUrl=we,a.escapeString=Ze,a.getModificationDate=at,a.getVerbosityLevel=K,a.info=ce,a.isArrayBuffer=nt,a.isArrayEqual=Ke,a.isAscii=et,a.objectFromMap=Oe,a.objectSize=Le,a.setVerbosityLevel=me,a.shadow=_e,a.string32=qe,a.stringToBytes=De,a.stringToPDFString=Qe,a.stringToUTF16BEString=tt,a.stringToUTF8String=je,a.unreachable=Z,a.utf8StringToString=Je,a.warn=de,g(3);const n=[1,0,0,1,0,0];a.IDENTITY_MATRIX=n;const c=[.001,0,0,.001,0,0];a.FONT_IDENTITY_MATRIX=c;const R=1.35;a.LINE_FACTOR=R;const v=.35;a.LINE_DESCENT_FACTOR=v;const e={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};a.RenderingIntentFlag=e;const L={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};a.AnnotationMode=L;const O="pdfjs_internal_editor_";a.AnnotationEditorPrefix=O;const B={DISABLE:-1,NONE:0,FREETEXT:3,INK:15};a.AnnotationEditorType=B;const P={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13};a.AnnotationEditorParamsType=P;const S={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};a.PermissionFlag=S;const _={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};a.TextRenderingMode=_;const l={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};a.ImageKind=l;const y={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};a.AnnotationType=y;const D={MARKED:"Marked",REVIEW:"Review"};a.AnnotationStateModelType=D;const M={MARKED:"Marked",UNMARKED:"Unmarked"};a.AnnotationMarkedState=M;const F={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};a.AnnotationReviewState=F;const N={GROUP:"Group",REPLY:"R"};a.AnnotationReplyType=N;const G={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};a.AnnotationFlag=G;const W={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};a.AnnotationFieldFlag=W;const J={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};a.AnnotationBorderStyleType=J;const Y={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};a.AnnotationActionEventType=Y;const V={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};a.DocumentActionEventType=V;const H={O:"PageOpen",C:"PageClose"};a.PageActionEventType=H;const z={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};a.StreamType=z;const X={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};a.FontType=X;const q={ERRORS:0,WARNINGS:1,INFOS:5};a.VerbosityLevel=q;const $={NONE:0,BINARY:1,STREAM:2};a.CMapCompressionType=$;const fe={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};a.OPS=fe;const Q={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"};a.UNSUPPORTED_FEATURES=Q;const ie={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};a.PasswordResponses=ie;let Te=q.WARNINGS;function me(Xe){Number.isInteger(Xe)&&(Te=Xe)}function K(){return Te}function ce(Xe){Te>=q.INFOS&&console.log(`Info: ${Xe}`)}function de(Xe){Te>=q.WARNINGS&&console.log(`Warning: ${Xe}`)}function Z(Xe){throw new Error(Xe)}function ae(Xe,ze){Xe||Z(ze)}function he(Xe){if(!Xe)return!1;switch(Xe.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function we(Xe){let ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Xe)return null;try{if(Ye&&typeof Xe=="string"){if(Ye.addDefaultProtocol&&Xe.startsWith("www.")){const _t=Xe.match(/\./g);_t&&_t.length>=2&&(Xe=`http://${Xe}`)}if(Ye.tryConvertEncoding)try{Xe=je(Xe)}catch{}}const st=ze?new URL(Xe,ze):new URL(Xe);if(he(st))return st}catch{}return null}function _e(Xe,ze,Ye){return Object.defineProperty(Xe,ze,{value:Ye,enumerable:!0,configurable:!0,writable:!1}),Ye}const ye=function(){function ze(Ye,st){this.constructor===ze&&Z("Cannot initialize BaseException."),this.message=Ye,this.name=st}return ze.prototype=new Error,ze.constructor=ze,ze}();a.BaseException=ye;class se extends ye{constructor(ze,Ye){super(ze,"PasswordException"),this.code=Ye}}a.PasswordException=se;class Ie extends ye{constructor(ze,Ye){super(ze,"UnknownErrorException"),this.details=Ye}}a.UnknownErrorException=Ie;class Ce extends ye{constructor(ze){super(ze,"InvalidPDFException")}}a.InvalidPDFException=Ce;class oe extends ye{constructor(ze){super(ze,"MissingPDFException")}}a.MissingPDFException=oe;class pe extends ye{constructor(ze,Ye){super(ze,"UnexpectedResponseException"),this.status=Ye}}a.UnexpectedResponseException=pe;class xe extends ye{constructor(ze){super(ze,"FormatError")}}a.FormatError=xe;class Ne extends ye{constructor(ze){super(ze,"AbortException")}}a.AbortException=Ne;function ke(Xe){(typeof Xe!="object"||Xe===null||Xe.length===void 0)&&Z("Invalid argument for bytesToString");const ze=Xe.length,Ye=8192;if(ze>24&255,Xe>>16&255,Xe>>8&255,Xe&255)}function Le(Xe){return Object.keys(Xe).length}function Oe(Xe){const ze=Object.create(null);for(const[Ye,st]of Xe)ze[Ye]=st;return ze}function Ee(){const Xe=new Uint8Array(4);return Xe[0]=1,new Uint32Array(Xe.buffer,0,1)[0]===1}function Ae(){try{return new Function(""),!0}catch{return!1}}class Ve{static get isLittleEndian(){return _e(this,"isLittleEndian",Ee())}static get isEvalSupported(){return _e(this,"isEvalSupported",Ae())}static get isOffscreenCanvasSupported(){return _e(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas<"u")}}a.FeatureTest=Ve;const $e=[...Array(256).keys()].map(Xe=>Xe.toString(16).padStart(2,"0"));class Ue{static makeHexColor(ze,Ye,st){return`#${$e[ze]}${$e[Ye]}${$e[st]}`}static scaleMinMax(ze,Ye){let st;ze[0]?(ze[0]<0&&(st=Ye[0],Ye[0]=Ye[1],Ye[1]=st),Ye[0]*=ze[0],Ye[1]*=ze[0],ze[3]<0&&(st=Ye[2],Ye[2]=Ye[3],Ye[3]=st),Ye[2]*=ze[3],Ye[3]*=ze[3]):(st=Ye[0],Ye[0]=Ye[2],Ye[2]=st,st=Ye[1],Ye[1]=Ye[3],Ye[3]=st,ze[1]<0&&(st=Ye[2],Ye[2]=Ye[3],Ye[3]=st),Ye[2]*=ze[1],Ye[3]*=ze[1],ze[2]<0&&(st=Ye[0],Ye[0]=Ye[1],Ye[1]=st),Ye[0]*=ze[2],Ye[1]*=ze[2]),Ye[0]+=ze[4],Ye[1]+=ze[4],Ye[2]+=ze[5],Ye[3]+=ze[5]}static transform(ze,Ye){return[ze[0]*Ye[0]+ze[2]*Ye[1],ze[1]*Ye[0]+ze[3]*Ye[1],ze[0]*Ye[2]+ze[2]*Ye[3],ze[1]*Ye[2]+ze[3]*Ye[3],ze[0]*Ye[4]+ze[2]*Ye[5]+ze[4],ze[1]*Ye[4]+ze[3]*Ye[5]+ze[5]]}static applyTransform(ze,Ye){const st=ze[0]*Ye[0]+ze[1]*Ye[2]+Ye[4],_t=ze[0]*Ye[1]+ze[1]*Ye[3]+Ye[5];return[st,_t]}static applyInverseTransform(ze,Ye){const st=Ye[0]*Ye[3]-Ye[1]*Ye[2],_t=(ze[0]*Ye[3]-ze[1]*Ye[2]+Ye[2]*Ye[5]-Ye[4]*Ye[3])/st,ft=(-ze[0]*Ye[1]+ze[1]*Ye[0]+Ye[4]*Ye[1]-Ye[5]*Ye[0])/st;return[_t,ft]}static getAxialAlignedBoundingBox(ze,Ye){const st=Ue.applyTransform(ze,Ye),_t=Ue.applyTransform(ze.slice(2,4),Ye),ft=Ue.applyTransform([ze[0],ze[3]],Ye),Ct=Ue.applyTransform([ze[2],ze[1]],Ye);return[Math.min(st[0],_t[0],ft[0],Ct[0]),Math.min(st[1],_t[1],ft[1],Ct[1]),Math.max(st[0],_t[0],ft[0],Ct[0]),Math.max(st[1],_t[1],ft[1],Ct[1])]}static inverseTransform(ze){const Ye=ze[0]*ze[3]-ze[1]*ze[2];return[ze[3]/Ye,-ze[1]/Ye,-ze[2]/Ye,ze[0]/Ye,(ze[2]*ze[5]-ze[4]*ze[3])/Ye,(ze[4]*ze[1]-ze[5]*ze[0])/Ye]}static apply3dTransform(ze,Ye){return[ze[0]*Ye[0]+ze[1]*Ye[1]+ze[2]*Ye[2],ze[3]*Ye[0]+ze[4]*Ye[1]+ze[5]*Ye[2],ze[6]*Ye[0]+ze[7]*Ye[1]+ze[8]*Ye[2]]}static singularValueDecompose2dScale(ze){const Ye=[ze[0],ze[2],ze[1],ze[3]],st=ze[0]*Ye[0]+ze[1]*Ye[2],_t=ze[0]*Ye[1]+ze[1]*Ye[3],ft=ze[2]*Ye[0]+ze[3]*Ye[2],Ct=ze[2]*Ye[1]+ze[3]*Ye[3],ut=(st+Ct)/2,rt=Math.sqrt((st+Ct)**2-4*(st*Ct-ft*_t))/2,mt=ut+rt||1,Ot=ut-rt||1;return[Math.sqrt(mt),Math.sqrt(Ot)]}static normalizeRect(ze){const Ye=ze.slice(0);return ze[0]>ze[2]&&(Ye[0]=ze[2],Ye[2]=ze[0]),ze[1]>ze[3]&&(Ye[1]=ze[3],Ye[3]=ze[1]),Ye}static intersect(ze,Ye){const st=Math.max(Math.min(ze[0],ze[2]),Math.min(Ye[0],Ye[2])),_t=Math.min(Math.max(ze[0],ze[2]),Math.max(Ye[0],Ye[2]));if(st>_t)return null;const ft=Math.max(Math.min(ze[1],ze[3]),Math.min(Ye[1],Ye[3])),Ct=Math.min(Math.max(ze[1],ze[3]),Math.max(Ye[1],Ye[3]));return ft>Ct?null:[st,ft,_t,Ct]}static bezierBoundingBox(ze,Ye,st,_t,ft,Ct,ut,rt){const mt=[],Ot=[[],[]];let dt,Nt,kt,Ut,Ht,Kt,qt,pn;for(let At=0;At<2;++At){if(At===0?(Nt=6*ze-12*st+6*ft,dt=-3*ze+9*st-9*ft+3*ut,kt=3*st-3*ze):(Nt=6*Ye-12*_t+6*Ct,dt=-3*Ye+9*_t-9*Ct+3*rt,kt=3*_t-3*Ye),Math.abs(dt)<1e-12){if(Math.abs(Nt)<1e-12)continue;Ut=-kt/Nt,0="ï"){let Ye;if(Xe[0]==="þ"&&Xe[1]==="ÿ"?Ye="utf-16be":Xe[0]==="ÿ"&&Xe[1]==="þ"?Ye="utf-16le":Xe[0]==="ï"&&Xe[1]==="»"&&Xe[2]==="¿"&&(Ye="utf-8"),Ye)try{const st=new TextDecoder(Ye,{fatal:!0}),_t=De(Xe);return st.decode(_t)}catch(st){de(`stringToPDFString: "${st}".`)}}const ze=[];for(let Ye=0,st=Xe.length;Yeze===` `?"\\n":ze==="\r"?"\\r":`\\${ze}`)}function et(Xe){return/^[\x00-\x7F]*$/.test(Xe)}function tt(Xe){const ze=["þÿ"];for(let Ye=0,st=Xe.length;Ye>8&255),String.fromCharCode(_t&255))}return ze.join("")}function je(Xe){return decodeURIComponent(escape(Xe))}function Je(Xe){return unescape(encodeURIComponent(Xe))}function nt(Xe){return typeof Xe=="object"&&Xe!==null&&Xe.byteLength!==void 0}function Ke(Xe,ze){if(Xe.length!==ze.length)return!1;for(let Ye=0,st=Xe.length;Ye0&&arguments[0]!==void 0?arguments[0]:new Date;return[Xe.getUTCFullYear().toString(),(Xe.getUTCMonth()+1).toString().padStart(2,"0"),Xe.getUTCDate().toString().padStart(2,"0"),Xe.getUTCHours().toString().padStart(2,"0"),Xe.getUTCMinutes().toString().padStart(2,"0"),Xe.getUTCSeconds().toString().padStart(2,"0")].join("")}function ot(){const Xe=Object.create(null);let ze=!1;return Object.defineProperty(Xe,"settled",{get(){return ze}}),Xe.promise=new Promise(function(Ye,st){Xe.resolve=function(_t){ze=!0,Ye(_t)},Xe.reject=function(_t){ze=!0,st(_t)}}),Xe}},(x,a,g)=>{var n=g(4);globalThis._pdfjsCompatibilityChecked||(globalThis._pdfjsCompatibilityChecked=!0,function(){globalThis.btoa||!n.isNodeJS||(globalThis.btoa=function(R){return Buffer.from(R,"binary").toString("base64")})}(),function(){globalThis.atob||!n.isNodeJS||(globalThis.atob=function(R){return Buffer.from(R,"base64").toString("binary")})}(),function(){globalThis.DOMMatrix||!n.isNodeJS||(globalThis.DOMMatrix=requireDommatrix())}(),function(){globalThis.ReadableStream||!n.isNodeJS||(globalThis.ReadableStream=requirePonyfill().ReadableStream)}(),function(){Array.prototype.at||g(5)}(),function(){Uint8Array.prototype.at||g(77)}(),function(){globalThis.structuredClone||g(87)}())},(x,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.isNodeJS=void 0;const g=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");a.isNodeJS=g},(x,a,g)=>{g(6);var n=g(76);x.exports=n("Array","at")},(x,a,g)=>{var n=g(7),c=g(42),R=g(66),v=g(64),e=g(71);n({target:"Array",proto:!0},{at:function(O){var B=c(this),P=R(B),S=v(O),_=S>=0?S:P+S;return _<0||_>=P?void 0:B[_]}}),e("at")},(x,a,g)=>{var n=g(8),c=g(9).f,R=g(46),v=g(50),e=g(40),L=g(58),O=g(70);x.exports=function(B,P){var S=B.target,_=B.global,l=B.stat,y,D,M,F,N,G;if(_?D=n:l?D=n[S]||e(S,{}):D=(n[S]||{}).prototype,D)for(M in P){if(N=P[M],B.dontCallGetSet?(G=c(D,M),F=G&&G.value):F=D[M],y=O(_?M:S+(l?".":"#")+M,B.forced),!y&&F!==void 0){if(typeof N==typeof F)continue;L(N,F)}(B.sham||F&&F.sham)&&R(N,"sham",!0),v(D,M,N,B)}}},x=>{var a=function(g){return g&&g.Math==Math&&g};x.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof commonjsGlobal$1=="object"&&commonjsGlobal$1)||function(){return this}()||Function("return this")()},(x,a,g)=>{var n=g(10),c=g(12),R=g(14),v=g(15),e=g(16),L=g(21),O=g(41),B=g(44),P=Object.getOwnPropertyDescriptor;a.f=n?P:function(_,l){if(_=e(_),l=L(l),B)try{return P(_,l)}catch{}if(O(_,l))return v(!c(R.f,_,l),_[l])}},(x,a,g)=>{var n=g(11);x.exports=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},x=>{x.exports=function(a){try{return!!a()}catch{return!0}}},(x,a,g)=>{var n=g(13),c=Function.prototype.call;x.exports=n?c.bind(c):function(){return c.apply(c,arguments)}},(x,a,g)=>{var n=g(11);x.exports=!n(function(){var c=(function(){}).bind();return typeof c!="function"||c.hasOwnProperty("prototype")})},(x,a)=>{var g={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,c=n&&!g.call({1:2},1);a.f=c?function(v){var e=n(this,v);return!!e&&e.enumerable}:g},x=>{x.exports=function(a,g){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:g}}},(x,a,g)=>{var n=g(17),c=g(20);x.exports=function(R){return n(c(R))}},(x,a,g)=>{var n=g(18),c=g(11),R=g(19),v=Object,e=n("".split);x.exports=c(function(){return!v("z").propertyIsEnumerable(0)})?function(L){return R(L)=="String"?e(L,""):v(L)}:v},(x,a,g)=>{var n=g(13),c=Function.prototype,R=c.bind,v=c.call,e=n&&R.bind(v,v);x.exports=n?function(L){return L&&e(L)}:function(L){return L&&function(){return v.apply(L,arguments)}}},(x,a,g)=>{var n=g(18),c=n({}.toString),R=n("".slice);x.exports=function(v){return R(c(v),8,-1)}},x=>{var a=TypeError;x.exports=function(g){if(g==null)throw a("Can't call method on "+g);return g}},(x,a,g)=>{var n=g(22),c=g(25);x.exports=function(R){var v=n(R,"string");return c(v)?v:v+""}},(x,a,g)=>{var n=g(12),c=g(23),R=g(25),v=g(32),e=g(35),L=g(36),O=TypeError,B=L("toPrimitive");x.exports=function(P,S){if(!c(P)||R(P))return P;var _=v(P,B),l;if(_){if(S===void 0&&(S="default"),l=n(_,P,S),!c(l)||R(l))return l;throw O("Can't convert object to primitive value")}return S===void 0&&(S="number"),e(P,S)}},(x,a,g)=>{var n=g(24);x.exports=function(c){return typeof c=="object"?c!==null:n(c)}},x=>{x.exports=function(a){return typeof a=="function"}},(x,a,g)=>{var n=g(26),c=g(24),R=g(27),v=g(28),e=Object;x.exports=v?function(L){return typeof L=="symbol"}:function(L){var O=n("Symbol");return c(O)&&R(O.prototype,e(L))}},(x,a,g)=>{var n=g(8),c=g(24),R=function(v){return c(v)?v:void 0};x.exports=function(v,e){return arguments.length<2?R(n[v]):n[v]&&n[v][e]}},(x,a,g)=>{var n=g(18);x.exports=n({}.isPrototypeOf)},(x,a,g)=>{var n=g(29);x.exports=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},(x,a,g)=>{var n=g(30),c=g(11);x.exports=!!Object.getOwnPropertySymbols&&!c(function(){var R=Symbol();return!String(R)||!(Object(R)instanceof Symbol)||!Symbol.sham&&n&&n<41})},(x,a,g)=>{var n=g(8),c=g(31),R=n.process,v=n.Deno,e=R&&R.versions||v&&v.version,L=e&&e.v8,O,B;L&&(O=L.split("."),B=O[0]>0&&O[0]<4?1:+(O[0]+O[1])),!B&&c&&(O=c.match(/Edge\/(\d+)/),(!O||O[1]>=74)&&(O=c.match(/Chrome\/(\d+)/),O&&(B=+O[1]))),x.exports=B},(x,a,g)=>{var n=g(26);x.exports=n("navigator","userAgent")||""},(x,a,g)=>{var n=g(33);x.exports=function(c,R){var v=c[R];return v==null?void 0:n(v)}},(x,a,g)=>{var n=g(24),c=g(34),R=TypeError;x.exports=function(v){if(n(v))return v;throw R(c(v)+" is not a function")}},x=>{var a=String;x.exports=function(g){try{return a(g)}catch{return"Object"}}},(x,a,g)=>{var n=g(12),c=g(24),R=g(23),v=TypeError;x.exports=function(e,L){var O,B;if(L==="string"&&c(O=e.toString)&&!R(B=n(O,e))||c(O=e.valueOf)&&!R(B=n(O,e))||L!=="string"&&c(O=e.toString)&&!R(B=n(O,e)))return B;throw v("Can't convert object to primitive value")}},(x,a,g)=>{var n=g(8),c=g(37),R=g(41),v=g(43),e=g(29),L=g(28),O=c("wks"),B=n.Symbol,P=B&&B.for,S=L?B:B&&B.withoutSetter||v;x.exports=function(_){if(!R(O,_)||!(e||typeof O[_]=="string")){var l="Symbol."+_;e&&R(B,_)?O[_]=B[_]:L&&P?O[_]=P(l):O[_]=S(l)}return O[_]}},(x,a,g)=>{var n=g(38),c=g(39);(x.exports=function(R,v){return c[R]||(c[R]=v!==void 0?v:{})})("versions",[]).push({version:"3.24.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},x=>{x.exports=!1},(x,a,g)=>{var n=g(8),c=g(40),R="__core-js_shared__",v=n[R]||c(R,{});x.exports=v},(x,a,g)=>{var n=g(8),c=Object.defineProperty;x.exports=function(R,v){try{c(n,R,{value:v,configurable:!0,writable:!0})}catch{n[R]=v}return v}},(x,a,g)=>{var n=g(18),c=g(42),R=n({}.hasOwnProperty);x.exports=Object.hasOwn||function(e,L){return R(c(e),L)}},(x,a,g)=>{var n=g(20),c=Object;x.exports=function(R){return c(n(R))}},(x,a,g)=>{var n=g(18),c=0,R=Math.random(),v=n(1 .toString);x.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+v(++c+R,36)}},(x,a,g)=>{var n=g(10),c=g(11),R=g(45);x.exports=!n&&!c(function(){return Object.defineProperty(R("div"),"a",{get:function(){return 7}}).a!=7})},(x,a,g)=>{var n=g(8),c=g(23),R=n.document,v=c(R)&&c(R.createElement);x.exports=function(e){return v?R.createElement(e):{}}},(x,a,g)=>{var n=g(10),c=g(47),R=g(15);x.exports=n?function(v,e,L){return c.f(v,e,R(1,L))}:function(v,e,L){return v[e]=L,v}},(x,a,g)=>{var n=g(10),c=g(44),R=g(48),v=g(49),e=g(21),L=TypeError,O=Object.defineProperty,B=Object.getOwnPropertyDescriptor,P="enumerable",S="configurable",_="writable";a.f=n?R?function(y,D,M){if(v(y),D=e(D),v(M),typeof y=="function"&&D==="prototype"&&"value"in M&&_ in M&&!M[_]){var F=B(y,D);F&&F[_]&&(y[D]=M.value,M={configurable:S in M?M[S]:F[S],enumerable:P in M?M[P]:F[P],writable:!1})}return O(y,D,M)}:O:function(y,D,M){if(v(y),D=e(D),v(M),c)try{return O(y,D,M)}catch{}if("get"in M||"set"in M)throw L("Accessors not supported");return"value"in M&&(y[D]=M.value),y}},(x,a,g)=>{var n=g(10),c=g(11);x.exports=n&&c(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},(x,a,g)=>{var n=g(23),c=String,R=TypeError;x.exports=function(v){if(n(v))return v;throw R(c(v)+" is not an object")}},(x,a,g)=>{var n=g(24),c=g(47),R=g(51),v=g(40);x.exports=function(e,L,O,B){B||(B={});var P=B.enumerable,S=B.name!==void 0?B.name:L;if(n(O)&&R(O,S,B),B.global)P?e[L]=O:v(L,O);else{try{B.unsafe?e[L]&&(P=!0):delete e[L]}catch{}P?e[L]=O:c.f(e,L,{value:O,enumerable:!1,configurable:!B.nonConfigurable,writable:!B.nonWritable})}return e}},(x,a,g)=>{var n=g(11),c=g(24),R=g(41),v=g(10),e=g(52).CONFIGURABLE,L=g(53),O=g(54),B=O.enforce,P=O.get,S=Object.defineProperty,_=v&&!n(function(){return S(function(){},"length",{value:8}).length!==8}),l=String(String).split("String"),y=x.exports=function(D,M,F){String(M).slice(0,7)==="Symbol("&&(M="["+String(M).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),F&&F.getter&&(M="get "+M),F&&F.setter&&(M="set "+M),(!R(D,"name")||e&&D.name!==M)&&(v?S(D,"name",{value:M,configurable:!0}):D.name=M),_&&F&&R(F,"arity")&&D.length!==F.arity&&S(D,"length",{value:F.arity});try{F&&R(F,"constructor")&&F.constructor?v&&S(D,"prototype",{writable:!1}):D.prototype&&(D.prototype=void 0)}catch{}var N=B(D);return R(N,"source")||(N.source=l.join(typeof M=="string"?M:"")),D};Function.prototype.toString=y(function(){return c(this)&&P(this).source||L(this)},"toString")},(x,a,g)=>{var n=g(10),c=g(41),R=Function.prototype,v=n&&Object.getOwnPropertyDescriptor,e=c(R,"name"),L=e&&(function(){}).name==="something",O=e&&(!n||n&&v(R,"name").configurable);x.exports={EXISTS:e,PROPER:L,CONFIGURABLE:O}},(x,a,g)=>{var n=g(18),c=g(24),R=g(39),v=n(Function.toString);c(R.inspectSource)||(R.inspectSource=function(e){return v(e)}),x.exports=R.inspectSource},(x,a,g)=>{var n=g(55),c=g(8),R=g(18),v=g(23),e=g(46),L=g(41),O=g(39),B=g(56),P=g(57),S="Object already initialized",_=c.TypeError,l=c.WeakMap,y,D,M,F=function(H){return M(H)?D(H):y(H,{})},N=function(H){return function(z){var X;if(!v(z)||(X=D(z)).type!==H)throw _("Incompatible receiver, "+H+" required");return X}};if(n||O.state){var G=O.state||(O.state=new l),W=R(G.get),J=R(G.has),Y=R(G.set);y=function(H,z){if(J(G,H))throw new _(S);return z.facade=H,Y(G,H,z),z},D=function(H){return W(G,H)||{}},M=function(H){return J(G,H)}}else{var V=B("state");P[V]=!0,y=function(H,z){if(L(H,V))throw new _(S);return z.facade=H,e(H,V,z),z},D=function(H){return L(H,V)?H[V]:{}},M=function(H){return L(H,V)}}x.exports={set:y,get:D,has:M,enforce:F,getterFor:N}},(x,a,g)=>{var n=g(8),c=g(24),R=g(53),v=n.WeakMap;x.exports=c(v)&&/native code/.test(R(v))},(x,a,g)=>{var n=g(37),c=g(43),R=n("keys");x.exports=function(v){return R[v]||(R[v]=c(v))}},x=>{x.exports={}},(x,a,g)=>{var n=g(41),c=g(59),R=g(9),v=g(47);x.exports=function(e,L,O){for(var B=c(L),P=v.f,S=R.f,_=0;_{var n=g(26),c=g(18),R=g(60),v=g(69),e=g(49),L=c([].concat);x.exports=n("Reflect","ownKeys")||function(B){var P=R.f(e(B)),S=v.f;return S?L(P,S(B)):P}},(x,a,g)=>{var n=g(61),c=g(68),R=c.concat("length","prototype");a.f=Object.getOwnPropertyNames||function(e){return n(e,R)}},(x,a,g)=>{var n=g(18),c=g(41),R=g(16),v=g(62).indexOf,e=g(57),L=n([].push);x.exports=function(O,B){var P=R(O),S=0,_=[],l;for(l in P)!c(e,l)&&c(P,l)&&L(_,l);for(;B.length>S;)c(P,l=B[S++])&&(~v(_,l)||L(_,l));return _}},(x,a,g)=>{var n=g(16),c=g(63),R=g(66),v=function(e){return function(L,O,B){var P=n(L),S=R(P),_=c(B,S),l;if(e&&O!=O){for(;S>_;)if(l=P[_++],l!=l)return!0}else for(;S>_;_++)if((e||_ in P)&&P[_]===O)return e||_||0;return!e&&-1}};x.exports={includes:v(!0),indexOf:v(!1)}},(x,a,g)=>{var n=g(64),c=Math.max,R=Math.min;x.exports=function(v,e){var L=n(v);return L<0?c(L+e,0):R(L,e)}},(x,a,g)=>{var n=g(65);x.exports=function(c){var R=+c;return R!==R||R===0?0:n(R)}},x=>{var a=Math.ceil,g=Math.floor;x.exports=Math.trunc||function(c){var R=+c;return(R>0?g:a)(R)}},(x,a,g)=>{var n=g(67);x.exports=function(c){return n(c.length)}},(x,a,g)=>{var n=g(64),c=Math.min;x.exports=function(R){return R>0?c(n(R),9007199254740991):0}},x=>{x.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(x,a)=>{a.f=Object.getOwnPropertySymbols},(x,a,g)=>{var n=g(11),c=g(24),R=/#|\.prototype\./,v=function(P,S){var _=L[e(P)];return _==B?!0:_==O?!1:c(S)?n(S):!!S},e=v.normalize=function(P){return String(P).replace(R,".").toLowerCase()},L=v.data={},O=v.NATIVE="N",B=v.POLYFILL="P";x.exports=v},(x,a,g)=>{var n=g(36),c=g(72),R=g(47).f,v=n("unscopables"),e=Array.prototype;e[v]==null&&R(e,v,{configurable:!0,value:c(null)}),x.exports=function(L){e[v][L]=!0}},(x,a,g)=>{var n=g(49),c=g(73),R=g(68),v=g(57),e=g(75),L=g(45),O=g(56),B=">",P="<",S="prototype",_="script",l=O("IE_PROTO"),y=function(){},D=function(W){return P+_+B+W+P+"/"+_+B},M=function(W){W.write(D("")),W.close();var J=W.parentWindow.Object;return W=null,J},F=function(){var W=L("iframe"),J="java"+_+":",Y;return W.style.display="none",e.appendChild(W),W.src=String(J),Y=W.contentWindow.document,Y.open(),Y.write(D("document.F=Object")),Y.close(),Y.F},N,G=function(){try{N=new ActiveXObject("htmlfile")}catch{}G=typeof document<"u"?document.domain&&N?M(N):F():M(N);for(var W=R.length;W--;)delete G[S][R[W]];return G()};v[l]=!0,x.exports=Object.create||function(J,Y){var V;return J!==null?(y[S]=n(J),V=new y,y[S]=null,V[l]=J):V=G(),Y===void 0?V:c.f(V,Y)}},(x,a,g)=>{var n=g(10),c=g(48),R=g(47),v=g(49),e=g(16),L=g(74);a.f=n&&!c?Object.defineProperties:function(B,P){v(B);for(var S=e(P),_=L(P),l=_.length,y=0,D;l>y;)R.f(B,D=_[y++],S[D]);return B}},(x,a,g)=>{var n=g(61),c=g(68);x.exports=Object.keys||function(v){return n(v,c)}},(x,a,g)=>{var n=g(26);x.exports=n("document","documentElement")},(x,a,g)=>{var n=g(8),c=g(18);x.exports=function(R,v){return c(n[R].prototype[v])}},(x,a,g)=>{g(78)},(x,a,g)=>{var n=g(79),c=g(66),R=g(64),v=n.aTypedArray,e=n.exportTypedArrayMethod;e("at",function(O){var B=v(this),P=c(B),S=R(O),_=S>=0?S:P+S;return _<0||_>=P?void 0:B[_]})},(x,a,g)=>{var n=g(80),c=g(10),R=g(8),v=g(24),e=g(23),L=g(41),O=g(81),B=g(34),P=g(46),S=g(50),_=g(47).f,l=g(27),y=g(83),D=g(85),M=g(36),F=g(43),N=g(54),G=N.enforce,W=N.get,J=R.Int8Array,Y=J&&J.prototype,V=R.Uint8ClampedArray,H=V&&V.prototype,z=J&&y(J),X=Y&&y(Y),q=Object.prototype,$=R.TypeError,fe=M("toStringTag"),Q=F("TYPED_ARRAY_TAG"),ie="TypedArrayConstructor",Te=n&&!!D&&O(R.opera)!=="Opera",me=!1,K,ce,de,Z={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},ae={BigInt64Array:8,BigUint64Array:8},he=function(pe){if(!e(pe))return!1;var xe=O(pe);return xe==="DataView"||L(Z,xe)||L(ae,xe)},we=function(oe){var pe=y(oe);if(e(pe)){var xe=W(pe);return xe&&L(xe,ie)?xe[ie]:we(pe)}},_e=function(oe){if(!e(oe))return!1;var pe=O(oe);return L(Z,pe)||L(ae,pe)},ye=function(oe){if(_e(oe))return oe;throw $("Target is not a typed array")},se=function(oe){if(v(oe)&&(!D||l(z,oe)))return oe;throw $(B(oe)+" is not a typed array constructor")},Ie=function(oe,pe,xe,Ne){if(c){if(xe)for(var ke in Z){var De=R[ke];if(De&&L(De.prototype,oe))try{delete De.prototype[oe]}catch{try{De.prototype[oe]=pe}catch{}}}(!X[oe]||xe)&&S(X,oe,xe?pe:Te&&Y[oe]||pe,Ne)}},Ce=function(oe,pe,xe){var Ne,ke;if(c){if(D){if(xe){for(Ne in Z)if(ke=R[Ne],ke&&L(ke,oe))try{delete ke[oe]}catch{}}if(!z[oe]||xe)try{return S(z,oe,xe?pe:Te&&z[oe]||pe)}catch{}else return}for(Ne in Z)ke=R[Ne],ke&&(!ke[oe]||xe)&&S(ke,oe,pe)}};for(K in Z)ce=R[K],de=ce&&ce.prototype,de?G(de)[ie]=ce:Te=!1;for(K in ae)ce=R[K],de=ce&&ce.prototype,de&&(G(de)[ie]=ce);if((!Te||!v(z)||z===Function.prototype)&&(z=function(){throw $("Incorrect invocation")},Te))for(K in Z)R[K]&&D(R[K],z);if((!Te||!X||X===q)&&(X=z.prototype,Te))for(K in Z)R[K]&&D(R[K].prototype,X);if(Te&&y(H)!==X&&D(H,X),c&&!L(X,fe)){me=!0,_(X,fe,{get:function(){return e(this)?this[Q]:void 0}});for(K in Z)R[K]&&P(R[K],Q,K)}x.exports={NATIVE_ARRAY_BUFFER_VIEWS:Te,TYPED_ARRAY_TAG:me&&Q,aTypedArray:ye,aTypedArrayConstructor:se,exportTypedArrayMethod:Ie,exportTypedArrayStaticMethod:Ce,getTypedArrayConstructor:we,isView:he,isTypedArray:_e,TypedArray:z,TypedArrayPrototype:X}},x=>{x.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},(x,a,g)=>{var n=g(82),c=g(24),R=g(19),v=g(36),e=v("toStringTag"),L=Object,O=R(function(){return arguments}())=="Arguments",B=function(P,S){try{return P[S]}catch{}};x.exports=n?R:function(P){var S,_,l;return P===void 0?"Undefined":P===null?"Null":typeof(_=B(S=L(P),e))=="string"?_:O?R(S):(l=R(S))=="Object"&&c(S.callee)?"Arguments":l}},(x,a,g)=>{var n=g(36),c=n("toStringTag"),R={};R[c]="z",x.exports=String(R)==="[object z]"},(x,a,g)=>{var n=g(41),c=g(24),R=g(42),v=g(56),e=g(84),L=v("IE_PROTO"),O=Object,B=O.prototype;x.exports=e?O.getPrototypeOf:function(P){var S=R(P);if(n(S,L))return S[L];var _=S.constructor;return c(_)&&S instanceof _?_.prototype:S instanceof O?B:null}},(x,a,g)=>{var n=g(11);x.exports=!n(function(){function c(){}return c.prototype.constructor=null,Object.getPrototypeOf(new c)!==c.prototype})},(x,a,g)=>{var n=g(18),c=g(49),R=g(86);x.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var v=!1,e={},L;try{L=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),L(e,[]),v=e instanceof Array}catch{}return function(B,P){return c(B),R(P),v?L(B,P):B.__proto__=P,B}}():void 0)},(x,a,g)=>{var n=g(24),c=String,R=TypeError;x.exports=function(v){if(typeof v=="object"||n(v))return v;throw R("Can't set "+c(v)+" as a prototype")}},(x,a,g)=>{g(88),g(94),g(96),g(118),g(120);var n=g(129);x.exports=n.structuredClone},(x,a,g)=>{var n=g(16),c=g(71),R=g(89),v=g(54),e=g(47).f,L=g(90),O=g(38),B=g(10),P="Array Iterator",S=v.set,_=v.getterFor(P);x.exports=L(Array,"Array",function(y,D){S(this,{type:P,target:n(y),index:0,kind:D})},function(){var y=_(this),D=y.target,M=y.kind,F=y.index++;return!D||F>=D.length?(y.target=void 0,{value:void 0,done:!0}):M=="keys"?{value:F,done:!1}:M=="values"?{value:D[F],done:!1}:{value:[F,D[F]],done:!1}},"values");var l=R.Arguments=R.Array;if(c("keys"),c("values"),c("entries"),!O&&B&&l.name!=="values")try{e(l,"name",{value:"values"})}catch{}},x=>{x.exports={}},(x,a,g)=>{var n=g(7),c=g(12),R=g(38),v=g(52),e=g(24),L=g(91),O=g(83),B=g(85),P=g(93),S=g(46),_=g(50),l=g(36),y=g(89),D=g(92),M=v.PROPER,F=v.CONFIGURABLE,N=D.IteratorPrototype,G=D.BUGGY_SAFARI_ITERATORS,W=l("iterator"),J="keys",Y="values",V="entries",H=function(){return this};x.exports=function(z,X,q,$,fe,Q,ie){L(q,X,$);var Te=function(ye){if(ye===fe&&Z)return Z;if(!G&&ye in ce)return ce[ye];switch(ye){case J:return function(){return new q(this,ye)};case Y:return function(){return new q(this,ye)};case V:return function(){return new q(this,ye)}}return function(){return new q(this)}},me=X+" Iterator",K=!1,ce=z.prototype,de=ce[W]||ce["@@iterator"]||fe&&ce[fe],Z=!G&&de||Te(fe),ae=X=="Array"&&ce.entries||de,he,we,_e;if(ae&&(he=O(ae.call(new z)),he!==Object.prototype&&he.next&&(!R&&O(he)!==N&&(B?B(he,N):e(he[W])||_(he,W,H)),P(he,me,!0,!0),R&&(y[me]=H))),M&&fe==Y&&de&&de.name!==Y&&(!R&&F?S(ce,"name",Y):(K=!0,Z=function(){return c(de,this)})),fe)if(we={values:Te(Y),keys:Q?Z:Te(J),entries:Te(V)},ie)for(_e in we)(G||K||!(_e in ce))&&_(ce,_e,we[_e]);else n({target:X,proto:!0,forced:G||K},we);return(!R||ie)&&ce[W]!==Z&&_(ce,W,Z,{name:fe}),y[X]=Z,we}},(x,a,g)=>{var n=g(92).IteratorPrototype,c=g(72),R=g(15),v=g(93),e=g(89),L=function(){return this};x.exports=function(O,B,P,S){var _=B+" Iterator";return O.prototype=c(n,{next:R(+!S,P)}),v(O,_,!1,!0),e[_]=L,O}},(x,a,g)=>{var n=g(11),c=g(24),R=g(72),v=g(83),e=g(50),L=g(36),O=g(38),B=L("iterator"),P=!1,S,_,l;[].keys&&(l=[].keys(),"next"in l?(_=v(v(l)),_!==Object.prototype&&(S=_)):P=!0);var y=S==null||n(function(){var D={};return S[B].call(D)!==D});y?S={}:O&&(S=R(S)),c(S[B])||e(S,B,function(){return this}),x.exports={IteratorPrototype:S,BUGGY_SAFARI_ITERATORS:P}},(x,a,g)=>{var n=g(47).f,c=g(41),R=g(36),v=R("toStringTag");x.exports=function(e,L,O){e&&!O&&(e=e.prototype),e&&!c(e,v)&&n(e,v,{configurable:!0,value:L})}},(x,a,g)=>{var n=g(82),c=g(50),R=g(95);n||c(Object.prototype,"toString",R,{unsafe:!0})},(x,a,g)=>{var n=g(82),c=g(81);x.exports=n?{}.toString:function(){return"[object "+c(this)+"]"}},(x,a,g)=>{g(97)},(x,a,g)=>{var n=g(98),c=g(115);n("Map",function(R){return function(){return R(this,arguments.length?arguments[0]:void 0)}},c)},(x,a,g)=>{var n=g(7),c=g(8),R=g(18),v=g(70),e=g(50),L=g(99),O=g(106),B=g(112),P=g(24),S=g(23),_=g(11),l=g(113),y=g(93),D=g(114);x.exports=function(M,F,N){var G=M.indexOf("Map")!==-1,W=M.indexOf("Weak")!==-1,J=G?"set":"add",Y=c[M],V=Y&&Y.prototype,H=Y,z={},X=function(me){var K=R(V[me]);e(V,me,me=="add"?function(de){return K(this,de===0?0:de),this}:me=="delete"?function(ce){return W&&!S(ce)?!1:K(this,ce===0?0:ce)}:me=="get"?function(de){return W&&!S(de)?void 0:K(this,de===0?0:de)}:me=="has"?function(de){return W&&!S(de)?!1:K(this,de===0?0:de)}:function(de,Z){return K(this,de===0?0:de,Z),this})},q=v(M,!P(Y)||!(W||V.forEach&&!_(function(){new Y().entries().next()})));if(q)H=N.getConstructor(F,M,G,J),L.enable();else if(v(M,!0)){var $=new H,fe=$[J](W?{}:-0,1)!=$,Q=_(function(){$.has(1)}),ie=l(function(me){new Y(me)}),Te=!W&&_(function(){for(var me=new Y,K=5;K--;)me[J](K,K);return!me.has(-0)});ie||(H=F(function(me,K){B(me,V);var ce=D(new Y,me,H);return K!=null&&O(K,ce[J],{that:ce,AS_ENTRIES:G}),ce}),H.prototype=V,V.constructor=H),(Q||Te)&&(X("delete"),X("has"),G&&X("get")),(Te||fe)&&X(J),W&&V.clear&&delete V.clear}return z[M]=H,n({global:!0,constructor:!0,forced:H!=Y},z),y(H,M),W||N.setStrong(H,M,G),H}},(x,a,g)=>{var n=g(7),c=g(18),R=g(57),v=g(23),e=g(41),L=g(47).f,O=g(60),B=g(100),P=g(103),S=g(43),_=g(105),l=!1,y=S("meta"),D=0,M=function(Y){L(Y,y,{value:{objectID:"O"+D++,weakData:{}}})},F=function(Y,V){if(!v(Y))return typeof Y=="symbol"?Y:(typeof Y=="string"?"S":"P")+Y;if(!e(Y,y)){if(!P(Y))return"F";if(!V)return"E";M(Y)}return Y[y].objectID},N=function(Y,V){if(!e(Y,y)){if(!P(Y))return!0;if(!V)return!1;M(Y)}return Y[y].weakData},G=function(Y){return _&&l&&P(Y)&&!e(Y,y)&&M(Y),Y},W=function(){J.enable=function(){},l=!0;var Y=O.f,V=c([].splice),H={};H[y]=1,Y(H).length&&(O.f=function(z){for(var X=Y(z),q=0,$=X.length;q<$;q++)if(X[q]===y){V(X,q,1);break}return X},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:B.f}))},J=x.exports={enable:W,fastKey:F,getWeakData:N,onFreeze:G};R[y]=!0},(x,a,g)=>{var n=g(19),c=g(16),R=g(60).f,v=g(101),e=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],L=function(O){try{return R(O)}catch{return v(e)}};x.exports.f=function(B){return e&&n(B)=="Window"?L(B):R(c(B))}},(x,a,g)=>{var n=g(63),c=g(66),R=g(102),v=Array,e=Math.max;x.exports=function(L,O,B){for(var P=c(L),S=n(O,P),_=n(B===void 0?P:B,P),l=v(e(_-S,0)),y=0;S<_;S++,y++)R(l,y,L[S]);return l.length=y,l}},(x,a,g)=>{var n=g(21),c=g(47),R=g(15);x.exports=function(v,e,L){var O=n(e);O in v?c.f(v,O,R(0,L)):v[O]=L}},(x,a,g)=>{var n=g(11),c=g(23),R=g(19),v=g(104),e=Object.isExtensible,L=n(function(){});x.exports=L||v?function(B){return!c(B)||v&&R(B)=="ArrayBuffer"?!1:e?e(B):!0}:e},(x,a,g)=>{var n=g(11);x.exports=n(function(){if(typeof ArrayBuffer=="function"){var c=new ArrayBuffer(8);Object.isExtensible(c)&&Object.defineProperty(c,"a",{value:8})}})},(x,a,g)=>{var n=g(11);x.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},(x,a,g)=>{var n=g(107),c=g(12),R=g(49),v=g(34),e=g(108),L=g(66),O=g(27),B=g(109),P=g(110),S=g(111),_=TypeError,l=function(D,M){this.stopped=D,this.result=M},y=l.prototype;x.exports=function(D,M,F){var N=F&&F.that,G=!!(F&&F.AS_ENTRIES),W=!!(F&&F.IS_RECORD),J=!!(F&&F.IS_ITERATOR),Y=!!(F&&F.INTERRUPTED),V=n(M,N),H,z,X,q,$,fe,Q,ie=function(me){return H&&S(H,"normal",me),new l(!0,me)},Te=function(me){return G?(R(me),Y?V(me[0],me[1],ie):V(me[0],me[1])):Y?V(me,ie):V(me)};if(W)H=D.iterator;else if(J)H=D;else{if(z=P(D),!z)throw _(v(D)+" is not iterable");if(e(z)){for(X=0,q=L(D);q>X;X++)if($=Te(D[X]),$&&O(y,$))return $;return new l(!1)}H=B(D,z)}for(fe=W?D.next:H.next;!(Q=c(fe,H)).done;){try{$=Te(Q.value)}catch(me){S(H,"throw",me)}if(typeof $=="object"&&$&&O(y,$))return $}return new l(!1)}},(x,a,g)=>{var n=g(18),c=g(33),R=g(13),v=n(n.bind);x.exports=function(e,L){return c(e),L===void 0?e:R?v(e,L):function(){return e.apply(L,arguments)}}},(x,a,g)=>{var n=g(36),c=g(89),R=n("iterator"),v=Array.prototype;x.exports=function(e){return e!==void 0&&(c.Array===e||v[R]===e)}},(x,a,g)=>{var n=g(12),c=g(33),R=g(49),v=g(34),e=g(110),L=TypeError;x.exports=function(O,B){var P=arguments.length<2?e(O):B;if(c(P))return R(n(P,O));throw L(v(O)+" is not iterable")}},(x,a,g)=>{var n=g(81),c=g(32),R=g(89),v=g(36),e=v("iterator");x.exports=function(L){if(L!=null)return c(L,e)||c(L,"@@iterator")||R[n(L)]}},(x,a,g)=>{var n=g(12),c=g(49),R=g(32);x.exports=function(v,e,L){var O,B;c(v);try{if(O=R(v,"return"),!O){if(e==="throw")throw L;return L}O=n(O,v)}catch(P){B=!0,O=P}if(e==="throw")throw L;if(B)throw O;return c(O),L}},(x,a,g)=>{var n=g(27),c=TypeError;x.exports=function(R,v){if(n(v,R))return R;throw c("Incorrect invocation")}},(x,a,g)=>{var n=g(36),c=n("iterator"),R=!1;try{var v=0,e={next:function(){return{done:!!v++}},return:function(){R=!0}};e[c]=function(){return this},Array.from(e,function(){throw 2})}catch{}x.exports=function(L,O){if(!O&&!R)return!1;var B=!1;try{var P={};P[c]=function(){return{next:function(){return{done:B=!0}}}},L(P)}catch{}return B}},(x,a,g)=>{var n=g(24),c=g(23),R=g(85);x.exports=function(v,e,L){var O,B;return R&&n(O=e.constructor)&&O!==L&&c(B=O.prototype)&&B!==L.prototype&&R(v,B),v}},(x,a,g)=>{var n=g(47).f,c=g(72),R=g(116),v=g(107),e=g(112),L=g(106),O=g(90),B=g(117),P=g(10),S=g(99).fastKey,_=g(54),l=_.set,y=_.getterFor;x.exports={getConstructor:function(D,M,F,N){var G=D(function(H,z){e(H,W),l(H,{type:M,index:c(null),first:void 0,last:void 0,size:0}),P||(H.size=0),z!=null&&L(z,H[N],{that:H,AS_ENTRIES:F})}),W=G.prototype,J=y(M),Y=function(H,z,X){var q=J(H),$=V(H,z),fe,Q;return $?$.value=X:(q.last=$={index:Q=S(z,!0),key:z,value:X,previous:fe=q.last,next:void 0,removed:!1},q.first||(q.first=$),fe&&(fe.next=$),P?q.size++:H.size++,Q!=="F"&&(q.index[Q]=$)),H},V=function(H,z){var X=J(H),q=S(z),$;if(q!=="F")return X.index[q];for($=X.first;$;$=$.next)if($.key==z)return $};return R(W,{clear:function(){for(var z=this,X=J(z),q=X.index,$=X.first;$;)$.removed=!0,$.previous&&($.previous=$.previous.next=void 0),delete q[$.index],$=$.next;X.first=X.last=void 0,P?X.size=0:z.size=0},delete:function(H){var z=this,X=J(z),q=V(z,H);if(q){var $=q.next,fe=q.previous;delete X.index[q.index],q.removed=!0,fe&&(fe.next=$),$&&($.previous=fe),X.first==q&&(X.first=$),X.last==q&&(X.last=fe),P?X.size--:z.size--}return!!q},forEach:function(z){for(var X=J(this),q=v(z,arguments.length>1?arguments[1]:void 0),$;$=$?$.next:X.first;)for(q($.value,$.key,this);$&&$.removed;)$=$.previous},has:function(z){return!!V(this,z)}}),R(W,F?{get:function(z){var X=V(this,z);return X&&X.value},set:function(z,X){return Y(this,z===0?0:z,X)}}:{add:function(z){return Y(this,z=z===0?0:z,z)}}),P&&n(W,"size",{get:function(){return J(this).size}}),G},setStrong:function(D,M,F){var N=M+" Iterator",G=y(M),W=y(N);O(D,M,function(J,Y){l(this,{type:N,target:J,state:G(J),kind:Y,last:void 0})},function(){for(var J=W(this),Y=J.kind,V=J.last;V&&V.removed;)V=V.previous;return!J.target||!(J.last=V=V?V.next:J.state.first)?(J.target=void 0,{value:void 0,done:!0}):Y=="keys"?{value:V.key,done:!1}:Y=="values"?{value:V.value,done:!1}:{value:[V.key,V.value],done:!1}},F?"entries":"values",!F,!0),B(M)}}},(x,a,g)=>{var n=g(50);x.exports=function(c,R,v){for(var e in R)n(c,e,R[e],v);return c}},(x,a,g)=>{var n=g(26),c=g(47),R=g(36),v=g(10),e=R("species");x.exports=function(L){var O=n(L),B=c.f;v&&O&&!O[e]&&B(O,e,{configurable:!0,get:function(){return this}})}},(x,a,g)=>{g(119)},(x,a,g)=>{var n=g(98),c=g(115);n("Set",function(R){return function(){return R(this,arguments.length?arguments[0]:void 0)}},c)},(x,a,g)=>{var n=g(38),c=g(7),R=g(8),v=g(26),e=g(18),L=g(11),O=g(43),B=g(24),P=g(121),S=g(23),_=g(25),l=g(106),y=g(49),D=g(81),M=g(41),F=g(102),N=g(46),G=g(66),W=g(122),J=g(123),Y=g(125),V=g(30),H=g(126),z=g(127),X=g(128),q=R.Object,$=R.Date,fe=R.Error,Q=R.EvalError,ie=R.RangeError,Te=R.ReferenceError,me=R.SyntaxError,K=R.TypeError,ce=R.URIError,de=R.PerformanceMark,Z=R.WebAssembly,ae=Z&&Z.CompileError||fe,he=Z&&Z.LinkError||fe,we=Z&&Z.RuntimeError||fe,_e=v("DOMException"),ye=v("Set"),se=v("Map"),Ie=se.prototype,Ce=e(Ie.has),oe=e(Ie.get),pe=e(Ie.set),xe=e(ye.prototype.add),Ne=v("Object","keys"),ke=e([].push),De=e((!0).valueOf),Fe=e(1 .valueOf),Pe=e("".valueOf),qe=e($.prototype.getTime),Le=O("structuredClone"),Oe="DataCloneError",Ee="Transferring",Ae=function(Ke){return!L(function(){var at=new R.Set([7]),ot=Ke(at),Xe=Ke(q(7));return ot==at||!ot.has(7)||typeof Xe!="object"||Xe!=7})&&Ke},Ve=function(Ke,at){return!L(function(){var ot=new at,Xe=Ke({a:ot,b:ot});return!(Xe&&Xe.a===Xe.b&&Xe.a instanceof at&&Xe.a.stack===ot.stack)})},$e=function(Ke){return!L(function(){var at=Ke(new R.AggregateError([1],Le,{cause:3}));return at.name!="AggregateError"||at.errors[0]!=1||at.message!=Le||at.cause!=3})},Ue=R.structuredClone,He=n||!Ve(Ue,fe)||!Ve(Ue,_e)||!$e(Ue),Qe=!Ue&&Ae(function(Ke){return new de(Le,{detail:Ke}).detail}),Ze=Ae(Ue)||Qe,et=function(Ke){throw new _e("Uncloneable type: "+Ke,Oe)},tt=function(Ke,at){throw new _e((at||"Cloning")+" of "+Ke+" cannot be properly polyfilled in this engine",Oe)},je=function(Ke,at){if(_(Ke)&&et("Symbol"),!S(Ke))return Ke;if(at){if(Ce(at,Ke))return oe(at,Ke)}else at=new se;var ot=D(Ke),Xe=!1,ze,Ye,st,_t,ft,Ct,ut,rt,mt,Ot;switch(ot){case"Array":st=[],Xe=!0;break;case"Object":st={},Xe=!0;break;case"Map":st=new se,Xe=!0;break;case"Set":st=new ye,Xe=!0;break;case"RegExp":st=new RegExp(Ke.source,J(Ke));break;case"Error":switch(Ye=Ke.name,Ye){case"AggregateError":st=v("AggregateError")([]);break;case"EvalError":st=Q();break;case"RangeError":st=ie();break;case"ReferenceError":st=Te();break;case"SyntaxError":st=me();break;case"TypeError":st=K();break;case"URIError":st=ce();break;case"CompileError":st=ae();break;case"LinkError":st=he();break;case"RuntimeError":st=we();break;default:st=fe()}Xe=!0;break;case"DOMException":st=new _e(Ke.message,Ke.name),Xe=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":ze=R[ot],S(ze)||tt(ot),st=new ze(je(Ke.buffer,at),Ke.byteOffset,ot==="DataView"?Ke.byteLength:Ke.length);break;case"DOMQuad":try{st=new DOMQuad(je(Ke.p1,at),je(Ke.p2,at),je(Ke.p3,at),je(Ke.p4,at))}catch{Ze?st=Ze(Ke):tt(ot)}break;case"FileList":if(ze=R.DataTransfer,P(ze)){for(_t=new ze,ft=0,Ct=G(Ke);ft92||X&&V>94||H&&V>97)return!1;var Ke=new ArrayBuffer(8),at=Ue(Ke,{transfer:[Ke]});return Ke.byteLength!=0||at.byteLength!=8}),nt=function(Ke,at){if(!S(Ke))throw K("Transfer option cannot be converted to a sequence");var ot=[];l(Ke,function(mt){ke(ot,y(mt))});var Xe=0,ze=G(ot),Ye,st,_t,ft,Ct,ut,rt;if(Je)for(ft=Ue(ot,{transfer:ot});Xe1&&arguments[1]!=null?y(arguments[1]):void 0,Xe=ot?ot.transfer:void 0,ze;return Xe!==void 0&&(ze=new se,nt(Xe,ze)),je(at,ze)}})},(x,a,g)=>{var n=g(18),c=g(11),R=g(24),v=g(81),e=g(26),L=g(53),O=function(){},B=[],P=e("Reflect","construct"),S=/^\s*(?:class|function)\b/,_=n(S.exec),l=!S.exec(O),y=function(F){if(!R(F))return!1;try{return P(O,B,F),!0}catch{return!1}},D=function(F){if(!R(F))return!1;switch(v(F)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!_(S,L(F))}catch{return!0}};D.sham=!0,x.exports=!P||c(function(){var M;return y(y.call)||!y(Object)||!y(function(){M=!0})||M})?D:y},x=>{var a=TypeError;x.exports=function(g,n){if(g{var n=g(12),c=g(41),R=g(27),v=g(124),e=RegExp.prototype;x.exports=function(L){var O=L.flags;return O===void 0&&!("flags"in e)&&!c(L,"flags")&&R(e,L)?n(v,L):O}},(x,a,g)=>{var n=g(49);x.exports=function(){var c=n(this),R="";return c.hasIndices&&(R+="d"),c.global&&(R+="g"),c.ignoreCase&&(R+="i"),c.multiline&&(R+="m"),c.dotAll&&(R+="s"),c.unicode&&(R+="u"),c.unicodeSets&&(R+="v"),c.sticky&&(R+="y"),R}},(x,a,g)=>{var n=g(11),c=g(15);x.exports=!n(function(){var R=Error("a");return"stack"in R?(Object.defineProperty(R,"stack",c(1,7)),R.stack!==7):!0})},(x,a,g)=>{var n=g(127),c=g(128);x.exports=!n&&!c&&typeof window=="object"&&typeof document=="object"},x=>{x.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},(x,a,g)=>{var n=g(19),c=g(8);x.exports=n(c.process)=="process"},(x,a,g)=>{var n=g(8);x.exports=n},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.RefSetCache=a.RefSet=a.Ref=a.Name=a.EOF=a.Dict=a.Cmd=a.CIRCULAR_REF=void 0,a.clearPrimitiveCaches=M,a.isCmd=l,a.isDict=y,a.isName=_,a.isRefsEqual=D;var n=g(2);const c=Symbol("CIRCULAR_REF");a.CIRCULAR_REF=c;const R=Symbol("EOF");a.EOF=R;const v=function(){let N=Object.create(null);class G{constructor(J){this.name=J}static get(J){return N[J]||(N[J]=new G(J))}static _clearCache(){N=Object.create(null)}}return G}();a.Name=v;const e=function(){let N=Object.create(null);class G{constructor(J){this.cmd=J}static get(J){return N[J]||(N[J]=new G(J))}static _clearCache(){N=Object.create(null)}}return G}();a.Cmd=e;const L=function(){return L};class O{constructor(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this._map=Object.create(null),this.xref=N,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=L}assignXref(N){this.xref=N}get size(){return Object.keys(this._map).length}get(N,G,W){let J=this._map[N];return J===void 0&&G!==void 0&&(J=this._map[G],J===void 0&&W!==void 0&&(J=this._map[W])),J instanceof B&&this.xref?this.xref.fetch(J,this.suppressEncryption):J}async getAsync(N,G,W){let J=this._map[N];return J===void 0&&G!==void 0&&(J=this._map[G],J===void 0&&W!==void 0&&(J=this._map[W])),J instanceof B&&this.xref?this.xref.fetchAsync(J,this.suppressEncryption):J}getArray(N,G,W){let J=this._map[N];if(J===void 0&&G!==void 0&&(J=this._map[G],J===void 0&&W!==void 0&&(J=this._map[W])),J instanceof B&&this.xref&&(J=this.xref.fetch(J,this.suppressEncryption)),Array.isArray(J)){J=J.slice();for(let Y=0,V=J.length;Y{(0,n.unreachable)("Should not call `set` on the empty dictionary.")},(0,n.shadow)(this,"empty",N)}static merge(N){let{xref:G,dictArray:W,mergeSubDicts:J=!1}=N;const Y=new O(G),V=new Map;for(const H of W)if(H instanceof O)for(const[z,X]of Object.entries(H._map)){let q=V.get(z);if(q===void 0)q=[],V.set(z,q);else if(!J||!(X instanceof O))continue;q.push(X)}for(const[H,z]of V){if(z.length===1||!(z[0]instanceof O)){Y._map[H]=z[0];continue}const X=new O(G);for(const q of z)for(const[$,fe]of Object.entries(q._map))X._map[$]===void 0&&(X._map[$]=fe);X.size>0&&(Y._map[H]=X)}return V.clear(),Y.size>0?Y:O.empty}}a.Dict=O;const B=function(){let N=Object.create(null);class G{constructor(J,Y){this.num=J,this.gen=Y}toString(){return this.gen===0?`${this.num}R`:`${this.num}R${this.gen}`}static get(J,Y){const V=Y===0?`${J}R`:`${J}R${Y}`;return N[V]||(N[V]=new G(J,Y))}static _clearCache(){N=Object.create(null)}}return G}();a.Ref=B;class P{constructor(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this._set=new Set(N&&N._set)}has(N){return this._set.has(N.toString())}put(N){this._set.add(N.toString())}remove(N){this._set.delete(N.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}}a.RefSet=P;class S{constructor(){this._map=new Map}get size(){return this._map.size}get(N){return this._map.get(N.toString())}has(N){return this._map.has(N.toString())}put(N,G){this._map.set(N.toString(),G)}putAlias(N,G){this._map.set(N.toString(),this.get(G))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}}a.RefSetCache=S;function _(F,N){return F instanceof v&&(N===void 0||F.name===N)}function l(F,N){return F instanceof e&&(N===void 0||F.cmd===N)}function y(F,N){return F instanceof O&&(N===void 0||_(F.get("Type"),N))}function D(F,N){return F.num===N.num&&F.gen===N.gen}function M(){e._clearCache(),v._clearCache(),B._clearCache()}},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.XRefParseException=a.XRefEntryException=a.ParserEOFException=a.MissingDataException=a.DocStats=void 0,a.collectActions=V,a.encodeToXmlString=z,a.escapePDFName=J,a.getArrayLookupTableFactory=e,a.getInheritableProperty=_,a.getLookupTableFactory=v,a.getNewAnnotationsMap=fe,a.isWhiteSpace=G,a.log2=D,a.numberToString=$,a.parseXFAPath=W,a.readInt8=M,a.readUint16=F,a.readUint32=N,a.recoverJsURL=q,a.toRomanNumerals=y,a.validateCSSFont=X;var n=g(2),c=g(130),R=g(132);function v(Q){let ie;return function(){return Q&&(ie=Object.create(null),Q(ie),Q=null),ie}}function e(Q){let ie;return function(){if(Q){let Te=Q();Q=null,ie=Object.create(null);for(let me=0,K=Te.length;me1&&arguments[1]!==void 0?arguments[1]:!1;(0,n.assert)(Number.isInteger(Q)&&Q>0,"The number should be a positive integer.");const Te=[];let me;for(;Q>=1e3;)Q-=1e3,Te.push("M");me=Q/100|0,Q%=100,Te.push(l[me]),me=Q/10|0,Q%=10,Te.push(l[10+me]),Te.push(l[20+Q]);const K=Te.join("");return ie?K.toLowerCase():K}function D(Q){return Q<=0?0:Math.ceil(Math.log2(Q))}function M(Q,ie){return Q[ie]<<24>>24}function F(Q,ie){return Q[ie]<<8|Q[ie+1]}function N(Q,ie){return(Q[ie]<<24|Q[ie+1]<<16|Q[ie+2]<<8|Q[ie+3])>>>0}function G(Q){return Q===32||Q===9||Q===13||Q===10}function W(Q){const ie=/(.+)\[(\d+)\]$/;return Q.split(".").map(Te=>{const me=Te.match(ie);return me?{name:me[1],pos:parseInt(me[2],10)}:{name:Te,pos:0}})}function J(Q){const ie=[];let Te=0;for(let me=0,K=Q.length;me126||ce===35||ce===40||ce===41||ce===60||ce===62||ce===91||ce===93||ce===123||ce===125||ce===47||ce===37)&&(Te=0;ce--){const de=K[ce];if(de instanceof c.Dict)for(const Z of de.getKeys()){const ae=Te[Z];if(!ae)continue;const he=de.getRaw(Z),we=new c.RefSet,_e=[];Y(he,Q,_e,we),_e.length>0&&(me[ae]=_e)}}if(ie.has("A")){const ce=ie.get("A"),de=new c.RefSet,Z=[];Y(ce,Q,Z,de),Z.length>0&&(me.Action=Z)}return(0,n.objectSize)(me)>0?me:null}const H={60:"<",62:">",38:"&",34:""",39:"'"};function z(Q){const ie=[];let Te=0;for(let me=0,K=Q.length;me55295&&(ce<57344||ce>65533)&&me++,Te=me+1}return ie.length===0?Q:(Te: ${K}.`),!1;const Z=ce?ce.toString():"";Q.fontWeight=me.has(Z)?Z:Te;const ae=parseFloat(de);return Q.italicAngle=isNaN(ae)||ae<-90||ae>90?ie:de.toString(),!0}function q(Q){const ie=["app.launchURL","window.open","xfa.host.gotoURL"],me=new RegExp("^\\s*("+ie.join("|").split(".").join("\\.")+`)\\((?:'|")([^'"]*)(?:'|")(?:,\\s*(\\w+)\\)|\\))`,"i").exec(Q);if(me&&me[2]){const K=me[2];let ce=!1;return me[3]==="true"&&me[1]==="app.launchURL"&&(ce=!0),{url:K,newWindow:ce}}return null}function $(Q){if(Number.isInteger(Q))return Q.toString();const ie=Math.round(Q*100);return ie%100===0?(ie/100).toString():ie%10===0?Q.toFixed(1):Q.toFixed(2)}function fe(Q){if(!Q)return null;const ie=new Map;for(const[Te,me]of Q){if(!Te.startsWith(n.AnnotationEditorPrefix))continue;let K=ie.get(me.pageIndex);K||(K=[],ie.set(me.pageIndex,K)),K.push(me)}return ie.size>0?ie:null}},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BaseStream=void 0;var n=g(2);class c{constructor(){this.constructor===c&&(0,n.unreachable)("Cannot initialize BaseStream.")}get length(){(0,n.unreachable)("Abstract getter `length` accessed")}get isEmpty(){(0,n.unreachable)("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return(0,n.shadow)(this,"isDataLoaded",!0)}getByte(){(0,n.unreachable)("Abstract method `getByte` called")}getBytes(v){(0,n.unreachable)("Abstract method `getBytes` called")}peekByte(){const v=this.getByte();return v!==-1&&this.pos--,v}peekBytes(v){const e=this.getBytes(v);return this.pos-=e.length,e}getUint16(){const v=this.getByte(),e=this.getByte();return v===-1||e===-1?-1:(v<<8)+e}getInt32(){const v=this.getByte(),e=this.getByte(),L=this.getByte(),O=this.getByte();return(v<<24)+(e<<16)+(L<<8)+O}getByteRange(v,e){(0,n.unreachable)("Abstract method `getByteRange` called")}getString(v){return(0,n.bytesToString)(this.getBytes(v))}skip(v){this.pos+=v||1}reset(){(0,n.unreachable)("Abstract method `reset` called")}moveStart(){(0,n.unreachable)("Abstract method `moveStart` called")}makeSubStream(v,e){(0,n.unreachable)("Abstract method `makeSubStream` called")}getBaseStreams(){return null}}a.BaseStream=c},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.NetworkPdfManager=a.LocalPdfManager=void 0;var n=g(2),c=g(134),R=g(131),v=g(136),e=g(135);function L(S){if(S){const _=(0,n.createValidAbsoluteUrl)(S);if(_)return _.href;(0,n.warn)(`Invalid absolute docBaseUrl: "${S}".`)}return null}class O{constructor(){this.constructor===O&&(0,n.unreachable)("Cannot initialize BasePdfManager.")}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){const _=this.pdfDocument.catalog;return(0,n.shadow)(this,"docBaseUrl",_.baseUrl||this._docBaseUrl)}onLoadedStream(){(0,n.unreachable)("Abstract method `onLoadedStream` called")}ensureDoc(_,l){return this.ensure(this.pdfDocument,_,l)}ensureXRef(_,l){return this.ensure(this.pdfDocument.xref,_,l)}ensureCatalog(_,l){return this.ensure(this.pdfDocument.catalog,_,l)}getPage(_){return this.pdfDocument.getPage(_)}fontFallback(_,l){return this.pdfDocument.fontFallback(_,l)}loadXfaFonts(_,l){return this.pdfDocument.loadXfaFonts(_,l)}loadXfaImages(){return this.pdfDocument.loadXfaImages()}serializeXfaData(_){return this.pdfDocument.serializeXfaData(_)}cleanup(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.pdfDocument.cleanup(_)}async ensure(_,l,y){(0,n.unreachable)("Abstract method `ensure` called")}requestRange(_,l){(0,n.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(){(0,n.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(_){(0,n.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(_){this._password=_}terminate(_){(0,n.unreachable)("Abstract method `terminate` called")}}class B extends O{constructor(_,l,y,D,M,F,N){super(),this._docId=_,this._password=y,this._docBaseUrl=L(N),this.msgHandler=D,this.evaluatorOptions=M,this.enableXfa=F;const G=new e.Stream(l);this.pdfDocument=new v.PDFDocument(this,G),this._loadedStreamPromise=Promise.resolve(G)}async ensure(_,l,y){const D=_[l];return typeof D=="function"?D.apply(_,y):D}requestRange(_,l){return Promise.resolve()}requestLoadedStream(){}onLoadedStream(){return this._loadedStreamPromise}terminate(_){}}a.LocalPdfManager=B;class P extends O{constructor(_,l,y,D,M,F){super(),this._docId=_,this._password=y.password,this._docBaseUrl=L(F),this.msgHandler=y.msgHandler,this.evaluatorOptions=D,this.enableXfa=M,this.streamManager=new c.ChunkedStreamManager(l,{msgHandler:y.msgHandler,length:y.length,disableAutoFetch:y.disableAutoFetch,rangeChunkSize:y.rangeChunkSize}),this.pdfDocument=new v.PDFDocument(this,this.streamManager.getStream())}async ensure(_,l,y){try{const D=_[l];return typeof D=="function"?D.apply(_,y):D}catch(D){if(!(D instanceof R.MissingDataException))throw D;return await this.requestRange(D.begin,D.end),this.ensure(_,l,y)}}requestRange(_,l){return this.streamManager.requestRange(_,l)}requestLoadedStream(){this.streamManager.requestAllChunks()}sendProgressiveData(_){this.streamManager.onReceiveData({chunk:_})}onLoadedStream(){return this.streamManager.onLoadedStream()}terminate(_){this.streamManager.abort(_)}}a.NetworkPdfManager=P},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ChunkedStreamManager=a.ChunkedStream=void 0;var n=g(2),c=g(131),R=g(135);class v extends R.Stream{constructor(O,B,P){super(new Uint8Array(O),0,O,null),this.chunkSize=B,this._loadedChunks=new Set,this.numChunks=Math.ceil(O/B),this.manager=P,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const O=[];for(let B=0,P=this.numChunks;B=this.end?this.numChunks:Math.floor(B/this.chunkSize);for(let _=P;_this.numChunks)&&B!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(B))throw new c.MissingDataException(O,O+1);this.lastSuccessfulEnsureByteChunk=B}}ensureRange(O,B){if(O>=B||B<=this.progressiveDataLength)return;const P=Math.floor(O/this.chunkSize);if(P>this.numChunks)return;const S=Math.min(Math.floor((B-1)/this.chunkSize)+1,this.numChunks);for(let _=P;_=this.end?-1:(O>=this.progressiveDataLength&&this.ensureByte(O),this.bytes[this.pos++])}getBytes(O){const B=this.bytes,P=this.pos,S=this.end;if(!O)return S>this.progressiveDataLength&&this.ensureRange(P,S),B.subarray(P,S);let _=P+O;return _>S&&(_=S),_>this.progressiveDataLength&&this.ensureRange(P,_),this.pos=_,B.subarray(P,_)}getByteRange(O,B){return O<0&&(O=0),B>this.end&&(B=this.end),B>this.progressiveDataLength&&this.ensureRange(O,B),this.bytes.subarray(O,B)}makeSubStream(O,B){let P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;B?O+B>this.progressiveDataLength&&this.ensureRange(O,O+B):O>=this.progressiveDataLength&&this.ensureByte(O);function S(){}S.prototype=Object.create(this),S.prototype.getMissingChunks=function(){const l=this.chunkSize,y=Math.floor(this.start/l),D=Math.floor((this.end-1)/l)+1,M=[];for(let F=y;F{const D=M=>{try{if(!M.done){const N=M.value;S.push(N),_+=(0,n.arrayByteLength)(N),P.isStreamingSupported&&this.onProgress({loaded:_}),P.read().then(D,y);return}const F=(0,n.arraysToBytes)(S);S=null,l(F)}catch(F){y(F)}};P.read().then(D,y)}).then(l=>{this.aborted||this.onReceiveData({chunk:l,begin:O})})}requestAllChunks(){const O=this.stream.getMissingChunks();return this._requestChunks(O),this._loadedStreamCapability.promise}_requestChunks(O){const B=this.currRequestId++,P=new Set;this._chunksNeededByRequest.set(B,P);for(const l of O)this.stream.hasChunk(l)||P.add(l);if(P.size===0)return Promise.resolve();const S=(0,n.createPromiseCapability)();this._promisesByRequest.set(B,S);const _=[];for(const l of P){let y=this._requestsByChunk.get(l);y||(y=[],this._requestsByChunk.set(l,y),_.push(l)),y.push(B)}if(_.length>0){const l=this.groupChunks(_);for(const y of l){const D=y.beginChunk*this.chunkSize,M=Math.min(y.endChunk*this.chunkSize,this.length);this.sendRequest(D,M).catch(S.reject)}}return S.promise.catch(l=>{if(!this.aborted)throw l})}getStream(){return this.stream}requestRange(O,B){B=Math.min(B,this.length);const P=this.getBeginChunk(O),S=this.getEndChunk(B),_=[];for(let l=P;l0&&arguments[0]!==void 0?arguments[0]:[];const B=[];for(const P of O){const S=this.getBeginChunk(P.begin),_=this.getEndChunk(P.end);for(let l=S;l<_;++l)B.includes(l)||B.push(l)}return B.sort(function(P,S){return P-S}),this._requestChunks(B)}groupChunks(O){const B=[];let P=-1,S=-1;for(let _=0,l=O.length;_=0&&S+1!==y&&(B.push({beginChunk:P,endChunk:S+1}),P=y),_+1===O.length&&B.push({beginChunk:P,endChunk:y+1}),S=y}return B}onProgress(O){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+O.loaded,total:this.length})}onReceiveData(O){const B=O.chunk,P=O.begin===void 0,S=P?this.progressiveDataLength:O.begin,_=S+B.byteLength,l=Math.floor(S/this.chunkSize),y=_0)&&D.push(N)}}}if(!this.disableAutoFetch&&this._requestsByChunk.size===0){let M;if(this.stream.numChunksLoaded===1){const F=this.stream.numChunks-1;this.stream.hasChunk(F)||(M=F)}else M=this.stream.nextEmptyChunk(y);Number.isInteger(M)&&this._requestChunks([M])}for(const M of D){const F=this._promisesByRequest.get(M);this._promisesByRequest.delete(M),F.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(O){this._loadedStreamCapability.reject(O)}getBeginChunk(O){return Math.floor(O/this.chunkSize)}getEndChunk(O){return Math.floor((O-1)/this.chunkSize)+1}abort(O){this.aborted=!0,this.pdfNetworkStream&&this.pdfNetworkStream.cancelAllRequests(O);for(const B of this._promisesByRequest.values())B.reject(O)}}a.ChunkedStreamManager=e},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.StringStream=a.Stream=a.NullStream=void 0;var n=g(132),c=g(2);class R extends n.BaseStream{constructor(O,B,P,S){super(),this.bytes=O instanceof Uint8Array?O:new Uint8Array(O),this.start=B||0,this.pos=this.start,this.end=B+P||this.bytes.length,this.dict=S}get length(){return this.end-this.start}get isEmpty(){return this.length===0}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getBytes(O){const B=this.bytes,P=this.pos,S=this.end;if(!O)return B.subarray(P,S);let _=P+O;return _>S&&(_=S),this.pos=_,B.subarray(P,_)}getByteRange(O,B){return O<0&&(O=0),B>this.end&&(B=this.end),this.bytes.subarray(O,B)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(O,B){let P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return new R(this.bytes.buffer,O,B,P)}}a.Stream=R;class v extends R{constructor(O){super((0,c.stringToBytes)(O))}}a.StringStream=v;class e extends R{constructor(){super(new Uint8Array(0))}}a.NullStream=e},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Page=a.PDFDocument=void 0;var n=g(137),c=g(2),R=g(131),v=g(130),e=g(176),L=g(132),O=g(192),B=g(194),P=g(196),S=g(225),_=g(142),l=g(135),y=g(200),D=g(187),M=g(140),F=g(144),N=g(199),G=g(190),W=g(201),J=g(226);const Y=1,V=[0,0,612,792];class H{constructor(K){let{pdfManager:ce,xref:de,pageIndex:Z,pageDict:ae,ref:he,globalIdFactory:we,fontCache:_e,builtInCMapCache:ye,standardFontDataCache:se,globalImageCache:Ie,nonBlendModesSet:Ce,xfaFactory:oe}=K;this.pdfManager=ce,this.pageIndex=Z,this.pageDict=ae,this.xref=de,this.ref=he,this.fontCache=_e,this.builtInCMapCache=ye,this.standardFontDataCache=se,this.globalImageCache=Ie,this.nonBlendModesSet=Ce,this.evaluatorOptions=ce.evaluatorOptions,this.resourcesPromise=null,this.xfaFactory=oe;const pe={obj:0};this._localIdFactory=class extends we{static createObjId(){return`p${Z}_${++pe.obj}`}static getPageObjId(){return`page${he.toString()}`}}}_getInheritableProperty(K){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const de=(0,R.getInheritableProperty)({dict:this.pageDict,key:K,getArray:ce,stopWhenFound:!1});return Array.isArray(de)?de.length===1||!(de[0]instanceof v.Dict)?de[0]:v.Dict.merge({xref:this.xref,dictArray:de}):de}get content(){return this.pageDict.getArray("Contents")}get resources(){const K=this._getInheritableProperty("Resources");return(0,c.shadow)(this,"resources",K instanceof v.Dict?K:v.Dict.empty)}_getBoundingBox(K){if(this.xfaData)return this.xfaData.bbox;const ce=this._getInheritableProperty(K,!0);if(Array.isArray(ce)&&ce.length===4){if(ce[2]-ce[0]!==0&&ce[3]-ce[1]!==0)return ce;(0,c.warn)(`Empty /${K} entry.`)}return null}get mediaBox(){return(0,c.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||V)}get cropBox(){return(0,c.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let K=this.pageDict.get("UserUnit");return(typeof K!="number"||K<=0)&&(K=Y),(0,c.shadow)(this,"userUnit",K)}get view(){const{cropBox:K,mediaBox:ce}=this;let de;if(K===ce||(0,c.isArrayEqual)(K,ce))de=ce;else{const Z=c.Util.intersect(K,ce);Z&&Z[2]-Z[0]!==0&&Z[3]-Z[1]!==0?de=Z:(0,c.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,c.shadow)(this,"view",de||ce)}get rotate(){let K=this._getInheritableProperty("Rotate")||0;return K%90!==0?K=0:K>=360?K%=360:K<0&&(K=(K%360+360)%360),(0,c.shadow)(this,"rotate",K)}_onSubStreamError(K,ce,de){if(this.evaluatorOptions.ignoreErrors){K.send("UnsupportedFeature",{featureId:c.UNSUPPORTED_FEATURES.errorContentSubStream}),(0,c.warn)(`getContentStream - ignoring sub-stream (${de}): "${ce}".`);return}throw ce}getContentStream(K){return this.pdfManager.ensure(this,"content").then(ce=>ce instanceof L.BaseStream?ce:Array.isArray(ce)?new F.StreamsSequenceStream(ce,this._onSubStreamError.bind(this,K)):new l.NullStream)}get xfaData(){return(0,c.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async saveNewAnnotations(K,ce,de){if(this.xfaFactory)throw new Error("XFA: Cannot save new annotations.");const Z=new M.PartialEvaluator({xref:this.xref,handler:K,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),ae=this.pageDict,he=this.annotations.slice(),we=await n.AnnotationFactory.saveNewAnnotations(Z,ce,de);for(const{ref:Ce}of we.annotations)he.push(Ce);const _e=ae.get("Annots");ae.set("Annots",he);const ye=[];let se=null;this.xref.encrypt&&(se=this.xref.encrypt.createCipherTransform(this.ref.num,this.ref.gen)),(0,G.writeObject)(this.ref,ae,ye,se),_e&&ae.set("Annots",_e);const Ie=we.dependencies;return Ie.push({ref:this.ref,data:ye.join("")},...we.annotations),Ie}save(K,ce,de){const Z=new M.PartialEvaluator({xref:this.xref,handler:K,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions});return this._parsedAnnotations.then(function(ae){const he=[];for(const we of ae)we.mustBePrinted(de)&&he.push(we.save(Z,ce,de).catch(function(_e){return(0,c.warn)(`save - ignoring annotation data during "${ce.name}" task: "${_e}".`),null}));return Promise.all(he).then(function(we){return we.filter(_e=>!!_e)})})}loadResources(K){return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then(()=>new y.ObjectLoader(this.resources,K,this.xref).load())}getOperatorList(K){let{handler:ce,sink:de,task:Z,intent:ae,cacheKey:he,annotationStorage:we=null}=K;const _e=this.getContentStream(ce),ye=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),se=new M.PartialEvaluator({xref:this.xref,handler:ce,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}),Ie=this.xfaFactory?null:(0,R.getNewAnnotationsMap)(we);let Ce=Promise.resolve(null);if(Ie){const xe=Ie.get(this.pageIndex);xe&&(Ce=n.AnnotationFactory.printNewAnnotations(se,Z,xe))}const pe=Promise.all([_e,ye]).then(xe=>{let[Ne]=xe;const ke=new D.OperatorList(ae,de);return ce.send("StartRenderPage",{transparency:se.hasBlendModes(this.resources,this.nonBlendModesSet),pageIndex:this.pageIndex,cacheKey:he}),se.getOperatorList({stream:Ne,task:Z,resources:this.resources,operatorList:ke}).then(function(){return ke})});return Promise.all([pe,this._parsedAnnotations,Ce]).then(function(xe){let[Ne,ke,De]=xe;if(De&&(ke=ke.concat(De)),ke.length===0||ae&c.RenderingIntentFlag.ANNOTATIONS_DISABLE)return Ne.flush(!0),{length:Ne.totalLength};const Fe=!!(ae&c.RenderingIntentFlag.ANNOTATIONS_FORMS),Pe=!!(ae&c.RenderingIntentFlag.ANY),qe=!!(ae&c.RenderingIntentFlag.DISPLAY),Le=!!(ae&c.RenderingIntentFlag.PRINT),Oe=[];for(const Ee of ke)(Pe||qe&&Ee.mustBeViewed(we)||Le&&Ee.mustBePrinted(we))&&Oe.push(Ee.getOperatorList(se,Z,ae,Fe,we).catch(function(Ae){return(0,c.warn)(`getOperatorList - ignoring annotation data during "${Z.name}" task: "${Ae}".`),null}));return Promise.all(Oe).then(function(Ee){let Ae=!1,Ve=!1;for(const{opList:$e,separateForm:Ue,separateCanvas:He}of Ee)Ne.addOpList($e),Ue&&(Ae=Ue),He&&(Ve=He);return Ne.flush(!0,{form:Ae,canvas:Ve}),{length:Ne.totalLength}})})}extractTextContent(K){let{handler:ce,task:de,includeMarkedContent:Z,sink:ae,combineTextItems:he}=K;const we=this.getContentStream(ce),_e=this.loadResources(["ExtGState","Font","Properties","XObject"]);return Promise.all([we,_e]).then(se=>{let[Ie]=se;return new M.PartialEvaluator({xref:this.xref,handler:ce,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions}).getTextContent({stream:Ie,task:de,resources:this.resources,includeMarkedContent:Z,combineTextItems:he,sink:ae,viewBox:this.view})})}async getStructTree(){const K=await this.pdfManager.ensureCatalog("structTreeRoot");return K?(await this.pdfManager.ensure(this,"_parseStructTree",[K])).serializable:null}_parseStructTree(K){const ce=new N.StructTreePage(K,this.pageDict);return ce.parse(),ce}async getAnnotationsData(K,ce,de){const Z=await this._parsedAnnotations;if(Z.length===0)return[];const ae=[],he=[];let we;const _e=!!(de&c.RenderingIntentFlag.ANY),ye=!!(de&c.RenderingIntentFlag.DISPLAY),se=!!(de&c.RenderingIntentFlag.PRINT);for(const Ie of Z){const Ce=_e||ye&&Ie.viewable;(Ce||se&&Ie.printable)&&he.push(Ie.data),Ie.hasTextContent&&Ce&&(we||(we=new M.PartialEvaluator({xref:this.xref,handler:K,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,options:this.evaluatorOptions})),ae.push(Ie.extractTextContent(we,ce,this.view).catch(function(oe){(0,c.warn)(`getAnnotationsData - ignoring textContent during "${ce.name}" task: "${oe}".`)})))}return await Promise.all(ae),he}get annotations(){const K=this._getInheritableProperty("Annots");return(0,c.shadow)(this,"annotations",Array.isArray(K)?K:[])}get _parsedAnnotations(){const K=this.pdfManager.ensure(this,"annotations").then(()=>{const ce=[];for(const de of this.annotations)ce.push(n.AnnotationFactory.create(this.xref,de,this.pdfManager,this._localIdFactory,!1).catch(function(Z){return(0,c.warn)(`_parsedAnnotations: "${Z}".`),null}));return Promise.all(ce).then(function(de){if(de.length===0)return de;const Z=[];let ae;for(const he of de)if(he){if(he instanceof n.PopupAnnotation){ae||(ae=[]),ae.push(he);continue}Z.push(he)}return ae&&Z.push(...ae),Z})});return(0,c.shadow)(this,"_parsedAnnotations",K)}get jsActions(){const K=(0,R.collectActions)(this.xref,this.pageDict,c.PageActionEventType);return(0,c.shadow)(this,"jsActions",K)}}a.Page=H;const z=new Uint8Array([37,80,68,70,45]),X=new Uint8Array([115,116,97,114,116,120,114,101,102]),q=new Uint8Array([101,110,100,111,98,106]),$=1024,fe="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",Q=/^[1-9]\.\d$/;function ie(me,K){let ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1024,de=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const Z=K.length,ae=me.peekBytes(ce),he=ae.length-Z;if(he<=0)return!1;if(de){const we=Z-1;let _e=ae.length-1;for(;_e>=we;){let ye=0;for(;ye=Z)return me.pos+=_e-we,!0;_e--}}else{let we=0;for(;we<=he;){let _e=0;for(;_e=Z)return me.pos+=we,!0;we++}}return!1}class Te{constructor(K,ce){if(ce.length<=0)throw new c.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=K,this.stream=ce,this.xref=new J.XRef(ce,K),this._pagePromises=new Map,this._version=null;const de={font:0};this._globalIdFactory=class{static getDocId(){return`g_${K.docId}`}static createFontId(){return`f${++de.font}`}static createObjId(){(0,c.unreachable)("Abstract method `createObjId` called.")}static getPageObjId(){(0,c.unreachable)("Abstract method `getPageObjId` called.")}}}parse(K){this.xref.parse(K),this.catalog=new B.Catalog(this.pdfManager,this.xref),this.catalog.version&&(this._version=this.catalog.version)}get linearization(){let K=null;try{K=_.Linearization.create(this.stream)}catch(ce){if(ce instanceof R.MissingDataException)throw ce;(0,c.info)(ce)}return(0,c.shadow)(this,"linearization",K)}get startXRef(){const K=this.stream;let ce=0;if(this.linearization)K.reset(),ie(K,q)&&(ce=K.pos+6-K.start);else{const Z=X.length;let ae=!1,he=K.end;for(;!ae&&he>0;)he-=1024-Z,he<0&&(he=0),K.pos=he,ae=ie(K,X,1024,!0);if(ae){K.skip(9);let we;do we=K.getByte();while((0,R.isWhiteSpace)(we));let _e="";for(;we>=32&&we<=57;)_e+=String.fromCharCode(we),we=K.getByte();ce=parseInt(_e,10),isNaN(ce)&&(ce=0)}}return(0,c.shadow)(this,"startXRef",ce)}checkHeader(){const K=this.stream;if(K.reset(),!ie(K,z))return;K.moveStart();const ce=12;let de="",Z;for(;(Z=K.getByte())>32&&!(de.length>=ce);)de+=String.fromCharCode(Z);this._version||(this._version=de.substring(5))}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let K=0;return this.catalog.hasActualNumPages?K=this.catalog.numPages:this.xfaFactory?K=this.xfaFactory.getNumPages():this.linearization?K=this.linearization.numPages:K=this.catalog.numPages,(0,c.shadow)(this,"numPages",K)}_hasOnlyDocumentSignatures(K){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const de=10;return Array.isArray(K)?K.every(Z=>{if(Z=this.xref.fetchIfRef(Z),!(Z instanceof v.Dict))return!1;if(Z.has("Kids"))return++ce>de?((0,c.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):this._hasOnlyDocumentSignatures(Z.get("Kids"),ce);const ae=(0,v.isName)(Z.get("FT"),"Sig"),he=Z.get("Rect"),we=Array.isArray(he)&&he.every(_e=>_e===0);return ae&&we}):!1}get _xfaStreams(){const K=this.catalog.acroForm;if(!K)return null;const ce=K.get("XFA"),de={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(ce instanceof L.BaseStream&&!ce.isEmpty)return de["xdp:xdp"]=ce,de;if(!Array.isArray(ce)||ce.length===0)return null;for(let Z=0,ae=ce.length;Z{Ce.set(Ne,ke)});const oe=[];for(const[Ne,ke]of Ce){const De=ke.get("FontDescriptor");if(!(De instanceof v.Dict))continue;let Fe=De.get("FontFamily");Fe=Fe.replace(/[ ]+(\d)/g,"$1");const Pe=De.get("FontWeight"),qe=-De.get("ItalicAngle"),Le={fontFamily:Fe,fontWeight:Pe,italicAngle:qe};(0,R.validateCSSFont)(Le)&&oe.push(_e.handleSetFont(Z,[v.Name.get(Ne),1],null,ye,ce,Ie,null,Le).catch(function(Oe){return(0,c.warn)(`loadXfaFonts: "${Oe}".`),null}))}await Promise.all(oe);const pe=this.xfaFactory.setFonts(se);if(!pe)return;we.ignoreErrors=!0,oe.length=0,se.length=0;const xe=new Set;for(const Ne of pe)(0,e.getXfaFontName)(`${Ne}-Regular`)||xe.add(Ne);xe.size&&pe.push("PdfJS-Fallback");for(const Ne of pe)if(!xe.has(Ne))for(const ke of[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}]){const De=`${Ne}-${ke.name}`,Fe=(0,e.getXfaFontDict)(De);oe.push(_e.handleSetFont(Z,[v.Name.get(De),1],null,ye,ce,Ie,Fe,{fontFamily:Ne,fontWeight:ke.fontWeight,italicAngle:ke.italicAngle}).catch(function(Pe){return(0,c.warn)(`loadXfaFonts: "${Pe}".`),null}))}await Promise.all(oe),this.xfaFactory.appendFonts(se,xe)}async serializeXfaData(K){return this.xfaFactory?this.xfaFactory.serializeData(K):null}get formInfo(){const K={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},ce=this.catalog.acroForm;if(!ce)return(0,c.shadow)(this,"formInfo",K);try{const de=ce.get("Fields"),Z=Array.isArray(de)&&de.length>0;K.hasFields=Z;const ae=ce.get("XFA");K.hasXfa=Array.isArray(ae)&&ae.length>0||ae instanceof L.BaseStream&&!ae.isEmpty;const we=!!(ce.get("SigFlags")&1),_e=we&&this._hasOnlyDocumentSignatures(de);K.hasAcroForm=Z&&!_e,K.hasSignatures=we}catch(de){if(de instanceof R.MissingDataException)throw de;(0,c.warn)(`Cannot fetch form information: "${de}".`)}return(0,c.shadow)(this,"formInfo",K)}get documentInfo(){let K=this._version;(typeof K!="string"||!Q.test(K))&&((0,c.warn)(`Invalid PDF header version number: ${K}`),K=null);const ce={PDFFormatVersion:K,Language:this.catalog.lang,EncryptFilterName:this.xref.encrypt?this.xref.encrypt.filterName:null,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};let de;try{de=this.xref.trailer.get("Info")}catch(Z){if(Z instanceof R.MissingDataException)throw Z;(0,c.info)("The document information dictionary is invalid.")}if(!(de instanceof v.Dict))return(0,c.shadow)(this,"documentInfo",ce);for(const Z of de.getKeys()){const ae=de.get(Z);switch(Z){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if(typeof ae=="string"){ce[Z]=(0,c.stringToPDFString)(ae);continue}break;case"Trapped":if(ae instanceof v.Name){ce[Z]=ae;continue}break;default:let he;switch(typeof ae){case"string":he=(0,c.stringToPDFString)(ae);break;case"number":case"boolean":he=ae;break;default:ae instanceof v.Name&&(he=ae);break}if(he===void 0){(0,c.warn)(`Bad value, for custom key "${Z}", in Info: ${ae}.`);continue}ce.Custom||(ce.Custom=Object.create(null)),ce.Custom[Z]=he;continue}(0,c.warn)(`Bad value, for key "${Z}", in Info: ${ae}.`)}return(0,c.shadow)(this,"documentInfo",ce)}get fingerprints(){function K(he){return typeof he=="string"&&he.length>0&&he!==fe}function ce(he){const we=[];for(let _e=0,ye=he.length;_e{let[_e,ye]=we;return new H({pdfManager:this.pdfManager,xref:this.xref,pageIndex:K,pageDict:_e,ref:ye,globalIdFactory:this._globalIdFactory,fontCache:de.fontCache,builtInCMapCache:de.builtInCMapCache,standardFontDataCache:de.standardFontDataCache,globalImageCache:de.globalImageCache,nonBlendModesSet:de.nonBlendModesSet,xfaFactory:ae})}),this._pagePromises.set(K,he),he}async checkFirstPage(){if(!(arguments.length>0&&arguments[0]!==void 0&&arguments[0]))try{await this.getPage(0)}catch(ce){if(ce instanceof R.XRefEntryException)throw this._pagePromises.delete(0),await this.cleanup(),new R.XRefParseException}}async checkLastPage(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{catalog:ce,pdfManager:de}=this;ce.setActualNumPages();let Z;try{if(await Promise.all([de.ensureDoc("xfaFactory"),de.ensureDoc("linearization"),de.ensureCatalog("numPages")]),this.xfaFactory)return;if(this.linearization?Z=this.linearization.numPages:Z=ce.numPages,Number.isInteger(Z)){if(Z<=1)return}else throw new c.FormatError("Page count is not an integer.");await this.getPage(Z-1)}catch(ae){if(this._pagePromises.delete(Z-1),await this.cleanup(),ae instanceof R.XRefEntryException&&!K)throw new R.XRefParseException;(0,c.warn)(`checkLastPage - invalid /Pages tree /Count: ${Z}.`);let he;try{he=await ce.getAllPageDicts(K)}catch(we){if(we instanceof R.XRefEntryException&&!K)throw new R.XRefParseException;ce.setActualNumPages(1);return}for(const[we,[_e,ye]]of he){let se;_e instanceof Error?(se=Promise.reject(_e),se.catch(()=>{})):se=Promise.resolve(new H({pdfManager:de,xref:this.xref,pageIndex:we,pageDict:_e,ref:ye,globalIdFactory:this._globalIdFactory,fontCache:ce.fontCache,builtInCMapCache:ce.builtInCMapCache,standardFontDataCache:ce.standardFontDataCache,globalImageCache:ce.globalImageCache,nonBlendModesSet:ce.nonBlendModesSet,xfaFactory:null})),this._pagePromises.set(we,se)}ce.setActualNumPages(he.size)}}fontFallback(K,ce){return this.catalog.fontFallback(K,ce)}async cleanup(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.catalog?this.catalog.cleanup(K):(0,P.clearGlobalCaches)()}_collectFieldObjects(K,ce,de){const Z=this.xref.fetchIfRef(ce);if(Z.has("T")){const ae=(0,c.stringToPDFString)(Z.get("T"));K===""?K=ae:K=`${K}.${ae}`}if(de.has(K)||de.set(K,[]),de.get(K).push(n.AnnotationFactory.create(this.xref,ce,this.pdfManager,this._localIdFactory,!0).then(ae=>ae&&ae.getFieldObject()).catch(function(ae){return(0,c.warn)(`_collectFieldObjects: "${ae}".`),null})),Z.has("Kids")){const ae=Z.get("Kids");for(const he of ae)this._collectFieldObjects(K,he,de)}}get fieldObjects(){if(!this.formInfo.hasFields)return(0,c.shadow)(this,"fieldObjects",Promise.resolve(null));const K=Object.create(null),ce=new Map;for(const Z of this.catalog.acroForm.get("Fields"))this._collectFieldObjects("",Z,ce);const de=[];for(const[Z,ae]of ce)de.push(Promise.all(ae).then(he=>{he=he.filter(we=>!!we),he.length>0&&(K[Z]=he)}));return(0,c.shadow)(this,"fieldObjects",Promise.all(de).then(()=>K))}get hasJSActions(){const K=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,c.shadow)(this,"hasJSActions",K)}async _parseHasJSActions(){const[K,ce]=await Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);return K?!0:ce?Object.values(ce).some(de=>de.some(Z=>Z.actions!==null)):!1}get calculationOrderIds(){const K=this.catalog.acroForm;if(!K||!K.has("CO"))return(0,c.shadow)(this,"calculationOrderIds",null);const ce=K.get("CO");if(!Array.isArray(ce)||ce.length===0)return(0,c.shadow)(this,"calculationOrderIds",null);const de=[];for(const Z of ce)Z instanceof v.Ref&&de.push(Z.toString());return de.length===0?(0,c.shadow)(this,"calculationOrderIds",null):(0,c.shadow)(this,"calculationOrderIds",de)}}a.PDFDocument=Te},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.PopupAnnotation=a.MarkupAnnotation=a.AnnotationFactory=a.AnnotationBorderStyle=a.Annotation=void 0,a.getQuadPoints=N;var n=g(2),c=g(131),R=g(138),v=g(130),e=g(190),L=g(132),O=g(185),B=g(194),P=g(139),S=g(197),_=g(200),l=g(187),y=g(135),D=g(201);class M{static create(oe,pe,xe,Ne,ke){return Promise.all([xe.ensureCatalog("acroForm"),xe.ensureCatalog("baseUrl"),xe.ensureDoc("xfaDatasets"),ke?this._getPageIndex(oe,pe,xe):-1]).then(De=>{let[Fe,Pe,qe,Le]=De;return xe.ensure(this,"_create",[oe,pe,xe,Ne,Fe,qe,ke,Le])})}static _create(oe,pe,xe,Ne,ke,De,Fe){let Pe=arguments.length>7&&arguments[7]!==void 0?arguments[7]:-1;const qe=oe.fetchIfRef(pe);if(!(qe instanceof v.Dict))return;const Le=pe instanceof v.Ref?pe.toString():`annot_${Ne.createObjId()}`;let Oe=qe.get("Subtype");Oe=Oe instanceof v.Name?Oe.name:null;const Ee={xref:oe,ref:pe,dict:qe,subtype:Oe,id:Le,pdfManager:xe,acroForm:ke instanceof v.Dict?ke:v.Dict.empty,xfaDatasets:De,collectFields:Fe,pageIndex:Pe};switch(Oe){case"Link":return new fe(Ee);case"Text":return new $(Ee);case"Widget":let Ae=(0,c.getInheritableProperty)({dict:qe,key:"FT"});switch(Ae=Ae instanceof v.Name?Ae.name:null,Ae){case"Tx":return new H(Ee);case"Btn":return new z(Ee);case"Ch":return new X(Ee);case"Sig":return new q(Ee)}return(0,n.warn)(`Unimplemented widget field type "${Ae}", falling back to base field type.`),new V(Ee);case"Popup":return new Q(Ee);case"FreeText":return new ie(Ee);case"Line":return new Te(Ee);case"Square":return new me(Ee);case"Circle":return new K(Ee);case"PolyLine":return new ce(Ee);case"Polygon":return new de(Ee);case"Caret":return new Z(Ee);case"Ink":return new ae(Ee);case"Highlight":return new he(Ee);case"Underline":return new we(Ee);case"Squiggly":return new _e(Ee);case"StrikeOut":return new ye(Ee);case"Stamp":return new se(Ee);case"FileAttachment":return new Ie(Ee);default:return Fe||(Oe?(0,n.warn)(`Unimplemented annotation type "${Oe}", falling back to base annotation.`):(0,n.warn)("Annotation is missing the required /Subtype.")),new W(Ee)}}static async _getPageIndex(oe,pe,xe){try{const Ne=await oe.fetchIfRefAsync(pe);if(!(Ne instanceof v.Dict))return-1;const ke=Ne.getRaw("P");return ke instanceof v.Ref?await xe.ensureCatalog("getPageIndex",[ke]):-1}catch(Ne){return(0,n.warn)(`_getPageIndex: "${Ne}".`),-1}}static async saveNewAnnotations(oe,pe,xe){const Ne=oe.xref;let ke;const De=[],Fe=[];for(const Pe of xe)switch(Pe.annotationType){case n.AnnotationEditorType.FREETEXT:if(!ke){const qe=new v.Dict(Ne);qe.set("BaseFont",v.Name.get("Helvetica")),qe.set("Type",v.Name.get("Font")),qe.set("Subtype",v.Name.get("Type1")),qe.set("Encoding",v.Name.get("WinAnsiEncoding"));const Le=[];ke=Ne.getNewRef(),(0,e.writeObject)(ke,qe,Le,null),De.push({ref:ke,data:Le.join("")})}Fe.push(ie.createNewAnnotation(Ne,Pe,De,{evaluator:oe,task:pe,baseFontRef:ke}));break;case n.AnnotationEditorType.INK:Fe.push(ae.createNewAnnotation(Ne,Pe,De))}return{annotations:await Promise.all(Fe),dependencies:De}}static async printNewAnnotations(oe,pe,xe){if(!xe)return null;const Ne=oe.xref,ke=[];for(const De of xe)switch(De.annotationType){case n.AnnotationEditorType.FREETEXT:ke.push(ie.createNewPrintAnnotation(Ne,De,{evaluator:oe,task:pe}));break;case n.AnnotationEditorType.INK:ke.push(ae.createNewPrintAnnotation(Ne,De));break}return Promise.all(ke)}}a.AnnotationFactory=M;function F(Ce){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Uint8ClampedArray(3);if(!Array.isArray(Ce))return oe;const pe=oe||new Uint8ClampedArray(3);switch(Ce.length){case 0:return null;case 1:return P.ColorSpace.singletons.gray.getRgbItem(Ce,0,pe,0),pe;case 3:return P.ColorSpace.singletons.rgb.getRgbItem(Ce,0,pe,0),pe;case 4:return P.ColorSpace.singletons.cmyk.getRgbItem(Ce,0,pe,0),pe;default:return oe}}function N(Ce,oe){if(!Ce.has("QuadPoints"))return null;const pe=Ce.getArray("QuadPoints");if(!Array.isArray(pe)||pe.length===0||pe.length%8>0)return null;const xe=[];for(let Ne=0,ke=pe.length/8;Neoe[2]||qeoe[3]))return null;xe[Ne].push({x:Pe,y:qe})}}return xe.map(Ne=>{const[ke,De,Fe,Pe]=Ne.reduce((qe,Le)=>{let[Oe,Ee,Ae,Ve]=qe;return[Math.min(Oe,Le.x),Math.max(Ee,Le.x),Math.min(Ae,Le.y),Math.max(Ve,Le.y)]},[Number.MAX_VALUE,Number.MIN_VALUE,Number.MAX_VALUE,Number.MIN_VALUE]);return[{x:ke,y:Pe},{x:De,y:Pe},{x:ke,y:Fe},{x:De,y:Fe}]})}function G(Ce,oe,pe){const[xe,Ne,ke,De]=n.Util.getAxialAlignedBoundingBox(oe,pe);if(xe===ke||Ne===De)return[1,0,0,1,Ce[0],Ce[1]];const Fe=(Ce[2]-Ce[0])/(ke-xe),Pe=(Ce[3]-Ce[1])/(De-Ne);return[Fe,0,0,Pe,Ce[0]-xe*Fe,Ce[1]-Ne*Pe]}class W{constructor(oe){const pe=oe.dict;this.setTitle(pe.get("T")),this.setContents(pe.get("Contents")),this.setModificationDate(pe.get("M")),this.setFlags(pe.get("F")),this.setRectangle(pe.getArray("Rect")),this.setColor(pe.getArray("C")),this.setBorderStyle(pe),this.setAppearance(pe),this.setOptionalContent(pe);const xe=pe.get("MK");if(this.setBorderAndBackgroundColors(xe),this.setRotation(xe),this._streams=[],this.appearance&&this._streams.push(this.appearance),this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:oe.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:oe.subtype,hasOwnCanvas:!1},oe.collectFields){const Ne=pe.get("Kids");if(Array.isArray(Ne)){const ke=[];for(const De of Ne)De instanceof v.Ref&&ke.push(De.toString());ke.length!==0&&(this.data.kidIds=ke)}this.data.actions=(0,c.collectActions)(oe.xref,pe,n.AnnotationActionEventType),this.data.fieldName=this._constructFieldName(pe),this.data.pageIndex=oe.pageIndex}this._fallbackFontDict=null}_hasFlag(oe,pe){return!!(oe&pe)}_isViewable(oe){return!this._hasFlag(oe,n.AnnotationFlag.INVISIBLE)&&!this._hasFlag(oe,n.AnnotationFlag.NOVIEW)}_isPrintable(oe){return this._hasFlag(oe,n.AnnotationFlag.PRINT)&&!this._hasFlag(oe,n.AnnotationFlag.INVISIBLE)}mustBeViewed(oe){const pe=oe&&oe.get(this.data.id);return pe&&pe.hidden!==void 0?!pe.hidden:this.viewable&&!this._hasFlag(this.flags,n.AnnotationFlag.HIDDEN)}mustBePrinted(oe){const pe=oe&&oe.get(this.data.id);return pe&&pe.print!==void 0?pe.print:this.printable}get viewable(){return this.data.quadPoints===null?!1:this.flags===0?!0:this._isViewable(this.flags)}get printable(){return this.data.quadPoints===null||this.flags===0?!1:this._isPrintable(this.flags)}_parseStringHelper(oe){const pe=typeof oe=="string"?(0,n.stringToPDFString)(oe):"",xe=pe&&(0,O.bidi)(pe).dir==="rtl"?"rtl":"ltr";return{str:pe,dir:xe}}setTitle(oe){this._title=this._parseStringHelper(oe)}setContents(oe){this._contents=this._parseStringHelper(oe)}setModificationDate(oe){this.modificationDate=typeof oe=="string"?oe:null}setFlags(oe){this.flags=Number.isInteger(oe)&&oe>0?oe:0}hasFlag(oe){return this._hasFlag(this.flags,oe)}setRectangle(oe){Array.isArray(oe)&&oe.length===4?this.rectangle=n.Util.normalizeRect(oe):this.rectangle=[0,0,0,0]}setColor(oe){this.color=F(oe)}setLineEndings(oe){if(this.lineEndings=["None","None"],Array.isArray(oe)&&oe.length===2)for(let pe=0;pe<2;pe++){const xe=oe[pe];if(xe instanceof v.Name)switch(xe.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[pe]=xe.name;continue}(0,n.warn)(`Ignoring invalid lineEnding: ${xe}`)}}setRotation(oe){if(this.rotation=0,oe instanceof v.Dict){let pe=oe.get("R")||0;Number.isInteger(pe)&&pe!==0&&(pe%=360,pe<0&&(pe+=360),pe%90===0&&(this.rotation=pe))}}setBorderAndBackgroundColors(oe){oe instanceof v.Dict?(this.borderColor=F(oe.getArray("BC"),null),this.backgroundColor=F(oe.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}setBorderStyle(oe){if(this.borderStyle=new J,oe instanceof v.Dict)if(oe.has("BS")){const pe=oe.get("BS"),xe=pe.get("Type");(!xe||(0,v.isName)(xe,"Border"))&&(this.borderStyle.setWidth(pe.get("W"),this.rectangle),this.borderStyle.setStyle(pe.get("S")),this.borderStyle.setDashArray(pe.getArray("D")))}else if(oe.has("Border")){const pe=oe.getArray("Border");Array.isArray(pe)&&pe.length>=3&&(this.borderStyle.setHorizontalCornerRadius(pe[0]),this.borderStyle.setVerticalCornerRadius(pe[1]),this.borderStyle.setWidth(pe[2],this.rectangle),pe.length===4&&this.borderStyle.setDashArray(pe[3],!0))}else this.borderStyle.setWidth(0)}setAppearance(oe){this.appearance=null;const pe=oe.get("AP");if(!(pe instanceof v.Dict))return;const xe=pe.get("N");if(xe instanceof L.BaseStream){this.appearance=xe;return}if(!(xe instanceof v.Dict))return;const Ne=oe.get("AS");!(Ne instanceof v.Name)||!xe.has(Ne.name)||(this.appearance=xe.get(Ne.name))}setOptionalContent(oe){this.oc=null;const pe=oe.get("OC");pe instanceof v.Name?(0,n.warn)("setOptionalContent: Support for /Name-entry is not implemented."):pe instanceof v.Dict&&(this.oc=pe)}loadResources(oe,pe){return pe.dict.getAsync("Resources").then(xe=>xe?new _.ObjectLoader(xe,oe,xe.xref).load().then(function(){return xe}):void 0)}async getOperatorList(oe,pe,xe,Ne,ke){const De=this.data;let Fe=this.appearance;const Pe=!!(this.data.hasOwnCanvas&&xe&n.RenderingIntentFlag.DISPLAY);if(!Fe){if(!Pe)return{opList:new l.OperatorList,separateForm:!1,separateCanvas:!1};Fe=new y.StringStream(""),Fe.dict=new v.Dict}const qe=Fe.dict,Le=await this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],Fe),Oe=qe.getArray("BBox")||[0,0,1,1],Ee=qe.getArray("Matrix")||[1,0,0,1,0,0],Ae=G(De.rect,Oe,Ee),Ve=new l.OperatorList;let $e;return this.oc&&($e=await oe.parseMarkedContentProps(this.oc,null)),$e!==void 0&&Ve.addOp(n.OPS.beginMarkedContentProps,["OC",$e]),Ve.addOp(n.OPS.beginAnnotation,[De.id,De.rect,Ae,Ee,Pe]),await oe.getOperatorList({stream:Fe,task:pe,resources:Le,operatorList:Ve,fallbackFontDict:this._fallbackFontDict}),Ve.addOp(n.OPS.endAnnotation,[]),$e!==void 0&&Ve.addOp(n.OPS.endMarkedContent,[]),this.reset(),{opList:Ve,separateForm:!1,separateCanvas:Pe}}async save(oe,pe,xe){return null}get hasTextContent(){return!1}async extractTextContent(oe,pe,xe){if(!this.appearance)return;const Ne=await this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance),ke=[],De=[],Fe={desiredSize:Math.Infinity,ready:!0,enqueue(Pe,qe){for(const Le of Pe.items)De.push(Le.str),Le.hasEOL&&(ke.push(De.join("")),De.length=0)}};await oe.getTextContent({stream:this.appearance,task:pe,resources:Ne,includeMarkedContent:!0,combineTextItems:!0,sink:Fe,viewBox:xe}),this.reset(),De.length&&ke.push(De.join("")),ke.length>0&&(this.data.textContent=ke)}getFieldObject(){return this.data.kidIds?{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}:null}reset(){for(const oe of this._streams)oe.reset()}_constructFieldName(oe){if(!oe.has("T")&&!oe.has("Parent"))return(0,n.warn)("Unknown field name, falling back to empty field name."),"";if(!oe.has("Parent"))return(0,n.stringToPDFString)(oe.get("T"));const pe=[];oe.has("T")&&pe.unshift((0,n.stringToPDFString)(oe.get("T")));let xe=oe;const Ne=new v.RefSet;for(oe.objId&&Ne.put(oe.objId);xe.has("Parent")&&(xe=xe.get("Parent"),!(!(xe instanceof v.Dict)||xe.objId&&Ne.has(xe.objId)));)xe.objId&&Ne.put(xe.objId),xe.has("T")&&pe.unshift((0,n.stringToPDFString)(xe.get("T")));return pe.join(".")}}a.Annotation=W;class J{constructor(){this.width=1,this.style=n.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth(oe){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0,0,0];if(oe instanceof v.Name){this.width=0;return}if(typeof oe=="number"){if(oe>0){const xe=(pe[2]-pe[0])/2,Ne=(pe[3]-pe[1])/2;xe>0&&Ne>0&&(oe>xe||oe>Ne)&&((0,n.warn)(`AnnotationBorderStyle.setWidth - ignoring width: ${oe}`),oe=1)}this.width=oe}}setStyle(oe){if(oe instanceof v.Name)switch(oe.name){case"S":this.style=n.AnnotationBorderStyleType.SOLID;break;case"D":this.style=n.AnnotationBorderStyleType.DASHED;break;case"B":this.style=n.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=n.AnnotationBorderStyleType.INSET;break;case"U":this.style=n.AnnotationBorderStyleType.UNDERLINE;break}}setDashArray(oe){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Array.isArray(oe)&&oe.length>0){let xe=!0,Ne=!0;for(const ke of oe)if(+ke>=0)ke>0&&(Ne=!1);else{xe=!1;break}xe&&!Ne?(this.dashArray=oe,pe&&this.setStyle(v.Name.get("D"))):this.width=0}else oe&&(this.width=0)}setHorizontalCornerRadius(oe){Number.isInteger(oe)&&(this.horizontalCornerRadius=oe)}setVerticalCornerRadius(oe){Number.isInteger(oe)&&(this.verticalCornerRadius=oe)}}a.AnnotationBorderStyle=J;class Y extends W{constructor(oe){super(oe);const pe=oe.dict;if(pe.has("IRT")){const xe=pe.getRaw("IRT");this.data.inReplyTo=xe instanceof v.Ref?xe.toString():null;const Ne=pe.get("RT");this.data.replyType=Ne instanceof v.Name?Ne.name:n.AnnotationReplyType.REPLY}if(this.data.replyType===n.AnnotationReplyType.GROUP){const xe=pe.get("IRT");this.setTitle(xe.get("T")),this.data.titleObj=this._title,this.setContents(xe.get("Contents")),this.data.contentsObj=this._contents,xe.has("CreationDate")?(this.setCreationDate(xe.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,xe.has("M")?(this.setModificationDate(xe.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,this.data.hasPopup=xe.has("Popup"),xe.has("C")?(this.setColor(xe.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.titleObj=this._title,this.setCreationDate(pe.get("CreationDate")),this.data.creationDate=this.creationDate,this.data.hasPopup=pe.has("Popup"),pe.has("C")||(this.data.color=null);pe.has("RC")&&(this.data.richText=D.XFAFactory.getRichTextAsHtml(pe.get("RC")))}setCreationDate(oe){this.creationDate=typeof oe=="string"?oe:null}_setDefaultAppearance(oe){let{xref:pe,extra:xe,strokeColor:Ne,fillColor:ke,blendMode:De,strokeAlpha:Fe,fillAlpha:Pe,pointsCallback:qe}=oe,Le=Number.MAX_VALUE,Oe=Number.MAX_VALUE,Ee=Number.MIN_VALUE,Ae=Number.MIN_VALUE;const Ve=["q"];xe&&Ve.push(xe),Ne&&Ve.push(`${Ne[0]} ${Ne[1]} ${Ne[2]} RG`),ke&&Ve.push(`${ke[0]} ${ke[1]} ${ke[2]} rg`);let $e=this.data.quadPoints;$e||($e=[[{x:this.rectangle[0],y:this.rectangle[3]},{x:this.rectangle[2],y:this.rectangle[3]},{x:this.rectangle[0],y:this.rectangle[1]},{x:this.rectangle[2],y:this.rectangle[1]}]]);for(const nt of $e){const[Ke,at,ot,Xe]=qe(Ve,nt);Le=Math.min(Le,Ke),Ee=Math.max(Ee,at),Oe=Math.min(Oe,ot),Ae=Math.max(Ae,Xe)}Ve.push("Q");const Ue=new v.Dict(pe),He=new v.Dict(pe);He.set("Subtype",v.Name.get("Form"));const Qe=new y.StringStream(Ve.join(" "));Qe.dict=He,Ue.set("Fm0",Qe);const Ze=new v.Dict(pe);De&&Ze.set("BM",v.Name.get(De)),typeof Fe=="number"&&Ze.set("CA",Fe),typeof Pe=="number"&&Ze.set("ca",Pe);const et=new v.Dict(pe);et.set("GS0",Ze);const tt=new v.Dict(pe);tt.set("ExtGState",et),tt.set("XObject",Ue);const je=new v.Dict(pe);je.set("Resources",tt);const Je=this.data.rect=[Le,Oe,Ee,Ae];je.set("BBox",Je),this.appearance=new y.StringStream("/GS0 gs /Fm0 Do"),this.appearance.dict=je,this._streams.push(this.appearance,Qe)}static async createNewAnnotation(oe,pe,xe,Ne){const ke=oe.getNewRef(),De=oe.getNewRef(),Fe=this.createNewDict(pe,oe,{apRef:De}),Pe=await this.createNewAppearanceStream(pe,oe,Ne),qe=[];let Le=oe.encrypt?oe.encrypt.createCipherTransform(De.num,De.gen):null;return(0,e.writeObject)(De,Pe,qe,Le),xe.push({ref:De,data:qe.join("")}),qe.length=0,Le=oe.encrypt?oe.encrypt.createCipherTransform(ke.num,ke.gen):null,(0,e.writeObject)(ke,Fe,qe,Le),{ref:ke,data:qe.join("")}}static async createNewPrintAnnotation(oe,pe,xe){const Ne=await this.createNewAppearanceStream(pe,oe,xe),ke=this.createNewDict(pe,oe,{ap:Ne});return new this.prototype.constructor({dict:ke,xref:oe})}}a.MarkupAnnotation=Y;class V extends W{constructor(oe){super(oe);const pe=oe.dict,xe=this.data;this.ref=oe.ref,xe.annotationType=n.AnnotationType.WIDGET,xe.fieldName===void 0&&(xe.fieldName=this._constructFieldName(pe)),xe.actions===void 0&&(xe.actions=(0,c.collectActions)(oe.xref,pe,n.AnnotationActionEventType));let Ne=(0,c.getInheritableProperty)({dict:pe,key:"V",getArray:!0});xe.fieldValue=this._decodeFormValue(Ne);const ke=(0,c.getInheritableProperty)({dict:pe,key:"DV",getArray:!0});if(xe.defaultFieldValue=this._decodeFormValue(ke),Ne===void 0&&oe.xfaDatasets){const Oe=this._title.str;Oe&&(this._hasValueFromXFA=!0,xe.fieldValue=Ne=oe.xfaDatasets.getValue(Oe))}Ne===void 0&&xe.defaultFieldValue!==null&&(xe.fieldValue=xe.defaultFieldValue),xe.alternativeText=(0,n.stringToPDFString)(pe.get("TU")||"");const De=(0,c.getInheritableProperty)({dict:pe,key:"DA"})||oe.acroForm.get("DA");this._defaultAppearance=typeof De=="string"?De:"",xe.defaultAppearanceData=(0,R.parseDefaultAppearance)(this._defaultAppearance);const Fe=(0,c.getInheritableProperty)({dict:pe,key:"FT"});xe.fieldType=Fe instanceof v.Name?Fe.name:null;const Pe=(0,c.getInheritableProperty)({dict:pe,key:"DR"}),qe=oe.acroForm.get("DR"),Le=this.appearance&&this.appearance.dict.get("Resources");this._fieldResources={localResources:Pe,acroFormResources:qe,appearanceResources:Le,mergedResources:v.Dict.merge({xref:oe.xref,dictArray:[Pe,Le,qe],mergeSubDicts:!0})},xe.fieldFlags=(0,c.getInheritableProperty)({dict:pe,key:"Ff"}),(!Number.isInteger(xe.fieldFlags)||xe.fieldFlags<0)&&(xe.fieldFlags=0),xe.readOnly=this.hasFieldFlag(n.AnnotationFieldFlag.READONLY),xe.required=this.hasFieldFlag(n.AnnotationFieldFlag.REQUIRED),xe.hidden=this._hasFlag(xe.annotationFlags,n.AnnotationFlag.HIDDEN)}_decodeFormValue(oe){return Array.isArray(oe)?oe.filter(pe=>typeof pe=="string").map(pe=>(0,n.stringToPDFString)(pe)):oe instanceof v.Name?(0,n.stringToPDFString)(oe.name):typeof oe=="string"?(0,n.stringToPDFString)(oe):null}hasFieldFlag(oe){return!!(this.data.fieldFlags&oe)}static _getRotationMatrix(oe,pe,xe){switch(oe){case 90:return[0,1,-1,0,pe,0];case 180:return[-1,0,0,-1,pe,xe];case 270:return[0,-1,1,0,0,xe];default:throw new Error("Invalid rotation")}}getRotationMatrix(oe){const pe=oe?oe.get(this.data.id):void 0;let xe=pe&&pe.rotation;if(xe===void 0&&(xe=this.rotation),xe===0)return n.IDENTITY_MATRIX;const Ne=this.data.rect[2]-this.data.rect[0],ke=this.data.rect[3]-this.data.rect[1];return V._getRotationMatrix(xe,Ne,ke)}getBorderAndBackgroundAppearances(oe){const pe=oe?oe.get(this.data.id):void 0;let xe=pe&&pe.rotation;if(xe===void 0&&(xe=this.rotation),!this.backgroundColor&&!this.borderColor)return"";const Ne=this.data.rect[2]-this.data.rect[0],ke=this.data.rect[3]-this.data.rect[1],De=xe===0||xe===180?`0 0 ${Ne} ${ke} re`:`0 0 ${ke} ${Ne} re`;let Fe="";if(this.backgroundColor&&(Fe=`${(0,R.getPdfColor)(this.backgroundColor,!0)} ${De} f `),this.borderColor){const Pe=this.borderStyle.width||1;Fe+=`${Pe} w ${(0,R.getPdfColor)(this.borderColor,!1)} ${De} S `}return Fe}async getOperatorList(oe,pe,xe,Ne,ke){if(Ne&&!(this instanceof q))return{opList:new l.OperatorList,separateForm:!0,separateCanvas:!1};if(!this._hasText)return super.getOperatorList(oe,pe,xe,Ne,ke);const De=await this._getAppearance(oe,pe,ke);if(this.appearance&&De===null)return super.getOperatorList(oe,pe,xe,Ne,ke);const Fe=new l.OperatorList;if(!this._defaultAppearance||De===null)return{opList:Fe,separateForm:!1,separateCanvas:!1};const Pe=[1,0,0,1,0,0],qe=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],Le=G(this.data.rect,qe,Pe);let Oe;this.oc&&(Oe=await oe.parseMarkedContentProps(this.oc,null)),Oe!==void 0&&Fe.addOp(n.OPS.beginMarkedContentProps,["OC",Oe]),Fe.addOp(n.OPS.beginAnnotation,[this.data.id,this.data.rect,Le,this.getRotationMatrix(ke),!1]);const Ee=new y.StringStream(De);return await oe.getOperatorList({stream:Ee,task:pe,resources:this._fieldResources.mergedResources,operatorList:Fe}),Fe.addOp(n.OPS.endAnnotation,[]),Oe!==void 0&&Fe.addOp(n.OPS.endMarkedContent,[]),{opList:Fe,separateForm:!1,separateCanvas:!1}}_getMKDict(oe){const pe=new v.Dict(null);return oe&&pe.set("R",oe),this.borderColor&&pe.set("BC",Array.from(this.borderColor).map(xe=>xe/255)),this.backgroundColor&&pe.set("BG",Array.from(this.backgroundColor).map(xe=>xe/255)),pe.size>0?pe:null}async save(oe,pe,xe){const Ne=xe?xe.get(this.data.id):void 0;let ke=Ne&&Ne.value,De=Ne&&Ne.rotation;if(ke===this.data.fieldValue||ke===void 0){if(!this._hasValueFromXFA&&De===void 0)return null;ke=ke||this.data.fieldValue}if(De===void 0&&!this._hasValueFromXFA&&Array.isArray(ke)&&Array.isArray(this.data.fieldValue)&&ke.length===this.data.fieldValue.length&&ke.every((Je,nt)=>Je===this.data.fieldValue[nt]))return null;De===void 0&&(De=this.rotation);let Fe=await this._getAppearance(oe,pe,xe);if(Fe===null)return null;const{xref:Pe}=oe,qe=Pe.fetchIfRef(this.ref);if(!(qe instanceof v.Dict))return null;const Le=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],Oe={path:(0,n.stringToPDFString)(qe.get("T")||""),value:ke},Ee=Pe.getNewRef(),Ae=new v.Dict(Pe);Ae.set("N",Ee);const Ve=Pe.encrypt;let $e=null,Ue=null;Ve&&($e=Ve.createCipherTransform(this.ref.num,this.ref.gen),Ue=Ve.createCipherTransform(Ee.num,Ee.gen),Fe=Ue.encryptString(Fe));const He=Je=>(0,n.isAscii)(Je)?Je:(0,n.stringToUTF16BEString)(Je);qe.set("V",Array.isArray(ke)?ke.map(He):He(ke)),qe.set("AP",Ae),qe.set("M",`D:${(0,n.getModificationDate)()}`);const Qe=this._getMKDict(De);Qe&&qe.set("MK",Qe);const Ze=new v.Dict(Pe);Ze.set("Length",Fe.length),Ze.set("Subtype",v.Name.get("Form")),Ze.set("Resources",this._getSaveFieldResources(Pe)),Ze.set("BBox",Le);const et=this.getRotationMatrix(xe);et!==n.IDENTITY_MATRIX&&Ze.set("Matrix",et);const tt=[`${this.ref.num} ${this.ref.gen} obj `];(0,e.writeDict)(qe,tt,$e),tt.push(` endobj `);const je=[`${Ee.num} ${Ee.gen} obj `];return(0,e.writeDict)(Ze,je,Ue),je.push(` stream `,Fe,` endstream endobj `),[{ref:this.ref,data:tt.join(""),xfa:Oe},{ref:Ee,data:je.join(""),xfa:null}]}async _getAppearance(oe,pe,xe){if(this.hasFieldFlag(n.AnnotationFieldFlag.PASSWORD))return null;const ke=xe?xe.get(this.data.id):void 0;let De,Fe;if(ke&&(De=ke.formattedValue||ke.value,Fe=ke.rotation),Fe===void 0&&De===void 0&&(!this._hasValueFromXFA||this.appearance))return null;if(De===void 0&&(De=this.data.fieldValue,!De)||(Array.isArray(De)&&De.length===1&&(De=De[0]),(0,n.assert)(typeof De=="string","Expected `value` to be a string."),De=De.trim(),De===""))return"";Fe===void 0&&(Fe=this.rotation);let Pe=-1;this.data.multiLine&&(Pe=De.split(/\r\n|\r|\n/).length);const qe=2,Le=qe;let Oe=this.data.rect[3]-this.data.rect[1],Ee=this.data.rect[2]-this.data.rect[0];(Fe===90||Fe===270)&&([Ee,Oe]=[Oe,Ee]),this._defaultAppearance||(this.data.defaultAppearanceData=(0,R.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));const Ae=await V._getFontData(oe,pe,this.data.defaultAppearanceData,this._fieldResources.mergedResources),[Ve,$e]=this._computeFontSize(Oe-qe,Ee-2*Le,De,Ae,Pe);let Ue=Ae.descent;isNaN(Ue)&&(Ue=0);const Qe=Math.min(Math.floor((Oe-$e)/2),qe)+Math.abs(Ue)*$e,Ze=this.data.textAlignment;if(this.data.multiLine)return this._getMultilineAppearance(Ve,De,Ae,$e,Ee,Oe,Ze,Le,Qe,xe);const et=Ae.encodeString(De).join("");if(this.data.comb)return this._getCombAppearance(Ve,Ae,et,Ee,Le,Qe,xe);const tt=this.getBorderAndBackgroundAppearances(xe);if(Ze===0||Ze>2)return`/Tx BMC q ${tt}BT `+Ve+` 1 0 0 1 ${Le} ${Qe} Tm (${(0,n.escapeString)(et)}) Tj ET Q EMC`;const je=this._renderText(et,Ae,$e,Ee,Ze,Le,Qe);return`/Tx BMC q ${tt}BT `+Ve+` 1 0 0 1 0 0 Tm ${je} ET Q EMC`}static async _getFontData(oe,pe,xe,Ne){const ke=new l.OperatorList,De={font:null,clone(){return this}},{fontName:Fe,fontSize:Pe}=xe;return await oe.handleSetFont(Ne,[Fe&&v.Name.get(Fe),Pe],null,ke,pe,De,null),De.font}_getTextWidth(oe,pe){return pe.charsToGlyphs(oe).reduce((xe,Ne)=>xe+Ne.width,0)/1e3}_computeFontSize(oe,pe,xe,Ne,ke){let{fontSize:De}=this.data.defaultAppearanceData;if(!De){const Fe=Le=>Math.floor(Le*100)/100;if(ke===-1){const Le=this._getTextWidth(xe,Ne);De=Fe(Math.min(oe/n.LINE_FACTOR,pe/Le))}else{const Le=xe.split(/\r\n?|\n/),Oe=[];for(const $e of Le){const Ue=Ne.encodeString($e).join(""),He=Ne.charsToGlyphs(Ue),Qe=Ne.getCharPositions(Ue);Oe.push({line:Ue,glyphs:He,positions:Qe})}const Ee=$e=>{let Ue=0;for(const He of Oe){const Qe=this._splitLine(null,Ne,$e,pe,He);if(Ue+=Qe.length*$e,Ue>oe)return!0}return!1};De=12;let Ae=De*n.LINE_FACTOR,Ve=Math.round(oe/Ae);for(Ve=Math.max(Ve,ke);;){if(Ae=oe/Ve,De=Fe(Ae/n.LINE_FACTOR),Ee(De)){Ve++;continue}break}}const{fontName:Pe,fontColor:qe}=this.data.defaultAppearanceData;this._defaultAppearance=(0,R.createDefaultAppearance)({fontSize:De,fontName:Pe,fontColor:qe})}return[this._defaultAppearance,De]}_renderText(oe,pe,xe,Ne,ke,De,Fe){let Pe;if(ke===1){const qe=this._getTextWidth(oe,pe)*xe;Pe=(Ne-qe)/2}else if(ke===2){const qe=this._getTextWidth(oe,pe)*xe;Pe=Ne-qe-De}else Pe=De;return Pe=(0,c.numberToString)(Pe),Fe=(0,c.numberToString)(Fe),`${Pe} ${Fe} Td (${(0,n.escapeString)(oe)}) Tj`}_getSaveFieldResources(oe){const{localResources:pe,appearanceResources:xe,acroFormResources:Ne}=this._fieldResources,ke=this.data.defaultAppearanceData&&this.data.defaultAppearanceData.fontName;if(!ke)return pe||v.Dict.empty;for(const De of[pe,xe])if(De instanceof v.Dict){const Fe=De.get("Font");if(Fe instanceof v.Dict&&Fe.has(ke))return De}if(Ne instanceof v.Dict){const De=Ne.get("Font");if(De instanceof v.Dict&&De.has(ke)){const Fe=new v.Dict(oe);Fe.set(ke,De.getRaw(ke));const Pe=new v.Dict(oe);return Pe.set("Font",Fe),v.Dict.merge({xref:oe,dictArray:[Pe,pe],mergeSubDicts:!0})}}return pe||v.Dict.empty}getFieldObject(){return null}}class H extends V{constructor(oe){super(oe),this._hasText=!0;const pe=oe.dict;typeof this.data.fieldValue!="string"&&(this.data.fieldValue="");let xe=(0,c.getInheritableProperty)({dict:pe,key:"Q"});(!Number.isInteger(xe)||xe<0||xe>2)&&(xe=null),this.data.textAlignment=xe;let Ne=(0,c.getInheritableProperty)({dict:pe,key:"MaxLen"});(!Number.isInteger(Ne)||Ne<0)&&(Ne=0),this.data.maxLen=Ne,this.data.multiLine=this.hasFieldFlag(n.AnnotationFieldFlag.MULTILINE),this.data.comb=this.hasFieldFlag(n.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(n.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(n.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(n.AnnotationFieldFlag.FILESELECT)&&this.data.maxLen!==0,this.data.doNotScroll=this.hasFieldFlag(n.AnnotationFieldFlag.DONOTSCROLL)}_getCombAppearance(oe,pe,xe,Ne,ke,De,Fe){const Pe=(0,c.numberToString)(Ne/this.data.maxLen),qe=[],Le=pe.getCharPositions(xe);for(const[Ae,Ve]of Le)qe.push(`(${(0,n.escapeString)(xe.substring(Ae,Ve))}) Tj`);const Oe=this.getBorderAndBackgroundAppearances(Fe),Ee=qe.join(` ${Pe} 0 Td `);return`/Tx BMC q ${Oe}BT `+oe+` 1 0 0 1 ${ke} ${De} Tm ${Ee} ET Q EMC`}_getMultilineAppearance(oe,pe,xe,Ne,ke,De,Fe,Pe,qe,Le){const Oe=pe.split(/\r\n?|\n/),Ee=[],Ae=ke-2*Pe;for(const Ue of Oe){const He=this._splitLine(Ue,xe,Ne,Ae);for(const Qe of He){const Ze=Ee.length===0?Pe:0;Ee.push(this._renderText(Qe,xe,Ne,ke,Fe,Ze,-Ne))}}const Ve=Ee.join(` `);return`/Tx BMC q ${this.getBorderAndBackgroundAppearances(Le)}BT `+oe+` 1 0 0 1 0 ${De} Tm ${Ve} ET Q EMC`}_splitLine(oe,pe,xe,Ne){let ke=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};oe=ke.line||pe.encodeString(oe).join("");const De=ke.glyphs||pe.charsToGlyphs(oe);if(De.length<=1)return[oe];const Fe=ke.positions||pe.getCharPositions(oe),Pe=xe/1e3,qe=[];let Le=-1,Oe=-1,Ee=-1,Ae=0,Ve=0;for(let $e=0,Ue=De.length;$eNe?(qe.push(oe.substring(Ae,He)),Ae=He,Ve=et,Le=-1,Ee=-1):(Ve+=et,Le=He,Oe=Qe,Ee=$e):Ve+et>Ne?Le!==-1?(qe.push(oe.substring(Ae,Oe)),Ae=Oe,$e=Ee+1,Le=-1,Ve=0):(qe.push(oe.substring(Ae,He)),Ae=He,Ve=et):Ve+=et}return AePe!=="Off");De.length=0,De.push("Off",Fe)}De.includes(this.data.fieldValue)||(this.data.fieldValue="Off"),this.data.exportValue=De[1],this.checkedAppearance=xe.get(this.data.exportValue)||null,this.uncheckedAppearance=xe.get("Off")||null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(oe,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict}_processRadioButton(oe){this.data.fieldValue=this.data.buttonValue=null;const pe=oe.dict.get("Parent");if(pe instanceof v.Dict){this.parent=oe.dict.getRaw("Parent");const ke=pe.get("V");ke instanceof v.Name&&(this.data.fieldValue=this._decodeFormValue(ke))}const xe=oe.dict.get("AP");if(!(xe instanceof v.Dict))return;const Ne=xe.get("N");if(Ne instanceof v.Dict){for(const ke of Ne.getKeys())if(ke!=="Off"){this.data.buttonValue=this._decodeFormValue(ke);break}this.checkedAppearance=Ne.get(this.data.buttonValue)||null,this.uncheckedAppearance=Ne.get("Off")||null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(oe,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict}}_processPushButton(oe){if(!oe.dict.has("A")&&!oe.dict.has("AA")&&!this.data.alternativeText){(0,n.warn)("Push buttons without action dictionaries are not supported");return}this.data.isTooltipOnly=!oe.dict.has("A")&&!oe.dict.has("AA"),B.Catalog.parseDestDictionary({destDict:oe.dict,resultObj:this.data,docBaseUrl:oe.pdfManager.docBaseUrl})}getFieldObject(){let oe="button",pe;return this.data.checkBox?(oe="checkbox",pe=this.data.exportValue):this.data.radioButton&&(oe="radiobutton",pe=this.data.buttonValue),{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:pe,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:oe}}get fallbackFontDict(){const oe=new v.Dict;return oe.set("BaseFont",v.Name.get("ZapfDingbats")),oe.set("Type",v.Name.get("FallbackType")),oe.set("Subtype",v.Name.get("FallbackType")),oe.set("Encoding",v.Name.get("ZapfDingbatsEncoding")),(0,n.shadow)(this,"fallbackFontDict",oe)}}class X extends V{constructor(oe){super(oe),this.data.options=[];const pe=(0,c.getInheritableProperty)({dict:oe.dict,key:"Opt"});if(Array.isArray(pe)){const xe=oe.xref;for(let Ne=0,ke=pe.length;Ne0?this.data.fieldValue[0]:null;return{id:this.data.id,value:pe,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:oe}}async _getAppearance(oe,pe,xe){if(this.data.combo)return super._getAppearance(oe,pe,xe);if(!xe)return null;const Ne=xe.get(this.data.id);if(!Ne)return null;const ke=Ne.rotation;let De=Ne.value;if(ke===void 0&&De===void 0)return null;De===void 0?De=this.data.fieldValue:Array.isArray(De)||(De=[De]);const Fe=2,Pe=Fe;let qe=this.data.rect[3]-this.data.rect[1],Le=this.data.rect[2]-this.data.rect[0];(ke===90||ke===270)&&([Le,qe]=[qe,Le]);const Oe=this.data.options.length,Ee=[];for(let je=0;jeJe&&(Je=at,nt=Ke)}[Ve,$e]=this._computeFontSize(je,Le-2*Pe,nt,Ae,-1)}const Ue=$e*n.LINE_FACTOR,He=(Ue-$e)/2,Qe=Math.floor(qe/Ue);let Ze;if(Ee.length===1){const je=Ee[0],Je=je%Qe;Ze=je-Je}else Ze=Ee.length?Ee[0]:0;const et=Math.min(Ze+Qe+1,Oe),tt=["/Tx BMC q",`1 1 ${Le} ${qe} re W n`];if(Ee.length){tt.push("0.600006 0.756866 0.854904 rg");for(const je of Ee)Ze<=je&&jeZe&&(Ke=Ze/Je);let at=1;const ot=n.LINE_FACTOR*Pe,Xe=n.LINE_DESCENT_FACTOR*Pe,ze=ot*tt.length;ze>et&&(at=et/ze);const Ye=Math.min(Ke,at),st=Pe*Ye,_t=["q",`0 0 ${(0,c.numberToString)(Ze)} ${(0,c.numberToString)(et)} re W n`,"BT",`1 0 0 1 0 ${(0,c.numberToString)(et+Xe)} Tm 0 Tc ${(0,R.getPdfColor)(Fe,!0)}`,`/Helv ${(0,c.numberToString)(st)} Tf`],ft=(0,c.numberToString)(ot);for(const mt of nt)_t.push(`0 -${ft} Td (${(0,n.escapeString)(mt)}) Tj`);_t.push("ET","Q");const Ct=_t.join(` `),ut=new v.Dict(pe);if(ut.set("FormType",1),ut.set("Subtype",v.Name.get("Form")),ut.set("Type",v.Name.get("XObject")),ut.set("BBox",[0,0,Ze,et]),ut.set("Length",Ct.length),ut.set("Resources",Ee),Le){const mt=V._getRotationMatrix(Le,Ze,et);ut.set("Matrix",mt)}const rt=new y.StringStream(Ct);return rt.dict=ut,rt}}class Te extends Y{constructor(oe){super(oe);const{dict:pe}=oe;this.data.annotationType=n.AnnotationType.LINE;const xe=pe.getArray("L");if(this.data.lineCoordinates=n.Util.normalizeRect(xe),this.setLineEndings(pe.getArray("LE")),this.data.lineEndings=this.lineEndings,!this.appearance){const Ne=this.color?Array.from(this.color).map(Ee=>Ee/255):[0,0,0],ke=pe.get("CA");let De=null,Fe=pe.getArray("IC");Fe&&(Fe=F(Fe,null),De=Fe?Array.from(Fe).map(Ee=>Ee/255):null);const Pe=De?ke:null,qe=this.borderStyle.width||1,Le=2*qe,Oe=[this.data.lineCoordinates[0]-Le,this.data.lineCoordinates[1]-Le,this.data.lineCoordinates[2]+Le,this.data.lineCoordinates[3]+Le];n.Util.intersect(this.rectangle,Oe)||(this.rectangle=Oe),this._setDefaultAppearance({xref:oe.xref,extra:`${qe} w`,strokeColor:Ne,fillColor:De,strokeAlpha:ke,fillAlpha:Pe,pointsCallback:(Ee,Ae)=>(Ee.push(`${xe[0]} ${xe[1]} m`,`${xe[2]} ${xe[3]} l`,"S"),[Ae[0].x-qe,Ae[1].x+qe,Ae[3].y-qe,Ae[1].y+qe])})}}}class me extends Y{constructor(oe){if(super(oe),this.data.annotationType=n.AnnotationType.SQUARE,!this.appearance){const pe=this.color?Array.from(this.color).map(Fe=>Fe/255):[0,0,0],xe=oe.dict.get("CA");let Ne=null,ke=oe.dict.getArray("IC");ke&&(ke=F(ke,null),Ne=ke?Array.from(ke).map(Fe=>Fe/255):null);const De=Ne?xe:null;if(this.borderStyle.width===0&&!Ne)return;this._setDefaultAppearance({xref:oe.xref,extra:`${this.borderStyle.width} w`,strokeColor:pe,fillColor:Ne,strokeAlpha:xe,fillAlpha:De,pointsCallback:(Fe,Pe)=>{const qe=Pe[2].x+this.borderStyle.width/2,Le=Pe[2].y+this.borderStyle.width/2,Oe=Pe[3].x-Pe[2].x-this.borderStyle.width,Ee=Pe[1].y-Pe[3].y-this.borderStyle.width;return Fe.push(`${qe} ${Le} ${Oe} ${Ee} re`),Ne?Fe.push("B"):Fe.push("S"),[Pe[0].x,Pe[1].x,Pe[3].y,Pe[1].y]}})}}}class K extends Y{constructor(oe){if(super(oe),this.data.annotationType=n.AnnotationType.CIRCLE,!this.appearance){const pe=this.color?Array.from(this.color).map(Pe=>Pe/255):[0,0,0],xe=oe.dict.get("CA");let Ne=null,ke=oe.dict.getArray("IC");ke&&(ke=F(ke,null),Ne=ke?Array.from(ke).map(Pe=>Pe/255):null);const De=Ne?xe:null;if(this.borderStyle.width===0&&!Ne)return;const Fe=4/3*Math.tan(Math.PI/(2*4));this._setDefaultAppearance({xref:oe.xref,extra:`${this.borderStyle.width} w`,strokeColor:pe,fillColor:Ne,strokeAlpha:xe,fillAlpha:De,pointsCallback:(Pe,qe)=>{const Le=qe[0].x+this.borderStyle.width/2,Oe=qe[0].y-this.borderStyle.width/2,Ee=qe[3].x-this.borderStyle.width/2,Ae=qe[3].y+this.borderStyle.width/2,Ve=Le+(Ee-Le)/2,$e=Oe+(Ae-Oe)/2,Ue=(Ee-Le)/2*Fe,He=(Ae-Oe)/2*Fe;return Pe.push(`${Ve} ${Ae} m`,`${Ve+Ue} ${Ae} ${Ee} ${$e+He} ${Ee} ${$e} c`,`${Ee} ${$e-He} ${Ve+Ue} ${Oe} ${Ve} ${Oe} c`,`${Ve-Ue} ${Oe} ${Le} ${$e-He} ${Le} ${$e} c`,`${Le} ${$e+He} ${Ve-Ue} ${Ae} ${Ve} ${Ae} c`,"h"),Ne?Pe.push("B"):Pe.push("S"),[qe[0].x,qe[1].x,qe[3].y,qe[1].y]}})}}}class ce extends Y{constructor(oe){super(oe);const{dict:pe}=oe;this.data.annotationType=n.AnnotationType.POLYLINE,this.data.vertices=[],this instanceof de||(this.setLineEndings(pe.getArray("LE")),this.data.lineEndings=this.lineEndings);const xe=pe.getArray("Vertices");if(Array.isArray(xe)){for(let Ne=0,ke=xe.length;Neqe/255):[0,0,0],ke=pe.get("CA"),De=this.borderStyle.width||1,Fe=2*De,Pe=[1/0,1/0,-1/0,-1/0];for(const qe of this.data.vertices)Pe[0]=Math.min(Pe[0],qe.x-Fe),Pe[1]=Math.min(Pe[1],qe.y-Fe),Pe[2]=Math.max(Pe[2],qe.x+Fe),Pe[3]=Math.max(Pe[3],qe.y+Fe);n.Util.intersect(this.rectangle,Pe)||(this.rectangle=Pe),this._setDefaultAppearance({xref:oe.xref,extra:`${De} w`,strokeColor:Ne,strokeAlpha:ke,pointsCallback:(qe,Le)=>{const Oe=this.data.vertices;for(let Ee=0,Ae=Oe.length;Eeqe/255):[0,0,0],ke=oe.dict.get("CA"),De=this.borderStyle.width||1,Fe=2*De,Pe=[1/0,1/0,-1/0,-1/0];for(const qe of this.data.inkLists)for(const Le of qe)Pe[0]=Math.min(Pe[0],Le.x-Fe),Pe[1]=Math.min(Pe[1],Le.y-Fe),Pe[2]=Math.max(Pe[2],Le.x+Fe),Pe[3]=Math.max(Pe[3],Le.y+Fe);n.Util.intersect(this.rectangle,Pe)||(this.rectangle=Pe),this._setDefaultAppearance({xref:oe.xref,extra:`${De} w`,strokeColor:Ne,strokeAlpha:ke,pointsCallback:(qe,Le)=>{for(const Oe of this.data.inkLists){for(let Ee=0,Ae=Oe.length;EeOe.points)),qe.set("F",4),qe.set("Border",[0,0,0]),qe.set("Rotate",Pe);const Le=new v.Dict(pe);return qe.set("AP",Le),Ne?Le.set("N",Ne):Le.set("N",ke),qe}static async createNewAppearanceStream(oe,pe,xe){const{color:Ne,rect:ke,rotation:De,paths:Fe,thickness:Pe,opacity:qe}=oe,[Le,Oe,Ee,Ae]=ke;let Ve=Ee-Le,$e=Ae-Oe;De%180!==0&&([Ve,$e]=[$e,Ve]);const Ue=[`${Pe} w 1 J 1 j`,`${(0,R.getPdfColor)(Ne,!1)}`];qe!==1&&Ue.push("/R0 gs");const He=[];for(const{bezier:tt}of Fe){He.length=0,He.push(`${(0,c.numberToString)(tt[0])} ${(0,c.numberToString)(tt[1])} m`);for(let je=2,Je=tt.length;jeDe/255):[1,1,0],ke=oe.dict.get("CA");this._setDefaultAppearance({xref:oe.xref,fillColor:Ne,blendMode:"Multiply",fillAlpha:ke,pointsCallback:(De,Fe)=>(De.push(`${Fe[0].x} ${Fe[0].y} m`,`${Fe[1].x} ${Fe[1].y} l`,`${Fe[3].x} ${Fe[3].y} l`,`${Fe[2].x} ${Fe[2].y} l`,"f"),[Fe[0].x,Fe[1].x,Fe[3].y,Fe[1].y])})}}else this.data.hasPopup=!1}}class we extends Y{constructor(oe){if(super(oe),this.data.annotationType=n.AnnotationType.UNDERLINE,this.data.quadPoints=N(oe.dict,null)){if(!this.appearance){const xe=this.color?Array.from(this.color).map(ke=>ke/255):[0,0,0],Ne=oe.dict.get("CA");this._setDefaultAppearance({xref:oe.xref,extra:"[] 0 d 1 w",strokeColor:xe,strokeAlpha:Ne,pointsCallback:(ke,De)=>(ke.push(`${De[2].x} ${De[2].y} m`,`${De[3].x} ${De[3].y} l`,"S"),[De[0].x,De[1].x,De[3].y,De[1].y])})}}else this.data.hasPopup=!1}}class _e extends Y{constructor(oe){if(super(oe),this.data.annotationType=n.AnnotationType.SQUIGGLY,this.data.quadPoints=N(oe.dict,null)){if(!this.appearance){const xe=this.color?Array.from(this.color).map(ke=>ke/255):[0,0,0],Ne=oe.dict.get("CA");this._setDefaultAppearance({xref:oe.xref,extra:"[] 0 d 1 w",strokeColor:xe,strokeAlpha:Ne,pointsCallback:(ke,De)=>{const Fe=(De[0].y-De[2].y)/6;let Pe=Fe,qe=De[2].x;const Le=De[2].y,Oe=De[3].x;ke.push(`${qe} ${Le+Pe} m`);do qe+=2,Pe=Pe===0?Fe:0,ke.push(`${qe} ${Le+Pe} l`);while(qeke/255):[0,0,0],Ne=oe.dict.get("CA");this._setDefaultAppearance({xref:oe.xref,extra:"[] 0 d 1 w",strokeColor:xe,strokeAlpha:Ne,pointsCallback:(ke,De)=>(ke.push(`${(De[0].x+De[2].x)/2} ${(De[0].y+De[2].y)/2} m`,`${(De[1].x+De[3].x)/2} ${(De[1].y+De[3].y)/2} l`,"S"),[De[0].x,De[1].x,De[3].y,De[1].y])})}}else this.data.hasPopup=!1}}class se extends Y{constructor(oe){super(oe),this.data.annotationType=n.AnnotationType.STAMP}}class Ie extends Y{constructor(oe){super(oe);const pe=new S.FileSpec(oe.dict.get("FS"),oe.xref);this.data.annotationType=n.AnnotationType.FILEATTACHMENT,this.data.file=pe.serializable}}},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.createDefaultAppearance=S,a.getPdfColor=P,a.parseDefaultAppearance=B;var n=g(131),c=g(2),R=g(139),v=g(140),e=g(130),L=g(135);class O extends v.EvaluatorPreprocessor{constructor(l){super(new L.StringStream(l))}parse(){const l={fn:0,args:[]},y={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;l.args.length=0,!!this.read(l);){if(this.savedStatesDepth!==0)continue;const{fn:D,args:M}=l;switch(D|0){case c.OPS.setFont:const[F,N]=M;F instanceof e.Name&&(y.fontName=F.name),typeof N=="number"&&N>0&&(y.fontSize=N);break;case c.OPS.setFillRGBColor:R.ColorSpace.singletons.rgb.getRgbItem(M,0,y.fontColor,0);break;case c.OPS.setFillGray:R.ColorSpace.singletons.gray.getRgbItem(M,0,y.fontColor,0);break;case c.OPS.setFillColorSpace:R.ColorSpace.singletons.cmyk.getRgbItem(M,0,y.fontColor,0);break}}}catch(D){(0,c.warn)(`parseDefaultAppearance - ignoring errors: "${D}".`)}return y}}function B(_){return new O(_).parse()}function P(_,l){if(_[0]===_[1]&&_[1]===_[2]){const y=_[0]/255;return`${(0,n.numberToString)(y)} ${l?"g":"G"}`}return Array.from(_).map(y=>(0,n.numberToString)(y/255)).join(" ")+` ${l?"rg":"RG"}`}function S(_){let{fontSize:l,fontName:y,fontColor:D}=_;return`/${(0,n.escapePDFName)(y)} ${l} Tf ${P(D,!0)}`}},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ColorSpace=void 0;var n=g(2),c=g(130),R=g(132),v=g(131);function e(F,N,G,W,J,Y,V){V=V!==1?0:V;const z=G/J,X=W/Y;let q=0,$;const fe=new Uint16Array(J),Q=G*3;for(let ie=0;iefe&&this.name!=="DeviceGray"&&this.name!=="DeviceRGB"){const ie=H<=8?new Uint8Array(fe):new Uint16Array(fe);for(let me=0;me2&&arguments[2]!==void 0?arguments[2]:null,J=arguments.length>3?arguments[3]:void 0;if(N=G.fetchIfRef(N),N instanceof c.Name)switch(N.name){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"Pattern":return new B(null);default:if(W instanceof c.Dict){const Y=W.get("ColorSpace");if(Y instanceof c.Dict){const V=Y.get(N.name);if(V){if(V instanceof c.Name)return this._parse(V,G,W,J);N=V;break}}}throw new n.FormatError(`Unrecognized ColorSpace: ${N.name}`)}if(Array.isArray(N)){const Y=G.fetchIfRef(N[0]).name;let V,H,z,X,q,$;switch(Y){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"CalGray":return V=G.fetchIfRef(N[1]),X=V.getArray("WhitePoint"),q=V.getArray("BlackPoint"),$=V.get("Gamma"),new y(X,q,$);case"CalRGB":V=G.fetchIfRef(N[1]),X=V.getArray("WhitePoint"),q=V.getArray("BlackPoint"),$=V.getArray("Gamma");const fe=V.getArray("Matrix");return new D(X,q,$,fe);case"ICCBased":const ie=G.fetchIfRef(N[1]).dict;H=ie.get("N");const Te=ie.get("Alternate");if(Te){const ae=this._parse(Te,G,W,J);if(ae.numComps===H)return ae;(0,n.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(H===1)return this.singletons.gray;if(H===3)return this.singletons.rgb;if(H===4)return this.singletons.cmyk;break;case"Pattern":return z=N[1]||null,z&&(z=this._parse(z,G,W,J)),new B(z);case"I":case"Indexed":z=this._parse(N[1],G,W,J);const me=G.fetchIfRef(N[2])+1,K=G.fetchIfRef(N[3]);return new P(z,me,K);case"Separation":case"DeviceN":const ce=G.fetchIfRef(N[1]);H=Array.isArray(ce)?ce.length:1,z=this._parse(N[2],G,W,J);const de=J.create(N[3]);return new O(H,z,de);case"Lab":V=G.fetchIfRef(N[1]),X=V.getArray("WhitePoint"),q=V.getArray("BlackPoint");const Z=V.getArray("Range");return new M(X,q,Z);default:throw new n.FormatError(`Unimplemented ColorSpace object: ${Y}`)}}throw new n.FormatError(`Unrecognized ColorSpace object: ${N}`)}static isDefaultDecode(N,G){if(!Array.isArray(N))return!0;if(G*2!==N.length)return(0,n.warn)("The decode map is not the correct length"),!0;for(let W=0,J=N.length;W=.99554525?1:Q(0,1,(1+.055)*Z**(1/2.4)-.055)}function Q(Z,ae,he){return Math.max(Z,Math.min(ae,he))}function ie(Z){return Z<0?-ie(-Z):Z>8?((Z+16)/116)**3:Z*z}function Te(Z,ae,he){if(Z[0]===0&&Z[1]===0&&Z[2]===0){he[0]=ae[0],he[1]=ae[1],he[2]=ae[2];return}const we=ie(0),_e=we,ye=ie(Z[0]),se=we,Ie=ie(Z[1]),Ce=we,oe=ie(Z[2]),pe=(1-_e)/(1-ye),xe=1-pe,Ne=(1-se)/(1-Ie),ke=1-Ne,De=(1-Ce)/(1-oe),Fe=1-De;he[0]=ae[0]*pe+xe,he[1]=ae[1]*Ne+ke,he[2]=ae[2]*De+Fe}function me(Z,ae,he){if(Z[0]===1&&Z[2]===1){he[0]=ae[0],he[1]=ae[1],he[2]=ae[2];return}const we=he;X(N,ae,we);const _e=Y;q(Z,we,_e),X(G,_e,he)}function K(Z,ae,he){const we=he;X(N,ae,we);const _e=Y;$(Z,we,_e),X(G,_e,he)}function ce(Z,ae,he,we,_e,ye){const se=Q(0,1,ae[he]*ye),Ie=Q(0,1,ae[he+1]*ye),Ce=Q(0,1,ae[he+2]*ye),oe=se===1?1:se**Z.GR,pe=Ie===1?1:Ie**Z.GG,xe=Ce===1?1:Ce**Z.GB,Ne=Z.MXA*oe+Z.MXB*pe+Z.MXC*xe,ke=Z.MYA*oe+Z.MYB*pe+Z.MYC*xe,De=Z.MZA*oe+Z.MZB*pe+Z.MZC*xe,Fe=V;Fe[0]=Ne,Fe[1]=ke,Fe[2]=De;const Pe=H;me(Z.whitePoint,Fe,Pe);const qe=V;Te(Z.blackPoint,Pe,qe);const Le=H;K(J,qe,Le);const Oe=V;X(W,Le,Oe),we[_e]=fe(Oe[0])*255,we[_e+1]=fe(Oe[1])*255,we[_e+2]=fe(Oe[2])*255}class de extends L{constructor(ae,he,we,_e){if(super("CalRGB",3),!ae)throw new n.FormatError("WhitePoint missing - required for color space CalRGB");he=he||new Float32Array(3),we=we||new Float32Array([1,1,1]),_e=_e||new Float32Array([1,0,0,0,1,0,0,0,1]);const ye=ae[0],se=ae[1],Ie=ae[2];this.whitePoint=ae;const Ce=he[0],oe=he[1],pe=he[2];if(this.blackPoint=he,this.GR=we[0],this.GG=we[1],this.GB=we[2],this.MXA=_e[0],this.MYA=_e[1],this.MZA=_e[2],this.MXB=_e[3],this.MYB=_e[4],this.MZB=_e[5],this.MXC=_e[6],this.MYC=_e[7],this.MZC=_e[8],ye<0||Ie<0||se!==1)throw new n.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(Ce<0||oe<0||pe<0)&&((0,n.info)(`Invalid BlackPoint for ${this.name} [${Ce}, ${oe}, ${pe}], falling back to default.`),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&((0,n.info)(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}getRgbItem(ae,he,we,_e){ce(this,ae,he,we,_e,1)}getRgbBuffer(ae,he,we,_e,ye,se,Ie){const Ce=1/((1<=6/29?V=Y**3:V=108/841*(Y-4/29),V}function G(Y,V,H,z){return H+Y*(z-H)/V}function W(Y,V,H,z,X,q){let $=V[H],fe=V[H+1],Q=V[H+2];z!==!1&&($=G($,z,0,100),fe=G(fe,z,Y.amin,Y.amax),Q=G(Q,z,Y.bmin,Y.bmax)),fe>Y.amax?fe=Y.amax:feY.bmax?Q=Y.bmax:Qthis.amax||this.bmin>this.bmax)&&((0,n.info)("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}getRgbItem(V,H,z,X){W(this,V,H,!1,z,X)}getRgbBuffer(V,H,z,X,q,$,fe){const Q=(1<<$)-1;for(let ie=0;ie{Object.defineProperty(a,"__esModule",{value:!0}),a.PartialEvaluator=a.EvaluatorPreprocessor=void 0;var n=g(2),c=g(141),R=g(130),v=g(159),e=g(163),L=g(162),O=g(166),B=g(165),P=g(175),S=g(176),_=g(167),l=g(182),y=g(142),D=g(184),M=g(135),F=g(132),N=g(185),G=g(139),W=g(144),J=g(164),Y=g(131),V=g(170),H=g(186),z=g(187),X=g(188);const q=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),$={TILING:1,SHADING:2},fe=10,Q=Promise.resolve();function ie(we){let _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Array.isArray(we)){for(let ye=0,se=we.length;ye0&&we.args[0].count++}class me{static get TIME_SLOT_DURATION_MS(){return(0,n.shadow)(this,"TIME_SLOT_DURATION_MS",20)}static get CHECK_TIME_EVERY(){return(0,n.shadow)(this,"CHECK_TIME_EVERY",100)}constructor(){this.reset()}check(){return++this.checked0&&arguments[0]!==void 0?arguments[0]:null;const ye=Object.create(this);return ye.options=Object.assign(Object.create(null),this.options,_e),ye}hasBlendModes(_e,ye){if(!(_e instanceof R.Dict)||_e.objId&&ye.has(_e.objId))return!1;const se=new R.RefSet(ye);_e.objId&&se.put(_e.objId);const Ie=[_e],Ce=this.xref;for(;Ie.length;){const oe=Ie.shift(),pe=oe.get("ExtGState");if(pe instanceof R.Dict)for(let Ne of pe.getRawValues()){if(Ne instanceof R.Ref){if(se.has(Ne))continue;try{Ne=Ce.fetch(Ne)}catch(De){se.put(Ne),(0,n.info)(`hasBlendModes - ignoring ExtGState: "${De}".`);continue}}if(!(Ne instanceof R.Dict))continue;Ne.objId&&se.put(Ne.objId);const ke=Ne.get("BM");if(ke instanceof R.Name){if(ke.name!=="Normal")return!0;continue}if(ke!==void 0&&Array.isArray(ke)){for(const De of ke)if(De instanceof R.Name&&De.name!=="Normal")return!0}}const xe=oe.get("XObject");if(xe instanceof R.Dict)for(let Ne of xe.getRawValues()){if(Ne instanceof R.Ref){if(se.has(Ne))continue;try{Ne=Ce.fetch(Ne)}catch(De){se.put(Ne),(0,n.info)(`hasBlendModes - ignoring XObject: "${De}".`);continue}}if(!(Ne instanceof F.BaseStream))continue;Ne.dict.objId&&se.put(Ne.dict.objId);const ke=Ne.dict.get("Resources");ke instanceof R.Dict&&(ke.objId&&se.has(ke.objId)||(Ie.push(ke),ke.objId&&se.put(ke.objId)))}}for(const oe of se)ye.put(oe);return!1}async fetchBuiltInCMap(_e){const ye=this.builtInCMapCache.get(_e);if(ye)return ye;let se;if(this.options.cMapUrl!==null){const Ie=`${this.options.cMapUrl}${_e}.bcmap`,Ce=await fetch(Ie);if(!Ce.ok)throw new Error(`fetchBuiltInCMap: failed to fetch file "${Ie}" with "${Ce.statusText}".`);se={cMapData:new Uint8Array(await Ce.arrayBuffer()),compressionType:n.CMapCompressionType.BINARY}}else se=await this.handler.sendWithPromise("FetchBuiltInCMap",{name:_e});return se.compressionType!==n.CMapCompressionType.NONE&&this.builtInCMapCache.set(_e,se),se}async fetchStandardFontData(_e){const ye=this.standardFontDataCache.get(_e);if(ye)return new M.Stream(ye);if(this.options.useSystemFonts&&_e!=="Symbol"&&_e!=="ZapfDingbats")return null;const se=(0,O.getFontNameToFileMap)(),Ie=se[_e];let Ce;if(this.options.standardFontDataUrl!==null){const oe=`${this.options.standardFontDataUrl}${Ie}`,pe=await fetch(oe);pe.ok?Ce=await pe.arrayBuffer():(0,n.warn)(`fetchStandardFontData: failed to fetch file "${oe}" with "${pe.statusText}".`)}else try{Ce=await this.handler.sendWithPromise("FetchStandardFontData",{filename:Ie})}catch(oe){(0,n.warn)(`fetchStandardFontData: failed to fetch file "${Ie}" with "${oe}".`)}return Ce?(this.standardFontDataCache.set(_e,Ce),new M.Stream(Ce)):null}async buildFormXObject(_e,ye,se,Ie,Ce,oe,pe){const xe=ye.dict,Ne=xe.getArray("Matrix");let ke=xe.getArray("BBox");Array.isArray(ke)&&ke.length===4?ke=n.Util.normalizeRect(ke):ke=null;let De,Fe;xe.has("OC")&&(De=await this.parseMarkedContentProps(xe.get("OC"),_e)),De!==void 0&&Ie.addOp(n.OPS.beginMarkedContentProps,["OC",De]);const Pe=xe.get("Group");if(Pe){Fe={matrix:Ne,bbox:ke,smask:se,isolated:!1,knockout:!1};const Le=Pe.get("S");let Oe=null;if((0,R.isName)(Le,"Transparency")&&(Fe.isolated=Pe.get("I")||!1,Fe.knockout=Pe.get("K")||!1,Pe.has("CS"))){const Ee=Pe.getRaw("CS"),Ae=G.ColorSpace.getCached(Ee,this.xref,pe);Ae?Oe=Ae:Oe=await this.parseColorSpace({cs:Ee,resources:_e,localColorSpaceCache:pe})}se&&se.backdrop&&(Oe=Oe||G.ColorSpace.singletons.rgb,se.backdrop=Oe.getRgb(se.backdrop,0)),Ie.addOp(n.OPS.beginGroup,[Fe])}const qe=Pe?[Ne,null]:[Ne,ke];return Ie.addOp(n.OPS.paintFormXObjectBegin,qe),this.getOperatorList({stream:ye,task:Ce,resources:xe.get("Resources")||_e,operatorList:Ie,initialState:oe}).then(function(){Ie.addOp(n.OPS.paintFormXObjectEnd,[]),Pe&&Ie.addOp(n.OPS.endGroup,[Fe]),De!==void 0&&Ie.addOp(n.OPS.endMarkedContent,[])})}_sendImgData(_e,ye){let se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const Ie=ye?[ye.bitmap||ye.data.buffer]:null;return this.parsingType3Font||se?this.handler.send("commonobj",[_e,"Image",ye],Ie):this.handler.send("obj",[_e,this.pageIndex,"Image",ye],Ie)}async buildPaintImageXObject(_e){let{resources:ye,image:se,isInline:Ie=!1,operatorList:Ce,cacheKey:oe,localImageCache:pe,localColorSpaceCache:xe}=_e;const Ne=se.dict,ke=Ne.objId,De=Ne.get("W","Width"),Fe=Ne.get("H","Height");if(!(De&&typeof De=="number")||!(Fe&&typeof Fe=="number")){(0,n.warn)("Image dimensions are missing, or not numbers.");return}const Pe=this.options.maxImageSize;if(Pe!==-1&&De*Fe>Pe){const Qe="Image exceeded maximum allowed size and was removed.";if(this.options.ignoreErrors){(0,n.warn)(Qe);return}throw new Error(Qe)}let qe;Ne.has("OC")&&(qe=await this.parseMarkedContentProps(Ne.get("OC"),ye));const Le=Ne.get("IM","ImageMask")||!1;let Oe,Ee;if(Le){const Qe=Ne.get("I","Interpolate"),Ze=De+7>>3,et=se.getBytes(Ze*Fe),tt=Ne.getArray("D","Decode");if(this.parsingType3Font){Oe=X.PDFImage.createRawMask({imgArray:et,width:De,height:Fe,imageIsFromDecodeStream:se instanceof W.DecodeStream,inverseDecode:!!tt&&tt[0]>0,interpolate:Qe}),Oe.cached=!!oe,Ee=[Oe],Ce.addImageOps(n.OPS.paintImageMaskXObject,Ee,qe),oe&&pe.set(oe,ke,{fn:n.OPS.paintImageMaskXObject,args:Ee,optionalContent:qe});return}if(Oe=X.PDFImage.createMask({imgArray:et,width:De,height:Fe,imageIsFromDecodeStream:se instanceof W.DecodeStream,inverseDecode:!!tt&&tt[0]>0,interpolate:Qe}),Oe.isSingleOpaquePixel){Ce.addImageOps(n.OPS.paintSolidColorImageMask,[],qe),oe&&pe.set(oe,ke,{fn:n.OPS.paintSolidColorImageMask,args:[],optionalContent:qe});return}const je=`mask_${this.idFactory.createObjId()}`;Ce.addDependency(je),this._sendImgData(je,Oe),Ee=[{data:je,width:Oe.width,height:Oe.height,interpolate:Oe.interpolate,count:1}],Ce.addImageOps(n.OPS.paintImageMaskXObject,Ee,qe),oe&&pe.set(oe,ke,{fn:n.OPS.paintImageMaskXObject,args:Ee,optionalContent:qe});return}const Ae=Ne.get("SM","SMask")||!1,Ve=Ne.get("Mask")||!1,$e=200;if(Ie&&!Ae&&!Ve&&De+Fe<$e){Oe=new X.PDFImage({xref:this.xref,res:ye,image:se,isInline:Ie,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:xe}).createImageData(!0),Ce.addImageOps(n.OPS.paintInlineImageXObject,[Oe],qe);return}let Ue=`img_${this.idFactory.createObjId()}`,He=!1;this.parsingType3Font?Ue=`${this.idFactory.getDocId()}_type3_${Ue}`:ke&&(He=this.globalImageCache.shouldCache(ke,this.pageIndex),He&&(Ue=`${this.idFactory.getDocId()}_${Ue}`)),Ce.addDependency(Ue),Ee=[Ue,De,Fe],X.PDFImage.buildImage({xref:this.xref,res:ye,image:se,isInline:Ie,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:xe}).then(Qe=>(Oe=Qe.createImageData(!1),oe&&ke&&He&&this.globalImageCache.addByteSize(ke,Oe.data.length),this._sendImgData(Ue,Oe,He))).catch(Qe=>((0,n.warn)(`Unable to decode image "${Ue}": "${Qe}".`),this._sendImgData(Ue,null,He))),Ce.addImageOps(n.OPS.paintImageXObject,Ee,qe),oe&&(pe.set(oe,ke,{fn:n.OPS.paintImageXObject,args:Ee,optionalContent:qe}),ke&&((0,n.assert)(!Ie,"Cannot cache an inline image globally."),this.globalImageCache.addPageIndex(ke,this.pageIndex),He&&this.globalImageCache.setData(ke,{objId:Ue,fn:n.OPS.paintImageXObject,args:Ee,optionalContent:qe,byteSize:0})))}handleSMask(_e,ye,se,Ie,Ce,oe){const pe=_e.get("G"),xe={subtype:_e.get("S").name,backdrop:_e.get("BC")},Ne=_e.get("TR");if((0,l.isPDFFunction)(Ne)){const ke=this._pdfFunctionFactory.create(Ne),De=new Uint8Array(256),Fe=new Float32Array(1);for(let Pe=0;Pe<256;Pe++)Fe[0]=Pe/255,ke(Fe,0,Fe,0),De[Pe]=Fe[0]*255|0;xe.transferMap=De}return this.buildFormXObject(ye,pe,xe,se,Ie,Ce.state.clone(),oe)}handleTransferFunction(_e){let ye;if(Array.isArray(_e))ye=_e;else if((0,l.isPDFFunction)(_e))ye=[_e];else return null;const se=[];let Ie=0,Ce=0;for(const oe of ye){const pe=this.xref.fetchIfRef(oe);if(Ie++,(0,R.isName)(pe,"Identity")){se.push(null);continue}else if(!(0,l.isPDFFunction)(pe))return null;const xe=this._pdfFunctionFactory.create(pe),Ne=new Uint8Array(256),ke=new Float32Array(1);for(let De=0;De<256;De++)ke[0]=De/255,xe(ke,0,ke,0),Ne[De]=ke[0]*255|0;se.push(Ne),Ce++}return!(Ie===1||Ie===4)||Ce===0?null:se}handleTilingType(_e,ye,se,Ie,Ce,oe,pe,xe){const Ne=new z.OperatorList,ke=R.Dict.merge({xref:this.xref,dictArray:[Ce.get("Resources"),se]});return this.getOperatorList({stream:Ie,task:pe,resources:ke,operatorList:Ne}).then(function(){const De=Ne.getIR(),Fe=(0,P.getTilingPatternIR)(De,Ce,ye);oe.addDependencies(Ne.dependencies),oe.addOp(_e,Fe),Ce.objId&&xe.set(null,Ce.objId,{operatorListIR:De,dict:Ce})}).catch(De=>{if(!(De instanceof n.AbortException)){if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorTilingPattern}),(0,n.warn)(`handleTilingType - ignoring pattern: "${De}".`);return}throw De}})}handleSetFont(_e,ye,se,Ie,Ce,oe){let pe=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null,xe=arguments.length>7&&arguments[7]!==void 0?arguments[7]:null;const Ne=ye&&ye[0]instanceof R.Name?ye[0].name:null;return this.loadFont(Ne,se,_e,pe,xe).then(ke=>ke.font.isType3Font?ke.loadType3Data(this,_e,Ce).then(function(){return Ie.addDependencies(ke.type3Dependencies),ke}).catch(De=>(this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorFontLoadType3}),new ce({loadedName:"g_font_error",font:new v.ErrorFont(`Type3 font load error: ${De}`),dict:ke.font,evaluatorOptions:this.options}))):ke).then(ke=>(oe.font=ke.font,ke.send(this.handler),ke.loadedName))}handleText(_e,ye){const se=ye.font,Ie=se.charsToGlyphs(_e);return se.data&&(ye.textRenderingMode&n.TextRenderingMode.ADD_TO_PATH_FLAG||ye.fillColorSpace.name==="Pattern"||se.disableFontFace||this.options.disableFontFace)&&K.buildFontPaths(se,Ie,this.handler,this.options),Ie}ensureStateFont(_e){if(_e.font)return;const ye=new n.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorFontState}),(0,n.warn)(`ensureStateFont: "${ye}".`);return}throw ye}async setGState(_e){let{resources:ye,gState:se,operatorList:Ie,cacheKey:Ce,task:oe,stateManager:pe,localGStateCache:xe,localColorSpaceCache:Ne}=_e;const ke=se.objId;let De=!0;const Fe=[],Pe=se.getKeys();let qe=Promise.resolve();for(let Le=0,Oe=Pe.length;Lethis.handleSetFont(ye,null,Ae[0],Ie,oe,pe.state).then(function($e){Ie.addDependency($e),Fe.push([Ee,[$e,Ae[1]]])}));break;case"BM":Fe.push([Ee,ie(Ae)]);break;case"SMask":if((0,R.isName)(Ae,"None")){Fe.push([Ee,!1]);break}Ae instanceof R.Dict?(De=!1,qe=qe.then(()=>this.handleSMask(Ae,ye,Ie,oe,pe,Ne)),Fe.push([Ee,!0])):(0,n.warn)("Unsupported SMask type");break;case"TR":const Ve=this.handleTransferFunction(Ae);Fe.push([Ee,Ve]);break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,n.info)("graphic state operator "+Ee);break;default:(0,n.info)("Unknown graphic state operator "+Ee);break}}return qe.then(function(){Fe.length>0&&Ie.addOp(n.OPS.setGState,[Fe]),De&&xe.set(Ce,ke,Fe)})}loadFont(_e,ye,se){let Ie=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,Ce=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;const oe=async()=>new ce({loadedName:"g_font_error",font:new v.ErrorFont(`Font "${_e}" is not available.`),dict:ye,evaluatorOptions:this.options}),pe=this.xref;let xe;if(ye)ye instanceof R.Ref&&(xe=ye);else{const Le=se.get("Font");Le&&(xe=Le.getRaw(_e))}if(!xe){const Le=`Font "${_e||ye&&ye.toString()}" is not available`;if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,n.warn)(`${Le}.`),oe();this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorFontMissing}),(0,n.warn)(`${Le} -- attempting to fallback to a default font.`),Ie?xe=Ie:xe=K.fallbackFontDict}if(this.parsingType3Font&&this.type3FontRefs.has(xe))return oe();if(this.fontCache.has(xe))return this.fontCache.get(xe);if(ye=pe.fetchIfRef(xe),!(ye instanceof R.Dict))return oe();if(ye.cacheKey&&this.fontCache.has(ye.cacheKey))return this.fontCache.get(ye.cacheKey);const Ne=(0,n.createPromiseCapability)();let ke;try{ke=this.preEvaluateFont(ye),ke.cssFontInfo=Ce}catch(Le){return(0,n.warn)(`loadFont - preEvaluateFont failed: "${Le}".`),oe()}const{descriptor:De,hash:Fe}=ke,Pe=xe instanceof R.Ref;let qe;if(Pe&&(qe=`f${xe.toString()}`),Fe&&De instanceof R.Dict){De.fontAliases||(De.fontAliases=Object.create(null));const Le=De.fontAliases;if(Le[Fe]){const Oe=Le[Fe].aliasRef;if(Pe&&Oe&&this.fontCache.has(Oe))return this.fontCache.putAlias(xe,Oe),this.fontCache.get(xe)}else Le[Fe]={fontID:this.idFactory.createFontId()};Pe&&(Le[Fe].aliasRef=xe),qe=Le[Fe].fontID}return Pe?this.fontCache.put(xe,Ne.promise):(qe||(qe=this.idFactory.createFontId()),ye.cacheKey=`cacheKey_${qe}`,this.fontCache.put(ye.cacheKey,Ne.promise)),(0,n.assert)(qe&&qe.startsWith("f"),'The "fontID" must be (correctly) defined.'),ye.loadedName=`${this.idFactory.getDocId()}_${qe}`,this.translateFont(ke).then(Le=>{Le.fontType!==void 0&&pe.stats.addFontType(Le.fontType),Ne.resolve(new ce({loadedName:ye.loadedName,font:Le,dict:ye,evaluatorOptions:this.options}))}).catch(Le=>{this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorFontTranslate}),(0,n.warn)(`loadFont - translateFont failed: "${Le}".`);try{const Oe=De&&De.get("FontFile3"),Ee=Oe&&Oe.get("Subtype"),Ae=(0,e.getFontType)(ke.type,Ee&&Ee.name);Ae!==void 0&&pe.stats.addFontType(Ae)}catch{}Ne.resolve(new ce({loadedName:ye.loadedName,font:new v.ErrorFont(Le instanceof Error?Le.message:Le),dict:ye,evaluatorOptions:this.options}))}),Ne.promise}buildPath(_e,ye,se){let Ie=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const Ce=_e.length-1;se||(se=[]);let oe;if(Ce<0||_e.fnArray[Ce]!==n.OPS.constructPath)Ie&&((0,n.warn)(`Encountered path operator "${ye}" inside of a text object.`),_e.addOp(n.OPS.save,null)),oe=[1/0,-1/0,1/0,-1/0],_e.addOp(n.OPS.constructPath,[[ye],se,oe]),Ie&&_e.addOp(n.OPS.restore,null);else{const pe=_e.argsArray[Ce];pe[0].push(ye),Array.prototype.push.apply(pe[1],se),oe=pe[2]}switch(ye){case n.OPS.rectangle:oe[0]=Math.min(oe[0],se[0],se[0]+se[2]),oe[1]=Math.max(oe[1],se[0],se[0]+se[2]),oe[2]=Math.min(oe[2],se[1],se[1]+se[3]),oe[3]=Math.max(oe[3],se[1],se[1]+se[3]);break;case n.OPS.moveTo:case n.OPS.lineTo:oe[0]=Math.min(oe[0],se[0]),oe[1]=Math.max(oe[1],se[0]),oe[2]=Math.min(oe[2],se[1]),oe[3]=Math.max(oe[3],se[1]);break}}parseColorSpace(_e){let{cs:ye,resources:se,localColorSpaceCache:Ie}=_e;return G.ColorSpace.parseAsync({cs:ye,xref:this.xref,resources:se,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:Ie}).catch(Ce=>{if(Ce instanceof n.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorColorSpace}),(0,n.warn)(`parseColorSpace - ignoring ColorSpace: "${Ce}".`),null;throw Ce})}parseShading(_e){let{shading:ye,resources:se,localColorSpaceCache:Ie,localShadingPatternCache:Ce}=_e,oe=Ce.get(ye);if(!oe){var pe=P.Pattern.parseShading(ye,this.xref,se,this.handler,this._pdfFunctionFactory,Ie);const xe=pe.getIR();oe=`pattern_${this.idFactory.createObjId()}`,Ce.set(ye,oe),this.handler.send("obj",[oe,this.pageIndex,"Pattern",xe])}return oe}handleColorN(_e,ye,se,Ie,Ce,oe,pe,xe,Ne,ke){const De=se.pop();if(De instanceof R.Name){const Fe=Ce.getRaw(De.name),Pe=Fe instanceof R.Ref&&Ne.getByRef(Fe);if(Pe)try{const Le=Ie.base?Ie.base.getRgb(se,0):null,Oe=(0,P.getTilingPatternIR)(Pe.operatorListIR,Pe.dict,Le);_e.addOp(ye,Oe);return}catch{}const qe=this.xref.fetchIfRef(Fe);if(qe){const Le=qe instanceof F.BaseStream?qe.dict:qe,Oe=Le.get("PatternType");if(Oe===$.TILING){const Ee=Ie.base?Ie.base.getRgb(se,0):null;return this.handleTilingType(ye,Ee,oe,qe,Le,_e,pe,Ne)}else if(Oe===$.SHADING){const Ee=Le.get("Shading"),Ae=Le.getArray("Matrix"),Ve=this.parseShading({shading:Ee,resources:oe,localColorSpaceCache:xe,localShadingPatternCache:ke});_e.addOp(ye,["Shading",Ve,Ae]);return}throw new n.FormatError(`Unknown PatternType: ${Oe}`)}}throw new n.FormatError(`Unknown PatternName: ${De}`)}_parseVisibilityExpression(_e,ye,se){if(++ye>10){(0,n.warn)("Visibility expression is too deeply nested");return}const Ce=_e.length,oe=this.xref.fetchIfRef(_e[0]);if(Ce<2||!(oe instanceof R.Name)){(0,n.warn)("Invalid visibility expression");return}switch(oe.name){case"And":case"Or":case"Not":se.push(oe.name);break;default:(0,n.warn)(`Invalid operator ${oe.name} in visibility expression`);return}for(let pe=1;pe0)return{type:"OCMD",expression:pe}}const oe=se.get("OCGs");if(Array.isArray(oe)||oe instanceof R.Dict){const pe=[];if(Array.isArray(oe))for(const xe of oe)pe.push(xe.toString());else pe.push(oe.objId);return{type:Ie,ids:pe,policy:se.get("P")instanceof R.Name?se.get("P").name:null,expression:null}}else if(oe instanceof R.Ref)return{type:Ie,id:oe.toString()}}return null}getOperatorList(_e){let{stream:ye,task:se,resources:Ie,operatorList:Ce,initialState:oe=null,fallbackFontDict:pe=null}=_e;if(Ie=Ie||R.Dict.empty,oe=oe||new ae,!Ce)throw new Error('getOperatorList: missing "operatorList" parameter');const xe=this,Ne=this.xref;let ke=!1;const De=new D.LocalImageCache,Fe=new D.LocalColorSpaceCache,Pe=new D.LocalGStateCache,qe=new D.LocalTilingPatternCache,Le=new Map,Oe=Ie.get("XObject")||R.Dict.empty,Ee=Ie.get("Pattern")||R.Dict.empty,Ae=new de(oe),Ve=new he(ye,Ne,Ae),$e=new me;function Ue(He){for(let Qe=0,Ze=Ve.savedStatesDepth;Qe0&&Ce.addOp(n.OPS.setGState,[dt]),rt=null;continue}}et(new Promise(function(dt,Nt){if(!ot)throw new n.FormatError("GState must be referred to by name.");const kt=Ie.get("ExtGState");if(!(kt instanceof R.Dict))throw new n.FormatError("ExtGState should be a dictionary.");const Ut=kt.get(at);if(!(Ut instanceof R.Dict))throw new n.FormatError("GState should be a dictionary.");xe.setGState({resources:Ie,gState:Ut,operatorList:Ce,cacheKey:at,task:se,stateManager:Ae,localGStateCache:Pe,localColorSpaceCache:Fe}).then(dt,Nt)}).catch(function(dt){if(!(dt instanceof n.AbortException)){if(xe.options.ignoreErrors){xe.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorExtGState}),(0,n.warn)(`getOperatorList - ignoring ExtGState: "${dt}".`);return}throw dt}}));return;case n.OPS.moveTo:case n.OPS.lineTo:case n.OPS.curveTo:case n.OPS.curveTo2:case n.OPS.curveTo3:case n.OPS.closePath:case n.OPS.rectangle:xe.buildPath(Ce,mt,rt,ke);continue;case n.OPS.markPoint:case n.OPS.markPointProps:case n.OPS.beginCompat:case n.OPS.endCompat:continue;case n.OPS.beginMarkedContentProps:if(!(rt[0]instanceof R.Name)){(0,n.warn)(`Expected name for beginMarkedContentProps arg0=${rt[0]}`);continue}if(rt[0].name==="OC"){et(xe.parseMarkedContentProps(rt[1],Ie).then(dt=>{Ce.addOp(n.OPS.beginMarkedContentProps,["OC",dt])}).catch(dt=>{if(!(dt instanceof n.AbortException)){if(xe.options.ignoreErrors){xe.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorMarkedContent}),(0,n.warn)(`getOperatorList - ignoring beginMarkedContentProps: "${dt}".`);return}throw dt}}));return}rt=[rt[0].name,rt[1]instanceof R.Dict?rt[1].get("MCID"):null];break;case n.OPS.beginMarkedContent:case n.OPS.endMarkedContent:default:if(rt!==null){for(Je=0,nt=rt.length;Je{if(!(He instanceof n.AbortException)){if(this.options.ignoreErrors){this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorOperatorList}),(0,n.warn)(`getOperatorList - ignoring errors during "${se.name}" task: "${He}".`),Ue();return}throw He}})}getTextContent(_e){let{stream:ye,task:se,resources:Ie,stateManager:Ce=null,combineTextItems:oe=!1,includeMarkedContent:pe=!1,sink:xe,seenStyles:Ne=new Set,viewBox:ke}=_e;Ie=Ie||R.Dict.empty,Ce=Ce||new de(new Z);const De=(0,B.getNormalizedUnicodes)(),Fe={items:[],styles:Object.create(null)},Pe={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},qe=[" "," "];let Le=0;function Oe(dt){const Nt=(Le+1)%2,kt=qe[Le]!==" "&&qe[Nt]===" ";return qe[Le]=dt,Le=Nt,kt}function Ee(){qe[0]=qe[1]=" ",Le=0}const Ae=.1,Ve=.03,$e=-.2,Ue=.1,He=.6,Qe=this,Ze=this.xref,et=[];let tt=null;const je=new D.LocalImageCache,Je=new D.LocalGStateCache,nt=new he(ye,Ze,Ce);let Ke;function at(){const dt=Ke.font,Nt=[Ke.fontSize*Ke.textHScale,0,0,Ke.fontSize,0,Ke.textRise];if(dt.isType3Font&&(Ke.fontSize<=1||dt.isCharBBox)&&!(0,n.isArrayEqual)(Ke.fontMatrix,n.FONT_IDENTITY_MATRIX)){const kt=dt.bbox[3]-dt.bbox[1];kt>0&&(Nt[3]*=kt*Ke.fontMatrix[3])}return n.Util.transform(Ke.ctm,n.Util.transform(Ke.textMatrix,Nt))}function ot(){if(Pe.initialized)return Pe;const dt=Ke.font,Nt=dt.loadedName;Ne.has(Nt)||(Ne.add(Nt),Fe.styles[Nt]={fontFamily:dt.fallbackName,ascent:dt.ascent,descent:dt.descent,vertical:dt.vertical}),Pe.fontName=Nt;const kt=Pe.transform=at();dt.vertical?(Pe.width=Pe.totalWidth=Math.hypot(kt[0],kt[1]),Pe.height=Pe.totalHeight=0,Pe.vertical=!0):(Pe.width=Pe.totalWidth=0,Pe.height=Pe.totalHeight=Math.hypot(kt[2],kt[3]),Pe.vertical=!1);const Ut=Math.hypot(Ke.textLineMatrix[0],Ke.textLineMatrix[1]),Ht=Math.hypot(Ke.ctm[0],Ke.ctm[1]);return Pe.textAdvanceScale=Ht*Ut,Pe.trackingSpaceMin=Ke.fontSize*Ae,Pe.notASpace=Ke.fontSize*Ve,Pe.negativeSpaceMax=Ke.fontSize*$e,Pe.spaceInFlowMin=Ke.fontSize*Ue,Pe.spaceInFlowMax=Ke.fontSize*He,Pe.hasEOL=!1,Pe.initialized=!0,Pe}function Xe(){if(!Pe.initialized)return;const dt=Math.hypot(Ke.textLineMatrix[0],Ke.textLineMatrix[1]),kt=Math.hypot(Ke.ctm[0],Ke.ctm[1])*dt;kt!==Pe.textAdvanceScale&&(Pe.vertical?(Pe.totalHeight+=Pe.height*Pe.textAdvanceScale,Pe.height=0):(Pe.totalWidth+=Pe.width*Pe.textAdvanceScale,Pe.width=0),Pe.textAdvanceScale=kt)}function ze(dt){const Nt=dt.str.join(""),kt=(0,N.bidi)(Nt,-1,dt.vertical);return{str:kt.str,dir:kt.dir,width:Math.abs(dt.totalWidth),height:Math.abs(dt.totalHeight),transform:dt.transform,fontName:dt.fontName,hasEOL:dt.hasEOL}}function Ye(dt,Nt){return Qe.loadFont(dt,Nt,Ie).then(function(kt){return kt.font.isType3Font?kt.loadType3Data(Qe,Ie,se).catch(function(){}).then(function(){return kt}):kt}).then(function(kt){Ke.font=kt.font,Ke.fontMatrix=kt.font.fontMatrix||n.FONT_IDENTITY_MATRIX})}function st(dt,Nt,kt){const Ut=Math.hypot(kt[0],kt[1]);return[(kt[0]*dt+kt[1]*Nt)/Ut,(kt[2]*dt+kt[3]*Nt)/Ut]}function _t(){const dt=at();let Nt=dt[4],kt=dt[5];const Ut=Nt-ke[0],Ht=kt-ke[1];if(Ut<0||Ut>ke[2]||Ht<0||Ht>ke[3])return!1;if(!oe||!Ke.font||!Pe.prevTransform)return!0;let Kt=Pe.prevTransform[4],qt=Pe.prevTransform[5];if(Kt===Nt&&qt===kt)return!0;let pn=-1;switch(dt[0]&&dt[1]===0&&dt[2]===0?pn=dt[0]>0?0:180:dt[1]&&dt[0]===0&&dt[3]===0&&(pn=dt[1]>0?90:270),pn){case 0:break;case 90:[Nt,kt]=[kt,Nt],[Kt,qt]=[qt,Kt];break;case 180:[Nt,kt,Kt,qt]=[-Nt,-kt,-Kt,-qt];break;case 270:[Nt,kt]=[-kt,-Nt],[Kt,qt]=[-qt,-Kt];break;default:[Nt,kt]=st(Nt,kt,dt),[Kt,qt]=st(Kt,qt,Pe.prevTransform)}if(Ke.font.vertical){const At=(qt-kt)/Pe.textAdvanceScale,Pt=Nt-Kt,$t=Math.sign(Pe.height);return At<$t*Pe.negativeSpaceMax?Math.abs(Pt)>.5*Pe.width?(Ct(),!0):(Ee(),rt(),!0):Math.abs(Pt)>Pe.width?(Ct(),!0):(At<=$t*Pe.notASpace&&Ee(),At<=$t*Pe.trackingSpaceMin?Pe.height+=At:ut(At,Pe.prevTransform,$t)||(Pe.str.length===0?(Ee(),Fe.items.push({str:" ",dir:"ltr",width:0,height:Math.abs(At),transform:Pe.prevTransform,fontName:Pe.fontName,hasEOL:!1})):Pe.height+=At),!0)}const vt=(Nt-Kt)/Pe.textAdvanceScale,xt=kt-qt,Rt=Math.sign(Pe.width);return vt.5*Pe.height?(Ct(),!0):(Ee(),rt(),!0):Math.abs(xt)>Pe.height?(Ct(),!0):(vt<=Rt*Pe.notASpace&&Ee(),vt<=Rt*Pe.trackingSpaceMin?Pe.width+=vt:ut(vt,Pe.prevTransform,Rt)||(Pe.str.length===0?(Ee(),Fe.items.push({str:" ",dir:"ltr",width:Math.abs(vt),height:0,transform:Pe.prevTransform,fontName:Pe.fontName,hasEOL:!1})):Pe.width+=vt),!0)}function ft(dt){let{chars:Nt,extraSpacing:kt}=dt;const Ut=Ke.font;if(!Nt){const qt=Ke.charSpacing+kt;qt&&(Ut.vertical?Ke.translateTextMatrix(0,-qt):Ke.translateTextMatrix(qt*Ke.textHScale,0));return}const Ht=Ut.charsToGlyphs(Nt),Kt=Ke.fontMatrix[0]*Ke.fontSize;for(let qt=0,pn=Ht.length;qt0&&arguments[0]!==void 0?arguments[0]:!1;const Nt=Fe.items.length;Nt!==0&&(dt&&Nt0){const Dt=et.join("");et.length=0,ft({chars:Dt,extraSpacing:0})}break;case n.OPS.showText:if(!Ce.state.font){Qe.ensureStateFont(Ce.state);continue}ft({chars:qt[0],extraSpacing:0});break;case n.OPS.nextLineShowText:if(!Ce.state.font){Qe.ensureStateFont(Ce.state);continue}Ke.carriageReturn(),ft({chars:qt[0],extraSpacing:0});break;case n.OPS.nextLineSetSpacingShowText:if(!Ce.state.font){Qe.ensureStateFont(Ce.state);continue}Ke.wordSpacing=qt[0],Ke.charSpacing=qt[1],Ke.carriageReturn(),ft({chars:qt[2],extraSpacing:0});break;case n.OPS.paintXObject:rt(),tt||(tt=Ie.get("XObject")||R.Dict.empty);var xt=qt[0]instanceof R.Name,Rt=qt[0].name;if(xt&&je.getByName(Rt))break;Ut(new Promise(function(Dt,Yt){if(!xt)throw new n.FormatError("XObject must be referred to by name.");let Vt=tt.getRaw(Rt);if(Vt instanceof R.Ref){if(je.getByRef(Vt)){Dt();return}if(Qe.globalImageCache.getData(Vt,Qe.pageIndex)){Dt();return}Vt=Ze.fetch(Vt)}if(!(Vt instanceof F.BaseStream))throw new n.FormatError("XObject should be a stream");const rn=Vt.dict.get("Subtype");if(!(rn instanceof R.Name))throw new n.FormatError("XObject should have a Name subtype");if(rn.name!=="Form"){je.set(Rt,Vt.dict.objId,!0),Dt();return}const en=Ce.state.clone(),Xt=new de(en),ht=Vt.dict.getArray("Matrix");Array.isArray(ht)&&ht.length===6&&Xt.transform(ht),mt();const Et={enqueueInvoked:!1,enqueue(It,wt){this.enqueueInvoked=!0,xe.enqueue(It,wt)},get desiredSize(){return xe.desiredSize},get ready(){return xe.ready}};Qe.getTextContent({stream:Vt,task:se,resources:Vt.dict.get("Resources")||Ie,stateManager:Xt,combineTextItems:oe,includeMarkedContent:pe,sink:Et,seenStyles:Ne,viewBox:ke}).then(function(){Et.enqueueInvoked||je.set(Rt,Vt.dict.objId,!0),Dt()},Yt)}).catch(function(Dt){if(!(Dt instanceof n.AbortException)){if(Qe.options.ignoreErrors){(0,n.warn)(`getTextContent - ignoring XObject: "${Dt}".`);return}throw Dt}}));return;case n.OPS.setGState:if(xt=qt[0]instanceof R.Name,Rt=qt[0].name,xt&&Je.getByName(Rt))break;Ut(new Promise(function(Dt,Yt){if(!xt)throw new n.FormatError("GState must be referred to by name.");const Vt=Ie.get("ExtGState");if(!(Vt instanceof R.Dict))throw new n.FormatError("ExtGState should be a dictionary.");const rn=Vt.get(Rt);if(!(rn instanceof R.Dict))throw new n.FormatError("GState should be a dictionary.");const en=rn.get("Font");if(!en){Je.set(Rt,rn.objId,!0),Dt();return}rt(),Ke.fontName=null,Ke.fontSize=en[1],Ye(null,en[0]).then(Dt,Yt)}).catch(function(Dt){if(!(Dt instanceof n.AbortException)){if(Qe.options.ignoreErrors){(0,n.warn)(`getTextContent - ignoring ExtGState: "${Dt}".`);return}throw Dt}}));return;case n.OPS.beginMarkedContent:rt(),pe&&Fe.items.push({type:"beginMarkedContent",tag:qt[0]instanceof R.Name?qt[0].name:null});break;case n.OPS.beginMarkedContentProps:if(rt(),pe){let Dt=null;qt[1]instanceof R.Dict&&(Dt=qt[1].get("MCID")),Fe.items.push({type:"beginMarkedContentProps",id:Number.isInteger(Dt)?`${Qe.idFactory.getPageObjId()}_mcid${Dt}`:null,tag:qt[0]instanceof R.Name?qt[0].name:null})}break;case n.OPS.endMarkedContent:rt(),pe&&Fe.items.push({type:"endMarkedContent"});break}if(Fe.items.length>=xe.desiredSize){Kt=!0;break}}if(Kt){Ut(Q);return}rt(),mt(),Nt()}).catch(dt=>{if(!(dt instanceof n.AbortException)){if(this.options.ignoreErrors){(0,n.warn)(`getTextContent - ignoring errors during "${se.name}" task: "${dt}".`),rt(),mt();return}throw dt}})}extractDataStructures(_e,ye,se){const Ie=this.xref;let Ce;const oe=this.readToUnicode(se.toUnicode||_e.get("ToUnicode")||ye.get("ToUnicode"));if(se.composite){const ke=_e.get("CIDSystemInfo");ke instanceof R.Dict&&(se.cidSystemInfo={registry:(0,n.stringToPDFString)(ke.get("Registry")),ordering:(0,n.stringToPDFString)(ke.get("Ordering")),supplement:ke.get("Supplement")});try{const De=_e.get("CIDToGIDMap");De instanceof F.BaseStream&&(Ce=De.getBytes())}catch(De){if(!this.options.ignoreErrors)throw De;(0,n.warn)(`extractDataStructures - ignoring CIDToGIDMap data: "${De}".`)}}const pe=[];let xe=null,Ne;if(_e.has("Encoding")){if(Ne=_e.get("Encoding"),Ne instanceof R.Dict){if(xe=Ne.get("BaseEncoding"),xe=xe instanceof R.Name?xe.name:null,Ne.has("Differences")){const ke=Ne.get("Differences");let De=0;for(let Fe=0,Pe=ke.length;Fe0,se.dict=_e,oe.then(ke=>(se.toUnicode=ke,this.buildToUnicode(se))).then(ke=>(se.toUnicode=ke,Ce&&(se.cidToGidMap=this.readCidToGidMap(Ce,ke)),se))}_simpleFontToUnicode(_e){let ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,n.assert)(!_e.composite,"Must be a simple font.");const se=[],Ie=_e.defaultEncoding.slice(),Ce=_e.baseEncodingName,oe=_e.differences;for(const xe in oe){const Ne=oe[xe];Ne!==".notdef"&&(Ie[xe]=Ne)}const pe=(0,J.getGlyphsUnicode)();for(const xe in Ie){let Ne=Ie[xe];if(Ne!==""){if(pe[Ne]===void 0){let ke=0;switch(Ne[0]){case"G":Ne.length===3&&(ke=parseInt(Ne.substring(1),16));break;case"g":Ne.length===5&&(ke=parseInt(Ne.substring(1),16));break;case"C":case"c":if(Ne.length>=3&&Ne.length<=4){const Fe=Ne.substring(1);if(ye){ke=parseInt(Fe,16);break}if(ke=+Fe,Number.isNaN(ke)&&Number.isInteger(parseInt(Fe,16)))return this._simpleFontToUnicode(_e,!0)}break;default:const De=(0,B.getUnicodeForGlyph)(Ne,pe);De!==-1&&(ke=De)}if(ke>0&&ke<=1114111&&Number.isInteger(ke)){if(Ce&&ke===+xe){const De=(0,L.getEncoding)(Ce);if(De&&(Ne=De[xe])){se[xe]=String.fromCharCode(pe[Ne]);continue}}se[xe]=String.fromCodePoint(ke)}continue}se[xe]=String.fromCharCode(pe[Ne])}}return se}async buildToUnicode(_e){if(_e.hasIncludedToUnicodeMap=!!_e.toUnicode&&_e.toUnicode.length>0,_e.hasIncludedToUnicodeMap)return!_e.composite&&_e.hasEncoding&&(_e.fallbackToUnicode=this._simpleFontToUnicode(_e)),_e.toUnicode;if(!_e.composite)return new _.ToUnicodeMap(this._simpleFontToUnicode(_e));if(_e.composite&&(_e.cMap.builtInCMap&&!(_e.cMap instanceof c.IdentityCMap)||_e.cidSystemInfo.registry==="Adobe"&&(_e.cidSystemInfo.ordering==="GB1"||_e.cidSystemInfo.ordering==="CNS1"||_e.cidSystemInfo.ordering==="Japan1"||_e.cidSystemInfo.ordering==="Korea1"))){const{registry:ye,ordering:se}=_e.cidSystemInfo,Ie=R.Name.get(`${ye}-${se}-UCS2`),Ce=await c.CMapFactory.create({encoding:Ie,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),oe=[];return _e.cMap.forEach(function(pe,xe){if(xe>65535)throw new n.FormatError("Max size of CID is 65,535");const Ne=Ce.lookup(xe);Ne&&(oe[pe]=String.fromCharCode((Ne.charCodeAt(0)<<8)+Ne.charCodeAt(1)))}),new _.ToUnicodeMap(oe)}return new _.IdentityToUnicodeMap(_e.firstChar,_e.lastChar)}readToUnicode(_e){return _e?_e instanceof R.Name?c.CMapFactory.create({encoding:_e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then(function(ye){return ye instanceof c.IdentityCMap?new _.IdentityToUnicodeMap(0,65535):new _.ToUnicodeMap(ye.getMap())}):_e instanceof F.BaseStream?c.CMapFactory.create({encoding:_e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then(function(ye){if(ye instanceof c.IdentityCMap)return new _.IdentityToUnicodeMap(0,65535);const se=new Array(ye.length);return ye.forEach(function(Ie,Ce){if(typeof Ce=="number"){se[Ie]=String.fromCodePoint(Ce);return}const oe=[];for(let pe=0;pe{if(ye instanceof n.AbortException)return null;if(this.options.ignoreErrors)return this.handler.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorFontToUnicode}),(0,n.warn)(`readToUnicode - ignoring ToUnicode data: "${ye}".`),null;throw ye}):Promise.resolve(null):Promise.resolve(null)}readCidToGidMap(_e,ye){const se=[];for(let Ie=0,Ce=_e.length;Ie>1;oe===0&&!ye.has(pe)||(se[pe]=oe)}return se}extractWidths(_e,ye,se){const Ie=this.xref;let Ce=[],oe=0;const pe=[];let xe,Ne,ke,De,Fe,Pe,qe,Le;if(se.composite){if(oe=_e.has("DW")?_e.get("DW"):1e3,Le=_e.get("W"),Le)for(Ne=0,ke=Le.length;Ne{if(je){const at=[];let ot=pe;for(let Xe=0,ze=je.length;Xe(this.extractWidths(se,ye,Qe),new v.Font(Pe.name,Le,Qe)))}static buildFontPaths(_e,ye,se,Ie){function Ce(oe){const pe=`${_e.loadedName}_path_${oe}`;try{if(_e.renderer.hasBuiltPath(oe))return;se.send("commonobj",[pe,"FontPath",_e.renderer.getPathJs(oe)])}catch(xe){if(Ie.ignoreErrors){se.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.errorFontBuildPath}),(0,n.warn)(`buildFontPaths - ignoring ${pe} glyph: "${xe}".`);return}throw xe}}for(const oe of ye){Ce(oe.fontChar);const pe=oe.accent;pe&&pe.fontChar&&Ce(pe.fontChar)}}static get fallbackFontDict(){const _e=new R.Dict;return _e.set("BaseFont",R.Name.get("PDFJS-FallbackFont")),_e.set("Type",R.Name.get("FallbackType")),_e.set("Subtype",R.Name.get("FallbackType")),_e.set("Encoding",R.Name.get("WinAnsiEncoding")),(0,n.shadow)(this,"fallbackFontDict",_e)}}a.PartialEvaluator=K;class ce{constructor(_e){let{loadedName:ye,font:se,dict:Ie,evaluatorOptions:Ce}=_e;this.loadedName=ye,this.font=se,this.dict=Ie,this._evaluatorOptions=Ce||q,this.type3Loaded=null,this.type3Dependencies=se.isType3Font?new Set:null,this.sent=!1}send(_e){this.sent||(this.sent=!0,_e.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)]))}fallback(_e){this.font.data&&(this.font.disableFontFace=!0,K.buildFontPaths(this.font,this.font.glyphCacheValues,_e,this._evaluatorOptions))}loadType3Data(_e,ye,se){if(this.type3Loaded)return this.type3Loaded;if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");const Ie=_e.clone({ignoreErrors:!1});Ie.parsingType3Font=!0;const Ce=new R.RefSet(_e.type3FontRefs);this.dict.objId&&!Ce.has(this.dict.objId)&&Ce.put(this.dict.objId),Ie.type3FontRefs=Ce;const oe=this.font,pe=this.type3Dependencies;let xe=Promise.resolve();const Ne=this.dict.get("CharProcs"),ke=this.dict.get("Resources")||ye,De=Object.create(null),Fe=n.Util.normalizeRect(oe.bbox||[0,0,0,0]),Pe=Fe[2]-Fe[0],qe=Fe[3]-Fe[1],Le=Math.hypot(Pe,qe);for(const Oe of Ne.getKeys())xe=xe.then(()=>{const Ee=Ne.get(Oe),Ae=new z.OperatorList;return Ie.getOperatorList({stream:Ee,task:se,resources:ke,operatorList:Ae}).then(()=>{Ae.fnArray[0]===n.OPS.setCharWidthAndBounds&&this._removeType3ColorOperators(Ae,Le),De[Oe]=Ae.getIR();for(const Ve of Ae.dependencies)pe.add(Ve)}).catch(function(Ve){(0,n.warn)(`Type3 font resource "${Oe}" is not available.`);const $e=new z.OperatorList;De[Oe]=$e.getIR()})});return this.type3Loaded=xe.then(()=>{oe.charProcOperatorList=De,this._bbox&&(oe.isCharBBox=!0,oe.bbox=this._bbox)}),this.type3Loaded}_removeType3ColorOperators(_e){let ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN;const se=n.Util.normalizeRect(_e.argsArray[0].slice(2)),Ie=se[2]-se[0],Ce=se[3]-se[1],oe=Math.hypot(Ie,Ce);Ie===0||Ce===0?(_e.fnArray.splice(0,1),_e.argsArray.splice(0,1)):(ye===0||Math.round(oe/ye)>=10)&&(this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]),this._bbox[0]=Math.min(this._bbox[0],se[0]),this._bbox[1]=Math.min(this._bbox[1],se[1]),this._bbox[2]=Math.max(this._bbox[2],se[2]),this._bbox[3]=Math.max(this._bbox[3],se[3]));let pe=0,xe=_e.length;for(;pe0&&arguments[0]!==void 0?arguments[0]:new ae;this.state=_e,this.stateStack=[]}save(){const _e=this.state;this.stateStack.push(this.state),this.state=_e.clone()}restore(){const _e=this.stateStack.pop();_e&&(this.state=_e)}transform(_e){this.state.ctm=n.Util.transform(this.state.ctm,_e)}}class Z{constructor(){this.ctm=new Float32Array(n.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.font=null,this.fontMatrix=n.FONT_IDENTITY_MATRIX,this.textMatrix=n.IDENTITY_MATRIX.slice(),this.textLineMatrix=n.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}setTextMatrix(_e,ye,se,Ie,Ce,oe){const pe=this.textMatrix;pe[0]=_e,pe[1]=ye,pe[2]=se,pe[3]=Ie,pe[4]=Ce,pe[5]=oe}setTextLineMatrix(_e,ye,se,Ie,Ce,oe){const pe=this.textLineMatrix;pe[0]=_e,pe[1]=ye,pe[2]=se,pe[3]=Ie,pe[4]=Ce,pe[5]=oe}translateTextMatrix(_e,ye){const se=this.textMatrix;se[4]=se[0]*_e+se[2]*ye+se[4],se[5]=se[1]*_e+se[3]*ye+se[5]}translateTextLineMatrix(_e,ye){const se=this.textLineMatrix;se[4]=se[0]*_e+se[2]*ye+se[4],se[5]=se[1]*_e+se[3]*ye+se[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}clone(){const _e=Object.create(this);return _e.textMatrix=this.textMatrix.slice(),_e.textLineMatrix=this.textLineMatrix.slice(),_e.fontMatrix=this.fontMatrix.slice(),_e}}class ae{constructor(){this.ctm=new Float32Array(n.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=n.TextRenderingMode.FILL,this.fillColorSpace=G.ColorSpace.singletons.gray,this.strokeColorSpace=G.ColorSpace.singletons.gray}clone(){return Object.create(this)}}class he{static get opMap(){const _e=(0,Y.getLookupTableFactory)(function(ye){ye.w={id:n.OPS.setLineWidth,numArgs:1,variableArgs:!1},ye.J={id:n.OPS.setLineCap,numArgs:1,variableArgs:!1},ye.j={id:n.OPS.setLineJoin,numArgs:1,variableArgs:!1},ye.M={id:n.OPS.setMiterLimit,numArgs:1,variableArgs:!1},ye.d={id:n.OPS.setDash,numArgs:2,variableArgs:!1},ye.ri={id:n.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},ye.i={id:n.OPS.setFlatness,numArgs:1,variableArgs:!1},ye.gs={id:n.OPS.setGState,numArgs:1,variableArgs:!1},ye.q={id:n.OPS.save,numArgs:0,variableArgs:!1},ye.Q={id:n.OPS.restore,numArgs:0,variableArgs:!1},ye.cm={id:n.OPS.transform,numArgs:6,variableArgs:!1},ye.m={id:n.OPS.moveTo,numArgs:2,variableArgs:!1},ye.l={id:n.OPS.lineTo,numArgs:2,variableArgs:!1},ye.c={id:n.OPS.curveTo,numArgs:6,variableArgs:!1},ye.v={id:n.OPS.curveTo2,numArgs:4,variableArgs:!1},ye.y={id:n.OPS.curveTo3,numArgs:4,variableArgs:!1},ye.h={id:n.OPS.closePath,numArgs:0,variableArgs:!1},ye.re={id:n.OPS.rectangle,numArgs:4,variableArgs:!1},ye.S={id:n.OPS.stroke,numArgs:0,variableArgs:!1},ye.s={id:n.OPS.closeStroke,numArgs:0,variableArgs:!1},ye.f={id:n.OPS.fill,numArgs:0,variableArgs:!1},ye.F={id:n.OPS.fill,numArgs:0,variableArgs:!1},ye["f*"]={id:n.OPS.eoFill,numArgs:0,variableArgs:!1},ye.B={id:n.OPS.fillStroke,numArgs:0,variableArgs:!1},ye["B*"]={id:n.OPS.eoFillStroke,numArgs:0,variableArgs:!1},ye.b={id:n.OPS.closeFillStroke,numArgs:0,variableArgs:!1},ye["b*"]={id:n.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},ye.n={id:n.OPS.endPath,numArgs:0,variableArgs:!1},ye.W={id:n.OPS.clip,numArgs:0,variableArgs:!1},ye["W*"]={id:n.OPS.eoClip,numArgs:0,variableArgs:!1},ye.BT={id:n.OPS.beginText,numArgs:0,variableArgs:!1},ye.ET={id:n.OPS.endText,numArgs:0,variableArgs:!1},ye.Tc={id:n.OPS.setCharSpacing,numArgs:1,variableArgs:!1},ye.Tw={id:n.OPS.setWordSpacing,numArgs:1,variableArgs:!1},ye.Tz={id:n.OPS.setHScale,numArgs:1,variableArgs:!1},ye.TL={id:n.OPS.setLeading,numArgs:1,variableArgs:!1},ye.Tf={id:n.OPS.setFont,numArgs:2,variableArgs:!1},ye.Tr={id:n.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},ye.Ts={id:n.OPS.setTextRise,numArgs:1,variableArgs:!1},ye.Td={id:n.OPS.moveText,numArgs:2,variableArgs:!1},ye.TD={id:n.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},ye.Tm={id:n.OPS.setTextMatrix,numArgs:6,variableArgs:!1},ye["T*"]={id:n.OPS.nextLine,numArgs:0,variableArgs:!1},ye.Tj={id:n.OPS.showText,numArgs:1,variableArgs:!1},ye.TJ={id:n.OPS.showSpacedText,numArgs:1,variableArgs:!1},ye["'"]={id:n.OPS.nextLineShowText,numArgs:1,variableArgs:!1},ye['"']={id:n.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},ye.d0={id:n.OPS.setCharWidth,numArgs:2,variableArgs:!1},ye.d1={id:n.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},ye.CS={id:n.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},ye.cs={id:n.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},ye.SC={id:n.OPS.setStrokeColor,numArgs:4,variableArgs:!0},ye.SCN={id:n.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},ye.sc={id:n.OPS.setFillColor,numArgs:4,variableArgs:!0},ye.scn={id:n.OPS.setFillColorN,numArgs:33,variableArgs:!0},ye.G={id:n.OPS.setStrokeGray,numArgs:1,variableArgs:!1},ye.g={id:n.OPS.setFillGray,numArgs:1,variableArgs:!1},ye.RG={id:n.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},ye.rg={id:n.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},ye.K={id:n.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},ye.k={id:n.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},ye.sh={id:n.OPS.shadingFill,numArgs:1,variableArgs:!1},ye.BI={id:n.OPS.beginInlineImage,numArgs:0,variableArgs:!1},ye.ID={id:n.OPS.beginImageData,numArgs:0,variableArgs:!1},ye.EI={id:n.OPS.endInlineImage,numArgs:1,variableArgs:!1},ye.Do={id:n.OPS.paintXObject,numArgs:1,variableArgs:!1},ye.MP={id:n.OPS.markPoint,numArgs:1,variableArgs:!1},ye.DP={id:n.OPS.markPointProps,numArgs:2,variableArgs:!1},ye.BMC={id:n.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},ye.BDC={id:n.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},ye.EMC={id:n.OPS.endMarkedContent,numArgs:0,variableArgs:!1},ye.BX={id:n.OPS.beginCompat,numArgs:0,variableArgs:!1},ye.EX={id:n.OPS.endCompat,numArgs:0,variableArgs:!1},ye.BM=null,ye.BD=null,ye.true=null,ye.fa=null,ye.fal=null,ye.fals=null,ye.false=null,ye.nu=null,ye.nul=null,ye.null=null});return(0,n.shadow)(this,"opMap",_e())}static get MAX_INVALID_PATH_OPS(){return(0,n.shadow)(this,"MAX_INVALID_PATH_OPS",10)}constructor(_e,ye){let se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new de;this.parser=new y.Parser({lexer:new y.Lexer(_e,he.opMap),xref:ye}),this.stateManager=se,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(_e){let ye=_e.args;for(;;){const se=this.parser.getObj();if(se instanceof R.Cmd){const Ie=se.cmd,Ce=he.opMap[Ie];if(!Ce){(0,n.warn)(`Unknown command "${Ie}".`);continue}const oe=Ce.id,pe=Ce.numArgs;let xe=ye!==null?ye.length:0;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=oe>=n.OPS.moveTo&&oe<=n.OPS.endPath,Ce.variableArgs)xe>pe&&(0,n.info)(`Command ${Ie}: expected [0, ${pe}] args, but received ${xe} args.`);else{if(xe!==pe){const Ne=this.nonProcessedArgs;for(;xe>pe;)Ne.push(ye.shift()),xe--;for(;xehe.MAX_INVALID_PATH_OPS)throw new n.FormatError(`Invalid ${Ne}`);(0,n.warn)(`Skipping ${Ne}`),ye!==null&&(ye.length=0);continue}}return this.preprocessCommand(oe,ye),_e.fn=oe,_e.args=ye,!0}if(se===R.EOF)return!1;if(se!==null&&(ye===null&&(ye=[]),ye.push(se),ye.length>33))throw new n.FormatError("Too many arguments")}}preprocessCommand(_e,ye){switch(_e|0){case n.OPS.save:this.stateManager.save();break;case n.OPS.restore:this.stateManager.restore();break;case n.OPS.transform:this.stateManager.transform(ye);break}}}a.EvaluatorPreprocessor=he},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.IdentityCMap=a.CMapFactory=a.CMap=void 0;var n=g(2),c=g(130),R=g(132),v=g(142),e=g(131),L=g(135);const O=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"],B=2**24-1;class P{constructor(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=D}addCodespaceRange(D,M,F){this.codespaceRanges[D-1].push(M,F),this.numCodespaceRanges++}mapCidRange(D,M,F){if(M-D>B)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;D<=M;)this._map[D++]=F++}mapBfRange(D,M,F){if(M-D>B)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");const N=F.length-1;for(;D<=M;){this._map[D++]=F;const G=F.charCodeAt(N)+1;if(G>255){F=F.substring(0,N-1)+String.fromCharCode(F.charCodeAt(N-1)+1)+"\0";continue}F=F.substring(0,N)+String.fromCharCode(G)}}mapBfRangeToArray(D,M,F){if(M-D>B)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");const N=F.length;let G=0;for(;D<=M&&G>>0;const Y=G[W];for(let V=0,H=Y.length;V=z&&N<=X){F.charcode=N,F.length=W+1;return}}}F.charcode=0,F.length=1}getCharCodeLength(D){const M=this.codespaceRanges;for(let F=0,N=M.length;F=Y&&D<=V)return F+1}}return 1}get length(){return this._map.length}get isIdentityCMap(){if(!(this.name==="Identity-H"||this.name==="Identity-V")||this._map.length!==65536)return!1;for(let D=0;D<65536;D++)if(this._map[D]!==D)return!1;return!0}}a.CMap=P;class S extends P{constructor(D,M){super(),this.vertical=D,this.addCodespaceRange(M,0,65535)}mapCidRange(D,M,F){(0,n.unreachable)("should not call mapCidRange")}mapBfRange(D,M,F){(0,n.unreachable)("should not call mapBfRange")}mapBfRangeToArray(D,M,F){(0,n.unreachable)("should not call mapBfRangeToArray")}mapOne(D,M){(0,n.unreachable)("should not call mapCidOne")}lookup(D){return Number.isInteger(D)&&D<=65535?D:void 0}contains(D){return Number.isInteger(D)&&D<=65535}forEach(D){for(let M=0;M<=65535;M++)D(M,M)}charCodeOf(D){return Number.isInteger(D)&&D<=65535?D:-1}getMap(){const D=new Array(65536);for(let M=0;M<=65535;M++)D[M]=M;return D}get length(){return 65536}get isIdentityCMap(){(0,n.unreachable)("should not access .isIdentityCMap")}}a.IdentityCMap=S;const _=function(){function D(V,H){let z=0;for(let X=0;X<=H;X++)z=z<<8|V[X];return z>>>0}function M(V,H){return H===1?String.fromCharCode(V[0],V[1]):H===3?String.fromCharCode(V[0],V[1],V[2],V[3]):String.fromCharCode.apply(null,V.subarray(0,H+1))}function F(V,H,z){let X=0;for(let q=z;q>=0;q--)X+=V[q]+H[q],V[q]=X&255,X>>=8}function N(V,H){let z=1;for(let X=H;X>=0&&z>0;X--)z+=V[X],V[X]=z&255,z>>=8}const G=16,W=19;class J{constructor(H){this.buffer=H,this.pos=0,this.end=H.length,this.tmpBuf=new Uint8Array(W)}readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}readNumber(){let H=0,z;do{const X=this.readByte();if(X<0)throw new n.FormatError("unexpected EOF in bcmap");z=!(X&128),H=H<<7|X&127}while(!z);return H}readSigned(){const H=this.readNumber();return H&1?~(H>>>1):H>>>1}readHex(H,z){H.set(this.buffer.subarray(this.pos,this.pos+z+1)),this.pos+=z+1}readHexNumber(H,z){let X;const q=this.tmpBuf;let $=0;do{const Te=this.readByte();if(Te<0)throw new n.FormatError("unexpected EOF in bcmap");X=!(Te&128),q[$++]=Te&127}while(!X);let fe=z,Q=0,ie=0;for(;fe>=0;){for(;ie<8&&q.length>0;)Q|=q[--$]<>=8,ie-=8}}readHexSigned(H,z){this.readHexNumber(H,z);const X=H[z]&1?255:0;let q=0;for(let $=0;$<=z;$++)q=(q&1)<<8|H[$],H[$]=q>>1^X}readString(){const H=this.readNumber();let z="";for(let X=0;X=0;){const Z=de>>5;if(Z===7){switch(de&31){case 0:q.readString();break;case 1:fe=q.readString();break}continue}const ae=!!(de&16),he=de&15;if(he+1>G)throw new Error("BinaryCMapReader.process: Invalid dataSize.");const we=1,_e=q.readNumber();switch(Z){case 0:q.readHex(Q,he),q.readHexNumber(ie,he),F(ie,Q,he),z.addCodespaceRange(he+1,D(Q,he),D(ie,he));for(let ye=1;ye<_e;ye++)N(ie,he),q.readHexNumber(Q,he),F(Q,ie,he),q.readHexNumber(ie,he),F(ie,Q,he),z.addCodespaceRange(he+1,D(Q,he),D(ie,he));break;case 1:q.readHex(Q,he),q.readHexNumber(ie,he),F(ie,Q,he),q.readNumber();for(let ye=1;ye<_e;ye++)N(ie,he),q.readHexNumber(Q,he),F(Q,ie,he),q.readHexNumber(ie,he),F(ie,Q,he),q.readNumber();break;case 2:q.readHex(Te,he),ce=q.readNumber(),z.mapOne(D(Te,he),ce);for(let ye=1;ye<_e;ye++)N(Te,he),ae||(q.readHexNumber(K,he),F(Te,K,he)),ce=q.readSigned()+(ce+1),z.mapOne(D(Te,he),ce);break;case 3:q.readHex(Q,he),q.readHexNumber(ie,he),F(ie,Q,he),ce=q.readNumber(),z.mapCidRange(D(Q,he),D(ie,he),ce);for(let ye=1;ye<_e;ye++)N(ie,he),ae?Q.set(ie):(q.readHexNumber(Q,he),F(Q,ie,he)),q.readHexNumber(ie,he),F(ie,Q,he),ce=q.readNumber(),z.mapCidRange(D(Q,he),D(ie,he),ce);break;case 4:q.readHex(Te,we),q.readHex(me,he),z.mapOne(D(Te,we),M(me,he));for(let ye=1;ye<_e;ye++)N(Te,we),ae||(q.readHexNumber(K,we),F(Te,K,we)),N(me,he),q.readHexSigned(K,he),F(me,K,he),z.mapOne(D(Te,we),M(me,he));break;case 5:q.readHex(Q,we),q.readHexNumber(ie,we),F(ie,Q,we),q.readHex(me,he),z.mapBfRange(D(Q,we),D(ie,we),M(me,he));for(let ye=1;ye<_e;ye++)N(ie,we),ae?Q.set(ie):(q.readHexNumber(Q,we),F(Q,ie,we)),q.readHexNumber(ie,we),F(ie,Q,we),q.readHex(me,he),z.mapBfRange(D(Q,we),D(ie,we),M(me,he));break;default:throw new Error(`BinaryCMapReader.process - unknown type: ${Z}`)}}return fe?X(fe):z}}return Y}(),l=function(){function D($){let fe=0;for(let Q=0;Q<$.length;Q++)fe=fe<<8|$.charCodeAt(Q);return fe>>>0}function M($){if(typeof $!="string")throw new n.FormatError("Malformed CMap: expected string.")}function F($){if(!Number.isInteger($))throw new n.FormatError("Malformed CMap: expected int.")}function N($,fe){for(;;){let Q=fe.getObj();if(Q===c.EOF)break;if((0,c.isCmd)(Q,"endbfchar"))return;M(Q);const ie=D(Q);Q=fe.getObj(),M(Q);const Te=Q;$.mapOne(ie,Te)}}function G($,fe){for(;;){let Q=fe.getObj();if(Q===c.EOF)break;if((0,c.isCmd)(Q,"endbfrange"))return;M(Q);const ie=D(Q);Q=fe.getObj(),M(Q);const Te=D(Q);if(Q=fe.getObj(),Number.isInteger(Q)||typeof Q=="string"){const me=Number.isInteger(Q)?String.fromCharCode(Q):Q;$.mapBfRange(ie,Te,me)}else if((0,c.isCmd)(Q,"[")){Q=fe.getObj();const me=[];for(;!(0,c.isCmd)(Q,"]")&&Q!==c.EOF;)me.push(Q),Q=fe.getObj();$.mapBfRangeToArray(ie,Te,me)}else break}throw new n.FormatError("Invalid bf range.")}function W($,fe){for(;;){let Q=fe.getObj();if(Q===c.EOF)break;if((0,c.isCmd)(Q,"endcidchar"))return;M(Q);const ie=D(Q);Q=fe.getObj(),F(Q);const Te=Q;$.mapOne(ie,Te)}}function J($,fe){for(;;){let Q=fe.getObj();if(Q===c.EOF)break;if((0,c.isCmd)(Q,"endcidrange"))return;M(Q);const ie=D(Q);Q=fe.getObj(),M(Q);const Te=D(Q);Q=fe.getObj(),F(Q);const me=Q;$.mapCidRange(ie,Te,me)}}function Y($,fe){for(;;){let Q=fe.getObj();if(Q===c.EOF)break;if((0,c.isCmd)(Q,"endcodespacerange"))return;if(typeof Q!="string")break;const ie=D(Q);if(Q=fe.getObj(),typeof Q!="string")break;const Te=D(Q);$.addCodespaceRange(Q.length,ie,Te)}throw new n.FormatError("Invalid codespace range.")}function V($,fe){const Q=fe.getObj();Number.isInteger(Q)&&($.vertical=!!Q)}function H($,fe){const Q=fe.getObj();Q instanceof c.Name&&($.name=Q.name)}async function z($,fe,Q,ie){let Te,me;e:for(;;)try{const K=fe.getObj();if(K===c.EOF)break;if(K instanceof c.Name)K.name==="WMode"?V($,fe):K.name==="CMapName"&&H($,fe),Te=K;else if(K instanceof c.Cmd)switch(K.cmd){case"endcmap":break e;case"usecmap":Te instanceof c.Name&&(me=Te.name);break;case"begincodespacerange":Y($,fe);break;case"beginbfchar":N($,fe);break;case"begincidchar":W($,fe);break;case"beginbfrange":G($,fe);break;case"begincidrange":J($,fe);break}}catch(K){if(K instanceof e.MissingDataException)throw K;(0,n.warn)("Invalid cMap data: "+K);continue}return!ie&&me&&(ie=me),ie?X($,Q,ie):$}async function X($,fe,Q){if($.useCMap=await q(Q,fe),$.numCodespaceRanges===0){const ie=$.useCMap.codespaceRanges;for(let Te=0;TeX(Te,fe,me));if(ie===n.CMapCompressionType.NONE){const me=new v.Lexer(new L.Stream(Q));return z(Te,me,fe,null)}throw new Error("TODO: Only BINARY/NONE CMap compression is currently supported.")}return{async create($){const fe=$.encoding,Q=$.fetchBuiltInCMap,ie=$.useCMap;if(fe instanceof c.Name)return q(fe.name,Q);if(fe instanceof R.BaseStream){const Te=await z(new P,new v.Lexer(fe),Q,ie);return Te.isIdentityCMap?q(Te.name,Q):Te}throw new Error("Encoding required.")}}}();a.CMapFactory=l},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Parser=a.Linearization=a.Lexer=void 0;var n=g(2),c=g(130),R=g(131),v=g(143),e=g(145),L=g(146),O=g(148),B=g(149),P=g(152),S=g(154),_=g(156),l=g(135),y=g(157),D=g(158);const M=1e3,F=5552;function N(H){const z=H.length;let X=1,q=0;for(let $=0;$0&&arguments[0]!==void 0?arguments[0]:null;const X=this.buf1;if(this.shift(),X instanceof c.Cmd)switch(X.cmd){case"BI":return this.makeInlineImage(z);case"[":const q=[];for(;!(0,c.isCmd)(this.buf1,"]")&&this.buf1!==c.EOF;)q.push(this.getObj(z));if(this.buf1===c.EOF){if(this.recoveryMode)return q;throw new R.ParserEOFException("End of file inside array.")}return this.shift(),q;case"<<":const $=new c.Dict(this.xref);for(;!(0,c.isCmd)(this.buf1,">>")&&this.buf1!==c.EOF;){if(!(this.buf1 instanceof c.Name)){(0,n.info)("Malformed dictionary: key must be a name object"),this.shift();continue}const fe=this.buf1.name;if(this.shift(),this.buf1===c.EOF)break;$.set(fe,this.getObj(z))}if(this.buf1===c.EOF){if(this.recoveryMode)return $;throw new R.ParserEOFException("End of file inside dictionary.")}return(0,c.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream($,z):$:(this.shift(),$);default:return X}if(Number.isInteger(X)){if(Number.isInteger(this.buf1)&&(0,c.isCmd)(this.buf2,"R")){const q=c.Ref.get(X,this.buf1);return this.shift(),this.shift(),q}return X}return typeof X=="string"&&z?z.decryptString(X):X}findDefaultInlineStreamEnd(z){const Te=this.lexer,me=z.pos,K=10;let ce=0,de,Z;for(;(de=z.getByte())!==-1;)if(ce===0)ce=de===69?1:0;else if(ce===1)ce=de===73?2:0;else if((0,n.assert)(ce===2,"findDefaultInlineStreamEnd - invalid state."),de===32||de===10||de===13){Z=z.pos;const he=z.peekBytes(K);for(let we=0,_e=he.length;we<_e;we++)if(de=he[we],!(de===0&&he[we+1]!==0)&&de!==10&&de!==13&&(de<32||de>127)){ce=0;break}if(ce!==2)continue;if(Te.knownCommands){const we=Te.peekObj();we instanceof c.Cmd&&!Te.knownCommands[we.cmd]&&(ce=0)}else(0,n.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");if(ce===2)break}else ce=0;de===-1&&((0,n.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),Z&&((0,n.warn)('... trying to recover by using the last "EI" occurrence.'),z.skip(-(z.pos-Z))));let ae=4;return z.skip(-ae),de=z.peekByte(),z.skip(ae),(0,R.isWhiteSpace)(de)||ae--,z.pos-ae-me}findDCTDecodeInlineStreamEnd(z){const X=z.pos;let q=!1,$,fe;for(;($=z.getByte())!==-1;)if($===255){switch(z.getByte()){case 0:break;case 255:z.skip(-1);break;case 217:q=!0;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:fe=z.getUint16(),fe>2?z.skip(fe-2):z.skip(-2);break}if(q)break}const Q=z.pos-X;return $===-1?((0,n.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),z.skip(-Q),this.findDefaultInlineStreamEnd(z)):(this.inlineStreamSkipEI(z),Q)}findASCII85DecodeInlineStreamEnd(z){const $=z.pos;let fe;for(;(fe=z.getByte())!==-1;)if(fe===126){const ie=z.pos;for(fe=z.peekByte();(0,R.isWhiteSpace)(fe);)z.skip(),fe=z.peekByte();if(fe===62){z.skip();break}if(z.pos>ie){const Te=z.peekBytes(2);if(Te[0]===69&&Te[1]===73)break}}const Q=z.pos-$;return fe===-1?((0,n.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),z.skip(-Q),this.findDefaultInlineStreamEnd(z)):(this.inlineStreamSkipEI(z),Q)}findASCIIHexDecodeInlineStreamEnd(z){const q=z.pos;let $;for(;($=z.getByte())!==-1&&$!==62;);const fe=z.pos-q;return $===-1?((0,n.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),z.skip(-fe),this.findDefaultInlineStreamEnd(z)):(this.inlineStreamSkipEI(z),fe)}inlineStreamSkipEI(z){let $=0,fe;for(;(fe=z.getByte())!==-1;)if($===0)$=fe===69?1:0;else if($===1)$=fe===73?2:0;else if($===2)break}makeInlineImage(z){const X=this.lexer,q=X.stream,$=new c.Dict(this.xref);let fe;for(;!(0,c.isCmd)(this.buf1,"ID")&&this.buf1!==c.EOF;){if(!(this.buf1 instanceof c.Name))throw new n.FormatError("Dictionary key must be a name object");const de=this.buf1.name;if(this.shift(),this.buf1===c.EOF)break;$.set(de,this.getObj(z))}X.beginInlineImagePos!==-1&&(fe=q.pos-X.beginInlineImagePos);const Q=$.get("F","Filter");let ie;if(Q instanceof c.Name)ie=Q.name;else if(Array.isArray(Q)){const de=this.xref.fetchIfRef(Q[0]);de instanceof c.Name&&(ie=de.name)}const Te=q.pos;let me;switch(ie){case"DCT":case"DCTDecode":me=this.findDCTDecodeInlineStreamEnd(q);break;case"A85":case"ASCII85Decode":me=this.findASCII85DecodeInlineStreamEnd(q);break;case"AHx":case"ASCIIHexDecode":me=this.findASCIIHexDecodeInlineStreamEnd(q);break;default:me=this.findDefaultInlineStreamEnd(q)}let K=q.makeSubStream(Te,me,$),ce;if(me=fe)return q.pos+=Te,q.pos-z;Te++}q.pos+=ie}return-1}makeStream(z,X){const q=this.lexer;let $=q.stream;q.skipToNextLine();const fe=$.pos-1;let Q=z.get("Length");if(Number.isInteger(Q)||((0,n.info)(`Bad length "${Q&&Q.toString()}" in stream.`),Q=0),$.pos=fe+Q,q.nextChar(),this.tryShift()&&(0,c.isCmd)(this.buf2,"endstream"))this.shift();else{const ie=new Uint8Array([101,110,100,115,116,114,101,97,109]);let Te=this._findStreamLength(fe,ie);if(Te<0){for(let K=1;K<=1;K++){const ce=ie.length-K,de=ie.slice(0,ce),Z=this._findStreamLength(fe,de);if(Z>=0){const ae=$.peekBytes(ce+1)[ce];if(!(0,R.isWhiteSpace)(ae))break;(0,n.info)(`Found "${(0,n.bytesToString)(de)}" when searching for endstream command.`),Te=Z;break}}if(Te<0)throw new n.FormatError("Missing endstream command.")}Q=Te,q.nextChar(),this.shift(),this.shift()}return this.shift(),$=$.makeSubStream(fe,Q,z),X&&($=X.createStream($,Q)),$=this.filter($,z,Q),$.dict=z,$}filter(z,X,q){let $=X.get("F","Filter"),fe=X.get("DP","DecodeParms");if($ instanceof c.Name)return Array.isArray(fe)&&(0,n.warn)("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(z,$.name,q,fe);let Q=q;if(Array.isArray($)){const ie=$,Te=fe;for(let me=0,K=ie.length;me=48&&H<=57?H&15:H>=65&&H<=70||H>=97&&H<=102?(H&15)+9:-1}class Y{constructor(z){let X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.stream=z,this.nextChar(),this.strBuf=[],this.knownCommands=X,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let z=this.currentChar,X=!1,q=0,$=0;if(z===45?($=-1,z=this.nextChar(),z===45&&(z=this.nextChar())):z===43&&($=1,z=this.nextChar()),z===10||z===13)do z=this.nextChar();while(z===10||z===13);if(z===46&&(q=10,z=this.nextChar()),z<48||z>57){if((0,R.isWhiteSpace)(z)||z===-1){if(q===10&&$===0)return(0,n.warn)("Lexer.getNumber - treating a single decimal point as zero."),0;if(q===0&&$===-1)return(0,n.warn)("Lexer.getNumber - treating a single minus sign as zero."),0}throw new n.FormatError(`Invalid number: ${String.fromCharCode(z)} (charCode ${z})`)}$=$||1;let fe=z-48,Q=0,ie=1;for(;(z=this.nextChar())>=0;)if(z>=48&&z<=57){const Te=z-48;X?Q=Q*10+Te:(q!==0&&(q*=10),fe=fe*10+Te)}else if(z===46)if(q===0)q=1;else break;else if(z===45)(0,n.warn)("Badly formatted number: minus sign in the middle");else if(z===69||z===101){if(z=this.peekChar(),z===43||z===45)ie=z===45?-1:1,this.nextChar();else if(z<48||z>57)break;X=!0}else break;return q!==0&&(fe/=q),X&&(fe*=10**(ie*Q)),$*fe}getString(){let z=1,X=!1;const q=this.strBuf;q.length=0;let $=this.nextChar();for(;;){let fe=!1;switch($|0){case-1:(0,n.warn)("Unterminated string"),X=!0;break;case 40:++z,q.push("(");break;case 41:--z===0?(this.nextChar(),X=!0):q.push(")");break;case 92:switch($=this.nextChar(),$){case-1:(0,n.warn)("Unterminated string"),X=!0;break;case 110:q.push(` `);break;case 114:q.push("\r");break;case 116:q.push(" ");break;case 98:q.push("\b");break;case 102:q.push("\f");break;case 92:case 40:case 41:q.push(String.fromCharCode($));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let Q=$&15;$=this.nextChar(),fe=!0,$>=48&&$<=55&&(Q=(Q<<3)+($&15),$=this.nextChar(),$>=48&&$<=55&&(fe=!1,Q=(Q<<3)+($&15))),q.push(String.fromCharCode(Q));break;case 13:this.peekChar()===10&&this.nextChar();break;case 10:break;default:q.push(String.fromCharCode($));break}break;default:q.push(String.fromCharCode($));break}if(X)break;fe||($=this.nextChar())}return q.join("")}getName(){let z,X;const q=this.strBuf;for(q.length=0;(z=this.nextChar())>=0&&!W[z];)if(z===35){if(z=this.nextChar(),W[z]){(0,n.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),q.push("#");break}const $=J(z);if($!==-1){X=z,z=this.nextChar();const fe=J(z);if(fe===-1){if((0,n.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(z)}) in hexadecimal number.`),q.push("#",String.fromCharCode(X)),W[z])break;q.push(String.fromCharCode(z));continue}q.push(String.fromCharCode($<<4|fe))}else q.push("#",String.fromCharCode(z))}else q.push(String.fromCharCode(z));return q.length>127&&(0,n.warn)(`Name token is longer than allowed by the spec: ${q.length}`),c.Name.get(q.join(""))}_hexStringWarn(z){if(this._hexStringNumWarn++===5){(0,n.warn)("getHexString - ignoring additional invalid characters.");return}this._hexStringNumWarn>5||(0,n.warn)(`getHexString - ignoring invalid character: ${z}`)}getHexString(){const z=this.strBuf;z.length=0;let X=this.currentChar,q=!0,$,fe;for(this._hexStringNumWarn=0;;)if(X<0){(0,n.warn)("Unterminated hex string");break}else if(X===62){this.nextChar();break}else if(W[X]===1){X=this.nextChar();continue}else{if(q){if($=J(X),$===-1){this._hexStringWarn(X),X=this.nextChar();continue}}else{if(fe=J(X),fe===-1){this._hexStringWarn(X),X=this.nextChar();continue}z.push(String.fromCharCode($<<4|fe))}q=!q,X=this.nextChar()}return z.join("")}getObj(){let z=!1,X=this.currentChar;for(;;){if(X<0)return c.EOF;if(z)(X===10||X===13)&&(z=!1);else if(X===37)z=!0;else if(W[X]!==1)break;X=this.nextChar()}switch(X|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:return this.nextChar(),c.Cmd.get("[");case 93:return this.nextChar(),c.Cmd.get("]");case 60:return X=this.nextChar(),X===60?(this.nextChar(),c.Cmd.get("<<")):this.getHexString();case 62:return X=this.nextChar(),X===62?(this.nextChar(),c.Cmd.get(">>")):c.Cmd.get(">");case 123:return this.nextChar(),c.Cmd.get("{");case 125:return this.nextChar(),c.Cmd.get("}");case 41:throw this.nextChar(),new n.FormatError(`Illegal character: ${X}`)}let q=String.fromCharCode(X);if(X<32||X>127){const Q=this.peekChar();if(Q>=32&&Q<=127)return this.nextChar(),c.Cmd.get(q)}const $=this.knownCommands;let fe=$&&$[q]!==void 0;for(;(X=this.nextChar())>=0&&!W[X];){const Q=q+String.fromCharCode(X);if(fe&&$[Q]===void 0)break;if(q.length===128)throw new n.FormatError(`Command token too long: ${q.length}`);q=Q,fe=$&&$[q]!==void 0}return q==="true"?!0:q==="false"?!1:q==="null"?null:(q==="BI"&&(this.beginInlineImagePos=this.stream.pos),c.Cmd.get(q))}peekObj(){const z=this.stream.pos,X=this.currentChar,q=this.beginInlineImagePos;let $;try{$=this.getObj()}catch(fe){if(fe instanceof R.MissingDataException)throw fe;(0,n.warn)(`peekObj: ${fe}`)}return this.stream.pos=z,this.currentChar=X,this.beginInlineImagePos=q,$}skipToNextLine(){let z=this.currentChar;for(;z>=0;){if(z===13){z=this.nextChar(),z===10&&this.nextChar();break}else if(z===10){this.nextChar();break}z=this.nextChar()}}}a.Lexer=Y;class V{static create(z){function X(ce,de){let Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const ae=ce.get(de);if(Number.isInteger(ae)&&(Z?ae>=0:ae>0))return ae;throw new Error(`The "${de}" parameter in the linearization dictionary is invalid.`)}function q(ce){const de=ce.get("H");let Z;if(Array.isArray(de)&&((Z=de.length)===2||Z===4)){for(let ae=0;ae0))throw new Error(`Hint (${ae}) in the linearization dictionary is invalid.`)}return de}throw new Error("Hint array in the linearization dictionary is invalid.")}const $=new G({lexer:new Y(z),xref:null}),fe=$.getObj(),Q=$.getObj(),ie=$.getObj(),Te=$.getObj();let me,K;if(Number.isInteger(fe)&&Number.isInteger(Q)&&(0,c.isCmd)(ie,"obj")&&Te instanceof c.Dict&&typeof(me=Te.get("Linearized"))=="number"&&me>0){if((K=X(Te,"L"))!==z.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.')}else return null;return{length:K,hints:q(Te),objectNumberFirst:X(Te,"O"),endFirst:X(Te,"E"),numPages:X(Te,"N"),mainXRefEntriesOffset:X(Te,"T"),pageFirst:Te.has("P")?X(Te,"P",!0):0}}}a.Linearization=V},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Ascii85Stream=void 0;var n=g(144),c=g(131);class R extends n.DecodeStream{constructor(e,L){L&&(L*=.8),super(L),this.str=e,this.dict=e.dict,this.input=new Uint8Array(5)}readBlock(){const B=this.str;let P=B.getByte();for(;(0,c.isWhiteSpace)(P);)P=B.getByte();if(P===-1||P===126){this.eof=!0;return}const S=this.bufferLength;let _,l;if(P===122){for(_=this.ensureBuffer(S+4),l=0;l<4;++l)_[S+l]=0;this.bufferLength+=4}else{const y=this.input;for(y[0]=P,l=1;l<5;++l){for(P=B.getByte();(0,c.isWhiteSpace)(P);)P=B.getByte();if(y[l]=P,P===-1||P===126)break}if(_=this.ensureBuffer(S+l-1),this.bufferLength+=l-1,l<5){for(;l<5;++l)y[l]=117;this.eof=!0}let D=0;for(l=0;l<5;++l)D=D*85+(y[l]-33);for(l=3;l>=0;--l)_[S+l]=D&255,D>>=8}}}a.Ascii85Stream=R},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.StreamsSequenceStream=a.DecodeStream=void 0;var n=g(132),c=g(135);const R=new Uint8Array(0);class v extends n.BaseStream{constructor(O){if(super(),this._rawMinBufferLength=O||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=R,this.minBufferLength=512,O)for(;this.minBufferLengthS&&(P=S)}else{for(;!this.eof;)this.readBlock();P=this.bufferLength}return this.pos=P,this.buffer.subarray(B,P)}reset(){this.pos=0}makeSubStream(O,B){let P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(B===void 0)for(;!this.eof;)this.readBlock();else{const S=O+B;for(;this.bufferLength<=S&&!this.eof;)this.readBlock()}return new c.Stream(this.buffer,O,B,P)}getBaseStreams(){return this.str?this.str.getBaseStreams():null}}a.DecodeStream=v;class e extends v{constructor(O){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,P=0;for(const S of O)P+=S instanceof v?S._rawMinBufferLength:S.length;super(P),this.streams=O,this._onError=B}readBlock(){const O=this.streams;if(O.length===0){this.eof=!0;return}const B=O.shift();let P;try{P=B.getBytes()}catch(y){if(this._onError){this._onError(y,B.dict&&B.dict.objId);return}throw y}const S=this.bufferLength,_=S+P.length;this.ensureBuffer(_).set(P,S),this.bufferLength=_}getBaseStreams(){const O=[];for(const B of this.streams){const P=B.getBaseStreams();P&&O.push(...P)}return O.length>0?O:null}}a.StreamsSequenceStream=e},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.AsciiHexStream=void 0;var n=g(144);class c extends n.DecodeStream{constructor(v,e){e&&(e*=.5),super(e),this.str=v,this.dict=v.dict,this.firstDigit=-1}readBlock(){const e=this.str.getBytes(8e3);if(!e.length){this.eof=!0;return}const L=e.length+1>>1,O=this.ensureBuffer(this.bufferLength+L);let B=this.bufferLength,P=this.firstDigit;for(const S of e){let _;if(S>=48&&S<=57)_=S&15;else if(S>=65&&S<=70||S>=97&&S<=102)_=(S&15)+9;else if(S===62){this.eof=!0;break}else continue;P<0?P=_:(O[B++]=P<<4|_,P=-1)}P>=0&&this.eof&&(O[B++]=P<<4,P=-1),this.firstDigit=P,this.bufferLength=B}}a.AsciiHexStream=c},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CCITTFaxStream=void 0;var n=g(147),c=g(144),R=g(130);class v extends c.DecodeStream{constructor(L,O,B){super(O),this.str=L,this.dict=L.dict,B instanceof R.Dict||(B=R.Dict.empty);const P={next(){return L.getByte()}};this.ccittFaxDecoder=new n.CCITTFaxDecoder(P,{K:B.get("K"),EndOfLine:B.get("EndOfLine"),EncodedByteAlign:B.get("EncodedByteAlign"),Columns:B.get("Columns"),Rows:B.get("Rows"),EndOfBlock:B.get("EndOfBlock"),BlackIs1:B.get("BlackIs1")})}readBlock(){for(;!this.eof;){const L=this.ccittFaxDecoder.readNextChar();if(L===-1){this.eof=!0;return}this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=L}}}a.CCITTFaxStream=v},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CCITTFaxDecoder=void 0;var n=g(2);const c=-2,R=-1,v=0,e=1,L=2,O=3,B=4,P=5,S=6,_=7,l=8,y=[[-1,-1],[-1,-1],[7,l],[7,_],[6,S],[6,S],[6,P],[6,P],[4,v],[4,v],[4,v],[4,v],[4,v],[4,v],[4,v],[4,v],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,e],[3,B],[3,B],[3,B],[3,B],[3,B],[3,B],[3,B],[3,B],[3,B],[3,B],[3,B],[3,B],[3,B],[3,B],[3,B],[3,B],[3,O],[3,O],[3,O],[3,O],[3,O],[3,O],[3,O],[3,O],[3,O],[3,O],[3,O],[3,O],[3,O],[3,O],[3,O],[3,O],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L],[1,L]],D=[[-1,-1],[12,c],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]],M=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]],F=[[-1,-1],[-1,-1],[12,c],[12,c],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]],N=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]],G=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];class W{constructor(Y){let V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Y||typeof Y.next!="function")throw new Error('CCITTFaxDecoder - invalid "source" parameter.');this.source=Y,this.eof=!1,this.encoding=V.K||0,this.eoline=V.EndOfLine||!1,this.byteAlign=V.EncodedByteAlign||!1,this.columns=V.Columns||1728,this.rows=V.Rows||0;let H=V.EndOfBlock;H==null&&(H=!0),this.eoblock=H,this.black=V.BlackIs1||!1,this.codingLine=new Uint32Array(this.columns+1),this.refLine=new Uint32Array(this.columns+2),this.codingLine[0]=this.columns,this.codingPos=0,this.row=0,this.nextLine2D=this.encoding<0,this.inputBits=0,this.inputBuf=0,this.outputBits=0,this.rowsDone=!1;let z;for(;(z=this._lookBits(12))===0;)this._eatBits(1);z===1&&this._eatBits(12),this.encoding>0&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}readNextChar(){if(this.eof)return-1;const Y=this.refLine,V=this.codingLine,H=this.columns;let z,X,q,$;if(this.outputBits===0){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;this.err=!1;let Q,ie,Te;if(this.nextLine2D){for($=0;V[$]=64);do ie+=Te=this._getWhiteCode();while(Te>=64)}else{do Q+=Te=this._getWhiteCode();while(Te>=64);do ie+=Te=this._getBlackCode();while(Te>=64)}for(this._addPixels(V[this.codingPos]+Q,X),V[this.codingPos]0?--z:++z;Y[z]<=V[this.codingPos]&&Y[z]0?--z:++z;Y[z]<=V[this.codingPos]&&Y[z]0?--z:++z;Y[z]<=V[this.codingPos]&&Y[z]=64);else do Q+=Te=this._getWhiteCode();while(Te>=64);this._addPixels(V[this.codingPos]+Q,X),X^=1}let me=!1;if(this.byteAlign&&(this.inputBits&=-8),!this.eoblock&&this.row===this.rows-1)this.rowsDone=!0;else{if(Q=this._lookBits(12),this.eoline)for(;Q!==R&&Q!==1;)this._eatBits(1),Q=this._lookBits(12);else for(;Q===0;)this._eatBits(1),Q=this._lookBits(12);Q===1?(this._eatBits(12),me=!0):Q===R&&(this.eof=!0)}if(!this.eof&&this.encoding>0&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&me&&this.byteAlign){if(Q=this._lookBits(12),Q===1){if(this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1)),this.encoding>=0)for($=0;$<4;++$)Q=this._lookBits(12),Q!==1&&(0,n.info)("bad rtc code: "+Q),this._eatBits(12),this.encoding>0&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(Q=this._lookBits(13),Q===R)return this.eof=!0,-1;if(Q>>1===1)break;this._eatBits(1)}this._eatBits(12),this.encoding>0&&(this._eatBits(1),this.nextLine2D=!(Q&1))}V[0]>0?this.outputBits=V[this.codingPos=0]:this.outputBits=V[this.codingPos=1],this.row++}let fe;if(this.outputBits>=8)fe=this.codingPos&1?0:255,this.outputBits-=8,this.outputBits===0&&V[this.codingPos]q?(fe<<=q,this.codingPos&1||(fe|=255>>8-q),this.outputBits-=q,q=0):(fe<<=this.outputBits,this.codingPos&1||(fe|=255>>8-this.outputBits),q-=this.outputBits,this.outputBits=0,V[this.codingPos]0&&(fe<<=q,q=0))}while(q)}return this.black&&(fe^=255),fe}_addPixels(Y,V){const H=this.codingLine;let z=this.codingPos;Y>H[z]&&(Y>this.columns&&((0,n.info)("row is wrong length"),this.err=!0,Y=this.columns),z&1^V&&++z,H[z]=Y),this.codingPos=z}_addPixelsNeg(Y,V){const H=this.codingLine;let z=this.codingPos;if(Y>H[z])Y>this.columns&&((0,n.info)("row is wrong length"),this.err=!0,Y=this.columns),z&1^V&&++z,H[z]=Y;else if(Y0&&Y=X){const fe=H[$-X];if(fe[0]===q)return this._eatBits(q),[!0,fe[1],!0]}}return[!1,0,!1]}_getTwoDimCode(){let Y=0,V;if(this.eoblock){if(Y=this._lookBits(7),V=y[Y],V&&V[0]>0)return this._eatBits(V[0]),V[1]}else{const H=this._findTableCode(1,7,y);if(H[0]&&H[2])return H[1]}return(0,n.info)("Bad two dim code"),R}_getWhiteCode(){let Y=0,V;if(this.eoblock){if(Y=this._lookBits(12),Y===R)return 1;if(Y>>5?V=M[Y>>3]:V=D[Y],V[0]>0)return this._eatBits(V[0]),V[1]}else{let H=this._findTableCode(1,9,M);if(H[0]||(H=this._findTableCode(11,12,D),H[0]))return H[1]}return(0,n.info)("bad white code"),this._eatBits(1),1}_getBlackCode(){let Y,V;if(this.eoblock){if(Y=this._lookBits(13),Y===R)return 1;if(Y>>7?!(Y>>9)&&Y>>7?V=N[(Y>>1)-64]:V=G[Y>>7]:V=F[Y],V[0]>0)return this._eatBits(V[0]),V[1]}else{let H=this._findTableCode(2,6,G);if(H[0]||(H=this._findTableCode(7,12,N,64),H[0])||(H=this._findTableCode(10,13,F),H[0]))return H[1]}return(0,n.info)("bad black code"),this._eatBits(1),1}_lookBits(Y){let V;for(;this.inputBits>16-Y;this.inputBuf=this.inputBuf<<8|V,this.inputBits+=8}return this.inputBuf>>this.inputBits-Y&65535>>16-Y}_eatBits(Y){(this.inputBits-=Y)<0&&(this.inputBits=0)}}a.CCITTFaxDecoder=W},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.FlateStream=void 0;var n=g(144),c=g(2);const R=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),v=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),e=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),L=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],O=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];class B extends n.DecodeStream{constructor(S,_){super(_),this.str=S,this.dict=S.dict;const l=S.getByte(),y=S.getByte();if(l===-1||y===-1)throw new c.FormatError(`Invalid header in flate stream: ${l}, ${y}`);if((l&15)!==8)throw new c.FormatError(`Unknown compression method in flate stream: ${l}, ${y}`);if(((l<<8)+y)%31!==0)throw new c.FormatError(`Bad FCHECK in flate stream: ${l}, ${y}`);if(y&32)throw new c.FormatError(`FDICT bit set in flate stream: ${l}, ${y}`);this.codeSize=0,this.codeBuf=0}getBits(S){const _=this.str;let l=this.codeSize,y=this.codeBuf,D;for(;l>S,this.codeSize=l-=S,D}getCode(S){const _=this.str,l=S[0],y=S[1];let D=this.codeSize,M=this.codeBuf,F;for(;D>16,W=N&65535;if(G<1||D>G,this.codeSize=D-G,W}generateHuffmanTable(S){const _=S.length;let l=0,y;for(y=0;y<_;++y)S[y]>l&&(l=S[y]);const D=1<>=1;for(y=J;y>=1,y===0){let G;if((G=l.getByte())===-1)throw new c.FormatError("Bad block header in flate stream");let W=G;if((G=l.getByte())===-1)throw new c.FormatError("Bad block header in flate stream");if(W|=G<<8,(G=l.getByte())===-1)throw new c.FormatError("Bad block header in flate stream");let J=G;if((G=l.getByte())===-1)throw new c.FormatError("Bad block header in flate stream");if(J|=G<<8,J!==(~W&65535)&&(W!==0||J!==0))throw new c.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;const Y=this.bufferLength,V=Y+W;if(S=this.ensureBuffer(V),this.bufferLength=V,W===0)l.peekByte()===-1&&(this.eof=!0);else{const H=l.getBytes(W);S.set(H,Y),H.length0;)X[V++]=fe}D=this.generateHuffmanTable(X.subarray(0,G)),M=this.generateHuffmanTable(X.subarray(G,z))}else throw new c.FormatError("Unknown block type in flate stream");S=this.buffer;let F=S?S.length:0,N=this.bufferLength;for(;;){let G=this.getCode(D);if(G<256){N+1>=F&&(S=this.ensureBuffer(N+1),F=S.length),S[N++]=G;continue}if(G===256){this.bufferLength=N;return}G-=257,G=v[G];let W=G>>16;W>0&&(W=this.getBits(W)),_=(G&65535)+W,G=this.getCode(M),G=e[G],W=G>>16,W>0&&(W=this.getBits(W));const J=(G&65535)+W;N+_>=F&&(S=this.ensureBuffer(N+_),F=S.length);for(let Y=0;Y<_;++Y,++N)S[N]=S[N-J]}}}a.FlateStream=B},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Jbig2Stream=void 0;var n=g(132),c=g(144),R=g(130),v=g(150),e=g(2);class L extends c.DecodeStream{constructor(B,P,S){super(P),this.stream=B,this.dict=B.dict,this.maybeLength=P,this.params=S}get bytes(){return(0,e.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(B){}readBlock(){if(this.eof)return;const B=new v.Jbig2Image,P=[];if(this.params instanceof R.Dict){const l=this.params.get("JBIG2Globals");if(l instanceof n.BaseStream){const y=l.getBytes();P.push({data:y,start:0,end:y.length})}}P.push({data:this.bytes,start:0,end:this.bytes.length});const S=B.parseChunks(P),_=S.length;for(let l=0;l<_;l++)S[l]^=255;this.buffer=S,this.bufferLength=_,this.eof=!0}}a.Jbig2Stream=L},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Jbig2Image=void 0;var n=g(2),c=g(131),R=g(151),v=g(147);class e extends n.BaseException{constructor(Ce){super(`JBIG2 error: ${Ce}`,"Jbig2Error")}}class L{getContexts(Ce){return Ce in this?this[Ce]:this[Ce]=new Int8Array(65536)}}class O{constructor(Ce,oe,pe){this.data=Ce,this.start=oe,this.end=pe}get decoder(){const Ce=new R.ArithmeticDecoder(this.data,this.start,this.end);return(0,n.shadow)(this,"decoder",Ce)}get contextCache(){const Ce=new L;return(0,n.shadow)(this,"contextCache",Ce)}}function B(Ie,Ce,oe){const pe=Ie.getContexts(Ce);let xe=1;function Ne(Fe){let Pe=0;for(let qe=0;qe>>0}const ke=Ne(1),De=Ne(1)?Ne(1)?Ne(1)?Ne(1)?Ne(1)?Ne(32)+4436:Ne(12)+340:Ne(8)+84:Ne(6)+20:Ne(4)+4:Ne(2);return ke===0?De:De>0?-De:null}function P(Ie,Ce,oe){const pe=Ie.getContexts("IAID");let xe=1;for(let Ne=0;Ne=Je&&_t=nt)for(ut=ut<<1&Ae,Qe=0;Qe=0&&Ct=0&&(rt=Xe[ft][Ct],rt&&(ut|=rt<=Ie?ze<<=1:ze=ze<<1|et[ot][Xe];for(Ee=0;Ee=Qe||Xe<0||Xe>=He?ze<<=1:ze=ze<<1|pe[ot][Xe];const Ye=tt.readBit(je,ze);Ke[at]=Ye}}return et}function G(Ie,Ce,oe,pe,xe,Ne,ke,De,Fe,Pe,qe,Le){if(Ie&&Ce)throw new e("symbol refinement with Huffman is not supported");const Oe=[];let Ee=0,Ae=(0,c.log2)(oe.length+pe);const Ve=qe.decoder,$e=qe.contextCache;let Ue,He;for(Ie&&(Ue=de(1),He=[],Ae=Math.max(Ae,1));Oe.length1)ze=W(Ie,Ce,Ke,Ee,0,Ye,1,oe.concat(Oe),Ae,0,0,1,0,Ne,Fe,Pe,qe,0,Le);else{const st=P($e,Ve,Ae),_t=B($e,"IARDX",Ve),ft=B($e,"IARDY",Ve),Ct=st1&&(Xe=Ie?He.readBits(Ue):B(je,"IAIT",tt));const ze=ke*Je+Xe,Ye=Ie?Ee.symbolIDTable.decode(He):P(je,tt,Fe),st=Ce&&(Ie?He.readBit():B(je,"IARI",tt));let _t=De[Ye],ft=_t[0].length,Ct=_t.length;if(st){const kt=B(je,"IARDW",tt),Ut=B(je,"IARDH",tt),Ht=B(je,"IARDX",tt),Kt=B(je,"IARDY",tt);ft+=kt,Ct+=Ut,_t=N(ft,Ct,Ae,_t,(kt>>1)+Ht,(Ut>>1)+Kt,!1,Ve,$e)}const ut=ze-(Le&1?0:Ct-1),rt=ot-(Le&2?ft-1:0);let mt,Ot,dt;if(Pe){for(mt=0;mt=0;Ue--)Ie?ot=ye(at,Fe,Pe,!0):ot=F(!1,Fe,Pe,oe,!1,null,nt,Ae),Ke[Ue]=ot;let Xe,ze,Ye,st,_t,ft,Ct,ut,rt;for(Xe=0;Xe=0;He--)Ye^=Ke[He][Xe][ze],st|=Ye<>8,Ct=Le+Xe*Oe-ze*Ee>>8,ft>=0&&ft+tt<=pe&&Ct>=0&&Ct+je<=xe)for(Ue=0;Ue=xe))for(rt=$e[Ot],ut=_t[Ue],He=0;He=0&&mt>5&7;const Fe=[ke&31];let Pe=Ce+6;if(ke===7){De=(0,c.readUint32)(Ie,Pe-1)&536870911,Pe+=3;let Ae=De+7>>3;for(Fe[0]=Ie[Pe++];--Ae>0;)Fe.push(Ie[Pe++])}else if(ke===5||ke===6)throw new e("invalid referred-to flags");oe.retainBits=Fe;let qe=4;oe.number<=256?qe=1:oe.number<=65536&&(qe=2);const Le=[];let Oe,Ee;for(Oe=0;Oe>>24&255,He[3]=Ae.height>>16&255,He[4]=Ae.height>>8&255,He[5]=Ae.height&255,Oe=Pe,Ee=Ie.length;Oe>2&3,Le.huffmanDWSelector=Oe>>4&3,Le.bitmapSizeSelector=Oe>>6&1,Le.aggregationInstancesSelector=Oe>>7&1,Le.bitmapCodingContextUsed=!!(Oe&256),Le.bitmapCodingContextRetained=!!(Oe&512),Le.template=Oe>>10&3,Le.refinementTemplate=Oe>>12&1,Ne+=2,!Le.huffman){for(Pe=Le.template===0?4:1,De=[],Fe=0;Fe>2&3,Ee.stripSize=1<>4&3,Ee.transposed=!!(Ae&64),Ee.combinationOperator=Ae>>7&3,Ee.defaultPixelValue=Ae>>9&1,Ee.dsOffset=Ae<<17>>27,Ee.refinementTemplate=Ae>>15&1,Ee.huffman){const je=(0,c.readUint16)(pe,Ne);Ne+=2,Ee.huffmanFS=je&3,Ee.huffmanDS=je>>2&3,Ee.huffmanDT=je>>4&3,Ee.huffmanRefinementDW=je>>6&3,Ee.huffmanRefinementDH=je>>8&3,Ee.huffmanRefinementDX=je>>10&3,Ee.huffmanRefinementDY=je>>12&3,Ee.huffmanRefinementSizeSelector=!!(je&16384)}if(Ee.refinement&&!Ee.refinementTemplate){for(De=[],Fe=0;Fe<2;Fe++)De.push({x:(0,c.readInt8)(pe,Ne),y:(0,c.readInt8)(pe,Ne+1)}),Ne+=2;Ee.refinementAt=De}Ee.numberOfSymbolInstances=(0,c.readUint32)(pe,Ne),Ne+=4,ke=[Ee,oe.referredTo,pe,Ne,xe];break;case 16:const Ve={},$e=pe[Ne++];Ve.mmr=!!($e&1),Ve.template=$e>>1&3,Ve.patternWidth=pe[Ne++],Ve.patternHeight=pe[Ne++],Ve.maxPatternIndex=(0,c.readUint32)(pe,Ne),Ne+=4,ke=[Ve,oe.number,pe,Ne,xe];break;case 22:case 23:const Ue={};Ue.info=z(pe,Ne),Ne+=X;const He=pe[Ne++];Ue.mmr=!!(He&1),Ue.template=He>>1&3,Ue.enableSkip=!!(He&8),Ue.combinationOperator=He>>4&7,Ue.defaultPixelValue=He>>7&1,Ue.gridWidth=(0,c.readUint32)(pe,Ne),Ne+=4,Ue.gridHeight=(0,c.readUint32)(pe,Ne),Ne+=4,Ue.gridOffsetX=(0,c.readUint32)(pe,Ne)&4294967295,Ne+=4,Ue.gridOffsetY=(0,c.readUint32)(pe,Ne)&4294967295,Ne+=4,Ue.gridVectorX=(0,c.readUint16)(pe,Ne),Ne+=2,Ue.gridVectorY=(0,c.readUint16)(pe,Ne),Ne+=2,ke=[Ue,oe.referredTo,pe,Ne,xe];break;case 38:case 39:const Qe={};Qe.info=z(pe,Ne),Ne+=X;const Ze=pe[Ne++];if(Qe.mmr=!!(Ze&1),Qe.template=Ze>>1&3,Qe.prediction=!!(Ze&8),!Qe.mmr){for(Pe=Qe.template===0?4:1,De=[],Fe=0;Fe>2&1,et.combinationOperator=tt>>3&3,et.requiresBuffer=!!(tt&32),et.combinationOperatorOverride=!!(tt&64),ke=[et];break;case 49:break;case 50:break;case 51:break;case 53:ke=[oe.number,pe,Ne,xe];break;case 62:break;default:throw new e(`segment type ${oe.typeName}(${oe.type}) is not implemented`)}const qe="on"+oe.typeName;qe in Ce&&Ce[qe].apply(Ce,ke)}function $(Ie,Ce){for(let oe=0,pe=Ie.length;oe>3,pe=new Uint8ClampedArray(oe*Ce.height);Ce.defaultPixelValue&&pe.fill(255),this.buffer=pe}drawBitmap(Ce,oe){const pe=this.currentPageInfo,xe=Ce.width,Ne=Ce.height,ke=pe.width+7>>3,De=pe.combinationOperatorOverride?Ce.combinationOperator:pe.combinationOperator,Fe=this.buffer,Pe=128>>(Ce.x&7);let qe=Ce.y*ke+(Ce.x>>3),Le,Oe,Ee,Ae;switch(De){case 0:for(Le=0;Le>=1,Ee||(Ee=128,Ae++);qe+=ke}break;case 2:for(Le=0;Le>=1,Ee||(Ee=128,Ae++);qe+=ke}break;default:throw new e(`operator ${De} is not supported`)}}onImmediateGenericRegion(Ce,oe,pe,xe){const Ne=Ce.info,ke=new O(oe,pe,xe),De=F(Ce.mmr,Ne.width,Ne.height,Ce.template,Ce.prediction,null,Ce.at,ke);this.drawBitmap(Ne,De)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(Ce,oe,pe,xe,Ne,ke){let De,Fe;Ce.huffman&&(De=we(Ce,pe,this.customTables),Fe=new Z(xe,Ne,ke));let Pe=this.symbols;Pe||(this.symbols=Pe={});const qe=[];for(const Oe of pe){const Ee=Pe[Oe];Ee&&qe.push(...Ee)}const Le=new O(xe,Ne,ke);Pe[oe]=G(Ce.huffman,Ce.refinement,qe,Ce.numberOfNewSymbols,Ce.numberOfExportedSymbols,De,Ce.template,Ce.at,Ce.refinementTemplate,Ce.refinementAt,Le,Fe)}onImmediateTextRegion(Ce,oe,pe,xe,Ne){const ke=Ce.info;let De,Fe;const Pe=this.symbols,qe=[];for(const Ae of oe){const Ve=Pe[Ae];Ve&&qe.push(...Ve)}const Le=(0,c.log2)(qe.length);Ce.huffman&&(Fe=new Z(pe,xe,Ne),De=he(Ce,oe,this.customTables,qe.length,Fe));const Oe=new O(pe,xe,Ne),Ee=W(Ce.huffman,Ce.refinement,ke.width,ke.height,Ce.defaultPixelValue,Ce.numberOfSymbolInstances,Ce.stripSize,qe,Le,Ce.transposed,Ce.dsOffset,Ce.referenceCorner,Ce.combinationOperator,De,Ce.refinementTemplate,Ce.refinementAt,Oe,Ce.logStripSize,Fe);this.drawBitmap(ke,Ee)}onImmediateLosslessTextRegion(){this.onImmediateTextRegion(...arguments)}onPatternDictionary(Ce,oe,pe,xe,Ne){let ke=this.patterns;ke||(this.patterns=ke={});const De=new O(pe,xe,Ne);ke[oe]=J(Ce.mmr,Ce.patternWidth,Ce.patternHeight,Ce.maxPatternIndex,Ce.template,De)}onImmediateHalftoneRegion(Ce,oe,pe,xe,Ne){const ke=this.patterns[oe[0]],De=Ce.info,Fe=new O(pe,xe,Ne),Pe=Y(Ce.mmr,ke,Ce.template,De.width,De.height,Ce.defaultPixelValue,Ce.enableSkip,Ce.combinationOperator,Ce.gridWidth,Ce.gridHeight,Ce.gridOffsetX,Ce.gridOffsetY,Ce.gridVectorX,Ce.gridVectorY,Fe);this.drawBitmap(De,Pe)}onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion(...arguments)}onTables(Ce,oe,pe,xe){let Ne=this.customTables;Ne||(this.customTables=Ne={}),Ne[Ce]=K(oe,pe,xe)}}class ie{constructor(Ce){Ce.length===2?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=Ce[0],this.rangeLength=0,this.prefixCode=Ce[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=Ce[0],this.prefixLength=Ce[1],this.rangeLength=Ce[2],this.prefixCode=Ce[3],this.isLowerRange=Ce[4]==="lower")}}class Te{constructor(Ce){this.children=[],Ce?(this.isLeaf=!0,this.rangeLength=Ce.rangeLength,this.rangeLow=Ce.rangeLow,this.isLowerRange=Ce.isLowerRange,this.isOOB=Ce.isOOB):this.isLeaf=!1}buildTree(Ce,oe){const pe=Ce.prefixCode>>oe&1;if(oe<=0)this.children[pe]=new Te(Ce);else{let xe=this.children[pe];xe||(this.children[pe]=xe=new Te(null)),xe.buildTree(Ce,oe-1)}}decodeNode(Ce){if(this.isLeaf){if(this.isOOB)return null;const pe=Ce.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-pe:pe)}const oe=this.children[Ce.readBit()];if(!oe)throw new e("invalid Huffman data");return oe.decodeNode(Ce)}}class me{constructor(Ce,oe){oe||this.assignPrefixCodes(Ce),this.rootNode=new Te(null);for(let pe=0,xe=Ce.length;pe0&&this.rootNode.buildTree(Ne,Ne.prefixLength-1)}}decode(Ce){return this.rootNode.decodeNode(Ce)}assignPrefixCodes(Ce){const oe=Ce.length;let pe=0;for(let qe=0;qe>1&7)+1,Fe=(pe>>4&7)+1,Pe=[];let qe,Le,Oe=xe;do qe=ke.readBits(De),Le=ke.readBits(Fe),Pe.push(new ie([Oe,qe,Le,0])),Oe+=1<=this.end)throw new e("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}const Ce=this.currentByte>>this.shift&1;return this.shift--,Ce}readBits(Ce){let oe=0,pe;for(pe=Ce-1;pe>=0;pe--)oe|=this.readBit()<=this.end?-1:this.data[this.position++]}}function ae(Ie,Ce,oe){let pe=0;for(let xe=0,Ne=Ce.length;xe=32){let Ae,Ve,$e;switch(Ee){case 32:if(Oe===0)throw new e("no previous value in symbol ID table");Ve=xe.readBits(2)+3,Ae=Ne[Oe-1].prefixLength;break;case 33:Ve=xe.readBits(3)+3,Ae=0;break;case 34:Ve=xe.readBits(7)+11,Ae=0;break;default:throw new e("invalid code length in symbol ID table")}for($e=0;$e>Le&1,Le--}if(pe&&!Fe)for(let qe=0;qe<5&&Ne.readNextChar()!==-1;qe++);return ke}class se{parseChunks(Ce){return fe(Ce)}parse(Ce){throw new Error("Not implemented: Jbig2Image.parse")}}a.Jbig2Image=se},(x,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ArithmeticDecoder=void 0;const g=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}];class n{constructor(R,v,e){this.data=R,this.bp=v,this.dataEnd=e,this.chigh=R[v],this.clow=0,this.byteIn(),this.chigh=this.chigh<<7&65535|this.clow>>9&127,this.clow=this.clow<<7&65535,this.ct-=7,this.a=32768}byteIn(){const R=this.data;let v=this.bp;R[v]===255?R[v+1]>143?(this.clow+=65280,this.ct=8):(v++,this.clow+=R[v]<<9,this.ct=7,this.bp=v):(v++,this.clow+=v65535&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(R,v){let e=R[v]>>1,L=R[v]&1;const O=g[e],B=O.qe;let P,S=this.a-B;if(this.chigh>15&1,this.clow=this.clow<<1&65535,this.ct--;while(!(S&32768));return this.a=S,R[v]=e<<1|L,P}}a.ArithmeticDecoder=n},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.JpegStream=void 0;var n=g(144),c=g(130),R=g(153),v=g(2);class e extends n.DecodeStream{constructor(O,B,P){let S;for(;(S=O.getByte())!==-1;)if(S===255){O.skip(-1);break}super(B),this.stream=O,this.dict=O.dict,this.maybeLength=B,this.params=P}get bytes(){return(0,v.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(O){}readBlock(){if(this.eof)return;const O={decodeTransform:void 0,colorTransform:void 0},B=this.dict.getArray("D","Decode");if(this.forceRGB&&Array.isArray(B)){const _=this.dict.get("BPC","BitsPerComponent")||8,l=B.length,y=new Int32Array(l);let D=!1;const M=(1<<_)-1;for(let F=0;F{Object.defineProperty(a,"__esModule",{value:!0}),a.JpegImage=void 0;var n=g(2),c=g(131);class R extends n.BaseException{constructor(H){super(`JPEG error: ${H}`,"JpegError")}}class v extends n.BaseException{constructor(H,z){super(H,"DNLMarkerError"),this.scanLines=z}}class e extends n.BaseException{constructor(H){super(H,"EOIMarkerError")}}const L=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),O=4017,B=799,P=3406,S=2276,_=1567,l=3784,y=5793,D=2896;function M(V,H){let z=0,X,q,$=16;for(;$>0&&!V[$-1];)$--;const fe=[{children:[],index:0}];let Q=fe[0],ie;for(X=0;X<$;X++){for(q=0;q0;)Q=fe.pop();for(Q.index++,fe.push(Q);fe.length<=X;)fe.push(ie={children:[],index:0}),Q.children[Q.index]=ie.children,Q=ie;z++}X+1<$&&(fe.push(ie={children:[],index:0}),Q.children[Q.index]=ie.children,Q=ie)}return fe[0].children}function F(V,H,z){return 64*((V.blocksPerLine+1)*H+z)}function N(V,H,z,X,q,$,fe,Q,ie){let Te=arguments.length>9&&arguments[9]!==void 0?arguments[9]:!1;const me=z.mcusPerLine,K=z.progressive,ce=H;let de=0,Z=0;function ae(){if(Z>0)return Z--,de>>Z&1;if(de=V[H++],de===255){const et=V[H++];if(et){if(et===220&&Te){H+=2;const tt=(0,c.readUint16)(V,H);if(H+=2,tt>0&&tt!==z.scanLines)throw new v("Found DNL marker (0xFFDC) while parsing scan data",tt)}else if(et===217){if(Te){const tt=ke*(z.precision===8?8:0);if(tt>0&&Math.round(z.scanLines/tt)>=10)throw new v("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",tt)}throw new e("Found EOI marker (0xFFD9) while parsing scan data")}throw new R(`unexpected marker ${(de<<8|et).toString(16)}`)}}return Z=7,de>>>7}function he(et){let tt=et;for(;;){switch(tt=tt[ae()],typeof tt){case"number":return tt;case"object":continue}throw new R("invalid huffman sequence")}}function we(et){let tt=0;for(;et>0;)tt=tt<<1|ae(),et--;return tt}function _e(et){if(et===1)return ae()===1?1:-1;const tt=we(et);return tt>=1<>4;if(at===0){if(ot<15)break;nt+=16;continue}nt+=ot;const Xe=L[nt];et.blockData[tt+Xe]=_e(at),nt++}}function se(et,tt){const je=he(et.huffmanTableDC),Je=je===0?0:_e(je)<0){Ce--;return}let je=$;const Je=fe;for(;je<=Je;){const nt=he(et.huffmanTableAC),Ke=nt&15,at=nt>>4;if(Ke===0){if(at<15){Ce=we(at)+(1<>4,Ke===0)nt<15?(Ce=we(nt)+(1<0){for(Le=0;Le0?"unexpected":"excessive";(0,n.warn)(`decodeScan - ${tt} MCU data, current marker is: ${Ue.invalid}`),H=Ue.offset}if(Ue.marker>=65488&&Ue.marker<=65495)H+=2;else break}return H-ce}function G(V,H,z){const X=V.quantizationTable,q=V.blockData;let $,fe,Q,ie,Te,me,K,ce,de,Z,ae,he,we,_e,ye,se,Ie;if(!X)throw new R("missing required Quantization Table.");for(let Ce=0;Ce<64;Ce+=8){if(de=q[H+Ce],Z=q[H+Ce+1],ae=q[H+Ce+2],he=q[H+Ce+3],we=q[H+Ce+4],_e=q[H+Ce+5],ye=q[H+Ce+6],se=q[H+Ce+7],de*=X[Ce],!(Z|ae|he|we|_e|ye|se)){Ie=y*de+512>>10,z[Ce]=Ie,z[Ce+1]=Ie,z[Ce+2]=Ie,z[Ce+3]=Ie,z[Ce+4]=Ie,z[Ce+5]=Ie,z[Ce+6]=Ie,z[Ce+7]=Ie;continue}Z*=X[Ce+1],ae*=X[Ce+2],he*=X[Ce+3],we*=X[Ce+4],_e*=X[Ce+5],ye*=X[Ce+6],se*=X[Ce+7],$=y*de+128>>8,fe=y*we+128>>8,Q=ae,ie=ye,Te=D*(Z-se)+128>>8,ce=D*(Z+se)+128>>8,me=he<<4,K=_e<<4,$=$+fe+1>>1,fe=$-fe,Ie=Q*l+ie*_+128>>8,Q=Q*_-ie*l+128>>8,ie=Ie,Te=Te+K+1>>1,K=Te-K,ce=ce+me+1>>1,me=ce-me,$=$+ie+1>>1,ie=$-ie,fe=fe+Q+1>>1,Q=fe-Q,Ie=Te*S+ce*P+2048>>12,Te=Te*P-ce*S+2048>>12,ce=Ie,Ie=me*B+K*O+2048>>12,me=me*O-K*B+2048>>12,K=Ie,z[Ce]=$+ce,z[Ce+7]=$-ce,z[Ce+1]=fe+K,z[Ce+6]=fe-K,z[Ce+2]=Q+me,z[Ce+5]=Q-me,z[Ce+3]=ie+Te,z[Ce+4]=ie-Te}for(let Ce=0;Ce<8;++Ce){if(de=z[Ce],Z=z[Ce+8],ae=z[Ce+16],he=z[Ce+24],we=z[Ce+32],_e=z[Ce+40],ye=z[Ce+48],se=z[Ce+56],!(Z|ae|he|we|_e|ye|se)){Ie=y*de+8192>>14,Ie<-2040?Ie=0:Ie>=2024?Ie=255:Ie=Ie+2056>>4,q[H+Ce]=Ie,q[H+Ce+8]=Ie,q[H+Ce+16]=Ie,q[H+Ce+24]=Ie,q[H+Ce+32]=Ie,q[H+Ce+40]=Ie,q[H+Ce+48]=Ie,q[H+Ce+56]=Ie;continue}$=y*de+2048>>12,fe=y*we+2048>>12,Q=ae,ie=ye,Te=D*(Z-se)+2048>>12,ce=D*(Z+se)+2048>>12,me=he,K=_e,$=($+fe+1>>1)+4112,fe=$-fe,Ie=Q*l+ie*_+2048>>12,Q=Q*_-ie*l+2048>>12,ie=Ie,Te=Te+K+1>>1,K=Te-K,ce=ce+me+1>>1,me=ce-me,$=$+ie+1>>1,ie=$-ie,fe=fe+Q+1>>1,Q=fe-Q,Ie=Te*S+ce*P+2048>>12,Te=Te*P-ce*S+2048>>12,ce=Ie,Ie=me*B+K*O+2048>>12,me=me*O-K*B+2048>>12,K=Ie,de=$+ce,se=$-ce,Z=fe+K,ye=fe-K,ae=Q+me,_e=Q-me,he=ie+Te,we=ie-Te,de<16?de=0:de>=4080?de=255:de>>=4,Z<16?Z=0:Z>=4080?Z=255:Z>>=4,ae<16?ae=0:ae>=4080?ae=255:ae>>=4,he<16?he=0:he>=4080?he=255:he>>=4,we<16?we=0:we>=4080?we=255:we>>=4,_e<16?_e=0:_e>=4080?_e=255:_e>>=4,ye<16?ye=0:ye>=4080?ye=255:ye>>=4,se<16?se=0:se>=4080?se=255:se>>=4,q[H+Ce]=de,q[H+Ce+8]=Z,q[H+Ce+16]=ae,q[H+Ce+24]=he,q[H+Ce+32]=we,q[H+Ce+40]=_e,q[H+Ce+48]=ye,q[H+Ce+56]=se}}function W(V,H){const z=H.blocksPerLine,X=H.blocksPerColumn,q=new Int16Array(64);for(let $=0;$2&&arguments[2]!==void 0?arguments[2]:H;const X=V.length-1;let q=z=X)return null;const $=(0,c.readUint16)(V,H);if($>=65472&&$<=65534)return{invalid:null,marker:$,offset:H};let fe=(0,c.readUint16)(V,q);for(;!(fe>=65472&&fe<=65534);){if(++q>=X)return null;fe=(0,c.readUint16)(V,q)}return{invalid:$.toString(16),marker:fe,offset:q}}class Y{constructor(){let{decodeTransform:H=null,colorTransform:z=-1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this._decodeTransform=H,this._colorTransform=z}parse(H){let{dnlScanLines:z=null}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};function X(){const ae=(0,c.readUint16)(H,$);$+=2;let he=$+ae-2;const we=J(H,he,$);we&&we.invalid&&((0,n.warn)("readDataBlock - incorrect length, current marker is: "+we.invalid),he=we.offset);const _e=H.subarray($,he);return $+=_e.length,_e}function q(ae){const he=Math.ceil(ae.samplesPerLine/8/ae.maxH),we=Math.ceil(ae.scanLines/8/ae.maxV);for(let _e=0,ye=ae.components.length;_e>4)if(Ee>>4===1)for(he=0;he<64;he++)Ie=L[he],Ae[Ie]=(0,c.readUint16)(H,$),$+=2;else throw new R("DQT - invalid table spec");else for(he=0;he<64;he++)Ie=L[he],Ae[Ie]=H[$++];K[Ee&15]=Ae}break;case 65472:case 65473:case 65474:if(ie)throw new R("Only single frame JPEGs supported");$+=2,ie={},ie.extended=Z===65473,ie.progressive=Z===65474,ie.precision=H[$++];const Ce=(0,c.readUint16)(H,$);$+=2,ie.scanLines=z||Ce,ie.samplesPerLine=(0,c.readUint16)(H,$),$+=2,ie.components=[],ie.componentIds={};const oe=H[$++];let pe=0,xe=0;for(ae=0;ae>4,Ve=H[$+1]&15;pe>4?ce:de)[Ee&15]=M(Ae,$e)}break;case 65501:$+=2,Te=(0,c.readUint16)(H,$),$+=2;break;case 65498:const ke=++me===1&&!z;$+=2;const De=H[$++],Fe=[];for(ae=0;ae>4],Ve.huffmanTableAC=ce[$e&15],Fe.push(Ve)}const Pe=H[$++],qe=H[$++],Le=H[$++];try{const Ee=N(H,$,ie,Fe,Te,Pe,qe,Le>>4,Le&15,ke);$+=Ee}catch(Ee){if(Ee instanceof v)return(0,n.warn)(`${Ee.message} -- attempting to re-parse the JPEG image.`),this.parse(H,{dnlScanLines:Ee.scanLines});if(Ee instanceof e){(0,n.warn)(`${Ee.message} -- ignoring the rest of the image data.`);break e}throw Ee}break;case 65500:$+=4;break;case 65535:H[$]!==255&&$--;break;default:const Oe=J(H,$-2,$-3);if(Oe&&Oe.invalid){(0,n.warn)("JpegImage.parse - unexpected data, current marker is: "+Oe.invalid),$=Oe.offset;break}if(!Oe||$>=H.length-1){(0,n.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new R("JpegImage.parse - unknown marker: "+Z.toString(16))}Z=(0,c.readUint16)(H,$),$+=2}this.width=ie.samplesPerLine,this.height=ie.scanLines,this.jfif=fe,this.adobe=Q,this.components=[];for(let ae=0,he=ie.components.length;ae2&&arguments[2]!==void 0?arguments[2]:!1;const q=this.width/H,$=this.height/z;let fe,Q,ie,Te,me,K,ce,de,Z,ae,he=0,we;const _e=this.components.length,ye=H*z*_e,se=new Uint8ClampedArray(ye),Ie=new Uint32Array(H),Ce=4294967288;let oe;for(ce=0;ce<_e;ce++){if(fe=this.components[ce],Q=fe.scaleX*q,ie=fe.scaleY*$,he=ce,we=fe.output,Te=fe.blocksPerLine+1<<3,Q!==oe){for(me=0;me>8)+pe[Z+1];return se}get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:this.numComponents===3?this._colorTransform===0?!1:!(this.components[0].index===82&&this.components[1].index===71&&this.components[2].index===66):this._colorTransform===1}_convertYccToRgb(H){let z,X,q;for(let $=0,fe=H.length;$4)throw new R("Unsupported color mode");const fe=this._getLinearizedBlockData(z,X,$);if(this.numComponents===1&&q){const Q=fe.length,ie=new Uint8ClampedArray(Q*3);let Te=0;for(let me=0;me{Object.defineProperty(a,"__esModule",{value:!0}),a.JpxStream=void 0;var n=g(144),c=g(155),R=g(2);class v extends n.DecodeStream{constructor(L,O,B){super(O),this.stream=L,this.dict=L.dict,this.maybeLength=O,this.params=B}get bytes(){return(0,R.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(L){}readBlock(){if(this.eof)return;const L=new c.JpxImage;L.parse(this.bytes);const O=L.width,B=L.height,P=L.componentsCount,S=L.tiles.length;if(S===1)this.buffer=L.tiles[0].items;else{const _=new Uint8ClampedArray(O*B*P);for(let l=0;l{Object.defineProperty(a,"__esModule",{value:!0}),a.JpxImage=void 0;var n=g(2),c=g(131),R=g(151);class v extends n.BaseException{constructor(K){super(`JPX error: ${K}`,"JpxError")}}const e={LL:0,LH:1,HL:1,HH:2};class L{constructor(){this.failOnCorruptedImage=!1}parse(K){if((0,c.readUint16)(K,0)===65359){this.parseCodestream(K,0,K.length);return}const de=K.length;let Z=0;for(;Z>24&255,we>>16&255,we>>8&255,we&255);(0,n.warn)(`Unsupported header type ${we} (${Ie}).`);break}ye&&(Z+=_e)}}parseImageProperties(K){let ce=K.getByte();for(;ce>=0;){const de=ce;if(ce=K.getByte(),(de<<8|ce)===65361){K.skip(4);const ae=K.getInt32()>>>0,he=K.getInt32()>>>0,we=K.getInt32()>>>0,_e=K.getInt32()>>>0;K.skip(16);const ye=K.getUint16();this.width=ae-we,this.height=he-_e,this.componentsCount=ye,this.bitsPerComponent=8;return}}throw new v("No size marker found in JPX stream")}parseCodestream(K,ce,de){const Z={};let ae=!1;try{let he=ce;for(;he+1>5,Ie=[];ye<_e+he;){const Ae={};Ce===8?(Ae.epsilon=K[ye++]>>3,Ae.mu=0):(Ae.epsilon=K[ye]>>3,Ae.mu=(K[ye]&7)<<8|K[ye+1],ye+=2),Ie.push(Ae)}De.SPqcds=Ie,Z.mainHeader?Z.QCD=De:(Z.currentTile.QCD=De,Z.currentTile.QCC=[]);break;case 65373:_e=(0,c.readUint16)(K,he);const Fe={};ye=he+2;let Pe;switch(Z.SIZ.Csiz<257?Pe=K[ye++]:(Pe=(0,c.readUint16)(K,ye),ye+=2),se=K[ye++],se&31){case 0:Ce=8,oe=!0;break;case 1:Ce=16,oe=!1;break;case 2:Ce=16,oe=!0;break;default:throw new Error("Invalid SQcd value "+se)}for(Fe.noQuantization=Ce===8,Fe.scalarExpounded=oe,Fe.guardBits=se>>5,Ie=[];ye<_e+he;){const Ae={};Ce===8?(Ae.epsilon=K[ye++]>>3,Ae.mu=0):(Ae.epsilon=K[ye]>>3,Ae.mu=(K[ye]&7)<<8|K[ye+1],ye+=2),Ie.push(Ae)}Fe.SPqcds=Ie,Z.mainHeader?Z.QCC[Pe]=Fe:Z.currentTile.QCC[Pe]=Fe;break;case 65362:_e=(0,c.readUint16)(K,he);const qe={};ye=he+2;const Le=K[ye++];qe.entropyCoderWithCustomPrecincts=!!(Le&1),qe.sopMarkerUsed=!!(Le&2),qe.ephMarkerUsed=!!(Le&4),qe.progressionOrder=K[ye++],qe.layersCount=(0,c.readUint16)(K,ye),ye+=2,qe.multipleComponentTransform=K[ye++],qe.decompositionLevelsCount=K[ye++],qe.xcb=(K[ye++]&15)+2,qe.ycb=(K[ye++]&15)+2;const Oe=K[ye++];if(qe.selectiveArithmeticCodingBypass=!!(Oe&1),qe.resetContextProbabilities=!!(Oe&2),qe.terminationOnEachCodingPass=!!(Oe&4),qe.verticallyStripe=!!(Oe&8),qe.predictableTermination=!!(Oe&16),qe.segmentationSymbolUsed=!!(Oe&32),qe.reversibleTransformation=K[ye++],qe.entropyCoderWithCustomPrecincts){const Ae=[];for(;ye<_e+he;){const Ve=K[ye++];Ae.push({PPx:Ve&15,PPy:Ve>>4})}qe.precinctsSizes=Ae}const Ee=[];qe.selectiveArithmeticCodingBypass&&Ee.push("selectiveArithmeticCodingBypass"),qe.terminationOnEachCodingPass&&Ee.push("terminationOnEachCodingPass"),qe.verticallyStripe&&Ee.push("verticallyStripe"),qe.predictableTermination&&Ee.push("predictableTermination"),Ee.length>0&&(ae=!0,(0,n.warn)(`JPX: Unsupported COD options (${Ee.join(", ")}).`)),Z.mainHeader?Z.COD=qe:(Z.currentTile.COD=qe,Z.currentTile.COC=[]);break;case 65424:_e=(0,c.readUint16)(K,he),pe={},pe.index=(0,c.readUint16)(K,he+2),pe.length=(0,c.readUint32)(K,he+4),pe.dataEnd=pe.length+he-2,pe.partIndex=K[he+8],pe.partsCount=K[he+9],Z.mainHeader=!1,pe.partIndex===0&&(pe.COD=Z.COD,pe.COC=Z.COC.slice(0),pe.QCD=Z.QCD,pe.QCC=Z.QCC.slice(0)),Z.currentTile=pe;break;case 65427:pe=Z.currentTile,pe.partIndex===0&&(X(Z,pe.index),J(Z)),_e=pe.dataEnd-he,Y(Z,K,he,_e);break;case 65363:(0,n.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:_e=(0,c.readUint16)(K,he);break;default:throw new Error("Unknown codestream code: "+we.toString(16))}he+=_e}}catch(he){if(ae||this.failOnCorruptedImage)throw new v(he.message);(0,n.warn)(`JPX: Trying to recover from: "${he.message}".`)}this.tiles=z(Z),this.width=Z.SIZ.Xsiz-Z.SIZ.XOsiz,this.height=Z.SIZ.Ysiz-Z.SIZ.YOsiz,this.componentsCount=Z.SIZ.Csiz}}a.JpxImage=L;function O(me,K){me.x0=Math.ceil(K.XOsiz/me.XRsiz),me.x1=Math.ceil(K.Xsiz/me.XRsiz),me.y0=Math.ceil(K.YOsiz/me.YRsiz),me.y1=Math.ceil(K.Ysiz/me.YRsiz),me.width=me.x1-me.x0,me.height=me.y1-me.y0}function B(me,K){const ce=me.SIZ,de=[];let Z;const ae=Math.ceil((ce.Xsiz-ce.XTOsiz)/ce.XTsiz),he=Math.ceil((ce.Ysiz-ce.YTOsiz)/ce.YTsiz);for(let _e=0;_e0?Math.min(de.xcb,Z.PPx-1):Math.min(de.xcb,Z.PPx),Z.ycb_=ce>0?Math.min(de.ycb,Z.PPy-1):Math.min(de.ycb,Z.PPy),Z}function S(me,K,ce){const de=1<K.trx0?Math.ceil(K.trx1/de)-Math.floor(K.trx0/de):0,ye=K.try1>K.try0?Math.ceil(K.try1/Z)-Math.floor(K.try0/Z):0,se=_e*ye;K.precinctParameters={precinctWidth:de,precinctHeight:Z,numprecinctswide:_e,numprecinctshigh:ye,numprecincts:se,precinctWidthInSubband:he,precinctHeightInSubband:we}}function _(me,K,ce){const de=ce.xcb_,Z=ce.ycb_,ae=1<>de,_e=K.tby0>>Z,ye=K.tbx1+ae-1>>de,se=K.tby1+he-1>>Z,Ie=K.resolution.precinctParameters,Ce=[],oe=[];let pe,xe,Ne,ke;for(xe=_e;xePe.cbxMax&&(Pe.cbxMax=pe),xePe.cbyMax&&(Pe.cbyMax=xe)):oe[ke]=Pe={cbxMin:pe,cbyMin:xe,cbxMax:pe,cbyMax:xe},Ne.precinct=Pe}K.codeblockParameters={codeblockWidth:de,codeblockHeight:Z,numcodeblockwide:ye-we+1,numcodeblockhigh:se-_e+1},K.codeblocks=Ce,K.precincts=oe}function l(me,K,ce){const de=[],Z=me.subbands;for(let ae=0,he=Z.length;aeCe.codingStyleParameters.decompositionLevelsCount)continue;const oe=Ce.resolutions[_e],pe=oe.precinctParameters.numprecincts;for(;seCe.codingStyleParameters.decompositionLevelsCount)continue;const oe=Ce.resolutions[we],pe=oe.precinctParameters.numprecincts;for(;seoe.codingStyleParameters.decompositionLevelsCount)continue;const pe=oe.resolutions[we],xe=pe.precinctParameters.numprecincts;if(!(ye>=xe)){for(;he=0;--Ne){const ke=_e.resolutions[Ne],De=xe*ke.precinctParameters.precinctWidth,Fe=xe*ke.precinctParameters.precinctHeight;Ie=Math.min(Ie,De),Ce=Math.min(Ce,Fe),oe=Math.max(oe,ke.precinctParameters.numprecinctswide),pe=Math.max(pe,ke.precinctParameters.numprecinctshigh),se[Ne]={width:De,height:Fe},xe<<=1}ce=Math.min(ce,Ie),de=Math.min(de,Ce),Z=Math.max(Z,oe),ae=Math.max(ae,pe),he[we]={resolutions:se,minWidth:Ie,minHeight:Ce,maxNumWide:oe,maxNumHigh:pe}}return{components:he,minWidth:ce,minHeight:de,maxNumWide:Z,maxNumHigh:ae}}function J(me){const K=me.SIZ,ce=me.currentTile.index,de=me.tiles[ce],Z=K.Csiz;for(let he=0;he>>he&(1<0;){const Le=Pe.shift();qe=Le.codeblock,qe.data===void 0&&(qe.data=[]),qe.data.push({data:K,start:ce+Z,end:ce+Z+Le.dataLength,codingpasses:Le.codingpasses}),Z+=Le.dataLength}}return Z}function V(me,K,ce,de,Z,ae,he,we,_e){const ye=de.tbx0,se=de.tby0,Ie=de.tbx1-de.tbx0,Ce=de.codeblocks,oe=de.type.charAt(0)==="H"?1:0,pe=de.type.charAt(1)==="H"?K:0;for(let xe=0,Ne=Ce.length;xe=ae?me[Ye]=Ke:me[Ye]=Ke*(1<0?1-De:0));const $e=Fe.subbands[Oe],Ue=e[$e.type],He=oe?1:2**(Ce+Ue-Ve)*(1+Ae/2048),Qe=ye+Ve-1;V(Le,Pe,qe,$e,He,Qe,oe,se,Ie)}xe.push({width:Pe,height:qe,items:Le})}const ke=pe.calculate(xe,de.tcx0,de.tcy0);return{left:de.tcx0,top:de.tcy0,width:ke.width,height:ke.height,items:ke.items}}function z(me){const K=me.SIZ,ce=me.components,de=K.Csiz,Z=[];for(let ae=0,he=me.tiles.length;ae>2);se[pe++]=$e+Fe>>Ce,se[pe++]=$e>>Ce,se[pe++]=$e+De>>Ce}else for(xe=0;xe>Ce,se[pe++]=ke-.34413*De-.71414*Fe>>Ce,se[pe++]=ke+1.772*De>>Ce;if(Pe)for(xe=0,pe=3;xe>Ce}else for(let Pe=0;Pe>Ce,pe+=de}Z.push(Ie)}return Z}function X(me,K){const de=me.SIZ.Csiz,Z=me.tiles[K];for(let ae=0;ae>=1,ce>>=1,de++}de--,ae=this.levels[de],ae.items[ae.index]=Z,this.currentLevel=de,delete this.value}incrementValue(){const K=this.levels[this.currentLevel];K.items[K.index]++}nextLevel(){let K=this.currentLevel,ce=this.levels[K];const de=ce.items[ce.index];return K--,K<0?(this.value=de,!1):(this.currentLevel=K,ce=this.levels[K],ce.items[ce.index]=de,!0)}}class ${constructor(K,ce,de){const Z=(0,c.log2)(Math.max(K,ce))+1;this.levels=[];for(let ae=0;aede)return this.currentLevel=Z,this.propagateValues(),!1;K>>=1,ce>>=1,Z++}return this.currentLevel=Z-1,!0}incrementValue(K){const ce=this.levels[this.currentLevel];ce.items[ce.index]=K+1,this.propagateValues()}propagateValues(){let K=this.currentLevel,ce=this.levels[K];const de=ce.items[ce.index];for(;--K>=0;)ce=this.levels[K],ce.items[ce.index]=de}nextLevel(){let K=this.currentLevel,ce=this.levels[K];const de=ce.items[ce.index];return ce.items[ce.index]=255,K--,K<0?!1:(this.currentLevel=K,ce=this.levels[K],ce.items[ce.index]=de,!0)}}const fe=function(){const de=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]),Z=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]),ae=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]);class he{constructor(_e,ye,se,Ie,Ce){this.width=_e,this.height=ye;let oe;se==="HH"?oe=ae:se==="HL"?oe=Z:oe=de,this.contextLabelTable=oe;const pe=_e*ye;this.neighborsSignificance=new Uint8Array(pe),this.coefficentsSign=new Uint8Array(pe);let xe;Ce>14?xe=new Uint32Array(pe):Ce>6?xe=new Uint16Array(pe):xe=new Uint8Array(pe),this.coefficentsMagnitude=xe,this.processingFlags=new Uint8Array(pe);const Ne=new Uint8Array(pe);if(Ie!==0)for(let ke=0;ke0,xe=ye+10&&(Ne=se-Ce,pe&&(Ie[Ne-1]+=16),xe&&(Ie[Ne+1]+=16),Ie[Ne]+=4),_e+1=se)break;if(pe[Oe]&=De,Ie[Oe]||!oe[Oe])continue;const Ve=Ne[oe[Oe]];if(_e.readBit(xe,Ve)){const Ue=this.decodeSignBit(Ae,Le,Oe);Ce[Oe]=Ue,Ie[Oe]=1,this.setNeighborsSignificance(Ae,Le,Oe),pe[Oe]|=Pe}ke[Oe]++,pe[Oe]|=Fe}}}decodeSignBit(_e,ye,se){const Ie=this.width,Ce=this.height,oe=this.coefficentsMagnitude,pe=this.coefficentsSign;let xe,Ne,ke,De,Fe,Pe;De=ye>0&&oe[se-1]!==0,ye+10&&oe[se-Ie]!==0,_e+1=0?(Fe=9+xe,Pe=this.decoder.readBit(this.contexts,Fe)):(Fe=9-xe,Pe=this.decoder.readBit(this.contexts,Fe)^1),Pe}runMagnitudeRefinementPass(){const _e=this.decoder,ye=this.width,se=this.height,Ie=this.coefficentsMagnitude,Ce=this.neighborsSignificance,oe=this.contexts,pe=this.bitsDecoded,xe=this.processingFlags,Ne=1,ke=2,De=ye*se,Fe=ye*4;for(let Pe=0,qe;Pe>1;ce|=0;let ae,he,we,_e;const ye=-1.586134342059924,se=-.052980118572961,Ie=.882911075530934,Ce=.443506852043971,oe=1.230174104914001,pe=1/oe;for(ae=ce-3,he=Z+4;he--;ae+=2)K[ae]*=pe;for(ae=ce-2,we=Ce*K[ae-1],he=Z+3;he--&&(_e=Ce*K[ae+1],K[ae]=oe*K[ae]-we-_e,he--);ae+=2)ae+=2,we=Ce*K[ae+1],K[ae]=oe*K[ae]-we-_e;for(ae=ce-1,we=Ie*K[ae-1],he=Z+2;he--&&(_e=Ie*K[ae+1],K[ae]-=we+_e,he--);ae+=2)ae+=2,we=Ie*K[ae+1],K[ae]-=we+_e;for(ae=ce,we=se*K[ae-1],he=Z+1;he--&&(_e=se*K[ae+1],K[ae]-=we+_e,he--);ae+=2)ae+=2,we=se*K[ae+1],K[ae]-=we+_e;if(Z!==0)for(ae=ce+1,we=ye*K[ae-1],he=Z;he--&&(_e=ye*K[ae+1],K[ae]-=we+_e,he--);ae+=2)ae+=2,we=ye*K[ae+1],K[ae]-=we+_e}}class Te extends Q{filter(K,ce,de){const Z=de>>1;ce|=0;let ae,he;for(ae=ce,he=Z+1;he--;ae+=2)K[ae]-=K[ae-1]+K[ae+1]+2>>2;for(ae=ce+1,he=Z;he--;ae+=2)K[ae]+=K[ae-1]+K[ae+1]>>1}}},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.LZWStream=void 0;var n=g(144);class c extends n.DecodeStream{constructor(v,e,L){super(e),this.str=v,this.dict=v.dict,this.cachedData=0,this.bitsCached=0;const O=4096,B={earlyChange:L,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(O),dictionaryLengths:new Uint16Array(O),dictionaryPrevCodes:new Uint16Array(O),currentSequence:new Uint8Array(O),currentSequenceLength:0};for(let P=0;P<256;++P)B.dictionaryValues[P]=P,B.dictionaryLengths[P]=1;this.lzwState=B}readBits(v){let e=this.bitsCached,L=this.cachedData;for(;e>>e&(1<0;if(H<256)G[0]=H,W=1;else if(H>=258)if(H=0;B--)G[B]=y[P],P=M[P];else G[W++]=G[0];else if(H===256){F=9,l=258,W=0;continue}else{this.eof=!0,delete this.lzwState;break}if(z&&(M[l]=N,D[l]=D[N]+1,y[l]=G[0],l++,F=l+_&l+_-1?F:Math.min(Math.log(l+_)/.6931471805599453+1,12)|0),N=H,J+=W,L{Object.defineProperty(a,"__esModule",{value:!0}),a.PredictorStream=void 0;var n=g(144),c=g(130),R=g(2);class v extends n.DecodeStream{constructor(L,O,B){if(super(O),!(B instanceof c.Dict))return L;const P=this.predictor=B.get("Predictor")||1;if(P<=1)return L;if(P!==2&&(P<10||P>15))throw new R.FormatError(`Unsupported predictor: ${P}`);P===2?this.readBlock=this.readBlockTiff:this.readBlock=this.readBlockPng,this.str=L,this.dict=L.dict;const S=this.colors=B.get("Colors")||1,_=this.bits=B.get("BPC","BitsPerComponent")||8,l=this.columns=B.get("Columns")||1;return this.pixBytes=S*_+7>>3,this.rowBytes=l*S*_+7>>3,this}readBlockTiff(){const L=this.rowBytes,O=this.bufferLength,B=this.ensureBuffer(O+L),P=this.bits,S=this.colors,_=this.str.getBytes(L);if(this.eof=!_.length,this.eof)return;let l=0,y=0,D=0,M=0,F=O,N;if(P===1&&S===1)for(N=0;N>1,G^=G>>2,G^=G>>4,l=(G&1)<<7,B[F++]=G}else if(P===8){for(N=0;N>8&255,B[F++]=W&255}}else{const G=new Uint8Array(S+1),W=(1<>D-P)&W,D-=P,y=y<=8&&(B[Y++]=y>>M-8&255,M-=8);M>0&&(B[Y++]=(y<<8-M)+(l&(1<<8-M)-1))}this.bufferLength+=L}readBlockPng(){const L=this.rowBytes,O=this.pixBytes,B=this.str.getByte(),P=this.str.getBytes(L);if(this.eof=!P.length,this.eof)return;const S=this.bufferLength,_=this.ensureBuffer(S+L);let l=_.subarray(S-L,S);l.length===0&&(l=new Uint8Array(L));let y,D=S,M,F;switch(B){case 0:for(y=0;y>1)+P[y];for(;y>1)+P[y]&255,D++;break;case 4:for(y=0;y{Object.defineProperty(a,"__esModule",{value:!0}),a.RunLengthStream=void 0;var n=g(144);class c extends n.DecodeStream{constructor(v,e){super(e),this.str=v,this.dict=v.dict}readBlock(){const v=this.str.getBytes(2);if(!v||v.length<2||v[0]===128){this.eof=!0;return}let e,L=this.bufferLength,O=v[0];if(O<128){if(e=this.ensureBuffer(L+O+1),e[L++]=v[1],O>0){const B=this.str.getBytes(O);e.set(B,L),L+=O}}else{O=257-O;const B=v[1];e=this.ensureBuffer(L+O+1);for(let P=0;P{Object.defineProperty(a,"__esModule",{value:!0}),a.Font=a.ErrorFont=void 0;var n=g(2),c=g(160),R=g(163),v=g(165),e=g(164),L=g(162),O=g(166),B=g(167),P=g(168),S=g(169),_=g(170),l=g(171),y=g(141),D=g(172),M=g(131),F=g(135),N=g(173);const G=[[57344,63743],[1048576,1114109]],W=1e3,J=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","fontType","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","type","vertical"],Y=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function V(Fe){if(!Fe.fontMatrix||Fe.fontMatrix[0]===n.FONT_IDENTITY_MATRIX[0])return;const Pe=.001/Fe.fontMatrix[0],qe=Fe.widths;for(const Le in qe)qe[Le]*=Pe;Fe.defaultWidth*=Pe}function H(Fe,Pe){if(Fe.isInternalFont||Pe===Fe.defaultEncoding||Fe.toUnicode instanceof B.IdentityToUnicodeMap)return;const qe=[],Le=(0,e.getGlyphsUnicode)();for(const Oe in Pe){if(Fe.hasIncludedToUnicodeMap){if(Fe.toUnicode.has(Oe))continue}else if(Fe.hasEncoding&&(Fe.differences.length===0||Fe.differences[Oe]!==void 0))continue;const Ee=Pe[Oe],Ae=(0,v.getUnicodeForGlyph)(Ee,Le);Ae!==-1&&(qe[Oe]=String.fromCharCode(Ae))}qe.length>0&&Fe.toUnicode.amend(qe)}function z(Fe){if(!Fe.fallbackToUnicode||Fe.toUnicode instanceof B.IdentityToUnicodeMap)return;const Pe=[];for(const qe in Fe.fallbackToUnicode)Fe.toUnicode.has(qe)||(Pe[qe]=Fe.fallbackToUnicode[qe]);Pe.length>0&&Fe.toUnicode.amend(Pe)}class X{constructor(Pe,qe,Le,Oe,Ee,Ae,Ve,$e,Ue){this.originalCharCode=Pe,this.fontChar=qe,this.unicode=Le,this.accent=Oe,this.width=Ee,this.vmetric=Ae,this.operatorListId=Ve,this.isSpace=$e,this.isInFont=Ue;const He=(0,v.getCharUnicodeCategory)(Le);this.isWhitespace=He.isWhitespace,this.isZeroWidthDiacritic=He.isZeroWidthDiacritic,this.isInvisibleFormatMark=He.isInvisibleFormatMark}matchesForCache(Pe,qe,Le,Oe,Ee,Ae,Ve,$e,Ue){return this.originalCharCode===Pe&&this.fontChar===qe&&this.unicode===Le&&this.accent===Oe&&this.width===Ee&&this.vmetric===Ae&&this.operatorListId===Ve&&this.isSpace===$e&&this.isInFont===Ue}}function q(Fe,Pe){return(Fe<<8)+Pe}function $(Fe,Pe,qe){Fe[Pe+1]=qe,Fe[Pe]=qe>>>8}function fe(Fe,Pe){const qe=(Fe<<8)+Pe;return qe&32768?qe-65536:qe}function Q(Fe,Pe,qe,Le){return(Fe<<24)+(Pe<<16)+(qe<<8)+Le}function ie(Fe){return String.fromCharCode(Fe>>8&255,Fe&255)}function Te(Fe){return Fe>32767?Fe=32767:Fe<-32768&&(Fe=-32768),String.fromCharCode(Fe>>8&255,Fe&255)}function me(Fe){const Pe=Fe.peekBytes(4);return(0,M.readUint32)(Pe,0)===65536||(0,n.bytesToString)(Pe)==="true"}function K(Fe){const Pe=Fe.peekBytes(4);return(0,n.bytesToString)(Pe)==="ttcf"}function ce(Fe){const Pe=Fe.peekBytes(4);return(0,n.bytesToString)(Pe)==="OTTO"}function de(Fe){const Pe=Fe.peekBytes(2);return Pe[0]===37&&Pe[1]===33||Pe[0]===128&&Pe[1]===1}function Z(Fe){const Pe=Fe.peekBytes(4);return Pe[0]>=1&&Pe[3]>=1&&Pe[3]<=4}function ae(Fe,Pe){let{type:qe,subtype:Le,composite:Oe}=Pe,Ee,Ae;return me(Fe)||K(Fe)?Oe?Ee="CIDFontType2":Ee="TrueType":ce(Fe)?Oe?Ee="CIDFontType2":Ee="OpenType":de(Fe)?Oe?Ee="CIDFontType0":Ee=qe==="MMType1"?"MMType1":"Type1":Z(Fe)?Oe?(Ee="CIDFontType0",Ae="CIDFontType0C"):(Ee=qe==="MMType1"?"MMType1":"Type1",Ae="Type1C"):((0,n.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),Ee=qe,Ae=Le),[Ee,Ae]}function he(Fe,Pe){for(const qe in Pe)Fe[+qe]=Pe[qe]}function we(Fe,Pe,qe){const Le=[];let Oe;for(let Ee=0,Ae=Fe.length;Ee2&&arguments[2]!==void 0?arguments[2]:!1;switch(Pe.length){case 1:return Pe.charCodeAt(0);case 2:return Pe.charCodeAt(0)<<8|Pe.charCodeAt(1)}const Le=`Unsupported CID string (charCode ${Fe}): "${Pe}".`;if(qe)throw new n.FormatError(Le);return(0,n.warn)(Le),Pe}function ye(Fe,Pe,qe,Le){const Oe=Object.create(null),Ee=new Map,Ae=[],Ve=new Set;let $e=0;const Ue=G[$e][0];let He=Ue,Qe=G[$e][1];for(let Ze in Fe){Ze|=0;let et=Fe[Ze];if(!Pe(et))continue;if(He>Qe){if($e++,$e>=G.length){(0,n.warn)("Ran out of space in font private use area.");break}He=G[$e][0],Qe=G[$e][1]}const tt=He++;et===0&&(et=qe);let je=Le.get(Ze);typeof je=="string"&&(je=je.codePointAt(0)),je&&je=qe||Le.push({fontCharCode:Ae|0,glyphId:Fe[Ae]});if(Pe)for(const[Ae,Ve]of Pe)Ve>=qe||Le.push({fontCharCode:Ae,glyphId:Ve});Le.length===0&&Le.push({fontCharCode:0,glyphId:0}),Le.sort(function(Ve,$e){return Ve.fontCharCode-$e.fontCharCode});const Oe=[],Ee=Le.length;for(let Ae=0;Ae65535?2:1;let Ee="\0\0"+ie(Oe)+"\0\0"+(0,n.string32)(4+Oe*8),Ae,Ve,$e,Ue;for(Ae=Le.length-1;Ae>=0&&!(Le[Ae][0]<=65535);--Ae);const He=Ae+1;Le[Ae][0]<65535&&Le[Ae][1]===65535&&(Le[Ae][1]=65534);const Qe=Le[Ae][1]<65535?1:0,Ze=He+Qe,et=D.OpenTypeFileBuilder.getSearchParams(Ze,2);let tt="",je="",Je="",nt="",Ke="",at=0,ot,Xe,ze,Ye;for(Ae=0,Ve=He;Ae0&&(je+="ÿÿ",tt+="ÿÿ",Je+="\0",nt+="\0\0");const st="\0\0"+ie(2*Ze)+ie(et.range)+ie(et.entry)+ie(et.rangeShift)+je+"\0\0"+tt+Je+nt+Ke;let _t="",ft="";if(Oe>1){for(Ee+=`\0\0 `+(0,n.string32)(4+Oe*8+4+st.length),_t="",Ae=0,Ve=Le.length;AeEe||(Pe.skip(6),Pe.getUint16()===0)?!1:(Fe.data[8]=Fe.data[9]=0,!0)}function oe(Fe,Pe,qe){qe=qe||{unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};let Le=0,Oe=0,Ee=0,Ae=0,Ve=null,$e=0;if(Pe){for(let Je in Pe){Je|=0,(Ve>Je||!Ve)&&(Ve=Je),$e 123 are reserved for internal usage")}$e>65535&&($e=65535)}else Ve=0,$e=255;const Ue=Fe.bbox||[0,0,0,0],He=qe.unitsPerEm||1/(Fe.fontMatrix||n.FONT_IDENTITY_MATRIX)[0],Qe=Fe.ascentScaled?1:He/W,Ze=qe.ascent||Math.round(Qe*(Fe.ascent||Ue[3]));let et=qe.descent||Math.round(Qe*(Fe.descent||Ue[1]));et>0&&Fe.descent>0&&Ue[1]<0&&(et=-et);const tt=qe.yMax||Ze,je=-qe.yMin||-et;return"\0$ô\0\0\0Š»\0\0\0ŒŠ»\0\0ß\x001\0\0\0\0"+String.fromCharCode(Fe.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,n.string32)(Le)+(0,n.string32)(Oe)+(0,n.string32)(Ee)+(0,n.string32)(Ae)+"*21*"+ie(Fe.italicAngle?1:0)+ie(Ve||Fe.firstChar)+ie($e||Fe.lastChar)+ie(Ze)+ie(et)+"\0d"+ie(tt)+ie(je)+"\0\0\0\0\0\0\0\0"+ie(Fe.xHeight)+ie(Fe.capHeight)+ie(0)+ie(Ve||Fe.firstChar)+"\0"}function pe(Fe){const Pe=Math.floor(Fe.italicAngle*65536);return"\0\0\0"+(0,n.string32)(Pe)+"\0\0\0\0"+(0,n.string32)(Fe.fixedPitch?1:0)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function xe(Fe){return Fe.replace(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function Ne(Fe,Pe){Pe||(Pe=[[],[]]);const qe=[Pe[0][0]||"Original licence",Pe[0][1]||Fe,Pe[0][2]||"Unknown",Pe[0][3]||"uniqueID",Pe[0][4]||Fe,Pe[0][5]||"Version 0.11",Pe[0][6]||xe(Fe),Pe[0][7]||"Unknown",Pe[0][8]||"Unknown",Pe[0][9]||"Unknown"],Le=[];let Oe,Ee,Ae,Ve,$e;for(Oe=0,Ee=qe.length;Oe0&&arguments[0]!==void 0?arguments[0]:!1)?[...J,...Y]:J,Le=Object.create(null);let Oe,Ee;for(Oe of qe)Ee=this[Oe],Ee!==void 0&&(Le[Oe]=Ee);return Le}fallbackToSystemFont(Pe){this.missingFile=!0;const qe=this.name,Le=this.type,Oe=this.subtype;let Ee=(0,R.normalizeFontName)(qe);const Ae=(0,O.getStdFontMap)(),Ve=(0,O.getNonStdFontMap)(),$e=!!Ae[Ee],Ue=!!(Ve[Ee]&&Ae[Ve[Ee]]);Ee=Ae[Ee]||Ve[Ee]||Ee;const Qe=(0,_.getFontBasicMetrics)()[Ee];Qe&&(isNaN(this.ascent)&&(this.ascent=Qe.ascent/W),isNaN(this.descent)&&(this.descent=Qe.descent/W),isNaN(this.capHeight)&&(this.capHeight=Qe.capHeight/W)),this.bold=Ee.search(/bold/gi)!==-1,this.italic=Ee.search(/oblique/gi)!==-1||Ee.search(/italic/gi)!==-1,this.black=qe.search(/Black/g)!==-1;const Ze=qe.search(/Narrow/g)!==-1;if(this.remeasure=(!$e||Ze)&&Object.keys(this.widths).length>0,($e||Ue)&&Le==="CIDFontType2"&&this.cidEncoding.startsWith("Identity-")){const et=Pe.cidToGidMap,tt=[];if(he(tt,(0,O.getGlyphMapForStandardFonts)()),/Arial-?Black/i.test(qe)?he(tt,(0,O.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(qe)&&he(tt,(0,O.getSupplementalGlyphMapForCalibri)()),et){for(const je in tt){const Je=tt[je];et[Je]!==void 0&&(tt[+je]=et[Je])}et.length!==this.toUnicode.length&&Pe.hasIncludedToUnicodeMap&&this.toUnicode instanceof B.IdentityToUnicodeMap&&this.toUnicode.forEach(function(je,Je){const nt=tt[je];et[nt]===void 0&&(tt[+je]=Je)})}this.toUnicode instanceof B.IdentityToUnicodeMap||this.toUnicode.forEach(function(je,Je){tt[+je]=Je}),this.toFontChar=tt,this.toUnicode=new B.ToUnicodeMap(tt)}else if(/Symbol/i.test(Ee))this.toFontChar=we(L.SymbolSetEncoding,(0,e.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(Ee))/Wingdings/i.test(qe)&&(0,n.warn)("Non-embedded Wingdings font, falling back to ZapfDingbats."),this.toFontChar=we(L.ZapfDingbatsEncoding,(0,e.getDingbatsGlyphsUnicode)(),this.differences);else if($e){const et=we(this.defaultEncoding,(0,e.getGlyphsUnicode)(),this.differences);Le==="CIDFontType2"&&!this.cidEncoding.startsWith("Identity-")&&!(this.toUnicode instanceof B.IdentityToUnicodeMap)&&this.toUnicode.forEach(function(tt,je){et[+tt]=je}),this.toFontChar=et}else{const et=(0,e.getGlyphsUnicode)(),tt=[];this.toUnicode.forEach((je,Je)=>{if(!this.composite){const nt=this.differences[je]||this.defaultEncoding[je],Ke=(0,v.getUnicodeForGlyph)(nt,et);Ke!==-1&&(Je=Ke)}tt[+je]=Je}),this.composite&&this.toUnicode instanceof B.IdentityToUnicodeMap&&/Verdana/i.test(qe)&&he(tt,(0,O.getGlyphMapForStandardFonts)()),this.toFontChar=tt}z(Pe),this.loadedName=Ee.split("-")[0],this.fontType=(0,R.getFontType)(Le,Oe,Pe.isStandardFont)}checkAndRepair(Pe,qe,Le){const Oe=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function Ee(vt,xt){const Rt=Object.create(null);Rt["OS/2"]=null,Rt.cmap=null,Rt.head=null,Rt.hhea=null,Rt.hmtx=null,Rt.maxp=null,Rt.name=null,Rt.post=null;for(let At=0;At>>0,At=vt.getInt32()>>>0,Pt=vt.getInt32()>>>0,$t=vt.pos;vt.pos=vt.start||0,vt.skip(At);const Wt=vt.getBytes(Pt);return vt.pos=$t,xt==="head"&&(Wt[8]=Wt[9]=Wt[10]=Wt[11]=0,Wt[17]|=32),{tag:xt,checksum:Rt,length:Pt,offset:At,data:Wt}}function Ve(vt){return{version:vt.getString(4),numTables:vt.getUint16(),searchRange:vt.getUint16(),entrySelector:vt.getUint16(),rangeShift:vt.getUint16()}}function $e(vt){const xt=vt.getString(4);(0,n.assert)(xt==="ttcf","Must be a TrueType Collection font.");const Rt=vt.getUint16(),At=vt.getUint16(),Pt=vt.getInt32()>>>0,$t=[];for(let Dt=0;Dt>>0);const Wt={ttcTag:xt,majorVersion:Rt,minorVersion:At,numFonts:Pt,offsetTable:$t};switch(Rt){case 1:return Wt;case 2:return Wt.dsigTag=vt.getInt32()>>>0,Wt.dsigLength=vt.getInt32()>>>0,Wt.dsigOffset=vt.getInt32()>>>0,Wt}throw new n.FormatError(`Invalid TrueType Collection majorVersion: ${Rt}.`)}function Ue(vt,xt){const{numFonts:Rt,offsetTable:At}=$e(vt),Pt=xt.split("+");let $t;for(let Wt=0;Wt>>0;let Jt=!1;if(!(Dt&&Dt.platformId===It&&Dt.encodingId===wt)){if(It===0&&(wt===0||wt===1||wt===3))Jt=!0;else if(It===1&&wt===0)Jt=!0;else if(It===3&&wt===1&&(At||!Dt))Jt=!0,Rt||(Yt=!0);else if(Rt&&It===3&&wt===0){Jt=!0;let _n=!0;if(Et>3;Et.push(Jt),It=Math.max(Jt,It)}const wt=[];for(let Bt=0;Bt<=It;Bt++)wt.push({firstCode:xt.getUint16(),entryCount:xt.getUint16(),idDelta:fe(xt.getByte(),xt.getByte()),idRangePos:xt.pos+xt.getUint16()});for(let Bt=0;Bt<256;Bt++)if(Et[Bt]===0)xt.pos=wt[0].idRangePos+2*Bt,ht=xt.getUint16(),en.push({charCode:Bt,glyphId:ht});else{const Jt=wt[Et[Bt]];for(Xt=0;Xt>1;xt.skip(6);const It=[];let wt;for(wt=0;wt>1)-(Et-wt),Pt.offsetIndex=Jt,Bt=Math.max(Bt,Jt+Pt.end-Pt.start+1)}const _n=[];for(Xt=0;Xt>>0;for(Xt=0;Xt>>0,wt=xt.getInt32()>>>0;let Bt=xt.getInt32()>>>0;for(let Jt=It;Jt<=wt;Jt++)en.push({charCode:Jt,glyphId:Bt++})}}else return(0,n.warn)("cmap table has unsupported format: "+Vt),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};en.sort(function(Et,It){return Et.charCode-It.charCode});for(let Et=1;EtPt&&((0,n.info)(`The numOfMetrics (${Dt}) should not be greater than the numGlyphs (${Pt}).`),Dt=Pt,xt.data[34]=(Dt&65280)>>8,xt.data[35]=Dt&255);const Vt=Pt-Dt-(Rt.length-Dt*4>>1);if(Vt>0){const rn=new Uint8Array(Rt.length+Vt*2);rn.set(Rt.data),$t&&(rn[Rt.length]=Rt.data[2],rn[Rt.length+1]=Rt.data[3]),Rt.data=rn}}function Ze(vt,xt,Rt,At,Pt,$t){const Wt={length:0,sizeOfInstructions:0};if(Rt-xt<=12)return Wt;const Dt=vt.subarray(xt,Rt);let Yt=fe(Dt[0],Dt[1]);if(Yt<0)return Yt=-1,$(Dt,0,Yt),At.set(Dt,Pt),Wt.length=Dt.length,Wt;let Vt,rn=10,en=0;for(Vt=0;VtDt.length?Wt:!$t&&ht>0?(At.set(Dt.subarray(0,Xt),Pt),At.set([0,0],Pt+Xt),At.set(Dt.subarray(Et,wt),Pt+Xt+2),wt-=ht,Dt.length-wt>3&&(wt=wt+3&-4),Wt.length=wt,Wt):Dt.length-wt>3?(wt=wt+3&-4,At.set(Dt.subarray(0,wt),Pt),Wt.length=wt,Wt):(At.set(Dt,Pt),Wt.length=Dt.length,Wt)}function et(vt,xt,Rt){const At=vt.data,Pt=Q(At[0],At[1],At[2],At[3]);Pt>>16!==1&&((0,n.info)("Attempting to fix invalid version in head table: "+Pt),At[0]=0,At[1]=1,At[2]=0,At[3]=0);const $t=q(At[50],At[51]);if($t<0||$t>1){(0,n.info)("Attempting to fix invalid indexToLocFormat in head table: "+$t);const Wt=xt+1;if(Rt===Wt<<1)At[50]=0,At[51]=0;else if(Rt===Wt<<2)At[50]=0,At[51]=1;else throw new n.FormatError("Could not fix indexToLocFormat: "+$t)}}function tt(vt,xt,Rt,At,Pt,$t,Wt){let Dt,Yt,Vt;At?(Dt=4,Yt=function(bn,Cn){return bn[Cn]<<24|bn[Cn+1]<<16|bn[Cn+2]<<8|bn[Cn+3]},Vt=function(bn,Cn,Mn){bn[Cn]=Mn>>>24&255,bn[Cn+1]=Mn>>16&255,bn[Cn+2]=Mn>>8&255,bn[Cn+3]=Mn&255}):(Dt=2,Yt=function(bn,Cn){return bn[Cn]<<9|bn[Cn+1]<<1},Vt=function(bn,Cn,Mn){bn[Cn]=Mn>>9&255,bn[Cn+1]=Mn>>1&255});const rn=$t?Rt+1:Rt,en=Dt*(1+rn),Xt=new Uint8Array(en);Xt.set(vt.data.subarray(0,en)),vt.data=Xt;const ht=xt.data,Et=ht.length,It=new Uint8Array(Et);let wt,Bt;const Jt=[];for(wt=0,Bt=0;wtEt&&(an=Et),Jt.push({index:wt,offset:an,endOffset:0})}for(Jt.sort((an,bn)=>an.offset-bn.offset),wt=0;wtan.index-bn.index),wt=0;wtWt&&(Wt=an.sizeOfInstructions),nn+=bn,Vt(Xt,Bt,nn)}if(nn===0){const an=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(wt=0,Bt=Dt;wtan+nn?xt.data=It.subarray(0,an+nn):(xt.data=new Uint8Array(an+nn),xt.data.set(It.subarray(0,nn))),xt.data.set(It.subarray(0,an),nn),Vt(vt.data,Xt.length-Dt,nn+an)}else xt.data=It.subarray(0,nn);return{missingGlyphs:_n,maxSizeOfInstructions:Wt}}function je(vt,xt,Rt){const At=(qe.start||0)+vt.offset;qe.pos=At;const Pt=vt.length,$t=At+Pt,Wt=qe.getInt32();qe.skip(28);let Dt,Yt=!0,Vt;switch(Wt){case 65536:Dt=R.MacStandardGlyphOrdering;break;case 131072:const rn=qe.getUint16();if(rn!==Rt){Yt=!1;break}const en=[];for(Vt=0;Vt=32768){Yt=!1;break}en.push(Et)}if(!Yt)break;const Xt=[],ht=[];for(;qe.pos<$t;){const Et=qe.getByte();for(ht.length=Et,Vt=0;VtPt)continue;qe.pos=Et;const It=ht.name;if(ht.encoding){let wt="";for(let Bt=0,Jt=ht.length;Bt0&&(At+=an-1)}if(!It&&!Bt){let an=0;for(nn<=142?an=nt[nn]:nn>=192&&nn<=223?an=-1:nn>=224&&(an=-2),nn>=113&&nn<=117&&($t=en.pop(),isNaN($t)||(an=-$t*2));an<0&&en.length>0;)en.pop(),an++;for(;an>0;)en.push(NaN),an--}}xt.tooComplexToFollowFunctions=Et;const Jt=[Rt];At>Rt.length&&Jt.push(new Uint8Array(At-Rt.length)),rn>Vt&&((0,n.warn)("TT: complementing a missing function tail"),Jt.push(new Uint8Array([34,45]))),ot(vt,Jt)}function at(vt,xt){if(!vt.tooComplexToFollowFunctions){if(vt.functionsDefined.length>xt){(0,n.warn)("TT: more functions defined than expected"),vt.hintsValid=!1;return}for(let Rt=0,At=vt.functionsUsed.length;Rtxt){(0,n.warn)("TT: invalid function id: "+Rt),vt.hintsValid=!1;return}if(vt.functionsUsed[Rt]&&!vt.functionsDefined[Rt]){(0,n.warn)("TT: undefined function: "+Rt),vt.hintsValid=!1;return}}}}function ot(vt,xt){if(xt.length>1){let Rt=0,At,Pt;for(At=0,Pt=xt.length;At0||!(Le.cMap instanceof y.IdentityCMap));if(ze.version==="OTTO"&&!vt||!Ye.head||!Ye.hhea||!Ye.maxp||!Ye.post)return _t=new F.Stream(Ye["CFF "].data),st=new P.CFFFont(_t,Le),V(Le),this.convert(Pe,st,Le);delete Ye.glyf,delete Ye.loca,delete Ye.fpgm,delete Ye.prep,delete Ye["cvt "],this.isOpenType=!0}if(!Ye.maxp)throw new n.FormatError('Required "maxp" table is not found');qe.pos=(qe.start||0)+Ye.maxp.offset;const Ct=qe.getInt32(),ut=qe.getUint16();if(Le.scaleFactors&&Le.scaleFactors.length===ut&&ft){const{scaleFactors:vt}=Le,xt=q(Ye.head.data[50],Ye.head.data[51]),Rt=new l.GlyfTable({glyfTable:Ye.glyf.data,isGlyphLocationsLong:xt,locaTable:Ye.loca.data,numGlyphs:ut});Rt.scale(vt);const{glyf:At,loca:Pt,isLocationLong:$t}=Rt.write();Ye.glyf.data=At,Ye.loca.data=Pt,$t!==!!xt&&(Ye.head.data[50]=0,Ye.head.data[51]=$t?1:0);const Wt=Ye.hmtx.data;for(let Dt=0;Dt>8&255,Wt[Yt+1]=Vt&255;const rn=Math.round(vt[Dt]*fe(Wt[Yt+2],Wt[Yt+3]));$(Wt,Yt+2,rn)}}let rt=ut+1,mt=!0;rt>65535&&(mt=!1,rt=ut,(0,n.warn)("Not enough space in glyfs to duplicate first glyph."));let Ot=0,dt=0;Ct>=65536&&Ye.maxp.length>=22&&(qe.pos+=8,qe.getUint16()>2&&(Ye.maxp.data[14]=0,Ye.maxp.data[15]=2),qe.pos+=4,Ot=qe.getUint16(),qe.pos+=4,dt=qe.getUint16()),Ye.maxp.data[4]=rt>>8,Ye.maxp.data[5]=rt&255;const Nt=Xe(Ye.fpgm,Ye.prep,Ye["cvt "],Ot);if(Nt||(delete Ye.fpgm,delete Ye.prep,delete Ye["cvt "]),Qe(qe,Ye.hhea,Ye.hmtx,Ye.head,rt,mt),!Ye.head)throw new n.FormatError('Required "head" table is not found');et(Ye.head,ut,ft?Ye.loca.length:0);let kt=Object.create(null);if(ft){const vt=q(Ye.head.data[50],Ye.head.data[51]),xt=tt(Ye.loca,Ye.glyf,ut,vt,Nt,mt,dt);kt=xt.missingGlyphs,Ct>=65536&&Ye.maxp.length>=22&&(Ye.maxp.data[26]=xt.maxSizeOfInstructions>>8,Ye.maxp.data[27]=xt.maxSizeOfInstructions&255)}if(!Ye.hhea)throw new n.FormatError('Required "hhea" table is not found');Ye.hhea.data[10]===0&&Ye.hhea.data[11]===0&&(Ye.hhea.data[10]=255,Ye.hhea.data[11]=255);const Ut={unitsPerEm:q(Ye.head.data[18],Ye.head.data[19]),yMax:q(Ye.head.data[42],Ye.head.data[43]),yMin:fe(Ye.head.data[38],Ye.head.data[39]),ascent:fe(Ye.hhea.data[4],Ye.hhea.data[5]),descent:fe(Ye.hhea.data[6],Ye.hhea.data[7]),lineGap:fe(Ye.hhea.data[8],Ye.hhea.data[9])};this.ascent=Ut.ascent/Ut.unitsPerEm,this.descent=Ut.descent/Ut.unitsPerEm,this.lineGap=Ut.lineGap/Ut.unitsPerEm,this.cssFontInfo&&this.cssFontInfo.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,Ye.post&&je(Ye.post,Le,ut),Ye.post={tag:"post",data:pe(Le)};const Ht=[];function Kt(vt){return!kt[vt]}if(Le.composite){const vt=Le.cidToGidMap||[],xt=vt.length===0;Le.cMap.forEach(function(Rt,At){if(typeof At=="string"&&(At=_e(Rt,At,!0)),At>65535)throw new n.FormatError("Max size of CID is 65,535");let Pt=-1;xt?Pt=At:vt[At]!==void 0&&(Pt=vt[At]),Pt>=0&&Pt=61440&&Yt<=61695&&(Yt&=255),Ht[Yt]=At[Dt].glyphId}if(Le.glyphNames&&($t.length||this.differences.length))for(let Dt=0;Dt<256;++Dt){if(!Wt&&Ht[Dt]!==void 0)continue;const Yt=this.differences[Dt]||$t[Dt];if(!Yt)continue;const Vt=Le.glyphNames.indexOf(Yt);Vt>0&&Kt(Vt)&&(Ht[Dt]=Vt)}}Ht.length===0&&(Ht[0]=0);let qt=rt-1;if(mt||(qt=0),!Le.cssFontInfo){const vt=ye(Ht,Kt,qt,this.toUnicode);this.toFontChar=vt.toFontChar,Ye.cmap={tag:"cmap",data:Ie(vt.charCodeToGlyphId,vt.toUnicodeExtraMap,rt)},(!Ye["OS/2"]||!Ce(Ye["OS/2"],qe))&&(Ye["OS/2"]={tag:"OS/2",data:oe(Le,vt.charCodeToGlyphId,Ut)})}if(!ft)try{_t=new F.Stream(Ye["CFF "].data),st=new c.CFFParser(_t,Le,R.SEAC_ANALYSIS_ENABLED).parse(),st.duplicateFirstGlyph();const xt=new c.CFFCompiler(st);Ye["CFF "].data=xt.compile()}catch{(0,n.warn)("Failed to compile font "+Le.loadedName)}if(!Ye.name)Ye.name={tag:"name",data:Ne(this.name)};else{const vt=Je(Ye.name);Ye.name.data=Ne(Pe,vt),this.psName=vt[0][6]||null}const pn=new D.OpenTypeFileBuilder(ze.version);for(const vt in Ye)pn.addTable(vt,Ye[vt].data);return pn.toArray()}convert(Pe,qe,Le){Le.fixedPitch=!1,Le.builtInEncoding&&H(Le,Le.builtInEncoding);let Oe=1;qe instanceof P.CFFFont&&(Oe=qe.numGlyphs-1);const Ee=qe.getGlyphMapping(Le);let Ae=null,Ve=Ee,$e=null;Le.cssFontInfo||(Ae=ye(Ee,qe.hasGlyphId.bind(qe),Oe,this.toUnicode),this.toFontChar=Ae.toFontChar,Ve=Ae.charCodeToGlyphId,$e=Ae.toUnicodeExtraMap);const Ue=qe.numGlyphs;function He(je,Je){let nt=null;for(const Ke in je)Je===je[Ke]&&(nt||(nt=[]),nt.push(Ke|0));return nt}function Qe(je,Je){for(const nt in je)if(Je===je[nt])return nt|0;return Ae.charCodeToGlyphId[Ae.nextAvailableFontCharCode]=Je,Ae.nextAvailableFontCharCode++}const Ze=qe.seacs;if(Ae&&R.SEAC_ANALYSIS_ENABLED&&Ze&&Ze.length){const je=Le.fontMatrix||n.FONT_IDENTITY_MATRIX,Je=qe.getCharset(),nt=Object.create(null);for(let Ke in Ze){Ke|=0;const at=Ze[Ke],ot=L.StandardEncoding[at[2]],Xe=L.StandardEncoding[at[3]],ze=Je.indexOf(ot),Ye=Je.indexOf(Xe);if(ze<0||Ye<0)continue;const st={x:at[0]*je[0]+at[1]*je[2]+je[4],y:at[0]*je[1]+at[1]*je[3]+je[5]},_t=He(Ee,Ke);if(_t)for(let ft=0,Ct=_t.length;ft1&&arguments[1]!==void 0?arguments[1]:!1,Le,Oe,Ee,Ae=Pe;this.cMap&&this.cMap.contains(Pe)&&(Ae=this.cMap.lookup(Pe),typeof Ae=="string"&&(Ae=_e(Pe,Ae))),Oe=this.widths[Ae],typeof Oe!="number"&&(Oe=this.defaultWidth);const Ve=this.vmetrics&&this.vmetrics[Ae];let $e=this.toUnicode.get(Pe)||Pe;typeof $e=="number"&&($e=String.fromCharCode($e));let Ue=this.toFontChar[Pe]!==void 0;if(Le=this.toFontChar[Pe]||Pe,this.missingFile){const et=this.differences[Pe]||this.defaultEncoding[Pe];(et===".notdef"||et==="")&&this.type==="Type1"&&(Le=32),Le=(0,v.mapSpecialUnicodeValues)(Le)}this.isType3Font&&(Ee=Le);let He=null;if(this.seacMap&&this.seacMap[Pe]){Ue=!0;const et=this.seacMap[Pe];Le=et.baseFontCharCode,He={fontChar:String.fromCodePoint(et.accentFontCharCode),offset:et.accentOffset}}let Qe="";typeof Le=="number"&&(Le<=1114111?Qe=String.fromCodePoint(Le):(0,n.warn)(`charToGlyph - invalid fontCharCode: ${Le}`));let Ze=this._glyphCache[Pe];return(!Ze||!Ze.matchesForCache(Pe,Qe,$e,He,Oe,Ve,Ee,qe,Ue))&&(Ze=new X(Pe,Qe,$e,He,Oe,Ve,Ee,qe,Ue),this._glyphCache[Pe]=Ze),Ze}charsToGlyphs(Pe){let qe=this._charsCache[Pe];if(qe)return qe;if(qe=[],this.cMap){const Le=Object.create(null),Oe=Pe.length;let Ee=0;for(;Eeqe.length%2===1,Ee=this.toUnicode instanceof B.IdentityToUnicodeMap?Ae=>this.toUnicode.charCodeOf(Ae):Ae=>this.toUnicode.charCodeOf(String.fromCodePoint(Ae));for(let Ae=0,Ve=Pe.length;Ae55295&&($e<57344||$e>65533)&&Ae++,this.toUnicode){const Ue=Ee($e);if(Ue!==-1){Oe()&&(qe.push(Le.join("")),Le.length=0);const He=this.cMap?this.cMap.getCharCodeLength(Ue):1;for(let Qe=He-1;Qe>=0;Qe--)Le.push(String.fromCharCode(Ue>>8*Qe&255));continue}}Oe()||(qe.push(Le.join("")),Le.length=0),Le.push(String.fromCodePoint($e))}return qe.push(Le.join("")),qe}}a.Font=ke;class De{constructor(Pe){this.error=Pe,this.loadedName="g_font_error",this.missingFile=!0}charsToGlyphs(){return[]}encodeString(Pe){return[Pe]}exportData(){return{error:this.error}}}a.ErrorFont=De},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CFFTopDict=a.CFFStrings=a.CFFStandardStrings=a.CFFPrivateDict=a.CFFParser=a.CFFIndex=a.CFFHeader=a.CFFFDSelect=a.CFFCompiler=a.CFFCharset=a.CFF=void 0;var n=g(2),c=g(161),R=g(162);const v=10,e=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"];a.CFFStandardStrings=e;const L=391,O=[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],B=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn(X,q){X[q-2]=X[q-2]+X[q-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(X,q){X[q-2]=X[q-2]-X[q-1]}},{id:"div",min:2,stackDelta:-1,stackFn(X,q){X[q-2]=X[q-2]/X[q-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(X,q){X[q-1]=-X[q-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn(X,q){X[q-2]=X[q-2]*X[q-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}];class P{constructor(q,$,fe){this.bytes=q.getBytes(),this.properties=$,this.seacAnalysisEnabled=!!fe}parse(){const q=this.properties,$=new S;this.cff=$;const fe=this.parseHeader(),Q=this.parseIndex(fe.endPos),ie=this.parseIndex(Q.endPos),Te=this.parseIndex(ie.endPos),me=this.parseIndex(Te.endPos),K=this.parseDict(ie.obj.get(0)),ce=this.createDict(F,K,$.strings);$.header=fe.obj,$.names=this.parseNameIndex(Q.obj),$.strings=this.parseStringIndex(Te.obj),$.topDict=ce,$.globalSubrIndex=me.obj,this.parsePrivateDict($.topDict),$.isCIDFont=ce.hasName("ROS");const de=ce.getByName("CharStrings"),Z=this.parseIndex(de).obj,ae=ce.getByName("FontMatrix");ae&&(q.fontMatrix=ae);const he=ce.getByName("FontBBox");he&&(q.ascent=Math.max(he[3],he[1]),q.descent=Math.min(he[1],he[3]),q.ascentScaled=!0);let we,_e;if($.isCIDFont){const se=this.parseIndex(ce.getByName("FDArray")).obj;for(let Ie=0,Ce=se.count;Ie=$)throw new n.FormatError("Invalid CFF header");fe!==0&&((0,n.info)("cff data is shifted"),q=q.subarray(fe),this.bytes=q);const Q=q[0],ie=q[1],Te=q[2],me=q[3];return{obj:new _(Q,ie,Te,me),endPos:Te}}parseDict(q){let $=0;function fe(){let K=q[$++];return K===30?Q():K===28?(K=q[$++],K=(K<<24|q[$++]<<16)>>16,K):K===29?(K=q[$++],K=K<<8|q[$++],K=K<<8|q[$++],K=K<<8|q[$++],K):K>=32&&K<=246?K-139:K>=247&&K<=250?(K-247)*256+q[$++]+108:K>=251&&K<=254?-((K-251)*256)-q[$++]-108:((0,n.warn)('CFFParser_parseDict: "'+K+'" is a reserved command.'),NaN)}function Q(){let K="";const de=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],Z=q.length;for(;$>4,we=ae&15;if(he===15||(K+=de[he],we===15))break;K+=de[we]}return parseFloat(K)}let ie=[];const Te=[];$=0;const me=q.length;for(;$v)return!1;let ie=q.stackSize;const Te=q.stack,me=$.length;for(let K=0;K>16,K+=2,ie++;else if(ce===14){if(ie>=4&&(ie-=4,this.seacAnalysisEnabled))return q.seac=Te.slice(ie,ie+4),!1;de=O[ce]}else if(ce>=32&&ce<=246)Te[ie]=ce-139,ie++;else if(ce>=247&&ce<=254)Te[ie]=ce<251?(ce-247<<8)+$[K]+108:-(ce-251<<8)-$[K]-108,K++,ie++;else if(ce===255)Te[ie]=($[K]<<24|$[K+1]<<16|$[K+2]<<8|$[K+3])/65536,K+=4,ie++;else if(ce===19||ce===20)q.hints+=ie>>1,K+=q.hints+7>>3,ie%=2,de=O[ce];else if(ce===10||ce===29){let Z;if(ce===10?Z=fe:Z=Q,!Z)return de=O[ce],(0,n.warn)("Missing subrsIndex for "+de.id),!1;let ae=32768;Z.count<1240?ae=107:Z.count<33900&&(ae=1131);const he=Te[--ie]+ae;if(he<0||he>=Z.count||isNaN(he))return de=O[ce],(0,n.warn)("Out of bounds subrIndex for "+de.id),!1;if(q.stackSize=ie,q.callDepth++,!this.parseCharString(q,Z.get(he),fe,Q))return!1;q.callDepth--,ie=q.stackSize;continue}else{if(ce===11)return q.stackSize=ie,!0;ce===0&&K===$.length?($[K-1]=14,de=O[14]):de=O[ce]}if(de){if(de.stem&&(q.hints+=ie>>1,ce===3||ce===23?q.hasVStems=!0:q.hasVStems&&(ce===1||ce===18)&&((0,n.warn)("CFF stem hints are in wrong order"),$[K-1]=ce===1?3:23)),"min"in de&&!q.undefStack&&ie=2&&de.stem?ie%=2:ie>1&&(0,n.warn)("Found too many parameters for stack-clearing command"),ie>0&&(q.width=Te[ie-1])),"stackDelta"in de?("stackFn"in de&&de.stackFn(Te,ie),ie+=de.stackDelta):de.stackClearing?ie=0:de.resetStack?(ie=0,q.undefStack=!1):de.undefStack&&(ie=0,q.undefStack=!0,q.firstStackClearing=!1)}}return q.stackSize=ie,!0}parseCharStrings(q){let{charStrings:$,localSubrIndex:fe,globalSubrIndex:Q,fdSelect:ie,fdArray:Te,privateDict:me}=q;const K=[],ce=[],de=$.count;for(let Z=0;Z=Te.length&&((0,n.warn)("Invalid fd index for glyph index."),we=!1),we&&(ye=Te[se].privateDict,_e=ye.subrsIndex)}else fe&&(_e=fe);if(we&&(we=this.parseCharString(he,ae,_e,Q)),he.width!==null){const se=ye.getByName("nominalWidthX");ce[Z]=se+he.width}else{const se=ye.getByName("defaultWidthX");ce[Z]=se}he.seac!==null&&(K[Z]=he.seac),we||$.set(Z,new Uint8Array([14]))}return{charStrings:$,seacs:K,widths:ce}}emptyPrivateDictionary(q){const $=this.createDict(G,[],q.strings);q.setByKey(18,[0,0]),q.privateDict=$}parsePrivateDict(q){if(!q.hasName("Private")){this.emptyPrivateDictionary(q);return}const $=q.getByName("Private");if(!Array.isArray($)||$.length!==2){q.removeByName("Private");return}const fe=$[0],Q=$[1];if(fe===0||Q>=this.bytes.length){this.emptyPrivateDictionary(q);return}const ie=Q+fe,Te=this.bytes.subarray(Q,ie),me=this.parseDict(Te),K=this.createDict(G,me,q.strings);if(q.privateDict=K,!K.getByName("Subrs"))return;const ce=K.getByName("Subrs"),de=Q+ce;if(ce===0||de>=this.bytes.length){this.emptyPrivateDictionary(q);return}const Z=this.parseIndex(de);K.subrsIndex=Z.obj}parseCharsets(q,$,fe,Q){if(q===0)return new J(!0,W.ISO_ADOBE,c.ISOAdobeCharset);if(q===1)return new J(!0,W.EXPERT,c.ExpertCharset);if(q===2)return new J(!0,W.EXPERT_SUBSET,c.ExpertSubsetCharset);const ie=this.bytes,Te=q,me=ie[q++],K=[Q?0:".notdef"];let ce,de,Z;switch($-=1,me){case 0:for(Z=0;Z<$;Z++)ce=ie[q++]<<8|ie[q++],K.push(Q?ce:fe.get(ce));break;case 1:for(;K.length<=$;)for(ce=ie[q++]<<8|ie[q++],de=ie[q++],Z=0;Z<=de;Z++)K.push(Q?ce++:fe.get(ce++));break;case 2:for(;K.length<=$;)for(ce=ie[q++]<<8|ie[q++],de=ie[q++]<<8|ie[q++],Z=0;Z<=de;Z++)K.push(Q?ce++:fe.get(ce++));break;default:throw new n.FormatError("Unknown charset format")}const ae=q,he=ie.subarray(Te,ae);return new J(!1,me,K,he)}parseEncoding(q,$,fe,Q){const ie=Object.create(null),Te=this.bytes;let me=!1,K,ce,de,Z=null;function ae(){const he=Te[q++];for(ce=0;ce=65535){(0,n.warn)("Not enough space in charstrings to duplicate first glyph.");return}const q=this.charStrings.get(0);this.charStrings.add(q),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}hasGlyphId(q){return q<0||q>=this.charStrings.count?!1:this.charStrings.get(q).length>0}}a.CFF=S;class _{constructor(q,$,fe,Q){this.major=q,this.minor=$,this.hdrSize=fe,this.offSize=Q}}a.CFFHeader=_;class l{constructor(){this.strings=[]}get(q){return q>=0&&q<=L-1?e[q]:q-L<=this.strings.length?this.strings[q-L]:e[0]}getSID(q){let $=e.indexOf(q);return $!==-1?$:($=this.strings.indexOf(q),$!==-1?$+L:-1)}add(q){this.strings.push(q)}get count(){return this.strings.length}}a.CFFStrings=l;class y{constructor(){this.objects=[],this.length=0}add(q){this.length+=q.length,this.objects.push(q)}set(q,$){this.length+=$.length-this.objects[q].length,this.objects[q]=$}get(q){return this.objects[q]}get count(){return this.objects.length}}a.CFFIndex=y;class D{constructor(q,$){this.keyToNameMap=q.keyToNameMap,this.nameToKeyMap=q.nameToKeyMap,this.defaults=q.defaults,this.types=q.types,this.opcodes=q.opcodes,this.order=q.order,this.strings=$,this.values=Object.create(null)}setByKey(q,$){if(!(q in this.keyToNameMap))return!1;const fe=$.length;if(fe===0)return!0;for(let ie=0;ie=this.fdSelect.length?-1:this.fdSelect[q]}}a.CFFFDSelect=V;class H{constructor(){this.offsets=Object.create(null)}isTracking(q){return q in this.offsets}track(q,$){if(q in this.offsets)throw new n.FormatError(`Already tracking location of ${q}`);this.offsets[q]=$}offset(q){for(const $ in this.offsets)this.offsets[$]+=q}setEntryLocation(q,$,fe){if(!(q in this.offsets))throw new n.FormatError(`Not tracking location of ${q}`);const Q=fe.data,ie=this.offsets[q],Te=5;for(let me=0,K=$.length;me>24&255,Q[Z]=we>>16&255,Q[ae]=we>>8&255,Q[he]=we&255}}}class z{constructor(q){this.cff=q}compile(){const q=this.cff,$={data:[],length:0,add(ae){this.data=this.data.concat(ae),this.length=this.data.length}},fe=this.compileHeader(q.header);$.add(fe);const Q=this.compileNameIndex(q.names);if($.add(Q),q.isCIDFont&&q.topDict.hasName("FontMatrix")){const ae=q.topDict.getByName("FontMatrix");q.topDict.removeByName("FontMatrix");for(let he=0,we=q.fdArray.length;he16&&q.topDict.removeByName("XUID"),q.topDict.setByName("charset",0);let Te=this.compileTopDicts([q.topDict],$.length,q.isCIDFont);$.add(Te.output);const me=Te.trackers[0],K=this.compileStringIndex(q.strings.strings);$.add(K);const ce=this.compileIndex(q.globalSubrIndex);if($.add(ce),q.encoding&&q.topDict.hasName("Encoding"))if(q.encoding.predefined)me.setEntryLocation("Encoding",[q.encoding.format],$);else{const ae=this.compileEncoding(q.encoding);me.setEntryLocation("Encoding",[$.length],$),$.add(ae)}const de=this.compileCharset(q.charset,q.charStrings.count,q.strings,q.isCIDFont);me.setEntryLocation("charset",[$.length],$),$.add(de);const Z=this.compileCharStrings(q.charStrings);if(me.setEntryLocation("CharStrings",[$.length],$),$.add(Z),q.isCIDFont){me.setEntryLocation("FDSelect",[$.length],$);const ae=this.compileFDSelect(q.fdSelect);$.add(ae),Te=this.compileTopDicts(q.fdArray,$.length,!0),me.setEntryLocation("FDArray",[$.length],$),$.add(Te.output);const he=Te.trackers;this.compilePrivateDicts(q.fdArray,he,$)}return this.compilePrivateDicts([q.topDict],[me],$),$.add([0]),$.data}encodeNumber(q){return Number.isInteger(q)?this.encodeInteger(q):this.encodeFloat(q)}static get EncodeFloatRegExp(){return(0,n.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(q){let $=q.toString();const fe=z.EncodeFloatRegExp.exec($);if(fe){const K=parseFloat("1e"+((fe[2]?+fe[2]:0)+fe[1].length));$=(Math.round(q*K)/K).toString()}let Q="",ie,Te;for(ie=0,Te=$.length;ie=-107&&q<=107?$=[q+139]:q>=108&&q<=1131?(q-=108,$=[(q>>8)+247,q&255]):q>=-1131&&q<=-108?(q=-q-108,$=[(q>>8)+251,q&255]):q>=-32768&&q<=32767?$=[28,q>>8&255,q&255]:$=[29,q>>24&255,q>>16&255,q>>8&255,q&255],$}compileHeader(q){return[q.major,q.minor,4,q.offSize]}compileNameIndex(q){const $=new y;for(let fe=0,Q=q.length;fe"~"||ce==="["||ce==="]"||ce==="("||ce===")"||ce==="{"||ce==="}"||ce==="<"||ce===">"||ce==="/"||ce==="%")&&(ce="_"),me[K]=ce}me=me.join(""),me===""&&(me="Bad_Font_Name"),$.add((0,n.stringToBytes)(me))}return this.compileIndex($)}compileTopDicts(q,$,fe){const Q=[];let ie=new y;for(let Te=0,me=q.length;Te>8&255,Te&255]);else{const me=1+Te*2;ie=new Uint8Array(me),ie[0]=0;let K=0;const ce=q.charset.length;let de=!1;for(let Z=1;Z>8&255,ie[Z+1]=ae&255}}return this.compileTypedArray(ie)}compileEncoding(q){return this.compileTypedArray(q.raw)}compileFDSelect(q){const $=q.format;let fe,Q;switch($){case 0:for(fe=new Uint8Array(1+q.fdSelect.length),fe[0]=$,Q=0;Q>8&255,ie&255,Te];for(Q=1;Q>8&255,Q&255,ce),Te=ce)}const K=(me.length-3)/3;me[1]=K>>8&255,me[2]=K&255,me.push(Q>>8&255,Q&255),fe=new Uint8Array(me);break}return this.compileTypedArray(fe)}compileTypedArray(q){const $=[];for(let fe=0,Q=q.length;fe1&&arguments[1]!==void 0?arguments[1]:[];const fe=q.objects,Q=fe.length;if(Q===0)return[0,0];const ie=[Q>>8&255,Q&255];let Te=1,me;for(me=0;me>8&255,ce&255):K===3?ie.push(ce>>16&255,ce>>8&255,ce&255):ie.push(ce>>>24&255,ce>>16&255,ce>>8&255,ce&255),fe[me]&&(ce+=fe[me].length);for(me=0;me{Object.defineProperty(a,"__esModule",{value:!0}),a.ISOAdobeCharset=a.ExpertSubsetCharset=a.ExpertCharset=void 0;const g=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"];a.ISOAdobeCharset=g;const n=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];a.ExpertCharset=n;const c=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"];a.ExpertSubsetCharset=c},(x,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ZapfDingbatsEncoding=a.WinAnsiEncoding=a.SymbolSetEncoding=a.StandardEncoding=a.MacRomanEncoding=a.ExpertEncoding=void 0,a.getEncoding=O;const g=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];a.ExpertEncoding=g;const n=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""],c=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"];a.MacRomanEncoding=c;const R=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""];a.StandardEncoding=R;const v=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"];a.WinAnsiEncoding=v;const e=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""];a.SymbolSetEncoding=e;const L=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];a.ZapfDingbatsEncoding=L;function O(B){switch(B){case"WinAnsiEncoding":return v;case"StandardEncoding":return R;case"MacRomanEncoding":return c;case"SymbolSetEncoding":return e;case"ZapfDingbatsEncoding":return L;case"ExpertEncoding":return g;case"MacExpertEncoding":return n;default:return null}}},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SEAC_ANALYSIS_ENABLED=a.MacStandardGlyphOrdering=a.FontFlags=void 0,a.getFontType=B,a.normalizeFontName=_,a.recoverGlyphName=P,a.type1FontGlyphMapping=S;var n=g(2),c=g(162),R=g(164),v=g(165);const e=!0;a.SEAC_ANALYSIS_ENABLED=e;const L={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};a.FontFlags=L;const O=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];a.MacStandardGlyphOrdering=O;function B(l,y){let D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;switch(l){case"Type1":return D?n.FontType.TYPE1STANDARD:y==="Type1C"?n.FontType.TYPE1C:n.FontType.TYPE1;case"CIDFontType0":return y==="CIDFontType0C"?n.FontType.CIDFONTTYPE0C:n.FontType.CIDFONTTYPE0;case"OpenType":return n.FontType.OPENTYPE;case"TrueType":return n.FontType.TRUETYPE;case"CIDFontType2":return n.FontType.CIDFONTTYPE2;case"MMType1":return n.FontType.MMTYPE1;case"Type0":return n.FontType.TYPE0;default:return n.FontType.UNKNOWN}}function P(l,y){if(y[l]!==void 0)return l;const D=(0,v.getUnicodeForGlyph)(l,y);if(D!==-1){for(const M in y)if(y[M]===D)return M}return(0,n.info)("Unable to recover a standard glyph name for: "+l),l}function S(l,y,D){const M=Object.create(null);let F,N,G;const W=!!(l.flags&L.Symbolic);if(l.isInternalFont)for(G=y,N=0;N=0?M[N]=F:M[N]=0;else if(l.baseEncodingName)for(G=(0,c.getEncoding)(l.baseEncodingName),N=0;N=0?M[N]=F:M[N]=0;else if(W)for(N in y)M[N]=y[N];else for(G=c.StandardEncoding,N=0;N=0?M[N]=F:M[N]=0;const J=l.differences;let Y;if(J)for(N in J){const V=J[N];if(F=D.indexOf(V),F===-1){Y||(Y=(0,R.getGlyphsUnicode)());const H=P(V,Y);H!==V&&(F=D.indexOf(H))}F>=0?M[N]=F:M[N]=0}return M}function _(l){return l.replace(/[,_]/g,"-").replace(/\s/g,"")}},(x,a,g)=>{g.r(a),g.d(a,{getDingbatsGlyphsUnicode:()=>R,getGlyphsUnicode:()=>c});var n=g(131);const c=(0,n.getArrayLookupTableFactory)(function(){return["A",65,"AE",198,"AEacute",508,"AEmacron",482,"AEsmall",63462,"Aacute",193,"Aacutesmall",63457,"Abreve",258,"Abreveacute",7854,"Abrevecyrillic",1232,"Abrevedotbelow",7862,"Abrevegrave",7856,"Abrevehookabove",7858,"Abrevetilde",7860,"Acaron",461,"Acircle",9398,"Acircumflex",194,"Acircumflexacute",7844,"Acircumflexdotbelow",7852,"Acircumflexgrave",7846,"Acircumflexhookabove",7848,"Acircumflexsmall",63458,"Acircumflextilde",7850,"Acute",63177,"Acutesmall",63412,"Acyrillic",1040,"Adblgrave",512,"Adieresis",196,"Adieresiscyrillic",1234,"Adieresismacron",478,"Adieresissmall",63460,"Adotbelow",7840,"Adotmacron",480,"Agrave",192,"Agravesmall",63456,"Ahookabove",7842,"Aiecyrillic",1236,"Ainvertedbreve",514,"Alpha",913,"Alphatonos",902,"Amacron",256,"Amonospace",65313,"Aogonek",260,"Aring",197,"Aringacute",506,"Aringbelow",7680,"Aringsmall",63461,"Asmall",63329,"Atilde",195,"Atildesmall",63459,"Aybarmenian",1329,"B",66,"Bcircle",9399,"Bdotaccent",7682,"Bdotbelow",7684,"Becyrillic",1041,"Benarmenian",1330,"Beta",914,"Bhook",385,"Blinebelow",7686,"Bmonospace",65314,"Brevesmall",63220,"Bsmall",63330,"Btopbar",386,"C",67,"Caarmenian",1342,"Cacute",262,"Caron",63178,"Caronsmall",63221,"Ccaron",268,"Ccedilla",199,"Ccedillaacute",7688,"Ccedillasmall",63463,"Ccircle",9400,"Ccircumflex",264,"Cdot",266,"Cdotaccent",266,"Cedillasmall",63416,"Chaarmenian",1353,"Cheabkhasiancyrillic",1212,"Checyrillic",1063,"Chedescenderabkhasiancyrillic",1214,"Chedescendercyrillic",1206,"Chedieresiscyrillic",1268,"Cheharmenian",1347,"Chekhakassiancyrillic",1227,"Cheverticalstrokecyrillic",1208,"Chi",935,"Chook",391,"Circumflexsmall",63222,"Cmonospace",65315,"Coarmenian",1361,"Csmall",63331,"D",68,"DZ",497,"DZcaron",452,"Daarmenian",1332,"Dafrican",393,"Dcaron",270,"Dcedilla",7696,"Dcircle",9401,"Dcircumflexbelow",7698,"Dcroat",272,"Ddotaccent",7690,"Ddotbelow",7692,"Decyrillic",1044,"Deicoptic",1006,"Delta",8710,"Deltagreek",916,"Dhook",394,"Dieresis",63179,"DieresisAcute",63180,"DieresisGrave",63181,"Dieresissmall",63400,"Digammagreek",988,"Djecyrillic",1026,"Dlinebelow",7694,"Dmonospace",65316,"Dotaccentsmall",63223,"Dslash",272,"Dsmall",63332,"Dtopbar",395,"Dz",498,"Dzcaron",453,"Dzeabkhasiancyrillic",1248,"Dzecyrillic",1029,"Dzhecyrillic",1039,"E",69,"Eacute",201,"Eacutesmall",63465,"Ebreve",276,"Ecaron",282,"Ecedillabreve",7708,"Echarmenian",1333,"Ecircle",9402,"Ecircumflex",202,"Ecircumflexacute",7870,"Ecircumflexbelow",7704,"Ecircumflexdotbelow",7878,"Ecircumflexgrave",7872,"Ecircumflexhookabove",7874,"Ecircumflexsmall",63466,"Ecircumflextilde",7876,"Ecyrillic",1028,"Edblgrave",516,"Edieresis",203,"Edieresissmall",63467,"Edot",278,"Edotaccent",278,"Edotbelow",7864,"Efcyrillic",1060,"Egrave",200,"Egravesmall",63464,"Eharmenian",1335,"Ehookabove",7866,"Eightroman",8551,"Einvertedbreve",518,"Eiotifiedcyrillic",1124,"Elcyrillic",1051,"Elevenroman",8554,"Emacron",274,"Emacronacute",7702,"Emacrongrave",7700,"Emcyrillic",1052,"Emonospace",65317,"Encyrillic",1053,"Endescendercyrillic",1186,"Eng",330,"Enghecyrillic",1188,"Enhookcyrillic",1223,"Eogonek",280,"Eopen",400,"Epsilon",917,"Epsilontonos",904,"Ercyrillic",1056,"Ereversed",398,"Ereversedcyrillic",1069,"Escyrillic",1057,"Esdescendercyrillic",1194,"Esh",425,"Esmall",63333,"Eta",919,"Etarmenian",1336,"Etatonos",905,"Eth",208,"Ethsmall",63472,"Etilde",7868,"Etildebelow",7706,"Euro",8364,"Ezh",439,"Ezhcaron",494,"Ezhreversed",440,"F",70,"Fcircle",9403,"Fdotaccent",7710,"Feharmenian",1366,"Feicoptic",996,"Fhook",401,"Fitacyrillic",1138,"Fiveroman",8548,"Fmonospace",65318,"Fourroman",8547,"Fsmall",63334,"G",71,"GBsquare",13191,"Gacute",500,"Gamma",915,"Gammaafrican",404,"Gangiacoptic",1002,"Gbreve",286,"Gcaron",486,"Gcedilla",290,"Gcircle",9404,"Gcircumflex",284,"Gcommaaccent",290,"Gdot",288,"Gdotaccent",288,"Gecyrillic",1043,"Ghadarmenian",1346,"Ghemiddlehookcyrillic",1172,"Ghestrokecyrillic",1170,"Gheupturncyrillic",1168,"Ghook",403,"Gimarmenian",1331,"Gjecyrillic",1027,"Gmacron",7712,"Gmonospace",65319,"Grave",63182,"Gravesmall",63328,"Gsmall",63335,"Gsmallhook",667,"Gstroke",484,"H",72,"H18533",9679,"H18543",9642,"H18551",9643,"H22073",9633,"HPsquare",13259,"Haabkhasiancyrillic",1192,"Hadescendercyrillic",1202,"Hardsigncyrillic",1066,"Hbar",294,"Hbrevebelow",7722,"Hcedilla",7720,"Hcircle",9405,"Hcircumflex",292,"Hdieresis",7718,"Hdotaccent",7714,"Hdotbelow",7716,"Hmonospace",65320,"Hoarmenian",1344,"Horicoptic",1e3,"Hsmall",63336,"Hungarumlaut",63183,"Hungarumlautsmall",63224,"Hzsquare",13200,"I",73,"IAcyrillic",1071,"IJ",306,"IUcyrillic",1070,"Iacute",205,"Iacutesmall",63469,"Ibreve",300,"Icaron",463,"Icircle",9406,"Icircumflex",206,"Icircumflexsmall",63470,"Icyrillic",1030,"Idblgrave",520,"Idieresis",207,"Idieresisacute",7726,"Idieresiscyrillic",1252,"Idieresissmall",63471,"Idot",304,"Idotaccent",304,"Idotbelow",7882,"Iebrevecyrillic",1238,"Iecyrillic",1045,"Ifraktur",8465,"Igrave",204,"Igravesmall",63468,"Ihookabove",7880,"Iicyrillic",1048,"Iinvertedbreve",522,"Iishortcyrillic",1049,"Imacron",298,"Imacroncyrillic",1250,"Imonospace",65321,"Iniarmenian",1339,"Iocyrillic",1025,"Iogonek",302,"Iota",921,"Iotaafrican",406,"Iotadieresis",938,"Iotatonos",906,"Ismall",63337,"Istroke",407,"Itilde",296,"Itildebelow",7724,"Izhitsacyrillic",1140,"Izhitsadblgravecyrillic",1142,"J",74,"Jaarmenian",1345,"Jcircle",9407,"Jcircumflex",308,"Jecyrillic",1032,"Jheharmenian",1355,"Jmonospace",65322,"Jsmall",63338,"K",75,"KBsquare",13189,"KKsquare",13261,"Kabashkircyrillic",1184,"Kacute",7728,"Kacyrillic",1050,"Kadescendercyrillic",1178,"Kahookcyrillic",1219,"Kappa",922,"Kastrokecyrillic",1182,"Kaverticalstrokecyrillic",1180,"Kcaron",488,"Kcedilla",310,"Kcircle",9408,"Kcommaaccent",310,"Kdotbelow",7730,"Keharmenian",1364,"Kenarmenian",1343,"Khacyrillic",1061,"Kheicoptic",998,"Khook",408,"Kjecyrillic",1036,"Klinebelow",7732,"Kmonospace",65323,"Koppacyrillic",1152,"Koppagreek",990,"Ksicyrillic",1134,"Ksmall",63339,"L",76,"LJ",455,"LL",63167,"Lacute",313,"Lambda",923,"Lcaron",317,"Lcedilla",315,"Lcircle",9409,"Lcircumflexbelow",7740,"Lcommaaccent",315,"Ldot",319,"Ldotaccent",319,"Ldotbelow",7734,"Ldotbelowmacron",7736,"Liwnarmenian",1340,"Lj",456,"Ljecyrillic",1033,"Llinebelow",7738,"Lmonospace",65324,"Lslash",321,"Lslashsmall",63225,"Lsmall",63340,"M",77,"MBsquare",13190,"Macron",63184,"Macronsmall",63407,"Macute",7742,"Mcircle",9410,"Mdotaccent",7744,"Mdotbelow",7746,"Menarmenian",1348,"Mmonospace",65325,"Msmall",63341,"Mturned",412,"Mu",924,"N",78,"NJ",458,"Nacute",323,"Ncaron",327,"Ncedilla",325,"Ncircle",9411,"Ncircumflexbelow",7754,"Ncommaaccent",325,"Ndotaccent",7748,"Ndotbelow",7750,"Nhookleft",413,"Nineroman",8552,"Nj",459,"Njecyrillic",1034,"Nlinebelow",7752,"Nmonospace",65326,"Nowarmenian",1350,"Nsmall",63342,"Ntilde",209,"Ntildesmall",63473,"Nu",925,"O",79,"OE",338,"OEsmall",63226,"Oacute",211,"Oacutesmall",63475,"Obarredcyrillic",1256,"Obarreddieresiscyrillic",1258,"Obreve",334,"Ocaron",465,"Ocenteredtilde",415,"Ocircle",9412,"Ocircumflex",212,"Ocircumflexacute",7888,"Ocircumflexdotbelow",7896,"Ocircumflexgrave",7890,"Ocircumflexhookabove",7892,"Ocircumflexsmall",63476,"Ocircumflextilde",7894,"Ocyrillic",1054,"Odblacute",336,"Odblgrave",524,"Odieresis",214,"Odieresiscyrillic",1254,"Odieresissmall",63478,"Odotbelow",7884,"Ogoneksmall",63227,"Ograve",210,"Ogravesmall",63474,"Oharmenian",1365,"Ohm",8486,"Ohookabove",7886,"Ohorn",416,"Ohornacute",7898,"Ohorndotbelow",7906,"Ohorngrave",7900,"Ohornhookabove",7902,"Ohorntilde",7904,"Ohungarumlaut",336,"Oi",418,"Oinvertedbreve",526,"Omacron",332,"Omacronacute",7762,"Omacrongrave",7760,"Omega",8486,"Omegacyrillic",1120,"Omegagreek",937,"Omegaroundcyrillic",1146,"Omegatitlocyrillic",1148,"Omegatonos",911,"Omicron",927,"Omicrontonos",908,"Omonospace",65327,"Oneroman",8544,"Oogonek",490,"Oogonekmacron",492,"Oopen",390,"Oslash",216,"Oslashacute",510,"Oslashsmall",63480,"Osmall",63343,"Ostrokeacute",510,"Otcyrillic",1150,"Otilde",213,"Otildeacute",7756,"Otildedieresis",7758,"Otildesmall",63477,"P",80,"Pacute",7764,"Pcircle",9413,"Pdotaccent",7766,"Pecyrillic",1055,"Peharmenian",1354,"Pemiddlehookcyrillic",1190,"Phi",934,"Phook",420,"Pi",928,"Piwrarmenian",1363,"Pmonospace",65328,"Psi",936,"Psicyrillic",1136,"Psmall",63344,"Q",81,"Qcircle",9414,"Qmonospace",65329,"Qsmall",63345,"R",82,"Raarmenian",1356,"Racute",340,"Rcaron",344,"Rcedilla",342,"Rcircle",9415,"Rcommaaccent",342,"Rdblgrave",528,"Rdotaccent",7768,"Rdotbelow",7770,"Rdotbelowmacron",7772,"Reharmenian",1360,"Rfraktur",8476,"Rho",929,"Ringsmall",63228,"Rinvertedbreve",530,"Rlinebelow",7774,"Rmonospace",65330,"Rsmall",63346,"Rsmallinverted",641,"Rsmallinvertedsuperior",694,"S",83,"SF010000",9484,"SF020000",9492,"SF030000",9488,"SF040000",9496,"SF050000",9532,"SF060000",9516,"SF070000",9524,"SF080000",9500,"SF090000",9508,"SF100000",9472,"SF110000",9474,"SF190000",9569,"SF200000",9570,"SF210000",9558,"SF220000",9557,"SF230000",9571,"SF240000",9553,"SF250000",9559,"SF260000",9565,"SF270000",9564,"SF280000",9563,"SF360000",9566,"SF370000",9567,"SF380000",9562,"SF390000",9556,"SF400000",9577,"SF410000",9574,"SF420000",9568,"SF430000",9552,"SF440000",9580,"SF450000",9575,"SF460000",9576,"SF470000",9572,"SF480000",9573,"SF490000",9561,"SF500000",9560,"SF510000",9554,"SF520000",9555,"SF530000",9579,"SF540000",9578,"Sacute",346,"Sacutedotaccent",7780,"Sampigreek",992,"Scaron",352,"Scarondotaccent",7782,"Scaronsmall",63229,"Scedilla",350,"Schwa",399,"Schwacyrillic",1240,"Schwadieresiscyrillic",1242,"Scircle",9416,"Scircumflex",348,"Scommaaccent",536,"Sdotaccent",7776,"Sdotbelow",7778,"Sdotbelowdotaccent",7784,"Seharmenian",1357,"Sevenroman",8550,"Shaarmenian",1351,"Shacyrillic",1064,"Shchacyrillic",1065,"Sheicoptic",994,"Shhacyrillic",1210,"Shimacoptic",1004,"Sigma",931,"Sixroman",8549,"Smonospace",65331,"Softsigncyrillic",1068,"Ssmall",63347,"Stigmagreek",986,"T",84,"Tau",932,"Tbar",358,"Tcaron",356,"Tcedilla",354,"Tcircle",9417,"Tcircumflexbelow",7792,"Tcommaaccent",354,"Tdotaccent",7786,"Tdotbelow",7788,"Tecyrillic",1058,"Tedescendercyrillic",1196,"Tenroman",8553,"Tetsecyrillic",1204,"Theta",920,"Thook",428,"Thorn",222,"Thornsmall",63486,"Threeroman",8546,"Tildesmall",63230,"Tiwnarmenian",1359,"Tlinebelow",7790,"Tmonospace",65332,"Toarmenian",1337,"Tonefive",444,"Tonesix",388,"Tonetwo",423,"Tretroflexhook",430,"Tsecyrillic",1062,"Tshecyrillic",1035,"Tsmall",63348,"Twelveroman",8555,"Tworoman",8545,"U",85,"Uacute",218,"Uacutesmall",63482,"Ubreve",364,"Ucaron",467,"Ucircle",9418,"Ucircumflex",219,"Ucircumflexbelow",7798,"Ucircumflexsmall",63483,"Ucyrillic",1059,"Udblacute",368,"Udblgrave",532,"Udieresis",220,"Udieresisacute",471,"Udieresisbelow",7794,"Udieresiscaron",473,"Udieresiscyrillic",1264,"Udieresisgrave",475,"Udieresismacron",469,"Udieresissmall",63484,"Udotbelow",7908,"Ugrave",217,"Ugravesmall",63481,"Uhookabove",7910,"Uhorn",431,"Uhornacute",7912,"Uhorndotbelow",7920,"Uhorngrave",7914,"Uhornhookabove",7916,"Uhorntilde",7918,"Uhungarumlaut",368,"Uhungarumlautcyrillic",1266,"Uinvertedbreve",534,"Ukcyrillic",1144,"Umacron",362,"Umacroncyrillic",1262,"Umacrondieresis",7802,"Umonospace",65333,"Uogonek",370,"Upsilon",933,"Upsilon1",978,"Upsilonacutehooksymbolgreek",979,"Upsilonafrican",433,"Upsilondieresis",939,"Upsilondieresishooksymbolgreek",980,"Upsilonhooksymbol",978,"Upsilontonos",910,"Uring",366,"Ushortcyrillic",1038,"Usmall",63349,"Ustraightcyrillic",1198,"Ustraightstrokecyrillic",1200,"Utilde",360,"Utildeacute",7800,"Utildebelow",7796,"V",86,"Vcircle",9419,"Vdotbelow",7806,"Vecyrillic",1042,"Vewarmenian",1358,"Vhook",434,"Vmonospace",65334,"Voarmenian",1352,"Vsmall",63350,"Vtilde",7804,"W",87,"Wacute",7810,"Wcircle",9420,"Wcircumflex",372,"Wdieresis",7812,"Wdotaccent",7814,"Wdotbelow",7816,"Wgrave",7808,"Wmonospace",65335,"Wsmall",63351,"X",88,"Xcircle",9421,"Xdieresis",7820,"Xdotaccent",7818,"Xeharmenian",1341,"Xi",926,"Xmonospace",65336,"Xsmall",63352,"Y",89,"Yacute",221,"Yacutesmall",63485,"Yatcyrillic",1122,"Ycircle",9422,"Ycircumflex",374,"Ydieresis",376,"Ydieresissmall",63487,"Ydotaccent",7822,"Ydotbelow",7924,"Yericyrillic",1067,"Yerudieresiscyrillic",1272,"Ygrave",7922,"Yhook",435,"Yhookabove",7926,"Yiarmenian",1349,"Yicyrillic",1031,"Yiwnarmenian",1362,"Ymonospace",65337,"Ysmall",63353,"Ytilde",7928,"Yusbigcyrillic",1130,"Yusbigiotifiedcyrillic",1132,"Yuslittlecyrillic",1126,"Yuslittleiotifiedcyrillic",1128,"Z",90,"Zaarmenian",1334,"Zacute",377,"Zcaron",381,"Zcaronsmall",63231,"Zcircle",9423,"Zcircumflex",7824,"Zdot",379,"Zdotaccent",379,"Zdotbelow",7826,"Zecyrillic",1047,"Zedescendercyrillic",1176,"Zedieresiscyrillic",1246,"Zeta",918,"Zhearmenian",1338,"Zhebrevecyrillic",1217,"Zhecyrillic",1046,"Zhedescendercyrillic",1174,"Zhedieresiscyrillic",1244,"Zlinebelow",7828,"Zmonospace",65338,"Zsmall",63354,"Zstroke",437,"a",97,"aabengali",2438,"aacute",225,"aadeva",2310,"aagujarati",2694,"aagurmukhi",2566,"aamatragurmukhi",2622,"aarusquare",13059,"aavowelsignbengali",2494,"aavowelsigndeva",2366,"aavowelsigngujarati",2750,"abbreviationmarkarmenian",1375,"abbreviationsigndeva",2416,"abengali",2437,"abopomofo",12570,"abreve",259,"abreveacute",7855,"abrevecyrillic",1233,"abrevedotbelow",7863,"abrevegrave",7857,"abrevehookabove",7859,"abrevetilde",7861,"acaron",462,"acircle",9424,"acircumflex",226,"acircumflexacute",7845,"acircumflexdotbelow",7853,"acircumflexgrave",7847,"acircumflexhookabove",7849,"acircumflextilde",7851,"acute",180,"acutebelowcmb",791,"acutecmb",769,"acutecomb",769,"acutedeva",2388,"acutelowmod",719,"acutetonecmb",833,"acyrillic",1072,"adblgrave",513,"addakgurmukhi",2673,"adeva",2309,"adieresis",228,"adieresiscyrillic",1235,"adieresismacron",479,"adotbelow",7841,"adotmacron",481,"ae",230,"aeacute",509,"aekorean",12624,"aemacron",483,"afii00208",8213,"afii08941",8356,"afii10017",1040,"afii10018",1041,"afii10019",1042,"afii10020",1043,"afii10021",1044,"afii10022",1045,"afii10023",1025,"afii10024",1046,"afii10025",1047,"afii10026",1048,"afii10027",1049,"afii10028",1050,"afii10029",1051,"afii10030",1052,"afii10031",1053,"afii10032",1054,"afii10033",1055,"afii10034",1056,"afii10035",1057,"afii10036",1058,"afii10037",1059,"afii10038",1060,"afii10039",1061,"afii10040",1062,"afii10041",1063,"afii10042",1064,"afii10043",1065,"afii10044",1066,"afii10045",1067,"afii10046",1068,"afii10047",1069,"afii10048",1070,"afii10049",1071,"afii10050",1168,"afii10051",1026,"afii10052",1027,"afii10053",1028,"afii10054",1029,"afii10055",1030,"afii10056",1031,"afii10057",1032,"afii10058",1033,"afii10059",1034,"afii10060",1035,"afii10061",1036,"afii10062",1038,"afii10063",63172,"afii10064",63173,"afii10065",1072,"afii10066",1073,"afii10067",1074,"afii10068",1075,"afii10069",1076,"afii10070",1077,"afii10071",1105,"afii10072",1078,"afii10073",1079,"afii10074",1080,"afii10075",1081,"afii10076",1082,"afii10077",1083,"afii10078",1084,"afii10079",1085,"afii10080",1086,"afii10081",1087,"afii10082",1088,"afii10083",1089,"afii10084",1090,"afii10085",1091,"afii10086",1092,"afii10087",1093,"afii10088",1094,"afii10089",1095,"afii10090",1096,"afii10091",1097,"afii10092",1098,"afii10093",1099,"afii10094",1100,"afii10095",1101,"afii10096",1102,"afii10097",1103,"afii10098",1169,"afii10099",1106,"afii10100",1107,"afii10101",1108,"afii10102",1109,"afii10103",1110,"afii10104",1111,"afii10105",1112,"afii10106",1113,"afii10107",1114,"afii10108",1115,"afii10109",1116,"afii10110",1118,"afii10145",1039,"afii10146",1122,"afii10147",1138,"afii10148",1140,"afii10192",63174,"afii10193",1119,"afii10194",1123,"afii10195",1139,"afii10196",1141,"afii10831",63175,"afii10832",63176,"afii10846",1241,"afii299",8206,"afii300",8207,"afii301",8205,"afii57381",1642,"afii57388",1548,"afii57392",1632,"afii57393",1633,"afii57394",1634,"afii57395",1635,"afii57396",1636,"afii57397",1637,"afii57398",1638,"afii57399",1639,"afii57400",1640,"afii57401",1641,"afii57403",1563,"afii57407",1567,"afii57409",1569,"afii57410",1570,"afii57411",1571,"afii57412",1572,"afii57413",1573,"afii57414",1574,"afii57415",1575,"afii57416",1576,"afii57417",1577,"afii57418",1578,"afii57419",1579,"afii57420",1580,"afii57421",1581,"afii57422",1582,"afii57423",1583,"afii57424",1584,"afii57425",1585,"afii57426",1586,"afii57427",1587,"afii57428",1588,"afii57429",1589,"afii57430",1590,"afii57431",1591,"afii57432",1592,"afii57433",1593,"afii57434",1594,"afii57440",1600,"afii57441",1601,"afii57442",1602,"afii57443",1603,"afii57444",1604,"afii57445",1605,"afii57446",1606,"afii57448",1608,"afii57449",1609,"afii57450",1610,"afii57451",1611,"afii57452",1612,"afii57453",1613,"afii57454",1614,"afii57455",1615,"afii57456",1616,"afii57457",1617,"afii57458",1618,"afii57470",1607,"afii57505",1700,"afii57506",1662,"afii57507",1670,"afii57508",1688,"afii57509",1711,"afii57511",1657,"afii57512",1672,"afii57513",1681,"afii57514",1722,"afii57519",1746,"afii57534",1749,"afii57636",8362,"afii57645",1470,"afii57658",1475,"afii57664",1488,"afii57665",1489,"afii57666",1490,"afii57667",1491,"afii57668",1492,"afii57669",1493,"afii57670",1494,"afii57671",1495,"afii57672",1496,"afii57673",1497,"afii57674",1498,"afii57675",1499,"afii57676",1500,"afii57677",1501,"afii57678",1502,"afii57679",1503,"afii57680",1504,"afii57681",1505,"afii57682",1506,"afii57683",1507,"afii57684",1508,"afii57685",1509,"afii57686",1510,"afii57687",1511,"afii57688",1512,"afii57689",1513,"afii57690",1514,"afii57694",64298,"afii57695",64299,"afii57700",64331,"afii57705",64287,"afii57716",1520,"afii57717",1521,"afii57718",1522,"afii57723",64309,"afii57793",1460,"afii57794",1461,"afii57795",1462,"afii57796",1467,"afii57797",1464,"afii57798",1463,"afii57799",1456,"afii57800",1458,"afii57801",1457,"afii57802",1459,"afii57803",1474,"afii57804",1473,"afii57806",1465,"afii57807",1468,"afii57839",1469,"afii57841",1471,"afii57842",1472,"afii57929",700,"afii61248",8453,"afii61289",8467,"afii61352",8470,"afii61573",8236,"afii61574",8237,"afii61575",8238,"afii61664",8204,"afii63167",1645,"afii64937",701,"agrave",224,"agujarati",2693,"agurmukhi",2565,"ahiragana",12354,"ahookabove",7843,"aibengali",2448,"aibopomofo",12574,"aideva",2320,"aiecyrillic",1237,"aigujarati",2704,"aigurmukhi",2576,"aimatragurmukhi",2632,"ainarabic",1593,"ainfinalarabic",65226,"aininitialarabic",65227,"ainmedialarabic",65228,"ainvertedbreve",515,"aivowelsignbengali",2504,"aivowelsigndeva",2376,"aivowelsigngujarati",2760,"akatakana",12450,"akatakanahalfwidth",65393,"akorean",12623,"alef",1488,"alefarabic",1575,"alefdageshhebrew",64304,"aleffinalarabic",65166,"alefhamzaabovearabic",1571,"alefhamzaabovefinalarabic",65156,"alefhamzabelowarabic",1573,"alefhamzabelowfinalarabic",65160,"alefhebrew",1488,"aleflamedhebrew",64335,"alefmaddaabovearabic",1570,"alefmaddaabovefinalarabic",65154,"alefmaksuraarabic",1609,"alefmaksurafinalarabic",65264,"alefmaksurainitialarabic",65267,"alefmaksuramedialarabic",65268,"alefpatahhebrew",64302,"alefqamatshebrew",64303,"aleph",8501,"allequal",8780,"alpha",945,"alphatonos",940,"amacron",257,"amonospace",65345,"ampersand",38,"ampersandmonospace",65286,"ampersandsmall",63270,"amsquare",13250,"anbopomofo",12578,"angbopomofo",12580,"angbracketleft",12296,"angbracketright",12297,"angkhankhuthai",3674,"angle",8736,"anglebracketleft",12296,"anglebracketleftvertical",65087,"anglebracketright",12297,"anglebracketrightvertical",65088,"angleleft",9001,"angleright",9002,"angstrom",8491,"anoteleia",903,"anudattadeva",2386,"anusvarabengali",2434,"anusvaradeva",2306,"anusvaragujarati",2690,"aogonek",261,"apaatosquare",13056,"aparen",9372,"apostrophearmenian",1370,"apostrophemod",700,"apple",63743,"approaches",8784,"approxequal",8776,"approxequalorimage",8786,"approximatelyequal",8773,"araeaekorean",12686,"araeakorean",12685,"arc",8978,"arighthalfring",7834,"aring",229,"aringacute",507,"aringbelow",7681,"arrowboth",8596,"arrowdashdown",8675,"arrowdashleft",8672,"arrowdashright",8674,"arrowdashup",8673,"arrowdblboth",8660,"arrowdbldown",8659,"arrowdblleft",8656,"arrowdblright",8658,"arrowdblup",8657,"arrowdown",8595,"arrowdownleft",8601,"arrowdownright",8600,"arrowdownwhite",8681,"arrowheaddownmod",709,"arrowheadleftmod",706,"arrowheadrightmod",707,"arrowheadupmod",708,"arrowhorizex",63719,"arrowleft",8592,"arrowleftdbl",8656,"arrowleftdblstroke",8653,"arrowleftoverright",8646,"arrowleftwhite",8678,"arrowright",8594,"arrowrightdblstroke",8655,"arrowrightheavy",10142,"arrowrightoverleft",8644,"arrowrightwhite",8680,"arrowtableft",8676,"arrowtabright",8677,"arrowup",8593,"arrowupdn",8597,"arrowupdnbse",8616,"arrowupdownbase",8616,"arrowupleft",8598,"arrowupleftofdown",8645,"arrowupright",8599,"arrowupwhite",8679,"arrowvertex",63718,"asciicircum",94,"asciicircummonospace",65342,"asciitilde",126,"asciitildemonospace",65374,"ascript",593,"ascriptturned",594,"asmallhiragana",12353,"asmallkatakana",12449,"asmallkatakanahalfwidth",65383,"asterisk",42,"asteriskaltonearabic",1645,"asteriskarabic",1645,"asteriskmath",8727,"asteriskmonospace",65290,"asterisksmall",65121,"asterism",8258,"asuperior",63209,"asymptoticallyequal",8771,"at",64,"atilde",227,"atmonospace",65312,"atsmall",65131,"aturned",592,"aubengali",2452,"aubopomofo",12576,"audeva",2324,"augujarati",2708,"augurmukhi",2580,"aulengthmarkbengali",2519,"aumatragurmukhi",2636,"auvowelsignbengali",2508,"auvowelsigndeva",2380,"auvowelsigngujarati",2764,"avagrahadeva",2365,"aybarmenian",1377,"ayin",1506,"ayinaltonehebrew",64288,"ayinhebrew",1506,"b",98,"babengali",2476,"backslash",92,"backslashmonospace",65340,"badeva",2348,"bagujarati",2732,"bagurmukhi",2604,"bahiragana",12400,"bahtthai",3647,"bakatakana",12496,"bar",124,"barmonospace",65372,"bbopomofo",12549,"bcircle",9425,"bdotaccent",7683,"bdotbelow",7685,"beamedsixteenthnotes",9836,"because",8757,"becyrillic",1073,"beharabic",1576,"behfinalarabic",65168,"behinitialarabic",65169,"behiragana",12409,"behmedialarabic",65170,"behmeeminitialarabic",64671,"behmeemisolatedarabic",64520,"behnoonfinalarabic",64621,"bekatakana",12505,"benarmenian",1378,"bet",1489,"beta",946,"betasymbolgreek",976,"betdagesh",64305,"betdageshhebrew",64305,"bethebrew",1489,"betrafehebrew",64332,"bhabengali",2477,"bhadeva",2349,"bhagujarati",2733,"bhagurmukhi",2605,"bhook",595,"bihiragana",12403,"bikatakana",12499,"bilabialclick",664,"bindigurmukhi",2562,"birusquare",13105,"blackcircle",9679,"blackdiamond",9670,"blackdownpointingtriangle",9660,"blackleftpointingpointer",9668,"blackleftpointingtriangle",9664,"blacklenticularbracketleft",12304,"blacklenticularbracketleftvertical",65083,"blacklenticularbracketright",12305,"blacklenticularbracketrightvertical",65084,"blacklowerlefttriangle",9699,"blacklowerrighttriangle",9698,"blackrectangle",9644,"blackrightpointingpointer",9658,"blackrightpointingtriangle",9654,"blacksmallsquare",9642,"blacksmilingface",9787,"blacksquare",9632,"blackstar",9733,"blackupperlefttriangle",9700,"blackupperrighttriangle",9701,"blackuppointingsmalltriangle",9652,"blackuppointingtriangle",9650,"blank",9251,"blinebelow",7687,"block",9608,"bmonospace",65346,"bobaimaithai",3610,"bohiragana",12412,"bokatakana",12508,"bparen",9373,"bqsquare",13251,"braceex",63732,"braceleft",123,"braceleftbt",63731,"braceleftmid",63730,"braceleftmonospace",65371,"braceleftsmall",65115,"bracelefttp",63729,"braceleftvertical",65079,"braceright",125,"bracerightbt",63742,"bracerightmid",63741,"bracerightmonospace",65373,"bracerightsmall",65116,"bracerighttp",63740,"bracerightvertical",65080,"bracketleft",91,"bracketleftbt",63728,"bracketleftex",63727,"bracketleftmonospace",65339,"bracketlefttp",63726,"bracketright",93,"bracketrightbt",63739,"bracketrightex",63738,"bracketrightmonospace",65341,"bracketrighttp",63737,"breve",728,"brevebelowcmb",814,"brevecmb",774,"breveinvertedbelowcmb",815,"breveinvertedcmb",785,"breveinverteddoublecmb",865,"bridgebelowcmb",810,"bridgeinvertedbelowcmb",826,"brokenbar",166,"bstroke",384,"bsuperior",63210,"btopbar",387,"buhiragana",12406,"bukatakana",12502,"bullet",8226,"bulletinverse",9688,"bulletoperator",8729,"bullseye",9678,"c",99,"caarmenian",1390,"cabengali",2458,"cacute",263,"cadeva",2330,"cagujarati",2714,"cagurmukhi",2586,"calsquare",13192,"candrabindubengali",2433,"candrabinducmb",784,"candrabindudeva",2305,"candrabindugujarati",2689,"capslock",8682,"careof",8453,"caron",711,"caronbelowcmb",812,"caroncmb",780,"carriagereturn",8629,"cbopomofo",12568,"ccaron",269,"ccedilla",231,"ccedillaacute",7689,"ccircle",9426,"ccircumflex",265,"ccurl",597,"cdot",267,"cdotaccent",267,"cdsquare",13253,"cedilla",184,"cedillacmb",807,"cent",162,"centigrade",8451,"centinferior",63199,"centmonospace",65504,"centoldstyle",63394,"centsuperior",63200,"chaarmenian",1401,"chabengali",2459,"chadeva",2331,"chagujarati",2715,"chagurmukhi",2587,"chbopomofo",12564,"cheabkhasiancyrillic",1213,"checkmark",10003,"checyrillic",1095,"chedescenderabkhasiancyrillic",1215,"chedescendercyrillic",1207,"chedieresiscyrillic",1269,"cheharmenian",1395,"chekhakassiancyrillic",1228,"cheverticalstrokecyrillic",1209,"chi",967,"chieuchacirclekorean",12919,"chieuchaparenkorean",12823,"chieuchcirclekorean",12905,"chieuchkorean",12618,"chieuchparenkorean",12809,"chochangthai",3594,"chochanthai",3592,"chochingthai",3593,"chochoethai",3596,"chook",392,"cieucacirclekorean",12918,"cieucaparenkorean",12822,"cieuccirclekorean",12904,"cieuckorean",12616,"cieucparenkorean",12808,"cieucuparenkorean",12828,"circle",9675,"circlecopyrt",169,"circlemultiply",8855,"circleot",8857,"circleplus",8853,"circlepostalmark",12342,"circlewithlefthalfblack",9680,"circlewithrighthalfblack",9681,"circumflex",710,"circumflexbelowcmb",813,"circumflexcmb",770,"clear",8999,"clickalveolar",450,"clickdental",448,"clicklateral",449,"clickretroflex",451,"club",9827,"clubsuitblack",9827,"clubsuitwhite",9831,"cmcubedsquare",13220,"cmonospace",65347,"cmsquaredsquare",13216,"coarmenian",1409,"colon",58,"colonmonetary",8353,"colonmonospace",65306,"colonsign",8353,"colonsmall",65109,"colontriangularhalfmod",721,"colontriangularmod",720,"comma",44,"commaabovecmb",787,"commaaboverightcmb",789,"commaaccent",63171,"commaarabic",1548,"commaarmenian",1373,"commainferior",63201,"commamonospace",65292,"commareversedabovecmb",788,"commareversedmod",701,"commasmall",65104,"commasuperior",63202,"commaturnedabovecmb",786,"commaturnedmod",699,"compass",9788,"congruent",8773,"contourintegral",8750,"control",8963,"controlACK",6,"controlBEL",7,"controlBS",8,"controlCAN",24,"controlCR",13,"controlDC1",17,"controlDC2",18,"controlDC3",19,"controlDC4",20,"controlDEL",127,"controlDLE",16,"controlEM",25,"controlENQ",5,"controlEOT",4,"controlESC",27,"controlETB",23,"controlETX",3,"controlFF",12,"controlFS",28,"controlGS",29,"controlHT",9,"controlLF",10,"controlNAK",21,"controlNULL",0,"controlRS",30,"controlSI",15,"controlSO",14,"controlSOT",2,"controlSTX",1,"controlSUB",26,"controlSYN",22,"controlUS",31,"controlVT",11,"copyright",169,"copyrightsans",63721,"copyrightserif",63193,"cornerbracketleft",12300,"cornerbracketlefthalfwidth",65378,"cornerbracketleftvertical",65089,"cornerbracketright",12301,"cornerbracketrighthalfwidth",65379,"cornerbracketrightvertical",65090,"corporationsquare",13183,"cosquare",13255,"coverkgsquare",13254,"cparen",9374,"cruzeiro",8354,"cstretched",663,"curlyand",8911,"curlyor",8910,"currency",164,"cyrBreve",63185,"cyrFlex",63186,"cyrbreve",63188,"cyrflex",63189,"d",100,"daarmenian",1380,"dabengali",2470,"dadarabic",1590,"dadeva",2342,"dadfinalarabic",65214,"dadinitialarabic",65215,"dadmedialarabic",65216,"dagesh",1468,"dageshhebrew",1468,"dagger",8224,"daggerdbl",8225,"dagujarati",2726,"dagurmukhi",2598,"dahiragana",12384,"dakatakana",12480,"dalarabic",1583,"dalet",1491,"daletdagesh",64307,"daletdageshhebrew",64307,"dalethebrew",1491,"dalfinalarabic",65194,"dammaarabic",1615,"dammalowarabic",1615,"dammatanaltonearabic",1612,"dammatanarabic",1612,"danda",2404,"dargahebrew",1447,"dargalefthebrew",1447,"dasiapneumatacyrilliccmb",1157,"dblGrave",63187,"dblanglebracketleft",12298,"dblanglebracketleftvertical",65085,"dblanglebracketright",12299,"dblanglebracketrightvertical",65086,"dblarchinvertedbelowcmb",811,"dblarrowleft",8660,"dblarrowright",8658,"dbldanda",2405,"dblgrave",63190,"dblgravecmb",783,"dblintegral",8748,"dbllowline",8215,"dbllowlinecmb",819,"dbloverlinecmb",831,"dblprimemod",698,"dblverticalbar",8214,"dblverticallineabovecmb",782,"dbopomofo",12553,"dbsquare",13256,"dcaron",271,"dcedilla",7697,"dcircle",9427,"dcircumflexbelow",7699,"dcroat",273,"ddabengali",2465,"ddadeva",2337,"ddagujarati",2721,"ddagurmukhi",2593,"ddalarabic",1672,"ddalfinalarabic",64393,"dddhadeva",2396,"ddhabengali",2466,"ddhadeva",2338,"ddhagujarati",2722,"ddhagurmukhi",2594,"ddotaccent",7691,"ddotbelow",7693,"decimalseparatorarabic",1643,"decimalseparatorpersian",1643,"decyrillic",1076,"degree",176,"dehihebrew",1453,"dehiragana",12391,"deicoptic",1007,"dekatakana",12487,"deleteleft",9003,"deleteright",8998,"delta",948,"deltaturned",397,"denominatorminusonenumeratorbengali",2552,"dezh",676,"dhabengali",2471,"dhadeva",2343,"dhagujarati",2727,"dhagurmukhi",2599,"dhook",599,"dialytikatonos",901,"dialytikatonoscmb",836,"diamond",9830,"diamondsuitwhite",9826,"dieresis",168,"dieresisacute",63191,"dieresisbelowcmb",804,"dieresiscmb",776,"dieresisgrave",63192,"dieresistonos",901,"dihiragana",12386,"dikatakana",12482,"dittomark",12291,"divide",247,"divides",8739,"divisionslash",8725,"djecyrillic",1106,"dkshade",9619,"dlinebelow",7695,"dlsquare",13207,"dmacron",273,"dmonospace",65348,"dnblock",9604,"dochadathai",3598,"dodekthai",3604,"dohiragana",12393,"dokatakana",12489,"dollar",36,"dollarinferior",63203,"dollarmonospace",65284,"dollaroldstyle",63268,"dollarsmall",65129,"dollarsuperior",63204,"dong",8363,"dorusquare",13094,"dotaccent",729,"dotaccentcmb",775,"dotbelowcmb",803,"dotbelowcomb",803,"dotkatakana",12539,"dotlessi",305,"dotlessj",63166,"dotlessjstrokehook",644,"dotmath",8901,"dottedcircle",9676,"doubleyodpatah",64287,"doubleyodpatahhebrew",64287,"downtackbelowcmb",798,"downtackmod",725,"dparen",9375,"dsuperior",63211,"dtail",598,"dtopbar",396,"duhiragana",12389,"dukatakana",12485,"dz",499,"dzaltone",675,"dzcaron",454,"dzcurl",677,"dzeabkhasiancyrillic",1249,"dzecyrillic",1109,"dzhecyrillic",1119,"e",101,"eacute",233,"earth",9793,"ebengali",2447,"ebopomofo",12572,"ebreve",277,"ecandradeva",2317,"ecandragujarati",2701,"ecandravowelsigndeva",2373,"ecandravowelsigngujarati",2757,"ecaron",283,"ecedillabreve",7709,"echarmenian",1381,"echyiwnarmenian",1415,"ecircle",9428,"ecircumflex",234,"ecircumflexacute",7871,"ecircumflexbelow",7705,"ecircumflexdotbelow",7879,"ecircumflexgrave",7873,"ecircumflexhookabove",7875,"ecircumflextilde",7877,"ecyrillic",1108,"edblgrave",517,"edeva",2319,"edieresis",235,"edot",279,"edotaccent",279,"edotbelow",7865,"eegurmukhi",2575,"eematragurmukhi",2631,"efcyrillic",1092,"egrave",232,"egujarati",2703,"eharmenian",1383,"ehbopomofo",12573,"ehiragana",12360,"ehookabove",7867,"eibopomofo",12575,"eight",56,"eightarabic",1640,"eightbengali",2542,"eightcircle",9319,"eightcircleinversesansserif",10129,"eightdeva",2414,"eighteencircle",9329,"eighteenparen",9349,"eighteenperiod",9369,"eightgujarati",2798,"eightgurmukhi",2670,"eighthackarabic",1640,"eighthangzhou",12328,"eighthnotebeamed",9835,"eightideographicparen",12839,"eightinferior",8328,"eightmonospace",65304,"eightoldstyle",63288,"eightparen",9339,"eightperiod",9359,"eightpersian",1784,"eightroman",8567,"eightsuperior",8312,"eightthai",3672,"einvertedbreve",519,"eiotifiedcyrillic",1125,"ekatakana",12456,"ekatakanahalfwidth",65396,"ekonkargurmukhi",2676,"ekorean",12628,"elcyrillic",1083,"element",8712,"elevencircle",9322,"elevenparen",9342,"elevenperiod",9362,"elevenroman",8570,"ellipsis",8230,"ellipsisvertical",8942,"emacron",275,"emacronacute",7703,"emacrongrave",7701,"emcyrillic",1084,"emdash",8212,"emdashvertical",65073,"emonospace",65349,"emphasismarkarmenian",1371,"emptyset",8709,"enbopomofo",12579,"encyrillic",1085,"endash",8211,"endashvertical",65074,"endescendercyrillic",1187,"eng",331,"engbopomofo",12581,"enghecyrillic",1189,"enhookcyrillic",1224,"enspace",8194,"eogonek",281,"eokorean",12627,"eopen",603,"eopenclosed",666,"eopenreversed",604,"eopenreversedclosed",606,"eopenreversedhook",605,"eparen",9376,"epsilon",949,"epsilontonos",941,"equal",61,"equalmonospace",65309,"equalsmall",65126,"equalsuperior",8316,"equivalence",8801,"erbopomofo",12582,"ercyrillic",1088,"ereversed",600,"ereversedcyrillic",1101,"escyrillic",1089,"esdescendercyrillic",1195,"esh",643,"eshcurl",646,"eshortdeva",2318,"eshortvowelsigndeva",2374,"eshreversedloop",426,"eshsquatreversed",645,"esmallhiragana",12359,"esmallkatakana",12455,"esmallkatakanahalfwidth",65386,"estimated",8494,"esuperior",63212,"eta",951,"etarmenian",1384,"etatonos",942,"eth",240,"etilde",7869,"etildebelow",7707,"etnahtafoukhhebrew",1425,"etnahtafoukhlefthebrew",1425,"etnahtahebrew",1425,"etnahtalefthebrew",1425,"eturned",477,"eukorean",12641,"euro",8364,"evowelsignbengali",2503,"evowelsigndeva",2375,"evowelsigngujarati",2759,"exclam",33,"exclamarmenian",1372,"exclamdbl",8252,"exclamdown",161,"exclamdownsmall",63393,"exclammonospace",65281,"exclamsmall",63265,"existential",8707,"ezh",658,"ezhcaron",495,"ezhcurl",659,"ezhreversed",441,"ezhtail",442,"f",102,"fadeva",2398,"fagurmukhi",2654,"fahrenheit",8457,"fathaarabic",1614,"fathalowarabic",1614,"fathatanarabic",1611,"fbopomofo",12552,"fcircle",9429,"fdotaccent",7711,"feharabic",1601,"feharmenian",1414,"fehfinalarabic",65234,"fehinitialarabic",65235,"fehmedialarabic",65236,"feicoptic",997,"female",9792,"ff",64256,"f_f",64256,"ffi",64259,"ffl",64260,"fi",64257,"fifteencircle",9326,"fifteenparen",9346,"fifteenperiod",9366,"figuredash",8210,"filledbox",9632,"filledrect",9644,"finalkaf",1498,"finalkafdagesh",64314,"finalkafdageshhebrew",64314,"finalkafhebrew",1498,"finalmem",1501,"finalmemhebrew",1501,"finalnun",1503,"finalnunhebrew",1503,"finalpe",1507,"finalpehebrew",1507,"finaltsadi",1509,"finaltsadihebrew",1509,"firsttonechinese",713,"fisheye",9673,"fitacyrillic",1139,"five",53,"fivearabic",1637,"fivebengali",2539,"fivecircle",9316,"fivecircleinversesansserif",10126,"fivedeva",2411,"fiveeighths",8541,"fivegujarati",2795,"fivegurmukhi",2667,"fivehackarabic",1637,"fivehangzhou",12325,"fiveideographicparen",12836,"fiveinferior",8325,"fivemonospace",65301,"fiveoldstyle",63285,"fiveparen",9336,"fiveperiod",9356,"fivepersian",1781,"fiveroman",8564,"fivesuperior",8309,"fivethai",3669,"fl",64258,"florin",402,"fmonospace",65350,"fmsquare",13209,"fofanthai",3615,"fofathai",3613,"fongmanthai",3663,"forall",8704,"four",52,"fourarabic",1636,"fourbengali",2538,"fourcircle",9315,"fourcircleinversesansserif",10125,"fourdeva",2410,"fourgujarati",2794,"fourgurmukhi",2666,"fourhackarabic",1636,"fourhangzhou",12324,"fourideographicparen",12835,"fourinferior",8324,"fourmonospace",65300,"fournumeratorbengali",2551,"fouroldstyle",63284,"fourparen",9335,"fourperiod",9355,"fourpersian",1780,"fourroman",8563,"foursuperior",8308,"fourteencircle",9325,"fourteenparen",9345,"fourteenperiod",9365,"fourthai",3668,"fourthtonechinese",715,"fparen",9377,"fraction",8260,"franc",8355,"g",103,"gabengali",2455,"gacute",501,"gadeva",2327,"gafarabic",1711,"gaffinalarabic",64403,"gafinitialarabic",64404,"gafmedialarabic",64405,"gagujarati",2711,"gagurmukhi",2583,"gahiragana",12364,"gakatakana",12460,"gamma",947,"gammalatinsmall",611,"gammasuperior",736,"gangiacoptic",1003,"gbopomofo",12557,"gbreve",287,"gcaron",487,"gcedilla",291,"gcircle",9430,"gcircumflex",285,"gcommaaccent",291,"gdot",289,"gdotaccent",289,"gecyrillic",1075,"gehiragana",12370,"gekatakana",12466,"geometricallyequal",8785,"gereshaccenthebrew",1436,"gereshhebrew",1523,"gereshmuqdamhebrew",1437,"germandbls",223,"gershayimaccenthebrew",1438,"gershayimhebrew",1524,"getamark",12307,"ghabengali",2456,"ghadarmenian",1394,"ghadeva",2328,"ghagujarati",2712,"ghagurmukhi",2584,"ghainarabic",1594,"ghainfinalarabic",65230,"ghaininitialarabic",65231,"ghainmedialarabic",65232,"ghemiddlehookcyrillic",1173,"ghestrokecyrillic",1171,"gheupturncyrillic",1169,"ghhadeva",2394,"ghhagurmukhi",2650,"ghook",608,"ghzsquare",13203,"gihiragana",12366,"gikatakana",12462,"gimarmenian",1379,"gimel",1490,"gimeldagesh",64306,"gimeldageshhebrew",64306,"gimelhebrew",1490,"gjecyrillic",1107,"glottalinvertedstroke",446,"glottalstop",660,"glottalstopinverted",662,"glottalstopmod",704,"glottalstopreversed",661,"glottalstopreversedmod",705,"glottalstopreversedsuperior",740,"glottalstopstroke",673,"glottalstopstrokereversed",674,"gmacron",7713,"gmonospace",65351,"gohiragana",12372,"gokatakana",12468,"gparen",9378,"gpasquare",13228,"gradient",8711,"grave",96,"gravebelowcmb",790,"gravecmb",768,"gravecomb",768,"gravedeva",2387,"gravelowmod",718,"gravemonospace",65344,"gravetonecmb",832,"greater",62,"greaterequal",8805,"greaterequalorless",8923,"greatermonospace",65310,"greaterorequivalent",8819,"greaterorless",8823,"greateroverequal",8807,"greatersmall",65125,"gscript",609,"gstroke",485,"guhiragana",12368,"guillemotleft",171,"guillemotright",187,"guilsinglleft",8249,"guilsinglright",8250,"gukatakana",12464,"guramusquare",13080,"gysquare",13257,"h",104,"haabkhasiancyrillic",1193,"haaltonearabic",1729,"habengali",2489,"hadescendercyrillic",1203,"hadeva",2361,"hagujarati",2745,"hagurmukhi",2617,"haharabic",1581,"hahfinalarabic",65186,"hahinitialarabic",65187,"hahiragana",12399,"hahmedialarabic",65188,"haitusquare",13098,"hakatakana",12495,"hakatakanahalfwidth",65418,"halantgurmukhi",2637,"hamzaarabic",1569,"hamzalowarabic",1569,"hangulfiller",12644,"hardsigncyrillic",1098,"harpoonleftbarbup",8636,"harpoonrightbarbup",8640,"hasquare",13258,"hatafpatah",1458,"hatafpatah16",1458,"hatafpatah23",1458,"hatafpatah2f",1458,"hatafpatahhebrew",1458,"hatafpatahnarrowhebrew",1458,"hatafpatahquarterhebrew",1458,"hatafpatahwidehebrew",1458,"hatafqamats",1459,"hatafqamats1b",1459,"hatafqamats28",1459,"hatafqamats34",1459,"hatafqamatshebrew",1459,"hatafqamatsnarrowhebrew",1459,"hatafqamatsquarterhebrew",1459,"hatafqamatswidehebrew",1459,"hatafsegol",1457,"hatafsegol17",1457,"hatafsegol24",1457,"hatafsegol30",1457,"hatafsegolhebrew",1457,"hatafsegolnarrowhebrew",1457,"hatafsegolquarterhebrew",1457,"hatafsegolwidehebrew",1457,"hbar",295,"hbopomofo",12559,"hbrevebelow",7723,"hcedilla",7721,"hcircle",9431,"hcircumflex",293,"hdieresis",7719,"hdotaccent",7715,"hdotbelow",7717,"he",1492,"heart",9829,"heartsuitblack",9829,"heartsuitwhite",9825,"hedagesh",64308,"hedageshhebrew",64308,"hehaltonearabic",1729,"heharabic",1607,"hehebrew",1492,"hehfinalaltonearabic",64423,"hehfinalalttwoarabic",65258,"hehfinalarabic",65258,"hehhamzaabovefinalarabic",64421,"hehhamzaaboveisolatedarabic",64420,"hehinitialaltonearabic",64424,"hehinitialarabic",65259,"hehiragana",12408,"hehmedialaltonearabic",64425,"hehmedialarabic",65260,"heiseierasquare",13179,"hekatakana",12504,"hekatakanahalfwidth",65421,"hekutaarusquare",13110,"henghook",615,"herutusquare",13113,"het",1495,"hethebrew",1495,"hhook",614,"hhooksuperior",689,"hieuhacirclekorean",12923,"hieuhaparenkorean",12827,"hieuhcirclekorean",12909,"hieuhkorean",12622,"hieuhparenkorean",12813,"hihiragana",12402,"hikatakana",12498,"hikatakanahalfwidth",65419,"hiriq",1460,"hiriq14",1460,"hiriq21",1460,"hiriq2d",1460,"hiriqhebrew",1460,"hiriqnarrowhebrew",1460,"hiriqquarterhebrew",1460,"hiriqwidehebrew",1460,"hlinebelow",7830,"hmonospace",65352,"hoarmenian",1392,"hohipthai",3627,"hohiragana",12411,"hokatakana",12507,"hokatakanahalfwidth",65422,"holam",1465,"holam19",1465,"holam26",1465,"holam32",1465,"holamhebrew",1465,"holamnarrowhebrew",1465,"holamquarterhebrew",1465,"holamwidehebrew",1465,"honokhukthai",3630,"hookabovecomb",777,"hookcmb",777,"hookpalatalizedbelowcmb",801,"hookretroflexbelowcmb",802,"hoonsquare",13122,"horicoptic",1001,"horizontalbar",8213,"horncmb",795,"hotsprings",9832,"house",8962,"hparen",9379,"hsuperior",688,"hturned",613,"huhiragana",12405,"huiitosquare",13107,"hukatakana",12501,"hukatakanahalfwidth",65420,"hungarumlaut",733,"hungarumlautcmb",779,"hv",405,"hyphen",45,"hypheninferior",63205,"hyphenmonospace",65293,"hyphensmall",65123,"hyphensuperior",63206,"hyphentwo",8208,"i",105,"iacute",237,"iacyrillic",1103,"ibengali",2439,"ibopomofo",12583,"ibreve",301,"icaron",464,"icircle",9432,"icircumflex",238,"icyrillic",1110,"idblgrave",521,"ideographearthcircle",12943,"ideographfirecircle",12939,"ideographicallianceparen",12863,"ideographiccallparen",12858,"ideographiccentrecircle",12965,"ideographicclose",12294,"ideographiccomma",12289,"ideographiccommaleft",65380,"ideographiccongratulationparen",12855,"ideographiccorrectcircle",12963,"ideographicearthparen",12847,"ideographicenterpriseparen",12861,"ideographicexcellentcircle",12957,"ideographicfestivalparen",12864,"ideographicfinancialcircle",12950,"ideographicfinancialparen",12854,"ideographicfireparen",12843,"ideographichaveparen",12850,"ideographichighcircle",12964,"ideographiciterationmark",12293,"ideographiclaborcircle",12952,"ideographiclaborparen",12856,"ideographicleftcircle",12967,"ideographiclowcircle",12966,"ideographicmedicinecircle",12969,"ideographicmetalparen",12846,"ideographicmoonparen",12842,"ideographicnameparen",12852,"ideographicperiod",12290,"ideographicprintcircle",12958,"ideographicreachparen",12867,"ideographicrepresentparen",12857,"ideographicresourceparen",12862,"ideographicrightcircle",12968,"ideographicsecretcircle",12953,"ideographicselfparen",12866,"ideographicsocietyparen",12851,"ideographicspace",12288,"ideographicspecialparen",12853,"ideographicstockparen",12849,"ideographicstudyparen",12859,"ideographicsunparen",12848,"ideographicsuperviseparen",12860,"ideographicwaterparen",12844,"ideographicwoodparen",12845,"ideographiczero",12295,"ideographmetalcircle",12942,"ideographmooncircle",12938,"ideographnamecircle",12948,"ideographsuncircle",12944,"ideographwatercircle",12940,"ideographwoodcircle",12941,"ideva",2311,"idieresis",239,"idieresisacute",7727,"idieresiscyrillic",1253,"idotbelow",7883,"iebrevecyrillic",1239,"iecyrillic",1077,"ieungacirclekorean",12917,"ieungaparenkorean",12821,"ieungcirclekorean",12903,"ieungkorean",12615,"ieungparenkorean",12807,"igrave",236,"igujarati",2695,"igurmukhi",2567,"ihiragana",12356,"ihookabove",7881,"iibengali",2440,"iicyrillic",1080,"iideva",2312,"iigujarati",2696,"iigurmukhi",2568,"iimatragurmukhi",2624,"iinvertedbreve",523,"iishortcyrillic",1081,"iivowelsignbengali",2496,"iivowelsigndeva",2368,"iivowelsigngujarati",2752,"ij",307,"ikatakana",12452,"ikatakanahalfwidth",65394,"ikorean",12643,"ilde",732,"iluyhebrew",1452,"imacron",299,"imacroncyrillic",1251,"imageorapproximatelyequal",8787,"imatragurmukhi",2623,"imonospace",65353,"increment",8710,"infinity",8734,"iniarmenian",1387,"integral",8747,"integralbottom",8993,"integralbt",8993,"integralex",63733,"integraltop",8992,"integraltp",8992,"intersection",8745,"intisquare",13061,"invbullet",9688,"invcircle",9689,"invsmileface",9787,"iocyrillic",1105,"iogonek",303,"iota",953,"iotadieresis",970,"iotadieresistonos",912,"iotalatin",617,"iotatonos",943,"iparen",9380,"irigurmukhi",2674,"ismallhiragana",12355,"ismallkatakana",12451,"ismallkatakanahalfwidth",65384,"issharbengali",2554,"istroke",616,"isuperior",63213,"iterationhiragana",12445,"iterationkatakana",12541,"itilde",297,"itildebelow",7725,"iubopomofo",12585,"iucyrillic",1102,"ivowelsignbengali",2495,"ivowelsigndeva",2367,"ivowelsigngujarati",2751,"izhitsacyrillic",1141,"izhitsadblgravecyrillic",1143,"j",106,"jaarmenian",1393,"jabengali",2460,"jadeva",2332,"jagujarati",2716,"jagurmukhi",2588,"jbopomofo",12560,"jcaron",496,"jcircle",9433,"jcircumflex",309,"jcrossedtail",669,"jdotlessstroke",607,"jecyrillic",1112,"jeemarabic",1580,"jeemfinalarabic",65182,"jeeminitialarabic",65183,"jeemmedialarabic",65184,"jeharabic",1688,"jehfinalarabic",64395,"jhabengali",2461,"jhadeva",2333,"jhagujarati",2717,"jhagurmukhi",2589,"jheharmenian",1403,"jis",12292,"jmonospace",65354,"jparen",9381,"jsuperior",690,"k",107,"kabashkircyrillic",1185,"kabengali",2453,"kacute",7729,"kacyrillic",1082,"kadescendercyrillic",1179,"kadeva",2325,"kaf",1499,"kafarabic",1603,"kafdagesh",64315,"kafdageshhebrew",64315,"kaffinalarabic",65242,"kafhebrew",1499,"kafinitialarabic",65243,"kafmedialarabic",65244,"kafrafehebrew",64333,"kagujarati",2709,"kagurmukhi",2581,"kahiragana",12363,"kahookcyrillic",1220,"kakatakana",12459,"kakatakanahalfwidth",65398,"kappa",954,"kappasymbolgreek",1008,"kapyeounmieumkorean",12657,"kapyeounphieuphkorean",12676,"kapyeounpieupkorean",12664,"kapyeounssangpieupkorean",12665,"karoriisquare",13069,"kashidaautoarabic",1600,"kashidaautonosidebearingarabic",1600,"kasmallkatakana",12533,"kasquare",13188,"kasraarabic",1616,"kasratanarabic",1613,"kastrokecyrillic",1183,"katahiraprolongmarkhalfwidth",65392,"kaverticalstrokecyrillic",1181,"kbopomofo",12558,"kcalsquare",13193,"kcaron",489,"kcedilla",311,"kcircle",9434,"kcommaaccent",311,"kdotbelow",7731,"keharmenian",1412,"kehiragana",12369,"kekatakana",12465,"kekatakanahalfwidth",65401,"kenarmenian",1391,"kesmallkatakana",12534,"kgreenlandic",312,"khabengali",2454,"khacyrillic",1093,"khadeva",2326,"khagujarati",2710,"khagurmukhi",2582,"khaharabic",1582,"khahfinalarabic",65190,"khahinitialarabic",65191,"khahmedialarabic",65192,"kheicoptic",999,"khhadeva",2393,"khhagurmukhi",2649,"khieukhacirclekorean",12920,"khieukhaparenkorean",12824,"khieukhcirclekorean",12906,"khieukhkorean",12619,"khieukhparenkorean",12810,"khokhaithai",3586,"khokhonthai",3589,"khokhuatthai",3587,"khokhwaithai",3588,"khomutthai",3675,"khook",409,"khorakhangthai",3590,"khzsquare",13201,"kihiragana",12365,"kikatakana",12461,"kikatakanahalfwidth",65399,"kiroguramusquare",13077,"kiromeetorusquare",13078,"kirosquare",13076,"kiyeokacirclekorean",12910,"kiyeokaparenkorean",12814,"kiyeokcirclekorean",12896,"kiyeokkorean",12593,"kiyeokparenkorean",12800,"kiyeoksioskorean",12595,"kjecyrillic",1116,"klinebelow",7733,"klsquare",13208,"kmcubedsquare",13222,"kmonospace",65355,"kmsquaredsquare",13218,"kohiragana",12371,"kohmsquare",13248,"kokaithai",3585,"kokatakana",12467,"kokatakanahalfwidth",65402,"kooposquare",13086,"koppacyrillic",1153,"koreanstandardsymbol",12927,"koroniscmb",835,"kparen",9382,"kpasquare",13226,"ksicyrillic",1135,"ktsquare",13263,"kturned",670,"kuhiragana",12367,"kukatakana",12463,"kukatakanahalfwidth",65400,"kvsquare",13240,"kwsquare",13246,"l",108,"labengali",2482,"lacute",314,"ladeva",2354,"lagujarati",2738,"lagurmukhi",2610,"lakkhangyaothai",3653,"lamaleffinalarabic",65276,"lamalefhamzaabovefinalarabic",65272,"lamalefhamzaaboveisolatedarabic",65271,"lamalefhamzabelowfinalarabic",65274,"lamalefhamzabelowisolatedarabic",65273,"lamalefisolatedarabic",65275,"lamalefmaddaabovefinalarabic",65270,"lamalefmaddaaboveisolatedarabic",65269,"lamarabic",1604,"lambda",955,"lambdastroke",411,"lamed",1500,"lameddagesh",64316,"lameddageshhebrew",64316,"lamedhebrew",1500,"lamfinalarabic",65246,"lamhahinitialarabic",64714,"laminitialarabic",65247,"lamjeeminitialarabic",64713,"lamkhahinitialarabic",64715,"lamlamhehisolatedarabic",65010,"lammedialarabic",65248,"lammeemhahinitialarabic",64904,"lammeeminitialarabic",64716,"largecircle",9711,"lbar",410,"lbelt",620,"lbopomofo",12556,"lcaron",318,"lcedilla",316,"lcircle",9435,"lcircumflexbelow",7741,"lcommaaccent",316,"ldot",320,"ldotaccent",320,"ldotbelow",7735,"ldotbelowmacron",7737,"leftangleabovecmb",794,"lefttackbelowcmb",792,"less",60,"lessequal",8804,"lessequalorgreater",8922,"lessmonospace",65308,"lessorequivalent",8818,"lessorgreater",8822,"lessoverequal",8806,"lesssmall",65124,"lezh",622,"lfblock",9612,"lhookretroflex",621,"lira",8356,"liwnarmenian",1388,"lj",457,"ljecyrillic",1113,"ll",63168,"lladeva",2355,"llagujarati",2739,"llinebelow",7739,"llladeva",2356,"llvocalicbengali",2529,"llvocalicdeva",2401,"llvocalicvowelsignbengali",2531,"llvocalicvowelsigndeva",2403,"lmiddletilde",619,"lmonospace",65356,"lmsquare",13264,"lochulathai",3628,"logicaland",8743,"logicalnot",172,"logicalnotreversed",8976,"logicalor",8744,"lolingthai",3621,"longs",383,"lowlinecenterline",65102,"lowlinecmb",818,"lowlinedashed",65101,"lozenge",9674,"lparen",9383,"lslash",322,"lsquare",8467,"lsuperior",63214,"ltshade",9617,"luthai",3622,"lvocalicbengali",2444,"lvocalicdeva",2316,"lvocalicvowelsignbengali",2530,"lvocalicvowelsigndeva",2402,"lxsquare",13267,"m",109,"mabengali",2478,"macron",175,"macronbelowcmb",817,"macroncmb",772,"macronlowmod",717,"macronmonospace",65507,"macute",7743,"madeva",2350,"magujarati",2734,"magurmukhi",2606,"mahapakhhebrew",1444,"mahapakhlefthebrew",1444,"mahiragana",12414,"maichattawalowleftthai",63637,"maichattawalowrightthai",63636,"maichattawathai",3659,"maichattawaupperleftthai",63635,"maieklowleftthai",63628,"maieklowrightthai",63627,"maiekthai",3656,"maiekupperleftthai",63626,"maihanakatleftthai",63620,"maihanakatthai",3633,"maitaikhuleftthai",63625,"maitaikhuthai",3655,"maitholowleftthai",63631,"maitholowrightthai",63630,"maithothai",3657,"maithoupperleftthai",63629,"maitrilowleftthai",63634,"maitrilowrightthai",63633,"maitrithai",3658,"maitriupperleftthai",63632,"maiyamokthai",3654,"makatakana",12510,"makatakanahalfwidth",65423,"male",9794,"mansyonsquare",13127,"maqafhebrew",1470,"mars",9794,"masoracirclehebrew",1455,"masquare",13187,"mbopomofo",12551,"mbsquare",13268,"mcircle",9436,"mcubedsquare",13221,"mdotaccent",7745,"mdotbelow",7747,"meemarabic",1605,"meemfinalarabic",65250,"meeminitialarabic",65251,"meemmedialarabic",65252,"meemmeeminitialarabic",64721,"meemmeemisolatedarabic",64584,"meetorusquare",13133,"mehiragana",12417,"meizierasquare",13182,"mekatakana",12513,"mekatakanahalfwidth",65426,"mem",1502,"memdagesh",64318,"memdageshhebrew",64318,"memhebrew",1502,"menarmenian",1396,"merkhahebrew",1445,"merkhakefulahebrew",1446,"merkhakefulalefthebrew",1446,"merkhalefthebrew",1445,"mhook",625,"mhzsquare",13202,"middledotkatakanahalfwidth",65381,"middot",183,"mieumacirclekorean",12914,"mieumaparenkorean",12818,"mieumcirclekorean",12900,"mieumkorean",12609,"mieumpansioskorean",12656,"mieumparenkorean",12804,"mieumpieupkorean",12654,"mieumsioskorean",12655,"mihiragana",12415,"mikatakana",12511,"mikatakanahalfwidth",65424,"minus",8722,"minusbelowcmb",800,"minuscircle",8854,"minusmod",727,"minusplus",8723,"minute",8242,"miribaarusquare",13130,"mirisquare",13129,"mlonglegturned",624,"mlsquare",13206,"mmcubedsquare",13219,"mmonospace",65357,"mmsquaredsquare",13215,"mohiragana",12418,"mohmsquare",13249,"mokatakana",12514,"mokatakanahalfwidth",65427,"molsquare",13270,"momathai",3617,"moverssquare",13223,"moverssquaredsquare",13224,"mparen",9384,"mpasquare",13227,"mssquare",13235,"msuperior",63215,"mturned",623,"mu",181,"mu1",181,"muasquare",13186,"muchgreater",8811,"muchless",8810,"mufsquare",13196,"mugreek",956,"mugsquare",13197,"muhiragana",12416,"mukatakana",12512,"mukatakanahalfwidth",65425,"mulsquare",13205,"multiply",215,"mumsquare",13211,"munahhebrew",1443,"munahlefthebrew",1443,"musicalnote",9834,"musicalnotedbl",9835,"musicflatsign",9837,"musicsharpsign",9839,"mussquare",13234,"muvsquare",13238,"muwsquare",13244,"mvmegasquare",13241,"mvsquare",13239,"mwmegasquare",13247,"mwsquare",13245,"n",110,"nabengali",2472,"nabla",8711,"nacute",324,"nadeva",2344,"nagujarati",2728,"nagurmukhi",2600,"nahiragana",12394,"nakatakana",12490,"nakatakanahalfwidth",65413,"napostrophe",329,"nasquare",13185,"nbopomofo",12555,"nbspace",160,"ncaron",328,"ncedilla",326,"ncircle",9437,"ncircumflexbelow",7755,"ncommaaccent",326,"ndotaccent",7749,"ndotbelow",7751,"nehiragana",12397,"nekatakana",12493,"nekatakanahalfwidth",65416,"newsheqelsign",8362,"nfsquare",13195,"ngabengali",2457,"ngadeva",2329,"ngagujarati",2713,"ngagurmukhi",2585,"ngonguthai",3591,"nhiragana",12435,"nhookleft",626,"nhookretroflex",627,"nieunacirclekorean",12911,"nieunaparenkorean",12815,"nieuncieuckorean",12597,"nieuncirclekorean",12897,"nieunhieuhkorean",12598,"nieunkorean",12596,"nieunpansioskorean",12648,"nieunparenkorean",12801,"nieunsioskorean",12647,"nieuntikeutkorean",12646,"nihiragana",12395,"nikatakana",12491,"nikatakanahalfwidth",65414,"nikhahitleftthai",63641,"nikhahitthai",3661,"nine",57,"ninearabic",1641,"ninebengali",2543,"ninecircle",9320,"ninecircleinversesansserif",10130,"ninedeva",2415,"ninegujarati",2799,"ninegurmukhi",2671,"ninehackarabic",1641,"ninehangzhou",12329,"nineideographicparen",12840,"nineinferior",8329,"ninemonospace",65305,"nineoldstyle",63289,"nineparen",9340,"nineperiod",9360,"ninepersian",1785,"nineroman",8568,"ninesuperior",8313,"nineteencircle",9330,"nineteenparen",9350,"nineteenperiod",9370,"ninethai",3673,"nj",460,"njecyrillic",1114,"nkatakana",12531,"nkatakanahalfwidth",65437,"nlegrightlong",414,"nlinebelow",7753,"nmonospace",65358,"nmsquare",13210,"nnabengali",2467,"nnadeva",2339,"nnagujarati",2723,"nnagurmukhi",2595,"nnnadeva",2345,"nohiragana",12398,"nokatakana",12494,"nokatakanahalfwidth",65417,"nonbreakingspace",160,"nonenthai",3603,"nonuthai",3609,"noonarabic",1606,"noonfinalarabic",65254,"noonghunnaarabic",1722,"noonghunnafinalarabic",64415,"nooninitialarabic",65255,"noonjeeminitialarabic",64722,"noonjeemisolatedarabic",64587,"noonmedialarabic",65256,"noonmeeminitialarabic",64725,"noonmeemisolatedarabic",64590,"noonnoonfinalarabic",64653,"notcontains",8716,"notelement",8713,"notelementof",8713,"notequal",8800,"notgreater",8815,"notgreaternorequal",8817,"notgreaternorless",8825,"notidentical",8802,"notless",8814,"notlessnorequal",8816,"notparallel",8742,"notprecedes",8832,"notsubset",8836,"notsucceeds",8833,"notsuperset",8837,"nowarmenian",1398,"nparen",9385,"nssquare",13233,"nsuperior",8319,"ntilde",241,"nu",957,"nuhiragana",12396,"nukatakana",12492,"nukatakanahalfwidth",65415,"nuktabengali",2492,"nuktadeva",2364,"nuktagujarati",2748,"nuktagurmukhi",2620,"numbersign",35,"numbersignmonospace",65283,"numbersignsmall",65119,"numeralsigngreek",884,"numeralsignlowergreek",885,"numero",8470,"nun",1504,"nundagesh",64320,"nundageshhebrew",64320,"nunhebrew",1504,"nvsquare",13237,"nwsquare",13243,"nyabengali",2462,"nyadeva",2334,"nyagujarati",2718,"nyagurmukhi",2590,"o",111,"oacute",243,"oangthai",3629,"obarred",629,"obarredcyrillic",1257,"obarreddieresiscyrillic",1259,"obengali",2451,"obopomofo",12571,"obreve",335,"ocandradeva",2321,"ocandragujarati",2705,"ocandravowelsigndeva",2377,"ocandravowelsigngujarati",2761,"ocaron",466,"ocircle",9438,"ocircumflex",244,"ocircumflexacute",7889,"ocircumflexdotbelow",7897,"ocircumflexgrave",7891,"ocircumflexhookabove",7893,"ocircumflextilde",7895,"ocyrillic",1086,"odblacute",337,"odblgrave",525,"odeva",2323,"odieresis",246,"odieresiscyrillic",1255,"odotbelow",7885,"oe",339,"oekorean",12634,"ogonek",731,"ogonekcmb",808,"ograve",242,"ogujarati",2707,"oharmenian",1413,"ohiragana",12362,"ohookabove",7887,"ohorn",417,"ohornacute",7899,"ohorndotbelow",7907,"ohorngrave",7901,"ohornhookabove",7903,"ohorntilde",7905,"ohungarumlaut",337,"oi",419,"oinvertedbreve",527,"okatakana",12458,"okatakanahalfwidth",65397,"okorean",12631,"olehebrew",1451,"omacron",333,"omacronacute",7763,"omacrongrave",7761,"omdeva",2384,"omega",969,"omega1",982,"omegacyrillic",1121,"omegalatinclosed",631,"omegaroundcyrillic",1147,"omegatitlocyrillic",1149,"omegatonos",974,"omgujarati",2768,"omicron",959,"omicrontonos",972,"omonospace",65359,"one",49,"onearabic",1633,"onebengali",2535,"onecircle",9312,"onecircleinversesansserif",10122,"onedeva",2407,"onedotenleader",8228,"oneeighth",8539,"onefitted",63196,"onegujarati",2791,"onegurmukhi",2663,"onehackarabic",1633,"onehalf",189,"onehangzhou",12321,"oneideographicparen",12832,"oneinferior",8321,"onemonospace",65297,"onenumeratorbengali",2548,"oneoldstyle",63281,"oneparen",9332,"oneperiod",9352,"onepersian",1777,"onequarter",188,"oneroman",8560,"onesuperior",185,"onethai",3665,"onethird",8531,"oogonek",491,"oogonekmacron",493,"oogurmukhi",2579,"oomatragurmukhi",2635,"oopen",596,"oparen",9386,"openbullet",9702,"option",8997,"ordfeminine",170,"ordmasculine",186,"orthogonal",8735,"oshortdeva",2322,"oshortvowelsigndeva",2378,"oslash",248,"oslashacute",511,"osmallhiragana",12361,"osmallkatakana",12457,"osmallkatakanahalfwidth",65387,"ostrokeacute",511,"osuperior",63216,"otcyrillic",1151,"otilde",245,"otildeacute",7757,"otildedieresis",7759,"oubopomofo",12577,"overline",8254,"overlinecenterline",65098,"overlinecmb",773,"overlinedashed",65097,"overlinedblwavy",65100,"overlinewavy",65099,"overscore",175,"ovowelsignbengali",2507,"ovowelsigndeva",2379,"ovowelsigngujarati",2763,"p",112,"paampssquare",13184,"paasentosquare",13099,"pabengali",2474,"pacute",7765,"padeva",2346,"pagedown",8671,"pageup",8670,"pagujarati",2730,"pagurmukhi",2602,"pahiragana",12401,"paiyannoithai",3631,"pakatakana",12497,"palatalizationcyrilliccmb",1156,"palochkacyrillic",1216,"pansioskorean",12671,"paragraph",182,"parallel",8741,"parenleft",40,"parenleftaltonearabic",64830,"parenleftbt",63725,"parenleftex",63724,"parenleftinferior",8333,"parenleftmonospace",65288,"parenleftsmall",65113,"parenleftsuperior",8317,"parenlefttp",63723,"parenleftvertical",65077,"parenright",41,"parenrightaltonearabic",64831,"parenrightbt",63736,"parenrightex",63735,"parenrightinferior",8334,"parenrightmonospace",65289,"parenrightsmall",65114,"parenrightsuperior",8318,"parenrighttp",63734,"parenrightvertical",65078,"partialdiff",8706,"paseqhebrew",1472,"pashtahebrew",1433,"pasquare",13225,"patah",1463,"patah11",1463,"patah1d",1463,"patah2a",1463,"patahhebrew",1463,"patahnarrowhebrew",1463,"patahquarterhebrew",1463,"patahwidehebrew",1463,"pazerhebrew",1441,"pbopomofo",12550,"pcircle",9439,"pdotaccent",7767,"pe",1508,"pecyrillic",1087,"pedagesh",64324,"pedageshhebrew",64324,"peezisquare",13115,"pefinaldageshhebrew",64323,"peharabic",1662,"peharmenian",1402,"pehebrew",1508,"pehfinalarabic",64343,"pehinitialarabic",64344,"pehiragana",12410,"pehmedialarabic",64345,"pekatakana",12506,"pemiddlehookcyrillic",1191,"perafehebrew",64334,"percent",37,"percentarabic",1642,"percentmonospace",65285,"percentsmall",65130,"period",46,"periodarmenian",1417,"periodcentered",183,"periodhalfwidth",65377,"periodinferior",63207,"periodmonospace",65294,"periodsmall",65106,"periodsuperior",63208,"perispomenigreekcmb",834,"perpendicular",8869,"perthousand",8240,"peseta",8359,"pfsquare",13194,"phabengali",2475,"phadeva",2347,"phagujarati",2731,"phagurmukhi",2603,"phi",966,"phi1",981,"phieuphacirclekorean",12922,"phieuphaparenkorean",12826,"phieuphcirclekorean",12908,"phieuphkorean",12621,"phieuphparenkorean",12812,"philatin",632,"phinthuthai",3642,"phisymbolgreek",981,"phook",421,"phophanthai",3614,"phophungthai",3612,"phosamphaothai",3616,"pi",960,"pieupacirclekorean",12915,"pieupaparenkorean",12819,"pieupcieuckorean",12662,"pieupcirclekorean",12901,"pieupkiyeokkorean",12658,"pieupkorean",12610,"pieupparenkorean",12805,"pieupsioskiyeokkorean",12660,"pieupsioskorean",12612,"pieupsiostikeutkorean",12661,"pieupthieuthkorean",12663,"pieuptikeutkorean",12659,"pihiragana",12404,"pikatakana",12500,"pisymbolgreek",982,"piwrarmenian",1411,"plus",43,"plusbelowcmb",799,"pluscircle",8853,"plusminus",177,"plusmod",726,"plusmonospace",65291,"plussmall",65122,"plussuperior",8314,"pmonospace",65360,"pmsquare",13272,"pohiragana",12413,"pointingindexdownwhite",9759,"pointingindexleftwhite",9756,"pointingindexrightwhite",9758,"pointingindexupwhite",9757,"pokatakana",12509,"poplathai",3611,"postalmark",12306,"postalmarkface",12320,"pparen",9387,"precedes",8826,"prescription",8478,"primemod",697,"primereversed",8245,"product",8719,"projective",8965,"prolongedkana",12540,"propellor",8984,"propersubset",8834,"propersuperset",8835,"proportion",8759,"proportional",8733,"psi",968,"psicyrillic",1137,"psilipneumatacyrilliccmb",1158,"pssquare",13232,"puhiragana",12407,"pukatakana",12503,"pvsquare",13236,"pwsquare",13242,"q",113,"qadeva",2392,"qadmahebrew",1448,"qafarabic",1602,"qaffinalarabic",65238,"qafinitialarabic",65239,"qafmedialarabic",65240,"qamats",1464,"qamats10",1464,"qamats1a",1464,"qamats1c",1464,"qamats27",1464,"qamats29",1464,"qamats33",1464,"qamatsde",1464,"qamatshebrew",1464,"qamatsnarrowhebrew",1464,"qamatsqatanhebrew",1464,"qamatsqatannarrowhebrew",1464,"qamatsqatanquarterhebrew",1464,"qamatsqatanwidehebrew",1464,"qamatsquarterhebrew",1464,"qamatswidehebrew",1464,"qarneyparahebrew",1439,"qbopomofo",12561,"qcircle",9440,"qhook",672,"qmonospace",65361,"qof",1511,"qofdagesh",64327,"qofdageshhebrew",64327,"qofhebrew",1511,"qparen",9388,"quarternote",9833,"qubuts",1467,"qubuts18",1467,"qubuts25",1467,"qubuts31",1467,"qubutshebrew",1467,"qubutsnarrowhebrew",1467,"qubutsquarterhebrew",1467,"qubutswidehebrew",1467,"question",63,"questionarabic",1567,"questionarmenian",1374,"questiondown",191,"questiondownsmall",63423,"questiongreek",894,"questionmonospace",65311,"questionsmall",63295,"quotedbl",34,"quotedblbase",8222,"quotedblleft",8220,"quotedblmonospace",65282,"quotedblprime",12318,"quotedblprimereversed",12317,"quotedblright",8221,"quoteleft",8216,"quoteleftreversed",8219,"quotereversed",8219,"quoteright",8217,"quoterightn",329,"quotesinglbase",8218,"quotesingle",39,"quotesinglemonospace",65287,"r",114,"raarmenian",1404,"rabengali",2480,"racute",341,"radeva",2352,"radical",8730,"radicalex",63717,"radoverssquare",13230,"radoverssquaredsquare",13231,"radsquare",13229,"rafe",1471,"rafehebrew",1471,"ragujarati",2736,"ragurmukhi",2608,"rahiragana",12425,"rakatakana",12521,"rakatakanahalfwidth",65431,"ralowerdiagonalbengali",2545,"ramiddlediagonalbengali",2544,"ramshorn",612,"ratio",8758,"rbopomofo",12566,"rcaron",345,"rcedilla",343,"rcircle",9441,"rcommaaccent",343,"rdblgrave",529,"rdotaccent",7769,"rdotbelow",7771,"rdotbelowmacron",7773,"referencemark",8251,"reflexsubset",8838,"reflexsuperset",8839,"registered",174,"registersans",63720,"registerserif",63194,"reharabic",1585,"reharmenian",1408,"rehfinalarabic",65198,"rehiragana",12428,"rekatakana",12524,"rekatakanahalfwidth",65434,"resh",1512,"reshdageshhebrew",64328,"reshhebrew",1512,"reversedtilde",8765,"reviahebrew",1431,"reviamugrashhebrew",1431,"revlogicalnot",8976,"rfishhook",638,"rfishhookreversed",639,"rhabengali",2525,"rhadeva",2397,"rho",961,"rhook",637,"rhookturned",635,"rhookturnedsuperior",693,"rhosymbolgreek",1009,"rhotichookmod",734,"rieulacirclekorean",12913,"rieulaparenkorean",12817,"rieulcirclekorean",12899,"rieulhieuhkorean",12608,"rieulkiyeokkorean",12602,"rieulkiyeoksioskorean",12649,"rieulkorean",12601,"rieulmieumkorean",12603,"rieulpansioskorean",12652,"rieulparenkorean",12803,"rieulphieuphkorean",12607,"rieulpieupkorean",12604,"rieulpieupsioskorean",12651,"rieulsioskorean",12605,"rieulthieuthkorean",12606,"rieultikeutkorean",12650,"rieulyeorinhieuhkorean",12653,"rightangle",8735,"righttackbelowcmb",793,"righttriangle",8895,"rihiragana",12426,"rikatakana",12522,"rikatakanahalfwidth",65432,"ring",730,"ringbelowcmb",805,"ringcmb",778,"ringhalfleft",703,"ringhalfleftarmenian",1369,"ringhalfleftbelowcmb",796,"ringhalfleftcentered",723,"ringhalfright",702,"ringhalfrightbelowcmb",825,"ringhalfrightcentered",722,"rinvertedbreve",531,"rittorusquare",13137,"rlinebelow",7775,"rlongleg",636,"rlonglegturned",634,"rmonospace",65362,"rohiragana",12429,"rokatakana",12525,"rokatakanahalfwidth",65435,"roruathai",3619,"rparen",9389,"rrabengali",2524,"rradeva",2353,"rragurmukhi",2652,"rreharabic",1681,"rrehfinalarabic",64397,"rrvocalicbengali",2528,"rrvocalicdeva",2400,"rrvocalicgujarati",2784,"rrvocalicvowelsignbengali",2500,"rrvocalicvowelsigndeva",2372,"rrvocalicvowelsigngujarati",2756,"rsuperior",63217,"rtblock",9616,"rturned",633,"rturnedsuperior",692,"ruhiragana",12427,"rukatakana",12523,"rukatakanahalfwidth",65433,"rupeemarkbengali",2546,"rupeesignbengali",2547,"rupiah",63197,"ruthai",3620,"rvocalicbengali",2443,"rvocalicdeva",2315,"rvocalicgujarati",2699,"rvocalicvowelsignbengali",2499,"rvocalicvowelsigndeva",2371,"rvocalicvowelsigngujarati",2755,"s",115,"sabengali",2488,"sacute",347,"sacutedotaccent",7781,"sadarabic",1589,"sadeva",2360,"sadfinalarabic",65210,"sadinitialarabic",65211,"sadmedialarabic",65212,"sagujarati",2744,"sagurmukhi",2616,"sahiragana",12373,"sakatakana",12469,"sakatakanahalfwidth",65403,"sallallahoualayhewasallamarabic",65018,"samekh",1505,"samekhdagesh",64321,"samekhdageshhebrew",64321,"samekhhebrew",1505,"saraaathai",3634,"saraaethai",3649,"saraaimaimalaithai",3652,"saraaimaimuanthai",3651,"saraamthai",3635,"saraathai",3632,"saraethai",3648,"saraiileftthai",63622,"saraiithai",3637,"saraileftthai",63621,"saraithai",3636,"saraothai",3650,"saraueeleftthai",63624,"saraueethai",3639,"saraueleftthai",63623,"sarauethai",3638,"sarauthai",3640,"sarauuthai",3641,"sbopomofo",12569,"scaron",353,"scarondotaccent",7783,"scedilla",351,"schwa",601,"schwacyrillic",1241,"schwadieresiscyrillic",1243,"schwahook",602,"scircle",9442,"scircumflex",349,"scommaaccent",537,"sdotaccent",7777,"sdotbelow",7779,"sdotbelowdotaccent",7785,"seagullbelowcmb",828,"second",8243,"secondtonechinese",714,"section",167,"seenarabic",1587,"seenfinalarabic",65202,"seeninitialarabic",65203,"seenmedialarabic",65204,"segol",1462,"segol13",1462,"segol1f",1462,"segol2c",1462,"segolhebrew",1462,"segolnarrowhebrew",1462,"segolquarterhebrew",1462,"segoltahebrew",1426,"segolwidehebrew",1462,"seharmenian",1405,"sehiragana",12379,"sekatakana",12475,"sekatakanahalfwidth",65406,"semicolon",59,"semicolonarabic",1563,"semicolonmonospace",65307,"semicolonsmall",65108,"semivoicedmarkkana",12444,"semivoicedmarkkanahalfwidth",65439,"sentisquare",13090,"sentosquare",13091,"seven",55,"sevenarabic",1639,"sevenbengali",2541,"sevencircle",9318,"sevencircleinversesansserif",10128,"sevendeva",2413,"seveneighths",8542,"sevengujarati",2797,"sevengurmukhi",2669,"sevenhackarabic",1639,"sevenhangzhou",12327,"sevenideographicparen",12838,"seveninferior",8327,"sevenmonospace",65303,"sevenoldstyle",63287,"sevenparen",9338,"sevenperiod",9358,"sevenpersian",1783,"sevenroman",8566,"sevensuperior",8311,"seventeencircle",9328,"seventeenparen",9348,"seventeenperiod",9368,"seventhai",3671,"sfthyphen",173,"shaarmenian",1399,"shabengali",2486,"shacyrillic",1096,"shaddaarabic",1617,"shaddadammaarabic",64609,"shaddadammatanarabic",64606,"shaddafathaarabic",64608,"shaddakasraarabic",64610,"shaddakasratanarabic",64607,"shade",9618,"shadedark",9619,"shadelight",9617,"shademedium",9618,"shadeva",2358,"shagujarati",2742,"shagurmukhi",2614,"shalshelethebrew",1427,"shbopomofo",12565,"shchacyrillic",1097,"sheenarabic",1588,"sheenfinalarabic",65206,"sheeninitialarabic",65207,"sheenmedialarabic",65208,"sheicoptic",995,"sheqel",8362,"sheqelhebrew",8362,"sheva",1456,"sheva115",1456,"sheva15",1456,"sheva22",1456,"sheva2e",1456,"shevahebrew",1456,"shevanarrowhebrew",1456,"shevaquarterhebrew",1456,"shevawidehebrew",1456,"shhacyrillic",1211,"shimacoptic",1005,"shin",1513,"shindagesh",64329,"shindageshhebrew",64329,"shindageshshindot",64300,"shindageshshindothebrew",64300,"shindageshsindot",64301,"shindageshsindothebrew",64301,"shindothebrew",1473,"shinhebrew",1513,"shinshindot",64298,"shinshindothebrew",64298,"shinsindot",64299,"shinsindothebrew",64299,"shook",642,"sigma",963,"sigma1",962,"sigmafinal",962,"sigmalunatesymbolgreek",1010,"sihiragana",12375,"sikatakana",12471,"sikatakanahalfwidth",65404,"siluqhebrew",1469,"siluqlefthebrew",1469,"similar",8764,"sindothebrew",1474,"siosacirclekorean",12916,"siosaparenkorean",12820,"sioscieuckorean",12670,"sioscirclekorean",12902,"sioskiyeokkorean",12666,"sioskorean",12613,"siosnieunkorean",12667,"siosparenkorean",12806,"siospieupkorean",12669,"siostikeutkorean",12668,"six",54,"sixarabic",1638,"sixbengali",2540,"sixcircle",9317,"sixcircleinversesansserif",10127,"sixdeva",2412,"sixgujarati",2796,"sixgurmukhi",2668,"sixhackarabic",1638,"sixhangzhou",12326,"sixideographicparen",12837,"sixinferior",8326,"sixmonospace",65302,"sixoldstyle",63286,"sixparen",9337,"sixperiod",9357,"sixpersian",1782,"sixroman",8565,"sixsuperior",8310,"sixteencircle",9327,"sixteencurrencydenominatorbengali",2553,"sixteenparen",9347,"sixteenperiod",9367,"sixthai",3670,"slash",47,"slashmonospace",65295,"slong",383,"slongdotaccent",7835,"smileface",9786,"smonospace",65363,"sofpasuqhebrew",1475,"softhyphen",173,"softsigncyrillic",1100,"sohiragana",12381,"sokatakana",12477,"sokatakanahalfwidth",65407,"soliduslongoverlaycmb",824,"solidusshortoverlaycmb",823,"sorusithai",3625,"sosalathai",3624,"sosothai",3595,"sosuathai",3626,"space",32,"spacehackarabic",32,"spade",9824,"spadesuitblack",9824,"spadesuitwhite",9828,"sparen",9390,"squarebelowcmb",827,"squarecc",13252,"squarecm",13213,"squarediagonalcrosshatchfill",9641,"squarehorizontalfill",9636,"squarekg",13199,"squarekm",13214,"squarekmcapital",13262,"squareln",13265,"squarelog",13266,"squaremg",13198,"squaremil",13269,"squaremm",13212,"squaremsquared",13217,"squareorthogonalcrosshatchfill",9638,"squareupperlefttolowerrightfill",9639,"squareupperrighttolowerleftfill",9640,"squareverticalfill",9637,"squarewhitewithsmallblack",9635,"srsquare",13275,"ssabengali",2487,"ssadeva",2359,"ssagujarati",2743,"ssangcieuckorean",12617,"ssanghieuhkorean",12677,"ssangieungkorean",12672,"ssangkiyeokkorean",12594,"ssangnieunkorean",12645,"ssangpieupkorean",12611,"ssangsioskorean",12614,"ssangtikeutkorean",12600,"ssuperior",63218,"sterling",163,"sterlingmonospace",65505,"strokelongoverlaycmb",822,"strokeshortoverlaycmb",821,"subset",8834,"subsetnotequal",8842,"subsetorequal",8838,"succeeds",8827,"suchthat",8715,"suhiragana",12377,"sukatakana",12473,"sukatakanahalfwidth",65405,"sukunarabic",1618,"summation",8721,"sun",9788,"superset",8835,"supersetnotequal",8843,"supersetorequal",8839,"svsquare",13276,"syouwaerasquare",13180,"t",116,"tabengali",2468,"tackdown",8868,"tackleft",8867,"tadeva",2340,"tagujarati",2724,"tagurmukhi",2596,"taharabic",1591,"tahfinalarabic",65218,"tahinitialarabic",65219,"tahiragana",12383,"tahmedialarabic",65220,"taisyouerasquare",13181,"takatakana",12479,"takatakanahalfwidth",65408,"tatweelarabic",1600,"tau",964,"tav",1514,"tavdages",64330,"tavdagesh",64330,"tavdageshhebrew",64330,"tavhebrew",1514,"tbar",359,"tbopomofo",12554,"tcaron",357,"tccurl",680,"tcedilla",355,"tcheharabic",1670,"tchehfinalarabic",64379,"tchehinitialarabic",64380,"tchehmedialarabic",64381,"tcircle",9443,"tcircumflexbelow",7793,"tcommaaccent",355,"tdieresis",7831,"tdotaccent",7787,"tdotbelow",7789,"tecyrillic",1090,"tedescendercyrillic",1197,"teharabic",1578,"tehfinalarabic",65174,"tehhahinitialarabic",64674,"tehhahisolatedarabic",64524,"tehinitialarabic",65175,"tehiragana",12390,"tehjeeminitialarabic",64673,"tehjeemisolatedarabic",64523,"tehmarbutaarabic",1577,"tehmarbutafinalarabic",65172,"tehmedialarabic",65176,"tehmeeminitialarabic",64676,"tehmeemisolatedarabic",64526,"tehnoonfinalarabic",64627,"tekatakana",12486,"tekatakanahalfwidth",65411,"telephone",8481,"telephoneblack",9742,"telishagedolahebrew",1440,"telishaqetanahebrew",1449,"tencircle",9321,"tenideographicparen",12841,"tenparen",9341,"tenperiod",9361,"tenroman",8569,"tesh",679,"tet",1496,"tetdagesh",64312,"tetdageshhebrew",64312,"tethebrew",1496,"tetsecyrillic",1205,"tevirhebrew",1435,"tevirlefthebrew",1435,"thabengali",2469,"thadeva",2341,"thagujarati",2725,"thagurmukhi",2597,"thalarabic",1584,"thalfinalarabic",65196,"thanthakhatlowleftthai",63640,"thanthakhatlowrightthai",63639,"thanthakhatthai",3660,"thanthakhatupperleftthai",63638,"theharabic",1579,"thehfinalarabic",65178,"thehinitialarabic",65179,"thehmedialarabic",65180,"thereexists",8707,"therefore",8756,"theta",952,"theta1",977,"thetasymbolgreek",977,"thieuthacirclekorean",12921,"thieuthaparenkorean",12825,"thieuthcirclekorean",12907,"thieuthkorean",12620,"thieuthparenkorean",12811,"thirteencircle",9324,"thirteenparen",9344,"thirteenperiod",9364,"thonangmonthothai",3601,"thook",429,"thophuthaothai",3602,"thorn",254,"thothahanthai",3607,"thothanthai",3600,"thothongthai",3608,"thothungthai",3606,"thousandcyrillic",1154,"thousandsseparatorarabic",1644,"thousandsseparatorpersian",1644,"three",51,"threearabic",1635,"threebengali",2537,"threecircle",9314,"threecircleinversesansserif",10124,"threedeva",2409,"threeeighths",8540,"threegujarati",2793,"threegurmukhi",2665,"threehackarabic",1635,"threehangzhou",12323,"threeideographicparen",12834,"threeinferior",8323,"threemonospace",65299,"threenumeratorbengali",2550,"threeoldstyle",63283,"threeparen",9334,"threeperiod",9354,"threepersian",1779,"threequarters",190,"threequartersemdash",63198,"threeroman",8562,"threesuperior",179,"threethai",3667,"thzsquare",13204,"tihiragana",12385,"tikatakana",12481,"tikatakanahalfwidth",65409,"tikeutacirclekorean",12912,"tikeutaparenkorean",12816,"tikeutcirclekorean",12898,"tikeutkorean",12599,"tikeutparenkorean",12802,"tilde",732,"tildebelowcmb",816,"tildecmb",771,"tildecomb",771,"tildedoublecmb",864,"tildeoperator",8764,"tildeoverlaycmb",820,"tildeverticalcmb",830,"timescircle",8855,"tipehahebrew",1430,"tipehalefthebrew",1430,"tippigurmukhi",2672,"titlocyrilliccmb",1155,"tiwnarmenian",1407,"tlinebelow",7791,"tmonospace",65364,"toarmenian",1385,"tohiragana",12392,"tokatakana",12488,"tokatakanahalfwidth",65412,"tonebarextrahighmod",741,"tonebarextralowmod",745,"tonebarhighmod",742,"tonebarlowmod",744,"tonebarmidmod",743,"tonefive",445,"tonesix",389,"tonetwo",424,"tonos",900,"tonsquare",13095,"topatakthai",3599,"tortoiseshellbracketleft",12308,"tortoiseshellbracketleftsmall",65117,"tortoiseshellbracketleftvertical",65081,"tortoiseshellbracketright",12309,"tortoiseshellbracketrightsmall",65118,"tortoiseshellbracketrightvertical",65082,"totaothai",3605,"tpalatalhook",427,"tparen",9391,"trademark",8482,"trademarksans",63722,"trademarkserif",63195,"tretroflexhook",648,"triagdn",9660,"triaglf",9668,"triagrt",9658,"triagup",9650,"ts",678,"tsadi",1510,"tsadidagesh",64326,"tsadidageshhebrew",64326,"tsadihebrew",1510,"tsecyrillic",1094,"tsere",1461,"tsere12",1461,"tsere1e",1461,"tsere2b",1461,"tserehebrew",1461,"tserenarrowhebrew",1461,"tserequarterhebrew",1461,"tserewidehebrew",1461,"tshecyrillic",1115,"tsuperior",63219,"ttabengali",2463,"ttadeva",2335,"ttagujarati",2719,"ttagurmukhi",2591,"tteharabic",1657,"ttehfinalarabic",64359,"ttehinitialarabic",64360,"ttehmedialarabic",64361,"tthabengali",2464,"tthadeva",2336,"tthagujarati",2720,"tthagurmukhi",2592,"tturned",647,"tuhiragana",12388,"tukatakana",12484,"tukatakanahalfwidth",65410,"tusmallhiragana",12387,"tusmallkatakana",12483,"tusmallkatakanahalfwidth",65391,"twelvecircle",9323,"twelveparen",9343,"twelveperiod",9363,"twelveroman",8571,"twentycircle",9331,"twentyhangzhou",21316,"twentyparen",9351,"twentyperiod",9371,"two",50,"twoarabic",1634,"twobengali",2536,"twocircle",9313,"twocircleinversesansserif",10123,"twodeva",2408,"twodotenleader",8229,"twodotleader",8229,"twodotleadervertical",65072,"twogujarati",2792,"twogurmukhi",2664,"twohackarabic",1634,"twohangzhou",12322,"twoideographicparen",12833,"twoinferior",8322,"twomonospace",65298,"twonumeratorbengali",2549,"twooldstyle",63282,"twoparen",9333,"twoperiod",9353,"twopersian",1778,"tworoman",8561,"twostroke",443,"twosuperior",178,"twothai",3666,"twothirds",8532,"u",117,"uacute",250,"ubar",649,"ubengali",2441,"ubopomofo",12584,"ubreve",365,"ucaron",468,"ucircle",9444,"ucircumflex",251,"ucircumflexbelow",7799,"ucyrillic",1091,"udattadeva",2385,"udblacute",369,"udblgrave",533,"udeva",2313,"udieresis",252,"udieresisacute",472,"udieresisbelow",7795,"udieresiscaron",474,"udieresiscyrillic",1265,"udieresisgrave",476,"udieresismacron",470,"udotbelow",7909,"ugrave",249,"ugujarati",2697,"ugurmukhi",2569,"uhiragana",12358,"uhookabove",7911,"uhorn",432,"uhornacute",7913,"uhorndotbelow",7921,"uhorngrave",7915,"uhornhookabove",7917,"uhorntilde",7919,"uhungarumlaut",369,"uhungarumlautcyrillic",1267,"uinvertedbreve",535,"ukatakana",12454,"ukatakanahalfwidth",65395,"ukcyrillic",1145,"ukorean",12636,"umacron",363,"umacroncyrillic",1263,"umacrondieresis",7803,"umatragurmukhi",2625,"umonospace",65365,"underscore",95,"underscoredbl",8215,"underscoremonospace",65343,"underscorevertical",65075,"underscorewavy",65103,"union",8746,"universal",8704,"uogonek",371,"uparen",9392,"upblock",9600,"upperdothebrew",1476,"upsilon",965,"upsilondieresis",971,"upsilondieresistonos",944,"upsilonlatin",650,"upsilontonos",973,"uptackbelowcmb",797,"uptackmod",724,"uragurmukhi",2675,"uring",367,"ushortcyrillic",1118,"usmallhiragana",12357,"usmallkatakana",12453,"usmallkatakanahalfwidth",65385,"ustraightcyrillic",1199,"ustraightstrokecyrillic",1201,"utilde",361,"utildeacute",7801,"utildebelow",7797,"uubengali",2442,"uudeva",2314,"uugujarati",2698,"uugurmukhi",2570,"uumatragurmukhi",2626,"uuvowelsignbengali",2498,"uuvowelsigndeva",2370,"uuvowelsigngujarati",2754,"uvowelsignbengali",2497,"uvowelsigndeva",2369,"uvowelsigngujarati",2753,"v",118,"vadeva",2357,"vagujarati",2741,"vagurmukhi",2613,"vakatakana",12535,"vav",1493,"vavdagesh",64309,"vavdagesh65",64309,"vavdageshhebrew",64309,"vavhebrew",1493,"vavholam",64331,"vavholamhebrew",64331,"vavvavhebrew",1520,"vavyodhebrew",1521,"vcircle",9445,"vdotbelow",7807,"vecyrillic",1074,"veharabic",1700,"vehfinalarabic",64363,"vehinitialarabic",64364,"vehmedialarabic",64365,"vekatakana",12537,"venus",9792,"verticalbar",124,"verticallineabovecmb",781,"verticallinebelowcmb",809,"verticallinelowmod",716,"verticallinemod",712,"vewarmenian",1406,"vhook",651,"vikatakana",12536,"viramabengali",2509,"viramadeva",2381,"viramagujarati",2765,"visargabengali",2435,"visargadeva",2307,"visargagujarati",2691,"vmonospace",65366,"voarmenian",1400,"voicediterationhiragana",12446,"voicediterationkatakana",12542,"voicedmarkkana",12443,"voicedmarkkanahalfwidth",65438,"vokatakana",12538,"vparen",9393,"vtilde",7805,"vturned",652,"vuhiragana",12436,"vukatakana",12532,"w",119,"wacute",7811,"waekorean",12633,"wahiragana",12431,"wakatakana",12527,"wakatakanahalfwidth",65436,"wakorean",12632,"wasmallhiragana",12430,"wasmallkatakana",12526,"wattosquare",13143,"wavedash",12316,"wavyunderscorevertical",65076,"wawarabic",1608,"wawfinalarabic",65262,"wawhamzaabovearabic",1572,"wawhamzaabovefinalarabic",65158,"wbsquare",13277,"wcircle",9446,"wcircumflex",373,"wdieresis",7813,"wdotaccent",7815,"wdotbelow",7817,"wehiragana",12433,"weierstrass",8472,"wekatakana",12529,"wekorean",12638,"weokorean",12637,"wgrave",7809,"whitebullet",9702,"whitecircle",9675,"whitecircleinverse",9689,"whitecornerbracketleft",12302,"whitecornerbracketleftvertical",65091,"whitecornerbracketright",12303,"whitecornerbracketrightvertical",65092,"whitediamond",9671,"whitediamondcontainingblacksmalldiamond",9672,"whitedownpointingsmalltriangle",9663,"whitedownpointingtriangle",9661,"whiteleftpointingsmalltriangle",9667,"whiteleftpointingtriangle",9665,"whitelenticularbracketleft",12310,"whitelenticularbracketright",12311,"whiterightpointingsmalltriangle",9657,"whiterightpointingtriangle",9655,"whitesmallsquare",9643,"whitesmilingface",9786,"whitesquare",9633,"whitestar",9734,"whitetelephone",9743,"whitetortoiseshellbracketleft",12312,"whitetortoiseshellbracketright",12313,"whiteuppointingsmalltriangle",9653,"whiteuppointingtriangle",9651,"wihiragana",12432,"wikatakana",12528,"wikorean",12639,"wmonospace",65367,"wohiragana",12434,"wokatakana",12530,"wokatakanahalfwidth",65382,"won",8361,"wonmonospace",65510,"wowaenthai",3623,"wparen",9394,"wring",7832,"wsuperior",695,"wturned",653,"wynn",447,"x",120,"xabovecmb",829,"xbopomofo",12562,"xcircle",9447,"xdieresis",7821,"xdotaccent",7819,"xeharmenian",1389,"xi",958,"xmonospace",65368,"xparen",9395,"xsuperior",739,"y",121,"yaadosquare",13134,"yabengali",2479,"yacute",253,"yadeva",2351,"yaekorean",12626,"yagujarati",2735,"yagurmukhi",2607,"yahiragana",12420,"yakatakana",12516,"yakatakanahalfwidth",65428,"yakorean",12625,"yamakkanthai",3662,"yasmallhiragana",12419,"yasmallkatakana",12515,"yasmallkatakanahalfwidth",65388,"yatcyrillic",1123,"ycircle",9448,"ycircumflex",375,"ydieresis",255,"ydotaccent",7823,"ydotbelow",7925,"yeharabic",1610,"yehbarreearabic",1746,"yehbarreefinalarabic",64431,"yehfinalarabic",65266,"yehhamzaabovearabic",1574,"yehhamzaabovefinalarabic",65162,"yehhamzaaboveinitialarabic",65163,"yehhamzaabovemedialarabic",65164,"yehinitialarabic",65267,"yehmedialarabic",65268,"yehmeeminitialarabic",64733,"yehmeemisolatedarabic",64600,"yehnoonfinalarabic",64660,"yehthreedotsbelowarabic",1745,"yekorean",12630,"yen",165,"yenmonospace",65509,"yeokorean",12629,"yeorinhieuhkorean",12678,"yerahbenyomohebrew",1450,"yerahbenyomolefthebrew",1450,"yericyrillic",1099,"yerudieresiscyrillic",1273,"yesieungkorean",12673,"yesieungpansioskorean",12675,"yesieungsioskorean",12674,"yetivhebrew",1434,"ygrave",7923,"yhook",436,"yhookabove",7927,"yiarmenian",1397,"yicyrillic",1111,"yikorean",12642,"yinyang",9775,"yiwnarmenian",1410,"ymonospace",65369,"yod",1497,"yoddagesh",64313,"yoddageshhebrew",64313,"yodhebrew",1497,"yodyodhebrew",1522,"yodyodpatahhebrew",64287,"yohiragana",12424,"yoikorean",12681,"yokatakana",12520,"yokatakanahalfwidth",65430,"yokorean",12635,"yosmallhiragana",12423,"yosmallkatakana",12519,"yosmallkatakanahalfwidth",65390,"yotgreek",1011,"yoyaekorean",12680,"yoyakorean",12679,"yoyakthai",3618,"yoyingthai",3597,"yparen",9396,"ypogegrammeni",890,"ypogegrammenigreekcmb",837,"yr",422,"yring",7833,"ysuperior",696,"ytilde",7929,"yturned",654,"yuhiragana",12422,"yuikorean",12684,"yukatakana",12518,"yukatakanahalfwidth",65429,"yukorean",12640,"yusbigcyrillic",1131,"yusbigiotifiedcyrillic",1133,"yuslittlecyrillic",1127,"yuslittleiotifiedcyrillic",1129,"yusmallhiragana",12421,"yusmallkatakana",12517,"yusmallkatakanahalfwidth",65389,"yuyekorean",12683,"yuyeokorean",12682,"yyabengali",2527,"yyadeva",2399,"z",122,"zaarmenian",1382,"zacute",378,"zadeva",2395,"zagurmukhi",2651,"zaharabic",1592,"zahfinalarabic",65222,"zahinitialarabic",65223,"zahiragana",12374,"zahmedialarabic",65224,"zainarabic",1586,"zainfinalarabic",65200,"zakatakana",12470,"zaqefgadolhebrew",1429,"zaqefqatanhebrew",1428,"zarqahebrew",1432,"zayin",1494,"zayindagesh",64310,"zayindageshhebrew",64310,"zayinhebrew",1494,"zbopomofo",12567,"zcaron",382,"zcircle",9449,"zcircumflex",7825,"zcurl",657,"zdot",380,"zdotaccent",380,"zdotbelow",7827,"zecyrillic",1079,"zedescendercyrillic",1177,"zedieresiscyrillic",1247,"zehiragana",12380,"zekatakana",12476,"zero",48,"zeroarabic",1632,"zerobengali",2534,"zerodeva",2406,"zerogujarati",2790,"zerogurmukhi",2662,"zerohackarabic",1632,"zeroinferior",8320,"zeromonospace",65296,"zerooldstyle",63280,"zeropersian",1776,"zerosuperior",8304,"zerothai",3664,"zerowidthjoiner",65279,"zerowidthnonjoiner",8204,"zerowidthspace",8203,"zeta",950,"zhbopomofo",12563,"zhearmenian",1386,"zhebrevecyrillic",1218,"zhecyrillic",1078,"zhedescendercyrillic",1175,"zhedieresiscyrillic",1245,"zihiragana",12376,"zikatakana",12472,"zinorhebrew",1454,"zlinebelow",7829,"zmonospace",65370,"zohiragana",12382,"zokatakana",12478,"zparen",9397,"zretroflexhook",656,"zstroke",438,"zuhiragana",12378,"zukatakana",12474,".notdef",0,"angbracketleftbig",9001,"angbracketleftBig",9001,"angbracketleftbigg",9001,"angbracketleftBigg",9001,"angbracketrightBig",9002,"angbracketrightbig",9002,"angbracketrightBigg",9002,"angbracketrightbigg",9002,"arrowhookleft",8618,"arrowhookright",8617,"arrowlefttophalf",8636,"arrowleftbothalf",8637,"arrownortheast",8599,"arrownorthwest",8598,"arrowrighttophalf",8640,"arrowrightbothalf",8641,"arrowsoutheast",8600,"arrowsouthwest",8601,"backslashbig",8726,"backslashBig",8726,"backslashBigg",8726,"backslashbigg",8726,"bardbl",8214,"bracehtipdownleft",65079,"bracehtipdownright",65079,"bracehtipupleft",65080,"bracehtipupright",65080,"braceleftBig",123,"braceleftbig",123,"braceleftbigg",123,"braceleftBigg",123,"bracerightBig",125,"bracerightbig",125,"bracerightbigg",125,"bracerightBigg",125,"bracketleftbig",91,"bracketleftBig",91,"bracketleftbigg",91,"bracketleftBigg",91,"bracketrightBig",93,"bracketrightbig",93,"bracketrightbigg",93,"bracketrightBigg",93,"ceilingleftbig",8968,"ceilingleftBig",8968,"ceilingleftBigg",8968,"ceilingleftbigg",8968,"ceilingrightbig",8969,"ceilingrightBig",8969,"ceilingrightbigg",8969,"ceilingrightBigg",8969,"circledotdisplay",8857,"circledottext",8857,"circlemultiplydisplay",8855,"circlemultiplytext",8855,"circleplusdisplay",8853,"circleplustext",8853,"contintegraldisplay",8750,"contintegraltext",8750,"coproductdisplay",8720,"coproducttext",8720,"floorleftBig",8970,"floorleftbig",8970,"floorleftbigg",8970,"floorleftBigg",8970,"floorrightbig",8971,"floorrightBig",8971,"floorrightBigg",8971,"floorrightbigg",8971,"hatwide",770,"hatwider",770,"hatwidest",770,"intercal",7488,"integraldisplay",8747,"integraltext",8747,"intersectiondisplay",8898,"intersectiontext",8898,"logicalanddisplay",8743,"logicalandtext",8743,"logicalordisplay",8744,"logicalortext",8744,"parenleftBig",40,"parenleftbig",40,"parenleftBigg",40,"parenleftbigg",40,"parenrightBig",41,"parenrightbig",41,"parenrightBigg",41,"parenrightbigg",41,"prime",8242,"productdisplay",8719,"producttext",8719,"radicalbig",8730,"radicalBig",8730,"radicalBigg",8730,"radicalbigg",8730,"radicalbt",8730,"radicaltp",8730,"radicalvertex",8730,"slashbig",47,"slashBig",47,"slashBigg",47,"slashbigg",47,"summationdisplay",8721,"summationtext",8721,"tildewide",732,"tildewider",732,"tildewidest",732,"uniondisplay",8899,"unionmultidisplay",8846,"unionmultitext",8846,"unionsqdisplay",8852,"unionsqtext",8852,"uniontext",8899,"vextenddouble",8741,"vextendsingle",8739]}),R=(0,n.getArrayLookupTableFactory)(function(){return["space",32,"a1",9985,"a2",9986,"a202",9987,"a3",9988,"a4",9742,"a5",9990,"a119",9991,"a118",9992,"a117",9993,"a11",9755,"a12",9758,"a13",9996,"a14",9997,"a15",9998,"a16",9999,"a105",1e4,"a17",10001,"a18",10002,"a19",10003,"a20",10004,"a21",10005,"a22",10006,"a23",10007,"a24",10008,"a25",10009,"a26",10010,"a27",10011,"a28",10012,"a6",10013,"a7",10014,"a8",10015,"a9",10016,"a10",10017,"a29",10018,"a30",10019,"a31",10020,"a32",10021,"a33",10022,"a34",10023,"a35",9733,"a36",10025,"a37",10026,"a38",10027,"a39",10028,"a40",10029,"a41",10030,"a42",10031,"a43",10032,"a44",10033,"a45",10034,"a46",10035,"a47",10036,"a48",10037,"a49",10038,"a50",10039,"a51",10040,"a52",10041,"a53",10042,"a54",10043,"a55",10044,"a56",10045,"a57",10046,"a58",10047,"a59",10048,"a60",10049,"a61",10050,"a62",10051,"a63",10052,"a64",10053,"a65",10054,"a66",10055,"a67",10056,"a68",10057,"a69",10058,"a70",10059,"a71",9679,"a72",10061,"a73",9632,"a74",10063,"a203",10064,"a75",10065,"a204",10066,"a76",9650,"a77",9660,"a78",9670,"a79",10070,"a81",9687,"a82",10072,"a83",10073,"a84",10074,"a97",10075,"a98",10076,"a99",10077,"a100",10078,"a101",10081,"a102",10082,"a103",10083,"a104",10084,"a106",10085,"a107",10086,"a108",10087,"a112",9827,"a111",9830,"a110",9829,"a109",9824,"a120",9312,"a121",9313,"a122",9314,"a123",9315,"a124",9316,"a125",9317,"a126",9318,"a127",9319,"a128",9320,"a129",9321,"a130",10102,"a131",10103,"a132",10104,"a133",10105,"a134",10106,"a135",10107,"a136",10108,"a137",10109,"a138",10110,"a139",10111,"a140",10112,"a141",10113,"a142",10114,"a143",10115,"a144",10116,"a145",10117,"a146",10118,"a147",10119,"a148",10120,"a149",10121,"a150",10122,"a151",10123,"a152",10124,"a153",10125,"a154",10126,"a155",10127,"a156",10128,"a157",10129,"a158",10130,"a159",10131,"a160",10132,"a161",8594,"a163",8596,"a164",8597,"a196",10136,"a165",10137,"a192",10138,"a166",10139,"a167",10140,"a168",10141,"a169",10142,"a170",10143,"a171",10144,"a172",10145,"a173",10146,"a162",10147,"a174",10148,"a175",10149,"a176",10150,"a177",10151,"a178",10152,"a179",10153,"a193",10154,"a180",10155,"a199",10156,"a181",10157,"a200",10158,"a182",10159,"a201",10161,"a183",10162,"a184",10163,"a197",10164,"a185",10165,"a194",10166,"a198",10167,"a186",10168,"a195",10169,"a187",10170,"a188",10171,"a189",10172,"a190",10173,"a191",10174,"a89",10088,"a90",10089,"a93",10090,"a94",10091,"a91",10092,"a92",10093,"a205",10094,"a85",10095,"a206",10096,"a86",10097,"a87",10098,"a88",10099,"a95",10100,"a96",10101,".notdef",0]})},(x,a,g)=>{g.r(a),g.d(a,{clearUnicodeCaches:()=>y,getCharUnicodeCategory:()=>l,getNormalizedUnicodes:()=>B,getUnicodeForGlyph:()=>v,getUnicodeRangeFor:()=>L,mapSpecialUnicodeValues:()=>R,reverseIfRtl:()=>P});var n=g(131);const c=(0,n.getLookupTableFactory)(function(D){D[63721]=169,D[63193]=169,D[63720]=174,D[63194]=174,D[63722]=8482,D[63195]=8482,D[63729]=9127,D[63730]=9128,D[63731]=9129,D[63740]=9131,D[63741]=9132,D[63742]=9133,D[63726]=9121,D[63727]=9122,D[63728]=9123,D[63737]=9124,D[63738]=9125,D[63739]=9126,D[63723]=9115,D[63724]=9116,D[63725]=9117,D[63734]=9118,D[63735]=9119,D[63736]=9120});function R(D){return D>=65520&&D<=65535?0:D>=62976&&D<=63743?c()[D]||D:D===173?45:D}function v(D,M){let F=M[D];if(F!==void 0)return F;if(!D)return-1;if(D[0]==="u"){const N=D.length;let G;if(N===7&&D[1]==="n"&&D[2]==="i")G=D.substring(3);else if(N>=5&&N<=7)G=D.substring(1);else return-1;if(G===G.toUpperCase()&&(F=parseInt(G,16),F>=0))return F}return-1}const e=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];function L(D){for(let M=0,F=e.length;M=N.begin&&D=M.begin&&D=M.begin&&D=0;N--)F.push(D[N]);return F.join("")}const S=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),_=new Map;function l(D){const M=_.get(D);if(M)return M;const F=D.match(S),N={isWhitespace:!!(F&&F[1]),isZeroWidthDiacritic:!!(F&&F[2]),isInvisibleFormatMark:!!(F&&F[3])};return _.set(D,N),N}function y(){_.clear()}},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.getSerifFonts=a.getNonStdFontMap=a.getGlyphMapForStandardFonts=a.getFontNameToFileMap=void 0,a.getStandardFontName=_,a.getSymbolsFonts=a.getSupplementalGlyphMapForCalibri=a.getSupplementalGlyphMapForArialBlack=a.getStdFontMap=void 0;var n=g(131),c=g(163);const R=(0,n.getLookupTableFactory)(function(l){l["Times-Roman"]="Times-Roman",l.Helvetica="Helvetica",l.Courier="Courier",l.Symbol="Symbol",l["Times-Bold"]="Times-Bold",l["Helvetica-Bold"]="Helvetica-Bold",l["Courier-Bold"]="Courier-Bold",l.ZapfDingbats="ZapfDingbats",l["Times-Italic"]="Times-Italic",l["Helvetica-Oblique"]="Helvetica-Oblique",l["Courier-Oblique"]="Courier-Oblique",l["Times-BoldItalic"]="Times-BoldItalic",l["Helvetica-BoldOblique"]="Helvetica-BoldOblique",l["Courier-BoldOblique"]="Courier-BoldOblique",l.ArialNarrow="Helvetica",l["ArialNarrow-Bold"]="Helvetica-Bold",l["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",l["ArialNarrow-Italic"]="Helvetica-Oblique",l.ArialBlack="Helvetica",l["ArialBlack-Bold"]="Helvetica-Bold",l["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",l["ArialBlack-Italic"]="Helvetica-Oblique",l["Arial-Black"]="Helvetica",l["Arial-Black-Bold"]="Helvetica-Bold",l["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",l["Arial-Black-Italic"]="Helvetica-Oblique",l.Arial="Helvetica",l["Arial-Bold"]="Helvetica-Bold",l["Arial-BoldItalic"]="Helvetica-BoldOblique",l["Arial-Italic"]="Helvetica-Oblique",l.ArialMT="Helvetica",l["Arial-BoldItalicMT"]="Helvetica-BoldOblique",l["Arial-BoldMT"]="Helvetica-Bold",l["Arial-ItalicMT"]="Helvetica-Oblique",l.ArialUnicodeMS="Helvetica",l["ArialUnicodeMS-Bold"]="Helvetica-Bold",l["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",l["ArialUnicodeMS-Italic"]="Helvetica-Oblique",l["Courier-BoldItalic"]="Courier-BoldOblique",l["Courier-Italic"]="Courier-Oblique",l.CourierNew="Courier",l["CourierNew-Bold"]="Courier-Bold",l["CourierNew-BoldItalic"]="Courier-BoldOblique",l["CourierNew-Italic"]="Courier-Oblique",l["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",l["CourierNewPS-BoldMT"]="Courier-Bold",l["CourierNewPS-ItalicMT"]="Courier-Oblique",l.CourierNewPSMT="Courier",l["Helvetica-BoldItalic"]="Helvetica-BoldOblique",l["Helvetica-Italic"]="Helvetica-Oblique",l["Symbol-Bold"]="Symbol",l["Symbol-BoldItalic"]="Symbol",l["Symbol-Italic"]="Symbol",l.TimesNewRoman="Times-Roman",l["TimesNewRoman-Bold"]="Times-Bold",l["TimesNewRoman-BoldItalic"]="Times-BoldItalic",l["TimesNewRoman-Italic"]="Times-Italic",l.TimesNewRomanPS="Times-Roman",l["TimesNewRomanPS-Bold"]="Times-Bold",l["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",l["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",l["TimesNewRomanPS-BoldMT"]="Times-Bold",l["TimesNewRomanPS-Italic"]="Times-Italic",l["TimesNewRomanPS-ItalicMT"]="Times-Italic",l.TimesNewRomanPSMT="Times-Roman",l["TimesNewRomanPSMT-Bold"]="Times-Bold",l["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",l["TimesNewRomanPSMT-Italic"]="Times-Italic"});a.getStdFontMap=R;const v=(0,n.getLookupTableFactory)(function(l){l.Courier="FoxitFixed.pfb",l["Courier-Bold"]="FoxitFixedBold.pfb",l["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",l["Courier-Oblique"]="FoxitFixedItalic.pfb",l.Helvetica="FoxitSans.pfb",l["Helvetica-Bold"]="FoxitSansBold.pfb",l["Helvetica-BoldOblique"]="FoxitSansBoldItalic.pfb",l["Helvetica-Oblique"]="FoxitSansItalic.pfb",l["Times-Roman"]="FoxitSerif.pfb",l["Times-Bold"]="FoxitSerifBold.pfb",l["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",l["Times-Italic"]="FoxitSerifItalic.pfb",l.Symbol="FoxitSymbol.pfb",l.ZapfDingbats="FoxitDingbats.pfb",l["LiberationSans-Regular"]="LiberationSans-Regular.ttf",l["LiberationSans-Bold"]="LiberationSans-Bold.ttf",l["LiberationSans-Italic"]="LiberationSans-Italic.ttf",l["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"});a.getFontNameToFileMap=v;const e=(0,n.getLookupTableFactory)(function(l){l.Calibri="Helvetica",l["Calibri-Bold"]="Helvetica-Bold",l["Calibri-BoldItalic"]="Helvetica-BoldOblique",l["Calibri-Italic"]="Helvetica-Oblique",l.CenturyGothic="Helvetica",l["CenturyGothic-Bold"]="Helvetica-Bold",l["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",l["CenturyGothic-Italic"]="Helvetica-Oblique",l.ComicSansMS="Comic Sans MS",l["ComicSansMS-Bold"]="Comic Sans MS-Bold",l["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",l["ComicSansMS-Italic"]="Comic Sans MS-Italic",l["ItcSymbol-Bold"]="Helvetica-Bold",l["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",l["ItcSymbol-Book"]="Helvetica",l["ItcSymbol-BookItalic"]="Helvetica-Oblique",l["ItcSymbol-Medium"]="Helvetica",l["ItcSymbol-MediumItalic"]="Helvetica-Oblique",l.LucidaConsole="Courier",l["LucidaConsole-Bold"]="Courier-Bold",l["LucidaConsole-BoldItalic"]="Courier-BoldOblique",l["LucidaConsole-Italic"]="Courier-Oblique",l["LucidaSans-Demi"]="Helvetica-Bold",l["MS-Gothic"]="MS Gothic",l["MS-Gothic-Bold"]="MS Gothic-Bold",l["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",l["MS-Gothic-Italic"]="MS Gothic-Italic",l["MS-Mincho"]="MS Mincho",l["MS-Mincho-Bold"]="MS Mincho-Bold",l["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",l["MS-Mincho-Italic"]="MS Mincho-Italic",l["MS-PGothic"]="MS PGothic",l["MS-PGothic-Bold"]="MS PGothic-Bold",l["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",l["MS-PGothic-Italic"]="MS PGothic-Italic",l["MS-PMincho"]="MS PMincho",l["MS-PMincho-Bold"]="MS PMincho-Bold",l["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",l["MS-PMincho-Italic"]="MS PMincho-Italic",l.NuptialScript="Times-Italic",l.SegoeUISymbol="Helvetica",l.Wingdings="ZapfDingbats",l["Wingdings-Regular"]="ZapfDingbats"});a.getNonStdFontMap=e;const L=(0,n.getLookupTableFactory)(function(l){l["Adobe Jenson"]=!0,l["Adobe Text"]=!0,l.Albertus=!0,l.Aldus=!0,l.Alexandria=!0,l.Algerian=!0,l["American Typewriter"]=!0,l.Antiqua=!0,l.Apex=!0,l.Arno=!0,l.Aster=!0,l.Aurora=!0,l.Baskerville=!0,l.Bell=!0,l.Bembo=!0,l["Bembo Schoolbook"]=!0,l.Benguiat=!0,l["Berkeley Old Style"]=!0,l["Bernhard Modern"]=!0,l["Berthold City"]=!0,l.Bodoni=!0,l["Bauer Bodoni"]=!0,l["Book Antiqua"]=!0,l.Bookman=!0,l["Bordeaux Roman"]=!0,l["Californian FB"]=!0,l.Calisto=!0,l.Calvert=!0,l.Capitals=!0,l.Cambria=!0,l.Cartier=!0,l.Caslon=!0,l.Catull=!0,l.Centaur=!0,l["Century Old Style"]=!0,l["Century Schoolbook"]=!0,l.Chaparral=!0,l["Charis SIL"]=!0,l.Cheltenham=!0,l["Cholla Slab"]=!0,l.Clarendon=!0,l.Clearface=!0,l.Cochin=!0,l.Colonna=!0,l["Computer Modern"]=!0,l["Concrete Roman"]=!0,l.Constantia=!0,l["Cooper Black"]=!0,l.Corona=!0,l.Ecotype=!0,l.Egyptienne=!0,l.Elephant=!0,l.Excelsior=!0,l.Fairfield=!0,l["FF Scala"]=!0,l.Folkard=!0,l.Footlight=!0,l.FreeSerif=!0,l["Friz Quadrata"]=!0,l.Garamond=!0,l.Gentium=!0,l.Georgia=!0,l.Gloucester=!0,l["Goudy Old Style"]=!0,l["Goudy Schoolbook"]=!0,l["Goudy Pro Font"]=!0,l.Granjon=!0,l["Guardian Egyptian"]=!0,l.Heather=!0,l.Hercules=!0,l["High Tower Text"]=!0,l.Hiroshige=!0,l["Hoefler Text"]=!0,l["Humana Serif"]=!0,l.Imprint=!0,l["Ionic No. 5"]=!0,l.Janson=!0,l.Joanna=!0,l.Korinna=!0,l.Lexicon=!0,l.LiberationSerif=!0,l["Liberation Serif"]=!0,l["Linux Libertine"]=!0,l.Literaturnaya=!0,l.Lucida=!0,l["Lucida Bright"]=!0,l.Melior=!0,l.Memphis=!0,l.Miller=!0,l.Minion=!0,l.Modern=!0,l["Mona Lisa"]=!0,l["Mrs Eaves"]=!0,l["MS Serif"]=!0,l["Museo Slab"]=!0,l["New York"]=!0,l["Nimbus Roman"]=!0,l["NPS Rawlinson Roadway"]=!0,l.NuptialScript=!0,l.Palatino=!0,l.Perpetua=!0,l.Plantin=!0,l["Plantin Schoolbook"]=!0,l.Playbill=!0,l["Poor Richard"]=!0,l["Rawlinson Roadway"]=!0,l.Renault=!0,l.Requiem=!0,l.Rockwell=!0,l.Roman=!0,l["Rotis Serif"]=!0,l.Sabon=!0,l.Scala=!0,l.Seagull=!0,l.Sistina=!0,l.Souvenir=!0,l.STIX=!0,l["Stone Informal"]=!0,l["Stone Serif"]=!0,l.Sylfaen=!0,l.Times=!0,l.Trajan=!0,l.Trinité=!0,l["Trump Mediaeval"]=!0,l.Utopia=!0,l["Vale Type"]=!0,l["Bitstream Vera"]=!0,l["Vera Serif"]=!0,l.Versailles=!0,l.Wanted=!0,l.Weiss=!0,l["Wide Latin"]=!0,l.Windsor=!0,l.XITS=!0});a.getSerifFonts=L;const O=(0,n.getLookupTableFactory)(function(l){l.Dingbats=!0,l.Symbol=!0,l.ZapfDingbats=!0});a.getSymbolsFonts=O;const B=(0,n.getLookupTableFactory)(function(l){l[2]=10,l[3]=32,l[4]=33,l[5]=34,l[6]=35,l[7]=36,l[8]=37,l[9]=38,l[10]=39,l[11]=40,l[12]=41,l[13]=42,l[14]=43,l[15]=44,l[16]=45,l[17]=46,l[18]=47,l[19]=48,l[20]=49,l[21]=50,l[22]=51,l[23]=52,l[24]=53,l[25]=54,l[26]=55,l[27]=56,l[28]=57,l[29]=58,l[30]=894,l[31]=60,l[32]=61,l[33]=62,l[34]=63,l[35]=64,l[36]=65,l[37]=66,l[38]=67,l[39]=68,l[40]=69,l[41]=70,l[42]=71,l[43]=72,l[44]=73,l[45]=74,l[46]=75,l[47]=76,l[48]=77,l[49]=78,l[50]=79,l[51]=80,l[52]=81,l[53]=82,l[54]=83,l[55]=84,l[56]=85,l[57]=86,l[58]=87,l[59]=88,l[60]=89,l[61]=90,l[62]=91,l[63]=92,l[64]=93,l[65]=94,l[66]=95,l[67]=96,l[68]=97,l[69]=98,l[70]=99,l[71]=100,l[72]=101,l[73]=102,l[74]=103,l[75]=104,l[76]=105,l[77]=106,l[78]=107,l[79]=108,l[80]=109,l[81]=110,l[82]=111,l[83]=112,l[84]=113,l[85]=114,l[86]=115,l[87]=116,l[88]=117,l[89]=118,l[90]=119,l[91]=120,l[92]=121,l[93]=122,l[94]=123,l[95]=124,l[96]=125,l[97]=126,l[98]=196,l[99]=197,l[100]=199,l[101]=201,l[102]=209,l[103]=214,l[104]=220,l[105]=225,l[106]=224,l[107]=226,l[108]=228,l[109]=227,l[110]=229,l[111]=231,l[112]=233,l[113]=232,l[114]=234,l[115]=235,l[116]=237,l[117]=236,l[118]=238,l[119]=239,l[120]=241,l[121]=243,l[122]=242,l[123]=244,l[124]=246,l[125]=245,l[126]=250,l[127]=249,l[128]=251,l[129]=252,l[130]=8224,l[131]=176,l[132]=162,l[133]=163,l[134]=167,l[135]=8226,l[136]=182,l[137]=223,l[138]=174,l[139]=169,l[140]=8482,l[141]=180,l[142]=168,l[143]=8800,l[144]=198,l[145]=216,l[146]=8734,l[147]=177,l[148]=8804,l[149]=8805,l[150]=165,l[151]=181,l[152]=8706,l[153]=8721,l[154]=8719,l[156]=8747,l[157]=170,l[158]=186,l[159]=8486,l[160]=230,l[161]=248,l[162]=191,l[163]=161,l[164]=172,l[165]=8730,l[166]=402,l[167]=8776,l[168]=8710,l[169]=171,l[170]=187,l[171]=8230,l[200]=193,l[203]=205,l[210]=218,l[223]=711,l[224]=321,l[225]=322,l[226]=352,l[227]=353,l[228]=381,l[229]=382,l[233]=221,l[234]=253,l[252]=263,l[253]=268,l[254]=269,l[258]=258,l[260]=260,l[261]=261,l[265]=280,l[266]=281,l[267]=282,l[268]=283,l[269]=313,l[275]=323,l[276]=324,l[278]=328,l[283]=344,l[284]=345,l[285]=346,l[286]=347,l[292]=367,l[295]=377,l[296]=378,l[298]=380,l[305]=963,l[306]=964,l[307]=966,l[308]=8215,l[309]=8252,l[310]=8319,l[311]=8359,l[312]=8592,l[313]=8593,l[337]=9552,l[493]=1039,l[494]=1040,l[672]=1488,l[673]=1489,l[674]=1490,l[675]=1491,l[676]=1492,l[677]=1493,l[678]=1494,l[679]=1495,l[680]=1496,l[681]=1497,l[682]=1498,l[683]=1499,l[684]=1500,l[685]=1501,l[686]=1502,l[687]=1503,l[688]=1504,l[689]=1505,l[690]=1506,l[691]=1507,l[692]=1508,l[693]=1509,l[694]=1510,l[695]=1511,l[696]=1512,l[697]=1513,l[698]=1514,l[705]=1524,l[706]=8362,l[710]=64288,l[711]=64298,l[759]=1617,l[761]=1776,l[763]=1778,l[775]=1652,l[777]=1764,l[778]=1780,l[779]=1781,l[780]=1782,l[782]=771,l[783]=64726,l[786]=8363,l[788]=8532,l[790]=768,l[791]=769,l[792]=768,l[795]=803,l[797]=64336,l[798]=64337,l[799]=64342,l[800]=64343,l[801]=64344,l[802]=64345,l[803]=64362,l[804]=64363,l[805]=64364,l[2424]=7821,l[2425]=7822,l[2426]=7823,l[2427]=7824,l[2428]=7825,l[2429]=7826,l[2430]=7827,l[2433]=7682,l[2678]=8045,l[2679]=8046,l[2830]=1552,l[2838]=686,l[2840]=751,l[2842]=753,l[2843]=754,l[2844]=755,l[2846]=757,l[2856]=767,l[2857]=848,l[2858]=849,l[2862]=853,l[2863]=854,l[2864]=855,l[2865]=861,l[2866]=862,l[2906]=7460,l[2908]=7462,l[2909]=7463,l[2910]=7464,l[2912]=7466,l[2913]=7467,l[2914]=7468,l[2916]=7470,l[2917]=7471,l[2918]=7472,l[2920]=7474,l[2921]=7475,l[2922]=7476,l[2924]=7478,l[2925]=7479,l[2926]=7480,l[2928]=7482,l[2929]=7483,l[2930]=7484,l[2932]=7486,l[2933]=7487,l[2934]=7488,l[2936]=7490,l[2937]=7491,l[2938]=7492,l[2940]=7494,l[2941]=7495,l[2942]=7496,l[2944]=7498,l[2946]=7500,l[2948]=7502,l[2950]=7504,l[2951]=7505,l[2952]=7506,l[2954]=7508,l[2955]=7509,l[2956]=7510,l[2958]=7512,l[2959]=7513,l[2960]=7514,l[2962]=7516,l[2963]=7517,l[2964]=7518,l[2966]=7520,l[2967]=7521,l[2968]=7522,l[2970]=7524,l[2971]=7525,l[2972]=7526,l[2974]=7528,l[2975]=7529,l[2976]=7530,l[2978]=1537,l[2979]=1538,l[2980]=1539,l[2982]=1549,l[2983]=1551,l[2984]=1552,l[2986]=1554,l[2987]=1555,l[2988]=1556,l[2990]=1623,l[2991]=1624,l[2995]=1775,l[2999]=1791,l[3002]=64290,l[3003]=64291,l[3004]=64292,l[3006]=64294,l[3007]=64295,l[3008]=64296,l[3011]=1900,l[3014]=8223,l[3015]=8244,l[3017]=7532,l[3018]=7533,l[3019]=7534,l[3075]=7590,l[3076]=7591,l[3079]=7594,l[3080]=7595,l[3083]=7598,l[3084]=7599,l[3087]=7602,l[3088]=7603,l[3091]=7606,l[3092]=7607,l[3095]=7610,l[3096]=7611,l[3099]=7614,l[3100]=7615,l[3103]=7618,l[3104]=7619,l[3107]=8337,l[3108]=8338,l[3116]=1884,l[3119]=1885,l[3120]=1885,l[3123]=1886,l[3124]=1886,l[3127]=1887,l[3128]=1887,l[3131]=1888,l[3132]=1888,l[3135]=1889,l[3136]=1889,l[3139]=1890,l[3140]=1890,l[3143]=1891,l[3144]=1891,l[3147]=1892,l[3148]=1892,l[3153]=580,l[3154]=581,l[3157]=584,l[3158]=585,l[3161]=588,l[3162]=589,l[3165]=891,l[3166]=892,l[3169]=1274,l[3170]=1275,l[3173]=1278,l[3174]=1279,l[3181]=7622,l[3182]=7623,l[3282]=11799,l[3316]=578,l[3379]=42785,l[3393]=1159,l[3416]=8377});a.getGlyphMapForStandardFonts=B;const P=(0,n.getLookupTableFactory)(function(l){l[227]=322,l[264]=261,l[291]=346});a.getSupplementalGlyphMapForArialBlack=P;const S=(0,n.getLookupTableFactory)(function(l){l[1]=32,l[4]=65,l[6]=193,l[17]=66,l[18]=67,l[21]=268,l[24]=68,l[28]=69,l[30]=201,l[32]=282,l[38]=70,l[39]=71,l[44]=72,l[47]=73,l[49]=205,l[58]=74,l[60]=75,l[62]=76,l[68]=77,l[69]=78,l[75]=79,l[87]=80,l[89]=81,l[90]=82,l[92]=344,l[94]=83,l[97]=352,l[100]=84,l[104]=85,l[115]=86,l[116]=87,l[121]=88,l[122]=89,l[124]=221,l[127]=90,l[129]=381,l[258]=97,l[260]=225,l[268]=261,l[271]=98,l[272]=99,l[273]=263,l[275]=269,l[282]=100,l[286]=101,l[288]=233,l[290]=283,l[295]=281,l[296]=102,l[336]=103,l[346]=104,l[349]=105,l[351]=237,l[361]=106,l[364]=107,l[367]=108,l[371]=322,l[373]=109,l[374]=110,l[381]=111,l[383]=243,l[393]=112,l[395]=113,l[396]=114,l[398]=345,l[400]=115,l[401]=347,l[403]=353,l[410]=116,l[437]=117,l[448]=118,l[449]=119,l[454]=120,l[455]=121,l[457]=253,l[460]=122,l[462]=382,l[463]=380,l[853]=44,l[855]=58,l[856]=46,l[876]=47,l[878]=45,l[882]=45,l[894]=40,l[895]=41,l[896]=91,l[897]=93,l[923]=64,l[1004]=48,l[1005]=49,l[1006]=50,l[1007]=51,l[1008]=52,l[1009]=53,l[1010]=54,l[1011]=55,l[1012]=56,l[1013]=57,l[1081]=37,l[1085]=43,l[1086]=45});a.getSupplementalGlyphMapForCalibri=S;function _(l){const y=(0,c.normalizeFontName)(l);return R()[y]}},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ToUnicodeMap=a.IdentityToUnicodeMap=void 0;var n=g(2);class c{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this._map=e}get length(){return this._map.length}forEach(e){for(const L in this._map)e(L,this._map[L].charCodeAt(0))}has(e){return this._map[e]!==void 0}get(e){return this._map[e]}charCodeOf(e){const L=this._map;if(L.length<=65536)return L.indexOf(e);for(const O in L)if(L[O]===e)return O|0;return-1}amend(e){for(const L in e)this._map[L]=e[L]}}a.ToUnicodeMap=c;class R{constructor(e,L){this.firstChar=e,this.lastChar=L}get length(){return this.lastChar+1-this.firstChar}forEach(e){for(let L=this.firstChar,O=this.lastChar;L<=O;L++)e(L,L)}has(e){return this.firstChar<=e&&e<=this.lastChar}get(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)}charCodeOf(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}amend(e){(0,n.unreachable)("Should not call amend()")}}a.IdentityToUnicodeMap=R},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CFFFont=void 0;var n=g(160),c=g(163),R=g(2);class v{constructor(L,O){this.properties=O;const B=new n.CFFParser(L,O,c.SEAC_ANALYSIS_ENABLED);this.cff=B.parse(),this.cff.duplicateFirstGlyph();const P=new n.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=P.compile()}catch{(0,R.warn)("Failed to compile font "+O.loadedName),this.data=L}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){const L=this.cff,O=this.properties,B=L.charset.charset;let P,S;if(O.composite){P=Object.create(null);let l;if(L.isCIDFont)for(S=0;S=0){const y=B[l];y&&(S[_]=y)}}S.length>0&&(this.properties.builtInEncoding=S)}}a.CFFFont=v},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.FontRendererFactory=void 0;var n=g(2),c=g(160),R=g(164),v=g(162),e=g(135);function L(H,z){return(H[z]<<24|H[z+1]<<16|H[z+2]<<8|H[z+3])>>>0}function O(H,z){return H[z]<<8|H[z+1]}function B(H,z){return(H[z]<<24|H[z+1]<<16)>>16}function P(H,z){return H[z]<<24>>24}function S(H,z){return B(H,z)/16384}function _(H){const z=H.length;let X=32768;return z<1240?X=107:z<33900&&(X=1131),X}function l(H,z,X){const q=O(H,z+2)===1?L(H,z+8):L(H,z+16),$=O(H,z+q);let fe,Q,ie;if($===4){O(H,z+q+2);const Te=O(H,z+q+6)>>1;for(Q=z+q+14,fe=[],ie=0;ie2*O(ie,Te));const fe=[];let Q=$(z,0);for(let ie=q;ie>1;X0;)we.push({flags:Te})}for(de=0;de>1,ae=!0;break;case 3:K+=ie.length>>1,ae=!0;break;case 4:me+=ie.pop(),$(Te,me),ae=!0;break;case 5:for(;ie.length>0;)Te+=ie.shift(),me+=ie.shift(),fe(Te,me);break;case 6:for(;ie.length>0&&(Te+=ie.shift(),fe(Te,me),ie.length!==0);)me+=ie.shift(),fe(Te,me);break;case 7:for(;ie.length>0&&(me+=ie.shift(),fe(Te,me),ie.length!==0);)Te+=ie.shift(),fe(Te,me);break;case 8:for(;ie.length>0;)we=Te+ie.shift(),ye=me+ie.shift(),_e=we+ie.shift(),se=ye+ie.shift(),Te=_e+ie.shift(),me=se+ie.shift(),Q(we,ye,_e,se,Te,me);break;case 10:if(pe=ie.pop(),xe=null,X.isCFFCIDFont){const Ne=X.fdSelect.getFDIndex(q);if(Ne>=0&&NeMath.abs(me-ke)?Te+=ie.shift():me+=ie.shift(),Q(we,ye,_e,se,Te,me);break;default:throw new n.FormatError(`unknown operator: 12 ${he}`)}break;case 14:if(ie.length>=4){const Ne=ie.pop(),ke=ie.pop();me=ie.pop(),Te=ie.pop(),z.push({cmd:"save"},{cmd:"translate",args:[Te,me]});let De=M(X.cmap,String.fromCharCode(X.glyphNameMap[v.StandardEncoding[Ne]]));N(X.glyphs[De.glyphId],z,X,De.glyphId),z.push({cmd:"restore"}),De=M(X.cmap,String.fromCharCode(X.glyphNameMap[v.StandardEncoding[ke]])),N(X.glyphs[De.glyphId],z,X,De.glyphId)}return;case 18:K+=ie.length>>1,ae=!0;break;case 19:K+=ie.length>>1,Z+=K+7>>3,ae=!0;break;case 20:K+=ie.length>>1,Z+=K+7>>3,ae=!0;break;case 21:me+=ie.pop(),Te+=ie.pop(),$(Te,me),ae=!0;break;case 22:Te+=ie.pop(),$(Te,me),ae=!0;break;case 23:K+=ie.length>>1,ae=!0;break;case 24:for(;ie.length>2;)we=Te+ie.shift(),ye=me+ie.shift(),_e=we+ie.shift(),se=ye+ie.shift(),Te=_e+ie.shift(),me=se+ie.shift(),Q(we,ye,_e,se,Te,me);Te+=ie.shift(),me+=ie.shift(),fe(Te,me);break;case 25:for(;ie.length>6;)Te+=ie.shift(),me+=ie.shift(),fe(Te,me);we=Te+ie.shift(),ye=me+ie.shift(),_e=we+ie.shift(),se=ye+ie.shift(),Te=_e+ie.shift(),me=se+ie.shift(),Q(we,ye,_e,se,Te,me);break;case 26:for(ie.length%2&&(Te+=ie.shift());ie.length>0;)we=Te,ye=me+ie.shift(),_e=we+ie.shift(),se=ye+ie.shift(),Te=_e,me=se+ie.shift(),Q(we,ye,_e,se,Te,me);break;case 27:for(ie.length%2&&(me+=ie.shift());ie.length>0;)we=Te+ie.shift(),ye=me,_e=we+ie.shift(),se=ye+ie.shift(),Te=_e+ie.shift(),me=se,Q(we,ye,_e,se,Te,me);break;case 28:ie.push((de[Z]<<24|de[Z+1]<<16)>>16),Z+=2;break;case 29:pe=ie.pop()+X.gsubrsBias,xe=X.gsubrs[pe],xe&&ce(xe);break;case 30:for(;ie.length>0&&(we=Te,ye=me+ie.shift(),_e=we+ie.shift(),se=ye+ie.shift(),Te=_e+ie.shift(),me=se+(ie.length===1?ie.shift():0),Q(we,ye,_e,se,Te,me),ie.length!==0);)we=Te+ie.shift(),ye=me,_e=we+ie.shift(),se=ye+ie.shift(),me=se+ie.shift(),Te=_e+(ie.length===1?ie.shift():0),Q(we,ye,_e,se,Te,me);break;case 31:for(;ie.length>0&&(we=Te+ie.shift(),ye=me,_e=we+ie.shift(),se=ye+ie.shift(),me=se+ie.shift(),Te=_e+(ie.length===1?ie.shift():0),Q(we,ye,_e,se,Te,me),ie.length!==0);)we=Te,ye=me+ie.shift(),_e=we+ie.shift(),se=ye+ie.shift(),Te=_e+ie.shift(),me=se+(ie.length===1?ie.shift():0),Q(we,ye,_e,se,Te,me);break;default:if(he<32)throw new n.FormatError(`unknown operator: ${he}`);he<247?ie.push(he-139):he<251?ie.push((he-247)*256+de[Z++]+108):he<255?ie.push(-(he-251)*256-de[Z++]-108):(ie.push((de[Z]<<24|de[Z+1]<<16|de[Z+2]<<8|de[Z+3])/65536),Z+=4);break}ae&&(ie.length=0)}}ce(H)}const G=[];class W{constructor(z){this.constructor===W&&(0,n.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=z,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(z){const{charCode:X,glyphId:q}=M(this.cmap,z);let $=this.compiledGlyphs[q];if(!$)try{$=this.compileGlyph(this.glyphs[q],q),this.compiledGlyphs[q]=$}catch(fe){throw this.compiledGlyphs[q]=G,this.compiledCharCodeToGlyphId[X]===void 0&&(this.compiledCharCodeToGlyphId[X]=q),fe}return this.compiledCharCodeToGlyphId[X]===void 0&&(this.compiledCharCodeToGlyphId[X]=q),$}compileGlyph(z,X){if(!z||z.length===0||z[0]===14)return G;let q=this.fontMatrix;if(this.isCFFCIDFont){const fe=this.fdSelect.getFDIndex(X);fe>=0&&fe{Object.defineProperty(a,"__esModule",{value:!0}),a.getMetrics=a.getFontBasicMetrics=void 0;var n=g(131);const c=(0,n.getLookupTableFactory)(function(v){v.Courier=600,v["Courier-Bold"]=600,v["Courier-BoldOblique"]=600,v["Courier-Oblique"]=600,v.Helvetica=(0,n.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),v["Helvetica-Bold"]=(0,n.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),v["Helvetica-BoldOblique"]=(0,n.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),v["Helvetica-Oblique"]=(0,n.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),v.Symbol=(0,n.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790}),v["Times-Roman"]=(0,n.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),v["Times-Bold"]=(0,n.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),v["Times-BoldItalic"]=(0,n.getLookupTableFactory)(function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),v["Times-Italic"]=(0,n.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),v.ZapfDingbats=(0,n.getLookupTableFactory)(function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918})});a.getMetrics=c;const R=(0,n.getLookupTableFactory)(function(v){v.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},v["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439},v["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},v["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},v.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},v["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532},v["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523},v["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532},v["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450},v["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461},v["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441},v["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462},v.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},v.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}});a.getFontBasicMetrics=R},(x,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.GlyfTable=void 0;const g=1,n=2,c=4,R=8,v=16,e=32,L=64,O=1,B=2,P=8,S=32,_=64,l=128,y=256;class D{constructor(Y){let{glyfTable:V,isGlyphLocationsLong:H,locaTable:z,numGlyphs:X}=Y;this.glyphs=[];const q=new DataView(z.buffer,z.byteOffset,z.byteLength),$=new DataView(V.buffer,V.byteOffset,V.byteLength),fe=H?4:2;let Q=H?q.getUint32(0):2*q.getUint16(0),ie=0;for(let Te=0;Te{const H=V.getSize();return Y+(H+3&-4)},0)}write(){const Y=this.getSize(),V=new DataView(new ArrayBuffer(Y)),H=Y>131070,z=H?4:2,X=new DataView(new ArrayBuffer((this.glyphs.length+1)*z));H?X.setUint32(0,0):X.setUint16(0,0);let q=0,$=0;for(const fe of this.glyphs)q+=fe.write(q,V),q=q+3&-4,$+=z,H?X.setUint32($,q):X.setUint16($,q>>1);return{isLocationLong:H,loca:new Uint8Array(X.buffer),glyf:new Uint8Array(V.buffer)}}scale(Y){for(let V=0,H=this.glyphs.length;VV+H.getSize(),0);return this.header.getSize()+Y}write(Y,V){if(!this.header)return 0;const H=Y;if(Y+=this.header.write(Y,V),this.simple)Y+=this.simple.write(Y,V);else for(const z of this.composites)Y+=z.write(Y,V);return Y-H}scale(Y){if(!this.header)return;const V=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(V,Y),this.simple)this.simple.scale(V,Y);else for(const H of this.composites)H.scale(V,Y)}}class F{constructor(Y){let{numberOfContours:V,xMin:H,yMin:z,xMax:X,yMax:q}=Y;this.numberOfContours=V,this.xMin=H,this.yMin=z,this.xMax=X,this.yMax=q}static parse(Y,V){return[10,new F({numberOfContours:V.getInt16(Y),xMin:V.getInt16(Y+2),yMin:V.getInt16(Y+4),xMax:V.getInt16(Y+6),yMax:V.getInt16(Y+8)})]}getSize(){return 10}write(Y,V){return V.setInt16(Y,this.numberOfContours),V.setInt16(Y+2,this.xMin),V.setInt16(Y+4,this.yMin),V.setInt16(Y+6,this.xMax),V.setInt16(Y+8,this.yMax),10}scale(Y,V){this.xMin=Math.round(Y+(this.xMin-Y)*V),this.xMax=Math.round(Y+(this.xMax-Y)*V)}}class N{constructor(Y){let{flags:V,xCoordinates:H,yCoordinates:z}=Y;this.xCoordinates=H,this.yCoordinates=z,this.flags=V}}class G{constructor(Y){let{contours:V,instructions:H}=Y;this.contours=V,this.instructions=H}static parse(Y,V,H){const z=[];for(let Z=0;Z255?Y+=2:Q>0&&(Y+=1),V=$,Q=Math.abs(fe-H),Q>255?Y+=2:Q>0&&(Y+=1),H=fe}}return Y}write(Y,V){const H=Y,z=[],X=[],q=[];let $=0,fe=0;for(const Q of this.contours){for(let ie=0,Te=Q.xCoordinates.length;ie=0?n|v:n,z.push(Z)):z.push(ce)}$=K;const de=Q.yCoordinates[ie];if(ce=de-fe,ce===0)me|=e,X.push(0);else{const Z=Math.abs(ce);Z<=255?(me|=ce>=0?c|e:c,X.push(Z)):X.push(ce)}fe=de,q.push(me)}V.setUint16(Y,z.length-1),Y+=2}V.setUint16(Y,this.instructions.length),Y+=2,this.instructions.length&&(new Uint8Array(V.buffer,0,V.buffer.byteLength).set(this.instructions,Y),Y+=this.instructions.length);for(const Q of q)V.setUint8(Y++,Q);for(let Q=0,ie=z.length;Q=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(Y+=2):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(Y+=2),Y}write(Y,V){const H=Y;return this.flags&B?this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127||(this.flags|=O):this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255||(this.flags|=O),V.setUint16(Y,this.flags),V.setUint16(Y+2,this.glyphIndex),Y+=4,this.flags&O?(this.flags&B?(V.setInt16(Y,this.argument1),V.setInt16(Y+2,this.argument2)):(V.setUint16(Y,this.argument1),V.setUint16(Y+2,this.argument2)),Y+=4):(V.setUint8(Y,this.argument1),V.setUint8(Y+1,this.argument2),Y+=2),this.flags&y&&(V.setUint16(Y,this.instructions.length),Y+=2,this.instructions.length&&(new Uint8Array(V.buffer,0,V.buffer.byteLength).set(this.instructions,Y),Y+=this.instructions.length)),Y-H}scale(Y,V){}}},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.OpenTypeFileBuilder=void 0;var n=g(131),c=g(2);function R(P,S,_){P[S]=_>>8&255,P[S+1]=_&255}function v(P,S,_){P[S]=_>>24&255,P[S+1]=_>>16&255,P[S+2]=_>>8&255,P[S+3]=_&255}function e(P,S,_){if(_ instanceof Uint8Array)P.set(_,S);else if(typeof _=="string")for(let l=0,y=_.length;ll;)l<<=1,y++;const D=l*_;return{range:D,entry:y,rangeShift:_*S-D}}toArray(){let S=this.sfnt;const _=this.tables,l=Object.keys(_);l.sort();const y=l.length;let D,M,F,N,G,W=L+y*O;const J=[W];for(D=0;D>>0;W+=H,J.push(W)}const Y=new Uint8Array(W);for(D=0;D>>0}v(Y,W+4,H),v(Y,W+8,J[D]),v(Y,W+12,_[G].length),W+=O}return Y}addTable(S,_){if(S in this.tables)throw new Error("Table "+S+" already exists");this.tables[S]=_}}a.OpenTypeFileBuilder=B},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Type1Font=void 0;var n=g(160),c=g(163),R=g(131),v=g(135),e=g(174),L=g(2);function O(_,l,y){const D=_.length,M=l.length,F=D-M;let N=y,G=!1;for(;N=M){for(N+=W;N=0&&(M[G]=F)}return(0,c.type1FontGlyphMapping)(l,M,D)}hasGlyphId(l){return l<0||l>=this.numGlyphs?!1:l===0?!0:this.charstrings[l-1].charstring.length>0}getSeacs(l){const y=[];for(let D=0,M=l.length;D0;Te--)ie[Te]-=ie[Te-1];X.setByName(Q,ie)}N.topDict.privateDict=X;const $=new n.CFFIndex;for(V=0,H=M.length;V{Object.defineProperty(a,"__esModule",{value:!0}),a.Type1Parser=void 0;var n=g(162),c=g(131),R=g(135),v=g(2);const e=!1,L={hstem:[1],vstem:[3],vmoveto:[4],rlineto:[5],hlineto:[6],vlineto:[7],rrcurveto:[8],callsubr:[10],flex:[12,35],drop:[12,18],endchar:[14],rmoveto:[21],hmoveto:[22],vhcurveto:[30],hvcurveto:[31]};class O{constructor(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}convert(F,N,G){const W=F.length;let J=!1,Y,V,H;for(let z=0;zW)return!0;const J=W-F;for(let Y=J;Y>8&255,V&255):(V=65536*V|0,this.output.push(255,V>>24&255,V>>16&255,V>>8&255,V&255))}return this.output.push(...N),G?this.stack.splice(J,F):this.stack.length=0,!1}}const B=55665,P=4330;function S(M){return M>=48&&M<=57||M>=65&&M<=70||M>=97&&M<=102}function _(M,F,N){if(N>=M.length)return new Uint8Array(0);const G=52845,W=22719;let J=F|0,Y,V;for(Y=0;Y>8,J=(X+J)*G+W&65535}return z}function l(M,F,N){let J=F|0;const Y=M.length,V=Y>>>1,H=new Uint8Array(V);let z,X;for(z=0,X=0;z>8,J=(fe+J)*52845+22719&65535}}return H.slice(N,X)}function y(M){return M===47||M===91||M===93||M===123||M===125||M===40||M===41}class D{constructor(F,N,G){if(N){const W=F.getBytes(),J=!((S(W[0])||(0,c.isWhiteSpace)(W[0]))&&S(W[1])&&S(W[2])&&S(W[3])&&S(W[4])&&S(W[5])&&S(W[6])&&S(W[7]));F=new R.Stream(J?_(W,B,4):l(W,B,4))}this.seacAnalysisEnabled=!!G,this.stream=F,this.nextChar()}readNumberArray(){this.getToken();const F=[];for(;;){const N=this.getToken();if(N===null||N==="]"||N==="}")break;F.push(parseFloat(N||0))}return F}readNumber(){const F=this.getToken();return parseFloat(F||0)}readInt(){const F=this.getToken();return parseInt(F||0,10)|0}readBoolean(){return this.getToken()==="true"?1:0}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}getToken(){let F=!1,N=this.currentChar;for(;;){if(N===-1)return null;if(F)(N===10||N===13)&&(F=!1);else if(N===37)F=!0;else if(!(0,c.isWhiteSpace)(N))break;N=this.nextChar()}if(y(N))return this.nextChar(),String.fromCharCode(N);let G="";do G+=String.fromCharCode(N),N=this.nextChar();while(N>=0&&!(0,c.isWhiteSpace)(N)&&!y(N));return G}readCharStrings(F,N){return N===-1?F:_(F,P,N)}extractFontProgram(F){const N=this.stream,G=[],W=[],J=Object.create(null);J.lenIV=4;const Y={subrs:[],charstrings:[],properties:{privateData:J}};let V,H,z,X;for(;(V=this.getToken())!==null;)if(V==="/")switch(V=this.getToken(),V){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();V=this.getToken(),!(V===null||V==="end");){if(V!=="/")continue;const $=this.getToken();H=this.readInt(),this.getToken(),z=H>0?N.getBytes(H):new Uint8Array(0),X=Y.properties.privateData.lenIV;const fe=this.readCharStrings(z,X);this.nextChar(),V=this.getToken(),V==="noaccess"?this.getToken():V==="/"&&this.prevChar(),W.push({glyph:$,encoded:fe})}break;case"Subrs":for(this.readInt(),this.getToken();this.getToken()==="dup";){const $=this.readInt();H=this.readInt(),this.getToken(),z=H>0?N.getBytes(H):new Uint8Array(0),X=Y.properties.privateData.lenIV;const fe=this.readCharStrings(z,X);this.nextChar(),V=this.getToken(),V==="noaccess"&&this.getToken(),G[$]=fe}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":const q=this.readNumberArray();q.length>0&&q.length%2===0&&e&&(Y.properties.privateData[V]=q);break;case"StemSnapH":case"StemSnapV":Y.properties.privateData[V]=this.readNumberArray();break;case"StdHW":case"StdVW":Y.properties.privateData[V]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":case"ExpansionFactor":Y.properties.privateData[V]=this.readNumber();break;case"ForceBold":Y.properties.privateData[V]=this.readBoolean();break}for(const{encoded:q,glyph:$}of W){const fe=new O,Q=fe.convert(q,G,this.seacAnalysisEnabled);let ie=fe.output;Q&&(ie=[14]);const Te={glyphName:$,charstring:ie,width:fe.width,lsb:fe.lsb,seac:fe.seac};if($===".notdef"?Y.charstrings.unshift(Te):Y.charstrings.push(Te),F.builtInEncoding){const me=F.builtInEncoding.indexOf($);me>-1&&F.widths[me]===void 0&&me>=F.firstChar&&me<=F.lastChar&&(F.widths[me]=fe.width)}}return Y}extractFontHeader(F){let N;for(;(N=this.getToken())!==null;)if(N==="/")switch(N=this.getToken(),N){case"FontMatrix":const G=this.readNumberArray();F.fontMatrix=G;break;case"Encoding":const W=this.getToken();let J;if(!/^\d+$/.test(W))J=(0,n.getEncoding)(W);else{J=[];const V=parseInt(W,10)|0;this.getToken();for(let H=0;H{Object.defineProperty(a,"__esModule",{value:!0}),a.Pattern=void 0,a.getTilingPatternIR=y;var n=g(2),c=g(132),R=g(139),v=g(131);const e={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7};class L{constructor(){(0,n.unreachable)("Cannot initialize Pattern.")}static parseShading(M,F,N,G,W,J){const Y=M instanceof c.BaseStream?M.dict:M,V=Y.get("ShadingType");try{switch(V){case e.AXIAL:case e.RADIAL:return new B(Y,F,N,W,J);case e.FREE_FORM_MESH:case e.LATTICE_FORM_MESH:case e.COONS_PATCH_MESH:case e.TENSOR_PATCH_MESH:return new _(M,F,N,W,J);default:throw new n.FormatError("Unsupported ShadingType: "+V)}}catch(H){if(H instanceof v.MissingDataException)throw H;return G.send("UnsupportedFeature",{featureId:n.UNSUPPORTED_FEATURES.shadingPattern}),(0,n.warn)(H),new l}}}a.Pattern=L;class O{static get SMALL_NUMBER(){return(0,n.shadow)(this,"SMALL_NUMBER",1e-6)}constructor(){this.constructor===O&&(0,n.unreachable)("Cannot initialize BaseShading.")}getIR(){(0,n.unreachable)("Abstract method `getIR` called.")}}class B extends O{constructor(M,F,N,G,W){super(),this.coordsArr=M.getArray("Coords"),this.shadingType=M.get("ShadingType");const J=R.ColorSpace.parse({cs:M.getRaw("CS")||M.getRaw("ColorSpace"),xref:F,resources:N,pdfFunctionFactory:G,localColorSpaceCache:W}),Y=M.getArray("BBox");Array.isArray(Y)&&Y.length===4?this.bbox=n.Util.normalizeRect(Y):this.bbox=null;let V=0,H=1;if(M.has("Domain")){const de=M.getArray("Domain");V=de[0],H=de[1]}let z=!1,X=!1;if(M.has("Extend")){const de=M.getArray("Extend");z=de[0],X=de[1]}if(this.shadingType===e.RADIAL&&(!z||!X)){const[de,Z,ae,he,we,_e]=this.coordsArr,ye=Math.hypot(de-he,Z-we);ae<=_e+ye&&_e<=ae+ye&&(0,n.warn)("Unsupported radial gradient.")}this.extendStart=z,this.extendEnd=X;const q=M.getRaw("Function"),$=G.createFromArray(q),fe=10,Q=(H-V)/fe,ie=this.colorStops=[];if(V>=H||Q<=0){(0,n.info)("Bad shading domain.");return}const Te=new Float32Array(J.numComps),me=new Float32Array(1);let K;for(let de=0;de<=fe;de++){me[0]=V+de*Q,$(me,0,Te,0),K=J.getRgb(Te,0);const Z=n.Util.makeHexColor(K[0],K[1],K[2]);ie.push([de/fe,Z])}let ce="transparent";M.has("Background")&&(K=J.getRgb(M.get("Background"),0),ce=n.Util.makeHexColor(K[0],K[1],K[2])),z||(ie.unshift([0,ce]),ie[1][0]+=O.SMALL_NUMBER),X||(ie.at(-1)[0]-=O.SMALL_NUMBER,ie.push([1,ce])),this.colorStops=ie}getIR(){const M=this.coordsArr,F=this.shadingType;let N,G,W,J,Y;return F===e.AXIAL?(G=[M[0],M[1]],W=[M[2],M[3]],J=null,Y=null,N="axial"):F===e.RADIAL?(G=[M[0],M[1]],W=[M[3],M[4]],J=M[2],Y=M[5],N="radial"):(0,n.unreachable)(`getPattern type unknown: ${F}`),["RadialAxial",N,this.bbox,this.colorStops,G,W,J,Y]}}class P{constructor(M,F){this.stream=M,this.context=F,this.buffer=0,this.bufferLength=0;const N=F.numComps;this.tmpCompsBuf=new Float32Array(N);const G=F.colorSpace.numComps;this.tmpCsCompsBuf=F.colorFn?new Float32Array(G):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos0)return!0;const M=this.stream.getByte();return M<0?!1:(this.buffer=M,this.bufferLength=8,!0)}readBits(M){let F=this.buffer,N=this.bufferLength;if(M===32){if(N===0)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;F=F<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();const G=this.stream.getByte();return this.buffer=G&(1<>N)>>>0}if(M===8&&N===0)return this.stream.getByte();for(;N>N}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){const M=this.context.bitsPerCoordinate,F=this.readBits(M),N=this.readBits(M),G=this.context.decode,W=M<32?1/((1<Y?Y:M,F=F>V?V:F,N=N{Object.defineProperty(a,"__esModule",{value:!0}),a.getXfaFontDict=l,a.getXfaFontName=S;var n=g(177),c=g(130),R=g(178),v=g(179),e=g(180),L=g(181),O=g(131),B=g(163);const P=(0,O.getLookupTableFactory)(function(y){y["MyriadPro-Regular"]=y["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:e.MyriadProRegularFactors,baseWidths:v.LiberationSansRegularWidths,baseMapping:v.LiberationSansRegularMapping,metrics:e.MyriadProRegularMetrics},y["MyriadPro-Bold"]=y["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:e.MyriadProBoldFactors,baseWidths:v.LiberationSansBoldWidths,baseMapping:v.LiberationSansBoldMapping,metrics:e.MyriadProBoldMetrics},y["MyriadPro-It"]=y["MyriadPro-Italic"]=y["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:e.MyriadProItalicFactors,baseWidths:v.LiberationSansItalicWidths,baseMapping:v.LiberationSansItalicMapping,metrics:e.MyriadProItalicMetrics},y["MyriadPro-BoldIt"]=y["MyriadPro-BoldItalic"]=y["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:e.MyriadProBoldItalicFactors,baseWidths:v.LiberationSansBoldItalicWidths,baseMapping:v.LiberationSansBoldItalicMapping,metrics:e.MyriadProBoldItalicMetrics},y.ArialMT=y.Arial=y["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:v.LiberationSansRegularWidths,baseMapping:v.LiberationSansRegularMapping},y["Arial-BoldMT"]=y["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:v.LiberationSansBoldWidths,baseMapping:v.LiberationSansBoldMapping},y["Arial-ItalicMT"]=y["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:v.LiberationSansItalicWidths,baseMapping:v.LiberationSansItalicMapping},y["Arial-BoldItalicMT"]=y["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:v.LiberationSansBoldItalicWidths,baseMapping:v.LiberationSansBoldItalicMapping},y["Calibri-Regular"]={name:"LiberationSans-Regular",factors:n.CalibriRegularFactors,baseWidths:v.LiberationSansRegularWidths,baseMapping:v.LiberationSansRegularMapping,metrics:n.CalibriRegularMetrics},y["Calibri-Bold"]={name:"LiberationSans-Bold",factors:n.CalibriBoldFactors,baseWidths:v.LiberationSansBoldWidths,baseMapping:v.LiberationSansBoldMapping,metrics:n.CalibriBoldMetrics},y["Calibri-Italic"]={name:"LiberationSans-Italic",factors:n.CalibriItalicFactors,baseWidths:v.LiberationSansItalicWidths,baseMapping:v.LiberationSansItalicMapping,metrics:n.CalibriItalicMetrics},y["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:n.CalibriBoldItalicFactors,baseWidths:v.LiberationSansBoldItalicWidths,baseMapping:v.LiberationSansBoldItalicMapping,metrics:n.CalibriBoldItalicMetrics},y["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:L.SegoeuiRegularFactors,baseWidths:v.LiberationSansRegularWidths,baseMapping:v.LiberationSansRegularMapping,metrics:L.SegoeuiRegularMetrics},y["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:L.SegoeuiBoldFactors,baseWidths:v.LiberationSansBoldWidths,baseMapping:v.LiberationSansBoldMapping,metrics:L.SegoeuiBoldMetrics},y["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:L.SegoeuiItalicFactors,baseWidths:v.LiberationSansItalicWidths,baseMapping:v.LiberationSansItalicMapping,metrics:L.SegoeuiItalicMetrics},y["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:L.SegoeuiBoldItalicFactors,baseWidths:v.LiberationSansBoldItalicWidths,baseMapping:v.LiberationSansBoldItalicMapping,metrics:L.SegoeuiBoldItalicMetrics},y["Helvetica-Regular"]=y.Helvetica={name:"LiberationSans-Regular",factors:R.HelveticaRegularFactors,baseWidths:v.LiberationSansRegularWidths,baseMapping:v.LiberationSansRegularMapping,metrics:R.HelveticaRegularMetrics},y["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:R.HelveticaBoldFactors,baseWidths:v.LiberationSansBoldWidths,baseMapping:v.LiberationSansBoldMapping,metrics:R.HelveticaBoldMetrics},y["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:R.HelveticaItalicFactors,baseWidths:v.LiberationSansItalicWidths,baseMapping:v.LiberationSansItalicMapping,metrics:R.HelveticaItalicMetrics},y["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:R.HelveticaBoldItalicFactors,baseWidths:v.LiberationSansBoldItalicWidths,baseMapping:v.LiberationSansBoldItalicMapping,metrics:R.HelveticaBoldItalicMetrics}});function S(y){const D=(0,B.normalizeFontName)(y);return P()[D]}function _(y){const D=S(y);if(!D)return null;const{baseWidths:M,baseMapping:F,factors:N}=D;let G;N?G=M.map((V,H)=>V*N[H]):G=M;let W=-2,J;const Y=[];for(const[V,H]of F.map((z,X)=>[z,X]).sort((z,X)=>{let[q]=z,[$]=X;return q-$}))V!==-1&&(V===W+1?(J.push(G[H]),W+=1):(W=V,J=[G[H]],Y.push(V,J)));return Y}function l(y){const D=_(y),M=new c.Dict(null);M.set("BaseFont",c.Name.get(y)),M.set("Type",c.Name.get("Font")),M.set("Subtype",c.Name.get("CIDFontType2")),M.set("Encoding",c.Name.get("Identity-H")),M.set("CIDToGIDMap",c.Name.get("Identity")),M.set("W",D),M.set("FirstChar",D[0]),M.set("LastChar",D.at(-2)+D.at(-1).length-1);const F=new c.Dict(null);M.set("FontDescriptor",F);const N=new c.Dict(null);return N.set("Ordering","Identity"),N.set("Registry","Adobe"),N.set("Supplement",0),M.set("CIDSystemInfo",N),M}},(x,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CalibriRegularMetrics=a.CalibriRegularFactors=a.CalibriItalicMetrics=a.CalibriItalicFactors=a.CalibriBoldMetrics=a.CalibriBoldItalicMetrics=a.CalibriBoldItalicFactors=a.CalibriBoldFactors=void 0;const g=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];a.CalibriBoldFactors=g;const n={lineHeight:1.2207,lineGap:.2207};a.CalibriBoldMetrics=n;const c=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.56239,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.71805,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.90872,.85938,.79795,.87068,.77958,.69766,.81055,.90399,.88653,.96068,.82577,.77892,.78257,.97507,1.529,.97507,.85284,.89552,.90176,.94908,.86411,.74012,.86411,.88323,.95015,.86411,.86331,.88401,.91916,.86304,.88401,.9039,.86331,.86331,.86411,.86411,.90464,.70852,1.04106,.86331,.84372,.95794,.82616,.84548,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.19129,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.71805,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.90872,.85938,.85938,.85938,.85938,.85938,.85284,.87068,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.94908,.94908,.94908,.94908,.94908,.94908,.85887,.74012,.88323,.88323,.88323,.88323,.88401,.88401,.88401,.88401,.8785,.86331,.86331,.86331,.86331,.86331,.86331,.90747,.89049,.86331,.86331,.86331,.86331,.84548,.86411,.84548,.83908,.94908,.83908,.94908,.83908,.94908,.71805,.74012,.71805,.74012,.71805,.74012,.71805,.74012,.87289,.79538,.88506,.92726,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.81921,.86411,.81921,.86411,.81921,.86411,1,1,.87356,.86331,.91075,.8777,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76467,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.77312,.91926,.88175,.70823,.94903,.90872,.86331,1,1,.90872,.86331,.86906,.88116,.86331,.85938,.86331,.85938,.86331,.85938,.86331,.87402,.86549,.77958,.90464,1,1,.77958,.90464,.69766,.70852,.69766,.70852,.69766,.70852,.69766,.70852,1,1,.81055,.75841,.81055,1.06452,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.96068,.95794,.77892,.84548,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.94908,.77539,.85887,.87068,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70088,.98387,.94721,1.33431,1.45894,.95161,1.48387,.83908,.80352,.57118,.6965,.56347,.79179,.55853,.80346,1.02988,.83908,.7762,.67174,.86036,.73133,.78257,.87356,.86441,.95958,.75727,.89019,1.04924,.90872,.74889,.85938,.87891,.79795,.7957,.81055,.77892,.97447,.82577,.97466,.87179,.95958,.77892,.94252,.95612,.8753,1.02988,.92733,.94252,.87411,.84021,.8728,.95612,.74081,.8753,1.02189,1.02988,.84814,.87445,.91822,.84723,.85668,.86331,.81344,.87581,.76422,.82046,.96057,.92733,.99375,.78022,.95452,.86015,1.02988,.92733,.86331,.92733,.86015,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90631,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.88323,1,1,1,1,1,1,1,1,1,1,1,1,.85174,1,1,1,1,1,1,.96068,.95794,.96068,.95794,.96068,.95794,.77892,.84548,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.89807,.87012,.87012,.87012,.89552,.89552,1.42259,.71094,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.92972,.83406,.91133,.83326,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90616,1.81055,.90527,1.81055,1.3107,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];a.CalibriBoldItalicFactors=c;const R={lineHeight:1.2207,lineGap:.2207};a.CalibriBoldItalicMetrics=R;const v=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];a.CalibriItalicFactors=v;const e={lineHeight:1.2207,lineGap:.2207};a.CalibriItalicMetrics=e;const L=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1];a.CalibriRegularFactors=L;const O={lineHeight:1.2207,lineGap:.2207};a.CalibriRegularMetrics=O},(x,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.HelveticaRegularMetrics=a.HelveticaRegularFactors=a.HelveticaItalicMetrics=a.HelveticaItalicFactors=a.HelveticaBoldMetrics=a.HelveticaBoldItalicMetrics=a.HelveticaBoldItalicFactors=a.HelveticaBoldFactors=void 0;const g=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.03374,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00042,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00034,.99977,1,.99997,1.00026,1.00078,1.00036,.99973,1.00013,1.0006,.99977,.99977,.99988,.85148,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,1.00069,1.00022,.99977,1.00001,.99984,1.00026,1.00001,1.00024,1.00001,.9999,1,1.0006,1.00001,1.00041,.99962,1.00026,1.0006,.99995,1.00041,.99942,.99973,.99927,1.00082,.99902,1.00026,1.00087,1.0006,1.00069,.99973,.99867,.99973,.9993,1.00026,1.00049,1.00056,1,.99988,.99935,.99995,.99954,1.00055,.99945,1.00032,1.0006,.99995,1.00026,.99995,1.00032,1.00001,1.00008,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99561,.99989,1.00035,.99977,1.00035,.99977,1.00019,.99944,1.00001,1.00021,.99926,1.00035,1.00035,.99942,1.00048,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.99989,1.00057,1.00001,.99936,1.00052,1.00012,.99996,1.00043,1,1.00035,.9994,.99976,1.00035,.99973,1.00052,1.00041,1.00119,1.00037,.99973,1.00002,.99986,1.00041,1.00041,.99902,.9996,1.00034,.99999,1.00026,.99999,1.00026,.99973,1.00052,.99973,1,.99973,1.00041,1.00075,.9994,1.0003,.99999,1,1.00041,.99955,1,.99915,.99973,.99973,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,1.00041,.99973,.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,1.00047,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];a.HelveticaBoldFactors=g;const n={lineHeight:1.2,lineGap:.2};a.HelveticaBoldMetrics=n;const c=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.0044,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99971,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99977,1,1,1.00026,.99969,.99972,.99981,.9998,1.0006,.99977,.99977,1.00022,.91155,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,.99966,1.00022,1.00032,1.00001,.99944,1.00026,1.00001,.99968,1.00001,1.00047,1,1.0006,1.00001,.99981,1.00101,1.00026,1.0006,.99948,.99981,1.00064,.99973,.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,.99973,1.01322,.99973,1.00065,1.00026,1.00012,.99923,1,1.00064,1.00076,.99948,1.00055,1.00063,1.00007,.99943,1.0006,.99948,1.00026,.99948,.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99967,.99964,.99967,.99977,.99999,.99977,1.00038,.99977,1.00001,.99973,1.00066,.99967,.99967,1.00041,.99998,.99999,.99977,1.00022,.99967,1.00001,.99977,1.00026,.99964,1.00031,1.00001,.99999,.99999,1,1.00023,1,1,.99999,1.00035,1.00001,.99999,.99973,.99977,.99999,1.00058,.99973,.99973,.99955,.9995,1.00026,1.00026,1.00032,.99989,1.00034,.99999,1.00026,1.00026,1.00026,.99973,.45998,.99973,1.00026,.99973,1.00001,.99999,.99982,.99994,.99996,1,1.00042,1.00044,1.00029,1.00023,.99973,.99973,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.98685,.99973,1.00026,1,1,.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1,.99973,.99971,.99978,1,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];a.HelveticaBoldItalicFactors=c;const R={lineHeight:1.35,lineGap:.2};a.HelveticaBoldItalicMetrics=R;const v=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.0288,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,.99946,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.06311,.99973,1.00024,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,1.00041,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.89547,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00001,1,1.00054,.99977,1.00084,1.00007,.99973,1.00013,.99924,1.00001,1.00001,.99945,.91221,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00001,.99999,.99977,.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,.99945,.99897,.99968,.99924,1.00036,.99945,.99949,1,1.0006,.99897,.99918,.99968,.99911,.99924,1,.99962,1.01487,1,1.0005,.99973,1.00012,1.00043,1,.99995,.99994,1.00036,.99947,1.00019,1.00063,1.00025,.99924,1.00036,.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99954,.99975,1.00051,1.00001,1.00019,1.00001,1.0001,.99986,1.00001,1.00001,1.00038,.99954,.99954,.9994,1.00066,.99999,.99977,1.00022,1.00054,1.00001,.99977,1.00026,.99975,1.0001,1.00001,.99993,.9995,.99955,1.00016,.99978,.99974,1.00019,1.00022,.99955,1.00053,.99973,1.00089,1.00005,.99967,1.00048,.99973,1.00002,1.00034,.99973,.99973,.99964,1.00006,1.00066,.99947,.99973,.98894,.99973,1,.44898,1,.99946,1,1.00039,1.00082,.99991,.99991,.99985,1.00022,1.00023,1.00061,1.00006,.99966,.99973,.99973,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,.98332,1,.99973,1,1,.99962,.99895,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,1.00423,.99925,.99999,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];a.HelveticaItalicFactors=v;const e={lineHeight:1.35,lineGap:.2};a.HelveticaItalicMetrics=e;const L=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.04596,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,1.00019,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.02572,.99973,1.00005,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,.99999,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.84533,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99928,1,.99977,1.00013,1.00055,.99947,.99945,.99941,.99924,1.00001,1.00001,1.0004,.91621,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00005,.99999,.99977,1.00015,1.00022,.99977,1.00001,.99973,1.00026,1.00001,1.00019,1.00001,.99946,1,1.0006,1.00001,.99978,1.00045,.99973,.99924,1.00023,.99978,.99966,1,1.00065,1.00045,1.00019,.99973,.99973,.99924,1,1,.96499,1,1.00055,.99973,1.00008,1.00027,1,.9997,.99995,1.00023,.99933,1.00019,1.00015,1.00031,.99924,1.00023,.99973,1.00023,1.00031,1.00001,.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.99561,.9996,1.00035,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.99963,.99999,1.00035,1.00035,1.00082,.99962,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.9996,.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,.99971,.99962,1.00035,.99975,.99977,.99973,1.00043,.99953,1.0007,.99915,.99973,1.00008,.99892,1.00073,1.00073,1.00114,.99915,1.00073,.99955,.99973,1.00092,.99973,1,.99998,1,1.0003,1,1.00043,1.00001,.99969,1.0003,1,1.00035,1.00001,.9995,1,1.00092,.99973,.99973,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1.00073,1,.99955,1,1,1.00047,.99968,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,.99925,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];a.HelveticaRegularFactors=L;const O={lineHeight:1.2,lineGap:.2};a.HelveticaRegularMetrics=O},(x,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.LiberationSansRegularWidths=a.LiberationSansRegularMapping=a.LiberationSansItalicWidths=a.LiberationSansItalicMapping=a.LiberationSansBoldWidths=a.LiberationSansBoldMapping=a.LiberationSansBoldItalicWidths=a.LiberationSansBoldItalicMapping=void 0;const g=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,556,618,615,417,635,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333];a.LiberationSansBoldWidths=g;const n=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];a.LiberationSansBoldMapping=n;const c=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,556,619,604,534,618,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333];a.LiberationSansBoldItalicWidths=c;const R=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];a.LiberationSansBoldItalicMapping=R;const v=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,556,562,522,493,553,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];a.LiberationSansItalicWidths=v;const e=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];a.LiberationSansItalicMapping=e;const L=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,556,573,531,365,583,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];a.LiberationSansRegularWidths=L;const O=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];a.LiberationSansRegularMapping=O},(x,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.MyriadProRegularMetrics=a.MyriadProRegularFactors=a.MyriadProItalicMetrics=a.MyriadProItalicFactors=a.MyriadProBoldMetrics=a.MyriadProBoldItalicMetrics=a.MyriadProBoldItalicFactors=a.MyriadProBoldFactors=void 0;const g=[1.36898,1,1,.72706,.80479,.83734,.98894,.99793,.9897,.93884,.86209,.94292,.94292,1.16661,1.02058,.93582,.96694,.93582,1.19137,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.78076,.78076,1.02058,1.02058,1.02058,.72851,.78966,.90838,.83637,.82391,.96376,.80061,.86275,.8768,.95407,1.0258,.73901,.85022,.83655,1.0156,.95546,.92179,.87107,.92179,.82114,.8096,.89713,.94438,.95353,.94083,.91905,.90406,.9446,.94292,1.18777,.94292,1.02058,.89903,.90088,.94938,.97898,.81093,.97571,.94938,1.024,.9577,.95933,.98621,1.0474,.97455,.98981,.9672,.95933,.9446,.97898,.97407,.97646,.78036,1.10208,.95442,.95298,.97579,.9332,.94039,.938,.80687,1.01149,.80687,1.02058,.80479,.99793,.99793,.99793,.99793,1.01149,1.00872,.90088,.91882,1.0213,.8361,1.02058,.62295,.54324,.89022,1.08595,1,1,.90088,1,.97455,.93582,.90088,1,1.05686,.8361,.99642,.99642,.99642,.72851,.90838,.90838,.90838,.90838,.90838,.90838,.868,.82391,.80061,.80061,.80061,.80061,1.0258,1.0258,1.0258,1.0258,.97484,.95546,.92179,.92179,.92179,.92179,.92179,1.02058,.92179,.94438,.94438,.94438,.94438,.90406,.86958,.98225,.94938,.94938,.94938,.94938,.94938,.94938,.9031,.81093,.94938,.94938,.94938,.94938,.98621,.98621,.98621,.98621,.93969,.95933,.9446,.9446,.9446,.9446,.9446,1.08595,.9446,.95442,.95442,.95442,.95442,.94039,.97898,.94039,.90838,.94938,.90838,.94938,.90838,.94938,.82391,.81093,.82391,.81093,.82391,.81093,.82391,.81093,.96376,.84313,.97484,.97571,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.8768,.9577,.8768,.9577,.8768,.9577,1,1,.95407,.95933,.97069,.95933,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,.887,1.01591,.73901,1.0474,1,1,.97455,.83655,.98981,1,1,.83655,.73977,.83655,.73903,.84638,1.033,.95546,.95933,1,1,.95546,.95933,.8271,.95417,.95933,.92179,.9446,.92179,.9446,.92179,.9446,.936,.91964,.82114,.97646,1,1,.82114,.97646,.8096,.78036,.8096,.78036,1,1,.8096,.78036,1,1,.89713,.77452,.89713,1.10208,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94083,.97579,.90406,.94039,.90406,.9446,.938,.9446,.938,.9446,.938,1,.99793,.90838,.94938,.868,.9031,.92179,.9446,1,1,.89713,1.10208,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90989,.9358,.91945,.83181,.75261,.87992,.82976,.96034,.83689,.97268,1.0078,.90838,.83637,.8019,.90157,.80061,.9446,.95407,.92436,1.0258,.85022,.97153,1.0156,.95546,.89192,.92179,.92361,.87107,.96318,.89713,.93704,.95638,.91905,.91709,.92796,1.0258,.93704,.94836,1.0373,.95933,1.0078,.95871,.94836,.96174,.92601,.9498,.98607,.95776,.95933,1.05453,1.0078,.98275,.9314,.95617,.91701,1.05993,.9446,.78367,.9553,1,.86832,1.0128,.95871,.99394,.87548,.96361,.86774,1.0078,.95871,.9446,.95871,.86774,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.94083,.97579,.94083,.97579,.94083,.97579,.90406,.94039,.96694,1,.89903,1,1,1,.93582,.93582,.93582,1,.908,.908,.918,.94219,.94219,.96544,1,1.285,1,1,.81079,.81079,1,1,.74854,1,1,1,1,.99793,1,1,1,.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,.80535,.76169,1.02058,1.0732,1.05486,1,1,1.30692,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.16161,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];a.MyriadProBoldFactors=g;const n={lineHeight:1.2,lineGap:.2};a.MyriadProBoldMetrics=n;const c=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.20006,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];a.MyriadProBoldItalicFactors=c;const R={lineHeight:1.2,lineGap:.2};a.MyriadProBoldItalicMetrics=R;const v=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05233,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];a.MyriadProItalicFactors=v;const e={lineHeight:1.2,lineGap:.2};a.MyriadProItalicMetrics=e;const L=[1.36898,1,1,.76305,.82784,.94935,.89364,.92241,.89073,.90706,.98472,.85283,.85283,1.0664,1.02058,.74505,.9219,.74505,1.23456,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.74505,.74505,1.02058,1.02058,1.02058,.73002,.72601,.91755,.8126,.80314,.92222,.73764,.79726,.83051,.90284,.86023,.74,.8126,.84869,.96518,.91115,.8858,.79761,.8858,.74498,.73914,.81363,.89591,.83659,.89633,.85608,.8111,.90531,1.0222,1.22736,1.0222,1.27014,.89903,.90088,.86667,1.0231,.896,1.01411,.90083,1.05099,1.00512,.99793,1.05326,1.09377,.938,1.06226,1.00119,.99793,.98714,1.0231,1.01231,.98196,.792,1.19137,.99074,.962,1.01915,.926,.942,.856,.85034,.92006,.85034,1.02058,.69067,.92241,.92241,.92241,.92241,.92006,.9332,.90088,.91882,.93484,.75339,1.02058,.56866,.54324,.79519,1.08595,1,1,.90088,1,.95325,.74505,.90088,1,.97198,.75339,.91009,.91009,.91009,.66466,.91755,.91755,.91755,.91755,.91755,.91755,.788,.80314,.73764,.73764,.73764,.73764,.86023,.86023,.86023,.86023,.92915,.91115,.8858,.8858,.8858,.8858,.8858,1.02058,.8858,.89591,.89591,.89591,.89591,.8111,.79611,.89713,.86667,.86667,.86667,.86667,.86667,.86667,.86936,.896,.90083,.90083,.90083,.90083,.84224,.84224,.84224,.84224,.97276,.99793,.98714,.98714,.98714,.98714,.98714,1.08595,.89876,.99074,.99074,.99074,.99074,.942,1.0231,.942,.91755,.86667,.91755,.86667,.91755,.86667,.80314,.896,.80314,.896,.80314,.896,.80314,.896,.92222,.93372,.92915,1.01411,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.83051,1.00512,.83051,1.00512,.83051,1.00512,1,1,.90284,.99793,.90976,.99793,.86023,.84224,.86023,.84224,.86023,.84224,.86023,1.05326,.86023,.84224,.82873,1.07469,.74,1.09377,1,1,.938,.84869,1.06226,1,1,.84869,.83704,.84869,.81441,.85588,1.08927,.91115,.99793,1,1,.91115,.99793,.91887,.90991,.99793,.8858,.98714,.8858,.98714,.8858,.98714,.894,.91434,.74498,.98196,1,1,.74498,.98196,.73914,.792,.73914,.792,1,1,.73914,.792,1,1,.81363,.904,.81363,1.19137,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89633,1.01915,.8111,.942,.8111,.90531,.856,.90531,.856,.90531,.856,1,.92241,.91755,.86667,.788,.86936,.8858,.89876,1,1,.81363,1.19137,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90388,1.03901,.92138,.78105,.7154,.86169,.80513,.94007,.82528,.98612,1.06226,.91755,.8126,.81884,.92819,.73764,.90531,.90284,.8858,.86023,.8126,.91172,.96518,.91115,.83089,.8858,.87791,.79761,.89297,.81363,.88157,.89992,.85608,.81992,.94307,.86023,.88157,.95308,.98699,.99793,1.06226,.95817,.95308,.97358,.928,.98088,.98699,.92761,.99793,.96017,1.06226,.986,.944,.95978,.938,.96705,.98714,.80442,.98972,1,.89762,1.04552,.95817,.99007,.87064,.91879,.88888,1.06226,.95817,.98714,.95817,.88888,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89633,1.01915,.89633,1.01915,.89633,1.01915,.8111,.942,.9219,1,.89903,1,1,1,.93173,.93173,.93173,1,1.06304,1.06304,1.06904,.89903,.89903,.80549,1,1.156,1,1,.76575,.76575,1,1,.72458,1,1,1,1,.92241,1,1,1,.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,.74705,.71119,1.02058,1.024,1.02119,1,1,1.1536,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05638,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];a.MyriadProRegularFactors=L;const O={lineHeight:1.2,lineGap:.2};a.MyriadProRegularMetrics=O},(x,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SegoeuiRegularMetrics=a.SegoeuiRegularFactors=a.SegoeuiItalicMetrics=a.SegoeuiItalicFactors=a.SegoeuiBoldMetrics=a.SegoeuiBoldItalicMetrics=a.SegoeuiBoldItalicFactors=a.SegoeuiBoldFactors=void 0;const g=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];a.SegoeuiBoldFactors=g;const n={lineHeight:1.33008,lineGap:0};a.SegoeuiBoldMetrics=n;const c=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];a.SegoeuiBoldItalicFactors=c;const R={lineHeight:1.33008,lineGap:0};a.SegoeuiBoldItalicMetrics=R;const v=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];a.SegoeuiItalicFactors=v;const e={lineHeight:1.33008,lineGap:0};a.SegoeuiItalicMetrics=e;const L=[1.76738,1,1,.98594,1.02285,1.10454,1.06234,.96927,.92037,1.19985,1.2046,.90616,.90616,1.07152,1.1714,.78032,1.20088,.78032,1.40246,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78032,.78032,1.1714,1.1714,1.1714,.80597,.94084,.96706,.85944,.85734,.97093,.75842,.79936,.88198,.9831,.95782,.71387,.86969,.84636,1.07796,1.03584,.96924,.83968,.96924,.82826,.79649,.85771,.95132,.93119,.98965,.88433,.8287,.93365,1.08612,1.3638,1.08612,1.45786,.74627,.80499,.91484,1.05707,.92383,1.05882,.9403,1.12654,1.05882,1.01756,1.09011,1.09011,.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,.84863,1.21968,1.01756,.95801,1.00068,.91797,.96777,.9043,.90351,.92105,.90351,1.1714,.85337,.96927,.96927,.99912,.96927,.92105,.80597,1.2434,1.20808,1.05937,.90957,1.1714,1.20808,.75155,.94261,1.24644,1.09971,1.09971,.84751,1,.85273,.78032,.61584,1.05425,1.17914,.90957,1.08665,1.11593,1.14169,.73381,.96706,.96706,.96706,.96706,.96706,.96706,.86035,.85734,.75842,.75842,.75842,.75842,.95782,.95782,.95782,.95782,.97093,1.03584,.96924,.96924,.96924,.96924,.96924,1.1714,.96924,.95132,.95132,.95132,.95132,.8287,.83968,.89049,.91484,.91484,.91484,.91484,.91484,.91484,.93575,.92383,.9403,.9403,.9403,.9403,.8717,.8717,.8717,.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,.95923,1.01756,1.01756,1.01756,1.01756,.96777,1.05707,.96777,.96706,.91484,.96706,.91484,.96706,.91484,.85734,.92383,.85734,.92383,.85734,.92383,.85734,.92383,.97093,1.0969,.97093,1.05882,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.88198,1.05882,.88198,1.05882,.88198,1.05882,1,1,.9831,1.01756,.9831,1.01756,.95782,.8717,.95782,.8717,.95782,.8717,.95782,1.09011,.95782,.8717,.84784,1.11551,.71387,1.09011,1,1,.99414,.84636,1.09011,1,1,.84636,1.0536,.84636,.94298,.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,.96924,1.05356,.96924,1.05356,.96924,1.05356,.93066,.98293,.82826,1.04399,1,1,.82826,1.04399,.79649,.84863,.79649,.84863,.79649,.84863,.79649,.84863,1,1,.85771,1.17318,.85771,1.21968,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.98965,1.00068,.8287,.96777,.8287,.93365,.9043,.93365,.9043,.93365,.9043,1.08571,.96927,.96706,.91484,.86035,.93575,.96924,.95923,1,1,.85771,1.21968,1.11437,1.11437,.93109,.91202,.60411,.84164,.55572,1.01173,.97361,.81818,.81818,.96635,.78032,.72727,.92366,.98601,1.03405,.77968,1.09799,1.2,.96706,.85944,.85638,.96491,.75842,.93365,.9831,.96924,.95782,.86969,.94152,1.07796,1.03584,.78437,.96924,.98715,.83968,.83491,.85771,.8287,.94492,.88433,.9287,1.0098,.95782,.8287,1.0625,.98248,1.03424,1.2,1.01071,1.0625,.95246,1.03809,1.04912,.98248,1.00221,1.03424,1.05443,1.2,1.04785,.99609,1.00169,1.05176,.99346,1.05356,.9087,1.03004,.95542,.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,.75842,1,1,1,1,1,1,1,1,1,1,1,1,1.03719,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,.98965,1.00068,.98965,1.00068,.98965,1.00068,.8287,.96777,1,1.20088,.89903,1,1,.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,.67428,.67428,1.16039,.73291,1.20996,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87796,.96927,1.01518,.96927,1,1,1,.77295,1,1,1.10539,1.10539,1.11358,1.06967,.86279,.94434,.86279,.94434,.86182,1,1,1.083,1,.91578,.86507,1.1714,1.18416,1.14589,.69825,.97622,1.9697,1.24822,1.24822,1.17238,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18083,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10938,1.10938,1,1,1,1.05425,1.09971,1.09971,1.09971,1,1,1,1,1,1,1,1,1,1,1];a.SegoeuiRegularFactors=L;const O={lineHeight:1.33008,lineGap:0};a.SegoeuiRegularMetrics=O},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.PostScriptEvaluator=a.PostScriptCompiler=a.PDFFunctionFactory=void 0,a.isPDFFunction=P;var n=g(130),c=g(2),R=g(183),v=g(132),e=g(184);class L{constructor(q){let{xref:$,isEvalSupported:fe=!0}=q;this.xref=$,this.isEvalSupported=fe!==!1}create(q){const $=this.getCached(q);if($)return $;const fe=B.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:q instanceof n.Ref?this.xref.fetch(q):q});return this._cache(q,fe),fe}createFromArray(q){const $=this.getCached(q);if($)return $;const fe=B.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:q instanceof n.Ref?this.xref.fetch(q):q});return this._cache(q,fe),fe}getCached(q){let $;if(q instanceof n.Ref?$=q:q instanceof n.Dict?$=q.objId:q instanceof v.BaseStream&&($=q.dict&&q.dict.objId),$){const fe=this._localFunctionCache.getByRef($);if(fe)return fe}return null}_cache(q,$){if(!$)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.');let fe;q instanceof n.Ref?fe=q:q instanceof n.Dict?fe=q.objId:q instanceof v.BaseStream&&(fe=q.dict&&q.dict.objId),fe&&this._localFunctionCache.set(null,fe,$)}get _localFunctionCache(){return(0,c.shadow)(this,"_localFunctionCache",new e.LocalFunctionCache)}}a.PDFFunctionFactory=L;function O(X){if(!Array.isArray(X))return null;const q=X.length;for(let $=0;$>ce)*Z,de&=(1<qe?Fe=qe:Fe0&&(pe=ce[oe-1]);let xe=ie[1];oe>1,ae=Te.length>>1,he=new _(de),we=Object.create(null);let ye=2048*4;const se=new Float32Array(ae);return function(Ce,oe,pe,xe){let Ne,ke,De="";const Fe=se;for(Ne=0;NeEe&&(ke=Ee)),qe[Ne]=ke}ye>0&&(ye--,we[De]=qe),pe.set(qe,xe)}}}function P(X){let q;if(typeof X!="object")return!1;if(X instanceof n.Dict)q=X;else if(X instanceof v.BaseStream)q=X.dict;else return!1;return q.has("FunctionType")}class S{static get MAX_STACK_SIZE(){return(0,c.shadow)(this,"MAX_STACK_SIZE",100)}constructor(q){this.stack=q?Array.prototype.slice.call(q,0):[]}push(q){if(this.stack.length>=S.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(q)}pop(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}copy(q){if(this.stack.length+q>=S.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");const $=this.stack;for(let fe=$.length-q,Q=q-1;Q>=0;Q--,fe++)$.push($[fe])}index(q){this.push(this.stack[this.stack.length-q-1])}roll(q,$){const fe=this.stack,Q=fe.length-q,ie=fe.length-1,Te=Q+($-Math.floor($/q)*q);for(let me=Q,K=ie;me0?$.push(me<>K);break;case"ceiling":me=$.pop(),$.push(Math.ceil(me));break;case"copy":me=$.pop(),$.copy(me);break;case"cos":me=$.pop(),$.push(Math.cos(me));break;case"cvi":me=$.pop()|0,$.push(me);break;case"cvr":break;case"div":K=$.pop(),me=$.pop(),$.push(me/K);break;case"dup":$.copy(1);break;case"eq":K=$.pop(),me=$.pop(),$.push(me===K);break;case"exch":$.roll(2,1);break;case"exp":K=$.pop(),me=$.pop(),$.push(me**K);break;case"false":$.push(!1);break;case"floor":me=$.pop(),$.push(Math.floor(me));break;case"ge":K=$.pop(),me=$.pop(),$.push(me>=K);break;case"gt":K=$.pop(),me=$.pop(),$.push(me>K);break;case"idiv":K=$.pop(),me=$.pop(),$.push(me/K|0);break;case"index":me=$.pop(),$.index(me);break;case"le":K=$.pop(),me=$.pop(),$.push(me<=K);break;case"ln":me=$.pop(),$.push(Math.log(me));break;case"log":me=$.pop(),$.push(Math.log(me)/Math.LN10);break;case"lt":K=$.pop(),me=$.pop(),$.push(me=q?new D(q):X.max<=q?X:new F(X,q)}class z{compile(q,$,fe){const Q=[],ie=[],Te=$.length>>1,me=fe.length>>1;let K=0,ce,de,Z,ae,he,we,_e,ye;for(let Ie=0;Ieoe.min&&(ke.unshift("Math.max(",xe,", "),ke.push(")")),Ne{Object.defineProperty(a,"__esModule",{value:!0}),a.PostScriptParser=a.PostScriptLexer=void 0;var n=g(2),c=g(130),R=g(131);class v{constructor(P){this.lexer=P,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(P){return this.token.type===P?(this.nextToken(),!0):!1}expect(P){if(this.accept(P))return!0;throw new n.FormatError(`Unexpected symbol: found ${this.token.type} expected ${P}.`)}parse(){return this.nextToken(),this.expect(e.LBRACE),this.parseBlock(),this.expect(e.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(e.NUMBER))this.operators.push(this.prev.value);else if(this.accept(e.OPERATOR))this.operators.push(this.prev.value);else if(this.accept(e.LBRACE))this.parseCondition();else return}parseCondition(){const P=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(e.RBRACE),this.accept(e.IF))this.operators[P]=this.operators.length,this.operators[P+1]="jz";else if(this.accept(e.LBRACE)){const S=this.operators.length;this.operators.push(null,null);const _=this.operators.length;this.parseBlock(),this.expect(e.RBRACE),this.expect(e.IFELSE),this.operators[S]=this.operators.length,this.operators[S+1]="j",this.operators[P]=_,this.operators[P+1]="jz"}else throw new n.FormatError("PS Function: error parsing conditional.")}}a.PostScriptParser=v;const e={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};class L{static get opCache(){return(0,n.shadow)(this,"opCache",Object.create(null))}constructor(P,S){this.type=P,this.value=S}static getOperator(P){const S=L.opCache[P];return S||(L.opCache[P]=new L(e.OPERATOR,P))}static get LBRACE(){return(0,n.shadow)(this,"LBRACE",new L(e.LBRACE,"{"))}static get RBRACE(){return(0,n.shadow)(this,"RBRACE",new L(e.RBRACE,"}"))}static get IF(){return(0,n.shadow)(this,"IF",new L(e.IF,"IF"))}static get IFELSE(){return(0,n.shadow)(this,"IFELSE",new L(e.IFELSE,"IFELSE"))}}class O{constructor(P){this.stream=P,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let P=!1,S=this.currentChar;for(;;){if(S<0)return c.EOF;if(P)(S===10||S===13)&&(P=!1);else if(S===37)P=!0;else if(!(0,R.isWhiteSpace)(S))break;S=this.nextChar()}switch(S|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new L(e.NUMBER,this.getNumber());case 123:return this.nextChar(),L.LBRACE;case 125:return this.nextChar(),L.RBRACE}const _=this.strBuf;for(_.length=0,_[0]=String.fromCharCode(S);(S=this.nextChar())>=0&&(S>=65&&S<=90||S>=97&&S<=122);)_.push(String.fromCharCode(S));const l=_.join("");switch(l.toLowerCase()){case"if":return L.IF;case"ifelse":return L.IFELSE;default:return L.getOperator(l)}}getNumber(){let P=this.currentChar;const S=this.strBuf;for(S.length=0,S[0]=String.fromCharCode(P);(P=this.nextChar())>=0&&(P>=48&&P<=57||P===45||P===46);)S.push(String.fromCharCode(P));const _=parseFloat(S.join(""));if(isNaN(_))throw new n.FormatError(`Invalid floating point number: ${_}`);return _}}a.PostScriptLexer=O},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.LocalTilingPatternCache=a.LocalImageCache=a.LocalGStateCache=a.LocalFunctionCache=a.LocalColorSpaceCache=a.GlobalImageCache=void 0;var n=g(2),c=g(130);class R{constructor(_){this.constructor===R&&(0,n.unreachable)("Cannot initialize BaseLocalCache."),this._onlyRefs=(_&&_.onlyRefs)===!0,this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new c.RefSetCache}getByName(_){this._onlyRefs&&(0,n.unreachable)("Should not call `getByName` method.");const l=this._nameRefMap.get(_);return l?this.getByRef(l):this._imageMap.get(_)||null}getByRef(_){return this._imageCache.get(_)||null}set(_,l,y){(0,n.unreachable)("Abstract method `set` called.")}}class v extends R{set(_){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,y=arguments.length>2?arguments[2]:void 0;if(typeof _!="string")throw new Error('LocalImageCache.set - expected "name" argument.');if(l){if(this._imageCache.has(l))return;this._nameRefMap.set(_,l),this._imageCache.put(l,y);return}this._imageMap.has(_)||this._imageMap.set(_,y)}}a.LocalImageCache=v;class e extends R{set(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,y=arguments.length>2?arguments[2]:void 0;if(typeof _!="string"&&!l)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(l){if(this._imageCache.has(l))return;_!==null&&this._nameRefMap.set(_,l),this._imageCache.put(l,y);return}this._imageMap.has(_)||this._imageMap.set(_,y)}}a.LocalColorSpaceCache=e;class L extends R{constructor(_){super({onlyRefs:!0})}set(){let _=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0;if(!_)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(_)||this._imageCache.put(_,l)}}a.LocalFunctionCache=L;class O extends R{set(_){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,y=arguments.length>2?arguments[2]:void 0;if(typeof _!="string")throw new Error('LocalGStateCache.set - expected "name" argument.');if(l){if(this._imageCache.has(l))return;this._nameRefMap.set(_,l),this._imageCache.put(l,y);return}this._imageMap.has(_)||this._imageMap.set(_,y)}}a.LocalGStateCache=O;class B extends R{constructor(_){super({onlyRefs:!0})}set(){let _=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0;if(!_)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(_)||this._imageCache.put(_,l)}}a.LocalTilingPatternCache=B;class P{static get NUM_PAGES_THRESHOLD(){return(0,n.shadow)(this,"NUM_PAGES_THRESHOLD",2)}static get MIN_IMAGES_TO_CACHE(){return(0,n.shadow)(this,"MIN_IMAGES_TO_CACHE",10)}static get MAX_BYTE_SIZE(){return(0,n.shadow)(this,"MAX_BYTE_SIZE",4e7)}constructor(){this._refCache=new c.RefSetCache,this._imageCache=new c.RefSetCache}get _byteSize(){let _=0;for(const l of this._imageCache)_+=l.byteSize;return _}get _cacheLimitReached(){return!(this._imageCache.size0&&arguments[0]!==void 0?arguments[0]:!1)||this._refCache.clear(),this._imageCache.clear()}}a.GlobalImageCache=P},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.bidi=l;var n=g(2);const c=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],R=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function v(y){return(y&1)!==0}function e(y){return(y&1)===0}function L(y,D,M){let F,N;for(F=D,N=y.length;F2&&arguments[2]!==void 0?arguments[2]:!1,F="ltr";return M?F="ttb":D||(F="rtl"),{str:y,dir:F}}const S=[],_=[];function l(y){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,F=!0;const N=y.length;if(N===0||M)return P(y,F,M);S.length=N,_.length=N;let G=0,W,J;for(W=0;W4?(F=!0,D=0):(F=!1,D=1));const Y=[];for(W=0;W=0&&_[ie]==="ET";--ie)_[ie]="EN";for(let ie=W+1;ie0&&(Te=_[W-1]);let me=z;ie+1Q&&v(Q)&&(fe=Q);for(Q=$;Q>=fe;--Q){let ie=-1;for(W=0,J=Y.length;W=0&&(B(S,ie,W),ie=-1):ie<0&&(ie=W);ie>=0&&B(S,ie,Y.length)}for(W=0,J=S.length;W")&&(S[W]="")}return P(S.join(""),F)}},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.MurmurHash3_64=void 0;var n=g(2);const c=3285377520,R=4294901760,v=65535;class e{constructor(O){this.h1=O?O&4294967295:c,this.h2=O?O&4294967295:c}update(O){let B,P;if(typeof O=="string"){B=new Uint8Array(O.length*2),P=0;for(let Y=0,V=O.length;Y>>8,B[P++]=H&255)}}else if((0,n.isArrayBuffer)(O))B=O.slice(),P=B.byteLength;else throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");const S=P>>2,_=P-S*4,l=new Uint32Array(B.buffer,0,S);let y=0,D=0,M=this.h1,F=this.h2;const N=3432918353,G=461845907,W=N&v,J=G&v;for(let Y=0;Y>>17,y=y*G&R|y*J&v,M^=y,M=M<<13|M>>>19,M=M*5+3864292196):(D=l[Y],D=D*N&R|D*W&v,D=D<<15|D>>>17,D=D*G&R|D*J&v,F^=D,F=F<<13|F>>>19,F=F*5+3864292196);switch(y=0,_){case 3:y^=B[S*4+2]<<16;case 2:y^=B[S*4+1]<<8;case 1:y^=B[S*4],y=y*N&R|y*W&v,y=y<<15|y>>>17,y=y*G&R|y*J&v,S&1?M^=y:F^=y}this.h1=M,this.h2=F}hexdigest(){let O=this.h1,B=this.h2;O^=B>>>1,O=O*3981806797&R|O*36045&v,B=B*4283543511&R|((B<<16|O>>>16)*2950163797&R)>>>16,O^=B>>>1,O=O*444984403&R|O*60499&v,B=B*3301882366&R|((B<<16|O>>>16)*3120437893&R)>>>16,O^=B>>>1;const P=(O>>>0).toString(16),S=(B>>>0).toString(16);return P.padStart(8,"0")+S.padStart(8,"0")}}a.MurmurHash3_64=e},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.OperatorList=void 0;var n=g(2);function c(O,B,P,S,_){let l=O;for(let y=0,D=B.length-1;y1e3&&(Y=Math.max(Y,z),X+=H+2,z=0,H=0),V.push({transform:Te,x:z,y:X,w:me.width,h:me.height}),z+=me.width+2,H=Math.max(H,me.height)}const q=Math.max(Y,z)+1,$=X+H+1,fe=new Uint8Array(q*$*4),Q=q<<2;for(let ie=0;ie=0;)Te[ce-4]=Te[ce],Te[ce-3]=Te[ce+1],Te[ce-2]=Te[ce+2],Te[ce-1]=Te[ce+3],Te[ce+me]=Te[ce+me-4],Te[ce+me+1]=Te[ce+me-3],Te[ce+me+2]=Te[ce+me-2],Te[ce+me+3]=Te[ce+me-1],ce-=Q}return D.splice(N,J*4,n.OPS.paintInlineImageXObjectGroup),M.splice(N,J*4,[{width:q,height:$,kind:n.ImageKind.RGBA_32BPP,data:fe},V]),N+1}),c(R,[n.OPS.save,n.OPS.transform,n.OPS.paintImageMaskXObject,n.OPS.restore],null,function(B,P){const S=B.fnArray,_=B.iCurr-3,l=(P-_)%4;switch(l){case 0:return S[P]===n.OPS.save;case 1:return S[P]===n.OPS.transform;case 2:return S[P]===n.OPS.paintImageMaskXObject;case 3:return S[P]===n.OPS.restore}throw new Error(`iterateImageMaskGroup - invalid pos: ${l}`)},function(B,P){const y=B.fnArray,D=B.argsArray,M=B.iCurr,F=M-3,N=M-2,G=M-1;let W=Math.floor((P-F)/4);if(W<10)return P-(P-F)%4;let J=!1,Y,V;const H=D[G][0],z=D[N][0],X=D[N][1],q=D[N][2],$=D[N][3];if(X===q){J=!0,Y=N+4;let fe=G+4;for(let Q=1;Q=4&&_[D-4]===_[M]&&_[D-3]===_[F]&&_[D-2]===_[N]&&_[D-1]===_[G]&&l[D-4][0]===W&&l[D-4][1]===J&&(Y++,V-=5);let H=V+4;for(let z=1;z=S)break}if(_=(_||R)[B[P]],!_||Array.isArray(_)){P++;continue}if(y.iCurr=P,P++,_.checkFn&&!(0,_.checkFn)(y)){_=null;continue}l=_,_=null}this.state=_,this.match=l,this.lastProcessed=P}flush(){for(;this.match;){const B=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,B),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}}class L{static get CHUNK_SIZE(){return(0,n.shadow)(this,"CHUNK_SIZE",1e3)}static get CHUNK_SIZE_ABOUT(){return(0,n.shadow)(this,"CHUNK_SIZE_ABOUT",this.CHUNK_SIZE-5)}constructor(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,P=arguments.length>1?arguments[1]:void 0;this._streamSink=P,this.fnArray=[],this.argsArray=[],P&&!(B&n.RenderingIntentFlag.OPLIST)?this.optimizer=new e(this):this.optimizer=new v(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=P?null:Promise.resolve()}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(B,P){this.optimizer.push(B,P),this.weight++,this._streamSink&&(this.weight>=L.CHUNK_SIZE?this.flush():this.weight>=L.CHUNK_SIZE_ABOUT&&(B===n.OPS.restore||B===n.OPS.endText)&&this.flush())}addImageOps(B,P,S){S!==void 0&&this.addOp(n.OPS.beginMarkedContentProps,["OC",S]),this.addOp(B,P),S!==void 0&&this.addOp(n.OPS.endMarkedContent,[])}addDependency(B){this.dependencies.has(B)||(this.dependencies.add(B),this.addOp(n.OPS.dependency,[B]))}addDependencies(B){for(const P of B)this.addDependency(P)}addOpList(B){if(!(B instanceof L)){(0,n.warn)('addOpList - ignoring invalid "opList" parameter.');return}for(const P of B.dependencies)this.dependencies.add(P);for(let P=0,S=B.length;P0&&arguments[0]!==void 0?arguments[0]:!1,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.optimizer.flush();const S=this.length;this._totalLength+=S,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:B,separateAnnots:P,length:S},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}}a.OperatorList=L},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.PDFImage=void 0;var n=g(2),c=g(189),R=g(132),v=g(139),e=g(144),L=g(152),O=g(155),B=g(130);function P(l,y,D,M){return l=y+l*D,l<0?l=0:l>M&&(l=M),l}function S(l,y,D,M,F,N){const G=F*N;let W;y<=8?W=new Uint8Array(G):y<=16?W=new Uint16Array(G):W=new Uint32Array(G);const J=D/F,Y=M/N;let V,H,z,X=0,q;const $=new Uint16Array(F),fe=D;for(V=0;V0&&Number.isInteger(F.height)&&F.height>0&&(F.width!==q||F.height!==$)&&((0,n.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),q=F.width,$=F.height),q<1||$<1)throw new n.FormatError(`Invalid image width: ${q} or height: ${$}`);this.width=q,this.height=$,this.interpolate=H.get("I","Interpolate"),this.imageMask=H.get("IM","ImageMask")||!1,this.matte=H.get("Matte")||!1;let fe=F.bitsPerComponent;if(!fe&&(fe=H.get("BPC","BitsPerComponent"),!fe))if(this.imageMask)fe=1;else throw new n.FormatError(`Bits per component missing in image: ${this.imageMask}`);if(this.bpc=fe,!this.imageMask){let Q=H.getRaw("CS")||H.getRaw("ColorSpace");if(!Q)switch((0,n.info)("JPX images (which do not require color spaces)"),F.numComps){case 1:Q=B.Name.get("DeviceGray");break;case 3:Q=B.Name.get("DeviceRGB");break;case 4:Q=B.Name.get("DeviceCMYK");break;default:throw new Error(`JPX images with ${F.numComps} color components not supported.`)}this.colorSpace=v.ColorSpace.parse({cs:Q,xref:D,resources:N?M:null,pdfFunctionFactory:Y,localColorSpaceCache:V}),this.numComps=this.colorSpace.numComps}if(this.decode=H.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,fe)||J&&!v.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;const Q=(1<>3)*F,Y=D.byteLength,V=J===Y;let H,z;if(N&&(!G||V)?H=D:G?(H=new Uint8Array(J),H.set(D),H.fill(255,Y)):H=new Uint8Array(D),G)for(z=0;z>7&1,J[H+1]=X>>6&1,J[H+2]=X>>5&1,J[H+3]=X>>4&1,J[H+4]=X>>3&1,J[H+5]=X>>2&1,J[H+6]=X>>1&1,J[H+7]=X&1,H+=8;if(H>=1}}else{let q=0;for(X=0,H=0,z=G;H>$;fe<0?fe=0:fe>V&&(fe=V),J[H]=fe,X&=(1<<$)-1,q=$}}return J}fillOpacity(y,D,M,F,N){const G=this.smask,W=this.mask;let J,Y,V,H,z,X;if(G)Y=G.width,V=G.height,J=new Uint8ClampedArray(Y*V),G.fillGrayBuffer(J),(Y!==D||V!==M)&&(J=S(J,G.bpc,Y,V,D,M));else if(W)if(W instanceof _){for(Y=W.width,V=W.height,J=new Uint8ClampedArray(Y*V),W.numComps=1,W.fillGrayBuffer(J),H=0,z=Y*V;HW[ie+1]){$=255;break}}J[H]=$}}else throw new n.FormatError("Unknown mask format.");if(J)for(H=0,X=3,z=D*F;H0&&arguments[0]!==void 0?arguments[0]:!1;const D=this.drawWidth,M=this.drawHeight,F={width:D,height:M,interpolate:this.interpolate,kind:0,data:null},N=this.numComps,G=this.width,W=this.height,J=this.bpc,Y=G*N*J+7>>3;if(!y){let $;if(this.colorSpace.name==="DeviceGray"&&J===1?$=n.ImageKind.GRAYSCALE_1BPP:this.colorSpace.name==="DeviceRGB"&&J===8&&!this.needsDecode&&($=n.ImageKind.RGB_24BPP),$&&!this.smask&&!this.mask&&D===G&&M===W){if(F.kind=$,F.data=this.getImageBytes(W*Y,{}),this.needsDecode){(0,n.assert)($===n.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");const fe=F.data;for(let Q=0,ie=fe.length;Q>3,W=this.getImageBytes(F*G,{internal:!0}),J=this.getComponents(W);let Y,V;if(N===1){if(V=M*F,this.needsDecode)for(Y=0;Y{Object.defineProperty(a,"__esModule",{value:!0}),a.applyMaskImageData=c;var n=g(2);function c(R){let{src:v,srcPos:e=0,dest:L,destPos:O=0,width:B,height:P,inverseDecode:S=!1}=R;const _=n.FeatureTest.isLittleEndian?4278190080:255,[l,y]=S?[0,_]:[_,0],D=B>>3,M=B&7,F=v.length;L=new Uint32Array(L.buffer);for(let N=0;N{Object.defineProperty(a,"__esModule",{value:!0}),a.incrementalUpdate=N,a.writeDict=B,a.writeObject=O;var n=g(2),c=g(130),R=g(131),v=g(191),e=g(132),L=g(192);function O(G,W,J,Y){J.push(`${G.num} ${G.gen} obj `),W instanceof c.Dict?B(W,J,Y):W instanceof e.BaseStream&&P(W,J,Y),J.push(` endobj `)}function B(G,W,J){W.push("<<");for(const Y of G.getKeys())W.push(` /${(0,R.escapePDFName)(Y)} `),_(G.getRaw(Y),W,J);W.push(">>")}function P(G,W,J){B(G.dict,W,J),W.push(` stream `);let Y=G.getString();J!==null&&(Y=J.encryptString(Y)),W.push(Y,` endstream `)}function S(G,W,J){W.push("[");let Y=!0;for(const V of G)Y?Y=!1:W.push(" "),_(V,W,J);W.push("]")}function _(G,W,J){G instanceof c.Name?W.push(`/${(0,R.escapePDFName)(G.name)}`):G instanceof c.Ref?W.push(`${G.num} ${G.gen} R`):Array.isArray(G)?S(G,W,J):typeof G=="string"?(J!==null&&(G=J.encryptString(G)),W.push(`(${(0,n.escapeString)(G)})`)):typeof G=="number"?W.push((0,R.numberToString)(G)):typeof G=="boolean"?W.push(G.toString()):G instanceof c.Dict?B(G,W,J):G instanceof e.BaseStream?P(G,W,J):G===null?W.push("null"):(0,n.warn)(`Unhandled value in writer: ${typeof G}, please file a bug.`)}function l(G,W,J,Y){for(let V=W+J-1;V>J-1;V--)Y[V]=G&255,G>>=8;return J+W}function y(G,W,J){for(let Y=0,V=G.length;Yq+$.length,0);for(const q of Object.values(W.info))V.push(q),H+=q.length;const z=new Uint8Array(H);let X=0;for(const q of V)y(q,X,z),X+=q.length;return(0,n.bytesToString)((0,L.calculateMD5)(z))}function M(G,W){const J=new v.SimpleXMLParser({hasAttributes:!0}).parseFromString(G);for(const{xfa:V}of W){if(!V)continue;const{path:H,value:z}=V;if(!H)continue;const X=J.documentElement.searchNode((0,R.parseXFAPath)(H),0);X?Array.isArray(z)?X.childNodes=z.map(q=>new v.SimpleDOMNode("value",q)):X.childNodes=[new v.SimpleDOMNode("#text",z)]:(0,n.warn)(`Node not found for path: ${H}`)}const Y=[];return J.documentElement.dump(Y),Y.join("")}function F(G){let{xfaData:W,xfaDatasetsRef:J,hasXfaDatasetsEntry:Y,acroFormRef:V,acroForm:H,newRefs:z,xref:X,xrefInfo:q}=G;if(X===null)return;if(!Y){if(!V){(0,n.warn)("XFA - Cannot save it");return}const Q=H.get("XFA"),ie=Q.slice();ie.splice(2,0,"datasets"),ie.splice(3,0,J),H.set("XFA",ie);const Te=X.encrypt;let me=null;Te&&(me=Te.createCipherTransform(V.num,V.gen));const K=[`${V.num} ${V.gen} obj `];B(H,K,me),K.push(` `),H.set("XFA",Q),z.push({ref:V,data:K.join("")})}if(W===null){const Q=X.fetchIfRef(J);W=M(Q.getString(),z)}const $=X.encrypt;$&&(W=$.createCipherTransform(J.num,J.gen).encryptString(W));const fe=`${J.num} ${J.gen} obj << /Type /EmbeddedFile /Length ${W.length}>> stream `+W+` endstream endobj `;z.push({ref:J,data:fe})}function N(G){let{originalData:W,xrefInfo:J,newRefs:Y,xref:V=null,hasXfa:H=!1,xfaDatasetsRef:z=null,hasXfaDatasetsEntry:X=!1,acroFormRef:q=null,acroForm:$=null,xfaData:fe=null}=G;H&&F({xfaData:fe,xfaDatasetsRef:z,hasXfaDatasetsEntry:X,acroFormRef:q,acroForm:$,newRefs:Y,xref:V,xrefInfo:J});const Q=new c.Dict(null),ie=J.newRef;let Te,me;const K=W.at(-1);K===10||K===13?(Te=[],me=W.length):(Te=[` `],me=W.length+1),Q.set("Size",ie.num+1),Q.set("Prev",J.startXRef),Q.set("Type",c.Name.get("XRef")),J.rootRef!==null&&Q.set("Root",J.rootRef),J.infoRef!==null&&Q.set("Info",J.infoRef),J.encryptRef!==null&&Q.set("Encrypt",J.encryptRef),Y.push({ref:ie,data:""}),Y=Y.sort((oe,pe)=>oe.ref.num-pe.ref.num);const ce=[[0,1,65535]],de=[0,1];let Z=0;for(const{ref:oe,data:pe}of Y)Z=Math.max(Z,me),ce.push([1,me,Math.min(oe.gen,65535)]),me+=pe.length,de.push(oe.num,1),Te.push(pe);if(Q.set("Index",de),Array.isArray(J.fileIds)&&J.fileIds.length>0){const oe=D(me,J);Q.set("ID",[J.fileIds[0],oe])}const he=[1,Math.ceil(Math.log2(Z)/8),2],_e=(he[0]+he[1]+he[2])*ce.length;Q.set("W",he),Q.set("Length",_e),Te.push(`${ie.num} ${ie.gen} obj `),B(Q,Te,null),Te.push(` stream `);const ye=Te.reduce((oe,pe)=>oe+pe.length,0),se=` endstream endobj startxref ${me} %%EOF `,Ie=new Uint8Array(W.length+ye+_e+se.length);Ie.set(W);let Ce=W.length;for(const oe of Te)y(oe,Ce,Ie),Ce+=oe.length;for(const[oe,pe,xe]of ce)Ce=l(oe,he[0],Ce,Ie),Ce=l(pe,he[1],Ce,Ie),Ce=l(xe,he[2],Ce,Ie);return y(se,Ce,Ie),Ie}},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.XMLParserErrorCode=a.XMLParserBase=a.SimpleXMLParser=a.SimpleDOMNode=void 0;var n=g(131);const c={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};a.XMLParserErrorCode=c;function R(B,P){const S=B[P];return S===" "||S===` `||S==="\r"||S===" "}function v(B){for(let P=0,S=B.length;P{if(_.substring(0,2)==="#x")return String.fromCodePoint(parseInt(_.substring(2),16));if(_.substring(0,1)==="#")return String.fromCodePoint(parseInt(_.substring(1),10));switch(_){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(_)})}_parseContent(P,S){const _=[];let l=S;function y(){for(;l"&&P[l]!=="/";)++l;const D=P.substring(S,l);for(y();l"&&P[l]!=="/"&&P[l]!=="?";){y();let M="",F="";for(;l"&&P[_]!=="?"&&P[_]!=="/";)++_;const y=P.substring(S,_);l();const D=_;for(;_");)++_;const M=P.substring(D,_);return{name:y,value:M,parsed:_-S}}parseXml(P){let S=0;for(;S",l),D<0){this.onError(c.UnterminatedElement);return}this.onEndElement(P.substring(l,D)),l=D+1;break;case"?":++l;const M=this._parseProcessingInstruction(P,l);if(P.substring(l+M.parsed,l+M.parsed+2)!=="?>"){this.onError(c.UnterminatedXmlDeclaration);return}this.onPi(M.name,M.value),l+=M.parsed+2;break;case"!":if(P.substring(l+1,l+3)==="--"){if(D=P.indexOf("-->",l+3),D<0){this.onError(c.UnterminatedComment);return}this.onComment(P.substring(l+3,D)),l=D+3}else if(P.substring(l+1,l+8)==="[CDATA["){if(D=P.indexOf("]]>",l+8),D<0){this.onError(c.UnterminatedCdat);return}this.onCdata(P.substring(l+8,D)),l=D+3}else if(P.substring(l+1,l+8)==="DOCTYPE"){const G=P.indexOf("[",l+8);let W=!1;if(D=P.indexOf(">",l+8),D<0){this.onError(c.UnterminatedDoctypeDeclaration);return}if(G>0&&D>G){if(D=P.indexOf("]>",l+8),D<0){this.onError(c.UnterminatedDoctypeDeclaration);return}W=!0}const J=P.substring(l+8,D+(W?1:0));this.onDoctype(J),l=D+(W?2:1)}else{this.onError(c.MalformedElement);return}break;default:const F=this._parseContent(P,l);if(F===null){this.onError(c.MalformedElement);return}let N=!1;if(P.substring(l+F.parsed,l+F.parsed+2)==="/>")N=!0;else if(P.substring(l+F.parsed,l+F.parsed+1)!==">"){this.onError(c.UnterminatedElement);return}this.onBeginElement(F.name,F.attributes,N),l+=F.parsed+(N?2:1);break}}else{for(;l0}searchNode(P,S){if(S>=P.length)return this;const _=P[S],l=[];let y=this;for(;;){if(_.name===y.nodeName)if(_.pos===0){const D=y.searchNode(P,S+1);if(D!==null)return D}else{if(l.length===0)return null;{const[D]=l.pop();let M=0;for(const F of D.childNodes)if(_.name===F.nodeName){if(M===_.pos)return F.searchNode(P,S+1);M++}return y.searchNode(P,S+1)}}if(y.childNodes&&y.childNodes.length!==0)l.push([y,0]),y=y.childNodes[0];else{if(l.length===0)return null;for(;l.length!==0;){const[D,M]=l.pop(),F=M+1;if(F");for(const S of this.childNodes)S.dump(P);P.push(``)}else this.nodeValue?P.push(`>${(0,n.encodeToXmlString)(this.nodeValue)}`):P.push("/>")}}a.SimpleDOMNode=L;class O extends e{constructor(P){let{hasAttributes:S=!1,lowerCaseName:_=!1}=P;super(),this._currentFragment=null,this._stack=null,this._errorCode=c.NoError,this._hasAttributes=S,this._lowerCaseName=_}parseFromString(P){if(this._currentFragment=[],this._stack=[],this._errorCode=c.NoError,this.parseXml(P),this._errorCode!==c.NoError)return;const[S]=this._currentFragment;if(S)return{documentElement:S}}onText(P){if(v(P))return;const S=new L("#text",P);this._currentFragment.push(S)}onCdata(P){const S=new L("#text",P);this._currentFragment.push(S)}onBeginElement(P,S,_){this._lowerCaseName&&(P=P.toLowerCase());const l=new L(P);l.childNodes=[],this._hasAttributes&&(l.attributes=S),this._currentFragment.push(l),!_&&(this._stack.push(this._currentFragment),this._currentFragment=l.childNodes)}onEndElement(P){this._currentFragment=this._stack.pop()||[];const S=this._currentFragment.at(-1);if(!S)return null;for(let _=0,l=S.childNodes.length;_{Object.defineProperty(a,"__esModule",{value:!0}),a.calculateSHA256=a.calculateMD5=a.PDF20=a.PDF17=a.CipherTransformFactory=a.ARCFourCipher=a.AES256Cipher=a.AES128Cipher=void 0,a.calculateSHA384=P,a.calculateSHA512=void 0;var n=g(2),c=g(130),R=g(193);class v{constructor(W){this.a=0,this.b=0;const J=new Uint8Array(256),Y=W.length;for(let V=0;V<256;++V)J[V]=V;for(let V=0,H=0;V<256;++V){const z=J[V];H=H+z+W[V%Y]&255,J[V]=J[H],J[H]=z}this.s=J}encryptBlock(W){let J=this.a,Y=this.b;const V=this.s,H=W.length,z=new Uint8Array(H);for(let X=0;X>5&255,ie[Te++]=z>>13&255,ie[Te++]=z>>21&255,ie[Te++]=z>>>29&255,ie[Te++]=0,ie[Te++]=0,ie[Te++]=0;const ce=new Int32Array(16);for(Te=0;Te>>32-Ie)|0,de=ye}X=X+de|0,q=q+Z|0,$=$+ae|0,fe=fe+he|0}return new Uint8Array([X&255,X>>8&255,X>>16&255,X>>>24&255,q&255,q>>8&255,q>>16&255,q>>>24&255,$&255,$>>8&255,$>>16&255,$>>>24&255,fe&255,fe>>8&255,fe>>16&255,fe>>>24&255])}return Y}();a.calculateMD5=e;class L{constructor(W,J){this.high=W|0,this.low=J|0}and(W){this.high&=W.high,this.low&=W.low}xor(W){this.high^=W.high,this.low^=W.low}or(W){this.high|=W.high,this.low|=W.low}shiftRight(W){W>=32?(this.low=this.high>>>W-32|0,this.high=0):(this.low=this.low>>>W|this.high<<32-W,this.high=this.high>>>W|0)}shiftLeft(W){W>=32?(this.high=this.low<>>32-W,this.low<<=W)}rotateRight(W){let J,Y;W&32?(Y=this.low,J=this.high):(J=this.low,Y=this.high),W&=31,this.low=J>>>W|Y<<32-W,this.high=Y>>>W|J<<32-W}not(){this.high=~this.high,this.low=~this.low}add(W){const J=(this.low>>>0)+(W.low>>>0);let Y=(this.high>>>0)+(W.high>>>0);J>4294967295&&(Y+=1),this.low=J|0,this.high=Y|0}copyTo(W,J){W[J]=this.high>>>24&255,W[J+1]=this.high>>16&255,W[J+2]=this.high>>8&255,W[J+3]=this.high&255,W[J+4]=this.low>>>24&255,W[J+5]=this.low>>16&255,W[J+6]=this.low>>8&255,W[J+7]=this.low&255}assign(W){this.high=W.high,this.low=W.low}}const O=function(){function W(fe,Q){return fe>>>Q|fe<<32-Q}function J(fe,Q,ie){return fe&Q^~fe&ie}function Y(fe,Q,ie){return fe&Q^fe&ie^Q&ie}function V(fe){return W(fe,2)^W(fe,13)^W(fe,22)}function H(fe){return W(fe,6)^W(fe,11)^W(fe,25)}function z(fe){return W(fe,7)^W(fe,18)^fe>>>3}function X(fe){return W(fe,17)^W(fe,19)^fe>>>10}const q=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function $(fe,Q,ie){let Te=1779033703,me=3144134277,K=1013904242,ce=2773480762,de=1359893119,Z=2600822924,ae=528734635,he=1541459225;const we=Math.ceil((ie+9)/64)*64,_e=new Uint8Array(we);let ye,se;for(ye=0;ye>>29&255,_e[ye++]=ie>>21&255,_e[ye++]=ie>>13&255,_e[ye++]=ie>>5&255,_e[ye++]=ie<<3&255;const Ce=new Uint32Array(64);for(ye=0;ye>24&255,Te>>16&255,Te>>8&255,Te&255,me>>24&255,me>>16&255,me>>8&255,me&255,K>>24&255,K>>16&255,K>>8&255,K&255,ce>>24&255,ce>>16&255,ce>>8&255,ce&255,de>>24&255,de>>16&255,de>>8&255,de&255,Z>>24&255,Z>>16&255,Z>>8&255,Z&255,ae>>24&255,ae>>16&255,ae>>8&255,ae&255,he>>24&255,he>>16&255,he>>8&255,he&255])}return $}();a.calculateSHA256=O;const B=function(){function W($,fe,Q,ie,Te){$.assign(fe),$.and(Q),Te.assign(fe),Te.not(),Te.and(ie),$.xor(Te)}function J($,fe,Q,ie,Te){$.assign(fe),$.and(Q),Te.assign(fe),Te.and(ie),$.xor(Te),Te.assign(Q),Te.and(ie),$.xor(Te)}function Y($,fe,Q){$.assign(fe),$.rotateRight(28),Q.assign(fe),Q.rotateRight(34),$.xor(Q),Q.assign(fe),Q.rotateRight(39),$.xor(Q)}function V($,fe,Q){$.assign(fe),$.rotateRight(14),Q.assign(fe),Q.rotateRight(18),$.xor(Q),Q.assign(fe),Q.rotateRight(41),$.xor(Q)}function H($,fe,Q){$.assign(fe),$.rotateRight(1),Q.assign(fe),Q.rotateRight(8),$.xor(Q),Q.assign(fe),Q.shiftRight(7),$.xor(Q)}function z($,fe,Q){$.assign(fe),$.rotateRight(19),Q.assign(fe),Q.rotateRight(61),$.xor(Q),Q.assign(fe),Q.shiftRight(6),$.xor(Q)}const X=[new L(1116352408,3609767458),new L(1899447441,602891725),new L(3049323471,3964484399),new L(3921009573,2173295548),new L(961987163,4081628472),new L(1508970993,3053834265),new L(2453635748,2937671579),new L(2870763221,3664609560),new L(3624381080,2734883394),new L(310598401,1164996542),new L(607225278,1323610764),new L(1426881987,3590304994),new L(1925078388,4068182383),new L(2162078206,991336113),new L(2614888103,633803317),new L(3248222580,3479774868),new L(3835390401,2666613458),new L(4022224774,944711139),new L(264347078,2341262773),new L(604807628,2007800933),new L(770255983,1495990901),new L(1249150122,1856431235),new L(1555081692,3175218132),new L(1996064986,2198950837),new L(2554220882,3999719339),new L(2821834349,766784016),new L(2952996808,2566594879),new L(3210313671,3203337956),new L(3336571891,1034457026),new L(3584528711,2466948901),new L(113926993,3758326383),new L(338241895,168717936),new L(666307205,1188179964),new L(773529912,1546045734),new L(1294757372,1522805485),new L(1396182291,2643833823),new L(1695183700,2343527390),new L(1986661051,1014477480),new L(2177026350,1206759142),new L(2456956037,344077627),new L(2730485921,1290863460),new L(2820302411,3158454273),new L(3259730800,3505952657),new L(3345764771,106217008),new L(3516065817,3606008344),new L(3600352804,1432725776),new L(4094571909,1467031594),new L(275423344,851169720),new L(430227734,3100823752),new L(506948616,1363258195),new L(659060556,3750685593),new L(883997877,3785050280),new L(958139571,3318307427),new L(1322822218,3812723403),new L(1537002063,2003034995),new L(1747873779,3602036899),new L(1955562222,1575990012),new L(2024104815,1125592928),new L(2227730452,2716904306),new L(2361852424,442776044),new L(2428436474,593698344),new L(2756734187,3733110249),new L(3204031479,2999351573),new L(3329325298,3815920427),new L(3391569614,3928383900),new L(3515267271,566280711),new L(3940187606,3454069534),new L(4118630271,4000239992),new L(116418474,1914138554),new L(174292421,2731055270),new L(289380356,3203993006),new L(460393269,320620315),new L(685471733,587496836),new L(852142971,1086792851),new L(1017036298,365543100),new L(1126000580,2618297676),new L(1288033470,3409855158),new L(1501505948,4234509866),new L(1607167915,987167468),new L(1816402316,1246189591)];function q($,fe,Q){let ie=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Te,me,K,ce,de,Z,ae,he;ie?(Te=new L(3418070365,3238371032),me=new L(1654270250,914150663),K=new L(2438529370,812702999),ce=new L(355462360,4144912697),de=new L(1731405415,4290775857),Z=new L(2394180231,1750603025),ae=new L(3675008525,1694076839),he=new L(1203062813,3204075428)):(Te=new L(1779033703,4089235720),me=new L(3144134277,2227873595),K=new L(1013904242,4271175723),ce=new L(2773480762,1595750129),de=new L(1359893119,2917565137),Z=new L(2600822924,725511199),ae=new L(528734635,4215389547),he=new L(1541459225,327033209));const we=Math.ceil((Q+17)/128)*128,_e=new Uint8Array(we);let ye,se;for(ye=0;ye>>29&255,_e[ye++]=Q>>21&255,_e[ye++]=Q>>13&255,_e[ye++]=Q>>5&255,_e[ye++]=Q<<3&255;const Ce=new Array(80);for(ye=0;ye<80;ye++)Ce[ye]=new L(0,0);let oe=new L(0,0),pe=new L(0,0),xe=new L(0,0),Ne=new L(0,0),ke=new L(0,0),De=new L(0,0),Fe=new L(0,0),Pe=new L(0,0);const qe=new L(0,0),Le=new L(0,0),Oe=new L(0,0),Ee=new L(0,0);let Ae;for(ye=0;ye=1;--X){Y=z[13],z[13]=z[9],z[9]=z[5],z[5]=z[1],z[1]=Y,Y=z[14],V=z[10],z[14]=z[6],z[10]=z[2],z[6]=Y,z[2]=V,Y=z[15],V=z[11],H=z[7],z[15]=z[3],z[11]=Y,z[7]=V,z[3]=H;for(let q=0;q<16;++q)z[q]=this._inv_s[z[q]];for(let q=0,$=X*16;q<16;++q,++$)z[q]^=J[$];for(let q=0;q<16;q+=4){const $=this._mix[z[q]],fe=this._mix[z[q+1]],Q=this._mix[z[q+2]],ie=this._mix[z[q+3]];Y=$^fe>>>8^fe<<24^Q>>>16^Q<<16^ie>>>24^ie<<8,z[q]=Y>>>24&255,z[q+1]=Y>>16&255,z[q+2]=Y>>8&255,z[q+3]=Y&255}}Y=z[13],z[13]=z[9],z[9]=z[5],z[5]=z[1],z[1]=Y,Y=z[14],V=z[10],z[14]=z[6],z[10]=z[2],z[6]=Y,z[2]=V,Y=z[15],V=z[11],H=z[7],z[15]=z[3],z[11]=Y,z[7]=V,z[3]=H;for(let X=0;X<16;++X)z[X]=this._inv_s[z[X]],z[X]^=J[X];return z}_encrypt(W,J){const Y=this._s;let V,H,z;const X=new Uint8Array(16);X.set(W);for(let q=0;q<16;++q)X[q]^=J[q];for(let q=1;q=Te;--ie)if(fe[ie]!==Q){Q=0;break}q-=Q,z[z.length-1]=fe.subarray(0,16-Q)}}const $=new Uint8Array(q);for(let fe=0,Q=0,ie=z.length;fe2&&arguments[2]!==void 0?arguments[2]:null;const V=W.length,H=this.buffer;let z=this.bufferPosition;if(Y)this.iv=Y;else{for(let X=0;z<16&&X=256&&(H=(H^27)&255));for(let ie=0;ie<4;++ie)V[fe]=z^=V[fe-32],fe++,V[fe]=X^=V[fe-32],fe++,V[fe]=q^=V[fe-32],fe++,V[fe]=$^=V[fe-32],fe++}return V}}a.AES256Cipher=y;class D{checkOwnerPassword(W,J,Y,V){const H=new Uint8Array(W.length+56);H.set(W,0),H.set(J,W.length),H.set(Y,W.length+J.length);const z=O(H,0,H.length);return(0,n.isArrayEqual)(z,V)}checkUserPassword(W,J,Y){const V=new Uint8Array(W.length+8);V.set(W,0),V.set(J,W.length);const H=O(V,0,V.length);return(0,n.isArrayEqual)(H,Y)}getOwnerKey(W,J,Y,V){const H=new Uint8Array(W.length+56);H.set(W,0),H.set(J,W.length),H.set(Y,W.length+J.length);const z=O(H,0,H.length);return new y(z).decryptBlock(V,!1,new Uint8Array(16))}getUserKey(W,J,Y){const V=new Uint8Array(W.length+8);V.set(W,0),V.set(J,W.length);const H=O(V,0,V.length);return new y(H).decryptBlock(Y,!1,new Uint8Array(16))}}a.PDF17=D;const M=function(){function W(Y,V,H){let z=O(V,0,V.length).subarray(0,32),X=[0],q=0;for(;q<64||X.at(-1)>q-32;){const $=Y.length+z.length+H.length,fe=new Uint8Array($);let Q=0;fe.set(Y,Q),Q+=Y.length,fe.set(z,Q),Q+=z.length,fe.set(H,Q);const ie=new Uint8Array($*64);for(let K=0,ce=0;K<64;K++,ce+=$)ie.set(fe,ce);X=new l(z.subarray(0,16)).encrypt(ie,z.subarray(16,32));let me=0;for(let K=0;K<16;K++)me*=256%3,me%=3,me+=(X[K]>>>0)%3,me%=3;me===0?z=O(X,0,X.length):me===1?z=P(X,0,X.length):me===2&&(z=B(X,0,X.length)),q++}return z.subarray(0,32)}class J{hash(V,H,z){return W(V,H,z)}checkOwnerPassword(V,H,z,X){const q=new Uint8Array(V.length+56);q.set(V,0),q.set(H,V.length),q.set(z,V.length+H.length);const $=W(V,q,z);return(0,n.isArrayEqual)($,X)}checkUserPassword(V,H,z){const X=new Uint8Array(V.length+8);X.set(V,0),X.set(H,V.length);const q=W(V,X,[]);return(0,n.isArrayEqual)(q,z)}getOwnerKey(V,H,z,X){const q=new Uint8Array(V.length+56);q.set(V,0),q.set(H,V.length),q.set(z,V.length+H.length);const $=W(V,q,z);return new y($).decryptBlock(X,!1,new Uint8Array(16))}getUserKey(V,H,z){const X=new Uint8Array(V.length+8);X.set(V,0),X.set(H,V.length);const q=W(V,X,[]);return new y(q).decryptBlock(z,!1,new Uint8Array(16))}}return J}();a.PDF20=M;class F{constructor(W,J){this.StringCipherConstructor=W,this.StreamCipherConstructor=J}createStream(W,J){const Y=new this.StreamCipherConstructor;return new R.DecryptStream(W,J,function(H,z){return Y.decryptBlock(H,z)})}decryptString(W){const J=new this.StringCipherConstructor;let Y=(0,n.stringToBytes)(W);return Y=J.decryptBlock(Y,!0),(0,n.bytesToString)(Y)}encryptString(W){const J=new this.StringCipherConstructor;if(J instanceof _){const H=16-W.length%16;W+=String.fromCharCode(H).repeat(H);const z=new Uint8Array(16);if(typeof crypto<"u")crypto.getRandomValues(z);else for(let $=0;$<16;$++)z[$]=Math.floor(256*Math.random());let X=(0,n.stringToBytes)(W);X=J.encrypt(X,z);const q=new Uint8Array(16+X.length);return q.set(z),q.set(X,16),(0,n.bytesToString)(q)}let Y=(0,n.stringToBytes)(W);return Y=J.encrypt(Y),(0,n.bytesToString)(Y)}}const N=function(){const W=new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]);function J($,fe,Q,ie,Te,me,K,ce,de,Z,ae,he){if(fe){const _e=Math.min(127,fe.length);fe=fe.subarray(0,_e)}else fe=[];let we;return $===6?we=new M:we=new D,we.checkUserPassword(fe,ce,K)?we.getUserKey(fe,de,ae):fe.length&&we.checkOwnerPassword(fe,ie,me,Q)?we.getOwnerKey(fe,Te,me,Z):null}function Y($,fe,Q,ie,Te,me,K,ce){const de=40+Q.length+$.length,Z=new Uint8Array(de);let ae=0,he,we;if(fe)for(we=Math.min(32,fe.length);ae>8&255,Z[ae++]=Te>>16&255,Z[ae++]=Te>>>24&255,he=0,we=$.length;he=4&&!ce&&(Z[ae++]=255,Z[ae++]=255,Z[ae++]=255,Z[ae++]=255);let _e=e(Z,0,ae);const ye=K>>3;if(me>=3)for(he=0;he<50;++he)_e=e(_e,0,ye);const se=_e.subarray(0,ye);let Ie,Ce;if(me>=3){for(ae=0;ae<32;++ae)Z[ae]=W[ae];for(he=0,we=$.length;he>3;if(Q>=3)for(ce=0;ce<50;++ce)de=e(de,0,de.length);let ae,he;if(Q>=3){he=fe;const we=new Uint8Array(Z);for(ce=19;ce>=0;ce--){for(let _e=0;_e3&&arguments[3]!==void 0?arguments[3]:!1;const Te=new Uint8Array(Q.length+9),me=Q.length;let K;for(K=0;K>8&255,Te[K++]=$>>16&255,Te[K++]=fe&255,Te[K++]=fe>>8&255,ie&&(Te[K++]=115,Te[K++]=65,Te[K++]=108,Te[K++]=84),e(Te,0,K).subarray(0,Math.min(Q.length+5,16))}function X($,fe,Q,ie,Te){if(!(fe instanceof c.Name))throw new n.FormatError("Invalid crypt filter name.");const me=$.get(fe.name);let K;if(me!=null&&(K=me.get("CFM")),!K||K.name==="None")return function(){return new S};if(K.name==="V2")return function(){return new v(z(Q,ie,Te,!1))};if(K.name==="AESV2")return function(){return new l(z(Q,ie,Te,!0))};if(K.name==="AESV3")return function(){return new y(Te)};throw new n.FormatError("Unknown crypto method")}class q{constructor(fe,Q,ie){const Te=fe.get("Filter");if(!(0,c.isName)(Te,"Standard"))throw new n.FormatError("unknown encryption method");this.filterName=Te.name,this.dict=fe;const me=fe.get("V");if(!Number.isInteger(me)||me!==1&&me!==2&&me!==4&&me!==5)throw new n.FormatError("unsupported encryption algorithm");this.algorithm=me;let K=fe.get("Length");if(!K)if(me<=3)K=40;else{const se=fe.get("CF"),Ie=fe.get("StmF");if(se instanceof c.Dict&&Ie instanceof c.Name){se.suppressEncryption=!0;const Ce=se.get(Ie.name);K=Ce&&Ce.get("Length")||128,K<40&&(K<<=3)}}if(!Number.isInteger(K)||K<40||K%8!==0)throw new n.FormatError("invalid key length");const ce=(0,n.stringToBytes)(fe.get("O")).subarray(0,32),de=(0,n.stringToBytes)(fe.get("U")).subarray(0,32),Z=fe.get("P"),ae=fe.get("R"),he=(me===4||me===5)&&fe.get("EncryptMetadata")!==!1;this.encryptMetadata=he;const we=(0,n.stringToBytes)(Q);let _e;if(ie){if(ae===6)try{ie=(0,n.utf8StringToString)(ie)}catch{(0,n.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}_e=(0,n.stringToBytes)(ie)}let ye;if(me!==5)ye=Y(we,_e,ce,de,Z,ae,K,he);else{const se=(0,n.stringToBytes)(fe.get("O")).subarray(32,40),Ie=(0,n.stringToBytes)(fe.get("O")).subarray(40,48),Ce=(0,n.stringToBytes)(fe.get("U")).subarray(0,48),oe=(0,n.stringToBytes)(fe.get("U")).subarray(32,40),pe=(0,n.stringToBytes)(fe.get("U")).subarray(40,48),xe=(0,n.stringToBytes)(fe.get("OE")),Ne=(0,n.stringToBytes)(fe.get("UE"));(0,n.stringToBytes)(fe.get("Perms")),ye=J(ae,_e,ce,se,Ie,Ce,de,oe,pe,xe,Ne)}if(!ye&&!ie)throw new n.PasswordException("No password given",n.PasswordResponses.NEED_PASSWORD);if(!ye&&ie){const se=V(_e,ce,ae,K);ye=Y(we,se,ce,de,Z,ae,K,he)}if(!ye)throw new n.PasswordException("Incorrect Password",n.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=ye,me>=4){const se=fe.get("CF");se instanceof c.Dict&&(se.suppressEncryption=!0),this.cf=se,this.stmf=fe.get("StmF")||H,this.strf=fe.get("StrF")||H,this.eff=fe.get("EFF")||this.stmf}}createCipherTransform(fe,Q){if(this.algorithm===4||this.algorithm===5)return new F(X(this.cf,this.strf,fe,Q,this.encryptionKey),X(this.cf,this.stmf,fe,Q,this.encryptionKey));const ie=z(fe,Q,this.encryptionKey,!1),Te=function(){return new v(ie)};return new F(Te,Te)}}return q}();a.CipherTransformFactory=N},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DecryptStream=void 0;var n=g(144);const c=512;class R extends n.DecodeStream{constructor(e,L,O){super(L),this.str=e,this.dict=e.dict,this.decrypt=O,this.nextChunk=null,this.initialized=!1}readBlock(){let e;if(this.initialized?e=this.nextChunk:(e=this.str.getBytes(c),this.initialized=!0),!e||e.length===0){this.eof=!0;return}this.nextChunk=this.str.getBytes(c);const L=this.nextChunk&&this.nextChunk.length>0,O=this.decrypt;e=O(e,!L);let B=this.bufferLength;const P=e.length,S=this.ensureBuffer(B+P);for(let _=0;_{Object.defineProperty(a,"__esModule",{value:!0}),a.Catalog=void 0;var n=g(131),c=g(2),R=g(130),v=g(195),e=g(132),L=g(196),O=g(139),B=g(197),P=g(184),S=g(198),_=g(199);function l(D){return D instanceof R.Dict&&(D=D.get("D")),Array.isArray(D)?D:null}class y{constructor(M,F){if(this.pdfManager=M,this.xref=F,this._catDict=F.getCatalogObj(),!(this._catDict instanceof R.Dict))throw new c.FormatError("Catalog object is not a dictionary.");this.toplevelPagesDict,this._actualNumPages=null,this.fontCache=new R.RefSetCache,this.builtInCMapCache=new Map,this.standardFontDataCache=new Map,this.globalImageCache=new P.GlobalImageCache,this.pageKidsCountCache=new R.RefSetCache,this.pageIndexCache=new R.RefSetCache,this.nonBlendModesSet=new R.RefSet}get version(){const M=this._catDict.get("Version");return(0,c.shadow)(this,"version",M instanceof R.Name?M.name:null)}get lang(){const M=this._catDict.get("Lang");return(0,c.shadow)(this,"lang",typeof M=="string"?(0,c.stringToPDFString)(M):null)}get needsRendering(){const M=this._catDict.get("NeedsRendering");return(0,c.shadow)(this,"needsRendering",typeof M=="boolean"?M:!1)}get collection(){let M=null;try{const F=this._catDict.get("Collection");F instanceof R.Dict&&F.size>0&&(M=F)}catch(F){if(F instanceof n.MissingDataException)throw F;(0,c.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,c.shadow)(this,"collection",M)}get acroForm(){let M=null;try{const F=this._catDict.get("AcroForm");F instanceof R.Dict&&F.size>0&&(M=F)}catch(F){if(F instanceof n.MissingDataException)throw F;(0,c.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,c.shadow)(this,"acroForm",M)}get acroFormRef(){const M=this._catDict.getRaw("AcroForm");return(0,c.shadow)(this,"acroFormRef",M instanceof R.Ref?M:null)}get metadata(){const M=this._catDict.getRaw("Metadata");if(!(M instanceof R.Ref))return(0,c.shadow)(this,"metadata",null);let F=null;try{const N=!(this.xref.encrypt&&this.xref.encrypt.encryptMetadata),G=this.xref.fetch(M,N);if(G instanceof e.BaseStream&&G.dict instanceof R.Dict){const W=G.dict.get("Type"),J=G.dict.get("Subtype");if((0,R.isName)(W,"Metadata")&&(0,R.isName)(J,"XML")){const Y=(0,c.stringToUTF8String)(G.getString());Y&&(F=new S.MetadataParser(Y).serializable)}}}catch(N){if(N instanceof n.MissingDataException)throw N;(0,c.info)(`Skipping invalid Metadata: "${N}".`)}return(0,c.shadow)(this,"metadata",F)}get markInfo(){let M=null;try{M=this._readMarkInfo()}catch(F){if(F instanceof n.MissingDataException)throw F;(0,c.warn)("Unable to read mark info.")}return(0,c.shadow)(this,"markInfo",M)}_readMarkInfo(){const M=this._catDict.get("MarkInfo");if(!(M instanceof R.Dict))return null;const F={Marked:!1,UserProperties:!1,Suspects:!1};for(const N in F){const G=M.get(N);typeof G=="boolean"&&(F[N]=G)}return F}get structTreeRoot(){let M=null;try{M=this._readStructTreeRoot()}catch(F){if(F instanceof n.MissingDataException)throw F;(0,c.warn)("Unable read to structTreeRoot info.")}return(0,c.shadow)(this,"structTreeRoot",M)}_readStructTreeRoot(){const M=this._catDict.get("StructTreeRoot");if(!(M instanceof R.Dict))return null;const F=new _.StructTreeRoot(M);return F.init(),F}get toplevelPagesDict(){const M=this._catDict.get("Pages");if(!(M instanceof R.Dict))throw new c.FormatError("Invalid top-level pages dictionary.");return(0,c.shadow)(this,"toplevelPagesDict",M)}get documentOutline(){let M=null;try{M=this._readDocumentOutline()}catch(F){if(F instanceof n.MissingDataException)throw F;(0,c.warn)("Unable to read document outline.")}return(0,c.shadow)(this,"documentOutline",M)}_readDocumentOutline(){let M=this._catDict.get("Outlines");if(!(M instanceof R.Dict)||(M=M.getRaw("First"),!(M instanceof R.Ref)))return null;const F={items:[]},N=[{obj:M,parent:F}],G=new R.RefSet;G.put(M);const W=this.xref,J=new Uint8ClampedArray(3);for(;N.length>0;){const Y=N.shift(),V=W.fetchIfRef(Y.obj);if(V===null)continue;if(!V.has("Title"))throw new c.FormatError("Invalid outline item encountered.");const H={url:null,dest:null};y.parseDestDictionary({destDict:V,resultObj:H,docBaseUrl:this.pdfManager.docBaseUrl});const z=V.get("Title"),X=V.get("F")||0,q=V.getArray("C"),$=V.get("Count");let fe=J;Array.isArray(q)&&q.length===3&&(q[0]!==0||q[1]!==0||q[2]!==0)&&(fe=O.ColorSpace.singletons.rgb.getRgb(q,0));const Q={dest:H.dest,url:H.url,unsafeUrl:H.unsafeUrl,newWindow:H.newWindow,title:(0,c.stringToPDFString)(z),color:fe,count:Number.isInteger($)?$:void 0,bold:!!(X&2),italic:!!(X&1),items:[]};Y.parent.items.push(Q),M=V.getRaw("First"),M instanceof R.Ref&&!G.has(M)&&(N.push({obj:M,parent:Q}),G.put(M)),M=V.getRaw("Next"),M instanceof R.Ref&&!G.has(M)&&(N.push({obj:M,parent:Y.parent}),G.put(M))}return F.items.length>0?F.items:null}get permissions(){let M=null;try{M=this._readPermissions()}catch(F){if(F instanceof n.MissingDataException)throw F;(0,c.warn)("Unable to read permissions.")}return(0,c.shadow)(this,"permissions",M)}_readPermissions(){const M=this.xref.trailer.get("Encrypt");if(!(M instanceof R.Dict))return null;let F=M.get("P");if(typeof F!="number")return null;F+=4294967296;const N=[];for(const G in c.PermissionFlag){const W=c.PermissionFlag[G];F&W&&N.push(W)}return N}get optionalContentConfig(){let M=null;try{const F=this._catDict.get("OCProperties");if(!F)return(0,c.shadow)(this,"optionalContentConfig",null);const N=F.get("D");if(!N)return(0,c.shadow)(this,"optionalContentConfig",null);const G=F.get("OCGs");if(!Array.isArray(G))return(0,c.shadow)(this,"optionalContentConfig",null);const W=[],J=[];for(const Y of G){if(!(Y instanceof R.Ref))continue;J.push(Y);const V=this.xref.fetchIfRef(Y);W.push({id:Y.toString(),name:typeof V.get("Name")=="string"?(0,c.stringToPDFString)(V.get("Name")):null,intent:typeof V.get("Intent")=="string"?(0,c.stringToPDFString)(V.get("Intent")):null})}M=this._readOptionalContentConfig(N,J),M.groups=W}catch(F){if(F instanceof n.MissingDataException)throw F;(0,c.warn)(`Unable to read optional content config: ${F}`)}return(0,c.shadow)(this,"optionalContentConfig",M)}_readOptionalContentConfig(M,F){function N(H){const z=[];if(Array.isArray(H))for(const X of H)X instanceof R.Ref&&F.includes(X)&&z.push(X.toString());return z}function G(H){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!Array.isArray(H))return null;const X=[];for(const $ of H){if($ instanceof R.Ref&&F.includes($)){Y.put($),X.push($.toString());continue}const fe=W($,z);fe&&X.push(fe)}if(z>0)return X;const q=[];for(const $ of F)Y.has($)||q.push($.toString());return q.length&&X.push({name:null,order:q}),X}function W(H,z){if(++z>V)return(0,c.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;const X=J.fetchIfRef(H);if(!Array.isArray(X))return null;const q=J.fetchIfRef(X[0]);if(typeof q!="string")return null;const $=G(X.slice(1),z);return!$||!$.length?null:{name:(0,c.stringToPDFString)(q),order:$}}const J=this.xref,Y=new R.RefSet,V=10;return{name:typeof M.get("Name")=="string"?(0,c.stringToPDFString)(M.get("Name")):null,creator:typeof M.get("Creator")=="string"?(0,c.stringToPDFString)(M.get("Creator")):null,baseState:M.get("BaseState")instanceof R.Name?M.get("BaseState").name:null,on:N(M.get("ON")),off:N(M.get("OFF")),order:G(M.get("Order")),groups:null}}setActualNumPages(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this._actualNumPages=M}get hasActualNumPages(){return this._actualNumPages!==null}get _pagesCount(){const M=this.toplevelPagesDict.get("Count");if(!Number.isInteger(M))throw new c.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,c.shadow)(this,"_pagesCount",M)}get numPages(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}get destinations(){const M=this._readDests(),F=Object.create(null);if(M instanceof v.NameTree)for(const[N,G]of M.getAll()){const W=l(G);W&&(F[(0,c.stringToPDFString)(N)]=W)}else M instanceof R.Dict&&M.forEach(function(N,G){const W=l(G);W&&(F[N]=W)});return(0,c.shadow)(this,"destinations",F)}getDestination(M){const F=this._readDests();if(F instanceof v.NameTree){const N=l(F.get(M));if(N)return N;const G=this.destinations[M];if(G)return(0,c.warn)(`Found "${M}" at an incorrect position in the NameTree.`),G}else if(F instanceof R.Dict){const N=l(F.get(M));if(N)return N}return null}_readDests(){const M=this._catDict.get("Names");if(M&&M.has("Dests"))return new v.NameTree(M.getRaw("Dests"),this.xref);if(this._catDict.has("Dests"))return this._catDict.get("Dests")}get pageLabels(){let M=null;try{M=this._readPageLabels()}catch(F){if(F instanceof n.MissingDataException)throw F;(0,c.warn)("Unable to read page labels.")}return(0,c.shadow)(this,"pageLabels",M)}_readPageLabels(){const M=this._catDict.getRaw("PageLabels");if(!M)return null;const F=new Array(this.numPages);let N=null,G="";const J=new v.NumberTree(M,this.xref).getAll();let Y="",V=1;for(let H=0,z=this.numPages;H=1))throw new c.FormatError("Invalid start in PageLabel dictionary.");V=q}else V=1}switch(N){case"D":Y=V;break;case"R":case"r":Y=(0,n.toRomanNumerals)(V,N==="r");break;case"A":case"a":const q=26,Q=N==="a"?97:65,ie=V-1;Y=String.fromCharCode(Q+ie%q).repeat(Math.floor(ie/q)+1);break;default:if(N)throw new c.FormatError(`Invalid style "${N}" in PageLabel dictionary.`);Y=""}F[H]=G+Y,V++}return F}get pageLayout(){const M=this._catDict.get("PageLayout");let F="";if(M instanceof R.Name)switch(M.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":F=M.name}return(0,c.shadow)(this,"pageLayout",F)}get pageMode(){const M=this._catDict.get("PageMode");let F="UseNone";if(M instanceof R.Name)switch(M.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":F=M.name}return(0,c.shadow)(this,"pageMode",F)}get viewerPreferences(){const M=this._catDict.get("ViewerPreferences");if(!(M instanceof R.Dict))return(0,c.shadow)(this,"viewerPreferences",null);let F=null;for(const N of M.getKeys()){const G=M.get(N);let W;switch(N){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":typeof G=="boolean"&&(W=G);break;case"NonFullScreenPageMode":if(G instanceof R.Name)switch(G.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":W=G.name;break;default:W="UseNone"}break;case"Direction":if(G instanceof R.Name)switch(G.name){case"L2R":case"R2L":W=G.name;break;default:W="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(G instanceof R.Name)switch(G.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":W=G.name;break;default:W="CropBox"}break;case"PrintScaling":if(G instanceof R.Name)switch(G.name){case"None":case"AppDefault":W=G.name;break;default:W="AppDefault"}break;case"Duplex":if(G instanceof R.Name)switch(G.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":W=G.name;break;default:W="None"}break;case"PrintPageRange":Array.isArray(G)&&G.length%2===0&&G.every((Y,V,H)=>Number.isInteger(Y)&&Y>0&&(V===0||Y>=H[V-1])&&Y<=this.numPages)&&(W=G);break;case"NumCopies":Number.isInteger(G)&&G>0&&(W=G);break;default:(0,c.warn)(`Ignoring non-standard key in ViewerPreferences: ${N}.`);continue}if(W===void 0){(0,c.warn)(`Bad value, for key "${N}", in ViewerPreferences: ${G}.`);continue}F||(F=Object.create(null)),F[N]=W}return(0,c.shadow)(this,"viewerPreferences",F)}get openAction(){const M=this._catDict.get("OpenAction"),F=Object.create(null);if(M instanceof R.Dict){const N=new R.Dict(this.xref);N.set("A",M);const G={url:null,dest:null,action:null};y.parseDestDictionary({destDict:N,resultObj:G}),Array.isArray(G.dest)?F.dest=G.dest:G.action&&(F.action=G.action)}else Array.isArray(M)&&(F.dest=M);return(0,c.shadow)(this,"openAction",(0,c.objectSize)(F)>0?F:null)}get attachments(){const M=this._catDict.get("Names");let F=null;if(M instanceof R.Dict&&M.has("EmbeddedFiles")){const N=new v.NameTree(M.getRaw("EmbeddedFiles"),this.xref);for(const[G,W]of N.getAll()){const J=new B.FileSpec(W,this.xref);F||(F=Object.create(null)),F[(0,c.stringToPDFString)(G)]=J.serializable}}return(0,c.shadow)(this,"attachments",F)}get xfaImages(){const M=this._catDict.get("Names");let F=null;if(M instanceof R.Dict&&M.has("XFAImages")){const N=new v.NameTree(M.getRaw("XFAImages"),this.xref);for(const[G,W]of N.getAll())F||(F=new R.Dict(this.xref)),F.set((0,c.stringToPDFString)(G),W)}return(0,c.shadow)(this,"xfaImages",F)}_collectJavaScript(){const M=this._catDict.get("Names");let F=null;function N(W,J){if(!(J instanceof R.Dict)||!(0,R.isName)(J.get("S"),"JavaScript"))return;let Y=J.get("JS");if(Y instanceof e.BaseStream)Y=Y.getString();else if(typeof Y!="string")return;F===null&&(F=new Map),Y=(0,c.stringToPDFString)(Y).replace(/\u0000/g,""),F.set(W,Y)}if(M instanceof R.Dict&&M.has("JavaScript")){const W=new v.NameTree(M.getRaw("JavaScript"),this.xref);for(const[J,Y]of W.getAll())N((0,c.stringToPDFString)(J),Y)}const G=this._catDict.get("OpenAction");return G&&N("OpenAction",G),F}get javaScript(){const M=this._collectJavaScript();return(0,c.shadow)(this,"javaScript",M?[...M.values()]:null)}get jsActions(){const M=this._collectJavaScript();let F=(0,n.collectActions)(this.xref,this._catDict,c.DocumentActionEventType);if(M){F||(F=Object.create(null));for(const[N,G]of M)N in F?F[N].push(G):F[N]=[G]}return(0,c.shadow)(this,"jsActions",F)}async fontFallback(M,F){const N=await Promise.all(this.fontCache);for(const G of N)if(G.loadedName===M){G.fallback(F);return}}async cleanup(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;(0,L.clearGlobalCaches)(),this.globalImageCache.clear(M),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.nonBlendModesSet.clear();const F=await Promise.all(this.fontCache);for(const{dict:N}of F)delete N.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear()}async getPageDict(M){const F=[this.toplevelPagesDict],N=new R.RefSet,G=this._catDict.getRaw("Pages");G instanceof R.Ref&&N.put(G);const W=this.xref,J=this.pageKidsCountCache,Y=this.pageIndexCache;let V=0;for(;F.length;){const H=F.pop();if(H instanceof R.Ref){const $=J.get(H);if($>=0&&V+$<=M){V+=$;continue}if(N.has(H))throw new c.FormatError("Pages tree contains circular reference.");N.put(H);const fe=await W.fetchAsync(H);if(fe instanceof R.Dict){let Q=fe.getRaw("Type");if(Q instanceof R.Ref&&(Q=await W.fetchAsync(Q)),(0,R.isName)(Q,"Page")||!fe.has("Kids")){if(J.has(H)||J.put(H,1),Y.has(H)||Y.put(H,V),V===M)return[fe,H];V++;continue}}F.push(fe);continue}if(!(H instanceof R.Dict))throw new c.FormatError("Page dictionary kid reference points to wrong type of object.");const{objId:z}=H;let X=H.getRaw("Count");if(X instanceof R.Ref&&(X=await W.fetchAsync(X)),Number.isInteger(X)&&X>=0&&(z&&!J.has(z)&&J.put(z,X),V+X<=M)){V+=X;continue}let q=H.getRaw("Kids");if(q instanceof R.Ref&&(q=await W.fetchAsync(q)),!Array.isArray(q)){let $=H.getRaw("Type");if($ instanceof R.Ref&&($=await W.fetchAsync($)),(0,R.isName)($,"Page")||!H.has("Kids")){if(V===M)return[H,null];V++;continue}throw new c.FormatError("Page dictionary kids object is not an array.")}for(let $=q.length-1;$>=0;$--)F.push(q[$])}throw new Error(`Page index ${M} not found.`)}async getAllPageDicts(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const F=[{currentNode:this.toplevelPagesDict,posInKids:0}],N=new R.RefSet,G=this._catDict.getRaw("Pages");G instanceof R.Ref&&N.put(G);const W=new Map,J=this.xref,Y=this.pageIndexCache;let V=0;function H(X,q){q&&!Y.has(q)&&Y.put(q,V),W.set(V++,[X,q])}function z(X){if(X instanceof n.XRefEntryException&&!M)throw X;W.set(V++,[X,null])}for(;F.length>0;){const X=F.at(-1),{currentNode:q,posInKids:$}=X;let fe=q.getRaw("Kids");if(fe instanceof R.Ref)try{fe=await J.fetchAsync(fe)}catch(me){z(me);break}if(!Array.isArray(fe)){z(new c.FormatError("Page dictionary kids object is not an array."));break}if($>=fe.length){F.pop();continue}const Q=fe[$];let ie;if(Q instanceof R.Ref){if(N.has(Q)){z(new c.FormatError("Pages tree contains circular reference."));break}N.put(Q);try{ie=await J.fetchAsync(Q)}catch(me){z(me);break}}else ie=Q;if(!(ie instanceof R.Dict)){z(new c.FormatError("Page dictionary kid reference points to wrong type of object."));break}let Te=ie.getRaw("Type");if(Te instanceof R.Ref)try{Te=await J.fetchAsync(Te)}catch(me){z(me);break}(0,R.isName)(Te,"Page")||!ie.has("Kids")?H(ie,Q instanceof R.Ref?Q:null):F.push({currentNode:ie,posInKids:0}),X.posInKids++}return W}getPageIndex(M){const F=this.pageIndexCache.get(M);if(F!==void 0)return Promise.resolve(F);const N=this.xref;function G(Y){let V=0,H;return N.fetchAsync(Y).then(function(z){if((0,R.isRefsEqual)(Y,M)&&!(0,R.isDict)(z,"Page")&&!(z instanceof R.Dict&&!z.has("Type")&&z.has("Contents")))throw new c.FormatError("The reference does not point to a /Page dictionary.");if(!z)return null;if(!(z instanceof R.Dict))throw new c.FormatError("Node must be a dictionary.");return H=z.getRaw("Parent"),z.getAsync("Parent")}).then(function(z){if(!z)return null;if(!(z instanceof R.Dict))throw new c.FormatError("Parent must be a dictionary.");return z.getAsync("Kids")}).then(function(z){if(!z)return null;const X=[];let q=!1;for(let $=0,fe=z.length;$G(Y).then(V=>{if(!V)return this.pageIndexCache.put(M,W),W;const[H,z]=V;return W+=H,J(z)});return J(M)}get baseUrl(){const M=this._catDict.get("URI");if(M instanceof R.Dict){const F=M.get("Base");if(typeof F=="string"){const N=(0,c.createValidAbsoluteUrl)(F,null,{tryConvertEncoding:!0});if(N)return(0,c.shadow)(this,"baseUrl",N.href)}}return(0,c.shadow)(this,"baseUrl",null)}static parseDestDictionary(M){const F=M.destDict;if(!(F instanceof R.Dict)){(0,c.warn)("parseDestDictionary: `destDict` must be a dictionary.");return}const N=M.resultObj;if(typeof N!="object"){(0,c.warn)("parseDestDictionary: `resultObj` must be an object.");return}const G=M.docBaseUrl||null;let W=F.get("A"),J,Y;if(W instanceof R.Dict||(F.has("Dest")?W=F.get("Dest"):(W=F.get("AA"),W instanceof R.Dict&&(W.has("D")?W=W.get("D"):W.has("U")&&(W=W.get("U"))))),W instanceof R.Dict){const V=W.get("S");if(!(V instanceof R.Name)){(0,c.warn)("parseDestDictionary: Invalid type in Action dictionary.");return}const H=V.name;switch(H){case"ResetForm":const z=W.get("Flags"),X=((typeof z=="number"?z:0)&1)===0,q=[],$=[];for(const de of W.get("Fields")||[])de instanceof R.Ref?$.push(de.toString()):typeof de=="string"&&q.push((0,c.stringToPDFString)(de));N.resetForm={fields:q,refs:$,include:X};break;case"URI":J=W.get("URI"),J instanceof R.Name&&(J="/"+J.name);break;case"GoTo":Y=W.get("D");break;case"Launch":case"GoToR":const fe=W.get("F");fe instanceof R.Dict?J=fe.get("F")||null:typeof fe=="string"&&(J=fe);let Q=W.get("D");if(Q&&(Q instanceof R.Name&&(Q=Q.name),typeof J=="string")){const de=J.split("#")[0];typeof Q=="string"?J=de+"#"+Q:Array.isArray(Q)&&(J=de+"#"+JSON.stringify(Q))}const ie=W.get("NewWindow");typeof ie=="boolean"&&(N.newWindow=ie);break;case"Named":const Te=W.get("N");Te instanceof R.Name&&(N.action=Te.name);break;case"JavaScript":const me=W.get("JS");let K;me instanceof e.BaseStream?K=me.getString():typeof me=="string"&&(K=me);const ce=K&&(0,n.recoverJsURL)((0,c.stringToPDFString)(K));if(ce){J=ce.url,N.newWindow=ce.newWindow;break}default:if(H==="JavaScript"||H==="SubmitForm")break;(0,c.warn)(`parseDestDictionary - unsupported action: "${H}".`);break}}else F.has("Dest")&&(Y=F.get("Dest"));if(typeof J=="string"){const V=(0,c.createValidAbsoluteUrl)(J,G,{addDefaultProtocol:!0,tryConvertEncoding:!0});V&&(N.url=V.href),N.unsafeUrl=J}Y&&(Y instanceof R.Name&&(Y=Y.name),typeof Y=="string"?N.dest=(0,c.stringToPDFString)(Y):Array.isArray(Y)&&(N.dest=Y))}}a.Catalog=y},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.NumberTree=a.NameTree=void 0;var n=g(130),c=g(2);class R{constructor(O,B,P){this.constructor===R&&(0,c.unreachable)("Cannot initialize NameOrNumberTree."),this.root=O,this.xref=B,this._type=P}getAll(){const O=new Map;if(!this.root)return O;const B=this.xref,P=new n.RefSet;P.put(this.root);const S=[this.root];for(;S.length>0;){const _=B.fetchIfRef(S.shift());if(!(_ instanceof n.Dict))continue;if(_.has("Kids")){const y=_.get("Kids");if(!Array.isArray(y))continue;for(const D of y){if(P.has(D))throw new c.FormatError(`Duplicate entry in "${this._type}" tree.`);S.push(D),P.put(D)}continue}const l=_.get(this._type);if(Array.isArray(l))for(let y=0,D=l.length;y_)return(0,c.warn)(`Search depth limit reached for "${this._type}" tree.`),null;const y=P.get("Kids");if(!Array.isArray(y))return null;let D=0,M=y.length-1;for(;D<=M;){const F=D+M>>1,N=B.fetchIfRef(y[F]),G=N.get("Limits");if(OB.fetchIfRef(G[1]))D=F+1;else{P=N;break}}if(D>M)return null}const l=P.get(this._type);if(Array.isArray(l)){let y=0,D=l.length-2;for(;y<=D;){const M=y+D>>1,F=M+(M&1),N=B.fetchIfRef(l[F]);if(ON)y=F+2;else return B.fetchIfRef(l[F+1])}}return null}}class v extends R{constructor(O,B){super(O,B,"Names")}}a.NameTree=v;class e extends R{constructor(O,B){super(O,B,"Nums")}}a.NumberTree=e},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.clearGlobalCaches=R;var n=g(130),c=g(165);function R(){(0,n.clearPrimitiveCaches)(),(0,c.clearUnicodeCaches)()}},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.FileSpec=void 0;var n=g(2),c=g(132),R=g(130);function v(L){return L.has("UF")?L.get("UF"):L.has("F")?L.get("F"):L.has("Unix")?L.get("Unix"):L.has("Mac")?L.get("Mac"):L.has("DOS")?L.get("DOS"):null}class e{constructor(O,B){O instanceof R.Dict&&(this.xref=B,this.root=O,O.has("FS")&&(this.fs=O.get("FS")),this.description=O.has("Desc")?(0,n.stringToPDFString)(O.get("Desc")):"",O.has("RF")&&(0,n.warn)("Related file specifications are not supported"),this.contentAvailable=!0,O.has("EF")||(this.contentAvailable=!1,(0,n.warn)("Non-embedded file specifications are not supported")))}get filename(){if(!this._filename&&this.root){const O=v(this.root)||"unnamed";this._filename=(0,n.stringToPDFString)(O).replace(/\\\\/g,"\\").replace(/\\\//g,"/").replace(/\\/g,"/")}return this._filename}get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=v(this.root.get("EF")));let O=null;if(this.contentRef){const B=this.xref.fetchIfRef(this.contentRef);B instanceof c.BaseStream?O=B.getBytes():(0,n.warn)("Embedded file specification points to non-existing/invalid content")}else(0,n.warn)("Embedded file specification does not have a content");return O}get serializable(){return{filename:this.filename,content:this.content}}}a.FileSpec=e},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.MetadataParser=void 0;var n=g(191);class c{constructor(v){v=this._repair(v);const L=new n.SimpleXMLParser({lowerCaseName:!0}).parseFromString(v);this._metadataMap=new Map,this._data=v,L&&this._parse(L)}_repair(v){return v.replace(/^[^<]+/,"").replace(/>\\376\\377([^<]+)/g,function(e,L){const O=L.replace(/\\([0-3])([0-7])([0-7])/g,function(P,S,_,l){return String.fromCharCode(S*64+_*8+l*1)}).replace(/&(amp|apos|gt|lt|quot);/g,function(P,S){switch(S){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${S} isn't defined.`)}),B=[];for(let P=0,S=O.length;P=32&&_<127&&_!==60&&_!==62&&_!==38?B.push(String.fromCharCode(_)):B.push("&#x"+(65536+_).toString(16).substring(1)+";")}return">"+B.join("")})}_getSequence(v){const e=v.nodeName;return e!=="rdf:bag"&&e!=="rdf:seq"&&e!=="rdf:alt"?null:v.childNodes.filter(L=>L.nodeName==="rdf:li")}_parseArray(v){if(!v.hasChildNodes())return;const[e]=v.childNodes,L=this._getSequence(e)||[];this._metadataMap.set(v.nodeName,L.map(O=>O.textContent.trim()))}_parse(v){let e=v.documentElement;if(e.nodeName!=="rdf:rdf")for(e=e.firstChild;e&&e.nodeName!=="rdf:rdf";)e=e.nextSibling;if(!(!e||e.nodeName!=="rdf:rdf"||!e.hasChildNodes())){for(const L of e.childNodes)if(L.nodeName==="rdf:description")for(const O of L.childNodes){const B=O.nodeName;switch(B){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(O);continue}this._metadataMap.set(B,O.textContent.trim())}}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}}a.MetadataParser=c},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.StructTreeRoot=a.StructTreePage=void 0;var n=g(130),c=g(2),R=g(195);const v=40,e={PAGE_CONTENT:"PAGE_CONTENT",STREAM_CONTENT:"STREAM_CONTENT",OBJECT:"OBJECT",ELEMENT:"ELEMENT"};class L{constructor(_){this.dict=_,this.roleMap=new Map}init(){this.readRoleMap()}readRoleMap(){const _=this.dict.get("RoleMap");_ instanceof n.Dict&&_.forEach((l,y)=>{y instanceof n.Name&&this.roleMap.set(l,y.name)})}}a.StructTreeRoot=L;class O{constructor(_,l){this.tree=_,this.dict=l,this.kids=[],this.parseKids()}get role(){const _=this.dict.get("S"),l=_ instanceof n.Name?_.name:"",{root:y}=this.tree;return y.roleMap.has(l)?y.roleMap.get(l):l}parseKids(){let _=null;const l=this.dict.getRaw("Pg");l instanceof n.Ref&&(_=l.toString());const y=this.dict.get("K");if(Array.isArray(y))for(const D of y){const M=this.parseKid(_,D);M&&this.kids.push(M)}else{const D=this.parseKid(_,y);D&&this.kids.push(D)}}parseKid(_,l){if(Number.isInteger(l))return this.tree.pageDict.objId!==_?null:new B({type:e.PAGE_CONTENT,mcid:l,pageObjId:_});let y=null;if(l instanceof n.Ref?y=this.dict.xref.fetch(l):l instanceof n.Dict&&(y=l),!y)return null;const D=y.getRaw("Pg");D instanceof n.Ref&&(_=D.toString());const M=y.get("Type")instanceof n.Name?y.get("Type").name:null;return M==="MCR"?this.tree.pageDict.objId!==_?null:new B({type:e.STREAM_CONTENT,refObjId:y.getRaw("Stm")instanceof n.Ref?y.getRaw("Stm").toString():null,pageObjId:_,mcid:y.get("MCID")}):M==="OBJR"?this.tree.pageDict.objId!==_?null:new B({type:e.OBJECT,refObjId:y.getRaw("Obj")instanceof n.Ref?y.getRaw("Obj").toString():null,pageObjId:_}):new B({type:e.ELEMENT,dict:y})}}class B{constructor(_){let{type:l,dict:y=null,mcid:D=null,pageObjId:M=null,refObjId:F=null}=_;this.type=l,this.dict=y,this.mcid=D,this.pageObjId=M,this.refObjId=F,this.parentNode=null}}class P{constructor(_,l){this.root=_,this.rootDict=_?_.dict:null,this.pageDict=l,this.nodes=[]}parse(){if(!this.root||!this.rootDict)return;const _=this.rootDict.get("ParentTree");if(!_)return;const l=this.pageDict.get("StructParents");if(!Number.isInteger(l))return;const D=new R.NumberTree(_,this.rootDict.xref).get(l);if(!Array.isArray(D))return;const M=new Map;for(const F of D)F instanceof n.Ref&&this.addNode(this.rootDict.xref.fetch(F),M)}addNode(_,l){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(y>v)return(0,c.warn)("StructTree MAX_DEPTH reached."),null;if(l.has(_))return l.get(_);const D=new O(this,_);l.set(_,D);const M=_.get("P");if(!M||(0,n.isName)(M.get("Type"),"StructTreeRoot"))return this.addTopLevelNode(_,D)||l.delete(_),D;const F=this.addNode(M,l,y+1);if(!F)return D;let N=!1;for(const G of F.kids)G.type===e.ELEMENT&&G.dict===_&&(G.parentNode=D,N=!0);return N||l.delete(_),D}addTopLevelNode(_,l){const y=this.rootDict.get("K");if(!y)return!1;if(y instanceof n.Dict)return y.objId!==_.objId?!1:(this.nodes[0]=l,!0);if(!Array.isArray(y))return!0;let D=!1;for(let M=0;M2&&arguments[2]!==void 0?arguments[2]:0;if(M>v){(0,c.warn)("StructTree too deep to be fully serialized.");return}const F=Object.create(null);F.role=y.role,F.children=[],D.children.push(F);const N=y.dict.get("Alt");typeof N=="string"&&(F.alt=(0,c.stringToPDFString)(N));const G=y.dict.get("Lang");typeof G=="string"&&(F.lang=(0,c.stringToPDFString)(G));for(const W of y.kids){const J=W.type===e.ELEMENT?W.parentNode:null;if(J){_(J,F,M+1);continue}else W.type===e.PAGE_CONTENT||W.type===e.STREAM_CONTENT?F.children.push({type:"content",id:`page${W.pageObjId}_mcid${W.mcid}`}):W.type===e.OBJECT&&F.children.push({type:"object",id:W.refObjId})}}const l=Object.create(null);l.children=[],l.role="Root";for(const y of this.nodes)y&&_(y,l);return l}}a.StructTreePage=P},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ObjectLoader=void 0;var n=g(130),c=g(132),R=g(131),v=g(2);function e(B){return B instanceof n.Ref||B instanceof n.Dict||B instanceof c.BaseStream||Array.isArray(B)}function L(B,P){if(B instanceof n.Dict)B=B.getRawValues();else if(B instanceof c.BaseStream)B=B.dict.getRawValues();else if(!Array.isArray(B))return;for(const S of B)e(S)&&P.push(S)}class O{constructor(P,S,_){this.dict=P,this.keys=S,this.xref=_,this.refSet=null}async load(){if(this.xref.stream.isDataLoaded)return;const{keys:P,dict:S}=this;this.refSet=new n.RefSet;const _=[];for(let l=0,y=P.length;l{Object.defineProperty(a,"__esModule",{value:!0}),a.XFAFactory=void 0;var n=g(202),c=g(206),R=g(212),v=g(210),e=g(203),L=g(2),O=g(213),B=g(223);class P{constructor(_){try{this.root=new O.XFAParser().parse(P._createDocument(_));const l=new c.Binder(this.root);this.form=l.bind(),this.dataHandler=new R.DataHandler(this.root,l.getData()),this.form[n.$globalData].template=this.form}catch(l){(0,L.warn)(`XFA - an error occurred during parsing and binding: ${l}`)}}isValid(){return this.root&&this.form}_createPagesHelper(){const _=this.form[n.$toPages]();return new Promise((l,y)=>{const D=()=>{try{const M=_.next();M.done?l(M.value):setTimeout(D,0)}catch(M){y(M)}};setTimeout(D,0)})}async _createPages(){try{this.pages=await this._createPagesHelper(),this.dims=this.pages.children.map(_=>{const{width:l,height:y}=_.attributes.style;return[0,0,parseInt(l),parseInt(y)]})}catch(_){(0,L.warn)(`XFA - an error occurred during layout: ${_}`)}}getBoundingBox(_){return this.dims[_]}async getNumPages(){return this.pages||await this._createPages(),this.dims.length}setImages(_){this.form[n.$globalData].images=_}setFonts(_){this.form[n.$globalData].fontFinder=new v.FontFinder(_);const l=[];for(let y of this.form[n.$globalData].usedTypefaces)y=(0,e.stripQuotes)(y),this.form[n.$globalData].fontFinder.find(y)||l.push(y);return l.length>0?l:null}appendFonts(_,l){this.form[n.$globalData].fontFinder.add(_,l)}async getPages(){this.pages||await this._createPages();const _=this.pages;return this.pages=null,_}serializeData(_){return this.dataHandler.serialize(_)}static _createDocument(_){return _["/xdp:xdp"]?Object.values(_).join(""):_["xdp:xdp"]}static getRichTextAsHtml(_){if(!_||typeof _!="string")return null;try{let l=new O.XFAParser(B.XhtmlNamespace,!0).parse(_);if(!["body","xhtml"].includes(l[n.$nodeName])){const F=B.XhtmlNamespace.body({});F[n.$appendChild](l),l=F}const y=l[n.$toHTML]();if(!y.success)return null;const{html:D}=y,{attributes:M}=D;return M&&(M.class&&(M.class=M.class.filter(F=>!F.startsWith("xfa"))),M.dir="auto"),{html:D,str:l[n.$text]()}}catch(l){(0,L.warn)(`XFA - an error occurred during parsing of rich text: ${l}`)}return null}}a.XFAFactory=P},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.XmlObject=a.XFAObjectArray=a.XFAObject=a.XFAAttribute=a.StringObject=a.OptionObject=a.Option10=a.Option01=a.IntegerObject=a.ContentObject=a.$uid=a.$toStyle=a.$toString=a.$toPages=a.$toHTML=a.$text=a.$tabIndex=a.$setValue=a.$setSetAttributes=a.$setId=a.$searchNode=a.$root=a.$resolvePrototypes=a.$removeChild=a.$pushPara=a.$pushGlyphs=a.$popPara=a.$onText=a.$onChildCheck=a.$onChild=a.$nsAttributes=a.$nodeName=a.$namespaceId=a.$isUsable=a.$isTransparent=a.$isThereMoreWidth=a.$isSplittable=a.$isNsAgnostic=a.$isDescendent=a.$isDataValue=a.$isCDATAXml=a.$isBindable=a.$insertAt=a.$indexOf=a.$ids=a.$hasSettableValue=a.$globalData=a.$getTemplateRoot=a.$getSubformParent=a.$getRealChildrenByNameIt=a.$getParent=a.$getNextPage=a.$getExtra=a.$getDataValue=a.$getContainedChildren=a.$getChildrenByNameIt=a.$getChildrenByName=a.$getChildrenByClass=a.$getChildren=a.$getAvailableSpace=a.$getAttributes=a.$getAttributeIt=a.$flushHTML=a.$finalize=a.$extra=a.$dump=a.$data=a.$content=a.$consumed=a.$clone=a.$cleanup=a.$cleanPage=a.$clean=a.$childrenToHTML=a.$appendChild=a.$addHTML=a.$acceptWhitespace=void 0;var n=g(203),c=g(2),R=g(131),v=g(204),e=g(205);const L=Symbol();a.$acceptWhitespace=L;const O=Symbol();a.$addHTML=O;const B=Symbol();a.$appendChild=B;const P=Symbol();a.$childrenToHTML=P;const S=Symbol();a.$clean=S;const _=Symbol();a.$cleanPage=_;const l=Symbol();a.$cleanup=l;const y=Symbol();a.$clone=y;const D=Symbol();a.$consumed=D;const M=Symbol("content");a.$content=M;const F=Symbol("data");a.$data=F;const N=Symbol();a.$dump=N;const G=Symbol("extra");a.$extra=G;const W=Symbol();a.$finalize=W;const J=Symbol();a.$flushHTML=J;const Y=Symbol();a.$getAttributeIt=Y;const V=Symbol();a.$getAttributes=V;const H=Symbol();a.$getAvailableSpace=H;const z=Symbol();a.$getChildrenByClass=z;const X=Symbol();a.$getChildrenByName=X;const q=Symbol();a.$getChildrenByNameIt=q;const $=Symbol();a.$getDataValue=$;const fe=Symbol();a.$getExtra=fe;const Q=Symbol();a.$getRealChildrenByNameIt=Q;const ie=Symbol();a.$getChildren=ie;const Te=Symbol();a.$getContainedChildren=Te;const me=Symbol();a.$getNextPage=me;const K=Symbol();a.$getSubformParent=K;const ce=Symbol();a.$getParent=ce;const de=Symbol();a.$getTemplateRoot=de;const Z=Symbol();a.$globalData=Z;const ae=Symbol();a.$hasSettableValue=ae;const he=Symbol();a.$ids=he;const we=Symbol();a.$indexOf=we;const _e=Symbol();a.$insertAt=_e;const ye=Symbol();a.$isCDATAXml=ye;const se=Symbol();a.$isBindable=se;const Ie=Symbol();a.$isDataValue=Ie;const Ce=Symbol();a.$isDescendent=Ce;const oe=Symbol();a.$isNsAgnostic=oe;const pe=Symbol();a.$isSplittable=pe;const xe=Symbol();a.$isThereMoreWidth=xe;const Ne=Symbol();a.$isTransparent=Ne;const ke=Symbol();a.$isUsable=ke;const De=Symbol(),Fe=Symbol("namespaceId");a.$namespaceId=Fe;const Pe=Symbol("nodeName");a.$nodeName=Pe;const qe=Symbol();a.$nsAttributes=qe;const Le=Symbol();a.$onChild=Le;const Oe=Symbol();a.$onChildCheck=Oe;const Ee=Symbol();a.$onText=Ee;const Ae=Symbol();a.$pushGlyphs=Ae;const Ve=Symbol();a.$popPara=Ve;const $e=Symbol();a.$pushPara=$e;const Ue=Symbol();a.$removeChild=Ue;const He=Symbol("root");a.$root=He;const Qe=Symbol();a.$resolvePrototypes=Qe;const Ze=Symbol();a.$searchNode=Ze;const et=Symbol();a.$setId=et;const tt=Symbol();a.$setSetAttributes=tt;const je=Symbol();a.$setValue=je;const Je=Symbol();a.$tabIndex=Je;const nt=Symbol();a.$text=nt;const Ke=Symbol();a.$toPages=Ke;const at=Symbol();a.$toHTML=at;const ot=Symbol();a.$toString=ot;const Xe=Symbol();a.$toStyle=Xe;const ze=Symbol("uid");a.$uid=ze;const Ye=Symbol(),st=Symbol(),_t=Symbol(),ft=Symbol("_children"),Ct=Symbol(),ut=Symbol(),rt=Symbol(),mt=Symbol(),Ot=Symbol(),dt=Symbol(),Nt=Symbol(),kt=Symbol(),Ut=Symbol(),Ht=Symbol("parent"),Kt=Symbol(),qt=Symbol(),pn=Symbol();let vt=0;const xt=v.NamespaceIds.datasets.id;class Rt{constructor(ht,Et){let It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this[Fe]=ht,this[Pe]=Et,this[Nt]=It,this[Ht]=null,this[ft]=[],this[ze]=`${Et}${vt++}`,this[Z]=null}[Le](ht){if(!this[Nt]||!this[Oe](ht))return!1;const Et=ht[Pe],It=this[Et];if(It instanceof At){if(It.push(ht))return this[B](ht),!0}else return It!==null&&this[Ue](It),this[Et]=ht,this[B](ht),!0;let wt="";return this.id?wt=` (id: ${this.id})`:this.name&&(wt=` (name: ${this.name} ${this.h.value})`),(0,c.warn)(`XFA - node "${this[Pe]}"${wt} has already enough "${Et}"!`),!1}[Oe](ht){return this.hasOwnProperty(ht[Pe])&&ht[Fe]===this[Fe]}[oe](){return!1}[L](){return!1}[ye](){return!1}[se](){return!1}[Ve](){this.para&&this[de]()[G].paraStack.pop()}[$e](){this[de]()[G].paraStack.push(this.para)}[et](ht){this.id&&this[Fe]===v.NamespaceIds.template.id&&ht.set(this.id,this)}[de](){return this[Z].template}[pe](){return!1}[xe](){return!1}[B](ht){ht[Ht]=this,this[ft].push(ht),!ht[Z]&&this[Z]&&(ht[Z]=this[Z])}[Ue](ht){const Et=this[ft].indexOf(ht);this[ft].splice(Et,1)}[ae](){return this.hasOwnProperty("value")}[je](ht){}[Ee](ht){}[W](){}[S](ht){delete this[Nt],this[l]&&(ht.clean(this[l]),delete this[l])}[we](ht){return this[ft].indexOf(ht)}[_e](ht,Et){Et[Ht]=this,this[ft].splice(ht,0,Et),!Et[Z]&&this[Z]&&(Et[Z]=this[Z])}[Ne](){return!this.name}[De](){return""}[nt](){return this[ft].length===0?this[M]:this[ft].map(ht=>ht[nt]()).join("")}get[_t](){const ht=Object.getPrototypeOf(this);if(!ht._attributes){const Et=ht._attributes=new Set;for(const It of Object.getOwnPropertyNames(this)){if(this[It]===null||this[It]instanceof Rt||this[It]instanceof At)break;Et.add(It)}}return(0,c.shadow)(this,_t,ht._attributes)}[Ce](ht){let Et=this;for(;Et;){if(Et===ht)return!0;Et=Et[ce]()}return!1}[ce](){return this[Ht]}[K](){return this[ce]()}[ie](){let ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return ht?this[ht]:this[ft]}[N](){const ht=Object.create(null);this[M]&&(ht.$content=this[M]);for(const Et of Object.getOwnPropertyNames(this)){const It=this[Et];It!==null&&(It instanceof Rt?ht[Et]=It[N]():It instanceof At?It.isEmpty()||(ht[Et]=It.dump()):ht[Et]=It)}return ht}[Xe](){return null}[at](){return n.HTMLResult.EMPTY}*[Te](){for(const ht of this[ie]())yield ht}*[mt](ht,Et){for(const It of this[Te]())if(!ht||Et===ht.has(It[Pe])){const wt=this[H](),Bt=It[at](wt);Bt.success||(this[G].failingNode=It),yield Bt}}[J](){return null}[O](ht,Et){this[G].children.push(ht)}[H](){}[P](ht){let{filter:Et=null,include:It=!0}=ht;if(!this[G].generator)this[G].generator=this[mt](Et,It);else{const wt=this[H](),Bt=this[G].failingNode[at](wt);if(!Bt.success)return Bt;Bt.html&&this[O](Bt.html,Bt.bbox),delete this[G].failingNode}for(;;){const wt=this[G].generator.next();if(wt.done)break;const Bt=wt.value;if(!Bt.success)return Bt;Bt.html&&this[O](Bt.html,Bt.bbox)}return this[G].generator=null,n.HTMLResult.EMPTY}[tt](ht){this[qt]=new Set(Object.keys(ht))}[dt](ht){const Et=this[_t],It=this[qt];return[...ht].filter(wt=>Et.has(wt)&&!It.has(wt))}[Qe](ht){let Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const It of this[ft])It[Kt](ht,Et)}[Kt](ht,Et){const It=this[Ot](ht,Et);It?this[Ye](It,ht,Et):this[Qe](ht,Et)}[Ot](ht,Et){const{use:It,usehref:wt}=this;if(!It&&!wt)return null;let Bt=null,Jt=null,_n=null,nn=It;if(wt?(nn=wt,wt.startsWith("#som(")&&wt.endsWith(")")?Jt=wt.slice(5,wt.length-1):wt.startsWith(".#som(")&&wt.endsWith(")")?Jt=wt.slice(6,wt.length-1):wt.startsWith("#")?_n=wt.slice(1):wt.startsWith(".#")&&(_n=wt.slice(2))):It.startsWith("#")?_n=It.slice(1):Jt=It,this.use=this.usehref="",_n?Bt=ht.get(_n):(Bt=(0,e.searchNode)(ht.get(He),this,Jt,!0,!1),Bt&&(Bt=Bt[0])),!Bt)return(0,c.warn)(`XFA - Invalid prototype reference: ${nn}.`),null;if(Bt[Pe]!==this[Pe])return(0,c.warn)(`XFA - Incompatible prototype: ${Bt[Pe]} !== ${this[Pe]}.`),null;if(Et.has(Bt))return(0,c.warn)("XFA - Cycle detected in prototypes use."),null;Et.add(Bt);const an=Bt[Ot](ht,Et);return an&&Bt[Ye](an,ht,Et),Bt[Qe](ht,Et),Et.delete(Bt),Bt}[Ye](ht,Et,It){if(It.has(ht)){(0,c.warn)("XFA - Cycle detected in prototypes use.");return}!this[M]&&ht[M]&&(this[M]=ht[M]),new Set(It).add(ht);for(const Bt of this[dt](ht[qt]))this[Bt]=ht[Bt],this[qt]&&this[qt].add(Bt);for(const Bt of Object.getOwnPropertyNames(this)){if(this[_t].has(Bt))continue;const Jt=this[Bt],_n=ht[Bt];if(Jt instanceof At){for(const nn of Jt[ft])nn[Kt](Et,It);for(let nn=Jt[ft].length,an=_n[ft].length;nnRt[Ct](Et)):typeof ht=="object"&&ht!==null?Object.assign({},ht):ht}[y](){const ht=Object.create(Object.getPrototypeOf(this));for(const Et of Object.getOwnPropertySymbols(this))try{ht[Et]=this[Et]}catch{(0,c.shadow)(ht,Et,this[Et])}ht[ze]=`${ht[Pe]}${vt++}`,ht[ft]=[];for(const Et of Object.getOwnPropertyNames(this)){if(this[_t].has(Et)){ht[Et]=Rt[Ct](this[Et]);continue}const It=this[Et];It instanceof At?ht[Et]=new At(It[kt]):ht[Et]=null}for(const Et of this[ft]){const It=Et[Pe],wt=Et[y]();ht[ft].push(wt),wt[Ht]=ht,ht[It]===null?ht[It]=wt:ht[It][ft].push(wt)}return ht}[ie](){let ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return ht?this[ft].filter(Et=>Et[Pe]===ht):this[ft]}[z](ht){return this[ht]}[X](ht,Et){let It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Array.from(this[q](ht,Et,It))}*[q](ht,Et){let It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(ht==="parent"){yield this[Ht];return}for(const wt of this[ft])wt[Pe]===ht&&(yield wt),wt.name===ht&&(yield wt),(Et||wt[Ne]())&&(yield*wt[q](ht,Et,!1));It&&this[_t].has(ht)&&(yield new Pt(this,ht,this[ht]))}}a.XFAObject=Rt;class At{constructor(){let ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1/0;this[kt]=ht,this[ft]=[]}push(ht){return this[ft].length<=this[kt]?(this[ft].push(ht),!0):((0,c.warn)(`XFA - node "${ht[Pe]}" accepts no more than ${this[kt]} children`),!1)}isEmpty(){return this[ft].length===0}dump(){return this[ft].length===1?this[ft][0][N]():this[ft].map(ht=>ht[N]())}[y](){const ht=new At(this[kt]);return ht[ft]=this[ft].map(Et=>Et[y]()),ht}get children(){return this[ft]}clear(){this[ft].length=0}}a.XFAObjectArray=At;class Pt{constructor(ht,Et,It){this[Ht]=ht,this[Pe]=Et,this[M]=It,this[D]=!1,this[ze]=`attribute${vt++}`}[ce](){return this[Ht]}[Ie](){return!0}[$](){return this[M].trim()}[je](ht){ht=ht.value||"",this[M]=ht.toString()}[nt](){return this[M]}[Ce](ht){return this[Ht]===ht||this[Ht][Ce](ht)}}a.XFAAttribute=Pt;class $t extends Rt{constructor(ht,Et){let It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(super(ht,Et),this[M]="",this[ut]=null,Et!=="#text"){const wt=new Map;this[st]=wt;for(const[Bt,Jt]of Object.entries(It))wt.set(Bt,new Pt(this,Bt,Jt));if(It.hasOwnProperty(qe)){const Bt=It[qe].xfa.dataNode;Bt!==void 0&&(Bt==="dataGroup"?this[ut]=!1:Bt==="dataValue"&&(this[ut]=!0))}}this[D]=!1}[ot](ht){const Et=this[Pe];if(Et==="#text"){ht.push((0,R.encodeToXmlString)(this[M]));return}const It=(0,c.utf8StringToString)(Et),wt=this[Fe]===xt?"xfa:":"";ht.push(`<${wt}${It}`);for(const[Bt,Jt]of this[st].entries()){const _n=(0,c.utf8StringToString)(Bt);ht.push(` ${_n}="${(0,R.encodeToXmlString)(Jt[M])}"`)}if(this[ut]!==null&&(this[ut]?ht.push(' xfa:dataNode="dataValue"'):ht.push(' xfa:dataNode="dataGroup"')),!this[M]&&this[ft].length===0){ht.push("/>");return}if(ht.push(">"),this[M])typeof this[M]=="string"?ht.push((0,R.encodeToXmlString)(this[M])):this[M][ot](ht);else for(const Bt of this[ft])Bt[ot](ht);ht.push(``)}[Le](ht){if(this[M]){const Et=new $t(this[Fe],"#text");this[B](Et),Et[M]=this[M],this[M]=""}return this[B](ht),!0}[Ee](ht){this[M]+=ht}[W](){if(this[M]&&this[ft].length>0){const ht=new $t(this[Fe],"#text");this[B](ht),ht[M]=this[M],delete this[M]}}[at](){return this[Pe]==="#text"?n.HTMLResult.success({name:"#text",value:this[M]}):n.HTMLResult.EMPTY}[ie](){let ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return ht?this[ft].filter(Et=>Et[Pe]===ht):this[ft]}[V](){return this[st]}[z](ht){const Et=this[st].get(ht);return Et!==void 0?Et:this[ie](ht)}*[q](ht,Et){const It=this[st].get(ht);It&&(yield It);for(const wt of this[ft])wt[Pe]===ht&&(yield wt),Et&&(yield*wt[q](ht,Et))}*[Y](ht,Et){const It=this[st].get(ht);It&&(!Et||!It[D])&&(yield It);for(const wt of this[ft])yield*wt[Y](ht,Et)}*[Q](ht,Et,It){for(const wt of this[ft])wt[Pe]===ht&&(!It||!wt[D])&&(yield wt),Et&&(yield*wt[Q](ht,Et,It))}[Ie](){return this[ut]===null?this[ft].length===0||this[ft][0][Fe]===v.NamespaceIds.xhtml.id:this[ut]}[$](){return this[ut]===null?this[ft].length===0?this[M].trim():this[ft][0][Fe]===v.NamespaceIds.xhtml.id?this[ft][0][nt]().trim():null:this[M].trim()}[je](ht){ht=ht.value||"",this[M]=ht.toString()}[N](){let ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Et=Object.create(null);ht&&(Et.$ns=this[Fe]),this[M]&&(Et.$content=this[M]),Et.$name=this[Pe],Et.children=[];for(const It of this[ft])Et.children.push(It[N](ht));Et.attributes=Object.create(null);for(const[It,wt]of this[st])Et.attributes[It]=wt[M];return Et}}a.XmlObject=$t;class Wt extends Rt{constructor(ht,Et){super(ht,Et),this[M]=""}[Ee](ht){this[M]+=ht}[W](){}}a.ContentObject=Wt;class Dt extends Wt{constructor(ht,Et,It){super(ht,Et),this[Ut]=It}[W](){this[M]=(0,n.getKeyword)({data:this[M],defaultValue:this[Ut][0],validate:ht=>this[Ut].includes(ht)})}[S](ht){super[S](ht),delete this[Ut]}}a.OptionObject=Dt;class Yt extends Wt{[W](){this[M]=this[M].trim()}}a.StringObject=Yt;class Vt extends Wt{constructor(ht,Et,It,wt){super(ht,Et),this[rt]=It,this[pn]=wt}[W](){this[M]=(0,n.getInteger)({data:this[M],defaultValue:this[rt],validate:this[pn]})}[S](ht){super[S](ht),delete this[rt],delete this[pn]}}a.IntegerObject=Vt;class rn extends Vt{constructor(ht,Et){super(ht,Et,0,It=>It===1)}}a.Option01=rn;class en extends Vt{constructor(ht,Et){super(ht,Et,1,It=>It===0)}}a.Option10=en},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.HTMLResult=void 0,a.getBBox=y,a.getColor=l,a.getFloat=L,a.getInteger=e,a.getKeyword=O,a.getMeasurement=P,a.getRatio=S,a.getRelevant=_,a.getStringOption=B,a.stripQuotes=v;var n=g(2);const c={pt:M=>M,cm:M=>M/2.54*72,mm:M=>M/(10*2.54)*72,in:M=>M*72,px:M=>M},R=/([+-]?\d+\.?\d*)(.*)/;function v(M){return M.startsWith("'")||M.startsWith('"')?M.slice(1,M.length-1):M}function e(M){let{data:F,defaultValue:N,validate:G}=M;if(!F)return N;F=F.trim();const W=parseInt(F,10);return!isNaN(W)&&G(W)?W:N}function L(M){let{data:F,defaultValue:N,validate:G}=M;if(!F)return N;F=F.trim();const W=parseFloat(F);return!isNaN(W)&&G(W)?W:N}function O(M){let{data:F,defaultValue:N,validate:G}=M;return F?(F=F.trim(),G(F)?F:N):N}function B(M,F){return O({data:M,defaultValue:F[0],validate:N=>F.includes(N)})}function P(M){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0";if(F=F||"0",!M)return P(F);const N=M.trim().match(R);if(!N)return P(F);const[,G,W]=N,J=parseFloat(G);if(isNaN(J))return P(F);if(J===0)return 0;const Y=c[W];return Y?Y(J):J}function S(M){if(!M)return{num:1,den:1};const F=M.trim().split(/\s*:\s*/).map(W=>parseFloat(W)).filter(W=>!isNaN(W));if(F.length===1&&F.push(1),F.length===0)return{num:1,den:1};const[N,G]=F;return{num:N,den:G}}function _(M){return M?M.trim().split(/\s+/).map(F=>({excluded:F[0]==="-",viewname:F.substring(1)})):[]}function l(M){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0,0],[N,G,W]=F;if(!M)return{r:N,g:G,b:W};const J=M.trim().split(/\s*,\s*/).map(Y=>Math.min(Math.max(0,parseInt(Y.trim(),10)),255)).map(Y=>isNaN(Y)?0:Y);return J.length<3?{r:N,g:G,b:W}:([N,G,W]=J,{r:N,g:G,b:W})}function y(M){if(!M)return{x:-1,y:-1,width:-1,height:-1};const N=M.trim().split(/\s*,\s*/).map(V=>P(V,"-1"));if(N.length<4||N[2]<0||N[3]<0)return{x:-1,y:-1,width:-1,height:-1};const[G,W,J,Y]=N;return{x:G,y:W,width:J,height:Y}}class D{static get FAILURE(){return(0,n.shadow)(this,"FAILURE",new D(!1,null,null,null))}static get EMPTY(){return(0,n.shadow)(this,"EMPTY",new D(!0,null,null,null))}constructor(F,N,G,W){this.success=F,this.html=N,this.bbox=G,this.breakNode=W}isBreak(){return!!this.breakNode}static breakNode(F){return new D(!1,null,null,F)}static success(F){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return new D(!0,F,N,null)}}a.HTMLResult=D},(x,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.NamespaceIds=a.$buildXFAObject=void 0;const g=Symbol();a.$buildXFAObject=g;const n={config:{id:0,check:c=>c.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:c=>c.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:c=>c.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:c=>c.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:c=>c.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:c=>c==="http://ns.adobe.com/xdp/pdf/"},signature:{id:6,check:c=>c==="http://www.w3.org/2000/09/xmldsig#"},sourceSet:{id:7,check:c=>c.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:c=>c==="http://www.w3.org/1999/XSL/Transform"},template:{id:9,check:c=>c.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:c=>c.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:c=>c==="http://ns.adobe.com/xdp/"},xfdf:{id:12,check:c=>c==="http://ns.adobe.com/xfdf/"},xhtml:{id:13,check:c=>c==="http://www.w3.org/1999/xhtml"},xmpmeta:{id:14,check:c=>c==="http://ns.adobe.com/xmpmeta/"}};a.NamespaceIds=n},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.createDataNode=D,a.searchNode=l;var n=g(202),c=g(204),R=g(2);const v=/^[^.[]+/,e=/^[^\]]+/,L={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},O=new Map([["$data",(M,F)=>M.datasets?M.datasets.data:M],["$record",(M,F)=>(M.datasets?M.datasets.data:M)[n.$getChildren]()[0]],["$template",(M,F)=>M.template],["$connectionSet",(M,F)=>M.connectionSet],["$form",(M,F)=>M.form],["$layout",(M,F)=>M.layout],["$host",(M,F)=>M.host],["$dataWindow",(M,F)=>M.dataWindow],["$event",(M,F)=>M.event],["!",(M,F)=>M.datasets],["$xfa",(M,F)=>M],["xfa",(M,F)=>M],["$",(M,F)=>F]]),B=new WeakMap,P=c.NamespaceIds.datasets.id;function S(M){return M=M.trim(),M==="*"?1/0:parseInt(M,10)||0}function _(M,F){let N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,G=M.match(v);if(!G)return null;let[W]=G;const J=[{name:W,cacheName:"."+W,index:0,js:null,formCalc:null,operator:L.dot}];let Y=W.length;for(;Y3&&arguments[3]!==void 0?arguments[3]:!0,W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;const J=_(N,G);if(!J)return null;const Y=O.get(J[0].name);let V=0,H;Y?(H=!0,M=[Y(M,F)],V=1):(H=F===null,M=[F||M]);for(let z=J.length;V0&&Q.push(Te)}if(Q.length===0&&!H&&V===0){if(F=F[n.$getParent](),!F)return null;V=-1,M=[F];continue}isFinite(fe)?M=Q.filter(ie=>feie[fe]):M=Q.flat()}return M.length===0?null:M}function y(M,F){let N=null;for(const{name:G,index:W}of F){for(let J=0,Y=isFinite(W)?W:0;J<=Y;J++){const V=M[n.$namespaceId]===P?-1:M[n.$namespaceId];N=new n.XmlObject(V,G),M[n.$appendChild](N)}M=N}return N}function D(M,F,N){const G=_(N);if(!G||G.some(Y=>Y.operator===L.dotDot))return null;const W=O.get(G[0].name);let J=0;W?(M=W(M,F),J=1):M=F||M;for(let Y=G.length;J{Object.defineProperty(a,"__esModule",{value:!0}),a.Binder=void 0;var n=g(202),c=g(207),R=g(205),v=g(204),e=g(2);const L=v.NamespaceIds.datasets.id;function O(P){const S=new c.Text({});return S[n.$content]=P,S}class B{constructor(S){this.root=S,this.datasets=S.datasets,S.datasets&&S.datasets.data?this.data=S.datasets.data:this.data=new n.XmlObject(v.NamespaceIds.datasets.id,"data"),this.emptyMerge=this.data[n.$getChildren]().length===0,this.root.form=this.form=S.template[n.$clone]()}_isConsumeData(){return!this.emptyMerge&&this._mergeMode}_isMatchTemplate(){return!this._isConsumeData()}bind(){return this._bindElement(this.form,this.data),this.form}getData(){return this.data}_bindValue(S,_,l){if(S[n.$data]=_,S[n.$hasSettableValue]())if(_[n.$isDataValue]()){const y=_[n.$getDataValue]();S[n.$setValue](O(y))}else if(S instanceof c.Field&&S.ui&&S.ui.choiceList&&S.ui.choiceList.open==="multiSelect"){const y=_[n.$getChildren]().map(D=>D[n.$content].trim()).join(` `);S[n.$setValue](O(y))}else this._isConsumeData()&&(0,e.warn)("XFA - Nodes haven't the same type.");else!_[n.$isDataValue]()||this._isMatchTemplate()?this._bindElement(S,_):(0,e.warn)("XFA - Nodes haven't the same type.")}_findDataByNameToConsume(S,_,l,y){if(!S)return null;let D,M;for(let F=0;F<3;F++){for(D=l[n.$getRealChildrenByNameIt](S,!1,!0);M=D.next().value,!!M;)if(_===M[n.$isDataValue]())return M;if(l[n.$namespaceId]===v.NamespaceIds.datasets.id&&l[n.$nodeName]==="data")break;l=l[n.$getParent]()}return y?(D=this.data[n.$getRealChildrenByNameIt](S,!0,!1),M=D.next().value,M||(D=this.data[n.$getAttributeIt](S,!0),M=D.next().value,M&&M[n.$isDataValue]())?M:null):null}_setProperties(S,_){if(S.hasOwnProperty("setProperty"))for(const{ref:l,target:y,connection:D}of S.setProperty.children){if(D||!l)continue;const M=(0,R.searchNode)(this.root,_,l,!1,!1);if(!M){(0,e.warn)(`XFA - Invalid reference: ${l}.`);continue}const[F]=M;if(!F[n.$isDescendent](this.data)){(0,e.warn)("XFA - Invalid node: must be a data node.");continue}const N=(0,R.searchNode)(this.root,S,y,!1,!1);if(!N){(0,e.warn)(`XFA - Invalid target: ${y}.`);continue}const[G]=N;if(!G[n.$isDescendent](S)){(0,e.warn)("XFA - Invalid target: must be a property or subproperty.");continue}const W=G[n.$getParent]();if(G instanceof c.SetProperty||W instanceof c.SetProperty){(0,e.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");continue}if(G instanceof c.BindItems||W instanceof c.BindItems){(0,e.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");continue}const J=F[n.$text](),Y=G[n.$nodeName];if(G instanceof n.XFAAttribute){const V=Object.create(null);V[Y]=J;const H=Reflect.construct(Object.getPrototypeOf(W).constructor,[V]);W[Y]=H[Y];continue}if(!G.hasOwnProperty(n.$content)){(0,e.warn)("XFA - Invalid node to use in setProperty");continue}G[n.$data]=F,G[n.$content]=J,G[n.$finalize]()}}_bindItems(S,_){if(!S.hasOwnProperty("items")||!S.hasOwnProperty("bindItems")||S.bindItems.isEmpty())return;for(const D of S.items.children)S[n.$removeChild](D);S.items.clear();const l=new c.Items({}),y=new c.Items({});S[n.$appendChild](l),S.items.push(l),S[n.$appendChild](y),S.items.push(y);for(const{ref:D,labelRef:M,valueRef:F,connection:N}of S.bindItems.children){if(N||!D)continue;const G=(0,R.searchNode)(this.root,_,D,!1,!1);if(!G){(0,e.warn)(`XFA - Invalid reference: ${D}.`);continue}for(const W of G){if(!W[n.$isDescendent](this.datasets)){(0,e.warn)(`XFA - Invalid ref (${D}): must be a datasets child.`);continue}const J=(0,R.searchNode)(this.root,W,M,!0,!1);if(!J){(0,e.warn)(`XFA - Invalid label: ${M}.`);continue}const[Y]=J;if(!Y[n.$isDescendent](this.datasets)){(0,e.warn)("XFA - Invalid label: must be a datasets child.");continue}const V=(0,R.searchNode)(this.root,W,F,!0,!1);if(!V){(0,e.warn)(`XFA - Invalid value: ${F}.`);continue}const[H]=V;if(!H[n.$isDescendent](this.datasets)){(0,e.warn)("XFA - Invalid value: must be a datasets child.");continue}const z=O(Y[n.$text]()),X=O(H[n.$text]());l[n.$appendChild](z),l.text.push(z),y[n.$appendChild](X),y.text.push(X)}}}_bindOccurrences(S,_,l){let y;if(_.length>1&&(y=S[n.$clone](),y[n.$removeChild](y.occur),y.occur=null),this._bindValue(S,_[0],l),this._setProperties(S,_[0]),this._bindItems(S,_[0]),_.length===1)return;const D=S[n.$getParent](),M=S[n.$nodeName],F=D[n.$indexOf](S);for(let N=1,G=_.length;NN.name===S.name).length:D=l[y].children.length;const M=l[n.$indexOf](S)+1,F=_.initial-D;if(F){const N=S[n.$clone]();N[n.$removeChild](N.occur),N.occur=null,l[y].push(N),l[n.$insertAt](M,N);for(let G=1;G0)this._bindOccurrences(y,[J[0]],null);else if(this.emptyMerge){const Y=_[n.$namespaceId]===L?-1:_[n.$namespaceId],V=y[n.$data]=new n.XmlObject(Y,y.name||"root");_[n.$appendChild](V),this._bindElement(y,V)}continue}if(!y[n.$isBindable]())continue;let D=!1,M=null,F=null,N=null;if(y.bind){switch(y.bind.match){case"none":this._setAndBind(y,_);continue;case"global":D=!0;break;case"dataRef":if(!y.bind.ref){(0,e.warn)(`XFA - ref is empty in node ${y[n.$nodeName]}.`),this._setAndBind(y,_);continue}F=y.bind.ref;break}y.bind.picture&&(M=y.bind.picture[n.$content])}const[G,W]=this._getOccurInfo(y);if(F)if(N=(0,R.searchNode)(this.root,_,F,!0,!1),N===null){if(N=(0,R.createDataNode)(this.data,_,F),!N)continue;this._isConsumeData()&&(N[n.$consumed]=!0),this._setAndBind(y,N);continue}else this._isConsumeData()&&(N=N.filter(J=>!J[n.$consumed])),N.length>W?N=N.slice(0,W):N.length===0&&(N=null),N&&this._isConsumeData()&&N.forEach(J=>{J[n.$consumed]=!0});else{if(!y.name){this._setAndBind(y,_);continue}if(this._isConsumeData()){const J=[];for(;J.length0?J:null}else{if(N=_[n.$getRealChildrenByNameIt](y.name,!1,this.emptyMerge).next().value,!N){if(G===0){l.push(y);continue}const J=_[n.$namespaceId]===L?-1:_[n.$namespaceId];N=y[n.$data]=new n.XmlObject(J,y.name),this.emptyMerge&&(N[n.$consumed]=!0),_[n.$appendChild](N),this._setAndBind(y,N);continue}this.emptyMerge&&(N[n.$consumed]=!0),N=[N]}}N?this._bindOccurrences(y,N,M):G>0?this._setAndBind(y,_):l.push(y)}l.forEach(y=>y[n.$getParent]()[n.$removeChild](y))}}a.Binder=B},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Value=a.Text=a.TemplateNamespace=a.Template=a.SetProperty=a.Items=a.Field=a.BindItems=void 0;var n=g(202),c=g(204),R=g(208),v=g(209),e=g(203),L=g(2),O=g(210),B=g(131),P=g(205);const S=c.NamespaceIds.template.id,_="http://www.w3.org/2000/svg",l=2,y=3,D=5e3,M=/^H(\d+)$/,F=new Set(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/apng","image/x-png","image/bmp","image/x-ms-bmp","image/tiff","image/tif","application/octet-stream"]),N=[[[66,77],"image/bmp"],[[255,216,255],"image/jpeg"],[[73,73,42,0],"image/tiff"],[[77,77,0,42],"image/tiff"],[[71,73,70,56,57,97],"image/gif"],[[137,80,78,71,13,10,26,10],"image/png"]];function G(yt){if(!yt||!yt.border)return{w:0,h:0};const te=yt.border[n.$getExtra]();return te?{w:te.widths[0]+te.widths[2]+te.insets[0]+te.insets[2],h:te.widths[1]+te.widths[3]+te.insets[1]+te.insets[3]}:{w:0,h:0}}function W(yt){return yt.margin&&(yt.margin.topInset||yt.margin.rightInset||yt.margin.bottomInset||yt.margin.leftInset)}function J(yt,te){if(!yt.value){const Ge=new mr({});yt[n.$appendChild](Ge),yt.value=Ge}yt.value[n.$setValue](te)}function*Y(yt){for(const te of yt[n.$getChildren]()){if(te instanceof ur){yield*te[n.$getContainedChildren]();continue}yield te}}function V(yt){return yt.validate&&yt.validate.nullTest==="error"}function H(yt){for(;yt;){if(!yt.traversal){yt[n.$tabIndex]=yt[n.$getParent]()[n.$tabIndex];return}if(yt[n.$tabIndex])return;let te=null;for(const Tt of yt.traversal[n.$getChildren]())if(Tt.operation==="next"){te=Tt;break}if(!te||!te.ref){yt[n.$tabIndex]=yt[n.$getParent]()[n.$tabIndex];return}const Ge=yt[n.$getTemplateRoot]();yt[n.$tabIndex]=++Ge[n.$tabIndex];const bt=Ge[n.$searchNode](te.ref,yt);if(!bt)return;yt=bt[0]}}function z(yt,te){const Ge=yt.assist;if(Ge){const bt=Ge[n.$toHTML]();bt&&(te.title=bt);const Ft=Ge.role.match(M);if(Ft){const Zt="heading",Qt=Ft[1];te.role=Zt,te["aria-level"]=Qt}}if(yt.layout==="table")te.role="table";else if(yt.layout==="row")te.role="row";else{const bt=yt[n.$getParent]();bt.layout==="row"&&(bt.assist&&bt.assist.role==="TH"?te.role="columnheader":te.role="cell")}}function X(yt){if(!yt.assist)return null;const te=yt.assist;return te.speak&&te.speak[n.$content]!==""?te.speak[n.$content]:te.toolTip?te.toolTip[n.$content]:null}function q(yt){return e.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:yt}]})}function $(yt){const te=yt[n.$getTemplateRoot]();te[n.$extra].firstUnsplittable===null&&(te[n.$extra].firstUnsplittable=yt,te[n.$extra].noLayoutFailure=!0)}function fe(yt){const te=yt[n.$getTemplateRoot]();te[n.$extra].firstUnsplittable===yt&&(te[n.$extra].noLayoutFailure=!1)}function Q(yt){if(yt[n.$extra]||(yt[n.$extra]=Object.create(null),yt.targetType==="auto"))return!1;const te=yt[n.$getTemplateRoot]();let Ge=null;if(yt.target){if(Ge=te[n.$searchNode](yt.target,yt[n.$getParent]()),!Ge)return!1;Ge=Ge[0]}const{currentPageArea:bt,currentContentArea:Tt}=te[n.$extra];if(yt.targetType==="pageArea")return Ge instanceof wt||(Ge=null),yt.startNew?(yt[n.$extra].target=Ge||bt,!0):Ge&&Ge!==bt?(yt[n.$extra].target=Ge,!0):!1;Ge instanceof Le||(Ge=null);const Ft=Ge&&Ge[n.$getParent]();let Zt,Qt=Ft;if(yt.startNew)if(Ge){const tn=Ft.contentArea.children,on=tn.indexOf(Tt),gn=tn.indexOf(Ge);on!==-1&&onyt,bt[n.$extra].noLayoutFailure=!0;const Zt=te[n.$toHTML](Ge);yt[n.$addHTML](Zt.html,Zt.bbox),bt[n.$extra].noLayoutFailure=Tt,te[n.$getSubformParent]=Ft}class Te extends n.StringObject{constructor(te){super(S,"appearanceFilter"),this.id=te.id||"",this.type=(0,e.getStringOption)(te.type,["optional","required"]),this.use=te.use||"",this.usehref=te.usehref||""}}class me extends n.XFAObject{constructor(te){super(S,"arc",!0),this.circular=(0,e.getInteger)({data:te.circular,defaultValue:0,validate:Ge=>Ge===1}),this.hand=(0,e.getStringOption)(te.hand,["even","left","right"]),this.id=te.id||"",this.startAngle=(0,e.getFloat)({data:te.startAngle,defaultValue:0,validate:Ge=>!0}),this.sweepAngle=(0,e.getFloat)({data:te.sweepAngle,defaultValue:360,validate:Ge=>!0}),this.use=te.use||"",this.usehref=te.usehref||"",this.edge=null,this.fill=null}[n.$toHTML](){const te=this.edge||new tt({}),Ge=te[n.$toStyle](),bt=Object.create(null);this.fill&&this.fill.presence==="visible"?Object.assign(bt,this.fill[n.$toStyle]()):bt.fill="transparent",bt.strokeWidth=(0,v.measureToString)(te.presence==="visible"?te.thickness:0),bt.stroke=Ge.color;let Tt;const Ft={xmlns:_,style:{width:"100%",height:"100%",overflow:"visible"}};if(this.sweepAngle===360)Tt={name:"ellipse",attributes:{xmlns:_,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:bt}};else{const tn=this.startAngle*Math.PI/180,on=this.sweepAngle*Math.PI/180,gn=this.sweepAngle>180?1:0,[xn,yn,Tn,En]=[50*(1+Math.cos(tn)),50*(1-Math.sin(tn)),50*(1+Math.cos(tn+on)),50*(1-Math.sin(tn+on))];Tt={name:"path",attributes:{xmlns:_,d:`M ${xn} ${yn} A 50 50 0 ${gn} 0 ${Tn} ${En}`,vectorEffect:"non-scaling-stroke",style:bt}},Object.assign(Ft,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}const Zt={name:"svg",children:[Tt],attributes:Ft},Qt=this[n.$getParent]()[n.$getParent]();return W(Qt)?e.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[Zt]}):(Zt.attributes.style.position="absolute",e.HTMLResult.success(Zt))}}class K extends n.XFAObject{constructor(te){super(S,"area",!0),this.colSpan=(0,e.getInteger)({data:te.colSpan,defaultValue:1,validate:Ge=>Ge>=1||Ge===-1}),this.id=te.id||"",this.name=te.name||"",this.relevant=(0,e.getRelevant)(te.relevant),this.use=te.use||"",this.usehref=te.usehref||"",this.x=(0,e.getMeasurement)(te.x,"0pt"),this.y=(0,e.getMeasurement)(te.y,"0pt"),this.desc=null,this.extras=null,this.area=new n.XFAObjectArray,this.draw=new n.XFAObjectArray,this.exObject=new n.XFAObjectArray,this.exclGroup=new n.XFAObjectArray,this.field=new n.XFAObjectArray,this.subform=new n.XFAObjectArray,this.subformSet=new n.XFAObjectArray}*[n.$getContainedChildren](){yield*Y(this)}[n.$isTransparent](){return!0}[n.$isBindable](){return!0}[n.$addHTML](te,Ge){const[bt,Tt,Ft,Zt]=Ge;this[n.$extra].width=Math.max(this[n.$extra].width,bt+Ft),this[n.$extra].height=Math.max(this[n.$extra].height,Tt+Zt),this[n.$extra].children.push(te)}[n.$getAvailableSpace](){return this[n.$extra].availableSpace}[n.$toHTML](te){const Ge=(0,v.toStyle)(this,"position"),bt={style:Ge,id:this[n.$uid],class:["xfaArea"]};(0,v.isPrintOnly)(this)&&bt.class.push("xfaPrintOnly"),this.name&&(bt.xfaName=this.name);const Tt=[];this[n.$extra]={children:Tt,width:0,height:0,availableSpace:te};const Ft=this[n.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!Ft.success)return Ft.isBreak()?Ft:(delete this[n.$extra],e.HTMLResult.FAILURE);Ge.width=(0,v.measureToString)(this[n.$extra].width),Ge.height=(0,v.measureToString)(this[n.$extra].height);const Zt={name:"div",attributes:bt,children:Tt},Qt=[this.x,this.y,this[n.$extra].width,this[n.$extra].height];return delete this[n.$extra],e.HTMLResult.success(Zt,Qt)}}class ce extends n.XFAObject{constructor(te){super(S,"assist",!0),this.id=te.id||"",this.role=te.role||"",this.use=te.use||"",this.usehref=te.usehref||"",this.speak=null,this.toolTip=null}[n.$toHTML](){return this.toolTip&&this.toolTip[n.$content]?this.toolTip[n.$content]:null}}class de extends n.XFAObject{constructor(te){super(S,"barcode",!0),this.charEncoding=(0,e.getKeyword)({data:te.charEncoding?te.charEncoding.toLowerCase():"",defaultValue:"",validate:Ge=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(Ge)||Ge.match(/iso-8859-\d{2}/)}),this.checksum=(0,e.getStringOption)(te.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),this.dataColumnCount=(0,e.getInteger)({data:te.dataColumnCount,defaultValue:-1,validate:Ge=>Ge>=0}),this.dataLength=(0,e.getInteger)({data:te.dataLength,defaultValue:-1,validate:Ge=>Ge>=0}),this.dataPrep=(0,e.getStringOption)(te.dataPrep,["none","flateCompress"]),this.dataRowCount=(0,e.getInteger)({data:te.dataRowCount,defaultValue:-1,validate:Ge=>Ge>=0}),this.endChar=te.endChar||"",this.errorCorrectionLevel=(0,e.getInteger)({data:te.errorCorrectionLevel,defaultValue:-1,validate:Ge=>Ge>=0&&Ge<=8}),this.id=te.id||"",this.moduleHeight=(0,e.getMeasurement)(te.moduleHeight,"5mm"),this.moduleWidth=(0,e.getMeasurement)(te.moduleWidth,"0.25mm"),this.printCheckDigit=(0,e.getInteger)({data:te.printCheckDigit,defaultValue:0,validate:Ge=>Ge===1}),this.rowColumnRatio=(0,e.getRatio)(te.rowColumnRatio),this.startChar=te.startChar||"",this.textLocation=(0,e.getStringOption)(te.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),this.truncate=(0,e.getInteger)({data:te.truncate,defaultValue:0,validate:Ge=>Ge===1}),this.type=(0,e.getStringOption)(te.type?te.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]),this.upsMode=(0,e.getStringOption)(te.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),this.use=te.use||"",this.usehref=te.usehref||"",this.wideNarrowRatio=(0,e.getRatio)(te.wideNarrowRatio),this.encrypt=null,this.extras=null}}class Z extends n.XFAObject{constructor(te){super(S,"bind",!0),this.match=(0,e.getStringOption)(te.match,["once","dataRef","global","none"]),this.ref=te.ref||"",this.picture=null}}class ae extends n.XFAObject{constructor(te){super(S,"bindItems"),this.connection=te.connection||"",this.labelRef=te.labelRef||"",this.ref=te.ref||"",this.valueRef=te.valueRef||""}}a.BindItems=ae;class he extends n.XFAObject{constructor(te){super(S,"bookend"),this.id=te.id||"",this.leader=te.leader||"",this.trailer=te.trailer||"",this.use=te.use||"",this.usehref=te.usehref||""}}class we extends n.Option01{constructor(te){super(S,"boolean"),this.id=te.id||"",this.name=te.name||"",this.use=te.use||"",this.usehref=te.usehref||""}[n.$toHTML](te){return q(this[n.$content]===1?"1":"0")}}class _e extends n.XFAObject{constructor(te){super(S,"border",!0),this.break=(0,e.getStringOption)(te.break,["close","open"]),this.hand=(0,e.getStringOption)(te.hand,["even","left","right"]),this.id=te.id||"",this.presence=(0,e.getStringOption)(te.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,e.getRelevant)(te.relevant),this.use=te.use||"",this.usehref=te.usehref||"",this.corner=new n.XFAObjectArray(4),this.edge=new n.XFAObjectArray(4),this.extras=null,this.fill=null,this.margin=null}[n.$getExtra](){if(!this[n.$extra]){const te=this.edge.children.slice();if(te.length<4){const Tt=te.at(-1)||new tt({});for(let Ft=te.length;Ft<4;Ft++)te.push(Tt)}const Ge=te.map(Tt=>Tt.thickness),bt=[0,0,0,0];this.margin&&(bt[0]=this.margin.topInset,bt[1]=this.margin.rightInset,bt[2]=this.margin.bottomInset,bt[3]=this.margin.leftInset),this[n.$extra]={widths:Ge,insets:bt,edges:te}}return this[n.$extra]}[n.$toStyle](){const{edges:te}=this[n.$getExtra](),Ge=te.map(Tt=>{const Ft=Tt[n.$toStyle]();return Ft.color=Ft.color||"#000000",Ft}),bt=Object.create(null);if(this.margin&&Object.assign(bt,this.margin[n.$toStyle]()),this.fill&&this.fill.presence==="visible"&&Object.assign(bt,this.fill[n.$toStyle]()),this.corner.children.some(Tt=>Tt.radius!==0)){const Tt=this.corner.children.map(Ft=>Ft[n.$toStyle]());if(Tt.length===2||Tt.length===3){const Ft=Tt.at(-1);for(let Zt=Tt.length;Zt<4;Zt++)Tt.push(Ft)}bt.borderRadius=Tt.map(Ft=>Ft.radius).join(" ")}switch(this.presence){case"invisible":case"hidden":bt.borderStyle="";break;case"inactive":bt.borderStyle="none";break;default:bt.borderStyle=Ge.map(Tt=>Tt.style).join(" ");break}return bt.borderWidth=Ge.map(Tt=>Tt.width).join(" "),bt.borderColor=Ge.map(Tt=>Tt.color).join(" "),bt}}class ye extends n.XFAObject{constructor(te){super(S,"break",!0),this.after=(0,e.getStringOption)(te.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.afterTarget=te.afterTarget||"",this.before=(0,e.getStringOption)(te.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.beforeTarget=te.beforeTarget||"",this.bookendLeader=te.bookendLeader||"",this.bookendTrailer=te.bookendTrailer||"",this.id=te.id||"",this.overflowLeader=te.overflowLeader||"",this.overflowTarget=te.overflowTarget||"",this.overflowTrailer=te.overflowTrailer||"",this.startNew=(0,e.getInteger)({data:te.startNew,defaultValue:0,validate:Ge=>Ge===1}),this.use=te.use||"",this.usehref=te.usehref||"",this.extras=null}}class se extends n.XFAObject{constructor(te){super(S,"breakAfter",!0),this.id=te.id||"",this.leader=te.leader||"",this.startNew=(0,e.getInteger)({data:te.startNew,defaultValue:0,validate:Ge=>Ge===1}),this.target=te.target||"",this.targetType=(0,e.getStringOption)(te.targetType,["auto","contentArea","pageArea"]),this.trailer=te.trailer||"",this.use=te.use||"",this.usehref=te.usehref||"",this.script=null}}class Ie extends n.XFAObject{constructor(te){super(S,"breakBefore",!0),this.id=te.id||"",this.leader=te.leader||"",this.startNew=(0,e.getInteger)({data:te.startNew,defaultValue:0,validate:Ge=>Ge===1}),this.target=te.target||"",this.targetType=(0,e.getStringOption)(te.targetType,["auto","contentArea","pageArea"]),this.trailer=te.trailer||"",this.use=te.use||"",this.usehref=te.usehref||"",this.script=null}[n.$toHTML](te){return this[n.$extra]={},e.HTMLResult.FAILURE}}class Ce extends n.XFAObject{constructor(te){super(S,"button",!0),this.highlight=(0,e.getStringOption)(te.highlight,["inverted","none","outline","push"]),this.id=te.id||"",this.use=te.use||"",this.usehref=te.usehref||"",this.extras=null}[n.$toHTML](te){const bt=this[n.$getParent]()[n.$getParent](),Tt={name:"button",attributes:{id:this[n.$uid],class:["xfaButton"],style:{}},children:[]};for(const Ft of bt.event.children){if(Ft.activity!=="click"||!Ft.script)continue;const Zt=(0,B.recoverJsURL)(Ft.script[n.$content]);if(!Zt)continue;const Qt=(0,v.fixURL)(Zt.url);Qt&&Tt.children.push({name:"a",attributes:{id:"link"+this[n.$uid],href:Qt,newWindow:Zt.newWindow,class:["xfaLink"],style:{}},children:[]})}return e.HTMLResult.success(Tt)}}class oe extends n.XFAObject{constructor(te){super(S,"calculate",!0),this.id=te.id||"",this.override=(0,e.getStringOption)(te.override,["disabled","error","ignore","warning"]),this.use=te.use||"",this.usehref=te.usehref||"",this.extras=null,this.message=null,this.script=null}}class pe extends n.XFAObject{constructor(te){super(S,"caption",!0),this.id=te.id||"",this.placement=(0,e.getStringOption)(te.placement,["left","bottom","inline","right","top"]),this.presence=(0,e.getStringOption)(te.presence,["visible","hidden","inactive","invisible"]),this.reserve=Math.ceil((0,e.getMeasurement)(te.reserve)),this.use=te.use||"",this.usehref=te.usehref||"",this.extras=null,this.font=null,this.margin=null,this.para=null,this.value=null}[n.$setValue](te){J(this,te)}[n.$getExtra](te){if(!this[n.$extra]){let{width:Ge,height:bt}=te;switch(this.placement){case"left":case"right":case"inline":Ge=this.reserve<=0?Ge:this.reserve;break;case"top":case"bottom":bt=this.reserve<=0?bt:this.reserve;break}this[n.$extra]=(0,v.layoutNode)(this,{width:Ge,height:bt})}return this[n.$extra]}[n.$toHTML](te){if(!this.value)return e.HTMLResult.EMPTY;this[n.$pushPara]();const Ge=this.value[n.$toHTML](te).html;if(!Ge)return this[n.$popPara](),e.HTMLResult.EMPTY;const bt=this.reserve;if(this.reserve<=0){const{w:Zt,h:Qt}=this[n.$getExtra](te);switch(this.placement){case"left":case"right":case"inline":this.reserve=Zt;break;case"top":case"bottom":this.reserve=Qt;break}}const Tt=[];typeof Ge=="string"?Tt.push({name:"#text",value:Ge}):Tt.push(Ge);const Ft=(0,v.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(Ft.width=(0,v.measureToString)(this.reserve));break;case"top":case"bottom":this.reserve>0&&(Ft.height=(0,v.measureToString)(this.reserve));break}return(0,v.setPara)(this,null,Ge),this[n.$popPara](),this.reserve=bt,e.HTMLResult.success({name:"div",attributes:{style:Ft,class:["xfaCaption"]},children:Tt})}}class xe extends n.StringObject{constructor(te){super(S,"certificate"),this.id=te.id||"",this.name=te.name||"",this.use=te.use||"",this.usehref=te.usehref||""}}class Ne extends n.XFAObject{constructor(te){super(S,"certificates",!0),this.credentialServerPolicy=(0,e.getStringOption)(te.credentialServerPolicy,["optional","required"]),this.id=te.id||"",this.url=te.url||"",this.urlPolicy=te.urlPolicy||"",this.use=te.use||"",this.usehref=te.usehref||"",this.encryption=null,this.issuers=null,this.keyUsage=null,this.oids=null,this.signing=null,this.subjectDNs=null}}class ke extends n.XFAObject{constructor(te){super(S,"checkButton",!0),this.id=te.id||"",this.mark=(0,e.getStringOption)(te.mark,["default","check","circle","cross","diamond","square","star"]),this.shape=(0,e.getStringOption)(te.shape,["square","round"]),this.size=(0,e.getMeasurement)(te.size,"10pt"),this.use=te.use||"",this.usehref=te.usehref||"",this.border=null,this.extras=null,this.margin=null}[n.$toHTML](te){const Ge=(0,v.toStyle)("margin"),bt=(0,v.measureToString)(this.size);Ge.width=Ge.height=bt;let Tt,Ft,Zt;const Qt=this[n.$getParent]()[n.$getParent](),tn=Qt.items.children.length&&Qt.items.children[0][n.$toHTML]().html||[],on={on:(tn[0]!==void 0?tn[0]:"on").toString(),off:(tn[1]!==void 0?tn[1]:"off").toString()},xn=(Qt.value&&Qt.value[n.$text]()||"off")===on.on||void 0,yn=Qt[n.$getSubformParent](),Tn=Qt[n.$uid];let En;yn instanceof _t?(Zt=yn[n.$uid],Tt="radio",Ft="xfaRadio",En=yn[n.$data]&&yn[n.$data][n.$uid]||yn[n.$uid]):(Tt="checkbox",Ft="xfaCheckbox",En=Qt[n.$data]&&Qt[n.$data][n.$uid]||Qt[n.$uid]);const ln={name:"input",attributes:{class:[Ft],style:Ge,fieldId:Tn,dataId:En,type:Tt,checked:xn,xfaOn:on.on,xfaOff:on.off,"aria-label":X(Qt),"aria-required":!1}};return Zt&&(ln.attributes.name=Zt),V(Qt)&&(ln.attributes["aria-required"]=!0,ln.attributes.required=!0),e.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[ln]})}}class De extends n.XFAObject{constructor(te){super(S,"choiceList",!0),this.commitOn=(0,e.getStringOption)(te.commitOn,["select","exit"]),this.id=te.id||"",this.open=(0,e.getStringOption)(te.open,["userControl","always","multiSelect","onEntry"]),this.textEntry=(0,e.getInteger)({data:te.textEntry,defaultValue:0,validate:Ge=>Ge===1}),this.use=te.use||"",this.usehref=te.usehref||"",this.border=null,this.extras=null,this.margin=null}[n.$toHTML](te){const Ge=(0,v.toStyle)(this,"border","margin"),Tt=this[n.$getParent]()[n.$getParent](),Zt={fontSize:`calc(${Tt.font&&Tt.font.size||10}px * var(--scale-factor))`},Qt=[];if(Tt.items.children.length>0){const on=Tt.items;let gn=0,xn=0;on.children.length===2&&(gn=on.children[0].save,xn=1-gn);const yn=on.children[gn][n.$toHTML]().html,Tn=on.children[xn][n.$toHTML]().html;let En=!1;const ln=Tt.value&&Tt.value[n.$text]()||"";for(let Rn=0,cn=yn.length;RnGe>=0}),this.use=te.use||"",this.usehref=te.usehref||""}}class qe extends n.XFAObject{constructor(te){super(S,"connect",!0),this.connection=te.connection||"",this.id=te.id||"",this.ref=te.ref||"",this.usage=(0,e.getStringOption)(te.usage,["exportAndImport","exportOnly","importOnly"]),this.use=te.use||"",this.usehref=te.usehref||"",this.picture=null}}class Le extends n.XFAObject{constructor(te){super(S,"contentArea",!0),this.h=(0,e.getMeasurement)(te.h),this.id=te.id||"",this.name=te.name||"",this.relevant=(0,e.getRelevant)(te.relevant),this.use=te.use||"",this.usehref=te.usehref||"",this.w=(0,e.getMeasurement)(te.w),this.x=(0,e.getMeasurement)(te.x,"0pt"),this.y=(0,e.getMeasurement)(te.y,"0pt"),this.desc=null,this.extras=null}[n.$toHTML](te){const Ge=(0,v.measureToString)(this.x),bt=(0,v.measureToString)(this.y),Tt={left:Ge,top:bt,width:(0,v.measureToString)(this.w),height:(0,v.measureToString)(this.h)},Ft=["xfaContentarea"];return(0,v.isPrintOnly)(this)&&Ft.push("xfaPrintOnly"),e.HTMLResult.success({name:"div",children:[],attributes:{style:Tt,class:Ft,id:this[n.$uid]}})}}class Oe extends n.XFAObject{constructor(te){super(S,"corner",!0),this.id=te.id||"",this.inverted=(0,e.getInteger)({data:te.inverted,defaultValue:0,validate:Ge=>Ge===1}),this.join=(0,e.getStringOption)(te.join,["square","round"]),this.presence=(0,e.getStringOption)(te.presence,["visible","hidden","inactive","invisible"]),this.radius=(0,e.getMeasurement)(te.radius),this.stroke=(0,e.getStringOption)(te.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,e.getMeasurement)(te.thickness,"0.5pt"),this.use=te.use||"",this.usehref=te.usehref||"",this.color=null,this.extras=null}[n.$toStyle](){const te=(0,v.toStyle)(this,"visibility");return te.radius=(0,v.measureToString)(this.join==="square"?0:this.radius),te}}class Ee extends n.ContentObject{constructor(te){super(S,"date"),this.id=te.id||"",this.name=te.name||"",this.use=te.use||"",this.usehref=te.usehref||""}[n.$finalize](){const te=this[n.$content].trim();this[n.$content]=te?new Date(te):null}[n.$toHTML](te){return q(this[n.$content]?this[n.$content].toString():"")}}class Ae extends n.ContentObject{constructor(te){super(S,"dateTime"),this.id=te.id||"",this.name=te.name||"",this.use=te.use||"",this.usehref=te.usehref||""}[n.$finalize](){const te=this[n.$content].trim();this[n.$content]=te?new Date(te):null}[n.$toHTML](te){return q(this[n.$content]?this[n.$content].toString():"")}}class Ve extends n.XFAObject{constructor(te){super(S,"dateTimeEdit",!0),this.hScrollPolicy=(0,e.getStringOption)(te.hScrollPolicy,["auto","off","on"]),this.id=te.id||"",this.picker=(0,e.getStringOption)(te.picker,["host","none"]),this.use=te.use||"",this.usehref=te.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[n.$toHTML](te){const Ge=(0,v.toStyle)(this,"border","font","margin"),bt=this[n.$getParent]()[n.$getParent](),Tt={name:"input",attributes:{type:"text",fieldId:bt[n.$uid],dataId:bt[n.$data]&&bt[n.$data][n.$uid]||bt[n.$uid],class:["xfaTextfield"],style:Ge,"aria-label":X(bt),"aria-required":!1}};return V(bt)&&(Tt.attributes["aria-required"]=!0,Tt.attributes.required=!0),e.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[Tt]})}}class $e extends n.ContentObject{constructor(te){super(S,"decimal"),this.fracDigits=(0,e.getInteger)({data:te.fracDigits,defaultValue:2,validate:Ge=>!0}),this.id=te.id||"",this.leadDigits=(0,e.getInteger)({data:te.leadDigits,defaultValue:-1,validate:Ge=>!0}),this.name=te.name||"",this.use=te.use||"",this.usehref=te.usehref||""}[n.$finalize](){const te=parseFloat(this[n.$content].trim());this[n.$content]=isNaN(te)?null:te}[n.$toHTML](te){return q(this[n.$content]!==null?this[n.$content].toString():"")}}class Ue extends n.XFAObject{constructor(te){super(S,"defaultUi",!0),this.id=te.id||"",this.use=te.use||"",this.usehref=te.usehref||"",this.extras=null}}class He extends n.XFAObject{constructor(te){super(S,"desc",!0),this.id=te.id||"",this.use=te.use||"",this.usehref=te.usehref||"",this.boolean=new n.XFAObjectArray,this.date=new n.XFAObjectArray,this.dateTime=new n.XFAObjectArray,this.decimal=new n.XFAObjectArray,this.exData=new n.XFAObjectArray,this.float=new n.XFAObjectArray,this.image=new n.XFAObjectArray,this.integer=new n.XFAObjectArray,this.text=new n.XFAObjectArray,this.time=new n.XFAObjectArray}}class Qe extends n.OptionObject{constructor(te){super(S,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]),this.id=te.id||"",this.use=te.use||"",this.usehref=te.usehref||""}}class Ze extends n.XFAObject{constructor(te){super(S,"digestMethods",!0),this.id=te.id||"",this.type=(0,e.getStringOption)(te.type,["optional","required"]),this.use=te.use||"",this.usehref=te.usehref||"",this.digestMethod=new n.XFAObjectArray}}class et extends n.XFAObject{constructor(te){super(S,"draw",!0),this.anchorType=(0,e.getStringOption)(te.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,e.getInteger)({data:te.colSpan,defaultValue:1,validate:Ge=>Ge>=1||Ge===-1}),this.h=te.h?(0,e.getMeasurement)(te.h):"",this.hAlign=(0,e.getStringOption)(te.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=te.id||"",this.locale=te.locale||"",this.maxH=(0,e.getMeasurement)(te.maxH,"0pt"),this.maxW=(0,e.getMeasurement)(te.maxW,"0pt"),this.minH=(0,e.getMeasurement)(te.minH,"0pt"),this.minW=(0,e.getMeasurement)(te.minW,"0pt"),this.name=te.name||"",this.presence=(0,e.getStringOption)(te.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,e.getRelevant)(te.relevant),this.rotate=(0,e.getInteger)({data:te.rotate,defaultValue:0,validate:Ge=>Ge%90===0}),this.use=te.use||"",this.usehref=te.usehref||"",this.w=te.w?(0,e.getMeasurement)(te.w):"",this.x=(0,e.getMeasurement)(te.x,"0pt"),this.y=(0,e.getMeasurement)(te.y,"0pt"),this.assist=null,this.border=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.value=null,this.setProperty=new n.XFAObjectArray}[n.$setValue](te){J(this,te)}[n.$toHTML](te){if(H(this),this.presence==="hidden"||this.presence==="inactive")return e.HTMLResult.EMPTY;(0,v.fixDimensions)(this),this[n.$pushPara]();const Ge=this.w,bt=this.h,{w:Tt,h:Ft,isBroken:Zt}=(0,v.layoutNode)(this,te);if(Tt&&this.w===""){if(Zt&&this[n.$getSubformParent]()[n.$isThereMoreWidth]())return this[n.$popPara](),e.HTMLResult.FAILURE;this.w=Tt}if(Ft&&this.h===""&&(this.h=Ft),$(this),!(0,R.checkDimensions)(this,te))return this.w=Ge,this.h=bt,this[n.$popPara](),e.HTMLResult.FAILURE;fe(this);const Qt=(0,v.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,v.setMinMaxDimensions)(this,Qt),Qt.margin&&(Qt.padding=Qt.margin,delete Qt.margin);const tn=["xfaDraw"];this.font&&tn.push("xfaFont"),(0,v.isPrintOnly)(this)&&tn.push("xfaPrintOnly");const on={style:Qt,id:this[n.$uid],class:tn};this.name&&(on.xfaName=this.name);const gn={name:"div",attributes:on,children:[]};z(this,on);const xn=(0,v.computeBbox)(this,gn,te),yn=this.value?this.value[n.$toHTML](te).html:null;return yn===null?(this.w=Ge,this.h=bt,this[n.$popPara](),e.HTMLResult.success((0,v.createWrapper)(this,gn),xn)):(gn.children.push(yn),(0,v.setPara)(this,Qt,yn),this.w=Ge,this.h=bt,this[n.$popPara](),e.HTMLResult.success((0,v.createWrapper)(this,gn),xn))}}class tt extends n.XFAObject{constructor(te){super(S,"edge",!0),this.cap=(0,e.getStringOption)(te.cap,["square","butt","round"]),this.id=te.id||"",this.presence=(0,e.getStringOption)(te.presence,["visible","hidden","inactive","invisible"]),this.stroke=(0,e.getStringOption)(te.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,e.getMeasurement)(te.thickness,"0.5pt"),this.use=te.use||"",this.usehref=te.usehref||"",this.color=null,this.extras=null}[n.$toStyle](){const te=(0,v.toStyle)(this,"visibility");if(Object.assign(te,{linecap:this.cap,width:(0,v.measureToString)(this.thickness),color:this.color?this.color[n.$toStyle]():"#000000",style:""}),this.presence!=="visible")te.style="none";else switch(this.stroke){case"solid":te.style="solid";break;case"dashDot":te.style="dashed";break;case"dashDotDot":te.style="dashed";break;case"dashed":te.style="dashed";break;case"dotted":te.style="dotted";break;case"embossed":te.style="ridge";break;case"etched":te.style="groove";break;case"lowered":te.style="inset";break;case"raised":te.style="outset";break}return te}}class je extends n.OptionObject{constructor(te){super(S,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]),this.id=te.id||"",this.use=te.use||"",this.usehref=te.usehref||""}}class Je extends n.XFAObject{constructor(te){super(S,"encodings",!0),this.id=te.id||"",this.type=(0,e.getStringOption)(te.type,["optional","required"]),this.use=te.use||"",this.usehref=te.usehref||"",this.encoding=new n.XFAObjectArray}}class nt extends n.XFAObject{constructor(te){super(S,"encrypt",!0),this.id=te.id||"",this.use=te.use||"",this.usehref=te.usehref||"",this.certificate=null}}class Ke extends n.XFAObject{constructor(te){super(S,"encryptData",!0),this.id=te.id||"",this.operation=(0,e.getStringOption)(te.operation,["encrypt","decrypt"]),this.target=te.target||"",this.use=te.use||"",this.usehref=te.usehref||"",this.filter=null,this.manifest=null}}class at extends n.XFAObject{constructor(te){super(S,"encryption",!0),this.id=te.id||"",this.type=(0,e.getStringOption)(te.type,["optional","required"]),this.use=te.use||"",this.usehref=te.usehref||"",this.certificate=new n.XFAObjectArray}}class ot extends n.OptionObject{constructor(te){super(S,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]),this.id=te.id||"",this.use=te.use||"",this.usehref=te.usehref||""}}class Xe extends n.XFAObject{constructor(te){super(S,"encryptionMethods",!0),this.id=te.id||"",this.type=(0,e.getStringOption)(te.type,["optional","required"]),this.use=te.use||"",this.usehref=te.usehref||"",this.encryptionMethod=new n.XFAObjectArray}}class ze extends n.XFAObject{constructor(te){super(S,"event",!0),this.activity=(0,e.getStringOption)(te.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]),this.id=te.id||"",this.listen=(0,e.getStringOption)(te.listen,["refOnly","refAndDescendents"]),this.name=te.name||"",this.ref=te.ref||"",this.use=te.use||"",this.usehref=te.usehref||"",this.extras=null,this.encryptData=null,this.execute=null,this.script=null,this.signData=null,this.submit=null}}class Ye extends n.ContentObject{constructor(te){super(S,"exData"),this.contentType=te.contentType||"",this.href=te.href||"",this.id=te.id||"",this.maxLength=(0,e.getInteger)({data:te.maxLength,defaultValue:-1,validate:Ge=>Ge>=-1}),this.name=te.name||"",this.rid=te.rid||"",this.transferEncoding=(0,e.getStringOption)(te.transferEncoding,["none","base64","package"]),this.use=te.use||"",this.usehref=te.usehref||""}[n.$isCDATAXml](){return this.contentType==="text/html"}[n.$onChild](te){return this.contentType==="text/html"&&te[n.$namespaceId]===c.NamespaceIds.xhtml.id?(this[n.$content]=te,!0):this.contentType==="text/xml"?(this[n.$content]=te,!0):!1}[n.$toHTML](te){return this.contentType!=="text/html"||!this[n.$content]?e.HTMLResult.EMPTY:this[n.$content][n.$toHTML](te)}}class st extends n.XFAObject{constructor(te){super(S,"exObject",!0),this.archive=te.archive||"",this.classId=te.classId||"",this.codeBase=te.codeBase||"",this.codeType=te.codeType||"",this.id=te.id||"",this.name=te.name||"",this.use=te.use||"",this.usehref=te.usehref||"",this.extras=null,this.boolean=new n.XFAObjectArray,this.date=new n.XFAObjectArray,this.dateTime=new n.XFAObjectArray,this.decimal=new n.XFAObjectArray,this.exData=new n.XFAObjectArray,this.exObject=new n.XFAObjectArray,this.float=new n.XFAObjectArray,this.image=new n.XFAObjectArray,this.integer=new n.XFAObjectArray,this.text=new n.XFAObjectArray,this.time=new n.XFAObjectArray}}class _t extends n.XFAObject{constructor(te){super(S,"exclGroup",!0),this.access=(0,e.getStringOption)(te.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=te.accessKey||"",this.anchorType=(0,e.getStringOption)(te.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,e.getInteger)({data:te.colSpan,defaultValue:1,validate:Ge=>Ge>=1||Ge===-1}),this.h=te.h?(0,e.getMeasurement)(te.h):"",this.hAlign=(0,e.getStringOption)(te.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=te.id||"",this.layout=(0,e.getStringOption)(te.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.maxH=(0,e.getMeasurement)(te.maxH,"0pt"),this.maxW=(0,e.getMeasurement)(te.maxW,"0pt"),this.minH=(0,e.getMeasurement)(te.minH,"0pt"),this.minW=(0,e.getMeasurement)(te.minW,"0pt"),this.name=te.name||"",this.presence=(0,e.getStringOption)(te.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,e.getRelevant)(te.relevant),this.use=te.use||"",this.usehref=te.usehref||"",this.w=te.w?(0,e.getMeasurement)(te.w):"",this.x=(0,e.getMeasurement)(te.x,"0pt"),this.y=(0,e.getMeasurement)(te.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.margin=null,this.para=null,this.traversal=null,this.validate=null,this.connect=new n.XFAObjectArray,this.event=new n.XFAObjectArray,this.field=new n.XFAObjectArray,this.setProperty=new n.XFAObjectArray}[n.$isBindable](){return!0}[n.$hasSettableValue](){return!0}[n.$setValue](te){for(const Ge of this.field.children){if(!Ge.value){const bt=new mr({});Ge[n.$appendChild](bt),Ge.value=bt}Ge.value[n.$setValue](te)}}[n.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&this[n.$extra].attempt===0&&this[n.$extra].numberInLine>0||this[n.$getParent]()[n.$isThereMoreWidth]()}[n.$isSplittable](){const te=this[n.$getSubformParent]();return te[n.$isSplittable]()?this[n.$extra]._isSplittable!==void 0?this[n.$extra]._isSplittable:this.layout==="position"||this.layout.includes("row")?(this[n.$extra]._isSplittable=!1,!1):te.layout&&te.layout.endsWith("-tb")&&te[n.$extra].numberInLine!==0?!1:(this[n.$extra]._isSplittable=!0,!0):!1}[n.$flushHTML](){return(0,R.flushHTML)(this)}[n.$addHTML](te,Ge){(0,R.addHTML)(this,te,Ge)}[n.$getAvailableSpace](){return(0,R.getAvailableSpace)(this)}[n.$toHTML](te){if(H(this),this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0)return e.HTMLResult.EMPTY;(0,v.fixDimensions)(this);const Ge=[],bt={id:this[n.$uid],class:[]};(0,v.setAccess)(this,bt.class),this[n.$extra]||(this[n.$extra]=Object.create(null)),Object.assign(this[n.$extra],{children:Ge,attributes:bt,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,te.width),height:Math.min(this.h||1/0,te.height)},width:0,height:0,prevHeight:0,currentWidth:0});const Tt=this[n.$isSplittable]();if(Tt||$(this),!(0,R.checkDimensions)(this,te))return e.HTMLResult.FAILURE;const Ft=new Set(["field"]);if(this.layout.includes("row")){const cn=this[n.$getSubformParent]().columnWidths;Array.isArray(cn)&&cn.length>0&&(this[n.$extra].columnWidths=cn,this[n.$extra].currentColumn=0)}const Zt=(0,v.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),Qt=["xfaExclgroup"],tn=(0,v.layoutClass)(this);tn&&Qt.push(tn),(0,v.isPrintOnly)(this)&&Qt.push("xfaPrintOnly"),bt.style=Zt,bt.class=Qt,this.name&&(bt.xfaName=this.name),this[n.$pushPara]();const on=this.layout==="lr-tb"||this.layout==="rl-tb",gn=on?l:1;for(;this[n.$extra].attemptGe>=1||Ge===-1}),this.h=te.h?(0,e.getMeasurement)(te.h):"",this.hAlign=(0,e.getStringOption)(te.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=te.id||"",this.locale=te.locale||"",this.maxH=(0,e.getMeasurement)(te.maxH,"0pt"),this.maxW=(0,e.getMeasurement)(te.maxW,"0pt"),this.minH=(0,e.getMeasurement)(te.minH,"0pt"),this.minW=(0,e.getMeasurement)(te.minW,"0pt"),this.name=te.name||"",this.presence=(0,e.getStringOption)(te.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,e.getRelevant)(te.relevant),this.rotate=(0,e.getInteger)({data:te.rotate,defaultValue:0,validate:Ge=>Ge%90===0}),this.use=te.use||"",this.usehref=te.usehref||"",this.w=te.w?(0,e.getMeasurement)(te.w):"",this.x=(0,e.getMeasurement)(te.x,"0pt"),this.y=(0,e.getMeasurement)(te.y,"0pt"),this.assist=null,this.bind=null,this.border=null,this.calculate=null,this.caption=null,this.desc=null,this.extras=null,this.font=null,this.format=null,this.items=new n.XFAObjectArray(2),this.keep=null,this.margin=null,this.para=null,this.traversal=null,this.ui=null,this.validate=null,this.value=null,this.bindItems=new n.XFAObjectArray,this.connect=new n.XFAObjectArray,this.event=new n.XFAObjectArray,this.setProperty=new n.XFAObjectArray}[n.$isBindable](){return!0}[n.$setValue](te){J(this,te)}[n.$toHTML](te){if(H(this),!this.ui){this.ui=new Ln({}),this.ui[n.$globalData]=this[n.$globalData],this[n.$appendChild](this.ui);let cn;switch(this.items.children.length){case 0:cn=new fr({}),this.ui.textEdit=cn;break;case 1:cn=new ke({}),this.ui.checkButton=cn;break;case 2:cn=new De({}),this.ui.choiceList=cn;break}this.ui[n.$appendChild](cn)}if(!this.ui||this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0)return e.HTMLResult.EMPTY;this.caption&&delete this.caption[n.$extra],this[n.$pushPara]();const Ge=this.caption?this.caption[n.$toHTML](te).html:null,bt=this.w,Tt=this.h;let Ft=0,Zt=0;this.margin&&(Ft=this.margin.leftInset+this.margin.rightInset,Zt=this.margin.topInset+this.margin.bottomInset);let Qt=null;if(this.w===""||this.h===""){let cn=null,fn=null,In=0,dn=0;if(this.ui.checkButton)In=dn=this.ui.checkButton.size;else{const{w:Yn,h:Fn}=(0,v.layoutNode)(this,te);Yn!==null?(In=Yn,dn=Fn):dn=(0,O.getMetrics)(this.font,!0).lineNoGap}if(Qt=G(this.ui[n.$getExtra]()),In+=Qt.w,dn+=Qt.h,this.caption){const{w:Yn,h:Fn,isBroken:On}=this.caption[n.$getExtra](te);if(On&&this[n.$getSubformParent]()[n.$isThereMoreWidth]())return this[n.$popPara](),e.HTMLResult.FAILURE;switch(cn=Yn,fn=Fn,this.caption.placement){case"left":case"right":case"inline":cn+=In;break;case"top":case"bottom":fn+=dn;break}}else cn=In,fn=dn;cn&&this.w===""&&(cn+=Ft,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1Ge>=1&&Ge<=5}),this.appearanceFilter=null,this.certificates=null,this.digestMethods=null,this.encodings=null,this.encryptionMethods=null,this.handler=null,this.lockDocument=null,this.mdp=null,this.reasons=null,this.timeStamp=null}}class Ot extends n.ContentObject{constructor(te){super(S,"float"),this.id=te.id||"",this.name=te.name||"",this.use=te.use||"",this.usehref=te.usehref||""}[n.$finalize](){const te=parseFloat(this[n.$content].trim());this[n.$content]=isNaN(te)?null:te}[n.$toHTML](te){return q(this[n.$content]!==null?this[n.$content].toString():"")}}class dt extends n.XFAObject{constructor(te){super(S,"font",!0),this.baselineShift=(0,e.getMeasurement)(te.baselineShift),this.fontHorizontalScale=(0,e.getFloat)({data:te.fontHorizontalScale,defaultValue:100,validate:Ge=>Ge>=0}),this.fontVerticalScale=(0,e.getFloat)({data:te.fontVerticalScale,defaultValue:100,validate:Ge=>Ge>=0}),this.id=te.id||"",this.kerningMode=(0,e.getStringOption)(te.kerningMode,["none","pair"]),this.letterSpacing=(0,e.getMeasurement)(te.letterSpacing,"0"),this.lineThrough=(0,e.getInteger)({data:te.lineThrough,defaultValue:0,validate:Ge=>Ge===1||Ge===2}),this.lineThroughPeriod=(0,e.getStringOption)(te.lineThroughPeriod,["all","word"]),this.overline=(0,e.getInteger)({data:te.overline,defaultValue:0,validate:Ge=>Ge===1||Ge===2}),this.overlinePeriod=(0,e.getStringOption)(te.overlinePeriod,["all","word"]),this.posture=(0,e.getStringOption)(te.posture,["normal","italic"]),this.size=(0,e.getMeasurement)(te.size,"10pt"),this.typeface=te.typeface||"Courier",this.underline=(0,e.getInteger)({data:te.underline,defaultValue:0,validate:Ge=>Ge===1||Ge===2}),this.underlinePeriod=(0,e.getStringOption)(te.underlinePeriod,["all","word"]),this.use=te.use||"",this.usehref=te.usehref||"",this.weight=(0,e.getStringOption)(te.weight,["normal","bold"]),this.extras=null,this.fill=null}[n.$clean](te){super[n.$clean](te),this[n.$globalData].usedTypefaces.add(this.typeface)}[n.$toStyle](){const te=(0,v.toStyle)(this,"fill"),Ge=te.color;return Ge&&(Ge==="#000000"?delete te.color:Ge.startsWith("#")||(te.background=Ge,te.backgroundClip="text",te.color="transparent")),this.baselineShift&&(te.verticalAlign=(0,v.measureToString)(this.baselineShift)),te.fontKerning=this.kerningMode==="none"?"none":"normal",te.letterSpacing=(0,v.measureToString)(this.letterSpacing),this.lineThrough!==0&&(te.textDecoration="line-through",this.lineThrough===2&&(te.textDecorationStyle="double")),this.overline!==0&&(te.textDecoration="overline",this.overline===2&&(te.textDecorationStyle="double")),te.fontStyle=this.posture,te.fontSize=(0,v.measureToString)(.99*this.size),(0,v.setFontFamily)(this,this,this[n.$globalData].fontFinder,te),this.underline!==0&&(te.textDecoration="underline",this.underline===2&&(te.textDecorationStyle="double")),te.fontWeight=this.weight,te}}class Nt extends n.XFAObject{constructor(te){super(S,"format",!0),this.id=te.id||"",this.use=te.use||"",this.usehref=te.usehref||"",this.extras=null,this.picture=null}}class kt extends n.StringObject{constructor(te){super(S,"handler"),this.id=te.id||"",this.type=(0,e.getStringOption)(te.type,["optional","required"]),this.use=te.use||"",this.usehref=te.usehref||""}}class Ut extends n.XFAObject{constructor(te){super(S,"hyphenation"),this.excludeAllCaps=(0,e.getInteger)({data:te.excludeAllCaps,defaultValue:0,validate:Ge=>Ge===1}),this.excludeInitialCap=(0,e.getInteger)({data:te.excludeInitialCap,defaultValue:0,validate:Ge=>Ge===1}),this.hyphenate=(0,e.getInteger)({data:te.hyphenate,defaultValue:0,validate:Ge=>Ge===1}),this.id=te.id||"",this.pushCharacterCount=(0,e.getInteger)({data:te.pushCharacterCount,defaultValue:3,validate:Ge=>Ge>=0}),this.remainCharacterCount=(0,e.getInteger)({data:te.remainCharacterCount,defaultValue:3,validate:Ge=>Ge>=0}),this.use=te.use||"",this.usehref=te.usehref||"",this.wordCharacterCount=(0,e.getInteger)({data:te.wordCharacterCount,defaultValue:7,validate:Ge=>Ge>=0})}}class Ht extends n.StringObject{constructor(te){super(S,"image"),this.aspect=(0,e.getStringOption)(te.aspect,["fit","actual","height","none","width"]),this.contentType=te.contentType||"",this.href=te.href||"",this.id=te.id||"",this.name=te.name||"",this.transferEncoding=(0,e.getStringOption)(te.transferEncoding,["base64","none","package"]),this.use=te.use||"",this.usehref=te.usehref||""}[n.$toHTML](){if(this.contentType&&!F.has(this.contentType.toLowerCase()))return e.HTMLResult.EMPTY;let te=this[n.$globalData].images&&this[n.$globalData].images.get(this.href);if(!te&&(this.href||!this[n.$content])||(!te&&this.transferEncoding==="base64"&&(te=(0,L.stringToBytes)(atob(this[n.$content]))),!te))return e.HTMLResult.EMPTY;if(!this.contentType){for(const[Ft,Zt]of N)if(te.length>Ft.length&&Ft.every((Qt,tn)=>Qt===te[tn])){this.contentType=Zt;break}if(!this.contentType)return e.HTMLResult.EMPTY}const Ge=new Blob([te],{type:this.contentType});let bt;switch(this.aspect){case"fit":case"actual":break;case"height":bt={height:"100%",objectFit:"fill"};break;case"none":bt={width:"100%",height:"100%",objectFit:"fill"};break;case"width":bt={width:"100%",objectFit:"fill"};break}const Tt=this[n.$getParent]();return e.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:bt,src:URL.createObjectURL(Ge),alt:Tt?X(Tt[n.$getParent]()):null}})}}class Kt extends n.XFAObject{constructor(te){super(S,"imageEdit",!0),this.data=(0,e.getStringOption)(te.data,["link","embed"]),this.id=te.id||"",this.use=te.use||"",this.usehref=te.usehref||"",this.border=null,this.extras=null,this.margin=null}[n.$toHTML](te){return this.data==="embed"?e.HTMLResult.success({name:"div",children:[],attributes:{}}):e.HTMLResult.EMPTY}}class qt extends n.ContentObject{constructor(te){super(S,"integer"),this.id=te.id||"",this.name=te.name||"",this.use=te.use||"",this.usehref=te.usehref||""}[n.$finalize](){const te=parseInt(this[n.$content].trim(),10);this[n.$content]=isNaN(te)?null:te}[n.$toHTML](te){return q(this[n.$content]!==null?this[n.$content].toString():"")}}class pn extends n.XFAObject{constructor(te){super(S,"issuers",!0),this.id=te.id||"",this.type=(0,e.getStringOption)(te.type,["optional","required"]),this.use=te.use||"",this.usehref=te.usehref||"",this.certificate=new n.XFAObjectArray}}class vt extends n.XFAObject{constructor(te){super(S,"items",!0),this.id=te.id||"",this.name=te.name||"",this.presence=(0,e.getStringOption)(te.presence,["visible","hidden","inactive","invisible"]),this.ref=te.ref||"",this.save=(0,e.getInteger)({data:te.save,defaultValue:0,validate:Ge=>Ge===1}),this.use=te.use||"",this.usehref=te.usehref||"",this.boolean=new n.XFAObjectArray,this.date=new n.XFAObjectArray,this.dateTime=new n.XFAObjectArray,this.decimal=new n.XFAObjectArray,this.exData=new n.XFAObjectArray,this.float=new n.XFAObjectArray,this.image=new n.XFAObjectArray,this.integer=new n.XFAObjectArray,this.text=new n.XFAObjectArray,this.time=new n.XFAObjectArray}[n.$toHTML](){const te=[];for(const Ge of this[n.$getChildren]())te.push(Ge[n.$text]());return e.HTMLResult.success(te)}}a.Items=vt;class xt extends n.XFAObject{constructor(te){super(S,"keep",!0),this.id=te.id||"";const Ge=["none","contentArea","pageArea"];this.intact=(0,e.getStringOption)(te.intact,Ge),this.next=(0,e.getStringOption)(te.next,Ge),this.previous=(0,e.getStringOption)(te.previous,Ge),this.use=te.use||"",this.usehref=te.usehref||"",this.extras=null}}class Rt extends n.XFAObject{constructor(te){super(S,"keyUsage");const Ge=["","yes","no"];this.crlSign=(0,e.getStringOption)(te.crlSign,Ge),this.dataEncipherment=(0,e.getStringOption)(te.dataEncipherment,Ge),this.decipherOnly=(0,e.getStringOption)(te.decipherOnly,Ge),this.digitalSignature=(0,e.getStringOption)(te.digitalSignature,Ge),this.encipherOnly=(0,e.getStringOption)(te.encipherOnly,Ge),this.id=te.id||"",this.keyAgreement=(0,e.getStringOption)(te.keyAgreement,Ge),this.keyCertSign=(0,e.getStringOption)(te.keyCertSign,Ge),this.keyEncipherment=(0,e.getStringOption)(te.keyEncipherment,Ge),this.nonRepudiation=(0,e.getStringOption)(te.nonRepudiation,Ge),this.type=(0,e.getStringOption)(te.type,["optional","required"]),this.use=te.use||"",this.usehref=te.usehref||""}}class At extends n.XFAObject{constructor(te){super(S,"line",!0),this.hand=(0,e.getStringOption)(te.hand,["even","left","right"]),this.id=te.id||"",this.slope=(0,e.getStringOption)(te.slope,["\\","/"]),this.use=te.use||"",this.usehref=te.usehref||"",this.edge=null}[n.$toHTML](){const te=this[n.$getParent]()[n.$getParent](),Ge=this.edge||new tt({}),bt=Ge[n.$toStyle](),Tt=Object.create(null),Ft=Ge.presence==="visible"?Ge.thickness:0;Tt.strokeWidth=(0,v.measureToString)(Ft),Tt.stroke=bt.color;let Zt,Qt,tn,on,gn="100%",xn="100%";te.w<=Ft?([Zt,Qt,tn,on]=["50%",0,"50%","100%"],gn=Tt.strokeWidth):te.h<=Ft?([Zt,Qt,tn,on]=[0,"50%","100%","50%"],xn=Tt.strokeWidth):this.slope==="\\"?[Zt,Qt,tn,on]=[0,0,"100%","100%"]:[Zt,Qt,tn,on]=[0,"100%","100%",0];const Tn={name:"svg",children:[{name:"line",attributes:{xmlns:_,x1:Zt,y1:Qt,x2:tn,y2:on,style:Tt}}],attributes:{xmlns:_,width:gn,height:xn,style:{overflow:"visible"}}};return W(te)?e.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[Tn]}):(Tn.attributes.style.position="absolute",e.HTMLResult.success(Tn))}}class Pt extends n.XFAObject{constructor(te){super(S,"linear",!0),this.id=te.id||"",this.type=(0,e.getStringOption)(te.type,["toRight","toBottom","toLeft","toTop"]),this.use=te.use||"",this.usehref=te.usehref||"",this.color=null,this.extras=null}[n.$toStyle](te){te=te?te[n.$toStyle]():"#FFFFFF";const Ge=this.type.replace(/([RBLT])/," $1").toLowerCase(),bt=this.color?this.color[n.$toStyle]():"#000000";return`linear-gradient(${Ge}, ${te}, ${bt})`}}class $t extends n.ContentObject{constructor(te){super(S,"lockDocument"),this.id=te.id||"",this.type=(0,e.getStringOption)(te.type,["optional","required"]),this.use=te.use||"",this.usehref=te.usehref||""}[n.$finalize](){this[n.$content]=(0,e.getStringOption)(this[n.$content],["auto","0","1"])}}class Wt extends n.XFAObject{constructor(te){super(S,"manifest",!0),this.action=(0,e.getStringOption)(te.action,["include","all","exclude"]),this.id=te.id||"",this.name=te.name||"",this.use=te.use||"",this.usehref=te.usehref||"",this.extras=null,this.ref=new n.XFAObjectArray}}class Dt extends n.XFAObject{constructor(te){super(S,"margin",!0),this.bottomInset=(0,e.getMeasurement)(te.bottomInset,"0"),this.id=te.id||"",this.leftInset=(0,e.getMeasurement)(te.leftInset,"0"),this.rightInset=(0,e.getMeasurement)(te.rightInset,"0"),this.topInset=(0,e.getMeasurement)(te.topInset,"0"),this.use=te.use||"",this.usehref=te.usehref||"",this.extras=null}[n.$toStyle](){return{margin:(0,v.measureToString)(this.topInset)+" "+(0,v.measureToString)(this.rightInset)+" "+(0,v.measureToString)(this.bottomInset)+" "+(0,v.measureToString)(this.leftInset)}}}class Yt extends n.XFAObject{constructor(te){super(S,"mdp"),this.id=te.id||"",this.permissions=(0,e.getInteger)({data:te.permissions,defaultValue:2,validate:Ge=>Ge===1||Ge===3}),this.signatureType=(0,e.getStringOption)(te.signatureType,["filler","author"]),this.use=te.use||"",this.usehref=te.usehref||""}}class Vt extends n.XFAObject{constructor(te){super(S,"medium"),this.id=te.id||"",this.imagingBBox=(0,e.getBBox)(te.imagingBBox),this.long=(0,e.getMeasurement)(te.long),this.orientation=(0,e.getStringOption)(te.orientation,["portrait","landscape"]),this.short=(0,e.getMeasurement)(te.short),this.stock=te.stock||"",this.trayIn=(0,e.getStringOption)(te.trayIn,["auto","delegate","pageFront"]),this.trayOut=(0,e.getStringOption)(te.trayOut,["auto","delegate"]),this.use=te.use||"",this.usehref=te.usehref||""}}class rn extends n.XFAObject{constructor(te){super(S,"message",!0),this.id=te.id||"",this.use=te.use||"",this.usehref=te.usehref||"",this.text=new n.XFAObjectArray}}class en extends n.XFAObject{constructor(te){super(S,"numericEdit",!0),this.hScrollPolicy=(0,e.getStringOption)(te.hScrollPolicy,["auto","off","on"]),this.id=te.id||"",this.use=te.use||"",this.usehref=te.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[n.$toHTML](te){const Ge=(0,v.toStyle)(this,"border","font","margin"),bt=this[n.$getParent]()[n.$getParent](),Tt={name:"input",attributes:{type:"text",fieldId:bt[n.$uid],dataId:bt[n.$data]&&bt[n.$data][n.$uid]||bt[n.$uid],class:["xfaTextfield"],style:Ge,"aria-label":X(bt),"aria-required":!1}};return V(bt)&&(Tt.attributes["aria-required"]=!0,Tt.attributes.required=!0),e.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[Tt]})}}class Xt extends n.XFAObject{constructor(te){super(S,"occur",!0),this.id=te.id||"",this.initial=te.initial!==""?(0,e.getInteger)({data:te.initial,defaultValue:"",validate:Ge=>!0}):"",this.max=te.max!==""?(0,e.getInteger)({data:te.max,defaultValue:1,validate:Ge=>!0}):"",this.min=te.min!==""?(0,e.getInteger)({data:te.min,defaultValue:1,validate:Ge=>!0}):"",this.use=te.use||"",this.usehref=te.usehref||"",this.extras=null}[n.$clean](){const te=this[n.$getParent](),Ge=this.min;this.min===""&&(this.min=te instanceof wt||te instanceof Bt?0:1),this.max===""&&(Ge===""?this.max=te instanceof wt||te instanceof Bt?-1:1:this.max=this.min),this.max!==-1&&this.max!0}),this.name=te.name||"",this.numbered=(0,e.getInteger)({data:te.numbered,defaultValue:1,validate:Ge=>!0}),this.oddOrEven=(0,e.getStringOption)(te.oddOrEven,["any","even","odd"]),this.pagePosition=(0,e.getStringOption)(te.pagePosition,["any","first","last","only","rest"]),this.relevant=(0,e.getRelevant)(te.relevant),this.use=te.use||"",this.usehref=te.usehref||"",this.desc=null,this.extras=null,this.medium=null,this.occur=null,this.area=new n.XFAObjectArray,this.contentArea=new n.XFAObjectArray,this.draw=new n.XFAObjectArray,this.exclGroup=new n.XFAObjectArray,this.field=new n.XFAObjectArray,this.subform=new n.XFAObjectArray}[n.$isUsable](){return this[n.$extra]?!this.occur||this.occur.max===-1||this[n.$extra].numberOfUseFt.oddOrEven===Ge&&Ft.pagePosition===bt);return Tt||(Tt=this.pageArea.children.find(Ft=>Ft.oddOrEven==="any"&&Ft.pagePosition===bt),Tt)||(Tt=this.pageArea.children.find(Ft=>Ft.oddOrEven==="any"&&Ft.pagePosition==="any"),Tt)?Tt:this.pageArea.children[0]}}class Jt extends n.XFAObject{constructor(te){super(S,"para",!0),this.hAlign=(0,e.getStringOption)(te.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=te.id||"",this.lineHeight=te.lineHeight?(0,e.getMeasurement)(te.lineHeight,"0pt"):"",this.marginLeft=te.marginLeft?(0,e.getMeasurement)(te.marginLeft,"0pt"):"",this.marginRight=te.marginRight?(0,e.getMeasurement)(te.marginRight,"0pt"):"",this.orphans=(0,e.getInteger)({data:te.orphans,defaultValue:0,validate:Ge=>Ge>=0}),this.preserve=te.preserve||"",this.radixOffset=te.radixOffset?(0,e.getMeasurement)(te.radixOffset,"0pt"):"",this.spaceAbove=te.spaceAbove?(0,e.getMeasurement)(te.spaceAbove,"0pt"):"",this.spaceBelow=te.spaceBelow?(0,e.getMeasurement)(te.spaceBelow,"0pt"):"",this.tabDefault=te.tabDefault?(0,e.getMeasurement)(this.tabDefault):"",this.tabStops=(te.tabStops||"").trim().split(/\s+/).map((Ge,bt)=>bt%2===1?(0,e.getMeasurement)(Ge):Ge),this.textIndent=te.textIndent?(0,e.getMeasurement)(te.textIndent,"0pt"):"",this.use=te.use||"",this.usehref=te.usehref||"",this.vAlign=(0,e.getStringOption)(te.vAlign,["top","bottom","middle"]),this.widows=(0,e.getInteger)({data:te.widows,defaultValue:0,validate:Ge=>Ge>=0}),this.hyphenation=null}[n.$toStyle](){const te=(0,v.toStyle)(this,"hAlign");return this.marginLeft!==""&&(te.paddingLeft=(0,v.measureToString)(this.marginLeft)),this.marginRight!==""&&(te.paddingight=(0,v.measureToString)(this.marginRight)),this.spaceAbove!==""&&(te.paddingTop=(0,v.measureToString)(this.spaceAbove)),this.spaceBelow!==""&&(te.paddingBottom=(0,v.measureToString)(this.spaceBelow)),this.textIndent!==""&&(te.textIndent=(0,v.measureToString)(this.textIndent),(0,v.fixTextIndent)(te)),this.lineHeight>0&&(te.lineHeight=(0,v.measureToString)(this.lineHeight)),this.tabDefault!==""&&(te.tabSize=(0,v.measureToString)(this.tabDefault)),this.tabStops.length>0,this.hyphenatation&&Object.assign(te,this.hyphenatation[n.$toStyle]()),te}}class _n extends n.XFAObject{constructor(te){super(S,"passwordEdit",!0),this.hScrollPolicy=(0,e.getStringOption)(te.hScrollPolicy,["auto","off","on"]),this.id=te.id||"",this.passwordChar=te.passwordChar||"*",this.use=te.use||"",this.usehref=te.usehref||"",this.border=null,this.extras=null,this.margin=null}}class nn extends n.XFAObject{constructor(te){super(S,"pattern",!0),this.id=te.id||"",this.type=(0,e.getStringOption)(te.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),this.use=te.use||"",this.usehref=te.usehref||"",this.color=null,this.extras=null}[n.$toStyle](te){te=te?te[n.$toStyle]():"#FFFFFF";const Ge=this.color?this.color[n.$toStyle]():"#000000",bt=5,Tt="repeating-linear-gradient",Ft=`${te},${te} ${bt}px,${Ge} ${bt}px,${Ge} ${2*bt}px`;switch(this.type){case"crossHatch":return`${Tt}(to top,${Ft}) ${Tt}(to right,${Ft})`;case"crossDiagonal":return`${Tt}(45deg,${Ft}) ${Tt}(-45deg,${Ft})`;case"diagonalLeft":return`${Tt}(45deg,${Ft})`;case"diagonalRight":return`${Tt}(-45deg,${Ft})`;case"horizontal":return`${Tt}(to top,${Ft})`;case"vertical":return`${Tt}(to right,${Ft})`}return""}}class an extends n.StringObject{constructor(te){super(S,"picture"),this.id=te.id||"",this.use=te.use||"",this.usehref=te.usehref||""}}class bn extends n.XFAObject{constructor(te){super(S,"proto",!0),this.appearanceFilter=new n.XFAObjectArray,this.arc=new n.XFAObjectArray,this.area=new n.XFAObjectArray,this.assist=new n.XFAObjectArray,this.barcode=new n.XFAObjectArray,this.bindItems=new n.XFAObjectArray,this.bookend=new n.XFAObjectArray,this.boolean=new n.XFAObjectArray,this.border=new n.XFAObjectArray,this.break=new n.XFAObjectArray,this.breakAfter=new n.XFAObjectArray,this.breakBefore=new n.XFAObjectArray,this.button=new n.XFAObjectArray,this.calculate=new n.XFAObjectArray,this.caption=new n.XFAObjectArray,this.certificate=new n.XFAObjectArray,this.certificates=new n.XFAObjectArray,this.checkButton=new n.XFAObjectArray,this.choiceList=new n.XFAObjectArray,this.color=new n.XFAObjectArray,this.comb=new n.XFAObjectArray,this.connect=new n.XFAObjectArray,this.contentArea=new n.XFAObjectArray,this.corner=new n.XFAObjectArray,this.date=new n.XFAObjectArray,this.dateTime=new n.XFAObjectArray,this.dateTimeEdit=new n.XFAObjectArray,this.decimal=new n.XFAObjectArray,this.defaultUi=new n.XFAObjectArray,this.desc=new n.XFAObjectArray,this.digestMethod=new n.XFAObjectArray,this.digestMethods=new n.XFAObjectArray,this.draw=new n.XFAObjectArray,this.edge=new n.XFAObjectArray,this.encoding=new n.XFAObjectArray,this.encodings=new n.XFAObjectArray,this.encrypt=new n.XFAObjectArray,this.encryptData=new n.XFAObjectArray,this.encryption=new n.XFAObjectArray,this.encryptionMethod=new n.XFAObjectArray,this.encryptionMethods=new n.XFAObjectArray,this.event=new n.XFAObjectArray,this.exData=new n.XFAObjectArray,this.exObject=new n.XFAObjectArray,this.exclGroup=new n.XFAObjectArray,this.execute=new n.XFAObjectArray,this.extras=new n.XFAObjectArray,this.field=new n.XFAObjectArray,this.fill=new n.XFAObjectArray,this.filter=new n.XFAObjectArray,this.float=new n.XFAObjectArray,this.font=new n.XFAObjectArray,this.format=new n.XFAObjectArray,this.handler=new n.XFAObjectArray,this.hyphenation=new n.XFAObjectArray,this.image=new n.XFAObjectArray,this.imageEdit=new n.XFAObjectArray,this.integer=new n.XFAObjectArray,this.issuers=new n.XFAObjectArray,this.items=new n.XFAObjectArray,this.keep=new n.XFAObjectArray,this.keyUsage=new n.XFAObjectArray,this.line=new n.XFAObjectArray,this.linear=new n.XFAObjectArray,this.lockDocument=new n.XFAObjectArray,this.manifest=new n.XFAObjectArray,this.margin=new n.XFAObjectArray,this.mdp=new n.XFAObjectArray,this.medium=new n.XFAObjectArray,this.message=new n.XFAObjectArray,this.numericEdit=new n.XFAObjectArray,this.occur=new n.XFAObjectArray,this.oid=new n.XFAObjectArray,this.oids=new n.XFAObjectArray,this.overflow=new n.XFAObjectArray,this.pageArea=new n.XFAObjectArray,this.pageSet=new n.XFAObjectArray,this.para=new n.XFAObjectArray,this.passwordEdit=new n.XFAObjectArray,this.pattern=new n.XFAObjectArray,this.picture=new n.XFAObjectArray,this.radial=new n.XFAObjectArray,this.reason=new n.XFAObjectArray,this.reasons=new n.XFAObjectArray,this.rectangle=new n.XFAObjectArray,this.ref=new n.XFAObjectArray,this.script=new n.XFAObjectArray,this.setProperty=new n.XFAObjectArray,this.signData=new n.XFAObjectArray,this.signature=new n.XFAObjectArray,this.signing=new n.XFAObjectArray,this.solid=new n.XFAObjectArray,this.speak=new n.XFAObjectArray,this.stipple=new n.XFAObjectArray,this.subform=new n.XFAObjectArray,this.subformSet=new n.XFAObjectArray,this.subjectDN=new n.XFAObjectArray,this.subjectDNs=new n.XFAObjectArray,this.submit=new n.XFAObjectArray,this.text=new n.XFAObjectArray,this.textEdit=new n.XFAObjectArray,this.time=new n.XFAObjectArray,this.timeStamp=new n.XFAObjectArray,this.toolTip=new n.XFAObjectArray,this.traversal=new n.XFAObjectArray,this.traverse=new n.XFAObjectArray,this.ui=new n.XFAObjectArray,this.validate=new n.XFAObjectArray,this.value=new n.XFAObjectArray,this.variables=new n.XFAObjectArray}}class Cn extends n.XFAObject{constructor(te){super(S,"radial",!0),this.id=te.id||"",this.type=(0,e.getStringOption)(te.type,["toEdge","toCenter"]),this.use=te.use||"",this.usehref=te.usehref||"",this.color=null,this.extras=null}[n.$toStyle](te){te=te?te[n.$toStyle]():"#FFFFFF";const Ge=this.color?this.color[n.$toStyle]():"#000000";return`radial-gradient(circle at center, ${this.type==="toEdge"?`${te},${Ge}`:`${Ge},${te}`})`}}class Mn extends n.StringObject{constructor(te){super(S,"reason"),this.id=te.id||"",this.name=te.name||"",this.use=te.use||"",this.usehref=te.usehref||""}}class Gn extends n.XFAObject{constructor(te){super(S,"reasons",!0),this.id=te.id||"",this.type=(0,e.getStringOption)(te.type,["optional","required"]),this.use=te.use||"",this.usehref=te.usehref||"",this.reason=new n.XFAObjectArray}}class xr extends n.XFAObject{constructor(te){super(S,"rectangle",!0),this.hand=(0,e.getStringOption)(te.hand,["even","left","right"]),this.id=te.id||"",this.use=te.use||"",this.usehref=te.usehref||"",this.corner=new n.XFAObjectArray(4),this.edge=new n.XFAObjectArray(4),this.fill=null}[n.$toHTML](){const te=this.edge.children.length?this.edge.children[0]:new tt({}),Ge=te[n.$toStyle](),bt=Object.create(null);this.fill&&this.fill.presence==="visible"?Object.assign(bt,this.fill[n.$toStyle]()):bt.fill="transparent",bt.strokeWidth=(0,v.measureToString)(te.presence==="visible"?te.thickness:0),bt.stroke=Ge.color;const Ft=(this.corner.children.length?this.corner.children[0]:new Oe({}))[n.$toStyle](),Qt={name:"svg",children:[{name:"rect",attributes:{xmlns:_,width:"100%",height:"100%",x:0,y:0,rx:Ft.radius,ry:Ft.radius,style:bt}}],attributes:{xmlns:_,style:{overflow:"visible"},width:"100%",height:"100%"}},tn=this[n.$getParent]()[n.$getParent]();return W(tn)?e.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[Qt]}):(Qt.attributes.style.position="absolute",e.HTMLResult.success(Qt))}}class Kn extends n.StringObject{constructor(te){super(S,"ref"),this.id=te.id||"",this.use=te.use||"",this.usehref=te.usehref||""}}class Hn extends n.StringObject{constructor(te){super(S,"script"),this.binding=te.binding||"",this.contentType=te.contentType||"",this.id=te.id||"",this.name=te.name||"",this.runAt=(0,e.getStringOption)(te.runAt,["client","both","server"]),this.use=te.use||"",this.usehref=te.usehref||""}}class zn extends n.XFAObject{constructor(te){super(S,"setProperty"),this.connection=te.connection||"",this.ref=te.ref||"",this.target=te.target||""}}a.SetProperty=zn;class kn extends n.XFAObject{constructor(te){super(S,"signData",!0),this.id=te.id||"",this.operation=(0,e.getStringOption)(te.operation,["sign","clear","verify"]),this.ref=te.ref||"",this.target=te.target||"",this.use=te.use||"",this.usehref=te.usehref||"",this.filter=null,this.manifest=null}}class vr extends n.XFAObject{constructor(te){super(S,"signature",!0),this.id=te.id||"",this.type=(0,e.getStringOption)(te.type,["PDF1.3","PDF1.6"]),this.use=te.use||"",this.usehref=te.usehref||"",this.border=null,this.extras=null,this.filter=null,this.manifest=null,this.margin=null}}class lr extends n.XFAObject{constructor(te){super(S,"signing",!0),this.id=te.id||"",this.type=(0,e.getStringOption)(te.type,["optional","required"]),this.use=te.use||"",this.usehref=te.usehref||"",this.certificate=new n.XFAObjectArray}}class Tr extends n.XFAObject{constructor(te){super(S,"solid",!0),this.id=te.id||"",this.use=te.use||"",this.usehref=te.usehref||"",this.extras=null}[n.$toStyle](te){return te?te[n.$toStyle]():"#FFFFFF"}}class Qn extends n.StringObject{constructor(te){super(S,"speak"),this.disable=(0,e.getInteger)({data:te.disable,defaultValue:0,validate:Ge=>Ge===1}),this.id=te.id||"",this.priority=(0,e.getStringOption)(te.priority,["custom","caption","name","toolTip"]),this.rid=te.rid||"",this.use=te.use||"",this.usehref=te.usehref||""}}class Zn extends n.XFAObject{constructor(te){super(S,"stipple",!0),this.id=te.id||"",this.rate=(0,e.getInteger)({data:te.rate,defaultValue:50,validate:Ge=>Ge>=0&&Ge<=100}),this.use=te.use||"",this.usehref=te.usehref||"",this.color=null,this.extras=null}[n.$toStyle](te){const Ge=this.rate/100;return L.Util.makeHexColor(Math.round(te.value.r*(1-Ge)+this.value.r*Ge),Math.round(te.value.g*(1-Ge)+this.value.g*Ge),Math.round(te.value.b*(1-Ge)+this.value.b*Ge))}}class cr extends n.XFAObject{constructor(te){super(S,"subform",!0),this.access=(0,e.getStringOption)(te.access,["open","nonInteractive","protected","readOnly"]),this.allowMacro=(0,e.getInteger)({data:te.allowMacro,defaultValue:0,validate:Ge=>Ge===1}),this.anchorType=(0,e.getStringOption)(te.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,e.getInteger)({data:te.colSpan,defaultValue:1,validate:Ge=>Ge>=1||Ge===-1}),this.columnWidths=(te.columnWidths||"").trim().split(/\s+/).map(Ge=>Ge==="-1"?-1:(0,e.getMeasurement)(Ge)),this.h=te.h?(0,e.getMeasurement)(te.h):"",this.hAlign=(0,e.getStringOption)(te.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=te.id||"",this.layout=(0,e.getStringOption)(te.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.locale=te.locale||"",this.maxH=(0,e.getMeasurement)(te.maxH,"0pt"),this.maxW=(0,e.getMeasurement)(te.maxW,"0pt"),this.mergeMode=(0,e.getStringOption)(te.mergeMode,["consumeData","matchTemplate"]),this.minH=(0,e.getMeasurement)(te.minH,"0pt"),this.minW=(0,e.getMeasurement)(te.minW,"0pt"),this.name=te.name||"",this.presence=(0,e.getStringOption)(te.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,e.getRelevant)(te.relevant),this.restoreState=(0,e.getStringOption)(te.restoreState,["manual","auto"]),this.scope=(0,e.getStringOption)(te.scope,["name","none"]),this.use=te.use||"",this.usehref=te.usehref||"",this.w=te.w?(0,e.getMeasurement)(te.w):"",this.x=(0,e.getMeasurement)(te.x,"0pt"),this.y=(0,e.getMeasurement)(te.y,"0pt"),this.assist=null,this.bind=null,this.bookend=null,this.border=null,this.break=null,this.calculate=null,this.desc=null,this.extras=null,this.keep=null,this.margin=null,this.occur=null,this.overflow=null,this.pageSet=null,this.para=null,this.traversal=null,this.validate=null,this.variables=null,this.area=new n.XFAObjectArray,this.breakAfter=new n.XFAObjectArray,this.breakBefore=new n.XFAObjectArray,this.connect=new n.XFAObjectArray,this.draw=new n.XFAObjectArray,this.event=new n.XFAObjectArray,this.exObject=new n.XFAObjectArray,this.exclGroup=new n.XFAObjectArray,this.field=new n.XFAObjectArray,this.proto=new n.XFAObjectArray,this.setProperty=new n.XFAObjectArray,this.subform=new n.XFAObjectArray,this.subformSet=new n.XFAObjectArray}[n.$getSubformParent](){const te=this[n.$getParent]();return te instanceof ur?te[n.$getSubformParent]():te}[n.$isBindable](){return!0}[n.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&this[n.$extra].attempt===0&&this[n.$extra].numberInLine>0||this[n.$getParent]()[n.$isThereMoreWidth]()}*[n.$getContainedChildren](){yield*Y(this)}[n.$flushHTML](){return(0,R.flushHTML)(this)}[n.$addHTML](te,Ge){(0,R.addHTML)(this,te,Ge)}[n.$getAvailableSpace](){return(0,R.getAvailableSpace)(this)}[n.$isSplittable](){const te=this[n.$getSubformParent]();return te[n.$isSplittable]()?this[n.$extra]._isSplittable!==void 0?this[n.$extra]._isSplittable:this.layout==="position"||this.layout.includes("row")?(this[n.$extra]._isSplittable=!1,!1):this.keep&&this.keep.intact!=="none"?(this[n.$extra]._isSplittable=!1,!1):te.layout&&te.layout.endsWith("-tb")&&te[n.$extra].numberInLine!==0?!1:(this[n.$extra]._isSplittable=!0,!0):!1}[n.$toHTML](te){if(H(this),this.break){if(this.break.after!=="auto"||this.break.afterTarget!==""){const dn=new se({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});dn[n.$globalData]=this[n.$globalData],this[n.$appendChild](dn),this.breakAfter.push(dn)}if(this.break.before!=="auto"||this.break.beforeTarget!==""){const dn=new Ie({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});dn[n.$globalData]=this[n.$globalData],this[n.$appendChild](dn),this.breakBefore.push(dn)}if(this.break.overflowTarget!==""){const dn=new It({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});dn[n.$globalData]=this[n.$globalData],this[n.$appendChild](dn),this.overflow.push(dn)}this[n.$removeChild](this.break),this.break=null}if(this.presence==="hidden"||this.presence==="inactive")return e.HTMLResult.EMPTY;if((this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&(0,L.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),this.breakBefore.children.length>=1){const dn=this.breakBefore.children[0];if(Q(dn))return e.HTMLResult.breakNode(dn)}if(this[n.$extra]&&this[n.$extra].afterBreakAfter)return e.HTMLResult.EMPTY;(0,v.fixDimensions)(this);const Ge=[],bt={id:this[n.$uid],class:[]};(0,v.setAccess)(this,bt.class),this[n.$extra]||(this[n.$extra]=Object.create(null)),Object.assign(this[n.$extra],{children:Ge,line:null,attributes:bt,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,te.width),height:Math.min(this.h||1/0,te.height)},width:0,height:0,prevHeight:0,currentWidth:0});const Tt=this[n.$getTemplateRoot](),Ft=Tt[n.$extra].noLayoutFailure,Zt=this[n.$isSplittable]();if(Zt||$(this),!(0,R.checkDimensions)(this,te))return e.HTMLResult.FAILURE;const Qt=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){const dn=this[n.$getSubformParent]().columnWidths;Array.isArray(dn)&&dn.length>0&&(this[n.$extra].columnWidths=dn,this[n.$extra].currentColumn=0)}const tn=(0,v.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),on=["xfaSubform"],gn=(0,v.layoutClass)(this);if(gn&&on.push(gn),bt.style=tn,bt.class=on,this.name&&(bt.xfaName=this.name),this.overflow){const dn=this.overflow[n.$getExtra]();dn.addLeader&&(dn.addLeader=!1,ie(this,dn.leader,te))}this[n.$pushPara]();const xn=this.layout==="lr-tb"||this.layout==="rl-tb",yn=xn?l:1;for(;this[n.$extra].attempt=1){const dn=this.breakAfter.children[0];if(Q(dn))return this[n.$extra].afterBreakAfter=In,e.HTMLResult.breakNode(dn)}return delete this[n.$extra],In}}class ur extends n.XFAObject{constructor(te){super(S,"subformSet",!0),this.id=te.id||"",this.name=te.name||"",this.relation=(0,e.getStringOption)(te.relation,["ordered","choice","unordered"]),this.relevant=(0,e.getRelevant)(te.relevant),this.use=te.use||"",this.usehref=te.usehref||"",this.bookend=null,this.break=null,this.desc=null,this.extras=null,this.occur=null,this.overflow=null,this.breakAfter=new n.XFAObjectArray,this.breakBefore=new n.XFAObjectArray,this.subform=new n.XFAObjectArray,this.subformSet=new n.XFAObjectArray}*[n.$getContainedChildren](){yield*Y(this)}[n.$getSubformParent](){let te=this[n.$getParent]();for(;!(te instanceof cr);)te=te[n.$getParent]();return te}[n.$isBindable](){return!0}}class Cr extends n.ContentObject{constructor(te){super(S,"subjectDN"),this.delimiter=te.delimiter||",",this.id=te.id||"",this.name=te.name||"",this.use=te.use||"",this.usehref=te.usehref||""}[n.$finalize](){this[n.$content]=new Map(this[n.$content].split(this.delimiter).map(te=>(te=te.split("=",2),te[0]=te[0].trim(),te)))}}class Jn extends n.XFAObject{constructor(te){super(S,"subjectDNs",!0),this.id=te.id||"",this.type=(0,e.getStringOption)(te.type,["optional","required"]),this.use=te.use||"",this.usehref=te.usehref||"",this.subjectDN=new n.XFAObjectArray}}class qn extends n.XFAObject{constructor(te){super(S,"submit",!0),this.embedPDF=(0,e.getInteger)({data:te.embedPDF,defaultValue:0,validate:Ge=>Ge===1}),this.format=(0,e.getStringOption)(te.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),this.id=te.id||"",this.target=te.target||"",this.textEncoding=(0,e.getKeyword)({data:te.textEncoding?te.textEncoding.toLowerCase():"",defaultValue:"",validate:Ge=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(Ge)||Ge.match(/iso-8859-\d{2}/)}),this.use=te.use||"",this.usehref=te.usehref||"",this.xdpContent=te.xdpContent||"",this.encrypt=null,this.encryptData=new n.XFAObjectArray,this.signData=new n.XFAObjectArray}}class dr extends n.XFAObject{constructor(te){super(S,"template",!0),this.baseProfile=(0,e.getStringOption)(te.baseProfile,["full","interactiveForms"]),this.extras=null,this.subform=new n.XFAObjectArray}[n.$finalize](){this.subform.children.length===0&&(0,L.warn)("XFA - No subforms in template node."),this.subform.children.length>=2&&(0,L.warn)("XFA - Several subforms in template node: please file a bug."),this[n.$tabIndex]=D}[n.$isSplittable](){return!0}[n.$searchNode](te,Ge){return te.startsWith("#")?[this[n.$ids].get(te.slice(1))]:(0,P.searchNode)(this,Ge,te,!0,!0)}*[n.$toPages](){if(!this.subform.children.length)return e.HTMLResult.success({name:"div",children:[]});this[n.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};const te=this.subform.children[0];te.pageSet[n.$cleanPage]();const Ge=te.pageSet.pageArea.children,bt={name:"div",children:[]};let Tt=null,Ft=null,Zt=null;if(te.breakBefore.children.length>=1?(Ft=te.breakBefore.children[0],Zt=Ft.target):te.subform.children.length>=1&&te.subform.children[0].breakBefore.children.length>=1?(Ft=te.subform.children[0].breakBefore.children[0],Zt=Ft.target):te.break&&te.break.beforeTarget?(Ft=te.break,Zt=Ft.beforeTarget):te.subform.children.length>=1&&te.subform.children[0].break&&te.subform.children[0].break.beforeTarget&&(Ft=te.subform.children[0].break,Zt=Ft.beforeTarget),Ft){const En=this[n.$searchNode](Zt,Ft[n.$getParent]());En instanceof wt&&(Tt=En,Ft[n.$extra]={})}Tt||(Tt=Ge[0]),Tt[n.$extra]={numberOfUse:1};const Qt=Tt[n.$getParent]();Qt[n.$extra]={numberOfUse:1,pageIndex:Qt.pageArea.children.indexOf(Tt),pageSetIndex:0};let tn,on=null,gn=null,xn=!0,yn=0,Tn=0;for(;;){if(xn)yn=0;else if(bt.children.pop(),++yn===y)return(0,L.warn)("XFA - Something goes wrong: please file a bug."),bt;tn=null,this[n.$extra].currentPageArea=Tt;const En=Tt[n.$toHTML]().html;bt.children.push(En),on&&(this[n.$extra].noLayoutFailure=!0,En.children.push(on[n.$toHTML](Tt[n.$extra].space).html),on=null),gn&&(this[n.$extra].noLayoutFailure=!0,En.children.push(gn[n.$toHTML](Tt[n.$extra].space).html),gn=null);const ln=Tt.contentArea.children,Rn=En.children.filter(fn=>fn.attributes.class.includes("xfaContentarea"));xn=!1,this[n.$extra].firstUnsplittable=null,this[n.$extra].noLayoutFailure=!1;const cn=fn=>{const In=te[n.$flushHTML]();In&&(xn=xn||In.children&&In.children.length!==0,Rn[fn].children.push(In))};for(let fn=Tn,In=ln.length;fn1&&bt.children.pop(),bt;if(Fn.isBreak()){const On=Fn.breakNode;if(cn(fn),On.targetType==="auto")continue;On.leader&&(on=this[n.$searchNode](On.leader,On[n.$getParent]()),on=on?on[0]:null),On.trailer&&(gn=this[n.$searchNode](On.trailer,On[n.$getParent]()),gn=gn?gn[0]:null),On.targetType==="pageArea"?(tn=On[n.$extra].target,fn=1/0):On[n.$extra].target?(tn=On[n.$extra].target,Tn=On[n.$extra].index+1,fn=1/0):fn=On[n.$extra].index;continue}if(this[n.$extra].overflowNode){const On=this[n.$extra].overflowNode;this[n.$extra].overflowNode=null;const br=On[n.$getExtra](),nr=br.target;br.addLeader=br.leader!==null,br.addTrailer=br.trailer!==null,cn(fn);const _i=fn;if(fn=1/0,nr instanceof wt)tn=nr;else if(nr instanceof Le){const Ur=ln.indexOf(nr);Ur!==-1?Ur>_i?fn=Ur-1:Tn=Ur:(tn=nr[n.$getParent](),Tn=tn.contentArea.children.indexOf(nr))}continue}cn(fn)}this[n.$extra].pageNumber+=1,tn&&(tn[n.$isUsable]()?tn[n.$extra].numberOfUse+=1:tn=null),Tt=tn||Tt[n.$getNextPage](),yield null}}}a.Template=dr;class Ar extends n.ContentObject{constructor(te){super(S,"text"),this.id=te.id||"",this.maxChars=(0,e.getInteger)({data:te.maxChars,defaultValue:0,validate:Ge=>Ge>=0}),this.name=te.name||"",this.rid=te.rid||"",this.use=te.use||"",this.usehref=te.usehref||""}[n.$acceptWhitespace](){return!0}[n.$onChild](te){return te[n.$namespaceId]===c.NamespaceIds.xhtml.id?(this[n.$content]=te,!0):((0,L.warn)(`XFA - Invalid content in Text: ${te[n.$nodeName]}.`),!1)}[n.$onText](te){this[n.$content]instanceof n.XFAObject||super[n.$onText](te)}[n.$finalize](){typeof this[n.$content]=="string"&&(this[n.$content]=this[n.$content].replace(/\r\n/g,` `))}[n.$getExtra](){return typeof this[n.$content]=="string"?this[n.$content].split(/[\u2029\u2028\n]/).reduce((te,Ge)=>(Ge&&te.push(Ge),te),[]).join(` `):this[n.$content][n.$text]()}[n.$toHTML](te){if(typeof this[n.$content]=="string"){const Ge=q(this[n.$content]).html;return this[n.$content].includes("\u2029")?(Ge.name="div",Ge.children=[],this[n.$content].split("\u2029").map(bt=>bt.split(/[\u2028\n]/).reduce((Tt,Ft)=>(Tt.push({name:"span",value:Ft},{name:"br"}),Tt),[])).forEach(bt=>{Ge.children.push({name:"p",children:bt})})):/[\u2028\n]/.test(this[n.$content])&&(Ge.name="div",Ge.children=[],this[n.$content].split(/[\u2028\n]/).forEach(bt=>{Ge.children.push({name:"span",value:bt},{name:"br"})})),e.HTMLResult.success(Ge)}return this[n.$content][n.$toHTML](te)}}a.Text=Ar;class fr extends n.XFAObject{constructor(te){super(S,"textEdit",!0),this.allowRichText=(0,e.getInteger)({data:te.allowRichText,defaultValue:0,validate:Ge=>Ge===1}),this.hScrollPolicy=(0,e.getStringOption)(te.hScrollPolicy,["auto","off","on"]),this.id=te.id||"",this.multiLine=(0,e.getInteger)({data:te.multiLine,defaultValue:"",validate:Ge=>Ge===0||Ge===1}),this.use=te.use||"",this.usehref=te.usehref||"",this.vScrollPolicy=(0,e.getStringOption)(te.vScrollPolicy,["auto","off","on"]),this.border=null,this.comb=null,this.extras=null,this.margin=null}[n.$toHTML](te){const Ge=(0,v.toStyle)(this,"border","font","margin");let bt;const Tt=this[n.$getParent]()[n.$getParent]();return this.multiLine===""&&(this.multiLine=Tt instanceof et?1:0),this.multiLine===1?bt={name:"textarea",attributes:{dataId:Tt[n.$data]&&Tt[n.$data][n.$uid]||Tt[n.$uid],fieldId:Tt[n.$uid],class:["xfaTextfield"],style:Ge,"aria-label":X(Tt),"aria-required":!1}}:bt={name:"input",attributes:{type:"text",dataId:Tt[n.$data]&&Tt[n.$data][n.$uid]||Tt[n.$uid],fieldId:Tt[n.$uid],class:["xfaTextfield"],style:Ge,"aria-label":X(Tt),"aria-required":!1}},V(Tt)&&(bt.attributes["aria-required"]=!0,bt.attributes.required=!0),e.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[bt]})}}class Wn extends n.StringObject{constructor(te){super(S,"time"),this.id=te.id||"",this.name=te.name||"",this.use=te.use||"",this.usehref=te.usehref||""}[n.$finalize](){const te=this[n.$content].trim();this[n.$content]=te?new Date(te):null}[n.$toHTML](te){return q(this[n.$content]?this[n.$content].toString():"")}}class er extends n.XFAObject{constructor(te){super(S,"timeStamp"),this.id=te.id||"",this.server=te.server||"",this.type=(0,e.getStringOption)(te.type,["optional","required"]),this.use=te.use||"",this.usehref=te.usehref||""}}class Rr extends n.StringObject{constructor(te){super(S,"toolTip"),this.id=te.id||"",this.rid=te.rid||"",this.use=te.use||"",this.usehref=te.usehref||""}}class gr extends n.XFAObject{constructor(te){super(S,"traversal",!0),this.id=te.id||"",this.use=te.use||"",this.usehref=te.usehref||"",this.extras=null,this.traverse=new n.XFAObjectArray}}class tr extends n.XFAObject{constructor(te){super(S,"traverse",!0),this.id=te.id||"",this.operation=(0,e.getStringOption)(te.operation,["next","back","down","first","left","right","up"]),this.ref=te.ref||"",this.use=te.use||"",this.usehref=te.usehref||"",this.extras=null,this.script=null}get name(){return this.operation}[n.$isTransparent](){return!1}}class Ln extends n.XFAObject{constructor(te){super(S,"ui",!0),this.id=te.id||"",this.use=te.use||"",this.usehref=te.usehref||"",this.extras=null,this.picture=null,this.barcode=null,this.button=null,this.checkButton=null,this.choiceList=null,this.dateTimeEdit=null,this.defaultUi=null,this.imageEdit=null,this.numericEdit=null,this.passwordEdit=null,this.signature=null,this.textEdit=null}[n.$getExtra](){if(this[n.$extra]===void 0){for(const te of Object.getOwnPropertyNames(this)){if(te==="extras"||te==="picture")continue;const Ge=this[te];if(Ge instanceof n.XFAObject)return this[n.$extra]=Ge,Ge}this[n.$extra]=null}return this[n.$extra]}[n.$toHTML](te){const Ge=this[n.$getExtra]();return Ge?Ge[n.$toHTML](te):e.HTMLResult.EMPTY}}class $n extends n.XFAObject{constructor(te){super(S,"validate",!0),this.formatTest=(0,e.getStringOption)(te.formatTest,["warning","disabled","error"]),this.id=te.id||"",this.nullTest=(0,e.getStringOption)(te.nullTest,["disabled","error","warning"]),this.scriptTest=(0,e.getStringOption)(te.scriptTest,["error","disabled","warning"]),this.use=te.use||"",this.usehref=te.usehref||"",this.extras=null,this.message=null,this.picture=null,this.script=null}}class mr extends n.XFAObject{constructor(te){super(S,"value",!0),this.id=te.id||"",this.override=(0,e.getInteger)({data:te.override,defaultValue:0,validate:Ge=>Ge===1}),this.relevant=(0,e.getRelevant)(te.relevant),this.use=te.use||"",this.usehref=te.usehref||"",this.arc=null,this.boolean=null,this.date=null,this.dateTime=null,this.decimal=null,this.exData=null,this.float=null,this.image=null,this.integer=null,this.line=null,this.rectangle=null,this.text=null,this.time=null}[n.$setValue](te){const Ge=this[n.$getParent]();if(Ge instanceof ut&&Ge.ui&&Ge.ui.imageEdit){this.image||(this.image=new Ht({}),this[n.$appendChild](this.image)),this.image[n.$content]=te[n.$content];return}const bt=te[n.$nodeName];if(this[bt]!==null){this[bt][n.$content]=te[n.$content];return}for(const Tt of Object.getOwnPropertyNames(this)){const Ft=this[Tt];Ft instanceof n.XFAObject&&(this[Tt]=null,this[n.$removeChild](Ft))}this[te[n.$nodeName]]=te,this[n.$appendChild](te)}[n.$text](){if(this.exData)return typeof this.exData[n.$content]=="string"?this.exData[n.$content].trim():this.exData[n.$content][n.$text]().trim();for(const te of Object.getOwnPropertyNames(this)){if(te==="image")continue;const Ge=this[te];if(Ge instanceof n.XFAObject)return(Ge[n.$content]||"").toString().trim()}return null}[n.$toHTML](te){for(const Ge of Object.getOwnPropertyNames(this)){const bt=this[Ge];if(bt instanceof n.XFAObject)return bt[n.$toHTML](te)}return e.HTMLResult.EMPTY}}a.Value=mr;class zr extends n.XFAObject{constructor(te){super(S,"variables",!0),this.id=te.id||"",this.use=te.use||"",this.usehref=te.usehref||"",this.boolean=new n.XFAObjectArray,this.date=new n.XFAObjectArray,this.dateTime=new n.XFAObjectArray,this.decimal=new n.XFAObjectArray,this.exData=new n.XFAObjectArray,this.float=new n.XFAObjectArray,this.image=new n.XFAObjectArray,this.integer=new n.XFAObjectArray,this.manifest=new n.XFAObjectArray,this.script=new n.XFAObjectArray,this.text=new n.XFAObjectArray,this.time=new n.XFAObjectArray}[n.$isTransparent](){return!0}}class _r{static[c.$buildXFAObject](te,Ge){if(_r.hasOwnProperty(te)){const bt=_r[te](Ge);return bt[n.$setSetAttributes](Ge),bt}}static appearanceFilter(te){return new Te(te)}static arc(te){return new me(te)}static area(te){return new K(te)}static assist(te){return new ce(te)}static barcode(te){return new de(te)}static bind(te){return new Z(te)}static bindItems(te){return new ae(te)}static bookend(te){return new he(te)}static boolean(te){return new we(te)}static border(te){return new _e(te)}static break(te){return new ye(te)}static breakAfter(te){return new se(te)}static breakBefore(te){return new Ie(te)}static button(te){return new Ce(te)}static calculate(te){return new oe(te)}static caption(te){return new pe(te)}static certificate(te){return new xe(te)}static certificates(te){return new Ne(te)}static checkButton(te){return new ke(te)}static choiceList(te){return new De(te)}static color(te){return new Fe(te)}static comb(te){return new Pe(te)}static connect(te){return new qe(te)}static contentArea(te){return new Le(te)}static corner(te){return new Oe(te)}static date(te){return new Ee(te)}static dateTime(te){return new Ae(te)}static dateTimeEdit(te){return new Ve(te)}static decimal(te){return new $e(te)}static defaultUi(te){return new Ue(te)}static desc(te){return new He(te)}static digestMethod(te){return new Qe(te)}static digestMethods(te){return new Ze(te)}static draw(te){return new et(te)}static edge(te){return new tt(te)}static encoding(te){return new je(te)}static encodings(te){return new Je(te)}static encrypt(te){return new nt(te)}static encryptData(te){return new Ke(te)}static encryption(te){return new at(te)}static encryptionMethod(te){return new ot(te)}static encryptionMethods(te){return new Xe(te)}static event(te){return new ze(te)}static exData(te){return new Ye(te)}static exObject(te){return new st(te)}static exclGroup(te){return new _t(te)}static execute(te){return new ft(te)}static extras(te){return new Ct(te)}static field(te){return new ut(te)}static fill(te){return new rt(te)}static filter(te){return new mt(te)}static float(te){return new Ot(te)}static font(te){return new dt(te)}static format(te){return new Nt(te)}static handler(te){return new kt(te)}static hyphenation(te){return new Ut(te)}static image(te){return new Ht(te)}static imageEdit(te){return new Kt(te)}static integer(te){return new qt(te)}static issuers(te){return new pn(te)}static items(te){return new vt(te)}static keep(te){return new xt(te)}static keyUsage(te){return new Rt(te)}static line(te){return new At(te)}static linear(te){return new Pt(te)}static lockDocument(te){return new $t(te)}static manifest(te){return new Wt(te)}static margin(te){return new Dt(te)}static mdp(te){return new Yt(te)}static medium(te){return new Vt(te)}static message(te){return new rn(te)}static numericEdit(te){return new en(te)}static occur(te){return new Xt(te)}static oid(te){return new ht(te)}static oids(te){return new Et(te)}static overflow(te){return new It(te)}static pageArea(te){return new wt(te)}static pageSet(te){return new Bt(te)}static para(te){return new Jt(te)}static passwordEdit(te){return new _n(te)}static pattern(te){return new nn(te)}static picture(te){return new an(te)}static proto(te){return new bn(te)}static radial(te){return new Cn(te)}static reason(te){return new Mn(te)}static reasons(te){return new Gn(te)}static rectangle(te){return new xr(te)}static ref(te){return new Kn(te)}static script(te){return new Hn(te)}static setProperty(te){return new zn(te)}static signData(te){return new kn(te)}static signature(te){return new vr(te)}static signing(te){return new lr(te)}static solid(te){return new Tr(te)}static speak(te){return new Qn(te)}static stipple(te){return new Zn(te)}static subform(te){return new cr(te)}static subformSet(te){return new ur(te)}static subjectDN(te){return new Cr(te)}static subjectDNs(te){return new Jn(te)}static submit(te){return new qn(te)}static template(te){return new dr(te)}static text(te){return new Ar(te)}static textEdit(te){return new fr(te)}static time(te){return new Wn(te)}static timeStamp(te){return new er(te)}static toolTip(te){return new Rr(te)}static traversal(te){return new gr(te)}static traverse(te){return new tr(te)}static ui(te){return new Ln(te)}static validate(te){return new $n(te)}static value(te){return new mr(te)}static variables(te){return new zr(te)}}a.TemplateNamespace=_r},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.addHTML=e,a.checkDimensions=B,a.flushHTML=v,a.getAvailableSpace=L;var n=g(202),c=g(209);function R(P,S){return{name:"div",attributes:{class:[P.layout==="lr-tb"?"xfaLr":"xfaRl"]},children:S}}function v(P){if(!P[n.$extra])return null;const _={name:"div",attributes:P[n.$extra].attributes,children:P[n.$extra].children};if(P[n.$extra].failingNode){const l=P[n.$extra].failingNode[n.$flushHTML]();l&&(P.layout.endsWith("-tb")?_.children.push(R(P,[l])):_.children.push(l))}return _.children.length===0?null:_}function e(P,S,_){const l=P[n.$extra],y=l.availableSpace,[D,M,F,N]=_;switch(P.layout){case"position":{l.width=Math.max(l.width,D+F),l.height=Math.max(l.height,M+N),l.children.push(S);break}case"lr-tb":case"rl-tb":(!l.line||l.attempt===1)&&(l.line=R(P,[]),l.children.push(l.line),l.numberInLine=0),l.numberInLine+=1,l.line.children.push(S),l.attempt===0?(l.currentWidth+=F,l.height=Math.max(l.height,l.prevHeight+N)):(l.currentWidth=F,l.prevHeight=l.height,l.height+=N,l.attempt=0),l.width=Math.max(l.width,l.currentWidth);break;case"rl-row":case"row":{l.children.push(S),l.width+=F,l.height=Math.max(l.height,N);const G=(0,c.measureToString)(l.height);for(const W of l.children)W.attributes.style.height=G;break}case"table":{l.width=Math.min(y.width,Math.max(l.width,F)),l.height+=N,l.children.push(S);break}case"tb":{l.width=Math.min(y.width,Math.max(l.width,F)),l.height+=N,l.children.push(S);break}}}function L(P){const S=P[n.$extra].availableSpace,_=P.margin?P.margin.topInset+P.margin.bottomInset:0,l=P.margin?P.margin.leftInset+P.margin.rightInset:0;switch(P.layout){case"lr-tb":case"rl-tb":return P[n.$extra].attempt===0?{width:S.width-l-P[n.$extra].currentWidth,height:S.height-_-P[n.$extra].prevHeight}:{width:S.width-l,height:S.height-_-P[n.$extra].height};case"rl-row":case"row":return{width:P[n.$extra].columnWidths.slice(P[n.$extra].currentColumn).reduce((D,M)=>D+M),height:S.height-l};case"table":case"tb":return{width:S.width-l,height:S.height-_-P[n.$extra].height};case"position":default:return S}}function O(P){let S=P.w===""?NaN:P.w,_=P.h===""?NaN:P.h,[l,y]=[0,0];switch(P.anchorType||""){case"bottomCenter":[l,y]=[S/2,_];break;case"bottomLeft":[l,y]=[0,_];break;case"bottomRight":[l,y]=[S,_];break;case"middleCenter":[l,y]=[S/2,_/2];break;case"middleLeft":[l,y]=[0,_/2];break;case"middleRight":[l,y]=[S,_/2];break;case"topCenter":[l,y]=[S/2,0];break;case"topRight":[l,y]=[S,0];break}let D,M;switch(P.rotate||0){case 0:[D,M]=[-l,-y];break;case 90:[D,M]=[-y,l],[S,_]=[_,-S];break;case 180:[D,M]=[l,y],[S,_]=[-S,-_];break;case 270:[D,M]=[y,-l],[S,_]=[-_,S];break}return[P.x+D+Math.min(0,S),P.y+M+Math.min(0,_),Math.abs(S),Math.abs(_)]}function B(P,S){if(P[n.$getTemplateRoot]()[n.$extra].firstUnsplittable===null||P.w===0||P.h===0)return!0;const _=2,l=P[n.$getSubformParent](),y=l[n.$extra]&&l[n.$extra].attempt||0,[,D,M,F]=O(P);switch(l.layout){case"lr-tb":case"rl-tb":return y===0?P[n.$getTemplateRoot]()[n.$extra].noLayoutFailure?P.w!==""?Math.round(M-S.width)<=_:S.width>_:P.h!==""&&Math.round(F-S.height)>_?!1:P.w!==""?Math.round(M-S.width)<=_?!0:l[n.$extra].numberInLine===0?S.height>_:!1:S.width>_:P[n.$getTemplateRoot]()[n.$extra].noLayoutFailure?!0:P.h!==""&&Math.round(F-S.height)>_?!1:P.w===""||Math.round(M-S.width)<=_?S.height>_:l[n.$isThereMoreWidth]()?!1:S.height>_;case"table":case"tb":return P[n.$getTemplateRoot]()[n.$extra].noLayoutFailure?!0:P.h!==""&&!P[n.$isSplittable]()?Math.round(F-S.height)<=_:P.w===""||Math.round(M-S.width)<=_?S.height>_:l[n.$isThereMoreWidth]()?!1:S.height>_;case"position":if(P[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||P.h===""||Math.round(F+D-S.height)<=_)return!0;const N=P[n.$getTemplateRoot]()[n.$extra].currentContentArea;return F+D>N.h;case"rl-row":case"row":return P[n.$getTemplateRoot]()[n.$extra].noLayoutFailure?!0:P.h!==""?Math.round(F-S.height)<=_:!0;default:return!0}}},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.computeBbox=_,a.createWrapper=M,a.fixDimensions=l,a.fixTextIndent=F,a.fixURL=V,a.isPrintOnly=G,a.layoutClass=y,a.layoutNode=S,a.measureToString=L,a.setAccess=N,a.setFontFamily=Y,a.setMinMaxDimensions=B,a.setPara=J,a.toStyle=D;var n=g(202),c=g(2),R=g(203),v=g(210),e=g(211);function L(H){return typeof H=="string"?"0px":Number.isInteger(H)?`${H}px`:`${H.toFixed(2)}px`}const O={anchorType(H,z){const X=H[n.$getSubformParent]();if(!(!X||X.layout&&X.layout!=="position"))switch("transform"in z||(z.transform=""),H.anchorType){case"bottomCenter":z.transform+="translate(-50%, -100%)";break;case"bottomLeft":z.transform+="translate(0,-100%)";break;case"bottomRight":z.transform+="translate(-100%,-100%)";break;case"middleCenter":z.transform+="translate(-50%,-50%)";break;case"middleLeft":z.transform+="translate(0,-50%)";break;case"middleRight":z.transform+="translate(-100%,-50%)";break;case"topCenter":z.transform+="translate(-50%,0)";break;case"topRight":z.transform+="translate(-100%,0)";break}},dimensions(H,z){const X=H[n.$getSubformParent]();let q=H.w;const $=H.h;if(X.layout&&X.layout.includes("row")){const fe=X[n.$extra],Q=H.colSpan;let ie;Q===-1?(ie=fe.columnWidths.slice(fe.currentColumn).reduce((Te,me)=>Te+me,0),fe.currentColumn=0):(ie=fe.columnWidths.slice(fe.currentColumn,fe.currentColumn+Q).reduce((Te,me)=>Te+me,0),fe.currentColumn=(fe.currentColumn+H.colSpan)%fe.columnWidths.length),isNaN(ie)||(q=H.w=ie)}q!==""?z.width=L(q):z.width="auto",$!==""?z.height=L($):z.height="auto"},position(H,z){const X=H[n.$getSubformParent]();X&&X.layout&&X.layout!=="position"||(z.position="absolute",z.left=L(H.x),z.top=L(H.y))},rotate(H,z){H.rotate&&("transform"in z||(z.transform=""),z.transform+=`rotate(-${H.rotate}deg)`,z.transformOrigin="top left")},presence(H,z){switch(H.presence){case"invisible":z.visibility="hidden";break;case"hidden":case"inactive":z.display="none";break}},hAlign(H,z){if(H[n.$nodeName]==="para")switch(H.hAlign){case"justifyAll":z.textAlign="justify-all";break;case"radix":z.textAlign="left";break;default:z.textAlign=H.hAlign}else switch(H.hAlign){case"left":z.alignSelf="start";break;case"center":z.alignSelf="center";break;case"right":z.alignSelf="end";break}},margin(H,z){H.margin&&(z.margin=H.margin[n.$toStyle]().margin)}};function B(H,z){H[n.$getSubformParent]().layout==="position"&&(H.minW>0&&(z.minWidth=L(H.minW)),H.maxW>0&&(z.maxWidth=L(H.maxW)),H.minH>0&&(z.minHeight=L(H.minH)),H.maxH>0&&(z.maxHeight=L(H.maxH)))}function P(H,z,X,q,$,fe){const Q=new e.TextMeasure(z,X,q,$);return typeof H=="string"?Q.addString(H):H[n.$pushGlyphs](Q),Q.compute(fe)}function S(H,z){let X=null,q=null,$=!1;if((!H.w||!H.h)&&H.value){let fe=0,Q=0;H.margin&&(fe=H.margin.leftInset+H.margin.rightInset,Q=H.margin.topInset+H.margin.bottomInset);let ie=null,Te=null;H.para&&(Te=Object.create(null),ie=H.para.lineHeight===""?null:H.para.lineHeight,Te.top=H.para.spaceAbove===""?0:H.para.spaceAbove,Te.bottom=H.para.spaceBelow===""?0:H.para.spaceBelow,Te.left=H.para.marginLeft===""?0:H.para.marginLeft,Te.right=H.para.marginRight===""?0:H.para.marginRight);let me=H.font;if(!me){const de=H[n.$getTemplateRoot]();let Z=H[n.$getParent]();for(;Z&&Z!==de;){if(Z.font){me=Z.font;break}Z=Z[n.$getParent]()}}const K=(H.w||z.width)-fe,ce=H[n.$globalData].fontFinder;if(H.value.exData&&H.value.exData[n.$content]&&H.value.exData.contentType==="text/html"){const de=P(H.value.exData[n.$content],me,Te,ie,ce,K);q=de.width,X=de.height,$=de.isBroken}else{const de=H.value[n.$text]();if(de){const Z=P(de,me,Te,ie,ce,K);q=Z.width,X=Z.height,$=Z.isBroken}}q!==null&&!H.w&&(q+=fe),X!==null&&!H.h&&(X+=Q)}return{w:q,h:X,isBroken:$}}function _(H,z,X){let q;if(H.w!==""&&H.h!=="")q=[H.x,H.y,H.w,H.h];else{if(!X)return null;let $=H.w;if($===""){if(H.maxW===0){const Q=H[n.$getSubformParent]();Q.layout==="position"&&Q.w!==""?$=0:$=H.minW}else $=Math.min(H.maxW,X.width);z.attributes.style.width=L($)}let fe=H.h;if(fe===""){if(H.maxH===0){const Q=H[n.$getSubformParent]();Q.layout==="position"&&Q.h!==""?fe=0:fe=H.minH}else fe=Math.min(H.maxH,X.height);z.attributes.style.height=L(fe)}q=[H.x,H.y,$,fe]}return q}function l(H){const z=H[n.$getSubformParent]();if(z.layout&&z.layout.includes("row")){const X=z[n.$extra],q=H.colSpan;let $;q===-1?$=X.columnWidths.slice(X.currentColumn).reduce((fe,Q)=>fe+Q,0):$=X.columnWidths.slice(X.currentColumn,X.currentColumn+q).reduce((fe,Q)=>fe+Q,0),isNaN($)||(H.w=$)}z.layout&&z.layout!=="position"&&(H.x=H.y=0),H.layout==="table"&&H.w===""&&Array.isArray(H.columnWidths)&&(H.w=H.columnWidths.reduce((X,q)=>X+q,0))}function y(H){switch(H.layout){case"position":return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb";default:return"xfaPosition"}}function D(H){const z=Object.create(null);for(var X=arguments.length,q=new Array(X>1?X-1:0),$=1;$=0)return;const q="padding"+((H.textAlign==="right"?"right":"left")==="left"?"Left":"Right"),$=(0,R.getMeasurement)(H[q],"0px");H[q]=`${$-z}px`}function N(H,z){switch(H.access){case"nonInteractive":z.push("xfaNonInteractive");break;case"readOnly":z.push("xfaReadOnly");break;case"protected":z.push("xfaDisabled");break}}function G(H){return H.relevant.length>0&&!H.relevant[0].excluded&&H.relevant[0].viewname==="print"}function W(H){const z=H[n.$getTemplateRoot]()[n.$extra].paraStack;return z.length?z.at(-1):null}function J(H,z,X){if(X.attributes.class&&X.attributes.class.includes("xfaRich")){z&&(H.h===""&&(z.height="auto"),H.w===""&&(z.width="auto"));const q=W(H);if(q){const $=X.attributes.style;switch($.display="flex",$.flexDirection="column",q.vAlign){case"top":$.justifyContent="start";break;case"bottom":$.justifyContent="end";break;case"middle":$.justifyContent="center";break}const fe=q[n.$toStyle]();for(const[Q,ie]of Object.entries(fe))Q in $||($[Q]=ie)}}}function Y(H,z,X,q){if(!X){delete q.fontFamily;return}const $=(0,R.stripQuotes)(H.typeface);q.fontFamily=`"${$}"`;const fe=X.find($);if(fe){const{fontFamily:Q}=fe.regular.cssFontInfo;Q!==$&&(q.fontFamily=`"${Q}"`);const ie=W(z);if(ie&&ie.lineHeight!==""||q.lineHeight)return;const Te=(0,v.selectFont)(H,fe);Te&&(q.lineHeight=Math.max(1.2,Te.lineHeight))}}function V(H){const z=(0,c.createValidAbsoluteUrl)(H,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return z?z.href:null}},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.FontFinder=void 0,a.getMetrics=L,a.selectFont=e;var n=g(202),c=g(203),R=g(2);class v{constructor(B){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(B)}add(B){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;for(const _ of B)this.addPdfFont(_);for(const _ of this.fonts.values())_.regular||(_.regular=_.italic||_.bold||_.bolditalic);if(!P||P.size===0)return;const S=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(const _ of P)this.fonts.set(_,S)}addPdfFont(B){const P=B.cssFontInfo,S=P.fontFamily;let _=this.fonts.get(S);_||(_=Object.create(null),this.fonts.set(S,_),this.defaultFont||(this.defaultFont=_));let l="";const y=parseFloat(P.fontWeight);parseFloat(P.italicAngle)!==0?l=y>=700?"bolditalic":"italic":y>=700&&(l="bold"),l||((B.name.includes("Bold")||B.psName&&B.psName.includes("Bold"))&&(l="bold"),(B.name.includes("Italic")||B.name.endsWith("It")||B.psName&&(B.psName.includes("Italic")||B.psName.endsWith("It")))&&(l+="italic")),l||(l="regular"),_[l]=B}getDefault(){return this.defaultFont}find(B){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,S=this.fonts.get(B)||this.cache.get(B);if(S)return S;const _=/,|-|_| |bolditalic|bold|italic|regular|it/gi;let l=B.replace(_,"");if(S=this.fonts.get(l),S)return this.cache.set(B,S),S;l=l.toLowerCase();const y=[];for(const[D,M]of this.fonts.entries())D.replace(_,"").toLowerCase().startsWith(l)&&y.push(M);if(y.length===0)for(const[,D]of this.fonts.entries())D.regular.name&&D.regular.name.replace(_,"").toLowerCase().startsWith(l)&&y.push(D);if(y.length===0){l=l.replace(/psmt|mt/gi,"");for(const[D,M]of this.fonts.entries())D.replace(_,"").toLowerCase().startsWith(l)&&y.push(M)}if(y.length===0)for(const D of this.fonts.values())D.regular.name&&D.regular.name.replace(_,"").toLowerCase().startsWith(l)&&y.push(D);return y.length>=1?(y.length!==1&&P&&(0,R.warn)(`XFA - Too many choices to guess the correct font: ${B}`),this.cache.set(B,y[0]),y[0]):(P&&!this.warned.has(B)&&(this.warned.add(B),(0,R.warn)(`XFA - Cannot find the font: ${B}`)),null)}}a.FontFinder=v;function e(O,B){return O.posture==="italic"?O.weight==="bold"?B.bolditalic:B.italic:O.weight==="bold"?B.bold:B.regular}function L(O){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,P=null;if(O){const y=(0,c.stripQuotes)(O.typeface),D=O[n.$globalData].fontFinder.find(y);P=e(O,D)}if(!P)return{lineHeight:12,lineGap:2,lineNoGap:10};const S=O.size||10,_=P.lineHeight?Math.max(B?0:1.2,P.lineHeight):1.2,l=P.lineGap===void 0?.2:P.lineGap;return{lineHeight:_*S,lineGap:l*S,lineNoGap:Math.max(1,_-l)*S}}},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.TextMeasure=void 0;var n=g(210);const c=1.02;class R{constructor(O,B,P,S){if(this.lineHeight=P,this.paraMargin=B||{top:0,bottom:0,left:0,right:0},!O){[this.pdfFont,this.xfaFont]=this.defaultFont(S);return}this.xfaFont={typeface:O.typeface,posture:O.posture,weight:O.weight,size:O.size,letterSpacing:O.letterSpacing};const _=S.find(O.typeface);if(!_){[this.pdfFont,this.xfaFont]=this.defaultFont(S);return}this.pdfFont=(0,n.selectFont)(O,_),this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(S))}defaultFont(O){const B=O.find("Helvetica",!1)||O.find("Myriad Pro",!1)||O.find("Arial",!1)||O.getDefault();if(B&&B.regular){const S=B.regular,l={typeface:S.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0};return[S,l]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}class v{constructor(O,B,P,S){this.fontFinder=S,this.stack=[new R(O,B,P,S)]}pushData(O,B,P){const S=this.stack.at(-1);for(const l of["typeface","posture","weight","size","letterSpacing"])O[l]||(O[l]=S.xfaFont[l]);for(const l of["top","bottom","left","right"])isNaN(B[l])&&(B[l]=S.paraMargin[l]);const _=new R(O,B,P||S.lineHeight,this.fontFinder);_.pdfFont||(_.pdfFont=S.pdfFont),this.stack.push(_)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}class e{constructor(O,B,P,S){this.glyphs=[],this.fontSelector=new v(O,B,P,S),this.extraHeight=0}pushData(O,B,P){this.fontSelector.pushData(O,B,P)}popFont(O){return this.fontSelector.popFont()}addPara(){const O=this.fontSelector.topFont();this.extraHeight+=O.paraMargin.top+O.paraMargin.bottom}addString(O){if(!O)return;const B=this.fontSelector.topFont(),P=B.xfaFont.size;if(B.pdfFont){const S=B.xfaFont.letterSpacing,_=B.pdfFont,l=_.lineHeight||1.2,y=B.lineHeight||Math.max(1.2,l)*P,D=_.lineGap===void 0?.2:_.lineGap,M=l-D,F=Math.max(1,M)*P,N=P/1e3,G=_.defaultWidth||_.charsToGlyphs(" ")[0].width;for(const W of O.split(/[\u2029\n]/)){const J=_.encodeString(W).join(""),Y=_.charsToGlyphs(J);for(const V of Y){const H=V.width||G;this.glyphs.push([H*N+S,y,F,V.unicode,!1])}this.glyphs.push([0,0,0,` `,!0])}this.glyphs.pop();return}for(const S of O.split(/[\u2029\n]/)){for(const _ of S.split(""))this.glyphs.push([P,1.2*P,P,_,!1]);this.glyphs.push([0,0,0,` `,!0])}this.glyphs.pop()}compute(O){let B=-1,P=0,S=0,_=0,l=0,y=0,D=!1,M=!0;for(let F=0,N=this.glyphs.length;FO?(S=Math.max(S,l),l=0,_+=y,y=z,B=-1,P=0,D=!0,M=!1):(y=Math.max(z,y),P=l,l+=G,B=F);continue}if(l+G>O){_+=y,y=z,B!==-1?(F=B,S=Math.max(S,P),l=0,B=-1,P=0):(S=Math.max(S,l),l=G),D=!0,M=!1;continue}l+=G,y=Math.max(z,y)}return S=Math.max(S,l),_+=y+this.extraHeight,{width:c*S,height:_,isBroken:D}}}a.TextMeasure=e},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DataHandler=void 0;var n=g(202);class c{constructor(v,e){this.data=e,this.dataset=v.datasets||null}serialize(v){const e=[[-1,this.data[n.$getChildren]()]];for(;e.length>0;){const O=e.at(-1),[B,P]=O;if(B+1===P.length){e.pop();continue}const S=P[++O[0]],_=v.get(S[n.$uid]);if(_)S[n.$setValue](_);else{const y=S[n.$getAttributes]();for(const D of y.values()){const M=v.get(D[n.$uid]);if(M){D[n.$setValue](M);break}}}const l=S[n.$getChildren]();l.length>0&&e.push([-1,l])}const L=[''];if(this.dataset)for(const O of this.dataset[n.$getChildren]())O[n.$nodeName]!=="data"&&O[n.$toString](L);return this.data[n.$toString](L),L.push(""),L.join("")}}a.DataHandler=c},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.XFAParser=void 0;var n=g(202),c=g(191),R=g(214),v=g(2);class e extends c.XMLParserBase{constructor(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super(),this._builder=new R.Builder(O),this._stack=[],this._globalData={usedTypefaces:new Set},this._ids=new Map,this._current=this._builder.buildRoot(this._ids),this._errorCode=c.XMLParserErrorCode.NoError,this._whiteRegex=/^\s+$/,this._nbsps=/\xa0+/g,this._richText=B}parse(O){if(this.parseXml(O),this._errorCode===c.XMLParserErrorCode.NoError)return this._current[n.$finalize](),this._current.element}onText(O){if(O=O.replace(this._nbsps,B=>B.slice(1)+" "),this._richText||this._current[n.$acceptWhitespace]()){this._current[n.$onText](O,this._richText);return}this._whiteRegex.test(O)||this._current[n.$onText](O.trim())}onCdata(O){this._current[n.$onText](O)}_mkAttributes(O,B){let P=null,S=null;const _=Object.create({});for(const{name:l,value:y}of O)if(l==="xmlns")P?(0,v.warn)(`XFA - multiple namespace definition in <${B}>`):P=y;else if(l.startsWith("xmlns:")){const D=l.substring(6);S||(S=[]),S.push({prefix:D,value:y})}else{const D=l.indexOf(":");if(D===-1)_[l]=y;else{let M=_[n.$nsAttributes];M||(M=_[n.$nsAttributes]=Object.create(null));const[F,N]=[l.slice(0,D),l.slice(D+1)];let G=M[F];G||(G=M[F]=Object.create(null)),G[N]=y}}return[P,S,_]}_getNameAndPrefix(O,B){const P=O.indexOf(":");return P===-1?[O,null]:[O.substring(P+1),B?"":O.substring(0,P)]}onBeginElement(O,B,P){const[S,_,l]=this._mkAttributes(B,O),[y,D]=this._getNameAndPrefix(O,this._builder.isNsAgnostic()),M=this._builder.build({nsPrefix:D,name:y,attributes:l,namespace:S,prefixes:_});if(M[n.$globalData]=this._globalData,P){M[n.$finalize](),this._current[n.$onChild](M)&&M[n.$setId](this._ids),M[n.$clean](this._builder);return}this._stack.push(this._current),this._current=M}onEndElement(O){const B=this._current;if(B[n.$isCDATAXml]()&&typeof B[n.$content]=="string"){const P=new e;P._globalData=this._globalData;const S=P.parse(B[n.$content]);B[n.$content]=null,B[n.$onChild](S)}B[n.$finalize](),this._current=this._stack.pop(),this._current[n.$onChild](B)&&B[n.$setId](this._ids),B[n.$clean](this._builder)}onError(O){this._errorCode=O}}a.XFAParser=e},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Builder=void 0;var n=g(204),c=g(202),R=g(215),v=g(207),e=g(224),L=g(2);class O extends c.XFAObject{constructor(_){super(-1,"root",Object.create(null)),this.element=null,this[c.$ids]=_}[c.$onChild](_){return this.element=_,!0}[c.$finalize](){super[c.$finalize](),this.element.template instanceof v.Template&&(this[c.$ids].set(c.$root,this.element),this.element.template[c.$resolvePrototypes](this[c.$ids]),this.element.template[c.$ids]=this[c.$ids])}}class B extends c.XFAObject{constructor(){super(-1,"",Object.create(null))}[c.$onChild](_){return!1}}class P{constructor(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max(...Object.values(n.NamespaceIds).map(l=>{let{id:y}=l;return y})),this._currentNamespace=_||new e.UnknownNamespace(++this._nextNsId)}buildRoot(_){return new O(_)}build(_){let{nsPrefix:l,name:y,attributes:D,namespace:M,prefixes:F}=_;const N=M!==null;if(N&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(M)),F&&this._addNamespacePrefix(F),D.hasOwnProperty(c.$nsAttributes)){const J=R.NamespaceSetUp.datasets,Y=D[c.$nsAttributes];let V=null;for(const[H,z]of Object.entries(Y))if(this._getNamespaceToUse(H)===J){V={xfa:z};break}V?D[c.$nsAttributes]=V:delete D[c.$nsAttributes]}const G=this._getNamespaceToUse(l),W=G&&G[n.$buildXFAObject](y,D)||new B;return W[c.$isNsAgnostic]()&&this._nsAgnosticLevel++,(N||F||W[c.$isNsAgnostic]())&&(W[c.$cleanup]={hasNamespace:N,prefixes:F,nsAgnostic:W[c.$isNsAgnostic]()}),W}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(_){let l=this._namespaces.get(_);if(l)return l;for(const[y,{check:D}]of Object.entries(n.NamespaceIds))if(D(_)){if(l=R.NamespaceSetUp[y],l)return this._namespaces.set(_,l),l;break}return l=new e.UnknownNamespace(++this._nextNsId),this._namespaces.set(_,l),l}_addNamespacePrefix(_){for(const{prefix:l,value:y}of _){const D=this._searchNamespace(y);let M=this._namespacePrefixes.get(l);M||(M=[],this._namespacePrefixes.set(l,M)),M.push(D)}}_getNamespaceToUse(_){if(!_)return this._currentNamespace;const l=this._namespacePrefixes.get(_);return l&&l.length>0?l.at(-1):((0,L.warn)(`Unknown namespace prefix: ${_}.`),null)}clean(_){const{hasNamespace:l,prefixes:y,nsAgnostic:D}=_;l&&(this._currentNamespace=this._namespaceStack.pop()),y&&y.forEach(M=>{let{prefix:F}=M;this._namespacePrefixes.get(F).pop()}),D&&this._nsAgnosticLevel--}}a.Builder=P},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.NamespaceSetUp=void 0;var n=g(216),c=g(217),R=g(218),v=g(219),e=g(220),L=g(221),O=g(207),B=g(222),P=g(223);const S={config:n.ConfigNamespace,connection:c.ConnectionSetNamespace,datasets:R.DatasetsNamespace,localeSet:v.LocaleSetNamespace,signature:e.SignatureNamespace,stylesheet:L.StylesheetNamespace,template:O.TemplateNamespace,xdp:B.XdpNamespace,xhtml:P.XhtmlNamespace};a.NamespaceSetUp=S},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ConfigNamespace=void 0;var n=g(204),c=g(202),R=g(203),v=g(2);const e=n.NamespaceIds.config.id;class L extends c.XFAObject{constructor(Ge){super(e,"acrobat",!0),this.acrobat7=null,this.autoSave=null,this.common=null,this.validate=null,this.validateApprovalSignatures=null,this.submitUrl=new c.XFAObjectArray}}class O extends c.XFAObject{constructor(Ge){super(e,"acrobat7",!0),this.dynamicRender=null}}class B extends c.OptionObject{constructor(Ge){super(e,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class P extends c.OptionObject{constructor(Ge){super(e,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class S extends c.Option01{constructor(Ge){super(e,"addSilentPrint")}}class _ extends c.Option01{constructor(Ge){super(e,"addViewerPreferences")}}class l extends c.Option10{constructor(Ge){super(e,"adjustData")}}class y extends c.IntegerObject{constructor(Ge){super(e,"adobeExtensionLevel",0,bt=>bt>=1&&bt<=8)}}class D extends c.XFAObject{constructor(Ge){super(e,"agent",!0),this.name=Ge.name?Ge.name.trim():"",this.common=new c.XFAObjectArray}}class M extends c.ContentObject{constructor(Ge){super(e,"alwaysEmbed")}}class F extends c.StringObject{constructor(Ge){super(e,"amd")}}class N extends c.XFAObject{constructor(Ge){super(e,"area"),this.level=(0,R.getInteger)({data:Ge.level,defaultValue:0,validate:bt=>bt>=1&&bt<=3}),this.name=(0,R.getStringOption)(Ge.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class G extends c.OptionObject{constructor(Ge){super(e,"attributes",["preserve","delegate","ignore"])}}class W extends c.OptionObject{constructor(Ge){super(e,"autoSave",["disabled","enabled"])}}class J extends c.StringObject{constructor(Ge){super(e,"base")}}class Y extends c.XFAObject{constructor(Ge){super(e,"batchOutput"),this.format=(0,R.getStringOption)(Ge.format,["none","concat","zip","zipCompress"])}}class V extends c.ContentObject{constructor(Ge){super(e,"behaviorOverride")}[c.$finalize](){this[c.$content]=new Map(this[c.$content].trim().split(/\s+/).filter(Ge=>Ge.includes(":")).map(Ge=>Ge.split(":",2)))}}class H extends c.XFAObject{constructor(Ge){super(e,"cache",!0),this.templateCache=null}}class z extends c.Option01{constructor(Ge){super(e,"change")}}class X extends c.XFAObject{constructor(Ge){super(e,"common",!0),this.data=null,this.locale=null,this.localeSet=null,this.messaging=null,this.suppressBanner=null,this.template=null,this.validationMessaging=null,this.versionControl=null,this.log=new c.XFAObjectArray}}class q extends c.XFAObject{constructor(Ge){super(e,"compress"),this.scope=(0,R.getStringOption)(Ge.scope,["imageOnly","document"])}}class $ extends c.Option01{constructor(Ge){super(e,"compressLogicalStructure")}}class fe extends c.Option10{constructor(Ge){super(e,"compressObjectStream")}}class Q extends c.XFAObject{constructor(Ge){super(e,"compression",!0),this.compressLogicalStructure=null,this.compressObjectStream=null,this.level=null,this.type=null}}class ie extends c.XFAObject{constructor(Ge){super(e,"config",!0),this.acrobat=null,this.present=null,this.trace=null,this.agent=new c.XFAObjectArray}}class Te extends c.OptionObject{constructor(Ge){super(e,"conformance",["A","B"])}}class me extends c.Option01{constructor(Ge){super(e,"contentCopy")}}class K extends c.IntegerObject{constructor(Ge){super(e,"copies",1,bt=>bt>=1)}}class ce extends c.StringObject{constructor(Ge){super(e,"creator")}}class de extends c.IntegerObject{constructor(Ge){super(e,"currentPage",0,bt=>bt>=0)}}class Z extends c.XFAObject{constructor(Ge){super(e,"data",!0),this.adjustData=null,this.attributes=null,this.incrementalLoad=null,this.outputXSL=null,this.range=null,this.record=null,this.startNode=null,this.uri=null,this.window=null,this.xsl=null,this.excludeNS=new c.XFAObjectArray,this.transform=new c.XFAObjectArray}}class ae extends c.XFAObject{constructor(Ge){super(e,"debug",!0),this.uri=null}}class he extends c.ContentObject{constructor(Ge){super(e,"defaultTypeface"),this.writingScript=(0,R.getStringOption)(Ge.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class we extends c.OptionObject{constructor(Ge){super(e,"destination",["pdf","pcl","ps","webClient","zpl"])}}class _e extends c.Option01{constructor(Ge){super(e,"documentAssembly")}}class ye extends c.XFAObject{constructor(Ge){super(e,"driver",!0),this.name=Ge.name?Ge.name.trim():"",this.fontInfo=null,this.xdc=null}}class se extends c.OptionObject{constructor(Ge){super(e,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class Ie extends c.OptionObject{constructor(Ge){super(e,"dynamicRender",["forbidden","required"])}}class Ce extends c.Option01{constructor(Ge){super(e,"embed")}}class oe extends c.Option01{constructor(Ge){super(e,"encrypt")}}class pe extends c.XFAObject{constructor(Ge){super(e,"encryption",!0),this.encrypt=null,this.encryptionLevel=null,this.permissions=null}}class xe extends c.OptionObject{constructor(Ge){super(e,"encryptionLevel",["40bit","128bit"])}}class Ne extends c.StringObject{constructor(Ge){super(e,"enforce")}}class ke extends c.XFAObject{constructor(Ge){super(e,"equate"),this.force=(0,R.getInteger)({data:Ge.force,defaultValue:1,validate:bt=>bt===0}),this.from=Ge.from||"",this.to=Ge.to||""}}class De extends c.XFAObject{constructor(Ge){super(e,"equateRange"),this.from=Ge.from||"",this.to=Ge.to||"",this._unicodeRange=Ge.unicodeRange||""}get unicodeRange(){const Ge=[],bt=/U\+([0-9a-fA-F]+)/,Tt=this._unicodeRange;for(let Ft of Tt.split(",").map(Zt=>Zt.trim()).filter(Zt=>!!Zt))Ft=Ft.split("-",2).map(Zt=>{const Qt=Zt.match(bt);return Qt?parseInt(Qt[1],16):0}),Ft.length===1&&Ft.push(Ft[0]),Ge.push(Ft);return(0,v.shadow)(this,"unicodeRange",Ge)}}class Fe extends c.ContentObject{constructor(Ge){super(e,"exclude")}[c.$finalize](){this[c.$content]=this[c.$content].trim().split(/\s+/).filter(Ge=>Ge&&["calculate","close","enter","exit","initialize","ready","validate"].includes(Ge))}}class Pe extends c.StringObject{constructor(Ge){super(e,"excludeNS")}}class qe extends c.OptionObject{constructor(Ge){super(e,"flipLabel",["usePrinterSetting","on","off"])}}class Le extends c.XFAObject{constructor(Ge){super(e,"fontInfo",!0),this.embed=null,this.map=null,this.subsetBelow=null,this.alwaysEmbed=new c.XFAObjectArray,this.defaultTypeface=new c.XFAObjectArray,this.neverEmbed=new c.XFAObjectArray}}class Oe extends c.Option01{constructor(Ge){super(e,"formFieldFilling")}}class Ee extends c.StringObject{constructor(Ge){super(e,"groupParent")}}class Ae extends c.OptionObject{constructor(Ge){super(e,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class Ve extends c.StringObject{constructor(Ge){super(e,"includeXDPContent")}}class $e extends c.OptionObject{constructor(Ge){super(e,"incrementalLoad",["none","forwardOnly"])}}class Ue extends c.Option01{constructor(Ge){super(e,"incrementalMerge")}}class He extends c.Option01{constructor(Ge){super(e,"interactive")}}class Qe extends c.OptionObject{constructor(Ge){super(e,"jog",["usePrinterSetting","none","pageSet"])}}class Ze extends c.XFAObject{constructor(Ge){super(e,"labelPrinter",!0),this.name=(0,R.getStringOption)(Ge.name,["zpl","dpl","ipl","tcpl"]),this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class et extends c.OptionObject{constructor(Ge){super(e,"layout",["paginate","panel"])}}class tt extends c.IntegerObject{constructor(Ge){super(e,"level",0,bt=>bt>0)}}class je extends c.Option01{constructor(Ge){super(e,"linearized")}}class Je extends c.StringObject{constructor(Ge){super(e,"locale")}}class nt extends c.StringObject{constructor(Ge){super(e,"localeSet")}}class Ke extends c.XFAObject{constructor(Ge){super(e,"log",!0),this.mode=null,this.threshold=null,this.to=null,this.uri=null}}class at extends c.XFAObject{constructor(Ge){super(e,"map",!0),this.equate=new c.XFAObjectArray,this.equateRange=new c.XFAObjectArray}}class ot extends c.XFAObject{constructor(Ge){super(e,"mediumInfo",!0),this.map=null}}class Xe extends c.XFAObject{constructor(Ge){super(e,"message",!0),this.msgId=null,this.severity=null}}class ze extends c.XFAObject{constructor(Ge){super(e,"messaging",!0),this.message=new c.XFAObjectArray}}class Ye extends c.OptionObject{constructor(Ge){super(e,"mode",["append","overwrite"])}}class st extends c.Option01{constructor(Ge){super(e,"modifyAnnots")}}class _t extends c.IntegerObject{constructor(Ge){super(e,"msgId",1,bt=>bt>=1)}}class ft extends c.StringObject{constructor(Ge){super(e,"nameAttr")}}class Ct extends c.ContentObject{constructor(Ge){super(e,"neverEmbed")}}class ut extends c.IntegerObject{constructor(Ge){super(e,"numberOfCopies",null,bt=>bt>=2&&bt<=5)}}class rt extends c.XFAObject{constructor(Ge){super(e,"openAction",!0),this.destination=null}}class mt extends c.XFAObject{constructor(Ge){super(e,"output",!0),this.to=null,this.type=null,this.uri=null}}class Ot extends c.StringObject{constructor(Ge){super(e,"outputBin")}}class dt extends c.XFAObject{constructor(Ge){super(e,"outputXSL",!0),this.uri=null}}class Nt extends c.OptionObject{constructor(Ge){super(e,"overprint",["none","both","draw","field"])}}class kt extends c.StringObject{constructor(Ge){super(e,"packets")}[c.$finalize](){this[c.$content]!=="*"&&(this[c.$content]=this[c.$content].trim().split(/\s+/).filter(Ge=>["config","datasets","template","xfdf","xslt"].includes(Ge)))}}class Ut extends c.XFAObject{constructor(Ge){super(e,"pageOffset"),this.x=(0,R.getInteger)({data:Ge.x,defaultValue:"useXDCSetting",validate:bt=>!0}),this.y=(0,R.getInteger)({data:Ge.y,defaultValue:"useXDCSetting",validate:bt=>!0})}}class Ht extends c.StringObject{constructor(Ge){super(e,"pageRange")}[c.$finalize](){const Ge=this[c.$content].trim().split(/\s+/).map(Tt=>parseInt(Tt,10)),bt=[];for(let Tt=0,Ft=Ge.length;Tt!1)}}class vt extends c.XFAObject{constructor(Ge){super(e,"pcl",!0),this.name=Ge.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.pageOffset=null,this.staple=null,this.xdc=null}}class xt extends c.XFAObject{constructor(Ge){super(e,"pdf",!0),this.name=Ge.name||"",this.adobeExtensionLevel=null,this.batchOutput=null,this.compression=null,this.creator=null,this.encryption=null,this.fontInfo=null,this.interactive=null,this.linearized=null,this.openAction=null,this.pdfa=null,this.producer=null,this.renderPolicy=null,this.scriptModel=null,this.silentPrint=null,this.submitFormat=null,this.tagged=null,this.version=null,this.viewerPreferences=null,this.xdc=null}}class Rt extends c.XFAObject{constructor(Ge){super(e,"pdfa",!0),this.amd=null,this.conformance=null,this.includeXDPContent=null,this.part=null}}class At extends c.XFAObject{constructor(Ge){super(e,"permissions",!0),this.accessibleContent=null,this.change=null,this.contentCopy=null,this.documentAssembly=null,this.formFieldFilling=null,this.modifyAnnots=null,this.plaintextMetadata=null,this.print=null,this.printHighQuality=null}}class Pt extends c.Option01{constructor(Ge){super(e,"pickTrayByPDFSize")}}class $t extends c.StringObject{constructor(Ge){super(e,"picture")}}class Wt extends c.Option01{constructor(Ge){super(e,"plaintextMetadata")}}class Dt extends c.OptionObject{constructor(Ge){super(e,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class Yt extends c.XFAObject{constructor(Ge){super(e,"present",!0),this.behaviorOverride=null,this.cache=null,this.common=null,this.copies=null,this.destination=null,this.incrementalMerge=null,this.layout=null,this.output=null,this.overprint=null,this.pagination=null,this.paginationOverride=null,this.script=null,this.validate=null,this.xdp=null,this.driver=new c.XFAObjectArray,this.labelPrinter=new c.XFAObjectArray,this.pcl=new c.XFAObjectArray,this.pdf=new c.XFAObjectArray,this.ps=new c.XFAObjectArray,this.submitUrl=new c.XFAObjectArray,this.webClient=new c.XFAObjectArray,this.zpl=new c.XFAObjectArray}}class Vt extends c.Option01{constructor(Ge){super(e,"print")}}class rn extends c.Option01{constructor(Ge){super(e,"printHighQuality")}}class en extends c.OptionObject{constructor(Ge){super(e,"printScaling",["appdefault","noScaling"])}}class Xt extends c.StringObject{constructor(Ge){super(e,"printerName")}}class ht extends c.StringObject{constructor(Ge){super(e,"producer")}}class Et extends c.XFAObject{constructor(Ge){super(e,"ps",!0),this.name=Ge.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.staple=null,this.xdc=null}}class It extends c.ContentObject{constructor(Ge){super(e,"range")}[c.$finalize](){this[c.$content]=this[c.$content].trim().split(/\s*,\s*/,2).map(Ge=>Ge.split("-").map(bt=>parseInt(bt.trim(),10))).filter(Ge=>Ge.every(bt=>!isNaN(bt))).map(Ge=>(Ge.length===1&&Ge.push(Ge[0]),Ge))}}class wt extends c.ContentObject{constructor(Ge){super(e,"record")}[c.$finalize](){this[c.$content]=this[c.$content].trim();const Ge=parseInt(this[c.$content],10);!isNaN(Ge)&&Ge>=0&&(this[c.$content]=Ge)}}class Bt extends c.ContentObject{constructor(Ge){super(e,"relevant")}[c.$finalize](){this[c.$content]=this[c.$content].trim().split(/\s+/)}}class Jt extends c.ContentObject{constructor(Ge){super(e,"rename")}[c.$finalize](){this[c.$content]=this[c.$content].trim(),(this[c.$content].toLowerCase().startsWith("xml")||this[c.$content].match(new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u")))&&(0,v.warn)("XFA - Rename: invalid XFA name")}}class _n extends c.OptionObject{constructor(Ge){super(e,"renderPolicy",["server","client"])}}class nn extends c.OptionObject{constructor(Ge){super(e,"runScripts",["both","client","none","server"])}}class an extends c.XFAObject{constructor(Ge){super(e,"script",!0),this.currentPage=null,this.exclude=null,this.runScripts=null}}class bn extends c.OptionObject{constructor(Ge){super(e,"scriptModel",["XFA","none"])}}class Cn extends c.OptionObject{constructor(Ge){super(e,"severity",["ignore","error","information","trace","warning"])}}class Mn extends c.XFAObject{constructor(Ge){super(e,"silentPrint",!0),this.addSilentPrint=null,this.printerName=null}}class Gn extends c.XFAObject{constructor(Ge){super(e,"staple"),this.mode=(0,R.getStringOption)(Ge.mode,["usePrinterSetting","on","off"])}}class xr extends c.StringObject{constructor(Ge){super(e,"startNode")}}class Kn extends c.IntegerObject{constructor(Ge){super(e,"startPage",0,bt=>!0)}}class Hn extends c.OptionObject{constructor(Ge){super(e,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class zn extends c.StringObject{constructor(Ge){super(e,"submitUrl")}}class kn extends c.IntegerObject{constructor(Ge){super(e,"subsetBelow",100,bt=>bt>=0&&bt<=100)}}class vr extends c.Option01{constructor(Ge){super(e,"suppressBanner")}}class lr extends c.Option01{constructor(Ge){super(e,"tagged")}}class Tr extends c.XFAObject{constructor(Ge){super(e,"template",!0),this.base=null,this.relevant=null,this.startPage=null,this.uri=null,this.xsl=null}}class Qn extends c.OptionObject{constructor(Ge){super(e,"threshold",["trace","error","information","warning"])}}class Zn extends c.OptionObject{constructor(Ge){super(e,"to",["null","memory","stderr","stdout","system","uri"])}}class cr extends c.XFAObject{constructor(Ge){super(e,"templateCache"),this.maxEntries=(0,R.getInteger)({data:Ge.maxEntries,defaultValue:5,validate:bt=>bt>=0})}}class ur extends c.XFAObject{constructor(Ge){super(e,"trace",!0),this.area=new c.XFAObjectArray}}class Cr extends c.XFAObject{constructor(Ge){super(e,"transform",!0),this.groupParent=null,this.ifEmpty=null,this.nameAttr=null,this.picture=null,this.presence=null,this.rename=null,this.whitespace=null}}class Jn extends c.OptionObject{constructor(Ge){super(e,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class qn extends c.StringObject{constructor(Ge){super(e,"uri")}}class dr extends c.OptionObject{constructor(Ge){super(e,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class Ar extends c.ContentObject{constructor(Ge){super(e,"validateApprovalSignatures")}[c.$finalize](){this[c.$content]=this[c.$content].trim().split(/\s+/).filter(Ge=>["docReady","postSign"].includes(Ge))}}class fr extends c.OptionObject{constructor(Ge){super(e,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}class Wn extends c.OptionObject{constructor(Ge){super(e,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class er extends c.XFAObject{constructor(Ge){super(e,"VersionControl"),this.outputBelow=(0,R.getStringOption)(Ge.outputBelow,["warn","error","update"]),this.sourceAbove=(0,R.getStringOption)(Ge.sourceAbove,["warn","error"]),this.sourceBelow=(0,R.getStringOption)(Ge.sourceBelow,["update","maintain"])}}class Rr extends c.XFAObject{constructor(Ge){super(e,"viewerPreferences",!0),this.ADBE_JSConsole=null,this.ADBE_JSDebugger=null,this.addViewerPreferences=null,this.duplexOption=null,this.enforce=null,this.numberOfCopies=null,this.pageRange=null,this.pickTrayByPDFSize=null,this.printScaling=null}}class gr extends c.XFAObject{constructor(Ge){super(e,"webClient",!0),this.name=Ge.name?Ge.name.trim():"",this.fontInfo=null,this.xdc=null}}class tr extends c.OptionObject{constructor(Ge){super(e,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class Ln extends c.ContentObject{constructor(Ge){super(e,"window")}[c.$finalize](){const Ge=this[c.$content].trim().split(/\s*,\s*/,2).map(bt=>parseInt(bt,10));if(Ge.some(bt=>isNaN(bt))){this[c.$content]=[0,0];return}Ge.length===1&&Ge.push(Ge[0]),this[c.$content]=Ge}}class $n extends c.XFAObject{constructor(Ge){super(e,"xdc",!0),this.uri=new c.XFAObjectArray,this.xsl=new c.XFAObjectArray}}class mr extends c.XFAObject{constructor(Ge){super(e,"xdp",!0),this.packets=null}}class zr extends c.XFAObject{constructor(Ge){super(e,"xsl",!0),this.debug=null,this.uri=null}}class _r extends c.XFAObject{constructor(Ge){super(e,"zpl",!0),this.name=Ge.name?Ge.name.trim():"",this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class yt{static[n.$buildXFAObject](Ge,bt){if(yt.hasOwnProperty(Ge))return yt[Ge](bt)}static acrobat(Ge){return new L(Ge)}static acrobat7(Ge){return new O(Ge)}static ADBE_JSConsole(Ge){return new B(Ge)}static ADBE_JSDebugger(Ge){return new P(Ge)}static addSilentPrint(Ge){return new S(Ge)}static addViewerPreferences(Ge){return new _(Ge)}static adjustData(Ge){return new l(Ge)}static adobeExtensionLevel(Ge){return new y(Ge)}static agent(Ge){return new D(Ge)}static alwaysEmbed(Ge){return new M(Ge)}static amd(Ge){return new F(Ge)}static area(Ge){return new N(Ge)}static attributes(Ge){return new G(Ge)}static autoSave(Ge){return new W(Ge)}static base(Ge){return new J(Ge)}static batchOutput(Ge){return new Y(Ge)}static behaviorOverride(Ge){return new V(Ge)}static cache(Ge){return new H(Ge)}static change(Ge){return new z(Ge)}static common(Ge){return new X(Ge)}static compress(Ge){return new q(Ge)}static compressLogicalStructure(Ge){return new $(Ge)}static compressObjectStream(Ge){return new fe(Ge)}static compression(Ge){return new Q(Ge)}static config(Ge){return new ie(Ge)}static conformance(Ge){return new Te(Ge)}static contentCopy(Ge){return new me(Ge)}static copies(Ge){return new K(Ge)}static creator(Ge){return new ce(Ge)}static currentPage(Ge){return new de(Ge)}static data(Ge){return new Z(Ge)}static debug(Ge){return new ae(Ge)}static defaultTypeface(Ge){return new he(Ge)}static destination(Ge){return new we(Ge)}static documentAssembly(Ge){return new _e(Ge)}static driver(Ge){return new ye(Ge)}static duplexOption(Ge){return new se(Ge)}static dynamicRender(Ge){return new Ie(Ge)}static embed(Ge){return new Ce(Ge)}static encrypt(Ge){return new oe(Ge)}static encryption(Ge){return new pe(Ge)}static encryptionLevel(Ge){return new xe(Ge)}static enforce(Ge){return new Ne(Ge)}static equate(Ge){return new ke(Ge)}static equateRange(Ge){return new De(Ge)}static exclude(Ge){return new Fe(Ge)}static excludeNS(Ge){return new Pe(Ge)}static flipLabel(Ge){return new qe(Ge)}static fontInfo(Ge){return new Le(Ge)}static formFieldFilling(Ge){return new Oe(Ge)}static groupParent(Ge){return new Ee(Ge)}static ifEmpty(Ge){return new Ae(Ge)}static includeXDPContent(Ge){return new Ve(Ge)}static incrementalLoad(Ge){return new $e(Ge)}static incrementalMerge(Ge){return new Ue(Ge)}static interactive(Ge){return new He(Ge)}static jog(Ge){return new Qe(Ge)}static labelPrinter(Ge){return new Ze(Ge)}static layout(Ge){return new et(Ge)}static level(Ge){return new tt(Ge)}static linearized(Ge){return new je(Ge)}static locale(Ge){return new Je(Ge)}static localeSet(Ge){return new nt(Ge)}static log(Ge){return new Ke(Ge)}static map(Ge){return new at(Ge)}static mediumInfo(Ge){return new ot(Ge)}static message(Ge){return new Xe(Ge)}static messaging(Ge){return new ze(Ge)}static mode(Ge){return new Ye(Ge)}static modifyAnnots(Ge){return new st(Ge)}static msgId(Ge){return new _t(Ge)}static nameAttr(Ge){return new ft(Ge)}static neverEmbed(Ge){return new Ct(Ge)}static numberOfCopies(Ge){return new ut(Ge)}static openAction(Ge){return new rt(Ge)}static output(Ge){return new mt(Ge)}static outputBin(Ge){return new Ot(Ge)}static outputXSL(Ge){return new dt(Ge)}static overprint(Ge){return new Nt(Ge)}static packets(Ge){return new kt(Ge)}static pageOffset(Ge){return new Ut(Ge)}static pageRange(Ge){return new Ht(Ge)}static pagination(Ge){return new Kt(Ge)}static paginationOverride(Ge){return new qt(Ge)}static part(Ge){return new pn(Ge)}static pcl(Ge){return new vt(Ge)}static pdf(Ge){return new xt(Ge)}static pdfa(Ge){return new Rt(Ge)}static permissions(Ge){return new At(Ge)}static pickTrayByPDFSize(Ge){return new Pt(Ge)}static picture(Ge){return new $t(Ge)}static plaintextMetadata(Ge){return new Wt(Ge)}static presence(Ge){return new Dt(Ge)}static present(Ge){return new Yt(Ge)}static print(Ge){return new Vt(Ge)}static printHighQuality(Ge){return new rn(Ge)}static printScaling(Ge){return new en(Ge)}static printerName(Ge){return new Xt(Ge)}static producer(Ge){return new ht(Ge)}static ps(Ge){return new Et(Ge)}static range(Ge){return new It(Ge)}static record(Ge){return new wt(Ge)}static relevant(Ge){return new Bt(Ge)}static rename(Ge){return new Jt(Ge)}static renderPolicy(Ge){return new _n(Ge)}static runScripts(Ge){return new nn(Ge)}static script(Ge){return new an(Ge)}static scriptModel(Ge){return new bn(Ge)}static severity(Ge){return new Cn(Ge)}static silentPrint(Ge){return new Mn(Ge)}static staple(Ge){return new Gn(Ge)}static startNode(Ge){return new xr(Ge)}static startPage(Ge){return new Kn(Ge)}static submitFormat(Ge){return new Hn(Ge)}static submitUrl(Ge){return new zn(Ge)}static subsetBelow(Ge){return new kn(Ge)}static suppressBanner(Ge){return new vr(Ge)}static tagged(Ge){return new lr(Ge)}static template(Ge){return new Tr(Ge)}static templateCache(Ge){return new cr(Ge)}static threshold(Ge){return new Qn(Ge)}static to(Ge){return new Zn(Ge)}static trace(Ge){return new ur(Ge)}static transform(Ge){return new Cr(Ge)}static type(Ge){return new Jn(Ge)}static uri(Ge){return new qn(Ge)}static validate(Ge){return new dr(Ge)}static validateApprovalSignatures(Ge){return new Ar(Ge)}static validationMessaging(Ge){return new fr(Ge)}static version(Ge){return new Wn(Ge)}static versionControl(Ge){return new er(Ge)}static viewerPreferences(Ge){return new Rr(Ge)}static webClient(Ge){return new gr(Ge)}static whitespace(Ge){return new tr(Ge)}static window(Ge){return new Ln(Ge)}static xdc(Ge){return new $n(Ge)}static xdp(Ge){return new mr(Ge)}static xsl(Ge){return new zr(Ge)}static zpl(Ge){return new _r(Ge)}}a.ConfigNamespace=yt},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ConnectionSetNamespace=void 0;var n=g(204),c=g(202);const R=n.NamespaceIds.connectionSet.id;class v extends c.XFAObject{constructor(G){super(R,"connectionSet",!0),this.wsdlConnection=new c.XFAObjectArray,this.xmlConnection=new c.XFAObjectArray,this.xsdConnection=new c.XFAObjectArray}}class e extends c.XFAObject{constructor(G){super(R,"effectiveInputPolicy"),this.id=G.id||"",this.name=G.name||"",this.use=G.use||"",this.usehref=G.usehref||""}}class L extends c.XFAObject{constructor(G){super(R,"effectiveOutputPolicy"),this.id=G.id||"",this.name=G.name||"",this.use=G.use||"",this.usehref=G.usehref||""}}class O extends c.StringObject{constructor(G){super(R,"operation"),this.id=G.id||"",this.input=G.input||"",this.name=G.name||"",this.output=G.output||"",this.use=G.use||"",this.usehref=G.usehref||""}}class B extends c.StringObject{constructor(G){super(R,"rootElement"),this.id=G.id||"",this.name=G.name||"",this.use=G.use||"",this.usehref=G.usehref||""}}class P extends c.StringObject{constructor(G){super(R,"soapAction"),this.id=G.id||"",this.name=G.name||"",this.use=G.use||"",this.usehref=G.usehref||""}}class S extends c.StringObject{constructor(G){super(R,"soapAddress"),this.id=G.id||"",this.name=G.name||"",this.use=G.use||"",this.usehref=G.usehref||""}}class _ extends c.StringObject{constructor(G){super(R,"uri"),this.id=G.id||"",this.name=G.name||"",this.use=G.use||"",this.usehref=G.usehref||""}}class l extends c.StringObject{constructor(G){super(R,"wsdlAddress"),this.id=G.id||"",this.name=G.name||"",this.use=G.use||"",this.usehref=G.usehref||""}}class y extends c.XFAObject{constructor(G){super(R,"wsdlConnection",!0),this.dataDescription=G.dataDescription||"",this.name=G.name||"",this.effectiveInputPolicy=null,this.effectiveOutputPolicy=null,this.operation=null,this.soapAction=null,this.soapAddress=null,this.wsdlAddress=null}}class D extends c.XFAObject{constructor(G){super(R,"xmlConnection",!0),this.dataDescription=G.dataDescription||"",this.name=G.name||"",this.uri=null}}class M extends c.XFAObject{constructor(G){super(R,"xsdConnection",!0),this.dataDescription=G.dataDescription||"",this.name=G.name||"",this.rootElement=null,this.uri=null}}class F{static[n.$buildXFAObject](G,W){if(F.hasOwnProperty(G))return F[G](W)}static connectionSet(G){return new v(G)}static effectiveInputPolicy(G){return new e(G)}static effectiveOutputPolicy(G){return new L(G)}static operation(G){return new O(G)}static rootElement(G){return new B(G)}static soapAction(G){return new P(G)}static soapAddress(G){return new S(G)}static uri(G){return new _(G)}static wsdlAddress(G){return new l(G)}static wsdlConnection(G){return new y(G)}static xmlConnection(G){return new D(G)}static xsdConnection(G){return new M(G)}}a.ConnectionSetNamespace=F},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DatasetsNamespace=void 0;var n=g(202),c=g(204);const R=c.NamespaceIds.datasets.id;class v extends n.XmlObject{constructor(B){super(R,"data",B)}[n.$isNsAgnostic](){return!0}}class e extends n.XFAObject{constructor(B){super(R,"datasets",!0),this.data=null,this.Signature=null}[n.$onChild](B){const P=B[n.$nodeName];(P==="data"&&B[n.$namespaceId]===R||P==="Signature"&&B[n.$namespaceId]===c.NamespaceIds.signature.id)&&(this[P]=B),this[n.$appendChild](B)}}class L{static[c.$buildXFAObject](B,P){if(L.hasOwnProperty(B))return L[B](P)}static datasets(B){return new e(B)}static data(B){return new v(B)}}a.DatasetsNamespace=L},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.LocaleSetNamespace=void 0;var n=g(204),c=g(202),R=g(203);const v=n.NamespaceIds.localeSet.id;class e extends c.XFAObject{constructor(Te){super(v,"calendarSymbols",!0),this.name="gregorian",this.dayNames=new c.XFAObjectArray(2),this.eraNames=null,this.meridiemNames=null,this.monthNames=new c.XFAObjectArray(2)}}class L extends c.StringObject{constructor(Te){super(v,"currencySymbol"),this.name=(0,R.getStringOption)(Te.name,["symbol","isoname","decimal"])}}class O extends c.XFAObject{constructor(Te){super(v,"currencySymbols",!0),this.currencySymbol=new c.XFAObjectArray(3)}}class B extends c.StringObject{constructor(Te){super(v,"datePattern"),this.name=(0,R.getStringOption)(Te.name,["full","long","med","short"])}}class P extends c.XFAObject{constructor(Te){super(v,"datePatterns",!0),this.datePattern=new c.XFAObjectArray(4)}}class S extends c.ContentObject{constructor(Te){super(v,"dateTimeSymbols")}}class _ extends c.StringObject{constructor(Te){super(v,"day")}}class l extends c.XFAObject{constructor(Te){super(v,"dayNames",!0),this.abbr=(0,R.getInteger)({data:Te.abbr,defaultValue:0,validate:me=>me===1}),this.day=new c.XFAObjectArray(7)}}class y extends c.StringObject{constructor(Te){super(v,"era")}}class D extends c.XFAObject{constructor(Te){super(v,"eraNames",!0),this.era=new c.XFAObjectArray(2)}}class M extends c.XFAObject{constructor(Te){super(v,"locale",!0),this.desc=Te.desc||"",this.name="isoname",this.calendarSymbols=null,this.currencySymbols=null,this.datePatterns=null,this.dateTimeSymbols=null,this.numberPatterns=null,this.numberSymbols=null,this.timePatterns=null,this.typeFaces=null}}class F extends c.XFAObject{constructor(Te){super(v,"localeSet",!0),this.locale=new c.XFAObjectArray}}class N extends c.StringObject{constructor(Te){super(v,"meridiem")}}class G extends c.XFAObject{constructor(Te){super(v,"meridiemNames",!0),this.meridiem=new c.XFAObjectArray(2)}}class W extends c.StringObject{constructor(Te){super(v,"month")}}class J extends c.XFAObject{constructor(Te){super(v,"monthNames",!0),this.abbr=(0,R.getInteger)({data:Te.abbr,defaultValue:0,validate:me=>me===1}),this.month=new c.XFAObjectArray(12)}}class Y extends c.StringObject{constructor(Te){super(v,"numberPattern"),this.name=(0,R.getStringOption)(Te.name,["full","long","med","short"])}}class V extends c.XFAObject{constructor(Te){super(v,"numberPatterns",!0),this.numberPattern=new c.XFAObjectArray(4)}}class H extends c.StringObject{constructor(Te){super(v,"numberSymbol"),this.name=(0,R.getStringOption)(Te.name,["decimal","grouping","percent","minus","zero"])}}class z extends c.XFAObject{constructor(Te){super(v,"numberSymbols",!0),this.numberSymbol=new c.XFAObjectArray(5)}}class X extends c.StringObject{constructor(Te){super(v,"timePattern"),this.name=(0,R.getStringOption)(Te.name,["full","long","med","short"])}}class q extends c.XFAObject{constructor(Te){super(v,"timePatterns",!0),this.timePattern=new c.XFAObjectArray(4)}}class $ extends c.XFAObject{constructor(Te){super(v,"typeFace",!0),this.name=Te.name|""}}class fe extends c.XFAObject{constructor(Te){super(v,"typeFaces",!0),this.typeFace=new c.XFAObjectArray}}class Q{static[n.$buildXFAObject](Te,me){if(Q.hasOwnProperty(Te))return Q[Te](me)}static calendarSymbols(Te){return new e(Te)}static currencySymbol(Te){return new L(Te)}static currencySymbols(Te){return new O(Te)}static datePattern(Te){return new B(Te)}static datePatterns(Te){return new P(Te)}static dateTimeSymbols(Te){return new S(Te)}static day(Te){return new _(Te)}static dayNames(Te){return new l(Te)}static era(Te){return new y(Te)}static eraNames(Te){return new D(Te)}static locale(Te){return new M(Te)}static localeSet(Te){return new F(Te)}static meridiem(Te){return new N(Te)}static meridiemNames(Te){return new G(Te)}static month(Te){return new W(Te)}static monthNames(Te){return new J(Te)}static numberPattern(Te){return new Y(Te)}static numberPatterns(Te){return new V(Te)}static numberSymbol(Te){return new H(Te)}static numberSymbols(Te){return new z(Te)}static timePattern(Te){return new X(Te)}static timePatterns(Te){return new q(Te)}static typeFace(Te){return new $(Te)}static typeFaces(Te){return new fe(Te)}}a.LocaleSetNamespace=Q},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SignatureNamespace=void 0;var n=g(204),c=g(202);const R=n.NamespaceIds.signature.id;class v extends c.XFAObject{constructor(O){super(R,"signature",!0)}}class e{static[n.$buildXFAObject](O,B){if(e.hasOwnProperty(O))return e[O](B)}static signature(O){return new v(O)}}a.SignatureNamespace=e},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.StylesheetNamespace=void 0;var n=g(204),c=g(202);const R=n.NamespaceIds.stylesheet.id;class v extends c.XFAObject{constructor(O){super(R,"stylesheet",!0)}}class e{static[n.$buildXFAObject](O,B){if(e.hasOwnProperty(O))return e[O](B)}static stylesheet(O){return new v(O)}}a.StylesheetNamespace=e},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.XdpNamespace=void 0;var n=g(204),c=g(202);const R=n.NamespaceIds.xdp.id;class v extends c.XFAObject{constructor(O){super(R,"xdp",!0),this.uuid=O.uuid||"",this.timeStamp=O.timeStamp||"",this.config=null,this.connectionSet=null,this.datasets=null,this.localeSet=null,this.stylesheet=new c.XFAObjectArray,this.template=null}[c.$onChildCheck](O){const B=n.NamespaceIds[O[c.$nodeName]];return B&&O[c.$namespaceId]===B.id}}class e{static[n.$buildXFAObject](O,B){if(e.hasOwnProperty(O))return e[O](B)}static xdp(O){return new v(O)}}a.XdpNamespace=e},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.XhtmlNamespace=void 0;var n=g(202),c=g(204),R=g(209),v=g(203);const e=c.NamespaceIds.xhtml.id,L=Symbol(),O=new Set(["color","font","font-family","font-size","font-stretch","font-style","font-weight","margin","margin-bottom","margin-left","margin-right","margin-top","letter-spacing","line-height","orphans","page-break-after","page-break-before","page-break-inside","tab-interval","tab-stop","text-align","text-decoration","text-indent","vertical-align","widows","kerning-mode","xfa-font-horizontal-scale","xfa-font-vertical-scale","xfa-spacerun","xfa-tab-stops"]),B=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",ie=>ie==="none"?"none":"normal"],["xfa-font-horizontal-scale",ie=>`scaleX(${Math.max(0,Math.min(parseInt(ie)/100)).toFixed(2)})`],["xfa-font-vertical-scale",ie=>`scaleY(${Math.max(0,Math.min(parseInt(ie)/100)).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(ie,Te)=>(ie=Te.fontSize=(0,v.getMeasurement)(ie),(0,R.measureToString)(.99*ie))],["letter-spacing",ie=>(0,R.measureToString)((0,v.getMeasurement)(ie))],["line-height",ie=>(0,R.measureToString)((0,v.getMeasurement)(ie))],["margin",ie=>(0,R.measureToString)((0,v.getMeasurement)(ie))],["margin-bottom",ie=>(0,R.measureToString)((0,v.getMeasurement)(ie))],["margin-left",ie=>(0,R.measureToString)((0,v.getMeasurement)(ie))],["margin-right",ie=>(0,R.measureToString)((0,v.getMeasurement)(ie))],["margin-top",ie=>(0,R.measureToString)((0,v.getMeasurement)(ie))],["text-indent",ie=>(0,R.measureToString)((0,v.getMeasurement)(ie))],["font-family",ie=>ie],["vertical-align",ie=>(0,R.measureToString)((0,v.getMeasurement)(ie))]]),P=/\s+/g,S=/[\r\n]+/g,_=/\r\n?/g;function l(ie,Te,me){const K=Object.create(null);if(!ie)return K;const ce=Object.create(null);for(const[de,Z]of ie.split(";").map(ae=>ae.split(":",2))){const ae=B.get(de);if(ae==="")continue;let he=Z;ae&&(typeof ae=="string"?he=ae:he=ae(Z,ce)),de.endsWith("scale")?K.transform?K.transform=`${K[de]} ${he}`:K.transform=he:K[de.replaceAll(/-([a-zA-Z])/g,(we,_e)=>_e.toUpperCase())]=he}if(K.fontFamily&&(0,R.setFontFamily)({typeface:K.fontFamily,weight:K.fontWeight||"normal",posture:K.fontStyle||"normal",size:ce.fontSize||0},Te,Te[n.$globalData].fontFinder,K),me&&K.verticalAlign&&K.verticalAlign!=="0px"&&K.fontSize){const ae=(0,v.getMeasurement)(K.fontSize);K.fontSize=(0,R.measureToString)(ae*.583),K.verticalAlign=(0,R.measureToString)(Math.sign((0,v.getMeasurement)(K.verticalAlign))*ae*.333)}return me&&K.fontSize&&(K.fontSize=`calc(${K.fontSize} * var(--scale-factor))`),(0,R.fixTextIndent)(K),K}function y(ie){return ie.style?ie.style.trim().split(/\s*;\s*/).filter(Te=>!!Te).map(Te=>Te.split(/\s*:\s*/,2)).filter(Te=>{let[me,K]=Te;return me==="font-family"&&ie[n.$globalData].usedTypefaces.add(K),O.has(me)}).map(Te=>Te.join(":")).join(";"):""}const D=new Set(["body","html"]);class M extends n.XmlObject{constructor(Te,me){super(e,me),this[L]=!1,this.style=Te.style||""}[n.$clean](Te){super[n.$clean](Te),this.style=y(this)}[n.$acceptWhitespace](){return!D.has(this[n.$nodeName])}[n.$onText](Te){(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?this[L]=!0:(Te=Te.replace(S,""),this.style.includes("xfa-spacerun:yes")||(Te=Te.replace(P," "))),Te&&(this[n.$content]+=Te)}[n.$pushGlyphs](Te){let me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const K=Object.create(null),ce={top:NaN,bottom:NaN,left:NaN,right:NaN};let de=null;for(const[Z,ae]of this.style.split(";").map(he=>he.split(":",2)))switch(Z){case"font-family":K.typeface=(0,v.stripQuotes)(ae);break;case"font-size":K.size=(0,v.getMeasurement)(ae);break;case"font-weight":K.weight=ae;break;case"font-style":K.posture=ae;break;case"letter-spacing":K.letterSpacing=(0,v.getMeasurement)(ae);break;case"margin":const he=ae.split(/ \t/).map(we=>(0,v.getMeasurement)(we));switch(he.length){case 1:ce.top=ce.bottom=ce.left=ce.right=he[0];break;case 2:ce.top=ce.bottom=he[0],ce.left=ce.right=he[1];break;case 3:ce.top=he[0],ce.bottom=he[2],ce.left=ce.right=he[1];break;case 4:ce.top=he[0],ce.left=he[1],ce.bottom=he[2],ce.right=he[3];break}break;case"margin-top":ce.top=(0,v.getMeasurement)(ae);break;case"margin-bottom":ce.bottom=(0,v.getMeasurement)(ae);break;case"margin-left":ce.left=(0,v.getMeasurement)(ae);break;case"margin-right":ce.right=(0,v.getMeasurement)(ae);break;case"line-height":de=(0,v.getMeasurement)(ae);break}if(Te.pushData(K,ce,de),this[n.$content])Te.addString(this[n.$content]);else for(const Z of this[n.$getChildren]()){if(Z[n.$nodeName]==="#text"){Te.addString(Z[n.$content]);continue}Z[n.$pushGlyphs](Te)}me&&Te.popFont()}[n.$toHTML](Te){const me=[];if(this[n.$extra]={children:me},this[n.$childrenToHTML]({}),me.length===0&&!this[n.$content])return v.HTMLResult.EMPTY;let K;return this[L]?K=this[n.$content]?this[n.$content].replace(_,` `):void 0:K=this[n.$content]||void 0,v.HTMLResult.success({name:this[n.$nodeName],attributes:{href:this.href,style:l(this.style,this,this[L])},children:me,value:K})}}class F extends M{constructor(Te){super(Te,"a"),this.href=(0,R.fixURL)(Te.href)||""}}class N extends M{constructor(Te){super(Te,"b")}[n.$pushGlyphs](Te){Te.pushFont({weight:"bold"}),super[n.$pushGlyphs](Te),Te.popFont()}}class G extends M{constructor(Te){super(Te,"body")}[n.$toHTML](Te){const me=super[n.$toHTML](Te),{html:K}=me;return K?(K.name="div",K.attributes.class=["xfaRich"],me):v.HTMLResult.EMPTY}}class W extends M{constructor(Te){super(Te,"br")}[n.$text](){return` `}[n.$pushGlyphs](Te){Te.addString(` `)}[n.$toHTML](Te){return v.HTMLResult.success({name:"br"})}}class J extends M{constructor(Te){super(Te,"html")}[n.$toHTML](Te){const me=[];if(this[n.$extra]={children:me},this[n.$childrenToHTML]({}),me.length===0)return v.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[n.$content]||""});if(me.length===1){const K=me[0];if(K.attributes&&K.attributes.class.includes("xfaRich"))return v.HTMLResult.success(K)}return v.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:me})}}class Y extends M{constructor(Te){super(Te,"i")}[n.$pushGlyphs](Te){Te.pushFont({posture:"italic"}),super[n.$pushGlyphs](Te),Te.popFont()}}class V extends M{constructor(Te){super(Te,"li")}}class H extends M{constructor(Te){super(Te,"ol")}}class z extends M{constructor(Te){super(Te,"p")}[n.$pushGlyphs](Te){super[n.$pushGlyphs](Te,!1),Te.addString(` `),Te.addPara(),Te.popFont()}[n.$text](){return this[n.$getParent]()[n.$getChildren]().at(-1)===this?super[n.$text]():super[n.$text]()+` `}}class X extends M{constructor(Te){super(Te,"span")}}class q extends M{constructor(Te){super(Te,"sub")}}class $ extends M{constructor(Te){super(Te,"sup")}}class fe extends M{constructor(Te){super(Te,"ul")}}class Q{static[c.$buildXFAObject](Te,me){if(Q.hasOwnProperty(Te))return Q[Te](me)}static a(Te){return new F(Te)}static b(Te){return new N(Te)}static body(Te){return new G(Te)}static br(Te){return new W(Te)}static html(Te){return new J(Te)}static i(Te){return new Y(Te)}static li(Te){return new V(Te)}static ol(Te){return new H(Te)}static p(Te){return new z(Te)}static span(Te){return new X(Te)}static sub(Te){return new q(Te)}static sup(Te){return new $(Te)}static ul(Te){return new fe(Te)}}a.XhtmlNamespace=Q},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UnknownNamespace=void 0;var n=g(204),c=g(202);class R{constructor(e){this.namespaceId=e}[n.$buildXFAObject](e,L){return new c.XmlObject(this.namespaceId,e,L)}}a.UnknownNamespace=R},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DatasetReader=void 0;var n=g(2),c=g(131),R=g(191);function v(O){try{return(0,n.stringToUTF8String)(O)}catch(B){return(0,n.warn)(`UTF-8 decoding failed: "${B}".`),O}}class e extends R.SimpleXMLParser{constructor(B){super(B),this.node=null}onEndElement(B){const P=super.onEndElement(B);if(P&&B==="xfa:datasets")throw this.node=P,new Error("Aborting DatasetXMLParser.")}}class L{constructor(B){if(B.datasets)this.node=new R.SimpleXMLParser({hasAttributes:!0}).parseFromString(B.datasets).documentElement;else{const P=new e({hasAttributes:!0});try{P.parseFromString(B["xdp:xdp"])}catch{}this.node=P.node}}getValue(B){if(!this.node||!B)return"";const P=this.node.searchNode((0,c.parseXFAPath)(B),0);if(!P)return"";const S=P.firstChild;return S&&S.nodeName==="value"?P.children.map(_=>v(_.textContent)):v(P.textContent)}}a.DatasetReader=L},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.XRef=void 0;var n=g(2),c=g(130),R=g(131),v=g(142),e=g(132),L=g(192);class O{constructor(P,S){this.stream=P,this.pdfManager=S,this.entries=[],this.xrefstms=Object.create(null),this._cacheMap=new Map,this._pendingRefs=new c.RefSet,this.stats=new R.DocStats(S.msgHandler),this._newRefNum=null}getNewRef(){return this._newRefNum===null&&(this._newRefNum=this.entries.length||1),c.Ref.get(this._newRefNum++,0)}resetNewRef(){this._newRefNum=null}setStartXRef(P){this.startXRefQueue=[P]}parse(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,S;P?((0,n.warn)("Indexing all PDF objects"),S=this.indexObjects()):S=this.readXRef(),S.assignXref(this),this.trailer=S;let _;try{_=S.get("Encrypt")}catch(y){if(y instanceof R.MissingDataException)throw y;(0,n.warn)(`XRef.parse - Invalid "Encrypt" reference: "${y}".`)}if(_ instanceof c.Dict){const y=S.get("ID"),D=y&&y.length?y[0]:"";_.suppressEncryption=!0,this.encrypt=new L.CipherTransformFactory(_,D,this.pdfManager.password)}let l;try{l=S.get("Root")}catch(y){if(y instanceof R.MissingDataException)throw y;(0,n.warn)(`XRef.parse - Invalid "Root" reference: "${y}".`)}if(l instanceof c.Dict)try{if(l.get("Pages")instanceof c.Dict){this.root=l;return}}catch(y){if(y instanceof R.MissingDataException)throw y;(0,n.warn)(`XRef.parse - Invalid "Pages" reference: "${y}".`)}throw P?new n.InvalidPDFException("Invalid Root reference."):new R.XRefParseException}processXRefTable(P){"tableState"in this||(this.tableState={entryNum:0,streamPos:P.lexer.stream.pos,parserBuf1:P.buf1,parserBuf2:P.buf2});const S=this.readXRefTable(P);if(!(0,c.isCmd)(S,"trailer"))throw new n.FormatError("Invalid XRef table: could not find trailer dictionary");let _=P.getObj();if(!(_ instanceof c.Dict)&&_.dict&&(_=_.dict),!(_ instanceof c.Dict))throw new n.FormatError("Invalid XRef table: could not parse trailer dictionary");return delete this.tableState,_}readXRefTable(P){const S=P.lexer.stream,_=this.tableState;S.pos=_.streamPos,P.buf1=_.parserBuf1,P.buf2=_.parserBuf2;let l;for(;;){if(!("firstEntryNum"in _)||!("entryCount"in _)){if((0,c.isCmd)(l=P.getObj(),"trailer"))break;_.firstEntryNum=l,_.entryCount=P.getObj()}let y=_.firstEntryNum;const D=_.entryCount;if(!Number.isInteger(y)||!Number.isInteger(D))throw new n.FormatError("Invalid XRef table: wrong types in subsection header");for(let M=_.entryNum;M0;){const[M,F]=D;if(!Number.isInteger(M)||!Number.isInteger(F))throw new n.FormatError(`Invalid XRef range fields: ${M}, ${F}`);if(!Number.isInteger(_)||!Number.isInteger(l)||!Number.isInteger(y))throw new n.FormatError(`Invalid XRef entry fields length: ${M}, ${F}`);for(let N=S.entryNum;N=me.length);)ce+=String.fromCharCode(de),de=me[K];return ce}function F(me,K,ce){const de=ce.length,Z=me.length;let ae=0;for(;K=de)break;K++,ae++}return ae}const N=/^(\d+)\s+(\d+)\s+obj\b/,G=/\bendobj[\b\s]$/,W=/\s+(\d+\s+\d+\s+obj[\b\s<])$/,J=25,Y=new Uint8Array([116,114,97,105,108,101,114]),V=new Uint8Array([115,116,97,114,116,120,114,101,102]),H=new Uint8Array([111,98,106]),z=new Uint8Array([47,88,82,101,102]);this.entries.length=0,this._cacheMap.clear();const X=this.stream;X.pos=0;const q=X.getBytes(),$=q.length;let fe=X.start;const Q=[],ie=[];for(;fe<$;){let me=q[fe];if(me===9||me===10||me===13||me===32){++fe;continue}if(me===37){do{if(++fe,fe>=$)break;me=q[fe]}while(me!==10&&me!==13);continue}const K=M(q,fe);let ce;if(K.startsWith("xref")&&(K.length===4||/\s/.test(K[4])))fe+=F(q,fe,Y),Q.push(fe),fe+=F(q,fe,V);else if(ce=N.exec(K)){const de=ce[1]|0,Z=ce[2]|0;let ae,he=fe+K.length,we=!1;if(!this.entries[de])we=!0;else if(this.entries[de].gen===Z)try{new v.Parser({lexer:new v.Lexer(X.makeSubStream(he))}).getObj(),we=!0}catch(se){se instanceof R.ParserEOFException?(0,n.warn)(`indexObjects -- checking object (${K}): "${se}".`):we=!0}for(we&&(this.entries[de]={offset:fe-X.start,gen:Z,uncompressed:!0});he0&&arguments[0]!==void 0?arguments[0]:!1;const S=this.stream,_=new Set;try{for(;this.startXRefQueue.length;){const l=this.startXRefQueue[0];if(_.has(l)){(0,n.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}_.add(l),S.pos=l+S.start;const y=new v.Parser({lexer:new v.Lexer(S),xref:this,allowStreams:!0});let D=y.getObj(),M;if((0,c.isCmd)(D,"xref")){if(M=this.processXRefTable(y),this.topDict||(this.topDict=M),D=M.get("XRefStm"),Number.isInteger(D)){const F=D;F in this.xrefstms||(this.xrefstms[F]=1,this.startXRefQueue.push(F))}}else if(Number.isInteger(D)){if(!Number.isInteger(y.getObj())||!(0,c.isCmd)(y.getObj(),"obj")||!((D=y.getObj())instanceof e.BaseStream))throw new n.FormatError("Invalid XRef stream");if(M=this.processXRefStream(D),this.topDict||(this.topDict=M),!M)throw new n.FormatError("Failed to read XRef stream")}else throw new n.FormatError("Invalid XRef stream header");D=M.get("Prev"),Number.isInteger(D)?this.startXRefQueue.push(D):D instanceof c.Ref&&this.startXRefQueue.push(D.num),this.startXRefQueue.shift()}return this.topDict}catch(l){if(l instanceof R.MissingDataException)throw l;(0,n.info)("(while reading XRef): "+l),this.startXRefQueue.shift()}if(!P)throw new R.XRefParseException}getEntry(P){const S=this.entries[P];return S&&!S.free&&S.offset?S:null}fetchIfRef(P){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return P instanceof c.Ref?this.fetch(P,S):P}fetch(P){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!(P instanceof c.Ref))throw new Error("ref object is not a reference");const _=P.num,l=this._cacheMap.get(_);if(l!==void 0)return l instanceof c.Dict&&!l.objId&&(l.objId=P.toString()),l;let y=this.getEntry(_);if(y===null)return this._cacheMap.set(_,y),y;if(this._pendingRefs.has(P))return this._pendingRefs.remove(P),(0,n.warn)(`Ignoring circular reference: ${P}.`),c.CIRCULAR_REF;this._pendingRefs.put(P);try{y.uncompressed?y=this.fetchUncompressed(P,y,S):y=this.fetchCompressed(P,y,S),this._pendingRefs.remove(P)}catch(D){throw this._pendingRefs.remove(P),D}return y instanceof c.Dict?y.objId=P.toString():y instanceof e.BaseStream&&(y.dict.objId=P.toString()),y}fetchUncompressed(P,S){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const l=P.gen;let y=P.num;if(S.gen!==l)throw new R.XRefEntryException(`Inconsistent generation in XRef: ${P}`);const D=this.stream.makeSubStream(S.offset+this.stream.start),M=new v.Parser({lexer:new v.Lexer(D),xref:this,allowStreams:!0}),F=M.getObj(),N=M.getObj(),G=M.getObj();if(F!==y||N!==l||!(G instanceof c.Cmd))throw new R.XRefEntryException(`Bad (uncompressed) XRef entry: ${P}`);if(G.cmd!=="obj"){if(G.cmd.startsWith("obj")&&(y=parseInt(G.cmd.substring(3),10),!Number.isNaN(y)))return y;throw new R.XRefEntryException(`Bad (uncompressed) XRef entry: ${P}`)}return this.encrypt&&!_?S=M.getObj(this.encrypt.createCipherTransform(y,l)):S=M.getObj(),S instanceof e.BaseStream||this._cacheMap.set(y,S),S}fetchCompressed(P,S){const _=S.offset,l=this.fetch(c.Ref.get(_,0));if(!(l instanceof e.BaseStream))throw new n.FormatError("bad ObjStm stream");const y=l.dict.get("First"),D=l.dict.get("N");if(!Number.isInteger(y)||!Number.isInteger(D))throw new n.FormatError("invalid first and n parameters for ObjStm stream");let M=new v.Parser({lexer:new v.Lexer(l),xref:this,allowStreams:!0});const F=new Array(D),N=new Array(D);for(let J=0;J{Object.defineProperty(a,"__esModule",{value:!0}),a.MessageHandler=void 0;var n=g(2);const c={UNKNOWN:0,DATA:1,ERROR:2},R={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function v(L){switch(L instanceof Error||typeof L=="object"&&L!==null||(0,n.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),L.name){case"AbortException":return new n.AbortException(L.message);case"MissingPDFException":return new n.MissingPDFException(L.message);case"PasswordException":return new n.PasswordException(L.message,L.code);case"UnexpectedResponseException":return new n.UnexpectedResponseException(L.message,L.status);case"UnknownErrorException":return new n.UnknownErrorException(L.message,L.details);default:return new n.UnknownErrorException(L.message,L.toString())}}class e{constructor(O,B,P){this.sourceName=O,this.targetName=B,this.comObj=P,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=S=>{const _=S.data;if(_.targetName!==this.sourceName)return;if(_.stream){this._processStreamMessage(_);return}if(_.callback){const y=_.callbackId,D=this.callbackCapabilities[y];if(!D)throw new Error(`Cannot resolve callback ${y}`);if(delete this.callbackCapabilities[y],_.callback===c.DATA)D.resolve(_.data);else if(_.callback===c.ERROR)D.reject(v(_.reason));else throw new Error("Unexpected callback case");return}const l=this.actionHandler[_.action];if(!l)throw new Error(`Unknown action from worker: ${_.action}`);if(_.callbackId){const y=this.sourceName,D=_.sourceName;new Promise(function(M){M(l(_.data))}).then(function(M){P.postMessage({sourceName:y,targetName:D,callback:c.DATA,callbackId:_.callbackId,data:M})},function(M){P.postMessage({sourceName:y,targetName:D,callback:c.ERROR,callbackId:_.callbackId,reason:v(M)})});return}if(_.streamId){this._createStreamSink(_);return}l(_.data)},P.addEventListener("message",this._onComObjOnMessage)}on(O,B){const P=this.actionHandler;if(P[O])throw new Error(`There is already an actionName called "${O}"`);P[O]=B}send(O,B,P){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:O,data:B},P)}sendWithPromise(O,B,P){const S=this.callbackId++,_=(0,n.createPromiseCapability)();this.callbackCapabilities[S]=_;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:O,callbackId:S,data:B},P)}catch(l){_.reject(l)}return _.promise}sendWithStream(O,B,P,S){const _=this.streamId++,l=this.sourceName,y=this.targetName,D=this.comObj;return new ReadableStream({start:M=>{const F=(0,n.createPromiseCapability)();return this.streamControllers[_]={controller:M,startCall:F,pullCall:null,cancelCall:null,isClosed:!1},D.postMessage({sourceName:l,targetName:y,action:O,streamId:_,data:B,desiredSize:M.desiredSize},S),F.promise},pull:M=>{const F=(0,n.createPromiseCapability)();return this.streamControllers[_].pullCall=F,D.postMessage({sourceName:l,targetName:y,stream:R.PULL,streamId:_,desiredSize:M.desiredSize}),F.promise},cancel:M=>{(0,n.assert)(M instanceof Error,"cancel must have a valid reason");const F=(0,n.createPromiseCapability)();return this.streamControllers[_].cancelCall=F,this.streamControllers[_].isClosed=!0,D.postMessage({sourceName:l,targetName:y,stream:R.CANCEL,streamId:_,reason:v(M)}),F.promise}},P)}_createStreamSink(O){const B=O.streamId,P=this.sourceName,S=O.sourceName,_=this.comObj,l=this,y=this.actionHandler[O.action],D={enqueue(M){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,N=arguments.length>2?arguments[2]:void 0;if(this.isCancelled)return;const G=this.desiredSize;this.desiredSize-=F,G>0&&this.desiredSize<=0&&(this.sinkCapability=(0,n.createPromiseCapability)(),this.ready=this.sinkCapability.promise),_.postMessage({sourceName:P,targetName:S,stream:R.ENQUEUE,streamId:B,chunk:M},N)},close(){this.isCancelled||(this.isCancelled=!0,_.postMessage({sourceName:P,targetName:S,stream:R.CLOSE,streamId:B}),delete l.streamSinks[B])},error(M){(0,n.assert)(M instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,_.postMessage({sourceName:P,targetName:S,stream:R.ERROR,streamId:B,reason:v(M)}))},sinkCapability:(0,n.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:O.desiredSize,ready:null};D.sinkCapability.resolve(),D.ready=D.sinkCapability.promise,this.streamSinks[B]=D,new Promise(function(M){M(y(O.data,D))}).then(function(){_.postMessage({sourceName:P,targetName:S,stream:R.START_COMPLETE,streamId:B,success:!0})},function(M){_.postMessage({sourceName:P,targetName:S,stream:R.START_COMPLETE,streamId:B,reason:v(M)})})}_processStreamMessage(O){const B=O.streamId,P=this.sourceName,S=O.sourceName,_=this.comObj,l=this.streamControllers[B],y=this.streamSinks[B];switch(O.stream){case R.START_COMPLETE:O.success?l.startCall.resolve():l.startCall.reject(v(O.reason));break;case R.PULL_COMPLETE:O.success?l.pullCall.resolve():l.pullCall.reject(v(O.reason));break;case R.PULL:if(!y){_.postMessage({sourceName:P,targetName:S,stream:R.PULL_COMPLETE,streamId:B,success:!0});break}y.desiredSize<=0&&O.desiredSize>0&&y.sinkCapability.resolve(),y.desiredSize=O.desiredSize,new Promise(function(D){D(y.onPull&&y.onPull())}).then(function(){_.postMessage({sourceName:P,targetName:S,stream:R.PULL_COMPLETE,streamId:B,success:!0})},function(D){_.postMessage({sourceName:P,targetName:S,stream:R.PULL_COMPLETE,streamId:B,reason:v(D)})});break;case R.ENQUEUE:if((0,n.assert)(l,"enqueue should have stream controller"),l.isClosed)break;l.controller.enqueue(O.chunk);break;case R.CLOSE:if((0,n.assert)(l,"close should have stream controller"),l.isClosed)break;l.isClosed=!0,l.controller.close(),this._deleteStreamController(l,B);break;case R.ERROR:(0,n.assert)(l,"error should have stream controller"),l.controller.error(v(O.reason)),this._deleteStreamController(l,B);break;case R.CANCEL_COMPLETE:O.success?l.cancelCall.resolve():l.cancelCall.reject(v(O.reason)),this._deleteStreamController(l,B);break;case R.CANCEL:if(!y)break;new Promise(function(D){D(y.onCancel&&y.onCancel(v(O.reason)))}).then(function(){_.postMessage({sourceName:P,targetName:S,stream:R.CANCEL_COMPLETE,streamId:B,success:!0})},function(D){_.postMessage({sourceName:P,targetName:S,stream:R.CANCEL_COMPLETE,streamId:B,reason:v(D)})}),y.sinkCapability.reject(v(O.reason)),y.isCancelled=!0,delete this.streamSinks[B];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(O,B){await Promise.allSettled([O.startCall&&O.startCall.promise,O.pullCall&&O.pullCall.promise,O.cancelCall&&O.cancelCall.promise]),delete this.streamControllers[B]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}a.MessageHandler=e},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.PDFWorkerStream=void 0;var n=g(2);class c{constructor(L){this._msgHandler=L,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new R(this._msgHandler),this._fullRequestReader}getRangeReader(L,O){const B=new v(L,O,this._msgHandler);return this._rangeRequestReaders.push(B),B}cancelAllRequests(L){this._fullRequestReader&&this._fullRequestReader.cancel(L);for(const O of this._rangeRequestReaders.slice(0))O.cancel(L)}}a.PDFWorkerStream=c;class R{constructor(L){this._msgHandler=L,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;const O=this._msgHandler.sendWithStream("GetReader");this._reader=O.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then(B=>{this._isStreamingSupported=B.isStreamingSupported,this._isRangeSupported=B.isRangeSupported,this._contentLength=B.contentLength})}get headersReady(){return this._headersReady}get contentLength(){return this._contentLength}get isStreamingSupported(){return this._isStreamingSupported}get isRangeSupported(){return this._isRangeSupported}async read(){const{value:L,done:O}=await this._reader.read();return O?{value:void 0,done:!0}:{value:L.buffer,done:!1}}cancel(L){this._reader.cancel(L)}}class v{constructor(L,O,B){this._msgHandler=B,this.onProgress=null;const P=this._msgHandler.sendWithStream("GetRangeReader",{begin:L,end:O});this._reader=P.getReader()}get isStreamingSupported(){return!1}async read(){const{value:L,done:O}=await this._reader.read();return O?{value:void 0,done:!0}:{value:L.buffer,done:!1}}cancel(L){this._reader.cancel(L)}}}],w={};function U(x){var a=w[x];if(a!==void 0)return a.exports;var g=w[x]={exports:{}};return m[x](g,g.exports,U),g.exports}U.d=(x,a)=>{for(var g in a)U.o(a,g)&&!U.o(x,g)&&Object.defineProperty(x,g,{enumerable:!0,get:a[g]})},U.o=(x,a)=>Object.prototype.hasOwnProperty.call(x,a),U.r=x=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(x,"__esModule",{value:!0})};var k={};return(()=>{var x=k;Object.defineProperty(x,"__esModule",{value:!0}),Object.defineProperty(x,"WorkerMessageHandler",{enumerable:!0,get:function(){return a.WorkerMessageHandler}});var a=U(1)})(),k})())})(pdf_worker);var pdf_workerExports=pdf_worker.exports;(typeof window<"u"?window:{}).pdfjsWorker=pdf_workerExports;var pdf_viewer$1={exports:{}};(function(b,r){(function(w,U){b.exports=U()})(globalThis,()=>(()=>{var m=[,(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DefaultXfaLayerFactory=a.DefaultTextLayerFactory=a.DefaultStructTreeLayerFactory=a.DefaultAnnotationLayerFactory=a.DefaultAnnotationEditorLayerFactory=void 0;var n=g(2),c=g(5),R=g(4),v=g(6),e=g(8),L=g(9),O=g(10);class B{createAnnotationLayerBuilder(D){let{pageDiv:M,pdfPage:F,annotationStorage:N=null,imageResourcesPath:G="",renderForms:W=!0,l10n:J=R.NullL10n,enableScripting:Y=!1,hasJSActionsPromise:V=null,mouseState:H=null,fieldObjectsPromise:z=null,annotationCanvasMap:X=null,accessibilityManager:q=null}=D;return new c.AnnotationLayerBuilder({pageDiv:M,pdfPage:F,imageResourcesPath:G,renderForms:W,linkService:new v.SimpleLinkService,l10n:J,annotationStorage:N,enableScripting:Y,hasJSActionsPromise:V,fieldObjectsPromise:z,mouseState:H,annotationCanvasMap:X,accessibilityManager:q})}}a.DefaultAnnotationLayerFactory=B;class P{createAnnotationEditorLayerBuilder(D){let{uiManager:M=null,pageDiv:F,pdfPage:N,accessibilityManager:G=null,l10n:W,annotationStorage:J=null}=D;return new n.AnnotationEditorLayerBuilder({uiManager:M,pageDiv:F,pdfPage:N,accessibilityManager:G,l10n:W,annotationStorage:J})}}a.DefaultAnnotationEditorLayerFactory=P;class S{createStructTreeLayerBuilder(D){let{pdfPage:M}=D;return new e.StructTreeLayerBuilder({pdfPage:M})}}a.DefaultStructTreeLayerFactory=S;class _{createTextLayerBuilder(D){let{textLayerDiv:M,pageIndex:F,viewport:N,enhanceTextSelection:G=!1,eventBus:W,highlighter:J,accessibilityManager:Y=null}=D;return new L.TextLayerBuilder({textLayerDiv:M,pageIndex:F,viewport:N,enhanceTextSelection:G,eventBus:W,highlighter:J,accessibilityManager:Y})}}a.DefaultTextLayerFactory=_;class l{createXfaLayerBuilder(D){let{pageDiv:M,pdfPage:F,annotationStorage:N=null}=D;return new O.XfaLayerBuilder({pageDiv:M,pdfPage:F,annotationStorage:N,linkService:new v.SimpleLinkService})}}a.DefaultXfaLayerFactory=l},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.AnnotationEditorLayerBuilder=void 0;var n=g(3),c=g(4);function R(l,y,D){v(l,y),y.set(l,D)}function v(l,y){if(y.has(l))throw new TypeError("Cannot initialize the same private elements twice on an object")}function e(l,y){var D=B(l,y,"get");return L(l,D)}function L(l,y){return y.get?y.get.call(l):y.value}function O(l,y,D){var M=B(l,y,"set");return P(l,M,D),D}function B(l,y,D){if(!y.has(l))throw new TypeError("attempted to "+D+" private field on non-instance");return y.get(l)}function P(l,y,D){if(y.set)y.set.call(l,D);else{if(!y.writable)throw new TypeError("attempted to set read only private field");y.value=D}}var S=new WeakMap;class _{constructor(y){R(this,S,{writable:!0,value:void 0}),this.pageDiv=y.pageDiv,this.pdfPage=y.pdfPage,this.annotationStorage=y.annotationStorage||null,this.accessibilityManager=y.accessibilityManager,this.l10n=y.l10n||c.NullL10n,this.annotationEditorLayer=null,this.div=null,this._cancelled=!1,O(this,S,y.uiManager)}async render(y){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"display";if(D!=="display"||this._cancelled)return;const M=y.clone({dontFlip:!0});if(this.div){this.annotationEditorLayer.update({viewport:M}),this.show();return}this.div=document.createElement("div"),this.div.className="annotationEditorLayer",this.div.tabIndex=0,this.pageDiv.append(this.div),this.annotationEditorLayer=new n.AnnotationEditorLayer({uiManager:e(this,S),div:this.div,annotationStorage:this.annotationStorage,accessibilityManager:this.accessibilityManager,pageIndex:this.pdfPage._pageIndex,l10n:this.l10n,viewport:M});const F={viewport:M,div:this.div,annotations:null,intent:D};this.annotationEditorLayer.render(F)}cancel(){this._cancelled=!0,this.destroy()}hide(){this.div&&(this.div.hidden=!0)}show(){this.div&&(this.div.hidden=!1)}destroy(){this.div&&(this.pageDiv=null,this.annotationEditorLayer.destroy(),this.div.remove())}}a.AnnotationEditorLayerBuilder=_},x=>{let a;typeof window<"u"&&window["pdfjs-dist/build/pdf"]?a=window["pdfjs-dist/build/pdf"]:a=requirePdf(),x.exports=a},(x,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.NullL10n=void 0,a.fixupLangCode=R,a.getL10nFallback=n;const g={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",print_progress_percent:"{{progress}}%","toggle_sidebar.title":"Toggle Sidebar","toggle_sidebar_notification2.title":"Toggle Sidebar (document contains outline/attachments/layers)",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",error_version_info:"PDF.js v{{version}} (build: {{build}})",error_message:"Message: {{message}}",error_stack:"Stack: {{stack}}",error_file:"File: {{file}}",error_line:"Line: {{line}}",rendering_error:"An error occurred while rendering the page.",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading:"Loading…",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text_default_content:"Enter text…",editor_free_text_aria_label:"FreeText Editor",editor_ink_aria_label:"Ink Editor",editor_ink_canvas_aria_label:"User-created image"};function n(L,O){switch(L){case"find_match_count":L=`find_match_count[${O.total===1?"one":"other"}]`;break;case"find_match_count_limit":L=`find_match_count_limit[${O.limit===1?"one":"other"}]`;break}return g[L]||""}const c={en:"en-US",es:"es-ES",fy:"fy-NL",ga:"ga-IE",gu:"gu-IN",hi:"hi-IN",hy:"hy-AM",nb:"nb-NO",ne:"ne-NP",nn:"nn-NO",pa:"pa-IN",pt:"pt-PT",sv:"sv-SE",zh:"zh-CN"};function R(L){return c[L==null?void 0:L.toLowerCase()]||L}function v(L,O){return O?L.replace(/\{\{\s*(\w+)\s*\}\}/g,(B,P)=>P in O?O[P]:"{{"+P+"}}"):L}const e={async getLanguage(){return"en-us"},async getDirection(){return"ltr"},async get(L){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n(L,O);return v(B,O)},async translate(L){}};a.NullL10n=e},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.AnnotationLayerBuilder=void 0;var n=g(3),c=g(4);class R{constructor(e){let{pageDiv:L,pdfPage:O,linkService:B,downloadManager:P,annotationStorage:S=null,imageResourcesPath:_="",renderForms:l=!0,l10n:y=c.NullL10n,enableScripting:D=!1,hasJSActionsPromise:M=null,fieldObjectsPromise:F=null,mouseState:N=null,annotationCanvasMap:G=null,accessibilityManager:W=null}=e;this.pageDiv=L,this.pdfPage=O,this.linkService=B,this.downloadManager=P,this.imageResourcesPath=_,this.renderForms=l,this.l10n=y,this.annotationStorage=S,this.enableScripting=D,this._hasJSActionsPromise=M,this._fieldObjectsPromise=F,this._mouseState=N,this._annotationCanvasMap=G,this._accessibilityManager=W,this.div=null,this._cancelled=!1}async render(e){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"display";const[O,B=!1,P=null]=await Promise.all([this.pdfPage.getAnnotations({intent:L}),this._hasJSActionsPromise,this._fieldObjectsPromise]);if(this._cancelled||O.length===0)return;const S={viewport:e.clone({dontFlip:!0}),div:this.div,annotations:O,page:this.pdfPage,imageResourcesPath:this.imageResourcesPath,renderForms:this.renderForms,linkService:this.linkService,downloadManager:this.downloadManager,annotationStorage:this.annotationStorage,enableScripting:this.enableScripting,hasJSActions:B,fieldObjects:P,mouseState:this._mouseState,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager};this.div?n.AnnotationLayer.update(S):(this.div=document.createElement("div"),this.div.className="annotationLayer",this.pageDiv.append(this.div),S.div=this.div,n.AnnotationLayer.render(S),this.l10n.translate(this.div))}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}a.AnnotationLayerBuilder=R},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SimpleLinkService=a.PDFLinkService=a.LinkTarget=void 0;var n=g(7);function c(J,Y){v(J,Y),Y.add(J)}function R(J,Y,V){v(J,Y),Y.set(J,V)}function v(J,Y){if(Y.has(J))throw new TypeError("Cannot initialize the same private elements twice on an object")}function e(J,Y,V){return L(J,Y),V}function L(J,Y){if(J!==Y)throw new TypeError("Private static access of wrong provenance")}function O(J,Y,V){if(!Y.has(J))throw new TypeError("attempted to get private field on non-instance");return V}function B(J,Y){var V=P(J,Y,"get");return S(J,V)}function P(J,Y,V){if(!Y.has(J))throw new TypeError("attempted to "+V+" private field on non-instance");return Y.get(J)}function S(J,Y){return Y.get?Y.get.call(J):Y.value}const _="noopener noreferrer nofollow",l={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};a.LinkTarget=l;function y(J){let{url:Y,target:V,rel:H,enabled:z=!0}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Y||typeof Y!="string")throw new Error('A valid "url" parameter must provided.');const X=(0,n.removeNullCharacters)(Y);z?J.href=J.title=X:(J.href="",J.title=`Disabled: ${X}`,J.onclick=()=>!1);let q="";switch(V){case l.NONE:break;case l.SELF:q="_self";break;case l.BLANK:q="_blank";break;case l.PARENT:q="_parent";break;case l.TOP:q="_top";break}J.target=q,J.rel=typeof H=="string"?H:_}var D=new WeakMap,M=new WeakSet;class F{constructor(){let{eventBus:Y,externalLinkTarget:V=null,externalLinkRel:H=null,ignoreDestinationZoom:z=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};c(this,M),R(this,D,{writable:!0,value:new Map}),this.eventBus=Y,this.externalLinkTarget=V,this.externalLinkRel=H,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=z,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(Y){let V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.baseUrl=V,this.pdfDocument=Y,B(this,D).clear()}setViewer(Y){this.pdfViewer=Y}setHistory(Y){this.pdfHistory=Y}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(Y){this.pdfViewer.currentPageNumber=Y}get rotation(){return this.pdfViewer.pagesRotation}set rotation(Y){this.pdfViewer.pagesRotation=Y}async goToDestination(Y){if(!this.pdfDocument)return;let V,H;if(typeof Y=="string"?(V=Y,H=await this.pdfDocument.getDestination(Y)):(V=null,H=await Y),!Array.isArray(H)){console.error(`PDFLinkService.goToDestination: "${H}" is not a valid destination array, for dest="${Y}".`);return}O(this,M,N).call(this,Y,V,H)}goToPage(Y){if(!this.pdfDocument)return;const V=typeof Y=="string"&&this.pdfViewer.pageLabelToPageNumber(Y)||Y|0;if(!(Number.isInteger(V)&&V>0&&V<=this.pagesCount)){console.error(`PDFLinkService.goToPage: "${Y}" is not a valid page.`);return}this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(V)),this.pdfViewer.scrollPageIntoView({pageNumber:V})}addLinkAttributes(Y,V){let H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;y(Y,{url:V,target:H?l.BLANK:this.externalLinkTarget,rel:this.externalLinkRel,enabled:this.externalLinkEnabled})}getDestinationHash(Y){if(typeof Y=="string"){if(Y.length>0)return this.getAnchorUrl("#"+escape(Y))}else if(Array.isArray(Y)){const V=JSON.stringify(Y);if(V.length>0)return this.getAnchorUrl("#"+escape(V))}return this.getAnchorUrl("")}getAnchorUrl(Y){return(this.baseUrl||"")+Y}setHash(Y){if(!this.pdfDocument)return;let V,H;if(Y.includes("=")){const z=(0,n.parseQueryString)(Y);if(z.has("search")&&this.eventBus.dispatch("findfromurlhash",{source:this,query:z.get("search").replace(/"/g,""),phraseSearch:z.get("phrase")==="true"}),z.has("page")&&(V=z.get("page")|0||1),z.has("zoom")){const X=z.get("zoom").split(","),q=X[0],$=parseFloat(q);q.includes("Fit")?q==="Fit"||q==="FitB"?H=[null,{name:q}]:q==="FitH"||q==="FitBH"||q==="FitV"||q==="FitBV"?H=[null,{name:q},X.length>1?X[1]|0:null]:q==="FitR"?X.length!==5?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):H=[null,{name:q},X[1]|0,X[2]|0,X[3]|0,X[4]|0]:console.error(`PDFLinkService.setHash: "${q}" is not a valid zoom value.`):H=[null,{name:"XYZ"},X.length>1?X[1]|0:null,X.length>2?X[2]|0:null,$?$/100:q]}H?this.pdfViewer.scrollPageIntoView({pageNumber:V||this.page,destArray:H,allowNegativeOffset:!0}):V&&(this.page=V),z.has("pagemode")&&this.eventBus.dispatch("pagemode",{source:this,mode:z.get("pagemode")}),z.has("nameddest")&&this.goToDestination(z.get("nameddest"))}else{H=unescape(Y);try{H=JSON.parse(H),Array.isArray(H)||(H=H.toString())}catch{}if(typeof H=="string"||e(F,F,G).call(F,H)){this.goToDestination(H);return}console.error(`PDFLinkService.setHash: "${unescape(Y)}" is not a valid destination.`)}}executeNamedAction(Y){var V,H;switch(Y){case"GoBack":(V=this.pdfHistory)===null||V===void 0||V.back();break;case"GoForward":(H=this.pdfHistory)===null||H===void 0||H.forward();break;case"NextPage":this.pdfViewer.nextPage();break;case"PrevPage":this.pdfViewer.previousPage();break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1;break}this.eventBus.dispatch("namedaction",{source:this,action:Y})}cachePageRef(Y,V){if(!V)return;const H=V.gen===0?`${V.num}R`:`${V.num}R${V.gen}`;B(this,D).set(H,Y)}_cachedPageNumber(Y){if(!Y)return null;const V=Y.gen===0?`${Y.num}R`:`${Y.num}R${Y.gen}`;return B(this,D).get(V)||null}isPageVisible(Y){return this.pdfViewer.isPageVisible(Y)}isPageCached(Y){return this.pdfViewer.isPageCached(Y)}}a.PDFLinkService=F;function N(J){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,V=arguments.length>2?arguments[2]:void 0;const H=V[0];let z;if(typeof H=="object"&&H!==null){if(z=this._cachedPageNumber(H),!z){this.pdfDocument.getPageIndex(H).then(X=>{this.cachePageRef(X+1,H),O(this,M,N).call(this,J,Y,V)}).catch(()=>{console.error(`PDFLinkService.#goToDestinationHelper: "${H}" is not a valid page reference, for dest="${J}".`)});return}}else if(Number.isInteger(H))z=H+1;else{console.error(`PDFLinkService.#goToDestinationHelper: "${H}" is not a valid destination reference, for dest="${J}".`);return}if(!z||z<1||z>this.pagesCount){console.error(`PDFLinkService.#goToDestinationHelper: "${z}" is not a valid page number, for dest="${J}".`);return}this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:Y,explicitDest:V,pageNumber:z})),this.pdfViewer.scrollPageIntoView({pageNumber:z,destArray:V,ignoreDestinationZoom:this._ignoreDestinationZoom})}function G(J){if(!Array.isArray(J))return!1;const Y=J.length;if(Y<2)return!1;const V=J[0];if(!(typeof V=="object"&&Number.isInteger(V.num)&&Number.isInteger(V.gen))&&!(Number.isInteger(V)&&V>=0))return!1;const H=J[1];if(!(typeof H=="object"&&typeof H.name=="string"))return!1;let z=!0;switch(H.name){case"XYZ":if(Y!==5)return!1;break;case"Fit":case"FitB":return Y===2;case"FitH":case"FitBH":case"FitV":case"FitBV":if(Y!==3)return!1;break;case"FitR":if(Y!==6)return!1;z=!1;break;default:return!1}for(let X=2;X{Object.defineProperty(a,"__esModule",{value:!0}),a.animationStarted=a.VERTICAL_PADDING=a.UNKNOWN_SCALE=a.TextLayerMode=a.SpreadMode=a.SidebarView=a.ScrollMode=a.SCROLLBAR_PADDING=a.RenderingStates=a.RendererType=a.ProgressBar=a.PresentationModeState=a.OutputScale=a.MIN_SCALE=a.MAX_SCALE=a.MAX_AUTO_SCALE=a.DEFAULT_SCALE_VALUE=a.DEFAULT_SCALE_DELTA=a.DEFAULT_SCALE=a.AutoPrintRegExp=void 0,a.apiPageLayoutToViewerModes=Pe,a.apiPageModeToSidebarView=qe,a.approximateFraction=me,a.backtrackBeforeAllVisibleElements=de,a.binarySearchFirstItem=Te,a.docStyle=void 0,a.getActiveOrFocusedElement=Fe,a.getPageSizeInches=ce,a.getVisibleElements=Z,a.isPortraitOrientation=Ie,a.isValidRotation=_e,a.isValidScrollMode=ye,a.isValidSpreadMode=se,a.noContextMenuHandler=ae,a.normalizeWheelEventDelta=we,a.normalizeWheelEventDirection=he,a.parseQueryString=$,a.removeNullCharacters=ie,a.roundToDivide=K,a.scrollIntoView=X,a.watchScroll=q;function g(Le,Oe,Ee){n(Le,Oe),Oe.set(Le,Ee)}function n(Le,Oe){if(Oe.has(Le))throw new TypeError("Cannot initialize the same private elements twice on an object")}function c(Le,Oe){var Ee=e(Le,Oe,"get");return R(Le,Ee)}function R(Le,Oe){return Oe.get?Oe.get.call(Le):Oe.value}function v(Le,Oe,Ee){var Ae=e(Le,Oe,"set");return L(Le,Ae,Ee),Ee}function e(Le,Oe,Ee){if(!Oe.has(Le))throw new TypeError("attempted to "+Ee+" private field on non-instance");return Oe.get(Le)}function L(Le,Oe,Ee){if(Oe.set)Oe.set.call(Le,Ee);else{if(!Oe.writable)throw new TypeError("attempted to set read only private field");Oe.value=Ee}}const O="auto";a.DEFAULT_SCALE_VALUE=O;const B=1;a.DEFAULT_SCALE=B;const P=1.1;a.DEFAULT_SCALE_DELTA=P;const S=.1;a.MIN_SCALE=S;const _=10;a.MAX_SCALE=_;const l=0;a.UNKNOWN_SCALE=l;const y=1.25;a.MAX_AUTO_SCALE=y;const D=40;a.SCROLLBAR_PADDING=D;const M=5;a.VERTICAL_PADDING=M;const F={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};a.RenderingStates=F;const N={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};a.PresentationModeState=N;const G={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4};a.SidebarView=G;const W={CANVAS:"canvas",SVG:"svg"};a.RendererType=W;const J={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};a.TextLayerMode=J;const Y={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3};a.ScrollMode=Y;const V={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};a.SpreadMode=V;const H=/\bprint\s*\(/;a.AutoPrintRegExp=H;class z{constructor(){const Oe=window.devicePixelRatio||1;this.sx=Oe,this.sy=Oe}get scaled(){return this.sx!==1||this.sy!==1}}a.OutputScale=z;function X(Le,Oe){let Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ae=Le.offsetParent;if(!Ae){console.error("offsetParent is not set -- cannot scroll");return}let Ve=Le.offsetTop+Le.clientTop,$e=Le.offsetLeft+Le.clientLeft;for(;Ae.clientHeight===Ae.scrollHeight&&Ae.clientWidth===Ae.scrollWidth||Ee&&(Ae.classList.contains("markedContent")||getComputedStyle(Ae).overflow==="hidden");)if(Ve+=Ae.offsetTop,$e+=Ae.offsetLeft,Ae=Ae.offsetParent,!Ae)return;Oe&&(Oe.top!==void 0&&(Ve+=Oe.top),Oe.left!==void 0&&($e+=Oe.left,Ae.scrollLeft=$e)),Ae.scrollTop=Ve}function q(Le,Oe){const Ee=function($e){Ve||(Ve=window.requestAnimationFrame(function(){Ve=null;const He=Le.scrollLeft,Qe=Ae.lastX;He!==Qe&&(Ae.right=He>Qe),Ae.lastX=He;const Ze=Le.scrollTop,et=Ae.lastY;Ze!==et&&(Ae.down=Ze>et),Ae.lastY=Ze,Oe(Ae)}))},Ae={right:!0,down:!0,lastX:Le.scrollLeft,lastY:Le.scrollTop,_eventHandler:Ee};let Ve=null;return Le.addEventListener("scroll",Ee,!0),Ae}function $(Le){const Oe=new Map;for(const[Ee,Ae]of new URLSearchParams(Le))Oe.set(Ee.toLowerCase(),Ae);return Oe}const fe=/\x00/g,Q=/[\x01-\x1F]/g;function ie(Le){let Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return typeof Le!="string"?(console.error("The argument must be a string."),Le):(Oe&&(Le=Le.replace(Q," ")),Le.replace(fe,""))}function Te(Le,Oe){let Ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,Ve=Le.length-1;if(Ve<0||!Oe(Le[Ve]))return Le.length;if(Oe(Le[Ae]))return Ae;for(;Ae>1,Ue=Le[$e];Oe(Ue)?Ve=$e:Ae=$e+1}return Ae}function me(Le){if(Math.floor(Le)===Le)return[Le,1];const Oe=1/Le,Ee=8;if(Oe>Ee)return[1,Ee];if(Math.floor(Oe)===Oe)return[1,Oe];const Ae=Le>1?Oe:Le;let Ve=0,$e=1,Ue=1,He=1;for(;;){const Ze=Ve+Ue,et=$e+He;if(et>Ee)break;Ae<=Ze/et?(Ue=Ze,He=et):(Ve=Ze,$e=et)}let Qe;return Ae-Ve/$e=Ee&&(Ae=Oe[Le-1].div,Ve=Ae.offsetTop+Ae.clientTop);for(let $e=Le-2;$e>=0&&(Ae=Oe[$e].div,!(Ae.offsetTop+Ae.clientTop+Ae.clientHeight<=Ve));--$e)Le=$e;return Le}function Z(Le){let{scrollEl:Oe,views:Ee,sortByVisibility:Ae=!1,horizontal:Ve=!1,rtl:$e=!1}=Le;const Ue=Oe.scrollTop,He=Ue+Oe.clientHeight,Qe=Oe.scrollLeft,Ze=Qe+Oe.clientWidth;function et(ze){const Ye=ze.div;return Ye.offsetTop+Ye.clientTop+Ye.clientHeight>Ue}function tt(ze){const Ye=ze.div,st=Ye.offsetLeft+Ye.clientLeft,_t=st+Ye.clientWidth;return $e?stQe}const je=[],Je=new Set,nt=Ee.length;let Ke=Te(Ee,Ve?tt:et);Ke>0&&Ke=He&&(at=mt);else if((Ve?_t:ft)>at)break;if(mt<=Ue||ft>=He||rt<=Qe||_t>=Ze)continue;const Ot=Math.max(0,Ue-ft)+Math.max(0,mt-He),dt=Math.max(0,Qe-_t)+Math.max(0,rt-Ze),Nt=(ut-Ot)/ut,kt=(Ct-dt)/Ct,Ut=Nt*kt*100|0;je.push({id:Ye.id,x:_t,y:ft,view:Ye,percent:Ut,widthPercent:kt*100|0}),Je.add(Ye.id)}const ot=je[0],Xe=je.at(-1);return Ae&&je.sort(function(ze,Ye){const st=ze.percent-Ye.percent;return Math.abs(st)>.001?-st:ze.id-Ye.id}),{first:ot,last:Xe,views:je,ids:Je}}function ae(Le){Le.preventDefault()}function he(Le){let Oe=Math.hypot(Le.deltaX,Le.deltaY);const Ee=Math.atan2(Le.deltaY,Le.deltaX);return-.25*Math.PI1)throw new Error("ProgressBar no longer accepts any additional options, please use CSS rules to modify its appearance instead.");const Ee=document.getElementById(Oe);v(this,xe,Ee.classList)}get percent(){return c(this,Ne)}set percent(Oe){if(v(this,Ne,pe(Oe,0,100)),isNaN(Oe)){c(this,xe).add("indeterminate");return}c(this,xe).remove("indeterminate"),oe.setProperty("--progressBar-percent",`${c(this,Ne)}%`)}setWidth(Oe){if(!Oe)return;const Ae=Oe.parentNode.offsetWidth-Oe.offsetWidth;Ae>0&&oe.setProperty("--progressBar-end-offset",`${Ae}px`)}hide(){c(this,ke)&&(v(this,ke,!1),c(this,xe).add("hidden"))}show(){c(this,ke)||(v(this,ke,!0),c(this,xe).remove("hidden"))}}a.ProgressBar=De;function Fe(){let Le=document,Oe=Le.activeElement||Le.querySelector(":focus");for(;(Ee=Oe)!==null&&Ee!==void 0&&Ee.shadowRoot;){var Ee;Le=Oe.shadowRoot,Oe=Le.activeElement||Le.querySelector(":focus")}return Oe}function Pe(Le){let Oe=Y.VERTICAL,Ee=V.NONE;switch(Le){case"SinglePage":Oe=Y.PAGE;break;case"OneColumn":break;case"TwoPageLeft":Oe=Y.PAGE;case"TwoColumnLeft":Ee=V.ODD;break;case"TwoPageRight":Oe=Y.PAGE;case"TwoColumnRight":Ee=V.EVEN;break}return{scrollMode:Oe,spreadMode:Ee}}function qe(Le){switch(Le){case"UseNone":return G.NONE;case"UseThumbs":return G.THUMBS;case"UseOutlines":return G.OUTLINE;case"UseAttachments":return G.ATTACHMENTS;case"UseOC":return G.LAYERS}return G.NONE}},(x,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.StructTreeLayerBuilder=void 0;const g={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},n=/^H(\d+)$/;class c{constructor(v){let{pdfPage:e}=v;this.pdfPage=e}render(v){return this._walk(v)}_setAttributes(v,e){v.alt!==void 0&&e.setAttribute("aria-label",v.alt),v.id!==void 0&&e.setAttribute("aria-owns",v.id),v.lang!==void 0&&e.setAttribute("lang",v.lang)}_walk(v){if(!v)return null;const e=document.createElement("span");if("role"in v){const{role:L}=v,O=L.match(n);O?(e.setAttribute("role","heading"),e.setAttribute("aria-level",O[1])):g[L]&&e.setAttribute("role",g[L])}if(this._setAttributes(v,e),v.children)if(v.children.length===1&&"id"in v.children[0])this._setAttributes(v.children[0],e);else for(const L of v.children)e.append(this._walk(L));return e}}a.StructTreeLayerBuilder=c},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.TextLayerBuilder=void 0;var n=g(3);const c=300;class R{constructor(e){let{textLayerDiv:L,eventBus:O,pageIndex:B,viewport:P,highlighter:S=null,enhanceTextSelection:_=!1,accessibilityManager:l=null}=e;this.textLayerDiv=L,this.eventBus=O,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageNumber=B+1,this.viewport=P,this.textDivs=[],this.textLayerRenderTask=null,this.highlighter=S,this.enhanceTextSelection=_,this.accessibilityManager=l,this._bindMouse()}_finishRendering(){if(this.renderingDone=!0,!this.enhanceTextSelection){const e=document.createElement("div");e.className="endOfContent",this.textLayerDiv.append(e)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}render(){var e,L;let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;if(!(this.textContent||this.textContentStream)||this.renderingDone)return;this.cancel(),this.textDivs.length=0,(e=this.highlighter)===null||e===void 0||e.setTextMapping(this.textDivs,this.textContentItemsStr),(L=this.accessibilityManager)===null||L===void 0||L.setTextMapping(this.textDivs);const B=document.createDocumentFragment();this.textLayerRenderTask=(0,n.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:B,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:O,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(()=>{var P,S;this.textLayerDiv.append(B),this._finishRendering(),(P=this.highlighter)===null||P===void 0||P.enable(),(S=this.accessibilityManager)===null||S===void 0||S.enable()},function(P){})}cancel(){var e,L;this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),(e=this.highlighter)===null||e===void 0||e.disable(),(L=this.accessibilityManager)===null||L===void 0||L.disable()}setTextContentStream(e){this.cancel(),this.textContentStream=e}setTextContent(e){this.cancel(),this.textContent=e}_bindMouse(){const e=this.textLayerDiv;let L=null;e.addEventListener("mousedown",O=>{if(this.enhanceTextSelection&&this.textLayerRenderTask){this.textLayerRenderTask.expandTextDivs(!0),L&&(clearTimeout(L),L=null);return}const B=e.querySelector(".endOfContent");if(!B)return;let P=O.target!==e;if(P=P&&window.getComputedStyle(B).getPropertyValue("-moz-user-select")!=="none",P){const S=e.getBoundingClientRect(),_=Math.max(0,(O.pageY-S.top)/S.height);B.style.top=(_*100).toFixed(2)+"%"}B.classList.add("active")}),e.addEventListener("mouseup",()=>{if(this.enhanceTextSelection&&this.textLayerRenderTask){L=setTimeout(()=>{this.textLayerRenderTask&&this.textLayerRenderTask.expandTextDivs(!1),L=null},c);return}const O=e.querySelector(".endOfContent");O&&(O.style.top="",O.classList.remove("active"))})}}a.TextLayerBuilder=R},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.XfaLayerBuilder=void 0;var n=g(3);class c{constructor(v){let{pageDiv:e,pdfPage:L,annotationStorage:O=null,linkService:B,xfaHtml:P=null}=v;this.pageDiv=e,this.pdfPage=L,this.annotationStorage=O,this.linkService=B,this.xfaHtml=P,this.div=null,this._cancelled=!1}render(v){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"display";if(e==="print"){const L={viewport:v.clone({dontFlip:!0}),div:this.div,xfaHtml:this.xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:e},O=document.createElement("div");this.pageDiv.append(O),L.div=O;const B=n.XfaLayer.render(L);return Promise.resolve(B)}return this.pdfPage.getXfa().then(L=>{if(this._cancelled||!L)return{textDivs:[]};const O={viewport:v.clone({dontFlip:!0}),div:this.div,xfaHtml:L,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:e};return this.div?n.XfaLayer.update(O):(this.div=document.createElement("div"),this.pageDiv.append(this.div),O.div=this.div,n.XfaLayer.render(O))}).catch(L=>{console.error(L)})}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}a.XfaLayerBuilder=c},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.PDFViewer=a.PDFSinglePageViewer=void 0;var n=g(7),c=g(12);class R extends c.BaseViewer{}a.PDFViewer=R;class v extends c.BaseViewer{_resetView(){super._resetView(),this._scrollMode=n.ScrollMode.PAGE,this._spreadMode=n.SpreadMode.NONE}set scrollMode(L){}_updateScrollMode(){}set spreadMode(L){}_updateSpreadMode(){}}a.PDFSinglePageViewer=v},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.PagesCountLimit=a.PDFPageViewBuffer=a.BaseViewer=void 0;var n=g(3),c=g(7),R=g(2),v=g(5),e=g(4),L=g(13),O=g(16),B=g(6),P=g(8),S=g(17),_=g(9),l=g(10);let y;function D($e,Ue){F($e,Ue),Ue.add($e)}function M($e,Ue,He){F($e,Ue),Ue.set($e,He)}function F($e,Ue){if(Ue.has($e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function N($e,Ue,He){if(!Ue.has($e))throw new TypeError("attempted to get private field on non-instance");return He}function G($e,Ue){var He=Y($e,Ue,"get");return W($e,He)}function W($e,Ue){return Ue.get?Ue.get.call($e):Ue.value}function J($e,Ue,He){var Qe=Y($e,Ue,"set");return V($e,Qe,He),He}function Y($e,Ue,He){if(!Ue.has($e))throw new TypeError("attempted to "+He+" private field on non-instance");return Ue.get($e)}function V($e,Ue,He){if(Ue.set)Ue.set.call($e,He);else{if(!Ue.writable)throw new TypeError("attempted to set read only private field");Ue.value=He}}const H=10,z="enablePermissions",X={FORCE_SCROLL_MODE_PAGE:15e3,FORCE_LAZY_PAGE_INIT:7500,PAUSE_EAGER_PAGE_INIT:250};a.PagesCountLimit=X;function q($e){return Object.values(n.AnnotationEditorType).includes($e)&&$e!==n.AnnotationEditorType.DISABLE}var $=new WeakMap,fe=new WeakMap,Q=new WeakSet;y=Symbol.iterator;class ie{constructor(Ue){D(this,Q),M(this,$,{writable:!0,value:new Set}),M(this,fe,{writable:!0,value:0}),J(this,fe,Ue)}push(Ue){const He=G(this,$);He.has(Ue)&&He.delete(Ue),He.add(Ue),He.size>G(this,fe)&&N(this,Q,Te).call(this)}resize(Ue){let He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;J(this,fe,Ue);const Qe=G(this,$);if(He){const Ze=Qe.size;let et=1;for(const tt of Qe)if(He.has(tt.id)&&(Qe.delete(tt),Qe.add(tt)),++et>Ze)break}for(;Qe.size>G(this,fe);)N(this,Q,Te).call(this)}has(Ue){return G(this,$).has(Ue)}[y](){return G(this,$).keys()}}a.PDFPageViewBuffer=ie;function Te(){const $e=G(this,$).keys().next().value;$e==null||$e.destroy(),G(this,$).delete($e)}var me=new WeakMap,K=new WeakMap,ce=new WeakMap,de=new WeakMap,Z=new WeakMap,ae=new WeakMap,he=new WeakMap,we=new WeakMap,_e=new WeakSet,ye=new WeakSet,se=new WeakSet,Ie=new WeakSet,Ce=new WeakSet,oe=new WeakSet,pe=new WeakSet,xe=new WeakSet,Ne=new WeakSet;class ke{constructor(Ue){var He,Qe,Ze,et,tt;if(D(this,Ne),D(this,xe),D(this,pe),D(this,oe),D(this,Ce),D(this,Ie),D(this,se),D(this,ye),D(this,_e),M(this,me,{writable:!0,value:null}),M(this,K,{writable:!0,value:n.AnnotationEditorType.DISABLE}),M(this,ce,{writable:!0,value:null}),M(this,de,{writable:!0,value:n.AnnotationMode.ENABLE_FORMS}),M(this,Z,{writable:!0,value:!1}),M(this,ae,{writable:!0,value:0}),M(this,he,{writable:!0,value:null}),M(this,we,{writable:!0,value:null}),this.constructor===ke)throw new Error("Cannot initialize BaseViewer.");const je="2.16.105";if(n.version!==je)throw new Error(`The API version "${n.version}" does not match the Viewer version "${je}".`);if(this.container=Ue.container,this.viewer=Ue.viewer||Ue.container.firstElementChild,!(((He=this.container)===null||He===void 0?void 0:He.tagName.toUpperCase())==="DIV"&&((Qe=this.viewer)===null||Qe===void 0?void 0:Qe.tagName.toUpperCase())==="DIV"))throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&getComputedStyle(this.container).position!=="absolute")throw new Error("The `container` must be absolutely positioned.");this.eventBus=Ue.eventBus,this.linkService=Ue.linkService||new B.SimpleLinkService,this.downloadManager=Ue.downloadManager||null,this.findController=Ue.findController||null,this._scriptingManager=Ue.scriptingManager||null,this.removePageBorders=Ue.removePageBorders||!1,this.textLayerMode=(Ze=Ue.textLayerMode)!==null&&Ze!==void 0?Ze:c.TextLayerMode.ENABLE,J(this,de,(et=Ue.annotationMode)!==null&&et!==void 0?et:n.AnnotationMode.ENABLE_FORMS),J(this,K,(tt=Ue.annotationEditorMode)!==null&&tt!==void 0?tt:n.AnnotationEditorType.DISABLE),this.imageResourcesPath=Ue.imageResourcesPath||"",this.enablePrintAutoRotate=Ue.enablePrintAutoRotate||!1,this.renderer=Ue.renderer||c.RendererType.CANVAS,this.useOnlyCssZoom=Ue.useOnlyCssZoom||!1,this.maxCanvasPixels=Ue.maxCanvasPixels,this.l10n=Ue.l10n||e.NullL10n,J(this,Z,Ue.enablePermissions||!1),this.pageColors=Ue.pageColors||null,this.pageColors&&!(CSS.supports("color",this.pageColors.background)&&CSS.supports("color",this.pageColors.foreground))&&((this.pageColors.background||this.pageColors.foreground)&&console.warn("BaseViewer: Ignoring `pageColors`-option, since the browser doesn't support the values used."),this.pageColors=null),this.defaultRenderingQueue=!Ue.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new O.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=Ue.renderingQueue,this.scroll=(0,c.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=c.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),this.updateContainerHeightCss()}get pagesCount(){return this._pages.length}getPageView(Ue){return this._pages[Ue]}get pageViewsReady(){return this._pagesCapability.settled?this._pages.every(function(Ue){return Ue==null?void 0:Ue.pdfPage}):!1}get renderForms(){return G(this,de)===n.AnnotationMode.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(Ue){if(!Number.isInteger(Ue))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(Ue,!0)||console.error(`currentPageNumber: "${Ue}" is not a valid page.`))}_setCurrentPageNumber(Ue){var He,Qe;let Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this._currentPageNumber===Ue)return Ze&&N(this,oe,Oe).call(this),!0;if(!(0=0&&(He=Qe+1)}this._setCurrentPageNumber(He,!0)||console.error(`currentPageLabel: "${Ue}" is not a valid page.`)}get currentScale(){return this._currentScale!==c.UNKNOWN_SCALE?this._currentScale:c.DEFAULT_SCALE}set currentScale(Ue){if(isNaN(Ue))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(Ue,!1)}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(Ue){this.pdfDocument&&this._setScale(Ue,!1)}get pagesRotation(){return this._pagesRotation}set pagesRotation(Ue){if(!(0,c.isValidRotation)(Ue))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument||(Ue%=360,Ue<0&&(Ue+=360),this._pagesRotation===Ue))return;this._pagesRotation=Ue;const He=this._currentPageNumber,Qe={rotation:Ue};for(const Ze of this._pages)Ze.update(Qe);this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:Ue,pageNumber:He}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}setDocument(Ue){if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null),this._scriptingManager&&this._scriptingManager.setDocument(null),G(this,ce)&&(G(this,ce).destroy(),J(this,ce,null))),this.pdfDocument=Ue,!Ue)return;const He=Ue.isPureXfa,Qe=Ue.numPages,Ze=Ue.getPage(1),et=Ue.getOptionalContentConfig(),tt=G(this,Z)?Ue.getPermissions():Promise.resolve();if(Qe>X.FORCE_SCROLL_MODE_PAGE){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");const je=this._scrollMode=c.ScrollMode.PAGE;this.eventBus.dispatch("scrollmodechanged",{source:this,mode:je})}this._pagesCapability.promise.then(()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:Qe})},()=>{}),this._onBeforeDraw=je=>{const Je=this._pages[je.pageNumber-1];Je&&G(this,me).push(Je)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=je=>{je.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve({timestamp:je.timestamp}),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null,G(this,we)&&(document.removeEventListener("visibilitychange",G(this,we)),J(this,we,null)))},this.eventBus._on("pagerendered",this._onAfterDraw),Promise.all([Ze,tt]).then(je=>{let[Je,nt]=je;if(Ue!==this.pdfDocument)return;this._firstPageCapability.resolve(Je),this._optionalContentConfigPromise=et;const{annotationEditorMode:Ke,annotationMode:at,textLayerMode:ot}=N(this,_e,De).call(this,nt);if(Ke!==n.AnnotationEditorType.DISABLE){const rt=Ke;He?console.warn("Warning: XFA-editing is not implemented."):q(rt)?(J(this,ce,new n.AnnotationEditorUIManager(this.container,this.eventBus)),rt!==n.AnnotationEditorType.NONE&&G(this,ce).updateMode(rt)):console.error(`Invalid AnnotationEditor mode: ${rt}`)}const Xe=this._scrollMode===c.ScrollMode.PAGE?null:this.viewer,ze=this.currentScale,Ye=Je.getViewport({scale:ze*n.PixelsPerInch.PDF_TO_CSS_UNITS}),st=ot!==c.TextLayerMode.DISABLE&&!He?this:null,_t=at!==n.AnnotationMode.DISABLE?this:null,ft=He?this:null,Ct=G(this,ce)?this:null;for(let rt=1;rt<=Qe;++rt){const mt=new L.PDFPageView({container:Xe,eventBus:this.eventBus,id:rt,scale:ze,defaultViewport:Ye.clone(),optionalContentConfigPromise:et,renderingQueue:this.renderingQueue,textLayerFactory:st,textLayerMode:ot,annotationLayerFactory:_t,annotationMode:at,xfaLayerFactory:ft,annotationEditorLayerFactory:Ct,textHighlighterFactory:this,structTreeLayerFactory:this,imageResourcesPath:this.imageResourcesPath,renderer:this.renderer,useOnlyCssZoom:this.useOnlyCssZoom,maxCanvasPixels:this.maxCanvasPixels,pageColors:this.pageColors,l10n:this.l10n});this._pages.push(mt)}const ut=this._pages[0];ut&&(ut.setPdfPage(Je),this.linkService.cachePageRef(1,Je.ref)),this._scrollMode===c.ScrollMode.PAGE?N(this,se,Pe).call(this):this._spreadMode!==c.SpreadMode.NONE&&this._updateSpreadMode(),N(this,ye,Fe).call(this).then(async()=>{if(this.findController&&this.findController.setDocument(Ue),this._scriptingManager&&this._scriptingManager.setDocument(Ue),G(this,ce)&&this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:G(this,K)}),Ue.loadingParams.disableAutoFetch||Qe>X.FORCE_LAZY_PAGE_INIT){this._pagesCapability.resolve();return}let rt=Qe-1;if(rt<=0){this._pagesCapability.resolve();return}for(let mt=2;mt<=Qe;++mt){const Ot=Ue.getPage(mt).then(dt=>{const Nt=this._pages[mt-1];Nt.pdfPage||Nt.setPdfPage(dt),this.linkService.cachePageRef(mt,dt.ref),--rt===0&&this._pagesCapability.resolve()},dt=>{console.error(`Unable to get page ${mt} to initialize viewer`,dt),--rt===0&&this._pagesCapability.resolve()});mt%X.PAUSE_EAGER_PAGE_INIT===0&&await Ot}}),this.eventBus.dispatch("pagesinit",{source:this}),Ue.getMetadata().then(rt=>{let{info:mt}=rt;Ue===this.pdfDocument&&mt.Language&&(this.viewer.lang=mt.Language)}),this.defaultRenderingQueue&&this.update()}).catch(je=>{console.error("Unable to initialize viewer",je),this._pagesCapability.reject(je)})}setPageLabels(Ue){if(this.pdfDocument){Ue?Array.isArray(Ue)&&this.pdfDocument.numPages===Ue.length?this._pageLabels=Ue:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let Ze=0,et=this._pages.length;Ze2&&arguments[2]!==void 0?arguments[2]:!1,Ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(this._currentScaleValue=He.toString(),N(this,Ce,Le).call(this,Ue)){Ze&&this.eventBus.dispatch("scalechanging",{source:this,scale:Ue,presetValue:He});return}c.docStyle.setProperty("--scale-factor",Ue*n.PixelsPerInch.PDF_TO_CSS_UNITS);const et={scale:Ue};for(const tt of this._pages)tt.update(et);if(this._currentScale=Ue,!Qe){let tt=this._currentPageNumber,je;this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&(tt=this._location.pageNumber,je=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:tt,destArray:je,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:Ue,presetValue:Ze?He:void 0}),this.defaultRenderingQueue&&this.update(),this.updateContainerHeightCss()}get _pageWidthScaleFactor(){return this._spreadMode!==c.SpreadMode.NONE&&this._scrollMode!==c.ScrollMode.HORIZONTAL?2:1}_setScale(Ue){let He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qe=parseFloat(Ue);if(Qe>0)this._setScaleUpdatePages(Qe,Ue,He,!1);else{const Ze=this._pages[this._currentPageNumber-1];if(!Ze)return;let et=c.SCROLLBAR_PADDING,tt=c.VERTICAL_PADDING;this.isInPresentationMode?et=tt=4:this.removePageBorders?et=tt=0:this._scrollMode===c.ScrollMode.HORIZONTAL&&([et,tt]=[tt,et]);const je=(this.container.clientWidth-et)/Ze.width*Ze.scale/this._pageWidthScaleFactor,Je=(this.container.clientHeight-tt)/Ze.height*Ze.scale;switch(Ue){case"page-actual":Qe=1;break;case"page-width":Qe=je;break;case"page-height":Qe=Je;break;case"page-fit":Qe=Math.min(je,Je);break;case"auto":const nt=(0,c.isPortraitOrientation)(Ze)?je:Math.min(Je,je);Qe=Math.min(c.MAX_AUTO_SCALE,nt);break;default:console.error(`_setScale: "${Ue}" is an unknown zoom value.`);return}this._setScaleUpdatePages(Qe,Ue,He,!0)}}pageLabelToPageNumber(Ue){if(!this._pageLabels)return null;const He=this._pageLabels.indexOf(Ue);return He<0?null:He+1}scrollPageIntoView(Ue){let{pageNumber:He,destArray:Qe=null,allowNegativeOffset:Ze=!1,ignoreDestinationZoom:et=!1}=Ue;if(!this.pdfDocument)return;const tt=Number.isInteger(He)&&this._pages[He-1];if(!tt){console.error(`scrollPageIntoView: "${He}" is not a valid pageNumber parameter.`);return}if(this.isInPresentationMode||!Qe){this._setCurrentPageNumber(He,!0);return}let je=0,Je=0,nt=0,Ke=0,at,ot;const Xe=tt.rotation%180!==0,ze=(Xe?tt.height:tt.width)/tt.scale/n.PixelsPerInch.PDF_TO_CSS_UNITS,Ye=(Xe?tt.width:tt.height)/tt.scale/n.PixelsPerInch.PDF_TO_CSS_UNITS;let st=0;switch(Qe[1].name){case"XYZ":je=Qe[2],Je=Qe[3],st=Qe[4],je=je!==null?je:0,Je=Je!==null?Je:Ye;break;case"Fit":case"FitB":st="page-fit";break;case"FitH":case"FitBH":Je=Qe[2],st="page-width",Je===null&&this._location?(je=this._location.left,Je=this._location.top):(typeof Je!="number"||Je<0)&&(Je=Ye);break;case"FitV":case"FitBV":je=Qe[2],nt=ze,Ke=Ye,st="page-height";break;case"FitR":je=Qe[2],Je=Qe[3],nt=Qe[4]-je,Ke=Qe[5]-Je;const ut=this.removePageBorders?0:c.SCROLLBAR_PADDING,rt=this.removePageBorders?0:c.VERTICAL_PADDING;at=(this.container.clientWidth-ut)/nt/n.PixelsPerInch.PDF_TO_CSS_UNITS,ot=(this.container.clientHeight-rt)/Ke/n.PixelsPerInch.PDF_TO_CSS_UNITS,st=Math.min(Math.abs(at),Math.abs(ot));break;default:console.error(`scrollPageIntoView: "${Qe[1].name}" is not a valid destination type.`);return}if(et||(st&&st!==this._currentScale?this.currentScaleValue=st:this._currentScale===c.UNKNOWN_SCALE&&(this.currentScaleValue=c.DEFAULT_SCALE_VALUE)),st==="page-fit"&&!Qe[4]){N(this,Ie,qe).call(this,tt);return}const _t=[tt.viewport.convertToViewportPoint(je,Je),tt.viewport.convertToViewportPoint(je+nt,Je+Ke)];let ft=Math.min(_t[0][0],_t[1][0]),Ct=Math.min(_t[0][1],_t[1][1]);Ze||(ft=Math.max(ft,0),Ct=Math.max(Ct,0)),N(this,Ie,qe).call(this,tt,{left:ft,top:Ct})}_updateLocation(Ue){const He=this._currentScale,Qe=this._currentScaleValue,Ze=parseFloat(Qe)===He?Math.round(He*1e4)/100:Qe,et=Ue.id,tt=this._pages[et-1],je=this.container,Je=tt.getPagePoint(je.scrollLeft-Ue.x,je.scrollTop-Ue.y),nt=Math.round(Je[0]),Ke=Math.round(Je[1]);let at=`#page=${et}`;this.isInPresentationMode||(at+=`&zoom=${Ze},${nt},${Ke}`),this._location={pageNumber:et,scale:Ze,top:Ke,left:nt,rotation:this._pagesRotation,pdfOpenParams:at}}update(){const Ue=this._getVisiblePages(),He=Ue.views,Qe=He.length;if(Qe===0)return;const Ze=Math.max(H,2*Qe+1);G(this,me).resize(Ze,Ue.ids),this.renderingQueue.renderHighestPriority(Ue);const et=this._spreadMode===c.SpreadMode.NONE&&(this._scrollMode===c.ScrollMode.PAGE||this._scrollMode===c.ScrollMode.VERTICAL),tt=this._currentPageNumber;let je=!1;for(const Je of He){if(Je.percent<100)break;if(Je.id===tt&&et){je=!0;break}}this._setCurrentPageNumber(je?tt:He[0].id),this._updateLocation(Ue.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(Ue){return this.container.contains(Ue)}focus(){this.container.focus()}get _isContainerRtl(){return getComputedStyle(this.container).direction==="rtl"}get isInPresentationMode(){return this.presentationModeState===c.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===c.PresentationModeState.CHANGING}get isHorizontalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollHeight>this.container.clientHeight}_getVisiblePages(){const Ue=this._scrollMode===c.ScrollMode.PAGE?G(this,he).pages:this._pages,He=this._scrollMode===c.ScrollMode.HORIZONTAL,Qe=He&&this._isContainerRtl;return(0,c.getVisibleElements)({scrollEl:this.container,views:Ue,sortByVisibility:!0,horizontal:He,rtl:Qe})}isPageVisible(Ue){return this.pdfDocument?Number.isInteger(Ue)&&Ue>0&&Ue<=this.pagesCount?this._getVisiblePages().ids.has(Ue):(console.error(`isPageVisible: "${Ue}" is not a valid page.`),!1):!1}isPageCached(Ue){if(!this.pdfDocument)return!1;if(!(Number.isInteger(Ue)&&Ue>0&&Ue<=this.pagesCount))return console.error(`isPageCached: "${Ue}" is not a valid page.`),!1;const He=this._pages[Ue-1];return G(this,me).has(He)}cleanup(){for(const Ue of this._pages)Ue.renderingState!==c.RenderingStates.FINISHED&&Ue.reset()}_cancelRendering(){for(const Ue of this._pages)Ue.cancelRendering()}forceRendering(Ue){const He=Ue||this._getVisiblePages(),Qe=N(this,xe,Ae).call(this,He),Ze=this._spreadMode!==c.SpreadMode.NONE&&this._scrollMode!==c.ScrollMode.HORIZONTAL,et=this.renderingQueue.getHighestPriority(He,this._pages,Qe,Ze);return N(this,Ne,Ve).call(this,He.ids),et?(N(this,pe,Ee).call(this,et).then(()=>{this.renderingQueue.renderView(et)}),!0):!1}createTextLayerBuilder(Ue){let{textLayerDiv:He,pageIndex:Qe,viewport:Ze,enhanceTextSelection:et=!1,eventBus:tt,highlighter:je,accessibilityManager:Je=null}=Ue;return new _.TextLayerBuilder({textLayerDiv:He,eventBus:tt,pageIndex:Qe,viewport:Ze,enhanceTextSelection:this.isInPresentationMode?!1:et,highlighter:je,accessibilityManager:Je})}createTextHighlighter(Ue){let{pageIndex:He,eventBus:Qe}=Ue;return new S.TextHighlighter({eventBus:Qe,pageIndex:He,findController:this.isInPresentationMode?null:this.findController})}createAnnotationLayerBuilder(Ue){var He,Qe,Ze,et;let{pageDiv:tt,pdfPage:je,annotationStorage:Je=(He=this.pdfDocument)===null||He===void 0?void 0:He.annotationStorage,imageResourcesPath:nt="",renderForms:Ke=!0,l10n:at=e.NullL10n,enableScripting:ot=this.enableScripting,hasJSActionsPromise:Xe=(Qe=this.pdfDocument)===null||Qe===void 0?void 0:Qe.hasJSActions(),mouseState:ze=(Ze=this._scriptingManager)===null||Ze===void 0?void 0:Ze.mouseState,fieldObjectsPromise:Ye=(et=this.pdfDocument)===null||et===void 0?void 0:et.getFieldObjects(),annotationCanvasMap:st=null,accessibilityManager:_t=null}=Ue;return new v.AnnotationLayerBuilder({pageDiv:tt,pdfPage:je,annotationStorage:Je,imageResourcesPath:nt,renderForms:Ke,linkService:this.linkService,downloadManager:this.downloadManager,l10n:at,enableScripting:ot,hasJSActionsPromise:Xe,mouseState:ze,fieldObjectsPromise:Ye,annotationCanvasMap:st,accessibilityManager:_t})}createAnnotationEditorLayerBuilder(Ue){var He;let{uiManager:Qe=G(this,ce),pageDiv:Ze,pdfPage:et,accessibilityManager:tt=null,l10n:je,annotationStorage:Je=(He=this.pdfDocument)===null||He===void 0?void 0:He.annotationStorage}=Ue;return new R.AnnotationEditorLayerBuilder({uiManager:Qe,pageDiv:Ze,pdfPage:et,annotationStorage:Je,accessibilityManager:tt,l10n:je})}createXfaLayerBuilder(Ue){var He;let{pageDiv:Qe,pdfPage:Ze,annotationStorage:et=(He=this.pdfDocument)===null||He===void 0?void 0:He.annotationStorage}=Ue;return new l.XfaLayerBuilder({pageDiv:Qe,pdfPage:Ze,annotationStorage:et,linkService:this.linkService})}createStructTreeLayerBuilder(Ue){let{pdfPage:He}=Ue;return new P.StructTreeLayerBuilder({pdfPage:He})}get hasEqualPageSizes(){const Ue=this._pages[0];for(let He=1,Qe=this._pages.length;He{const He=Ue.pdfPage.getViewport({scale:1});return!this.enablePrintAutoRotate||(0,c.isPortraitOrientation)(He)?{width:He.width,height:He.height,rotation:He.rotation}:{width:He.height,height:He.width,rotation:(He.rotation-90)%360}})}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:(console.error("optionalContentConfigPromise: Not initialized yet."),this.pdfDocument.getOptionalContentConfig()):Promise.resolve(null)}set optionalContentConfigPromise(Ue){if(!(Ue instanceof Promise))throw new Error(`Invalid optionalContentConfigPromise: ${Ue}`);if(!this.pdfDocument||!this._optionalContentConfigPromise)return;this._optionalContentConfigPromise=Ue;const He={optionalContentConfigPromise:Ue};for(const Qe of this._pages)Qe.update(He);this.update(),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:Ue})}get scrollMode(){return this._scrollMode}set scrollMode(Ue){if(this._scrollMode!==Ue){if(!(0,c.isValidScrollMode)(Ue))throw new Error(`Invalid scroll mode: ${Ue}`);this.pagesCount>X.FORCE_SCROLL_MODE_PAGE||(this._previousScrollMode=this._scrollMode,this._scrollMode=Ue,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:Ue}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(){let Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;const He=this._scrollMode,Qe=this.viewer;Qe.classList.toggle("scrollHorizontal",He===c.ScrollMode.HORIZONTAL),Qe.classList.toggle("scrollWrapped",He===c.ScrollMode.WRAPPED),!(!this.pdfDocument||!Ue)&&(He===c.ScrollMode.PAGE?N(this,se,Pe).call(this):this._previousScrollMode===c.ScrollMode.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(Ue,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(Ue){if(this._spreadMode!==Ue){if(!(0,c.isValidSpreadMode)(Ue))throw new Error(`Invalid spread mode: ${Ue}`);this._spreadMode=Ue,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:Ue}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(){let Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(!this.pdfDocument)return;const He=this.viewer,Qe=this._pages;if(this._scrollMode===c.ScrollMode.PAGE)N(this,se,Pe).call(this);else if(He.textContent="",this._spreadMode===c.SpreadMode.NONE)for(const Ze of this._pages)He.append(Ze.div);else{const Ze=this._spreadMode-1;let et=null;for(let tt=0,je=Qe.length;tt1&&arguments[1]!==void 0?arguments[1]:!1;switch(this._scrollMode){case c.ScrollMode.WRAPPED:{const{views:Qe}=this._getVisiblePages(),Ze=new Map;for(const{id:et,y:tt,percent:je,widthPercent:Je}of Qe){if(je===0||Je<100)continue;let nt=Ze.get(tt);nt||Ze.set(tt,nt||(nt=[])),nt.push(et)}for(const et of Ze.values()){const tt=et.indexOf(Ue);if(tt===-1)continue;const je=et.length;if(je===1)break;if(He)for(let Je=tt-1,nt=0;Je>=nt;Je--){const Ke=et[Je],at=et[Je+1]-1;if(Keat)return at-Ue}if(He){const Je=et[0];if(JeUe)return Je-Ue+1}break}break}case c.ScrollMode.HORIZONTAL:break;case c.ScrollMode.PAGE:case c.ScrollMode.VERTICAL:{if(this._spreadMode===c.SpreadMode.NONE)break;const Qe=this._spreadMode-1;if(He&&Ue%2!==Qe)break;if(!He&&Ue%2===Qe)break;const{views:Ze}=this._getVisiblePages(),et=He?Ue-1:Ue+1;for(const{id:tt,percent:je,widthPercent:Je}of Ze)if(tt===et){if(je>0&&Je===100)return 2;break}break}}return 1}nextPage(){const Ue=this._currentPageNumber,He=this.pagesCount;if(Ue>=He)return!1;const Qe=this._getPageAdvance(Ue,!1)||1;return this.currentPageNumber=Math.min(Ue+Qe,He),!0}previousPage(){const Ue=this._currentPageNumber;if(Ue<=1)return!1;const He=this._getPageAdvance(Ue,!0)||1;return this.currentPageNumber=Math.max(Ue-He,1),!0}increaseScale(){let Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,He=this._currentScale;do He=(He*c.DEFAULT_SCALE_DELTA).toFixed(2),He=Math.ceil(He*10)/10,He=Math.min(c.MAX_SCALE,He);while(--Ue>0&&He0&&arguments[0]!==void 0?arguments[0]:1,He=this._currentScale;do He=(He/c.DEFAULT_SCALE_DELTA).toFixed(2),He=Math.floor(He*10)/10,He=Math.max(c.MIN_SCALE,He);while(--Ue>0&&He>c.MIN_SCALE);this.currentScaleValue=He}updateContainerHeightCss(){const Ue=this.container.clientHeight;Ue!==G(this,ae)&&(J(this,ae,Ue),c.docStyle.setProperty("--viewer-container-height",`${Ue}px`))}get annotationEditorMode(){return G(this,ce)?G(this,K):n.AnnotationEditorType.DISABLE}set annotationEditorMode(Ue){if(!G(this,ce))throw new Error("The AnnotationEditor is not enabled.");if(G(this,K)!==Ue){if(!q(Ue))throw new Error(`Invalid AnnotationEditor mode: ${Ue}`);this.pdfDocument&&(J(this,K,Ue),this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:Ue}),G(this,ce).updateMode(Ue))}}set annotationEditorParams(Ue){let{type:He,value:Qe}=Ue;if(!G(this,ce))throw new Error("The AnnotationEditor is not enabled.");G(this,ce).updateParams(He,Qe)}refresh(){if(!this.pdfDocument)return;const Ue={};for(const He of this._pages)He.update(Ue);this.update()}}a.BaseViewer=ke;function De($e){const Ue={annotationEditorMode:G(this,K),annotationMode:G(this,de),textLayerMode:this.textLayerMode};return $e&&($e.includes(n.PermissionFlag.COPY)||this.viewer.classList.add(z),$e.includes(n.PermissionFlag.MODIFY_CONTENTS)||(Ue.annotationEditorMode=n.AnnotationEditorType.DISABLE),!$e.includes(n.PermissionFlag.MODIFY_ANNOTATIONS)&&!$e.includes(n.PermissionFlag.FILL_INTERACTIVE_FORMS)&&G(this,de)===n.AnnotationMode.ENABLE_FORMS&&(Ue.annotationMode=n.AnnotationMode.ENABLE)),Ue}function Fe(){if(document.visibilityState==="hidden"||!this.container.offsetParent||this._getVisiblePages().views.length===0)return Promise.resolve();const $e=new Promise(Ue=>{J(this,we,()=>{document.visibilityState==="hidden"&&(Ue(),document.removeEventListener("visibilitychange",G(this,we)),J(this,we,null))}),document.addEventListener("visibilitychange",G(this,we))});return Promise.race([this._onePageRenderedCapability.promise,$e])}function Pe(){if(this._scrollMode!==c.ScrollMode.PAGE)throw new Error("#ensurePageViewVisible: Invalid scrollMode value.");const $e=this._currentPageNumber,Ue=G(this,he),He=this.viewer;if(He.textContent="",Ue.pages.length=0,this._spreadMode===c.SpreadMode.NONE&&!this.isInPresentationMode){const Qe=this._pages[$e-1];He.append(Qe.div),Ue.pages.push(Qe)}else{const Qe=new Set,Ze=this._spreadMode-1;Ze===-1?Qe.add($e-1):$e%2!==Ze?(Qe.add($e-1),Qe.add($e)):(Qe.add($e-2),Qe.add($e-1));const et=document.createElement("div");if(et.className="spread",this.isInPresentationMode){const tt=document.createElement("div");tt.className="dummyPage",et.append(tt)}for(const tt of Qe){const je=this._pages[tt];je&&(et.append(je.div),Ue.pages.push(je))}He.append(et)}Ue.scrollDown=$e>=Ue.previousPageNumber,Ue.previousPageNumber=$e}function qe($e){let Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const{div:He,id:Qe}=$e;if(this._scrollMode===c.ScrollMode.PAGE&&(this._setCurrentPageNumber(Qe),N(this,se,Pe).call(this),this.update()),!Ue&&!this.isInPresentationMode){const Ze=He.offsetLeft+He.clientLeft,et=Ze+He.clientWidth,{scrollLeft:tt,clientWidth:je}=this.container;(this._scrollMode===c.ScrollMode.HORIZONTAL||Zett+je)&&(Ue={left:0,top:0})}(0,c.scrollIntoView)(He,Ue)}function Le($e){return $e===this._currentScale||Math.abs($e-this._currentScale)<1e-15}function Oe(){const $e=this._pages[this._currentPageNumber-1];this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0),N(this,Ie,qe).call(this,$e)}async function Ee($e){if($e.pdfPage)return $e.pdfPage;try{var Ue,He;const Qe=await this.pdfDocument.getPage($e.id);return $e.pdfPage||$e.setPdfPage(Qe),(Ue=(He=this.linkService)._cachedPageNumber)!==null&&Ue!==void 0&&Ue.call(He,Qe.ref)||this.linkService.cachePageRef($e.id,Qe.ref),Qe}catch(Qe){return console.error("Unable to get page for page view",Qe),null}}function Ae($e){var Ue,He;if(((Ue=$e.first)===null||Ue===void 0?void 0:Ue.id)===1)return!0;if(((He=$e.last)===null||He===void 0?void 0:He.id)===this.pagesCount)return!1;switch(this._scrollMode){case c.ScrollMode.PAGE:return G(this,he).scrollDown;case c.ScrollMode.HORIZONTAL:return this.scroll.right}return this.scroll.down}function Ve($e){for(const Ue of $e){const He=this._pages[Ue-1];He==null||He.toggleLoadingIconSpinner(!0)}for(const Ue of G(this,me))$e.has(Ue.id)||Ue.toggleLoadingIconSpinner(!1)}},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.PDFPageView=void 0;var n=g(3),c=g(7),R=g(14),v=g(4),e=g(15);function L(N,G,W){O(N,G),G.set(N,W)}function O(N,G){if(G.has(N))throw new TypeError("Cannot initialize the same private elements twice on an object")}function B(N,G){var W=_(N,G,"get");return P(N,W)}function P(N,G){return G.get?G.get.call(N):G.value}function S(N,G,W){var J=_(N,G,"set");return l(N,J,W),W}function _(N,G,W){if(!G.has(N))throw new TypeError("attempted to "+W+" private field on non-instance");return G.get(N)}function l(N,G,W){if(G.set)G.set.call(N,W);else{if(!G.writable)throw new TypeError("attempted to set read only private field");G.value=W}}const y=R.compatibilityParams.maxCanvasPixels||16777216;var D=new WeakMap,M=new WeakMap;class F{constructor(G){var W,J,Y,V;L(this,D,{writable:!0,value:n.AnnotationMode.ENABLE_FORMS}),L(this,M,{writable:!0,value:{initialOptionalContent:!0,regularAnnotations:!0}});const H=G.container,z=G.defaultViewport;this.id=G.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=G.scale||c.DEFAULT_SCALE,this.viewport=z,this.pdfPageRotate=z.rotation,this._optionalContentConfigPromise=G.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=(W=G.textLayerMode)!==null&&W!==void 0?W:c.TextLayerMode.ENABLE,S(this,D,(J=G.annotationMode)!==null&&J!==void 0?J:n.AnnotationMode.ENABLE_FORMS),this.imageResourcesPath=G.imageResourcesPath||"",this.useOnlyCssZoom=G.useOnlyCssZoom||!1,this.maxCanvasPixels=G.maxCanvasPixels||y,this.pageColors=G.pageColors||null,this.eventBus=G.eventBus,this.renderingQueue=G.renderingQueue,this.textLayerFactory=G.textLayerFactory,this.annotationLayerFactory=G.annotationLayerFactory,this.annotationEditorLayerFactory=G.annotationEditorLayerFactory,this.xfaLayerFactory=G.xfaLayerFactory,this.textHighlighter=(Y=G.textHighlighterFactory)===null||Y===void 0?void 0:Y.createTextHighlighter({pageIndex:this.id-1,eventBus:this.eventBus}),this.structTreeLayerFactory=G.structTreeLayerFactory,this.renderer=G.renderer||c.RendererType.CANVAS,this.l10n=G.l10n||v.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=c.RenderingStates.INITIAL,this.resume=null,this._renderError=null,this._isStandalone=!((V=this.renderingQueue)!==null&&V!==void 0&&V.hasViewer()),this._annotationCanvasMap=null,this.annotationLayer=null,this.annotationEditorLayer=null,this.textLayer=null,this.zoomLayer=null,this.xfaLayer=null,this.structTreeLayer=null;const X=document.createElement("div");if(X.className="page",X.style.width=Math.floor(this.viewport.width)+"px",X.style.height=Math.floor(this.viewport.height)+"px",X.setAttribute("data-page-number",this.id),X.setAttribute("role","region"),this.l10n.get("page_landmark",{page:this.id}).then(q=>{X.setAttribute("aria-label",q)}),this.div=X,H==null||H.append(X),this._isStandalone){const{optionalContentConfigPromise:q}=G;q&&q.then($=>{q===this._optionalContentConfigPromise&&(B(this,M).initialOptionalContent=$.hasInitialVisibility)})}}setPdfPage(G){this.pdfPage=G,this.pdfPageRotate=G.rotate;const W=(this.rotation+this.pdfPageRotate)%360;this.viewport=G.getViewport({scale:this.scale*n.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:W}),this.reset()}destroy(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}async _renderAnnotationLayer(){let G=null;try{await this.annotationLayer.render(this.viewport,"display")}catch(W){console.error(`_renderAnnotationLayer: "${W}".`),G=W}finally{this.eventBus.dispatch("annotationlayerrendered",{source:this,pageNumber:this.id,error:G})}}async _renderAnnotationEditorLayer(){let G=null;try{await this.annotationEditorLayer.render(this.viewport,"display")}catch(W){console.error(`_renderAnnotationEditorLayer: "${W}".`),G=W}finally{this.eventBus.dispatch("annotationeditorlayerrendered",{source:this,pageNumber:this.id,error:G})}}async _renderXfaLayer(){let G=null;try{const W=await this.xfaLayer.render(this.viewport,"display");this.textHighlighter&&this._buildXfaTextContentItems(W.textDivs)}catch(W){console.error(`_renderXfaLayer: "${W}".`),G=W}finally{this.eventBus.dispatch("xfalayerrendered",{source:this,pageNumber:this.id,error:G})}}async _buildXfaTextContentItems(G){const W=await this.pdfPage.getTextContent(),J=[];for(const Y of W.items)J.push(Y.str);this.textHighlighter.setTextMapping(G,J),this.textHighlighter.enable()}_resetZoomLayer(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.zoomLayer)return;const W=this.zoomLayer.firstChild;this.paintedViewportMap.delete(W),W.width=0,W.height=0,G&&this.zoomLayer.remove(),this.zoomLayer=null}reset(){var G,W,J;let{keepZoomLayer:Y=!1,keepAnnotationLayer:V=!1,keepAnnotationEditorLayer:H=!1,keepXfaLayer:z=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.cancelRendering({keepAnnotationLayer:V,keepAnnotationEditorLayer:H,keepXfaLayer:z}),this.renderingState=c.RenderingStates.INITIAL;const X=this.div;X.style.width=Math.floor(this.viewport.width)+"px",X.style.height=Math.floor(this.viewport.height)+"px";const q=X.childNodes,$=Y&&this.zoomLayer||null,fe=V&&((G=this.annotationLayer)===null||G===void 0?void 0:G.div)||null,Q=H&&((W=this.annotationEditorLayer)===null||W===void 0?void 0:W.div)||null,ie=z&&((J=this.xfaLayer)===null||J===void 0?void 0:J.div)||null;for(let me=q.length-1;me>=0;me--){const K=q[me];switch(K){case $:case fe:case Q:case ie:continue}K.remove()}if(X.removeAttribute("data-loaded"),fe&&this.annotationLayer.hide(),Q)this.annotationEditorLayer.hide();else{var Te;(Te=this.annotationEditorLayer)===null||Te===void 0||Te.destroy()}ie&&this.xfaLayer.hide(),$||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon notVisible",this._isStandalone&&this.toggleLoadingIconSpinner(!0),this.loadingIconDiv.setAttribute("role","img"),this.l10n.get("loading").then(me=>{var K;(K=this.loadingIconDiv)===null||K===void 0||K.setAttribute("aria-label",me)}),X.append(this.loadingIconDiv)}update(G){let{scale:W=0,rotation:J=null,optionalContentConfigPromise:Y=null}=G;this.scale=W||this.scale,typeof J=="number"&&(this.rotation=J),Y instanceof Promise&&(this._optionalContentConfigPromise=Y,Y.then(z=>{Y===this._optionalContentConfigPromise&&(B(this,M).initialOptionalContent=z.hasInitialVisibility)}));const V=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*n.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:V}),this._isStandalone&&c.docStyle.setProperty("--scale-factor",this.viewport.scale),this.svg){this.cssTransform({target:this.svg,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0}),this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});return}let H=!1;if(this.canvas&&this.maxCanvasPixels>0){const z=this.outputScale;(Math.floor(this.viewport.width)*z.sx|0)*(Math.floor(this.viewport.height)*z.sy|0)>this.maxCanvasPixels&&(H=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&H){this.cssTransform({target:this.canvas,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0}),this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});return}!this.zoomLayer&&!this.canvas.hidden&&(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform({target:this.zoomLayer.firstChild}),this.reset({keepZoomLayer:!0,keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0})}cancelRendering(){let{keepAnnotationLayer:G=!1,keepAnnotationEditorLayer:W=!1,keepXfaLayer:J=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),this.annotationLayer&&(!G||!this.annotationLayer.div)&&(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),this.annotationEditorLayer&&(!W||!this.annotationEditorLayer.div)&&(this.annotationEditorLayer.cancel(),this.annotationEditorLayer=null),this.xfaLayer&&(!J||!this.xfaLayer.div)){var Y;this.xfaLayer.cancel(),this.xfaLayer=null,(Y=this.textHighlighter)===null||Y===void 0||Y.disable()}this._onTextLayerRendered&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null)}cssTransform(G){let{target:W,redrawAnnotationLayer:J=!1,redrawAnnotationEditorLayer:Y=!1,redrawXfaLayer:V=!1}=G;const H=this.viewport.width,z=this.viewport.height,X=this.div;W.style.width=W.parentNode.style.width=X.style.width=Math.floor(H)+"px",W.style.height=W.parentNode.style.height=X.style.height=Math.floor(z)+"px";const q=this.viewport.rotation-this.paintedViewportMap.get(W).rotation,$=Math.abs(q);let fe=1,Q=1;if(($===90||$===270)&&(fe=z/H,Q=H/z),W.style.transform=`rotate(${q}deg) scale(${fe}, ${Q})`,this.textLayer){const ie=this.textLayer.viewport,Te=this.viewport.rotation-ie.rotation,me=Math.abs(Te);let K=H/ie.width;(me===90||me===270)&&(K=H/ie.height);const ce=this.textLayer.textLayerDiv;let de,Z;switch(me){case 0:de=Z=0;break;case 90:de=0,Z="-"+ce.style.height;break;case 180:de="-"+ce.style.width,Z="-"+ce.style.height;break;case 270:de="-"+ce.style.width,Z=0;break;default:console.error("Bad rotation value.");break}ce.style.transform=`rotate(${me}deg) scale(${K}) translate(${de}, ${Z})`,ce.style.transformOrigin="0% 0%"}J&&this.annotationLayer&&this._renderAnnotationLayer(),Y&&this.annotationEditorLayer&&this._renderAnnotationEditorLayer(),V&&this.xfaLayer&&this._renderXfaLayer()}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(G,W){return this.viewport.convertToPdfPoint(G,W)}toggleLoadingIconSpinner(){var G;let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;(G=this.loadingIconDiv)===null||G===void 0||G.classList.toggle("notVisible",!W)}draw(){var G,W,J,Y=this;this.renderingState!==c.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:V,pdfPage:H}=this;if(!H)return this.renderingState=c.RenderingStates.FINISHED,this.loadingIconDiv&&(this.loadingIconDiv.remove(),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=c.RenderingStates.RUNNING;const z=document.createElement("div");z.style.width=V.style.width,z.style.height=V.style.height,z.classList.add("canvasWrapper");const X=((G=this.annotationLayer)===null||G===void 0?void 0:G.div)||((W=this.annotationEditorLayer)===null||W===void 0?void 0:W.div);X?X.before(z):V.append(z);let q=null;if(this.textLayerMode!==c.TextLayerMode.DISABLE&&this.textLayerFactory){this._accessibilityManager||(this._accessibilityManager=new e.TextAccessibilityManager);const Te=document.createElement("div");Te.className="textLayer",Te.style.width=z.style.width,Te.style.height=z.style.height,X?X.before(Te):V.append(Te),q=this.textLayerFactory.createTextLayerBuilder({textLayerDiv:Te,pageIndex:this.id-1,viewport:this.viewport,enhanceTextSelection:this.textLayerMode===c.TextLayerMode.ENABLE_ENHANCE,eventBus:this.eventBus,highlighter:this.textHighlighter,accessibilityManager:this._accessibilityManager})}this.textLayer=q,B(this,D)!==n.AnnotationMode.DISABLE&&this.annotationLayerFactory&&(this._annotationCanvasMap||(this._annotationCanvasMap=new Map),this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder({pageDiv:V,pdfPage:H,imageResourcesPath:this.imageResourcesPath,renderForms:B(this,D)===n.AnnotationMode.ENABLE_FORMS,l10n:this.l10n,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager}))),(J=this.xfaLayer)!==null&&J!==void 0&&J.div&&V.append(this.xfaLayer.div);let $=null;this.renderingQueue&&($=Te=>{if(!this.renderingQueue.isHighestPriority(this)){this.renderingState=c.RenderingStates.PAUSED,this.resume=()=>{this.renderingState=c.RenderingStates.RUNNING,Te()};return}Te()});const fe=async function(){let Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(Q===Y.paintTask&&(Y.paintTask=null),Te instanceof n.RenderingCancelledException){Y._renderError=null;return}if(Y._renderError=Te,Y.renderingState=c.RenderingStates.FINISHED,Y.loadingIconDiv&&(Y.loadingIconDiv.remove(),delete Y.loadingIconDiv),Y._resetZoomLayer(!0),B(Y,M).regularAnnotations=!Q.separateAnnots,Y.eventBus.dispatch("pagerendered",{source:Y,pageNumber:Y.id,cssTransform:!1,timestamp:performance.now(),error:Y._renderError}),Te)throw Te},Q=this.renderer===c.RendererType.SVG?this.paintOnSvg(z):this.paintOnCanvas(z);Q.onRenderContinue=$,this.paintTask=Q;const ie=Q.promise.then(()=>fe(null).then(()=>{if(q){const Te=H.streamTextContent({includeMarkedContent:!0});q.setTextContentStream(Te),q.render()}this.annotationLayer&&this._renderAnnotationLayer().then(()=>{this.annotationEditorLayerFactory&&(this.annotationEditorLayer||(this.annotationEditorLayer=this.annotationEditorLayerFactory.createAnnotationEditorLayerBuilder({pageDiv:V,pdfPage:H,l10n:this.l10n,accessibilityManager:this._accessibilityManager})),this._renderAnnotationEditorLayer())})}),function(Te){return fe(Te)});return this.xfaLayerFactory&&(this.xfaLayer||(this.xfaLayer=this.xfaLayerFactory.createXfaLayerBuilder({pageDiv:V,pdfPage:H})),this._renderXfaLayer()),this.structTreeLayerFactory&&this.textLayer&&this.canvas&&(this._onTextLayerRendered=Te=>{Te.pageNumber===this.id&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null,this.canvas&&this.pdfPage.getStructTree().then(me=>{if(!me||!this.canvas)return;const K=this.structTreeLayer.render(me);K.classList.add("structTree"),this.canvas.append(K)}))},this.eventBus._on("textlayerrendered",this._onTextLayerRendered),this.structTreeLayer=this.structTreeLayerFactory.createStructTreeLayerBuilder({pdfPage:H})),V.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),ie}paintOnCanvas(G){const W=(0,n.createPromiseCapability)(),J={promise:W.promise,onRenderContinue(me){me()},cancel(){Te.cancel()},get separateAnnots(){return Te.separateAnnots}},Y=this.viewport,V=document.createElement("canvas");V.setAttribute("role","presentation"),V.hidden=!0;let H=!0;const z=function(){H&&(V.hidden=!1,H=!1)};G.append(V),this.canvas=V;const X=V.getContext("2d",{alpha:!1}),q=this.outputScale=new c.OutputScale;if(this.useOnlyCssZoom){const me=Y.clone({scale:n.PixelsPerInch.PDF_TO_CSS_UNITS});q.sx*=me.width/Y.width,q.sy*=me.height/Y.height}if(this.maxCanvasPixels>0){const me=Y.width*Y.height,K=Math.sqrt(this.maxCanvasPixels/me);q.sx>K||q.sy>K?(q.sx=K,q.sy=K,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}const $=(0,c.approximateFraction)(q.sx),fe=(0,c.approximateFraction)(q.sy);V.width=(0,c.roundToDivide)(Y.width*q.sx,$[0]),V.height=(0,c.roundToDivide)(Y.height*q.sy,fe[0]),V.style.width=(0,c.roundToDivide)(Y.width,$[1])+"px",V.style.height=(0,c.roundToDivide)(Y.height,fe[1])+"px",this.paintedViewportMap.set(V,Y);const Q=q.scaled?[q.sx,0,0,q.sy,0,0]:null,ie={canvasContext:X,transform:Q,viewport:this.viewport,annotationMode:B(this,D),optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:this.pageColors},Te=this.pdfPage.render(ie);return Te.onContinue=function(me){z(),J.onRenderContinue?J.onRenderContinue(me):me()},Te.promise.then(function(){z(),W.resolve()},function(me){z(),W.reject(me)}),J}paintOnSvg(G){let W=!1;const J=()=>{if(W)throw new n.RenderingCancelledException(`Rendering cancelled, page ${this.id}`,"svg")},Y=this.pdfPage,V=this.viewport.clone({scale:n.PixelsPerInch.PDF_TO_CSS_UNITS});return{promise:Y.getOperatorList({annotationMode:B(this,D)}).then(z=>(J(),new n.SVGGraphics(Y.commonObjs,Y.objs).getSVG(z,V).then(q=>{J(),this.svg=q,this.paintedViewportMap.set(q,V),q.style.width=G.style.width,q.style.height=G.style.height,this.renderingState=c.RenderingStates.FINISHED,G.append(q)}))),onRenderContinue(z){z()},cancel(){W=!0},get separateAnnots(){return!1}}}setPageLabel(G){this.pageLabel=typeof G=="string"?G:null,this.pageLabel!==null?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}get thumbnailCanvas(){const{initialOptionalContent:G,regularAnnotations:W}=B(this,M);return G&&W?this.canvas:null}}a.PDFPageView=F},(x,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.compatibilityParams=a.OptionKind=a.AppOptions=void 0;const g=Object.create(null);a.compatibilityParams=g;{const e=navigator.userAgent||"",L=navigator.platform||"",O=navigator.maxTouchPoints||1,B=/Android/.test(e),P=/\b(iPad|iPhone|iPod)(?=;)/.test(e)||L==="MacIntel"&&O>1;(function(){(P||B)&&(g.maxCanvasPixels=5242880)})()}const n={VIEWER:2,API:4,WORKER:8,PREFERENCE:128};a.OptionKind=n;const c={annotationEditorMode:{value:-1,kind:n.VIEWER+n.PREFERENCE},annotationMode:{value:2,kind:n.VIEWER+n.PREFERENCE},cursorToolOnLoad:{value:0,kind:n.VIEWER+n.PREFERENCE},defaultZoomValue:{value:"",kind:n.VIEWER+n.PREFERENCE},disableHistory:{value:!1,kind:n.VIEWER},disablePageLabels:{value:!1,kind:n.VIEWER+n.PREFERENCE},enablePermissions:{value:!1,kind:n.VIEWER+n.PREFERENCE},enablePrintAutoRotate:{value:!0,kind:n.VIEWER+n.PREFERENCE},enableScripting:{value:!0,kind:n.VIEWER+n.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:n.VIEWER},externalLinkTarget:{value:0,kind:n.VIEWER+n.PREFERENCE},historyUpdateUrl:{value:!1,kind:n.VIEWER+n.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:n.VIEWER+n.PREFERENCE},imageResourcesPath:{value:"./images/",kind:n.VIEWER},maxCanvasPixels:{value:16777216,kind:n.VIEWER},forcePageColors:{value:!1,kind:n.VIEWER+n.PREFERENCE},pageColorsBackground:{value:"Canvas",kind:n.VIEWER+n.PREFERENCE},pageColorsForeground:{value:"CanvasText",kind:n.VIEWER+n.PREFERENCE},pdfBugEnabled:{value:!1,kind:n.VIEWER+n.PREFERENCE},printResolution:{value:150,kind:n.VIEWER},sidebarViewOnLoad:{value:-1,kind:n.VIEWER+n.PREFERENCE},scrollModeOnLoad:{value:-1,kind:n.VIEWER+n.PREFERENCE},spreadModeOnLoad:{value:-1,kind:n.VIEWER+n.PREFERENCE},textLayerMode:{value:1,kind:n.VIEWER+n.PREFERENCE},useOnlyCssZoom:{value:!1,kind:n.VIEWER+n.PREFERENCE},viewerCssTheme:{value:0,kind:n.VIEWER+n.PREFERENCE},viewOnLoad:{value:0,kind:n.VIEWER+n.PREFERENCE},cMapPacked:{value:!0,kind:n.API},cMapUrl:{value:"../web/cmaps/",kind:n.API},disableAutoFetch:{value:!1,kind:n.API+n.PREFERENCE},disableFontFace:{value:!1,kind:n.API+n.PREFERENCE},disableRange:{value:!1,kind:n.API+n.PREFERENCE},disableStream:{value:!1,kind:n.API+n.PREFERENCE},docBaseUrl:{value:"",kind:n.API},enableXfa:{value:!0,kind:n.API+n.PREFERENCE},fontExtraProperties:{value:!1,kind:n.API},isEvalSupported:{value:!0,kind:n.API},maxImageSize:{value:-1,kind:n.API},pdfBug:{value:!1,kind:n.API},standardFontDataUrl:{value:"../web/standard_fonts/",kind:n.API},verbosity:{value:1,kind:n.API},workerPort:{value:null,kind:n.WORKER},workerSrc:{value:"../build/pdf.worker.js",kind:n.WORKER}};c.defaultUrl={value:"compressed.tracemonkey-pldi-09.pdf",kind:n.VIEWER},c.disablePreferences={value:!1,kind:n.VIEWER},c.locale={value:navigator.language||"en-US",kind:n.VIEWER},c.renderer={value:"canvas",kind:n.VIEWER+n.PREFERENCE},c.sandboxBundleSrc={value:"../build/pdf.sandbox.js",kind:n.VIEWER};const R=Object.create(null);class v{constructor(){throw new Error("Cannot initialize AppOptions.")}static get(L){const O=R[L];if(O!==void 0)return O;const B=c[L];if(B!==void 0){var P;return(P=g[L])!==null&&P!==void 0?P:B.value}}static getAll(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;const O=Object.create(null);for(const P in c){var B;const S=c[P];if(L){if(!(L&S.kind))continue;if(L===n.PREFERENCE){const l=S.value,y=typeof l;if(y==="boolean"||y==="string"||y==="number"&&Number.isInteger(l)){O[P]=l;continue}throw new Error(`Invalid type for preference: ${P}`)}}const _=R[P];O[P]=_!==void 0?_:(B=g[P])!==null&&B!==void 0?B:S.value}return O}static set(L,O){R[L]=O}static setAll(L){for(const O in L)R[O]=L[O]}static remove(L){delete R[L]}static _hasUserOptions(){return Object.keys(R).length>0}}a.AppOptions=v},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.TextAccessibilityManager=void 0;var n=g(7);function c(Y,V){v(Y,V),V.add(Y)}function R(Y,V,H){v(Y,V),V.set(Y,H)}function v(Y,V){if(V.has(Y))throw new TypeError("Cannot initialize the same private elements twice on an object")}function e(Y,V,H){if(!V.has(Y))throw new TypeError("attempted to get private field on non-instance");return H}function L(Y,V,H){return O(Y,V),H}function O(Y,V){if(Y!==V)throw new TypeError("Private static access of wrong provenance")}function B(Y,V){var H=_(Y,V,"get");return P(Y,H)}function P(Y,V){return V.get?V.get.call(Y):V.value}function S(Y,V,H){var z=_(Y,V,"set");return l(Y,z,H),H}function _(Y,V,H){if(!V.has(Y))throw new TypeError("attempted to "+H+" private field on non-instance");return V.get(Y)}function l(Y,V,H){if(V.set)V.set.call(Y,H);else{if(!V.writable)throw new TypeError("attempted to set read only private field");V.value=H}}var y=new WeakMap,D=new WeakMap,M=new WeakMap,F=new WeakMap,N=new WeakSet;class G{constructor(){c(this,N),R(this,y,{writable:!0,value:!1}),R(this,D,{writable:!0,value:null}),R(this,M,{writable:!0,value:new Map}),R(this,F,{writable:!0,value:new Map})}setTextMapping(V){S(this,D,V)}enable(){if(B(this,y))throw new Error("TextAccessibilityManager is already enabled.");if(!B(this,D))throw new Error("Text divs and strings have not been set.");if(S(this,y,!0),S(this,D,B(this,D).slice()),B(this,D).sort(L(G,G,W)),B(this,M).size>0){const V=B(this,D);for(const[H,z]of B(this,M)){if(!document.getElementById(H)){B(this,M).delete(H);continue}e(this,N,J).call(this,H,V[z])}}for(const[V,H]of B(this,F))this.addPointerInTextLayer(V,H);B(this,F).clear()}disable(){B(this,y)&&(B(this,F).clear(),S(this,D,null),S(this,y,!1))}removePointerInTextLayer(V){var H;if(!B(this,y)){B(this,F).delete(V);return}const z=B(this,D);if(!z||z.length===0)return;const{id:X}=V,q=B(this,M).get(X);if(q===void 0)return;const $=z[q];B(this,M).delete(X);let fe=$.getAttribute("aria-owns");(H=fe)!==null&&H!==void 0&&H.includes(X)&&(fe=fe.split(" ").filter(Q=>Q!==X).join(" "),fe?$.setAttribute("aria-owns",fe):($.removeAttribute("aria-owns"),$.setAttribute("role","presentation")))}addPointerInTextLayer(V,H){const{id:z}=V;if(!z)return;if(!B(this,y)){B(this,F).set(V,H);return}H&&this.removePointerInTextLayer(V);const X=B(this,D);if(!X||X.length===0)return;const q=(0,n.binarySearchFirstItem)(X,fe=>L(G,G,W).call(G,V,fe)<0),$=Math.max(0,q-1);e(this,N,J).call(this,z,X[$]),B(this,M).set(z,$)}moveElementInDOM(V,H,z,X){if(this.addPointerInTextLayer(z,X),!V.hasChildNodes()){V.append(H);return}const q=Array.from(V.childNodes).filter(Q=>Q!==H);if(q.length===0)return;const $=z||H,fe=(0,n.binarySearchFirstItem)(q,Q=>L(G,G,W).call(G,$,Q)<0);fe===0?q[0].before(H):q[fe-1].after(H)}}a.TextAccessibilityManager=G;function W(Y,V){const H=Y.getBoundingClientRect(),z=V.getBoundingClientRect();if(H.width===0&&H.height===0)return 1;if(z.width===0&&z.height===0)return-1;const X=H.y,q=H.y+H.height,$=H.y+H.height/2,fe=z.y,Q=z.y+z.height,ie=z.y+z.height/2;if($<=fe&&ie>=q)return-1;if(ie<=X&&$>=Q)return 1;const Te=H.x+H.width/2,me=z.x+z.width/2;return Te-me}function J(Y,V){const H=V.getAttribute("aria-owns");H!=null&&H.includes(Y)||V.setAttribute("aria-owns",H?`${H} ${Y}`:Y),V.removeAttribute("role")}},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.PDFRenderingQueue=void 0;var n=g(3),c=g(7);const R=3e4;class v{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(L){this.pdfViewer=L}setThumbnailViewer(L){this.pdfThumbnailViewer=L}isHighestPriority(L){return this.highestPriorityPage===L.renderingId}hasViewer(){return!!this.pdfViewer}renderHighestPriority(L){var O;this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),!this.pdfViewer.forceRendering(L)&&(this.isThumbnailViewEnabled&&(O=this.pdfThumbnailViewer)!==null&&O!==void 0&&O.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),R)))}getHighestPriority(L,O,B){let P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const S=L.views,_=S.length;if(_===0)return null;for(let F=0;F<_;F++){const N=S[F].view;if(!this.isViewFinished(N))return N}const l=L.first.id,y=L.last.id;if(y-l+1>_){const F=L.ids;for(let N=1,G=y-l;N{this.renderHighestPriority()}).catch(O=>{O instanceof n.RenderingCancelledException||console.error(`renderView: "${O}"`)});break}return!0}}a.PDFRenderingQueue=v},(x,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.TextHighlighter=void 0;class g{constructor(c){let{findController:R,eventBus:v,pageIndex:e}=c;this.findController=R,this.matches=[],this.eventBus=v,this.pageIdx=e,this._onUpdateTextLayerMatches=null,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping(c,R){this.textDivs=c,this.textContentItemsStr=R}enable(){if(!this.textDivs||!this.textContentItemsStr)throw new Error("Text divs and strings have not been set.");if(this.enabled)throw new Error("TextHighlighter is already enabled.");this.enabled=!0,this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=c=>{(c.pageIndex===this.pageIdx||c.pageIndex===-1)&&this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches)),this._updateMatches()}disable(){this.enabled&&(this.enabled=!1,this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null))}_convertMatches(c,R){if(!c)return[];const{textContentItemsStr:v}=this;let e=0,L=0;const O=v.length-1,B=[];for(let P=0,S=c.length;P=L+v[e].length;)L+=v[e].length,e++;e===v.length&&console.error("Could not find a matching mapping");const l={begin:{divIdx:e,offset:_-L}};for(_+=R[P];e!==O&&_>L+v[e].length;)L+=v[e].length,e++;l.end={divIdx:e,offset:_-L},B.push(l)}return B}_renderMatches(c){if(c.length===0)return;const{findController:R,pageIdx:v}=this,{textContentItemsStr:e,textDivs:L}=this,O=v===R.selected.pageIdx,B=R.selected.matchIdx,P=R.state.highlightAll;let S=null;const _={divIdx:-1,offset:void 0};function l(F,N){const G=F.divIdx;return L[G].textContent="",y(G,0,F.offset,N)}function y(F,N,G,W){let J=L[F];if(J.nodeType===Node.TEXT_NODE){const H=document.createElement("span");J.before(H),H.append(J),L[F]=H,J=H}const Y=e[F].substring(N,G),V=document.createTextNode(Y);if(W){const H=document.createElement("span");return H.className=`${W} appended`,H.append(V),J.append(H),W.includes("selected")?H.offsetLeft:0}return J.append(V),0}let D=B,M=D+1;if(P)D=0,M=c.length;else if(!O)return;for(let F=D;F{Object.defineProperty(a,"__esModule",{value:!0}),a.DownloadManager=void 0;var n=g(3);function c(v,e){const L=document.createElement("a");if(!L.click)throw new Error('DownloadManager: "a.click()" is not supported.');L.href=v,L.target="_parent","download"in L&&(L.download=e),(document.body||document.documentElement).append(L),L.click(),L.remove()}class R{constructor(){this._openBlobUrls=new WeakMap}downloadUrl(e,L){if(!(0,n.createValidAbsoluteUrl)(e,"http://example.com")){console.error(`downloadUrl - not a valid URL: ${e}`);return}c(e+"#pdfjs.action=download",L)}downloadData(e,L,O){const B=URL.createObjectURL(new Blob([e],{type:O}));c(B,L)}openOrDownloadData(e,L,O){const B=(0,n.isPdfFile)(O),P=B?"application/pdf":"";if(B){let S=this._openBlobUrls.get(e);S||(S=URL.createObjectURL(new Blob([L],{type:P})),this._openBlobUrls.set(e,S));let _;_="?file="+encodeURIComponent(S+"#"+O);try{return window.open(_),!0}catch(l){console.error(`openOrDownloadData: ${l}`),URL.revokeObjectURL(S),this._openBlobUrls.delete(e)}}return this.downloadData(L,O,P),!1}download(e,L,O){const B=URL.createObjectURL(e);c(B,O)}}a.DownloadManager=R},(x,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.WaitOnType=a.EventBus=a.AutomationEventBus=void 0,a.waitOnEventOrTimeout=n;const g={EVENT:"event",TIMEOUT:"timeout"};a.WaitOnType=g;function n(v){let{target:e,name:L,delay:O=0}=v;return new Promise(function(B,P){if(typeof e!="object"||!(L&&typeof L=="string")||!(Number.isInteger(O)&&O>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function S(D){e instanceof c?e._off(L,_):e.removeEventListener(L,_),y&&clearTimeout(y),B(D)}const _=S.bind(null,g.EVENT);e instanceof c?e._on(L,_):e.addEventListener(L,_);const l=S.bind(null,g.TIMEOUT),y=setTimeout(l,O)})}class c{constructor(){this._listeners=Object.create(null)}on(e,L){let O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this._on(e,L,{external:!0,once:O==null?void 0:O.once})}off(e,L){let O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this._off(e,L,{external:!0,once:O==null?void 0:O.once})}dispatch(e,L){const O=this._listeners[e];if(!O||O.length===0)return;let B;for(const{listener:P,external:S,once:_}of O.slice(0)){if(_&&this._off(e,P),S){(B||(B=[])).push(P);continue}P(L)}if(B){for(const P of B)P(L);B=null}}_on(e,L){var O;let B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;((O=this._listeners)[e]||(O[e]=[])).push({listener:L,external:(B==null?void 0:B.external)===!0,once:(B==null?void 0:B.once)===!0})}_off(e,L){const O=this._listeners[e];if(O){for(let B=0,P=O.length;B{Object.defineProperty(a,"__esModule",{value:!0}),a.GenericL10n=void 0,g(21);var n=g(4);const c=document.webL10n;class R{constructor(e){this._lang=e,this._ready=new Promise((L,O)=>{c.setLanguage((0,n.fixupLangCode)(e),()=>{L(c)})})}async getLanguage(){return(await this._ready).getLanguage()}async getDirection(){return(await this._ready).getDirection()}async get(e){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:(0,n.getL10nFallback)(e,L);return(await this._ready).get(e,L,O)}async translate(e){return(await this._ready).translate(e)}}a.GenericL10n=R},()=>{document.webL10n=function(x,a,g){var n={},c="",R="textContent",v="",e={},L="loading",O=!0;function B(){return a.querySelectorAll('link[type="application/l10n"]')}function P(){var H=a.querySelector('script[type="application/l10n"]');return H?JSON.parse(H.innerHTML):null}function S(H){return H?H.querySelectorAll("*[data-l10n-id]"):[]}function _(H){if(!H)return{};var z=H.getAttribute("data-l10n-id"),X=H.getAttribute("data-l10n-args"),q={};if(X)try{q=JSON.parse(X)}catch{console.warn("could not parse arguments for #"+z)}return{id:z,args:q}}function l(H,z,X){z=z||function(fe){},X=X||function(){};var q=new XMLHttpRequest;q.open("GET",H,O),q.overrideMimeType&&q.overrideMimeType("text/plain; charset=utf-8"),q.onreadystatechange=function(){q.readyState==4&&(q.status==200||q.status===0?z(q.responseText):X())},q.onerror=X,q.ontimeout=X;try{q.send(null)}catch{X()}}function y(H,z,X,q){var $=H.replace(/[^\/]*$/,"")||"./";function fe(ie){return ie.lastIndexOf("\\")<0?ie:ie.replace(/\\\\/g,"\\").replace(/\\n/g,` `).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}function Q(ie,Te){var me={},K=/^\s*|\s*$/,ce=/^\s*#|^\s*$/,de=/^\s*\[(.*)\]\s*$/,Z=/^\s*@import\s+url\((.*)\)\s*$/i,ae=/^([^=\s]*)\s*=\s*(.+)$/;function he(_e,ye,se){var Ie=_e.replace(K,"").split(/[\r\n]+/),Ce="*",oe=z.split("-",1)[0],pe=!1,xe="";function Ne(){for(;;){if(!Ie.length){se();return}var ke=Ie.shift();if(!ce.test(ke)){if(ye){if(xe=de.exec(ke),xe){Ce=xe[1].toLowerCase(),pe=Ce!=="*"&&Ce!==z&&Ce!==oe;continue}else if(pe)continue;if(xe=Z.exec(ke),xe){we($+xe[1],Ne);return}}var De=ke.match(ae);De&&De.length==3&&(me[De[1]]=fe(De[2]))}}}Ne()}function we(_e,ye){l(_e,function(se){he(se,!1,ye)},function(){console.warn(_e+" not found."),ye()})}he(ie,!0,function(){Te(me)})}l(H,function(ie){c+=ie,Q(ie,function(Te){for(var me in Te){var K,ce,de=me.lastIndexOf(".");de>0?(K=me.substring(0,de),ce=me.substring(de+1)):(K=me,ce=R),n[K]||(n[K]={}),n[K][ce]=Te[me]}X&&X()})},q)}function D(H,z){H&&(H=H.toLowerCase()),z=z||function(){},M(),v=H;var X=B(),q=X.length;if(q===0){var $=P();if($&&$.locales&&$.default_locale){if(console.log("using the embedded JSON directory, early way out"),n=$.locales[H],!n){var fe=$.default_locale.toLowerCase();for(var Q in $.locales)if(Q=Q.toLowerCase(),Q===H){n=$.locales[H];break}else Q===fe&&(n=$.locales[fe])}z()}else console.log("no resource to load, early way out");L="complete";return}var ie=null,Te=0;ie=function(){Te++,Te>=q&&(z(),L="complete")};function me(de){var Z=de.href;this.load=function(ae,he){y(Z,ae,he,function(){console.warn(Z+" not found."),console.warn('"'+ae+'" resource not found'),v="",he()})}}for(var K=0;K0&&($=H.substring(q+1),H=H.substring(0,q));var fe;X&&(fe={},fe[$]=X);var Q=N(H,z,fe);return Q&&$ in Q?Q[$]:"{{"+H+"}}"},getData:function(){return n},getText:function(){return c},getLanguage:function(){return v},setLanguage:function(H,z){D(H,function(){z&&z()})},getDirection:function(){var H=["ar","he","fa","ps","ur"],z=v.split("-",1)[0];return H.indexOf(z)>=0?"rtl":"ltr"},translate:V,getReadyState:function(){return L},ready:function(H){if(H)L=="complete"||L=="interactive"?x.setTimeout(function(){H()}):a.addEventListener&&a.addEventListener("localized",function z(){a.removeEventListener("localized",z),H()});else return}}}(window,document)},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.PDFFindController=a.FindState=void 0;var n=g(7),c=g(3),R=g(23);function v(at,ot,Xe){L(at,ot),ot.set(at,Xe)}function e(at,ot){L(at,ot),ot.add(at)}function L(at,ot){if(ot.has(at))throw new TypeError("Cannot initialize the same private elements twice on an object")}function O(at,ot){var Xe=B(at,ot,"get");return P(at,Xe)}function B(at,ot,Xe){if(!ot.has(at))throw new TypeError("attempted to "+Xe+" private field on non-instance");return ot.get(at)}function P(at,ot){return ot.get?ot.get.call(at):ot.value}function S(at,ot,Xe){if(!ot.has(at))throw new TypeError("attempted to get private field on non-instance");return Xe}const _={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};a.FindState=_;const l=250,y=-50,D=-400,M={"‐":"-","‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},F=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956]),N=[...F.values()].map(at=>String.fromCharCode(at)).join(""),G=/\p{M}+/gu,W=/([.*+?^${}()|[\]\\])|(\p{P})|(\s+)|(\p{M})|(\p{L})/gu,J=/([^\p{M}])\p{M}*$/u,Y=/^\p{M}*([^\p{M}])/u,V=/[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g,H=new Map,z="[\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f]";let X=null,q=null;function $(at){const ot=[];let Xe;for(;(Xe=V.exec(at))!==null;){let{index:dt}=Xe;for(const Nt of Xe[0]){let kt=H.get(Nt);kt||(kt=Nt.normalize("NFD").length,H.set(Nt,kt)),ot.push([kt,dt++])}}let ze;if(ot.length===0&&X)ze=X;else if(ot.length>0&&q)ze=q;else{const Nt=`([${Object.keys(M).join("")}])|(\\p{M}+(?:-\\n)?)|(\\S-\\n)|(\\n)`;ot.length===0?ze=X=new RegExp(Nt+"|(\\u0000)","gum"):ze=q=new RegExp(Nt+`|(${z})`,"gum")}const Ye=[];for(;(Xe=G.exec(at))!==null;)Ye.push([Xe[0].length,Xe.index]);let st=at.normalize("NFD");const _t=[[0,0]];let ft=0,Ct=0,ut=0,rt=0,mt=0,Ot=!1;return st=st.replace(ze,(dt,Nt,kt,Ut,Ht,Kt,qt)=>{var pn;if(qt-=rt,Nt){const xt=M[dt],Rt=xt.length;for(let At=1;Atft[0]>=ze);at[st][0]>ze&&--st;let _t=(0,n.binarySearchFirstItem)(at,ft=>ft[0]>=Ye,st);return at[_t][0]>Ye&&--_t,[ze+at[st][1],Xe+at[_t][1]-at[st][1]]}var Q=new WeakSet,ie=new WeakSet,Te=new WeakMap,me=new WeakSet,K=new WeakSet,ce=new WeakSet,de=new WeakSet,Z=new WeakSet,ae=new WeakSet,he=new WeakSet,we=new WeakSet,_e=new WeakSet,ye=new WeakSet,se=new WeakSet,Ie=new WeakSet,Ce=new WeakSet,oe=new WeakSet,pe=new WeakSet,xe=new WeakSet,Ne=new WeakSet;class ke{constructor(ot){let{linkService:Xe,eventBus:ze}=ot;e(this,Ne),e(this,xe),e(this,pe),e(this,oe),e(this,Ce),e(this,Ie),e(this,se),e(this,ye),e(this,_e),e(this,we),e(this,he),e(this,ae),e(this,Z),e(this,de),e(this,ce),e(this,K),e(this,me),v(this,Te,{get:Pe,set:void 0}),e(this,ie),e(this,Q),this._linkService=Xe,this._eventBus=ze,S(this,ie,Fe).call(this),ze._on("find",S(this,Q,De).bind(this)),ze._on("findbarclose",S(this,oe,je).bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this._state}setDocument(ot){this._pdfDocument&&S(this,ie,Fe).call(this),ot&&(this._pdfDocument=ot,this._firstPageCapability.resolve())}scrollMatchIntoView(ot){let{element:Xe=null,selectedLeft:ze=0,pageIndex:Ye=-1,matchIndex:st=-1}=ot;if(!this._scrollMatches||!Xe)return;if(st===-1||st!==this._selected.matchIdx)return;if(Ye===-1||Ye!==this._selected.pageIdx)return;this._scrollMatches=!1;const _t={top:y,left:ze+D};(0,n.scrollIntoView)(Xe,_t,!0)}}a.PDFFindController=ke;function De(at){if(!at)return;const ot=this._pdfDocument,{type:Xe}=at;(this._state===null||S(this,me,qe).call(this,at))&&(this._dirtyMatch=!0),this._state=at,Xe!=="highlightallchange"&&S(this,Ne,Ke).call(this,_.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||ot&&this._pdfDocument!==ot)return;S(this,ae,Ve).call(this);const ze=!this._highlightMatches,Ye=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),Xe?this._dirtyMatch?S(this,_e,He).call(this):Xe==="again"?(S(this,_e,He).call(this),ze&&this._state.highlightAll&&S(this,we,Ue).call(this)):Xe==="highlightallchange"?(Ye?S(this,_e,He).call(this):this._highlightMatches=!0,S(this,we,Ue).call(this)):S(this,_e,He).call(this):this._findTimeout=setTimeout(()=>{S(this,_e,He).call(this),this._findTimeout=null},l)})}function Fe(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,c.createPromiseCapability)()}function Pe(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,[this._normalizedQuery]=$(this._state.query)),this._normalizedQuery}function qe(at){if(at.query!==this._state.query)return!0;switch(at.type){case"again":const ot=this._selected.pageIdx+1,Xe=this._linkService;return ot>=1&&ot<=Xe.pagesCount&&ot!==Xe.page&&!Xe.isPageVisible(ot);case"highlightallchange":return!1}return!0}function Le(at,ot,Xe){let ze=at.slice(0,ot).match(J);if(ze){const Ye=at.charCodeAt(ot),st=ze[1].charCodeAt(0);if((0,R.getCharacterType)(Ye)===(0,R.getCharacterType)(st))return!1}if(ze=at.slice(ot+Xe).match(Y),ze){const Ye=at.charCodeAt(ot+Xe-1),st=ze[1].charCodeAt(0);if((0,R.getCharacterType)(Ye)===(0,R.getCharacterType)(st))return!1}return!0}function Oe(at,ot,Xe,ze){const Ye=[],st=[],_t=this._pageDiffs[Xe];let ft;for(;(ft=at.exec(ze))!==null;){if(ot&&!S(this,K,Le).call(this,ze,ft.index,ft[0].length))continue;const[Ct,ut]=fe(_t,ft.index,ft[0].length);ut&&(Ye.push(Ct),st.push(ut))}this._pageMatches[Xe]=Ye,this._pageMatchesLength[Xe]=st}function Ee(at,ot){const{matchDiacritics:Xe}=this._state;let ze=!1;at=at.replace(W,(st,_t,ft,Ct,ut,rt)=>_t?`[ ]*\\${_t}[ ]*`:ft?`[ ]*${ft}[ ]*`:Ct?"[ ]+":Xe?ut||rt:ut?F.has(ut.charCodeAt(0))?ut:"":ot?(ze=!0,`${rt}\\p{M}*`):rt);const Ye="[ ]*";return at.endsWith(Ye)&&(at=at.slice(0,at.length-Ye.length)),Xe&&ot&&(ze=!0,at=`${at}(?=[${N}]|[^\\p{M}]|$)`),[ze,at]}function Ae(at){let ot=O(this,Te);if(ot.length===0)return;const{caseSensitive:Xe,entireWord:ze,phraseSearch:Ye}=this._state,st=this._pageContents[at],_t=this._hasDiacritics[at];let ft=!1;if(Ye)[ft,ot]=S(this,de,Ee).call(this,ot,_t);else{const rt=ot.match(/\S+/g);rt&&(ot=rt.sort().reverse().map(mt=>{const[Ot,dt]=S(this,de,Ee).call(this,mt,_t);return ft||(ft=Ot),`(${dt})`}).join("|"))}const Ct=`g${ft?"u":""}${Xe?"":"i"}`;ot=new RegExp(ot,Ct),S(this,ce,Oe).call(this,ot,ze,at,st),this._state.highlightAll&&S(this,he,$e).call(this,at),this._resumePageIdx===at&&(this._resumePageIdx=null,S(this,se,Ze).call(this));const ut=this._pageMatches[at].length;ut>0&&(this._matchesCountTotal+=ut,S(this,xe,nt).call(this))}function Ve(){if(this._extractTextPromises.length>0)return;let at=Promise.resolve();for(let ot=0,Xe=this._linkService.pagesCount;otthis._pdfDocument.getPage(ot+1).then(Ye=>Ye.getTextContent()).then(Ye=>{const st=[];for(const _t of Ye.items)st.push(_t.str),_t.hasEOL&&st.push(` `);[this._pageContents[ot],this._pageDiffs[ot],this._hasDiacritics[ot]]=$(st.join("")),ze.resolve()},Ye=>{console.error(`Unable to get text content for page ${ot+1}`,Ye),this._pageContents[ot]="",this._pageDiffs[ot]=null,this._hasDiacritics[ot]=!1,ze.resolve()}))}}function $e(at){this._scrollMatches&&this._selected.pageIdx===at&&(this._linkService.page=at+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:at})}function Ue(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}function He(){const at=this._state.findPrevious,ot=this._linkService.page-1,Xe=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=ot,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,S(this,we,Ue).call(this);for(let Ye=0;Ye{this._pendingFindMatches.delete(Ye),S(this,Z,Ae).call(this,Ye)}))}if(O(this,Te)===""){S(this,Ne,Ke).call(this,_.FOUND);return}if(this._resumePageIdx)return;const ze=this._offset;if(this._pagesToSearch=Xe,ze.matchIdx!==null){const Ye=this._pageMatches[ze.pageIdx].length;if(!at&&ze.matchIdx+10){ze.matchIdx=at?ze.matchIdx-1:ze.matchIdx+1,S(this,Ce,tt).call(this,!0);return}S(this,Ie,et).call(this,at)}S(this,se,Ze).call(this)}function Qe(at){const ot=this._offset,Xe=at.length,ze=this._state.findPrevious;return Xe?(ot.matchIdx=ze?Xe-1:0,S(this,Ce,tt).call(this,!0),!0):(S(this,Ie,et).call(this,ze),ot.wrapped&&(ot.matchIdx=null,this._pagesToSearch<0)?(S(this,Ce,tt).call(this,!1),!0):!1)}function Ze(){this._resumePageIdx!==null&&console.error("There can only be one pending page.");let at=null;do{const ot=this._offset.pageIdx;if(at=this._pageMatches[ot],!at){this._resumePageIdx=ot;break}}while(!S(this,ye,Qe).call(this,at))}function et(at){const ot=this._offset,Xe=this._linkService.pagesCount;ot.pageIdx=at?ot.pageIdx-1:ot.pageIdx+1,ot.matchIdx=null,this._pagesToSearch--,(ot.pageIdx>=Xe||ot.pageIdx<0)&&(ot.pageIdx=at?Xe-1:0,ot.wrapped=!0)}function tt(){let at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ot=_.NOT_FOUND;const Xe=this._offset.wrapped;if(this._offset.wrapped=!1,at){const ze=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,ot=Xe?_.WRAPPED:_.FOUND,ze!==-1&&ze!==this._selected.pageIdx&&S(this,he,$e).call(this,ze)}S(this,Ne,Ke).call(this,ot,this._state.findPrevious),this._selected.pageIdx!==-1&&(this._scrollMatches=!0,S(this,he,$e).call(this,this._selected.pageIdx))}function je(at){const ot=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||ot&&this._pdfDocument!==ot||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),S(this,Ne,Ke).call(this,_.FOUND),this._highlightMatches=!1,S(this,we,Ue).call(this))})}function Je(){const{pageIdx:at,matchIdx:ot}=this._selected;let Xe=0,ze=this._matchesCountTotal;if(ot!==-1){for(let st=0;stze)&&(Xe=ze=0),{current:Xe,total:ze}}function nt(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:S(this,pe,Je).call(this)})}function Ke(at){var ot,Xe;let ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:at,previous:ze,matchesCount:S(this,pe,Je).call(this),rawQuery:(ot=(Xe=this._state)===null||Xe===void 0?void 0:Xe.query)!==null&&ot!==void 0?ot:null})}},(x,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CharacterType=void 0,a.getCharacterType=_;const g={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};a.CharacterType=g;function n(l){return l<11904}function c(l){return(l&65408)===0}function R(l){return l>=97&&l<=122||l>=65&&l<=90}function v(l){return l>=48&&l<=57}function e(l){return l===32||l===9||l===13||l===10}function L(l){return l>=13312&&l<=40959||l>=63744&&l<=64255}function O(l){return l>=12448&&l<=12543}function B(l){return l>=12352&&l<=12447}function P(l){return l>=65376&&l<=65439}function S(l){return(l&65408)===3584}function _(l){return n(l)?c(l)?e(l)?g.SPACE:R(l)||v(l)||l===95?g.ALPHA_LETTER:g.PUNCT:S(l)?g.THAI_LETTER:l===160?g.SPACE:g.ALPHA_LETTER:L(l)?g.HAN_LETTER:O(l)?g.KATAKANA_LETTER:B(l)?g.HIRAGANA_LETTER:P(l)?g.HALFWIDTH_KATAKANA_LETTER:g.ALPHA_LETTER}},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.PDFHistory=void 0,a.isDestArraysEqual=P,a.isDestHashesEqual=B;var n=g(7),c=g(19);const R=1e3,v=50,e=1e3;function L(){return document.location.hash}class O{constructor(_){let{linkService:l,eventBus:y}=_;this.linkService=l,this.eventBus=y,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",D=>{this._isPagesLoaded=!!D.pagesCount},{once:!0})})}initialize(_){let{fingerprint:l,resetHistory:y=!1,updateUrl:D=!1}=_;if(!l||typeof l!="string"){console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');return}this._initialized&&this.reset();const M=this._fingerprint!==""&&this._fingerprint!==l;this._fingerprint=l,this._updateUrl=D===!0,this._initialized=!0,this._bindEvents();const F=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=L(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(F,!0)||y){const{hash:G,page:W,rotation:J}=this._parseCurrentHash(!0);if(!G||M||y){this._pushOrReplaceState(null,!0);return}this._pushOrReplaceState({hash:G,page:W,rotation:J},!0);return}const N=F.destination;this._updateInternalState(N,F.uid,!0),N.rotation!==void 0&&(this._initialRotation=N.rotation),N.dest?(this._initialBookmark=JSON.stringify(N.dest),this._destination.page=null):N.hash?this._initialBookmark=N.hash:N.page&&(this._initialBookmark=`page=${N.page}`)}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push(_){let{namedDest:l=null,explicitDest:y,pageNumber:D}=_;if(!this._initialized)return;if(l&&typeof l!="string"){console.error(`PDFHistory.push: "${l}" is not a valid namedDest parameter.`);return}else if(Array.isArray(y)){if(!this._isValidPage(D)&&(D!==null||this._destination)){console.error(`PDFHistory.push: "${D}" is not a valid pageNumber parameter.`);return}}else{console.error(`PDFHistory.push: "${y}" is not a valid explicitDest parameter.`);return}const M=l||JSON.stringify(y);if(!M)return;let F=!1;if(this._destination&&(B(this._destination.hash,M)||P(this._destination.dest,y))){if(this._destination.page)return;F=!0}this._popStateInProgress&&!F||(this._pushOrReplaceState({dest:y,hash:M,page:D,rotation:this.linkService.rotation},F),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushPage(_){var l;if(this._initialized){if(!this._isValidPage(_)){console.error(`PDFHistory.pushPage: "${_}" is not a valid page number.`);return}((l=this._destination)===null||l===void 0?void 0:l.page)!==_&&(this._popStateInProgress||(this._pushOrReplaceState({dest:null,hash:`page=${_}`,page:_,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1}))))}}pushCurrentPosition(){!this._initialized||this._popStateInProgress||this._tryPushCurrentPosition()}back(){if(!this._initialized||this._popStateInProgress)return;const _=window.history.state;this._isValidState(_)&&_.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const _=window.history.state;this._isValidState(_)&&_.uid0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}_pushOrReplaceState(_){const y=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)||!this._destination,D={fingerprint:this._fingerprint,uid:y?this._uid:this._uid+1,destination:_};this._updateInternalState(_,D.uid);let M;if(this._updateUrl&&_!==null&&_!==void 0&&_.hash){const F=document.location.href.split("#")[0];F.startsWith("file://")||(M=`${F}#${_.hash}`)}y?window.history.replaceState(D,"",M):window.history.pushState(D,"",M)}_tryPushCurrentPosition(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this._position)return;let l=this._position;if(_&&(l=Object.assign(Object.create(null),this._position),l.temporary=!0),!this._destination){this._pushOrReplaceState(l);return}if(this._destination.temporary){this._pushOrReplaceState(l,!0);return}if(this._destination.hash===l.hash||!this._destination.page&&this._numPositionUpdates<=v)return;let y=!1;if(this._destination.page>=l.first&&this._destination.page<=l.page){if(this._destination.dest!==void 0||!this._destination.first)return;y=!0}this._pushOrReplaceState(l,y)}_isValidPage(_){return Number.isInteger(_)&&_>0&&_<=this.linkService.pagesCount}_isValidState(_){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!_)return!1;if(_.fingerprint!==this._fingerprint)if(l){if(typeof _.fingerprint!="string"||_.fingerprint.length!==this._fingerprint.length)return!1;const[y]=performance.getEntriesByType("navigation");if((y==null?void 0:y.type)!=="reload")return!1}else return!1;return!(!Number.isInteger(_.uid)||_.uid<0||_.destination===null||typeof _.destination!="object")}_updateInternalState(_,l){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),y&&_!==null&&_!==void 0&&_.temporary&&delete _.temporary,this._destination=_,this._uid=l,this._maxUid=Math.max(this._maxUid,l),this._numPositionUpdates=0}_parseCurrentHash(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const l=unescape(L()).substring(1),y=(0,n.parseQueryString)(l),D=y.get("nameddest")||"";let M=y.get("page")|0;return(!this._isValidPage(M)||_&&D.length>0)&&(M=null),{hash:l,page:M,rotation:this.linkService.rotation}}_updateViewarea(_){let{location:l}=_;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:l.pdfOpenParams.substring(1),page:this.linkService.page,first:l.pageNumber,rotation:l.rotation},!this._popStateInProgress&&(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(()=>{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null},e))}_popState(_){let{state:l}=_;const y=L(),D=this._currentHash!==y;if(this._currentHash=y,!l){this._uid++;const{hash:F,page:N,rotation:G}=this._parseCurrentHash();this._pushOrReplaceState({hash:F,page:N,rotation:G},!0);return}if(!this._isValidState(l))return;this._popStateInProgress=!0,D&&(this._blockHashChange++,(0,c.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:R}).then(()=>{this._blockHashChange--}));const M=l.destination;this._updateInternalState(M,l.uid,!0),(0,n.isValidRotation)(M.rotation)&&(this.linkService.rotation=M.rotation),M.dest?this.linkService.goToDestination(M.dest):M.hash?this.linkService.setHash(M.hash):M.page&&(this.linkService.page=M.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}_pageHide(){(!this._destination||this._destination.temporary)&&this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}a.PDFHistory=O;function B(S,_){return typeof S!="string"||typeof _!="string"?!1:S===_||(0,n.parseQueryString)(S).get("nameddest")===_}function P(S,_){function l(y,D){if(typeof y!=typeof D||Array.isArray(y)||Array.isArray(D))return!1;if(y!==null&&typeof y=="object"&&D!==null){if(Object.keys(y).length!==Object.keys(D).length)return!1;for(const M in y)if(!l(y[M],D[M]))return!1;return!0}return y===D||Number.isNaN(y)&&Number.isNaN(D)}if(!(Array.isArray(S)&&Array.isArray(_))||S.length!==_.length)return!1;for(let y=0,D=S.length;y{Object.defineProperty(a,"__esModule",{value:!0}),a.PDFScriptingManager=void 0;var n=g(7),c=g(3);class R{constructor(e){let{eventBus:L,sandboxBundleSrc:O=null,scriptingFactory:B=null,docPropertiesLookup:P=null}=e;this._pdfDocument=null,this._pdfViewer=null,this._closeCapability=null,this._destroyCapability=null,this._scripting=null,this._mouseState=Object.create(null),this._ready=!1,this._eventBus=L,this._sandboxBundleSrc=O,this._scriptingFactory=B,this._docPropertiesLookup=P,this._scriptingFactory||window.addEventListener("updatefromsandbox",S=>{this._eventBus.dispatch("updatefromsandbox",{source:window,detail:S.detail})})}setViewer(e){this._pdfViewer=e}async setDocument(e){var L;if(this._pdfDocument&&await this._destroyScripting(),this._pdfDocument=e,!e)return;const[O,B,P]=await Promise.all([e.getFieldObjects(),e.getCalculationOrderIds(),e.getJSActions()]);if(!O&&!P){await this._destroyScripting();return}if(e===this._pdfDocument){try{this._scripting=this._createScripting()}catch(S){console.error(`PDFScriptingManager.setDocument: "${S==null?void 0:S.message}".`),await this._destroyScripting();return}this._internalEvents.set("updatefromsandbox",S=>{(S==null?void 0:S.source)===window&&this._updateFromSandbox(S.detail)}),this._internalEvents.set("dispatcheventinsandbox",S=>{var _;(_=this._scripting)===null||_===void 0||_.dispatchEventInSandbox(S.detail)}),this._internalEvents.set("pagechanging",S=>{let{pageNumber:_,previous:l}=S;_!==l&&(this._dispatchPageClose(l),this._dispatchPageOpen(_))}),this._internalEvents.set("pagerendered",S=>{let{pageNumber:_}=S;this._pageOpenPending.has(_)&&_===this._pdfViewer.currentPageNumber&&this._dispatchPageOpen(_)}),this._internalEvents.set("pagesdestroy",async S=>{var _,l;await this._dispatchPageClose(this._pdfViewer.currentPageNumber),await((_=this._scripting)===null||_===void 0?void 0:_.dispatchEventInSandbox({id:"doc",name:"WillClose"})),(l=this._closeCapability)===null||l===void 0||l.resolve()}),this._domEvents.set("mousedown",S=>{this._mouseState.isDown=!0}),this._domEvents.set("mouseup",S=>{this._mouseState.isDown=!1});for(const[S,_]of this._internalEvents)this._eventBus._on(S,_);for(const[S,_]of this._domEvents)window.addEventListener(S,_,!0);try{const S=await this._getDocProperties();if(e!==this._pdfDocument)return;await this._scripting.createSandbox({objects:O,calculationOrder:B,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:{...S,actions:P}}),this._eventBus.dispatch("sandboxcreated",{source:this})}catch(S){console.error(`PDFScriptingManager.setDocument: "${S==null?void 0:S.message}".`),await this._destroyScripting();return}await((L=this._scripting)===null||L===void 0?void 0:L.dispatchEventInSandbox({id:"doc",name:"Open"})),await this._dispatchPageOpen(this._pdfViewer.currentPageNumber,!0),Promise.resolve().then(()=>{e===this._pdfDocument&&(this._ready=!0)})}}async dispatchWillSave(e){var L;return(L=this._scripting)===null||L===void 0?void 0:L.dispatchEventInSandbox({id:"doc",name:"WillSave"})}async dispatchDidSave(e){var L;return(L=this._scripting)===null||L===void 0?void 0:L.dispatchEventInSandbox({id:"doc",name:"DidSave"})}async dispatchWillPrint(e){var L;return(L=this._scripting)===null||L===void 0?void 0:L.dispatchEventInSandbox({id:"doc",name:"WillPrint"})}async dispatchDidPrint(e){var L;return(L=this._scripting)===null||L===void 0?void 0:L.dispatchEventInSandbox({id:"doc",name:"DidPrint"})}get mouseState(){return this._mouseState}get destroyPromise(){var e;return((e=this._destroyCapability)===null||e===void 0?void 0:e.promise)||null}get ready(){return this._ready}get _internalEvents(){return(0,c.shadow)(this,"_internalEvents",new Map)}get _domEvents(){return(0,c.shadow)(this,"_domEvents",new Map)}get _pageOpenPending(){return(0,c.shadow)(this,"_pageOpenPending",new Set)}get _visitedPages(){return(0,c.shadow)(this,"_visitedPages",new Map)}async _updateFromSandbox(e){const L=this._pdfViewer.isInPresentationMode||this._pdfViewer.isChangingPresentationMode,{id:O,siblings:B,command:P,value:S}=e;if(!O){switch(P){case"clear":console.clear();break;case"error":console.error(S);break;case"layout":if(L)return;const y=(0,n.apiPageLayoutToViewerModes)(S);this._pdfViewer.spreadMode=y.spreadMode;break;case"page-num":this._pdfViewer.currentPageNumber=S+1;break;case"print":await this._pdfViewer.pagesPromise,this._eventBus.dispatch("print",{source:this});break;case"println":console.log(S);break;case"zoom":if(L)return;this._pdfViewer.currentScaleValue=S;break;case"SaveAs":this._eventBus.dispatch("download",{source:this});break;case"FirstPage":this._pdfViewer.currentPageNumber=1;break;case"LastPage":this._pdfViewer.currentPageNumber=this._pdfViewer.pagesCount;break;case"NextPage":this._pdfViewer.nextPage();break;case"PrevPage":this._pdfViewer.previousPage();break;case"ZoomViewIn":if(L)return;this._pdfViewer.increaseScale();break;case"ZoomViewOut":if(L)return;this._pdfViewer.decreaseScale();break}return}if(L&&e.focus)return;delete e.id,delete e.siblings;const _=B?[O,...B]:[O];for(const y of _){const D=document.querySelector(`[data-element-id="${y}"]`);if(D)D.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:e}));else{var l;(l=this._pdfDocument)===null||l===void 0||l.annotationStorage.setValue(y,e)}}}async _dispatchPageOpen(e){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const O=this._pdfDocument,B=this._visitedPages;if(L&&(this._closeCapability=(0,c.createPromiseCapability)()),!this._closeCapability)return;const P=this._pdfViewer.getPageView(e-1);if((P==null?void 0:P.renderingState)!==n.RenderingStates.FINISHED){this._pageOpenPending.add(e);return}this._pageOpenPending.delete(e);const S=(async()=>{var _,l;const y=await(B.has(e)?null:(_=P.pdfPage)===null||_===void 0?void 0:_.getJSActions());O===this._pdfDocument&&await((l=this._scripting)===null||l===void 0?void 0:l.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:e,actions:y}))})();B.set(e,S)}async _dispatchPageClose(e){var L;const O=this._pdfDocument,B=this._visitedPages;if(!this._closeCapability||this._pageOpenPending.has(e))return;const P=B.get(e);P&&(B.set(e,null),await P,O===this._pdfDocument&&await((L=this._scripting)===null||L===void 0?void 0:L.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:e})))}async _getDocProperties(){if(this._docPropertiesLookup)return this._docPropertiesLookup(this._pdfDocument);const{docPropertiesLookup:e}=g(26);return e(this._pdfDocument)}_createScripting(){if(this._destroyCapability=(0,c.createPromiseCapability)(),this._scripting)throw new Error("_createScripting: Scripting already exists.");if(this._scriptingFactory)return this._scriptingFactory.createScripting({sandboxBundleSrc:this._sandboxBundleSrc});const{GenericScripting:e}=g(26);return new e(this._sandboxBundleSrc)}async _destroyScripting(){var e;if(!this._scripting){var L;this._pdfDocument=null,(L=this._destroyCapability)===null||L===void 0||L.resolve();return}this._closeCapability&&(await Promise.race([this._closeCapability.promise,new Promise(O=>{setTimeout(O,1e3)})]).catch(O=>{}),this._closeCapability=null),this._pdfDocument=null;try{await this._scripting.destroySandbox()}catch{}for(const[O,B]of this._internalEvents)this._eventBus._off(O,B);this._internalEvents.clear();for(const[O,B]of this._domEvents)window.removeEventListener(O,B,!0);this._domEvents.clear(),this._pageOpenPending.clear(),this._visitedPages.clear(),this._scripting=null,delete this._mouseState.isDown,this._ready=!1,(e=this._destroyCapability)===null||e===void 0||e.resolve()}}a.PDFScriptingManager=R},(x,a,g)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.GenericScripting=void 0,a.docPropertiesLookup=c;var n=g(3);async function c(v){const e="",L=e.split("#")[0];let{info:O,metadata:B,contentDispositionFilename:P,contentLength:S}=await v.getMetadata();if(!S){const{length:_}=await v.getDownloadInfo();S=_}return{...O,baseURL:L,filesize:S,filename:P||(0,n.getPdfFilenameFromUrl)(e),metadata:B==null?void 0:B.getRaw(),authors:B==null?void 0:B.get("dc:creator"),numPages:v.numPages,URL:e}}class R{constructor(e){this._ready=(0,n.loadScript)(e,!0).then(()=>window.pdfjsSandbox.QuickJSSandbox())}async createSandbox(e){(await this._ready).create(e)}async dispatchEventInSandbox(e){const L=await this._ready;setTimeout(()=>L.dispatchEvent(e),0)}async destroySandbox(){(await this._ready).nukeSandbox()}}a.GenericScripting=R}],w={};function U(x){var a=w[x];if(a!==void 0)return a.exports;var g=w[x]={exports:{}};return m[x](g,g.exports,U),g.exports}var k={};return(()=>{var x=k;Object.defineProperty(x,"__esModule",{value:!0}),Object.defineProperty(x,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return R.AnnotationLayerBuilder}}),Object.defineProperty(x,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return a.DefaultAnnotationLayerFactory}}),Object.defineProperty(x,"DefaultStructTreeLayerFactory",{enumerable:!0,get:function(){return a.DefaultStructTreeLayerFactory}}),Object.defineProperty(x,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return a.DefaultTextLayerFactory}}),Object.defineProperty(x,"DefaultXfaLayerFactory",{enumerable:!0,get:function(){return a.DefaultXfaLayerFactory}}),Object.defineProperty(x,"DownloadManager",{enumerable:!0,get:function(){return v.DownloadManager}}),Object.defineProperty(x,"EventBus",{enumerable:!0,get:function(){return e.EventBus}}),Object.defineProperty(x,"GenericL10n",{enumerable:!0,get:function(){return L.GenericL10n}}),Object.defineProperty(x,"LinkTarget",{enumerable:!0,get:function(){return g.LinkTarget}}),Object.defineProperty(x,"NullL10n",{enumerable:!0,get:function(){return O.NullL10n}}),Object.defineProperty(x,"PDFFindController",{enumerable:!0,get:function(){return B.PDFFindController}}),Object.defineProperty(x,"PDFHistory",{enumerable:!0,get:function(){return P.PDFHistory}}),Object.defineProperty(x,"PDFLinkService",{enumerable:!0,get:function(){return g.PDFLinkService}}),Object.defineProperty(x,"PDFPageView",{enumerable:!0,get:function(){return S.PDFPageView}}),Object.defineProperty(x,"PDFScriptingManager",{enumerable:!0,get:function(){return _.PDFScriptingManager}}),Object.defineProperty(x,"PDFSinglePageViewer",{enumerable:!0,get:function(){return c.PDFSinglePageViewer}}),Object.defineProperty(x,"PDFViewer",{enumerable:!0,get:function(){return c.PDFViewer}}),Object.defineProperty(x,"ProgressBar",{enumerable:!0,get:function(){return n.ProgressBar}}),Object.defineProperty(x,"RenderingStates",{enumerable:!0,get:function(){return n.RenderingStates}}),Object.defineProperty(x,"ScrollMode",{enumerable:!0,get:function(){return n.ScrollMode}}),Object.defineProperty(x,"SimpleLinkService",{enumerable:!0,get:function(){return g.SimpleLinkService}}),Object.defineProperty(x,"SpreadMode",{enumerable:!0,get:function(){return n.SpreadMode}}),Object.defineProperty(x,"StructTreeLayerBuilder",{enumerable:!0,get:function(){return l.StructTreeLayerBuilder}}),Object.defineProperty(x,"TextLayerBuilder",{enumerable:!0,get:function(){return y.TextLayerBuilder}}),Object.defineProperty(x,"XfaLayerBuilder",{enumerable:!0,get:function(){return D.XfaLayerBuilder}}),Object.defineProperty(x,"parseQueryString",{enumerable:!0,get:function(){return n.parseQueryString}});var a=U(1),g=U(6),n=U(7),c=U(11),R=U(5),v=U(18),e=U(19),L=U(20),O=U(4),B=U(22),P=U(24),S=U(13),_=U(25),l=U(8),y=U(9),D=U(10)})(),k})())})(pdf_viewer$1);var pdf_viewerExports=pdf_viewer$1.exports;const pdf_viewer="";var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function createCommonjsModule(b,r,m){return m={path:r,exports:{},require:function(w,U){return commonjsRequire(w,U??m.path)}},b(m,m.exports),m.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var check=function(b){return b&&b.Math==Math&&b},global_1=check(typeof globalThis=="object"&&globalThis)||check(typeof window=="object"&&window)||check(typeof self=="object"&&self)||check(typeof commonjsGlobal=="object"&&commonjsGlobal)||function(){return this}()||Function("return this")(),fails=function(b){try{return!!b()}catch{return!0}},descriptors=!fails(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),$propertyIsEnumerable={}.propertyIsEnumerable,getOwnPropertyDescriptor$2=Object.getOwnPropertyDescriptor,NASHORN_BUG=getOwnPropertyDescriptor$2&&!$propertyIsEnumerable.call({1:2},1),f$4=NASHORN_BUG?function b(r){var m=getOwnPropertyDescriptor$2(this,r);return!!m&&m.enumerable}:$propertyIsEnumerable,objectPropertyIsEnumerable={f:f$4},createPropertyDescriptor=function(b,r){return{enumerable:!(b&1),configurable:!(b&2),writable:!(b&4),value:r}},toString={}.toString,classofRaw=function(b){return toString.call(b).slice(8,-1)},split="".split,indexedObject=fails(function(){return!Object("z").propertyIsEnumerable(0)})?function(b){return classofRaw(b)=="String"?split.call(b,""):Object(b)}:Object,requireObjectCoercible=function(b){if(b==null)throw TypeError("Can't call method on "+b);return b},toIndexedObject=function(b){return indexedObject(requireObjectCoercible(b))},isObject=function(b){return typeof b=="object"?b!==null:typeof b=="function"},aFunction$1=function(b){return typeof b=="function"?b:void 0},getBuiltIn=function(b,r){return arguments.length<2?aFunction$1(global_1[b]):global_1[b]&&global_1[b][r]},engineUserAgent=getBuiltIn("navigator","userAgent")||"",process$1=global_1.process,Deno$1=global_1.Deno,versions=process$1&&process$1.versions||Deno$1&&Deno$1.version,v8=versions&&versions.v8,match,version;v8?(match=v8.split("."),version=match[0]<4?1:match[0]+match[1]):engineUserAgent&&(match=engineUserAgent.match(/Edge\/(\d+)/),(!match||match[1]>=74)&&(match=engineUserAgent.match(/Chrome\/(\d+)/),match&&(version=match[1])));var engineV8Version=version&&+version,nativeSymbol=!!Object.getOwnPropertySymbols&&!fails(function(){var b=Symbol();return!String(b)||!(Object(b)instanceof Symbol)||!Symbol.sham&&engineV8Version&&engineV8Version<41}),useSymbolAsUid=nativeSymbol&&!Symbol.sham&&typeof Symbol.iterator=="symbol",isSymbol=useSymbolAsUid?function(b){return typeof b=="symbol"}:function(b){var r=getBuiltIn("Symbol");return typeof r=="function"&&Object(b)instanceof r},ordinaryToPrimitive=function(b,r){var m,w;if(r==="string"&&typeof(m=b.toString)=="function"&&!isObject(w=m.call(b))||typeof(m=b.valueOf)=="function"&&!isObject(w=m.call(b))||r!=="string"&&typeof(m=b.toString)=="function"&&!isObject(w=m.call(b)))return w;throw TypeError("Can't convert object to primitive value")},setGlobal=function(b,r){try{Object.defineProperty(global_1,b,{value:r,configurable:!0,writable:!0})}catch{global_1[b]=r}return r},SHARED="__core-js_shared__",store$1=global_1[SHARED]||setGlobal(SHARED,{}),sharedStore=store$1,shared=createCommonjsModule(function(b){(b.exports=function(r,m){return sharedStore[r]||(sharedStore[r]=m!==void 0?m:{})})("versions",[]).push({version:"3.17.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),toObject=function(b){return Object(requireObjectCoercible(b))},hasOwnProperty={}.hasOwnProperty,has$1=Object.hasOwn||function b(r,m){return hasOwnProperty.call(toObject(r),m)},id=0,postfix=Math.random(),uid=function(b){return"Symbol("+String(b===void 0?"":b)+")_"+(++id+postfix).toString(36)},WellKnownSymbolsStore=shared("wks"),Symbol$1=global_1.Symbol,createWellKnownSymbol=useSymbolAsUid?Symbol$1:Symbol$1&&Symbol$1.withoutSetter||uid,wellKnownSymbol=function(b){return(!has$1(WellKnownSymbolsStore,b)||!(nativeSymbol||typeof WellKnownSymbolsStore[b]=="string"))&&(nativeSymbol&&has$1(Symbol$1,b)?WellKnownSymbolsStore[b]=Symbol$1[b]:WellKnownSymbolsStore[b]=createWellKnownSymbol("Symbol."+b)),WellKnownSymbolsStore[b]},TO_PRIMITIVE=wellKnownSymbol("toPrimitive"),toPrimitive=function(b,r){if(!isObject(b)||isSymbol(b))return b;var m=b[TO_PRIMITIVE],w;if(m!==void 0){if(r===void 0&&(r="default"),w=m.call(b,r),!isObject(w)||isSymbol(w))return w;throw TypeError("Can't convert object to primitive value")}return r===void 0&&(r="number"),ordinaryToPrimitive(b,r)},toPropertyKey=function(b){var r=toPrimitive(b,"string");return isSymbol(r)?r:String(r)},document$1=global_1.document,EXISTS=isObject(document$1)&&isObject(document$1.createElement),documentCreateElement=function(b){return EXISTS?document$1.createElement(b):{}},ie8DomDefine=!descriptors&&!fails(function(){return Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a!=7}),$getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,f$3=descriptors?$getOwnPropertyDescriptor:function b(r,m){if(r=toIndexedObject(r),m=toPropertyKey(m),ie8DomDefine)try{return $getOwnPropertyDescriptor(r,m)}catch{}if(has$1(r,m))return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(r,m),r[m])},objectGetOwnPropertyDescriptor={f:f$3},anObject=function(b){if(!isObject(b))throw TypeError(String(b)+" is not an object");return b},$defineProperty=Object.defineProperty,f$2=descriptors?$defineProperty:function b(r,m,w){if(anObject(r),m=toPropertyKey(m),anObject(w),ie8DomDefine)try{return $defineProperty(r,m,w)}catch{}if("get"in w||"set"in w)throw TypeError("Accessors not supported");return"value"in w&&(r[m]=w.value),r},objectDefineProperty={f:f$2},createNonEnumerableProperty=descriptors?function(b,r,m){return objectDefineProperty.f(b,r,createPropertyDescriptor(1,m))}:function(b,r,m){return b[r]=m,b},functionToString=Function.toString;typeof sharedStore.inspectSource!="function"&&(sharedStore.inspectSource=function(b){return functionToString.call(b)});var inspectSource=sharedStore.inspectSource,WeakMap$1=global_1.WeakMap,nativeWeakMap=typeof WeakMap$1=="function"&&/native code/.test(inspectSource(WeakMap$1)),keys$1=shared("keys"),sharedKey=function(b){return keys$1[b]||(keys$1[b]=uid(b))},hiddenKeys$1={},OBJECT_ALREADY_INITIALIZED="Object already initialized",WeakMap$2=global_1.WeakMap,set,get,has,enforce=function(b){return has(b)?get(b):set(b,{})},getterFor=function(b){return function(r){var m;if(!isObject(r)||(m=get(r)).type!==b)throw TypeError("Incompatible receiver, "+b+" required");return m}};if(nativeWeakMap||sharedStore.state){var store=sharedStore.state||(sharedStore.state=new WeakMap$2),wmget=store.get,wmhas=store.has,wmset=store.set;set=function(b,r){if(wmhas.call(store,b))throw new TypeError(OBJECT_ALREADY_INITIALIZED);return r.facade=b,wmset.call(store,b,r),r},get=function(b){return wmget.call(store,b)||{}},has=function(b){return wmhas.call(store,b)}}else{var STATE=sharedKey("state");hiddenKeys$1[STATE]=!0,set=function(b,r){if(has$1(b,STATE))throw new TypeError(OBJECT_ALREADY_INITIALIZED);return r.facade=b,createNonEnumerableProperty(b,STATE,r),r},get=function(b){return has$1(b,STATE)?b[STATE]:{}},has=function(b){return has$1(b,STATE)}}var internalState={set,get,has,enforce,getterFor},redefine=createCommonjsModule(function(b){var r=internalState.get,m=internalState.enforce,w=String(String).split("String");(b.exports=function(U,k,x,a){var g=a?!!a.unsafe:!1,n=a?!!a.enumerable:!1,c=a?!!a.noTargetGet:!1,R;if(typeof x=="function"&&(typeof k=="string"&&!has$1(x,"name")&&createNonEnumerableProperty(x,"name",k),R=m(x),R.source||(R.source=w.join(typeof k=="string"?k:""))),U===global_1){n?U[k]=x:setGlobal(k,x);return}else g?!c&&U[k]&&(n=!0):delete U[k];n?U[k]=x:createNonEnumerableProperty(U,k,x)})(Function.prototype,"toString",function(){return typeof this=="function"&&r(this).source||inspectSource(this)})}),ceil=Math.ceil,floor=Math.floor,toInteger=function(b){return isNaN(b=+b)?0:(b>0?floor:ceil)(b)},min$1=Math.min,toLength=function(b){return b>0?min$1(toInteger(b),9007199254740991):0},max=Math.max,min=Math.min,toAbsoluteIndex=function(b,r){var m=toInteger(b);return m<0?max(m+r,0):min(m,r)},createMethod$3=function(b){return function(r,m,w){var U=toIndexedObject(r),k=toLength(U.length),x=toAbsoluteIndex(w,k),a;if(b&&m!=m){for(;k>x;)if(a=U[x++],a!=a)return!0}else for(;k>x;x++)if((b||x in U)&&U[x]===m)return b||x||0;return!b&&-1}},arrayIncludes={includes:createMethod$3(!0),indexOf:createMethod$3(!1)},indexOf=arrayIncludes.indexOf,objectKeysInternal=function(b,r){var m=toIndexedObject(b),w=0,U=[],k;for(k in m)!has$1(hiddenKeys$1,k)&&has$1(m,k)&&U.push(k);for(;r.length>w;)has$1(m,k=r[w++])&&(~indexOf(U,k)||U.push(k));return U},enumBugKeys=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],hiddenKeys=enumBugKeys.concat("length","prototype"),f$1=Object.getOwnPropertyNames||function b(r){return objectKeysInternal(r,hiddenKeys)},objectGetOwnPropertyNames={f:f$1},f=Object.getOwnPropertySymbols,objectGetOwnPropertySymbols={f},ownKeys=getBuiltIn("Reflect","ownKeys")||function b(r){var m=objectGetOwnPropertyNames.f(anObject(r)),w=objectGetOwnPropertySymbols.f;return w?m.concat(w(r)):m},copyConstructorProperties=function(b,r){for(var m=ownKeys(r),w=objectDefineProperty.f,U=objectGetOwnPropertyDescriptor.f,k=0;kB;B++)if((a||B in e)&&(_=e[B],l=L(_,B,v),b))if(r)S[B]=l;else if(l)switch(b){case 3:return!0;case 5:return _;case 6:return B;case 2:push.call(S,_)}else switch(b){case 4:return!1;case 7:push.call(S,_)}return k?-1:w||U?U:S}},arrayIteration={forEach:createMethod$2(0),map:createMethod$2(1),filter:createMethod$2(2),some:createMethod$2(3),every:createMethod$2(4),find:createMethod$2(5),findIndex:createMethod$2(6),filterReject:createMethod$2(7)},arrayMethodIsStrict=function(b,r){var m=[][b];return!!m&&fails(function(){m.call(null,r||function(){throw 1},1)})},$forEach=arrayIteration.forEach,STRICT_METHOD=arrayMethodIsStrict("forEach"),arrayForEach=STRICT_METHOD?[].forEach:function b(r){return $forEach(this,r,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=arrayForEach},{forEach:arrayForEach});var domIterables={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},classList=documentCreateElement("span").classList,DOMTokenListPrototype=classList&&classList.constructor&&classList.constructor.prototype,domTokenListPrototype=DOMTokenListPrototype===Object.prototype?void 0:DOMTokenListPrototype,handlePrototype=function(b){if(b&&b.forEach!==arrayForEach)try{createNonEnumerableProperty(b,"forEach",arrayForEach)}catch{b.forEach=arrayForEach}};for(var COLLECTION_NAME in domIterables)handlePrototype(global_1[COLLECTION_NAME]&&global_1[COLLECTION_NAME].prototype);handlePrototype(domTokenListPrototype);var objectKeys=Object.keys||function b(r){return objectKeysInternal(r,enumBugKeys)},propertyIsEnumerable=objectPropertyIsEnumerable.f,createMethod$1=function(b){return function(r){for(var m=toIndexedObject(r),w=objectKeys(m),U=w.length,k=0,x=[],a;U>k;)a=w[k++],(!descriptors||propertyIsEnumerable.call(m,a))&&x.push(b?[a,m[a]]:m[a]);return x}},objectToArray={entries:createMethod$1(!0),values:createMethod$1(!1)},$entries=objectToArray.entries;_export({target:"Object",stat:!0},{entries:function b(r){return $entries(r)}});var aPossiblePrototype=function(b){if(!isObject(b)&&b!==null)throw TypeError("Can't set "+String(b)+" as a prototype");return b},objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var b=!1,r={},m;try{m=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,m.call(r,[]),b=r instanceof Array}catch{}return function(U,k){return anObject(U),aPossiblePrototype(k),b?m.call(U,k):U.__proto__=k,U}}():void 0),inheritIfRequired=function(b,r,m){var w,U;return objectSetPrototypeOf&&typeof(w=r.constructor)=="function"&&w!==m&&isObject(U=w.prototype)&&U!==m.prototype&&objectSetPrototypeOf(b,U),b},objectDefineProperties=descriptors?Object.defineProperties:function b(r,m){anObject(r);for(var w=objectKeys(m),U=w.length,k=0,x;U>k;)objectDefineProperty.f(r,x=w[k++],m[x]);return r},html=getBuiltIn("document","documentElement"),GT=">",LT="<",PROTOTYPE="prototype",SCRIPT="script",IE_PROTO=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(b){return LT+SCRIPT+GT+b+LT+"/"+SCRIPT+GT},NullProtoObjectViaActiveX=function(b){b.write(scriptTag("")),b.close();var r=b.parentWindow.Object;return b=null,r},NullProtoObjectViaIFrame=function(){var b=documentCreateElement("iframe"),r="java"+SCRIPT+":",m;return b.style.display="none",html.appendChild(b),b.src=String(r),m=b.contentWindow.document,m.open(),m.write(scriptTag("document.F=Object")),m.close(),m.F},activeXDocument,NullProtoObject=function(){try{activeXDocument=new ActiveXObject("htmlfile")}catch{}NullProtoObject=typeof document<"u"?document.domain&&activeXDocument?NullProtoObjectViaActiveX(activeXDocument):NullProtoObjectViaIFrame():NullProtoObjectViaActiveX(activeXDocument);for(var b=enumBugKeys.length;b--;)delete NullProtoObject[PROTOTYPE][enumBugKeys[b]];return NullProtoObject()};hiddenKeys$1[IE_PROTO]=!0;var objectCreate=Object.create||function b(r,m){var w;return r!==null?(EmptyConstructor[PROTOTYPE]=anObject(r),w=new EmptyConstructor,EmptyConstructor[PROTOTYPE]=null,w[IE_PROTO]=r):w=NullProtoObject(),m===void 0?w:objectDefineProperties(w,m)},toString_1=function(b){if(isSymbol(b))throw TypeError("Cannot convert a Symbol value to a string");return String(b)},whitespaces=` \v\f\r                 \u2028\u2029\uFEFF`,whitespace="["+whitespaces+"]",ltrim=RegExp("^"+whitespace+whitespace+"*"),rtrim=RegExp(whitespace+whitespace+"*$"),createMethod=function(b){return function(r){var m=toString_1(requireObjectCoercible(r));return b&1&&(m=m.replace(ltrim,"")),b&2&&(m=m.replace(rtrim,"")),m}},stringTrim={start:createMethod(1),end:createMethod(2),trim:createMethod(3)},getOwnPropertyNames=objectGetOwnPropertyNames.f,getOwnPropertyDescriptor=objectGetOwnPropertyDescriptor.f,defineProperty=objectDefineProperty.f,trim$1=stringTrim.trim,NUMBER="Number",NativeNumber=global_1[NUMBER],NumberPrototype=NativeNumber.prototype,BROKEN_CLASSOF=classofRaw(objectCreate(NumberPrototype))==NUMBER,toNumber=function(b){if(isSymbol(b))throw TypeError("Cannot convert a Symbol value to a number");var r=toPrimitive(b,"number"),m,w,U,k,x,a,g,n;if(typeof r=="string"&&r.length>2){if(r=trim$1(r),m=r.charCodeAt(0),m===43||m===45){if(w=r.charCodeAt(2),w===88||w===120)return NaN}else if(m===48){switch(r.charCodeAt(1)){case 66:case 98:U=2,k=49;break;case 79:case 111:U=8,k=55;break;default:return+r}for(x=r.slice(2),a=x.length,g=0;gk)return NaN;return parseInt(x,U)}}return+r};if(isForced_1(NUMBER,!NativeNumber(" 0o1")||!NativeNumber("0b1")||NativeNumber("+0x1"))){for(var NumberWrapper=function(r){var m=arguments.length<1?0:r,w=this;return w instanceof NumberWrapper&&(BROKEN_CLASSOF?fails(function(){NumberPrototype.valueOf.call(w)}):classofRaw(w)!=NUMBER)?inheritIfRequired(new NativeNumber(toNumber(m)),w,NumberWrapper):toNumber(m)},keys=descriptors?getOwnPropertyNames(NativeNumber):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),j=0,key;keys.length>j;j++)has$1(NativeNumber,key=keys[j])&&!has$1(NumberWrapper,key)&&defineProperty(NumberWrapper,key,getOwnPropertyDescriptor(NativeNumber,key));NumberWrapper.prototype=NumberPrototype,NumberPrototype.constructor=NumberWrapper,redefine(global_1,NUMBER,NumberWrapper)}var trim=stringTrim.trim,$parseFloat=global_1.parseFloat,FORCED=1/$parseFloat(whitespaces+"-0")!==-1/0,numberParseFloat=FORCED?function b(r){var m=trim(toString_1(r)),w=$parseFloat(m);return w===0&&m.charAt(0)=="-"?-0:w}:$parseFloat;_export({global:!0,forced:parseFloat!=numberParseFloat},{parseFloat:numberParseFloat});var slice=[].slice,MSIE=/MSIE .\./.test(engineUserAgent),wrap=function(b){return function(r,m){var w=arguments.length>2,U=w?slice.call(arguments,2):void 0;return b(w?function(){(typeof r=="function"?r:Function(r)).apply(this,U)}:r,m)}};_export({global:!0,bind:!0,forced:MSIE},{setTimeout:wrap(global_1.setTimeout),setInterval:wrap(global_1.setInterval)});function __awaiter(b,r,m,w){function U(k){return k instanceof m?k:new m(function(x){x(k)})}return new(m||(m=Promise))(function(k,x){function a(c){try{n(w.next(c))}catch(R){x(R)}}function g(c){try{n(w.throw(c))}catch(R){x(R)}}function n(c){c.done?k(c.value):U(c.value).then(a,g)}n((w=w.apply(b,r||[])).next())})}function __generator(b,r){var m={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},w,U,k,x;return x={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(x[Symbol.iterator]=function(){return this}),x;function a(n){return function(c){return g([n,c])}}function g(n){if(w)throw new TypeError("Generator is already executing.");for(;m;)try{if(w=1,U&&(k=n[0]&2?U.return:n[0]?U.throw||((k=U.return)&&k.call(U),0):U.next)&&!(k=k.call(U,n[1])).done)return k;switch(U=0,k&&(n=[n[0]&2,k.value]),n[0]){case 0:case 1:k=n;break;case 4:return m.label++,{value:n[1],done:!1};case 5:m.label++,U=n[1],n=[0];continue;case 7:n=m.ops.pop(),m.trys.pop();continue;default:if(k=m.trys,!(k=k.length>0&&k[k.length-1])&&(n[0]===6||n[0]===2)){m=0;continue}if(n[0]===3&&(!k||n[1]>k[0]&&n[1]"u")){var w=document.head||document.getElementsByTagName("head")[0],U=document.createElement("style");U.type="text/css",m==="top"&&w.firstChild?w.insertBefore(U,w.firstChild):w.appendChild(U),U.styleSheet?U.styleSheet.cssText=b:U.appendChild(document.createTextNode(b))}}var css_248z=".vue-pdf__wrapper{position:relative}.vue-pdf__wrapper-text-layer br{display:none}.vue-pdf__wrapper-annotation-layer{position:absolute}.vue-pdf__wrapper-annotation-layer .linkAnnotation{position:absolute;z-index:1}.vue-pdf__wrapper-annotation-layer .linkAnnotation a{width:100%;height:100%;display:inline-block}";styleInject(css_248z);script.render=render$2;const _hoisted_1$7={class:"flex justify-between items-end w-full bg-transparent"},_hoisted_2$6={key:0,class:"flex flex-nowrap overflow-x-auto scrollbar-hide ml-2"},_hoisted_3$6=["onClick"],_hoisted_4$5=createBaseVNode("div",{class:"flex-1 bg-transparent"},null,-1),_hoisted_5$5={class:"menu-container bg-transparent",style:{display:"flex","justify-content":"flex-end"}},_hoisted_6$5={class:"py-1"},_hoisted_7$5=["onClick"],_hoisted_8$4={href:"#",class:"flex w-full items-center px-3 py-1 text-sm hover:bg-opacity dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300"},_hoisted_9$4={class:"py-1"},_hoisted_10$3=["onClick"],_hoisted_11$3={href:"#",class:"flex w-full items-center px-3 py-1 text-sm hover:bg-opacity dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300"},_hoisted_12$2={class:"menu-container bg-transparent",style:{display:"flex","justify-content":"flex-end"}},_hoisted_13$2={class:"py-1"},_hoisted_14$2=["onClick"],_hoisted_15$2={href:"#",class:"flex w-full items-center pl-0 pr-3 py-1 text-sm hover:bg-opacity dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300"},_hoisted_16$2={class:"flex flex-1 justify-center"},_hoisted_17$2={class:"w-28"},_hoisted_18$2={class:"py-1"},_hoisted_19$1=["onClick"],_hoisted_20$1={href:"#",class:"flex w-full items-center pl-0 pr-3 py-1 text-sm hover:bg-opacity dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300"},_hoisted_21={class:"flex flex-1 justify-center"},_hoisted_22={class:"w-28"},_hoisted_23={key:0,class:"flex items-center py-2 px-2 rounded-lg w-full cursor-pointer transition duration-150 ease-in-out"},_hoisted_24=createBaseVNode("p",{class:"text-sm text-gray-500 dark:text-gray-400 flex-grow truncate"}," 使用 @ 搜索应用程序 ",-1),_hoisted_25=[_hoisted_24],_hoisted_26=["onClick"],_hoisted_27={class:"w-8 h-8 flex-shrink-0 rounded-full flex items-center justify-center overflow-hidden shadow-sm border border-gray-300 mr-3"},_hoisted_28=["src"],_hoisted_29={key:1,class:"w-8 h-8 text-sm font-medium text-gray-700 dark:text-gray-400 rounded-full flex items-center justify-center dark:bg-gray-700"},_hoisted_30={class:"text-md font-bold text-gray-600 dark:text-primary-500 mr-3 flex-shrink-0"},_hoisted_31={class:"text-sm text-gray-400 dark:text-gray-400 flex-grow truncate"},_hoisted_32={key:0,class:"self-start w-full bg-opacity dark:bg-gray-700 rounded-lg"},_hoisted_33={key:0,class:"relative inline-block ml-2 mt-2 group"},_hoisted_34=["src"],_hoisted_35={key:1,class:"relative group w-full"},_hoisted_36={class:"px-3 flex items-center justify-start b gopacity rounded-t-lg h-12 text-gray-700 dark:text-gray-400"},_hoisted_37={class:"text-gray-500"},_hoisted_38={class:"px-2 flex items-center justify-start rounded-t-lg h-12 text-gray-700 bg-opacity dark:bg-gray-700 dark:text-gray-400 w-full"},_hoisted_39={class:"w-8 h-8 flex-shrink-0 rounded-full flex items-center justify-center overflow-hidden shadow-sm border border-gray-300 mr-3"},_hoisted_40=["src"],_hoisted_41={key:1,class:"w-8 h-8 text-sm font-medium text-gray-700 dark:text-gray-400 rounded-full flex items-center justify-center dark:bg-gray-700"},_hoisted_42={class:"text-md font-bold text-gray-700 dark:text-gray-400 mr-3 flex-shrink-0 flex justify-start"},_hoisted_43={class:"text-sm text-gray-400 dark:text-gray-400 truncate pr-10"},_hoisted_44={class:"px-2 flex items-center justify-start bg-opacity rounded-t-lg h-12 text-gray-700 dark:text-gray-400 w-full dark:bg-gray-700"},_hoisted_45={class:"w-8 h-8 flex-shrink-0 rounded-full flex items-center justify-center overflow-hidden shadow-sm border border-gray-300 mr-3"},_hoisted_46=["src"],_hoisted_47={key:1,class:"w-8 h-8 text-sm font-medium text-gray-700 dark:text-gray-400 rounded-full flex items-center justify-center dark:bg-gray-700"},_hoisted_48={class:"text-md font-bold text-gray-600 dark:text-gray-400 mr-3 flex-shrink-0 flex justify-start"},_hoisted_49={class:"text-sm text-gray-400 dark:text-gray-400 truncate pr-10"},_hoisted_50={class:"flex justify-between flex-grow w-full py-2 px-2"},_hoisted_51={class:"flex justify-start items-end"},_hoisted_52={class:"flex flex-grow items-center justify-center"},_hoisted_53=["placeholder"],_hoisted_54={class:"flex justify-end items-end"},_hoisted_55=["disabled"],_hoisted_56={key:0,class:"w-full flex justify-center items-center text-sm text-gray-500"},_hoisted_57={class:"transition-all text-gray-500 hover:text-gray-600 dark:hover:text-gray-400 ml-2",href:"https://beian.miit.gov.cn",target:"_blank"},initialHeight="1.5rem",_sfc_main$7=defineComponent({__name:"index",emits:["pause-request"],setup(b,{emit:r}){const m=inject("onConversation"),w=useGlobalStoreWithOut(),U=useAuthStore(),k=useChatStore(),x=r,a=ref([{id:"square",title:t("chat.square1"),values:"1:1",aspectRatio:"1 / 1"},{id:"illustration",title:t("chat.illustration"),values:"4:3",aspectRatio:"4 / 3"},{id:"wallpaper",title:t("chat.wallpaper"),values:"16:9",aspectRatio:"16 / 9"},{id:"media",title:t("chat.media"),values:"3:4",aspectRatio:"3 / 4"},{id:"poster",title:t("chat.poster"),values:"9:16",aspectRatio:"9 / 16"}]),g=ref([{title:"6.0",values:"--v 6"},{title:"5.2",values:"--v 5.2"},{title:"卡通",values:"--niji 6"}]),n=ref([{title:t("chat.imageToImage"),values:"imageToImage"},{title:t("chat.faceConsistency"),values:"faceConsistency"},{title:t("chat.styleConsistency"),values:"styleConsistency"}]),c=ref([{id:"default",title:t("chat.square"),values:"1024x1024",aspectRatio:"1024 / 1024"},{id:"landscape",title:t("chat.landscape"),values:"1792x1024",aspectRatio:"1792 / 1024"},{id:"portrait",title:t("chat.portrait"),values:"1024x1792",aspectRatio:"1024 / 1792"}]),R=ref(!1),v=ref(!0),e=ref(),L=ref(!1),O=ref([]),B=ref(""),P=ref(null),S=ref({size:"",style:""}),_=ref(),l=ref("--v 6"),y=ref([]),D=ref(c.value[0]),M=ref(n.value[0]),F=ref(g.value[0]),N=ref(""),G=ref(""),W=ref(""),J=ref(!1),Y=ref(),V=ref(!1),H=ref("");let z=null,X=null;const q=computed(()=>U.globalConfig),$=computed(()=>{var ut,rt;return((ut=q.value)==null?void 0:ut.companyName)&&((rt=q.value)==null?void 0:rt.filingNumber)}),fe=computed(()=>{var ut;return Number((ut=U.globalConfig)==null?void 0:ut.isHideSidebar)===1}),{isMobile:Q}=useBasicLayout(),ie=computed(()=>k.currentPlugin),Te=computed(()=>k.isStreamIn!==void 0?k.isStreamIn:!1),me=computed(()=>k.chatList),K=ref("/api/upload/file"),ce=computed(()=>String(he==null?void 0:he.value.modelInfo.modelName)),de=computed(()=>Number(he==null?void 0:he.value.modelInfo.keyType)),Z=computed(()=>k.active),ae=computed(()=>k.getChatByGroupInfo()),he=computed(()=>{var rt;const ut=(rt=ae.value)==null?void 0:rt.config;if(!ut)return{};try{return JSON.parse(ut)}catch{return{}}}),we=computed(()=>{var ut,rt;return String(((rt=(ut=he==null?void 0:he.value)==null?void 0:ut.fileInfo)==null?void 0:rt.fileParsing)||"")}),_e=computed(()=>{var ut,rt;return String(((rt=(ut=he==null?void 0:he.value)==null?void 0:ut.fileInfo)==null?void 0:rt.fileName)||"")}),ye=computed(()=>{var ut,rt;return String(((rt=(ut=he==null?void 0:he.value)==null?void 0:ut.modelInfo)==null?void 0:rt.model)??"")}),se=computed(()=>{var ut,rt;return Number((rt=(ut=he==null?void 0:he.value)==null?void 0:ut.modelInfo)==null?void 0:rt.isFileUpload)}),Ie=computed(()=>[1,2,3].includes(se.value)),Ce=computed(()=>{var ut;return ye.value==="dall-e-3"||((ut=ie.value)==null?void 0:ut.parameters)==="dall-e-3"}),oe=computed(()=>{var ut;return ye.value==="midjourney"||((ut=ie.value)==null?void 0:ut.parameters)==="midjourney"}),pe=computed(()=>{var ut;return ye.value==="luma-video"||((ut=ie.value)==null?void 0:ut.parameters)==="luma-video"}),xe=computed(()=>w.clipboardText),Ne=computed(()=>Q.value?t("chat.placeholderMobile"):t("chat.placeholder")),ke=computed(()=>Te.value||(!B.value||B.value.trim()==="")&&!H.value),De=(ut,rt=16)=>{const[mt,Ot]=ut.split(" / ").map(Number),dt=mt/Ot;return Ot>mt?{width:`${rt*dt}px`,height:`${rt}px`}:{width:`${rt}px`,height:`${rt/dt}px`}},Fe=ut=>{if(ut.id==="custom"){const rt=`${N.value}:${G.value}`;D.value={...ut,values:rt,aspectRatio:`${N.value} / ${G.value}`},S.value.size=rt}else D.value=ut,S.value.size=ut.values},Pe=ut=>{F.value=ut,l.value=ut.values},qe=ut=>{H||tt(),M.value=ut,_.value=ut.values};function Le(ut){const rt=ut.target||ut,mt=8;rt.style.height="1.5rem";const dt=rt.scrollHeight/rt.value.split(` `).length*mt;rt.style.height=Math.min(rt.scrollHeight,dt)+"px"}const Oe=async ut=>{const mt=ut.target.value;if(J.value=mt.startsWith("@"),X&&clearTimeout(X),J.value&&!V.value){const Ot=mt.slice(1);X=setTimeout(async()=>{if(Ot.length>0)try{const dt=await fetchSearchAppsAPI({keyword:Ot});O.value=dt.data.rows}catch(dt){console.error("Error fetching search results:",dt),O.value=[]}else O.value=[]},1e3)}else O.value=[]},Ee=computed(()=>{var ut,rt;return String(((ut=ie==null?void 0:ie.value)==null?void 0:ut.pluginImg)||((rt=he==null?void 0:he.value.modelInfo)==null?void 0:rt.modelAvatar)||"")}),Ae=()=>{var Ot;const rt=((Ot=q.value)==null?void 0:Ot.drawingStyles.split(",")).sort(()=>.5-Math.random()),mt=Q.value?3:5;y.value=rt.slice(0,mt)};function Ve(ut){B.value&&/,\s*$/.test(B.value)?B.value+=` ${ut}`:B.value?B.value+=`, ${ut}`:B.value=`${ut} ,`,P.value.focus(),P.value.scrollTop=P.value.scrollHeight}const $e=inject("createNewChatGroup",()=>Promise.resolve()),Ue=async ut=>{var Kt,qt,pn,vt,xt,Rt,At,Pt,$t,Wt,Dt,Yt;if(Te.value)return;k.groupList.length===0&&await $e(),k.setStreamIn(!0);let rt="";((Kt=ie.value)==null?void 0:Kt.parameters)==="suno-v3"?rt="LYRICS":((qt=ie.value)==null?void 0:qt.parameters)==="midjourney"&&(_.value==="imageToText"?rt="DESCRIBE":rt="IMAGINE");let mt=((pn=Y==null?void 0:Y.value)==null?void 0:pn.model)||(k==null?void 0:k.activeModel),Ot=((vt=ie==null?void 0:ie.value)==null?void 0:vt.pluginName)||((xt=Y==null?void 0:Y.value)==null?void 0:xt.name)||ce.value;const dt=de.value;(Rt=ie.value)!=null&&Rt.deductType&&((At=ie.value)==null?void 0:At.deductType)!==0&&(mt=(Pt=ie.value)==null?void 0:Pt.parameters);let Nt=(($t=Y==null?void 0:Y.value)==null?void 0:$t.coverImg)||Ee.value,kt;Y!=null&&Y.value?kt=(Wt=Y==null?void 0:Y.value)==null?void 0:Wt.id:kt=(Dt=ae==null?void 0:ae.value)==null?void 0:Dt.appId;let Ut="";(se.value===1||se.value===2||se.value===3&&(z!=null&&z.type.startsWith("image/"))||oe||pe)&&H.value&&(Ut=await He());let Ht=B.value;if(mt==="midjourney"&&rt==="IMAGINE"){if(Ut)switch(_.value){case"faceConsistency":Ht=`${Ht} --cref ${Ut} --cw 100`;break;case"styleConsistency":Ht=`${Ht} --sref ${Ut}`;break;default:Ht=`${Ut} ${Ht}`}if(S.value.size&&!Ht.includes("--ar")){let Vt=S.value.size;switch(Vt){case"1024x1024":Vt="1:1";break;case"1792x1024":Vt="16:9";break;case"1024x1792":Vt="9:16";break}Ht=`${Ht} --ar ${Vt}`}l.value&&!Ht.includes("--v")&&!Ht.includes("--niji")&&(Ht=`${Ht} ${l.value}`)}if(rt==="DESCRIBE"&&Ut&&(Ht="以图生文"),kt)try{Nt=(await fetchQueryOneCatAPI({id:kt})).data.modelAvatar}catch{}B.value="",H.value="",z=null,P.value.style.height="1.5rem",await m({msg:Ht,action:rt,model:mt,modelName:Ot,modelType:dt,modelAvatar:Nt,appId:kt,extraParam:S.value,fileUrl:Ut,pluginParam:(Yt=ie.value)==null?void 0:Yt.parameters}),k.setStreamIn(!1),L.value=!1},He=async()=>{var ut;L.value=!0;try{const rt=new FormData,mt=new Date,Ot=mt.getFullYear(),dt=String(mt.getMonth()+1).padStart(2,"0"),Nt=String(mt.getDate()).padStart(2,"0"),Ut=`userFiles/${`${Ot}${dt}/${Nt}`}`;z&&rt.append("file",z);const Ht=await axios.post(`${K.value}?dir=${encodeURIComponent(Ut)}`,rt,{headers:{"Content-Type":"multipart/form-data"}});return(ut=Ht==null?void 0:Ht.data)==null?void 0:ut.data}catch{return null}finally{L.value=!1,H.value="",z=null}},Qe=async ut=>{var Ot;console.log("文件选择事件触发");const rt=ut.target,mt=(Ot=rt==null?void 0:rt.files)==null?void 0:Ot[0];mt&&await et(mt)},Ze=async ut=>{const mt=(ut.clipboardData||window.clipboardData).items;for(const Ot of mt)if(Ot.kind==="file"){const dt=Ot.getAsFile();dt&&await et(dt)}},et=async ut=>{let rt=ut.name;const mt=25,Ot=rt.split(".").pop()||"";if(rt.length>mt&&(rt=rt.substring(0,mt-Ot.length-1)+"…."+Ot),ut.type.startsWith("image/"))v.value=!1,je(ut);else if(v.value=!0,je(ut),se.value===3){const dt=await Ke();dt&&await st({fileName:rt,fileParsing:dt})}else await st({fileName:rt})},tt=()=>{var ut;(ut=e==null?void 0:e.value)==null||ut.click()},je=async ut=>{z=ut;const rt=new FileReader;rt.onload=mt=>{var Ot;H.value=(Ot=mt.target)==null?void 0:Ot.result},rt.readAsDataURL(ut),e.value=null},Je=async()=>{H.value="",await st({fileParsing:"",fileName:""}),z=null},nt=async()=>{O.value=[],J.value=!1,V.value=!1,Y.value=null,k.setUsingPlugin(null)},Ke=async()=>{L.value=!0;try{if(!z)throw new Error("No file selected");const ut=z,rt=ut.type;let mt="";if(rt.startsWith("text/"))mt=await Ye(ut);else switch(rt){case"application/pdf":mt=await at(ut);break;case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":mt=await ot(ut,"word/document.xml","word");break;case"application/vnd.openxmlformats-officedocument.presentationml.presentation":mt=await ot(ut,"ppt/slides/slide1.xml","ppt");break;case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":mt=await ot(ut,"xl/worksheets/sheet1.xml","excel");break;case"application/xml":case"application/javascript":case"application/xslt+xml":case"application/json":case"application/sql":mt=await Ye(ut);break;default:console.warn("Unsupported file type:",rt),alert("Unsupported file type")}return mt.length>5e4&&(console.warn("Text exceeds 50000 characters, truncating..."),mt=mt.slice(0,5e4)),mt}catch(ut){return console.error(ut),null}finally{L.value=!1,H.value="",z=null}},at=async ut=>{try{const rt=await ut.arrayBuffer(),mt=new Uint8Array(rt),dt=await createLoadingTask(mt).promise;let Nt="";for(let kt=1;kt<=dt.numPages;kt++){const Kt=(await(await dt.getPage(kt)).getTextContent()).items.map(qt=>"str"in qt?qt.str:"").join(" ");Nt+=`{${Kt}} `}return Nt}catch(rt){return console.error("Error reading PDF file:",rt),""}},ot=async(ut,rt,mt)=>{try{const Ot=await ut.arrayBuffer(),Nt=(await JSZip.loadAsync(Ot)).file(rt);if(!Nt)throw new Error(`File path ${rt} not found in the ZIP archive`);const kt=await Nt.async("text"),Ut=await parseStringPromise(kt);return Xe(Ut,mt)}catch(Ot){return console.error(`Error reading ${rt} file:`,Ot),""}},Xe=(ut,rt)=>{let mt="";if(rt==="word"){const Ot=ut["w:document"]["w:body"][0]["w:p"];mt=ze(Ot)}else if(rt==="ppt"){const Ot=ut["p:sld"]["p:cSld"][0]["p:spTree"][0]["p:sp"];Ot&&Ot.forEach(dt=>{if(dt["p:txBody"]){const Nt=dt["p:txBody"][0]["a:p"].map(kt=>kt["a:r"]?kt["a:r"].map(Ut=>Ut["a:t"]).filter(Boolean).join(" "):"");mt+=Nt.join(" ")+` `}})}else if(rt==="excel"){const Ot=ut.worksheet.sheetData[0].row;Ot&&Ot.forEach(dt=>{const Nt=dt.c?dt.c.map(kt=>kt.v).join(" "):"";mt+=Nt+` `})}return mt},ze=ut=>{let rt="";return ut&&ut.forEach(mt=>{const Ot=mt["w:r"]?mt["w:r"].map(dt=>dt["w:t"]).filter(Boolean).join(" "):"";rt+=Ot+` `}),rt},Ye=async ut=>await ut.text(),st=async ut=>{const{modelInfo:rt,fileInfo:mt}=k.activeConfig,Ot={modelInfo:{...rt},fileInfo:{fileParsing:ut.fileParsing!==void 0?ut.fileParsing:mt==null?void 0:mt.fileParsing,fileName:ut.fileName!==void 0?ut.fileName:mt==null?void 0:mt.fileName}},dt={groupId:Z.value,config:JSON.stringify(Ot)};await fetchUpdateGroupAPI(dt),await k.queryMyGroup()},_t=ut=>{Q.value?ut.key==="Enter"&&ut.ctrlKey&&(ut.preventDefault(),Ue()):ut.key==="Enter"&&!ut.shiftKey&&(ut.preventDefault(),Ue())},ft=ut=>{var rt;Y.value=ut,V.value=!0,B.value="",(rt=P.value)==null||rt.focus()},Ct=()=>{x("pause-request"),k.setStreamIn(!1)};return watch([N,G],([ut,rt],[mt,Ot])=>{ut&&rt&&(ut!==mt||rt!==Ot)&&(Fe({id:"custom",title:`${ut}:${rt}`,values:`${ut}:${rt}`,aspectRatio:`${ut} / ${rt}`}),W.value=`${N.value} / ${G.value}`)}),watch(xe,ut=>{var rt;B.value=ut,(rt=P.value)==null||rt.focus(),P.value.scrollTop=P.value.scrollHeight}),watch(me,ut=>{ut.length},{immediate:!0}),onMounted(()=>{Ae(),P.value&&(P.value.style.height=initialHeight,Le({target:P.value})),nextTick(()=>{P.value&&!Q.value&&P.value.focus()})}),(ut,rt)=>{var mt,Ot;return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("footer",{class:normalizeClass(["flex flex-col items-center justify-center w-full",[unref(Q)?"px-2":"px-10",{"mb-3":fe.value&&unref(Q)}]])},[createBaseVNode("div",{class:normalizeClass(["flex pb-2 justify-center w-full flex-col m-auto rounded-lg px-0 border-0 bg-transparent sm:text-sm sm:leading-6 resize-none",[unref(Q)?" mx-2":" pt-1 mx-10 "]]),style:{maxWidth:"64rem"}},[createBaseVNode("div",_hoisted_1$7,[(Ce.value||oe.value)&&!unref(Q)?(openBlock(),createElementBlock("div",_hoisted_2$6,[(openBlock(!0),createElementBlock(Fragment,null,renderList(y.value,(dt,Nt)=>(openBlock(),createElementBlock("button",{key:Nt,onClick:kt=>Ve(dt),class:"mx-1 shadow-sm rounded-md ring-1 ring-gray-300 dark:ring-gray-600 px-2 py-1 my-1 hover:bg-opacity dark:hover:bg-gray-750 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 whitespace-nowrap"},toDisplayString(dt),9,_hoisted_3$6))),128)),createBaseVNode("button",{onClick:Ae,class:"mx-1 shadow-sm rounded-md ring-1 ring-gray-300 dark:ring-gray-600 px-2 py-1 my-1 hover:bg-opacity dark:hover:bg-gray-750 text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 whitespace-nowrap"},[createVNode(unref(ShuffleOne),{theme:"outline",size:"16",class:"my-4"})])])):createCommentVNode("",!0),_hoisted_4$5,createBaseVNode("div",_hoisted_5$5,[oe.value?(openBlock(),createBlock(unref(ge$1),{key:0,as:"div",class:"relative hover:bg-opacity dark:hover:bg-gray-750 inline-block text-left group shadow-sm rounded-md ring-1 ring-gray-300 dark:ring-gray-600 dark:bg-gray-800 mr-3 my-1 py-1 px-2"},{default:withCtx(()=>[createVNode(unref(Se),{class:"inline-flex w-full justify-center rounded-md text-sm text-gray-500 group-hover:text-gray-700 dark:text-gray-500 dark:group-hover:text-gray-300 whitespace-nowrap"},{default:withCtx(()=>[createTextVNode(toDisplayString(M.value.title),1)]),_:1}),createVNode(Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute right-0 bottom-full mb-2 w-28 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 dark:bg-gray-750 dark:text-gray-400"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_6$5,[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.value,(dt,Nt)=>(openBlock(),createBlock(unref(be),{key:Nt},{default:withCtx(()=>[createBaseVNode("div",{class:"group flex items-center",onClick:kt=>qe(dt)},[createBaseVNode("a",_hoisted_8$4,toDisplayString(dt.title),1)],8,_hoisted_7$5)]),_:2},1024))),128))])]),_:1})]),_:1})]),_:1})):createCommentVNode("",!0),oe.value?(openBlock(),createBlock(unref(ge$1),{key:1,as:"div",class:"relative hover:bg-opacity dark:hover:bg-gray-750 inline-block text-left group shadow-sm rounded-md ring-1 ring-gray-300 dark:ring-gray-600 dark:bg-gray-800 mr-3 my-1 py-1 px-2"},{default:withCtx(()=>[createVNode(unref(Se),{class:"inline-flex w-full justify-center rounded-md text-sm text-gray-500 group-hover:text-gray-700 dark:text-gray-500 dark:group-hover:text-gray-300 whitespace-nowrap"},{default:withCtx(()=>[createTextVNode(" 版本:"+toDisplayString(F.value.title),1)]),_:1}),createVNode(Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute right-0 bottom-full mb-2 w-28 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 dark:bg-gray-750 dark:text-gray-400 text-gray-900"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_9$4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(g.value,(dt,Nt)=>(openBlock(),createBlock(unref(be),{key:Nt},{default:withCtx(()=>[createBaseVNode("div",{class:"group flex items-center",onClick:kt=>Pe(dt)},[createBaseVNode("a",_hoisted_11$3,toDisplayString(dt.title),1)],8,_hoisted_10$3)]),_:2},1024))),128))])]),_:1})]),_:1})]),_:1})):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_12$2,[Ce.value?(openBlock(),createBlock(unref(ge$1),{key:0,as:"div",class:"relative hover:bg-opacity dark:hover:bg-gray-750 inline-block text-left group shadow-sm rounded-md ring-1 ring-gray-300 dark:ring-gray-600 dark:bg-gray-800 mr-3 my-1 py-1 px-2"},{default:withCtx(()=>[createVNode(unref(Se),{class:"inline-flex w-full justify-center rounded-md text-sm text-gray-500 group-hover:text-gray-700 dark:text-gray-500 dark:group-hover:text-gray-300 whitespace-nowrap"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(t)("chat.size")+D.value.title),1)]),_:1}),createVNode(Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute right-0 bottom-full mb-2 w-40 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 dark:bg-gray-750 dark:text-gray-400 text-gray-900"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_13$2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(c.value,(dt,Nt)=>(openBlock(),createBlock(unref(be),{key:Nt},{default:withCtx(()=>[createBaseVNode("div",{class:"group flex items-center",onClick:kt=>Fe(dt)},[createBaseVNode("a",_hoisted_15$2,[createBaseVNode("div",_hoisted_16$2,[createBaseVNode("div",{style:normalizeStyle(De(dt.aspectRatio)),class:"flex border border-gray-500 dark:border-gray-300 rounded-sm"},null,4)]),createBaseVNode("div",_hoisted_17$2,toDisplayString(dt.title),1)])],8,_hoisted_14$2)]),_:2},1024))),128))])]),_:1})]),_:1})]),_:1})):createCommentVNode("",!0),pe.value?(openBlock(),createBlock(unref(ge$1),{key:1,as:"div",class:"relative hover:bg-opacity dark:hover:bg-gray-750 inline-block text-left group shadow-sm rounded-md ring-1 ring-gray-300 dark:ring-gray-600 dark:bg-gray-800 mr-3 my-1 py-1 px-2"},{default:withCtx(()=>[createVNode(unref(Se),{class:"inline-flex w-full justify-center rounded-md text-sm text-gray-500 group-hover:text-gray-700 dark:text-gray-500 dark:group-hover:text-gray-300 whitespace-nowrap",onClick:tt},{default:withCtx(()=>[createTextVNode(" 图生视频 ")]),_:1})]),_:1})):createCommentVNode("",!0),oe.value||pe.value?(openBlock(),createBlock(unref(ge$1),{key:2,as:"div",class:"relative hover:bg-opacity dark:hover:bg-gray-750 inline-block text-left group shadow-sm rounded-md ring-1 ring-gray-300 dark:ring-gray-600 dark:bg-gray-800 mr-3 my-1 py-1 px-2"},{default:withCtx(()=>[createVNode(unref(Se),{class:"inline-flex w-full justify-center rounded-md text-sm text-gray-500 group-hover:text-gray-700 dark:text-gray-500 dark:group-hover:text-gray-300 whitespace-nowrap"},{default:withCtx(()=>[createTextVNode(toDisplayString(unref(t)("chat.size")+D.value.title),1)]),_:1}),createVNode(Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute right-0 bottom-full mb-2 w-40 origin-top-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 dark:bg-gray-750 dark:text-gray-400 text-gray-900"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_18$2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(a.value,(dt,Nt)=>(openBlock(),createBlock(unref(be),{key:Nt},{default:withCtx(()=>[createBaseVNode("div",{class:"group flex items-center",onClick:kt=>Fe(dt)},[createBaseVNode("a",_hoisted_20$1,[createBaseVNode("div",_hoisted_21,[createBaseVNode("div",{style:normalizeStyle(De(dt.aspectRatio)),class:"flex border border-gray-500 dark:border-gray-300 rounded-sm"},null,4)]),createBaseVNode("div",_hoisted_22,toDisplayString(dt.title),1)])],8,_hoisted_19$1)]),_:2},1024))),128))])]),_:1})]),_:1})]),_:1})):createCommentVNode("",!0)])])],2),J.value&&!V.value&&!ie.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["flex mb-2 w-full px-2 py-1 justify-center items-center flex-col m-auto rounded-lg shadow-sm ring-1 ring-gray-300 resize-none dark:ring-gray-750 dark:bg-gray-800",[unref(Q)?"mx-2":"mx-10"]]),style:{maxWidth:"64rem",minHeight:"1.5rem"}},[O.value.length===0?(openBlock(),createElementBlock("div",_hoisted_23,_hoisted_25)):createCommentVNode("",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(O.value,dt=>(openBlock(),createElementBlock("div",{key:dt.id,onClick:Nt=>ft(dt),class:"flex items-center bg-white dark:bg-gray-800 hover:bg-gray-100 py-2 px-2 dark:hover:bg-gray-700 rounded-lg w-full cursor-pointer transition duration-150 ease-in-out"},[createBaseVNode("div",_hoisted_27,[dt.coverImg?(openBlock(),createElementBlock("img",{key:0,src:dt.coverImg,alt:"Cover Image",class:"w-8 h-8 rounded-full flex justify-start"},null,8,_hoisted_28)):(openBlock(),createElementBlock("span",_hoisted_29,toDisplayString(dt.name.charAt(0)),1))]),createBaseVNode("h3",_hoisted_30,toDisplayString(dt.name),1),createBaseVNode("p",_hoisted_31,toDisplayString(dt.des),1)],8,_hoisted_26))),128))],2)):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass(["flex mb-2 w-full justify-center items-center flex-col m-auto rounded-lg shadow-sm ring-1 ring-gray-300 focus-within:ring-2 focus-within:ring-primary-500 text-gray-900 placeholder:text-gray-400 border-0 bg-transparent sm:text-sm sm:leading-6 resize-none dark:focus:ring-gray-750 dark:ring-gray-750 dark:bg-gray-750",[unref(Q)?" mx-2":" mx-10 "]]),style:{maxWidth:"64rem",minHeight:"1.5rem"}},[H.value||we.value||V.value||ie.value?(openBlock(),createElementBlock("div",_hoisted_32,[H.value&&!v.value?(openBlock(),createElementBlock("div",_hoisted_33,[createBaseVNode("img",{src:H.value,class:"max-h-16 border border-gray-300 rounded-lg",alt:"预览图片"},null,8,_hoisted_34),createBaseVNode("div",{class:"absolute top-2 right-0 transform -translate-y-1/2 cursor-pointer text-gray-300 group-hover:text-gray-500",onClick:rt[0]||(rt[0]=dt=>Je())},[createVNode(unref(Close),{class:"rounded-full"})])])):createCommentVNode("",!0),v.value&&(H.value||we.value)&&!V.value&&!ie.value?(openBlock(),createElementBlock("div",_hoisted_35,[createBaseVNode("div",_hoisted_36,[createBaseVNode("span",_hoisted_37,toDisplayString(_e.value),1)]),createBaseVNode("div",{class:"absolute top-1/2 right-2 transform -translate-y-1/2 cursor-pointer text-gray-300 group-hover:text-gray-500",onClick:rt[1]||(rt[1]=dt=>Je())},[createVNode(unref(Close),{size:"18",class:"rounded-full"})])])):createCommentVNode("",!0),createBaseVNode("div",{class:"relative group w-full",onMouseover:rt[4]||(rt[4]=dt=>R.value=!0),onMouseleave:rt[5]||(rt[5]=dt=>R.value=!1)},[ie.value?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("div",_hoisted_38,[createBaseVNode("div",_hoisted_39,[ie.value.pluginImg?(openBlock(),createElementBlock("img",{key:0,src:ie.value.pluginImg,alt:"Cover Image",class:"w-8 h-8 rounded-full flex justify-start"},null,8,_hoisted_40)):(openBlock(),createElementBlock("span",_hoisted_41,toDisplayString(ie.value.pluginName.charAt(0)),1))]),createBaseVNode("h3",_hoisted_42,toDisplayString(ie.value.pluginName),1),createBaseVNode("p",_hoisted_43,toDisplayString(ie.value.description),1)]),createBaseVNode("div",{class:"absolute top-1/2 right-2 transform -translate-y-1/2 cursor-pointer text-gray-300 group-hover:text-gray-500",onClick:rt[2]||(rt[2]=dt=>nt())},[createVNode(unref(Close),{size:"18",class:"rounded-full"})])],64)):createCommentVNode("",!0),V.value&&!ie.value?(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode("div",_hoisted_44,[createBaseVNode("div",_hoisted_45,[Y.value.coverImg?(openBlock(),createElementBlock("img",{key:0,src:Y.value.coverImg,alt:"Cover Image",class:"w-8 h-8 rounded-full flex justify-start"},null,8,_hoisted_46)):(openBlock(),createElementBlock("span",_hoisted_47,toDisplayString(Y.value.name.charAt(0)),1))]),createBaseVNode("h3",_hoisted_48,toDisplayString(Y.value.name),1),createBaseVNode("p",_hoisted_49,toDisplayString(Y.value.des),1)]),createBaseVNode("div",{class:"absolute top-1/2 right-2 transform -translate-y-1/2 cursor-pointer text-gray-300 group-hover:text-gray-500",onClick:rt[3]||(rt[3]=dt=>nt())},[createVNode(unref(Close),{size:"18",class:"rounded-full"})])],64)):createCommentVNode("",!0)],32)])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_50,[createBaseVNode("div",_hoisted_51,[(Ie.value&&!ie.value||oe.value||pe.value)&&!L.value?(openBlock(),createBlock(unref(Link),{key:0,size:"24",class:"p-1 text-gray-400 dark:text-gray-600 dark:hover:text-gray-500",onClick:tt})):createCommentVNode("",!0),L.value?(openBlock(),createBlock(unref(LoadingFour),{key:1,size:"24",class:"p-1 rotate-icon text-gray-400 dark:text-gray-600 hover:text-gray-500"})):createCommentVNode("",!0),createBaseVNode("input",{ref_key:"fileInput",ref:e,type:"file",class:"hidden",onChange:Qe,accept:"image/*, .pdf, .txt, .docx, .pptx, .xlsx, .xml, .js, .xslt, .json, .sql"},null,544)]),createBaseVNode("div",_hoisted_52,[withDirectives(createBaseVNode("textarea",{ref_key:"inputRef",ref:P,"onUpdate:modelValue":rt[6]||(rt[6]=dt=>B.value=dt),placeholder:Ne.value,class:"w-full border-0 text-gray-800 placeholder:text-gray-400 dark:placeholder:text-gray-500 bg-transparent text-md leading-6 resize-none dark:text-gray-400 px-2 my-1",onInput:Le,onKeypress:_t,onKeyup:Oe,onPaste:Ze,style:{maxHeight:"30vh",minHeight:"1.5rem"}},null,40,_hoisted_53),[[vModelText,B.value]])]),createBaseVNode("div",_hoisted_54,[Te.value?createCommentVNode("",!0):(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass(["rounded-md text-sm font-semibold text-white dark:hover:text-gray-200 p-2 shadow-sm dark:text-gray-400",{"bg-primary-600 dark:bg-primary-700":!ke.value,"bg-primary-300 dark:bg-gray-700":ke.value}]),disabled:ke.value,onClick:rt[7]||(rt[7]=dt=>Ue())},[createVNode(unref(SendOne),{size:"16"})],10,_hoisted_55)),Te.value?(openBlock(),createElementBlock("button",{key:1,type:"button",class:"rounded-md bg-primary-600 text-sm font-semibold text-white dark:hover:text-gray-200 p-2 shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 dark:bg-primary-900 dark:text-gray-400",onClick:rt[8]||(rt[8]=dt=>Ct())},[createVNode(unref(Square$1),{size:"16"})])):createCommentVNode("",!0)])])],2)],2),$.value&&!unref(Q)?(openBlock(),createElementBlock("div",_hoisted_56,[createTextVNode(toDisplayString(unref(t)("chat.generatedContentDisclaimer"))+" "+toDisplayString((mt=q.value)==null?void 0:mt.companyName)+" ",1),createBaseVNode("a",_hoisted_57,toDisplayString((Ot=q.value)==null?void 0:Ot.filingNumber),1)])):createCommentVNode("",!0)],64)}}}),index_vue_vue_type_style_index_0_lang="",_hoisted_1$6={class:"sticky top-0 left-0 right-0 z-30 dark:border-neutral-800 h-14 select-none"},_hoisted_2$5={class:"relative flex items-center justify-center min-w-0 h-full"},_hoisted_3$5={class:"flex w-full h-full items-center px-4"},_hoisted_4$4={class:"flex items-center pr-2"},_hoisted_5$4={key:0},_hoisted_6$4={class:"flex justify-between items-center h-full w-full"},_hoisted_7$4={class:"py-1"},_hoisted_8$3={class:"py-1"},_hoisted_9$3={class:"py-1"},_hoisted_10$2=["onClick"],_hoisted_11$2={class:"w-7 h-7 rounded-full bg-gray-200 flex items-center justify-center overflow-hidden select-none"},_hoisted_12$1=["src"],_hoisted_13$1={key:1,class:"text-sm font-medium select-none"},_hoisted_14$1={class:"flex flex-col flex-1 select-none"},_hoisted_15$1={href:"#",class:"text-sm select-none"},_hoisted_16$1={key:0,class:"text-xs text-gray-400 line-clamp-1 max-w-60 mr-2 select-none"},_hoisted_17$1={class:"ml-auto"},_hoisted_18$1={key:1,class:"w-4 h-4"},_hoisted_19=["disabled"],_hoisted_20=createBaseVNode("div",{class:"mr-2"},"新对话",-1),_sfc_main$6=defineComponent({__name:"index",emits:["export","toggleUsingContext","clear","scrollBtn"],setup(b,{emit:r}){const m=useAppStore(),w=useChatStore(),U=ref([]),k=ref(null),x=computed(()=>w.groupList),a=computed(()=>m.siderCollapsed),g=computed(()=>w.active),n=computed(()=>w.currentPlugin),{isMobile:c}=useBasicLayout(),R=ref(!1),v=computed(()=>w.getChatByGroupInfo()),e=computed(()=>w.chatList),L=computed(()=>{var G;const N=(G=v.value)==null?void 0:G.config;if(!N)return{};try{return JSON.parse(N)}catch{return{}}}),O=computed(()=>{var N,G;return String(((G=(N=L==null?void 0:L.value)==null?void 0:N.modelInfo)==null?void 0:G.model)??"")}),B=computed(()=>{var N;return((N=v==null?void 0:v.value)==null?void 0:N.appId)||0});let P=ref({}),S=ref([]);watch(B,N=>{N?_(N):k.value=null},{immediate:!0});async function _(N){const G=await fetchQueryOneCatAPI({id:N});k.value=G.data}const l=computed(()=>{var N,G,W,J;return((N=v==null?void 0:v.value)==null?void 0:N.appId)&&(((G=L.value.modelInfo)==null?void 0:G.isFixedModel)===1||((W=L.value.modelInfo)==null?void 0:W.isGPTs)===1)||n.value&&((J=n==null?void 0:n.value)==null?void 0:J.deductType)!==0}),y=inject("createNewChatGroup",()=>Promise.resolve());function D(){m.setSiderCollapsed(!a.value)}async function M(N){var X;const{modelInfo:G,fileInfo:W}=w.activeConfig,{isGPTs:J,isFixedModel:Y,modelName:V}=G,H={modelInfo:{keyType:N.keyType,modelName:((X=v==null?void 0:v.value)!=null&&X.appId?V:N.label)||"",model:N.value,deductType:N.deductType,deduct:N.deduct,isFileUpload:N.isFileUpload,modelAvatar:N.modelAvatar||"",isGPTs:J,isFixedModel:Y},fileInfo:W||{}},z={groupId:g.value,config:JSON.stringify(H)};await fetchUpdateGroupAPI(z),await w.queryMyGroup()}async function F(){try{const N=await fetchQueryModelsListAPI();if(!N.success)return;const{modelMaps:G,modelTypeList:W}=N.data;P.value=G,S.value=W;const Y=Object.values(G).flat().filter(V=>V.keyType===1);U.value=Y.map(V=>({label:V.modelName,value:V.model,deductType:V.deductType,keyType:V.keyType,deduct:V.deduct,isFileUpload:V.isFileUpload,modelAvatar:V.modelAvatar,modelDescription:V.modelDescription}))}catch{}}return onMounted(()=>{F()}),(N,G)=>(openBlock(),createElementBlock("header",_hoisted_1$6,[createBaseVNode("div",_hoisted_2$5,[createBaseVNode("div",_hoisted_3$5,[createBaseVNode("div",_hoisted_4$4,[createBaseVNode("button",{class:"flex items-center justify-center w-5 h-full dark:text-gray-400 text-gray-500",onClick:D},[unref(c)?(openBlock(),createBlock(unref(HamburgerButton),{key:1,size:"24"})):(openBlock(),createElementBlock("div",_hoisted_5$4,[a.value?(openBlock(),createBlock(unref(Right),{key:0,theme:"outline",size:"24"})):(openBlock(),createBlock(unref(Left),{key:1,theme:"outline",size:"24"}))]))])]),createBaseVNode("div",_hoisted_6$4,[l.value?(openBlock(),createBlock(unref(ge$1),{key:0,as:"div",class:"relative flex-1 flex ele-drag items-center justify-between h-full"},{default:withCtx(()=>[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_7$4,[createVNode(unref(Se),{class:"inline-flex w-full justify-center gap-x-1.5 rounded-md px-3 py-2 text-sm font-semibold hover:bg-gray-50 dark:hover:bg-gray-800 dark:text-gray-400 text-gray-700"},{default:withCtx(()=>{var W,J;return[createTextVNode(toDisplayString(((W=n.value)==null?void 0:W.pluginName)||((J=v.value)==null?void 0:J.title)||"新对话"),1)]}),_:1})])])]),_:1})):(openBlock(),createBlock(unref(ge$1),{key:1,as:"div",class:"relative flex-1 flex ele-drag items-center h-full justify-between"},{default:withCtx(()=>[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_8$3,[createVNode(unref(Se),{class:"inline-flex w-full justify-center gap-x-1.5 rounded-md px-3 py-2 text-sm font-semibold hover:bg-gray-50 dark:hover:bg-gray-750 dark:text-gray-400 text-gray-500",onMouseover:G[0]||(G[0]=W=>R.value=!0),onMouseleave:G[1]||(G[1]=W=>R.value=!1)},{default:withCtx(()=>{var W,J;return[createTextVNode(toDisplayString(((J=(W=L.value)==null?void 0:W.modelInfo)==null?void 0:J.modelName)||"新对话")+" ",1),R.value||unref(c)?(openBlock(),createBlock(unref(Right),{key:0,size:"20",class:normalizeClass(["justify-center items-center",{"text-base font-bold":unref(c),"text-sm":!unref(c)}])},null,8,["class"])):createCommentVNode("",!0)]}),_:1})])]),createVNode(Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute top-full z-10 origin-top-left divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 dark:bg-gray-750 dark:text-gray-400 text-gray-900 overflow-y-auto",style:{maxHeight:"60vh"}},{default:withCtx(()=>[createBaseVNode("div",_hoisted_9$3,[(openBlock(!0),createElementBlock(Fragment,null,renderList(U.value,(W,J)=>(openBlock(),createBlock(unref(be),{key:J},{default:withCtx(()=>[createBaseVNode("div",{class:"flex items-center space-x-4 mx-2 hover:bg-gray-100 dark:hover:bg-gray-700 p-2 rounded-md select-none",onClick:Y=>M(W)},[createBaseVNode("div",_hoisted_11$2,[W.modelAvatar?(openBlock(),createElementBlock("img",{key:0,src:W.modelAvatar,alt:"app cover",class:"w-full h-full object-cover"},null,8,_hoisted_12$1)):(openBlock(),createElementBlock("span",_hoisted_13$1,toDisplayString(W.label.charAt(0)),1))]),createBaseVNode("div",_hoisted_14$1,[createBaseVNode("a",_hoisted_15$1,toDisplayString(W.label),1),W.modelDescription?(openBlock(),createElementBlock("div",_hoisted_16$1,toDisplayString(W.modelDescription),1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_17$1,[O.value===W.value?(openBlock(),createBlock(unref(CheckOne),{key:0,theme:"filled",size:"16",class:"dark:text-gray-500"})):(openBlock(),createElementBlock("div",_hoisted_18$1))])],8,_hoisted_10$2)]),_:2},1024))),128))])]),_:1})]),_:1})]),_:1})),createBaseVNode("button",{type:"button",class:"rounded-md py-2 px-3 text-sm focus-visible:outline-none text-gray-500 hover:text-gray-700 dark:hover:text-gray-400 hover:bg-gray-50 flex items-center dark:hover:bg-gray-750 font-semibold",onClick:G[2]||(G[2]=W=>unref(y)()),disabled:e.value.length===0&&!B.value&&x.value.length!==0},[_hoisted_20,createVNode(unref(EditTwo),{size:"20"})],8,_hoisted_19)])])])]))}});function useChat(){const b=useChatStore();return{addGroupChat:U=>{b.addGroupChat(U)},updateGroupChat:(U,k)=>{b.updateGroupChat(U,k)},updateGroupChatSome:(U,k)=>{b.updateGroupChatSome(U,k)}}}function useCopyCode(){function b(){document.querySelectorAll(".code-block-wrapper").forEach(m=>{const w=m.querySelector(".code-block-header__copy"),U=m.querySelector(".code-block-body");w&&U&&w.addEventListener("click",()=>{var k;(k=navigator.clipboard)!=null&&k.writeText?navigator.clipboard.writeText(U.textContent??""):copyText({text:U.textContent??"",origin:!0})})})}onMounted(()=>b()),onUpdated(()=>b())}let isInteracting=!1,interactionTimeoutId;function useScroll(){const b=ref(null);let r=0;const m=async()=>{await nextTick(),b.value&&(b.value.scrollTop=b.value.scrollHeight)},w=async()=>{await nextTick(),b.value&&(b.value.scrollTop=0)};async function U(){if(await nextTick(),b.value){const g=b.value.scrollHeight-b.value.scrollTop-b.value.clientHeight;!isInteracting&&g<=200&&(b.value.scrollTop=b.value.scrollHeight)}}const k=()=>{interactionTimeoutId!==void 0&&clearTimeout(interactionTimeoutId),isInteracting=!0,interactionTimeoutId=window.setTimeout(()=>{isInteracting=!1},2e3)},x=()=>{if(b.value){const a=b.value.scrollTop;a{b.value&&b.value.addEventListener("scroll",x,!0)}),onUnmounted(()=>{b.value&&b.value.removeEventListener("scroll",x,!0)}),{scrollRef:b,scrollToBottom:m,scrollToTop:w,scrollToBottomIfAtBottom:U}}const _hoisted_1$5={class:"h-full flex flex-col pb-2 bg-white dark:bg-gray-800"},_hoisted_2$4={class:"flex-1 overflow-hidden"},_hoisted_3$4={class:"sticky bottom-0 left-0 flex justify-center mb-1 p-1"},_sfc_main$5=defineComponent({__name:"chatBase",setup(b){const r=useRoute(),m=useDialog(),w=useMessage(),{isMobile:U}=useBasicLayout(),{scrollRef:k,scrollToBottom:x,scrollToBottomIfAtBottom:a}=useScroll();useCopyCode();const g=useGlobalStoreWithOut(),n=useAuthStore(),c=useChatStore(),R=ref(),v=ref(!0),e=ref(!1),L=ref(new AbortController),O=computed(()=>c.groupList),B=computed(()=>r.query.trade_status),P=computed(()=>r.query.token),S=computed(()=>n.isLogin),_=computed(()=>c.currentPlugin),l=computed(()=>c.chatList),y=computed(()=>c.active),D=computed(()=>c.getChatByGroupInfo()),M=computed(()=>{var Z;const de=(Z=D.value)==null?void 0:Z.config;if(!de)return{};try{return JSON.parse(de)}catch{return{}}}),F=computed(()=>{var de,Z;return String(((Z=(de=M==null?void 0:M.value)==null?void 0:de.fileInfo)==null?void 0:Z.fileParsing)||"")}),N=computed(()=>{var de,Z;return String(((Z=(de=M==null?void 0:M.value)==null?void 0:de.modelInfo)==null?void 0:Z.model)||"")}),G=computed(()=>{var de;return String(((de=_==null?void 0:_.value)==null?void 0:de.pluginName)||(M==null?void 0:M.value.modelInfo.modelName)||"AI")}),W=computed(()=>Number((M==null?void 0:M.value.modelInfo.keyType)||1)),J=computed(()=>{var de,Z;return String(((de=_==null?void 0:_.value)==null?void 0:de.pluginImg)||((Z=M==null?void 0:M.value.modelInfo)==null?void 0:Z.modelAvatar)||"")}),Y=computed(()=>{var de;return((de=D==null?void 0:D.value)==null?void 0:de.appId)||0}),{addGroupChat:V,updateGroupChat:H,updateGroupChatSome:z}=useChat(),X=()=>{const de=k.value;if(!de)return;if(!(de.scrollHeight>de.clientHeight)){e.value=!0;return}const ae=R.value.getBoundingClientRect();e.value=ae.top{R.value.scrollIntoView({behavior:"smooth"})},$=inject("createNewChatGroup",()=>Promise.resolve()),fe=async({msg:de,action:Z,drawId:ae,customId:he,model:we,modelName:_e,modelType:ye,modelAvatar:se,appId:Ie,extraParam:Ce,fileUrl:oe,chatId:pe})=>{var He,Qe,Ze,et;O.value.length===0&&await $(),pe&&(await c.deleteChatsAfterId(pe),me.value+=1),c.setStreamIn(!0);const xe=_e||G.value,Ne=ye||W.value||1,ke=se||J.value,De=Ie||Y.value;let Fe=de||"提问",Pe=we||N.value;L.value=new AbortController,(He=_.value)!=null&&He.deductType&&((Qe=_.value)==null?void 0:Qe.deductType)!==0&&(Pe=(Ze=_.value)==null?void 0:Ze.parameters),V({text:Fe,model:Pe,modelName:_e,modelType:ye,inversion:!0,fileInfo:oe});let qe={groupId:+y.value,fileParsing:F.value};V({text:"",model:Pe,modelName:_e,modelType:ye,loading:!0,inversion:!1,error:!1,modelAvatar:ke,status:2,pluginParam:(et=_.value)==null?void 0:et.parameters}),await x();const Le=null;let Oe=null;c.setStreamIn(!0),g.updateIsChatIn(!0);const Ee=async()=>{Pe==="dall-e-3"||Pe==="midjourney"||Pe==="suno-v3"||Pe==="stable-diffusion"||Pe==="luma-video"?await Ae():await Ve()},Ae=async()=>{var tt;try{const je=await fetchChatAPIProcess({prompt:Fe,fileInfo:oe||"",model:Pe,modelName:xe,modelAvatar:ke,modelType:2,action:Z,drawId:ae||"",customId:he,options:qe,usingPluginId:((tt=_.value)==null?void 0:tt.pluginId)||0,extraParam:Ce||{},signal:L.value.signal});$e(je)}catch{}},Ve=async()=>{var Je;let tt="",je=0;try{await fetchChatAPIProcess({model:Pe,modelName:xe,modelType:Ne,prompt:de,usingPluginId:((Je=_.value)==null?void 0:Je.pluginId)||0,fileInfo:oe,appId:De||0,modelAvatar:ke,options:qe,signal:L.value.signal,onDownloadProgress:({event:nt})=>{const at=nt.target.responseText,ot=at.substring(je);je=at.length,ot.trim().split(` `).forEach(ze=>{try{const Ye=JSON.parse(ze);Ye.userBalance&&n.updateUserBalance(Ye.userBalance),Ye.text&&(tt+=Ye.text)}catch{}}),H(l.value.length-1,{chatId:Oe==null?void 0:Oe.chatId,text:tt,modelType:1,modelName:xe,error:!1,loading:!0,fileInfo:Oe==null?void 0:Oe.fileInfo}),a()}})}catch(nt){Ue(nt)}finally{g.updateIsChatIn(!1),z(l.value.length-1,{loading:!1})}},$e=tt=>{if(!tt)return;const{modelName:je,model:Je,drawId:nt,customId:Ke,text:at,status:ot,fileInfo:Xe,userBalance:ze,pluginParam:Ye}=tt,st=l.value.length-1;H(st,{text:at,model:Je,modelType:2,modelName:je,inversion:!1,drawId:nt,customId:Ke,error:!1,loading:!1,fileInfo:Xe,status:ot,pluginParam:Ye}),x(),Object.keys(ze).length&&n.updateUserBalance(ze)},Ue=tt=>{if(console.error("fetchChatAPIProcess error:",tt),g.updateIsChatIn(!1),clearInterval(Le),c.setStreamIn(!1),(tt.code===402||tt!=null&&tt.message.includes("余额不足")||tt!=null&&tt.message.includes("体验额度使用完毕"))&&(S.value?g.updateGoodsDialog(!0):n.setLoginDialog(!0)),tt!=null&&tt.message.includes("canceled")){z(l.value.length-1,{loading:!1}),a(),setTimeout(()=>{n.getUserBalance()},200);return}const je=l.value[l.value.length-1];H(l.value.length-1,{chatId:Oe==null?void 0:Oe.chatId,ttsUrl:Oe==null?void 0:Oe.ttsUrl,taskData:Oe==null?void 0:Oe.taskData,videoUrl:Oe==null?void 0:Oe.videoUrl,audioUrl:Oe==null?void 0:Oe.audioUrl,status:Oe==null?void 0:Oe.status,action:Oe==null?void 0:Oe.action,text:je.text===""?"":je.text,inversion:!1,loading:!1,fileInfo:Oe==null?void 0:Oe.fileInfo,conversationOptions:null,pluginParam:Oe==null?void 0:Oe.pluginParam}),a()};await Ee(),c.setStreamIn(!1),await new Promise(tt=>setTimeout(tt,3e3)),await c.queryActiveChatLogList()},Q=()=>{L.value.abort(),c.setStreamIn(!1),setTimeout(x,1e3)},ie=async de=>{try{n.setToken(de),await router.replace({name:"Chat",query:{}}),w.success("账户登录成功、开始体验吧!"),await n.getUserInfo()}catch(Z){console.error("登录过程中发生错误:",Z)}},Te=async()=>{B.value.toLowerCase().includes("success")?(w.success("感谢你的购买、祝您使用愉快~",{duration:5e3}),await n.getUserInfo(),router.replace({name:"Chat",query:{}})):w.error("您还没有购买成功哦~")},me=ref(0),K=async({chatId:de})=>{m.warning({title:t("chat.deleteMessage"),content:t("chat.deleteMessageConfirm"),positiveText:t("common.yes"),negativeText:t("common.no"),onPositiveClick:async()=>{await c.deleteChatById(de),me.value+=1,w.success(t("chat.deleteSuccess"))}})},ce=async(de,Z)=>{if(console.log("index",de),c.groupList.length===0||de===0)return;let ae="";if(de&&typeof de=="number"){const{text:he,inversion:we}=l.value[de-1];if(he&&(ae=he),!we)return}fe({msg:ae,chatId:Z-1}),x()};return watch(l,de=>{de.length!==0&&v.value&&(v.value=!1,x())},{immediate:!0}),watch(k,()=>{X()},{flush:"post"}),onMounted(async()=>{P.value&&ie(P.value),B.value&&Te(),await nextTick(async()=>{await c.queryActiveChatLogList()})}),onMounted(()=>{const de=k.value;de&&de.addEventListener("scroll",X)}),provide("onConversation",fe),provide("handleRegenerate",ce),(de,Z)=>(openBlock(),createElementBlock("div",_hoisted_1$5,[createVNode(_sfc_main$6),createBaseVNode("main",_hoisted_2$4,[createBaseVNode("div",{id:"scrollRef",ref_key:"scrollRef",ref:k,class:"relative h-full overflow-hidden overflow-y-auto scroll-smooth"},[createBaseVNode("div",{id:"image-wrapper",class:normalizeClass(["w-full m-auto h-full mx-auto",[unref(U)?"p-3":"p-3 w-full"]]),style:{maxWidth:"64rem"}},[!l.value.length&&!Y.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["flex justify-center items-center text-center",[unref(U)?"h-full":"h-4/5 "]])},[createVNode(_sfc_main$9)],2)):createCommentVNode("",!0),!l.value.length&&Y.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["flex justify-center items-center",[unref(U)?"h-full":"h-4/5 "]])},[createVNode(_sfc_main$8,{appId:Y.value},null,8,["appId"])],2)):createCommentVNode("",!0),l.value.length?(openBlock(),createElementBlock("div",{key:me.value},[(openBlock(!0),createElementBlock(Fragment,null,renderList(l.value,(ae,he)=>(openBlock(),createBlock(unref(_sfc_main$a),{index:he,chatId:ae.chatId,text:ae.text,model:ae.model,modelType:ae.modelType,modelName:ae.modelName,modelAvatar:ae.modelAvatar,status:ae.status,fileInfo:ae.fileInfo,ttsUrl:ae.ttsUrl,taskData:ae.taskData,videoUrl:ae.videoUrl,audioUrl:ae.audioUrl,action:ae.action,inversion:ae.inversion,loading:ae.loading,drawId:ae.drawId,customId:ae.customId,pluginParam:ae.pluginParam,onDelete:we=>K(ae)},null,8,["index","chatId","text","model","modelType","modelName","modelAvatar","status","fileInfo","ttsUrl","taskData","videoUrl","audioUrl","action","inversion","loading","drawId","customId","pluginParam","onDelete"]))),256)),createBaseVNode("div",_hoisted_3$4,[e.value?createCommentVNode("",!0):(openBlock(),createBlock(unref(DownSmall),{key:0,size:"24",class:"bg-white p-1 shadow-sm rounded-full border text-gray-700 border-gray-400 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-500",onClick:q,theme:"outline",strokeWidth:2}))])])):createCommentVNode("",!0),createBaseVNode("div",{ref_key:"bottomContainer",ref:R,class:"bottom"},null,512)],2)],512)]),createVNode(_sfc_main$7,{onPauseRequest:Q})]))}}),chatBase_vue_vue_type_style_index_0_lang="",logo=""+new URL("logo-89dd0dfe.png",import.meta.url).href;function debounce(b,r){let m;return(...w)=>{const U=()=>{clearTimeout(m),b(...w)};clearTimeout(m),m=setTimeout(U,r)}}function render$1(b,r){return openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[createBaseVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function render(b,r){return openBlock(),createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[createBaseVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"})])}const _hoisted_1$4={class:"mt-3 mb-1 text-xs font-bold"},_hoisted_2$3={class:"ml-1"},_hoisted_3$3=["onClick"],_hoisted_4$3={class:"flex items-center"},_hoisted_5$3=["onUpdate:modelValue","onKeypress"],_hoisted_6$3={key:1,class:"flex-1 truncate max-w-48"},_hoisted_7$3={key:0,class:"absolute z-10 right-2"},_hoisted_8$2={class:"py-1"},_hoisted_9$2=["onClick"],_hoisted_10$1=["onClick"],_hoisted_11$1=["onClick"],_sfc_main$4=defineComponent({__name:"ListItem",props:{dataSources:{},title:{}},emits:["update","delete","sticky","select"],setup(b,{emit:r}){const m=b,w=r,U=m.dataSources,k=useChatStore();async function x(L){w("select",L)}function a(L,O,B){B==null||B.stopPropagation(),L.isEdit=O}async function g(L,O){O==null||O.stopPropagation(),await k.updateGroupInfo({isSticky:!L.isSticky,groupId:L.uuid})}async function n(L,O){O==null||O.stopPropagation(),w("delete",L)}const c=debounce(n,600);async function R(L){const{uuid:O,title:B}=L;L.isEdit=!1,await k.updateGroupInfo({groupId:O,title:B})}async function v(L,O){O==null||O.stopPropagation(),O.key==="Enter"&&R(L)}function e(L){return k.active===L}return(L,O)=>{var P;const B=resolveDirective("focus");return openBlock(),createElementBlock(Fragment,null,[createBaseVNode("p",_hoisted_1$4,[createTextVNode(toDisplayString(m.title)+" ",1),createBaseVNode("span",_hoisted_2$3,"("+toDisplayString((P=unref(U))==null?void 0:P.length)+")",1)]),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(U),S=>(openBlock(),createElementBlock("div",{key:`${S.uuid}`},[createBaseVNode("div",{class:normalizeClass(["relative flex items-center gap-3 px-3 py-2 break-all rounded-md cursor-pointer hover:bg-white group dark:hover:bg-gray-800 font-medium text-sm",e(S.uuid)?["bg-white","text-primary-600","dark:bg-gray-800","dark:text-white"]:["text-gray-700","dark:bg-gray-900","dark:text-gray-400"]]),onClick:_=>x(S)},[createBaseVNode("div",_hoisted_4$3,[S.isEdit?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":_=>S.title=_,type:"text",class:"bg-transparent border border-gray-200 dark:border-gray-400 px-1 shadow-none flex-1 truncate",onKeypress:_=>v(S,_)},null,40,_hoisted_5$3)),[[vModelText,S.title],[B]]):(openBlock(),createElementBlock("span",_hoisted_6$3,toDisplayString(S.title),1)),S.isEdit?(openBlock(),createBlock(unref(render$1),{key:2,class:"h-5 w-5 ml-2","aria-hidden":"true",onClick:_=>R(S)},null,8,["onClick"])):createCommentVNode("",!0)]),e(S.uuid)?(openBlock(),createElementBlock("div",_hoisted_7$3,[S.isEdit?createCommentVNode("",!0):(openBlock(),createBlock(unref(ge$1),{key:0,as:"div",class:"relative inline-block text-left"},{default:withCtx(()=>[createVNode(unref(Se),{class:"p-1"},{default:withCtx(()=>[createVNode(unref(render),{class:"h-5 w-5","aria-hidden":"true"})]),_:1}),createVNode(Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute right-0 z-10 mt-2 w-32 text-gray-700 dark:text-gray-400 origin-top-right text-b rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none bg-primary-100 dark:bg-gray-800"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_8$2,[createVNode(unref(be),{as:"template"},{default:withCtx(({active:_})=>[createBaseVNode("button",{class:normalizeClass([_?"flex items-center bg-gray-100 dark:bg-gray-700 ":"flex items-center ","block w-full px-4 py-2 text-left text-sm"]),onClick:l=>a(S,!0,l)},toDisplayString(unref(t)("chat.rename")),11,_hoisted_9$2)]),_:2},1024),createVNode(unref(be),{as:"template"},{default:withCtx(({active:_})=>[createBaseVNode("button",{class:normalizeClass([_?"flex items-end mr-3 bg-gray-100 dark:bg-gray-700":"flex items-end ","block w-full px-4 py-2 text-left text-sm"]),onClick:l=>g(S,l)},toDisplayString(S.isSticky?unref(t)("chat.unfavorite"):unref(t)("chat.favoriteConversations")),11,_hoisted_10$1)]),_:2},1024),createVNode(unref(be),{as:"template"},{default:withCtx(({active:_})=>[createBaseVNode("button",{class:normalizeClass([_?"flex items-center bg-gray-100 dark:bg-gray-700":"flex items-center ","block w-full px-4 py-2 text-left text-sm"]),onClick:l=>unref(c)(S,l)},toDisplayString(unref(t)("chat.deleteConversation")),11,_hoisted_11$1)]),_:2},1024)])]),_:2},1024)]),_:2},1024)]),_:2},1024))])):createCommentVNode("",!0)],10,_hoisted_3$3)]))),128))],64)}}}),_hoisted_1$3={class:"flex flex-col gap-3 text-sm"},_hoisted_2$2={key:0,class:"flex flex-col items-center mt-4 text-center text-neutral-300"},_hoisted_3$2={class:"mt-3 mb-1 text-xs font-bold"},_hoisted_4$2=["onClick"],_hoisted_5$2={class:"w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center overflow-hidden"},_hoisted_6$2=["src"],_hoisted_7$2={key:1,class:"text-sm font-medium"},_sfc_main$3=defineComponent({__name:"List",setup(b){const{isMobile:r}=useBasicLayout(),m=useRouter(),w=useRoute(),U=useAppStore(),k=useChatStore(),x=useAuthStore(),a=useMessage(),g=ref(100),n=useAppCatStore(),c=ref(!1),R=ref(!1),v=computed(()=>k.groupList),e=computed(()=>k.groupKeyWord);watch(v,()=>g.value=g.value+1),watch(e,()=>g.value=g.value+1);const L=computed(()=>k.isStreamIn!==void 0?k.isStreamIn:!1);computed(()=>x.isLogin);const O=inject("createNewChatGroup",async J=>{}),B=computed(()=>n.mineApps);function P(J){const V=new Date(J).getTime()+8*60*60*1e3;return new Date(V).getTime()}const S=new Date().setHours(0,0,0,0),_=computed(()=>v.value.filter(J=>e.value?J.title.includes(e.value)&&J.isSticky:J.isSticky)),l=computed(()=>v.value.filter(J=>e.value?J.title.includes(e.value)&&!J.isSticky&&P(J.updatedAt)>=S:!J.isSticky&&P(J.updatedAt)>=S)),y=computed(()=>v.value.filter(J=>e.value?J.title.includes(e.value)&&!J.isSticky&&P(J.updatedAt)x.isLogin,(J,Y)=>{J===!0&&(n.queryMineApps(),k.queryMyGroup())},{immediate:!0}),(J,Y)=>(openBlock(),createBlock(unref(NScrollbar),{class:"px-4"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$3,[v.value.length?(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode("p",_hoisted_3$2,toDisplayString(unref(t)("chat.myApps")),1),(openBlock(!0),createElementBlock(Fragment,null,renderList(R.value?B.value:B.value.slice(0,4),V=>(openBlock(),createElementBlock("div",{key:V.appId,onClick:H=>M(V.appId),class:"relative flex items-center gap-3 px-3 py-1 break-all rounded-md cursor-pointer hover:bg-white group dark:hover:bg-gray-800 font-medium text-sm 'text-gray-700', 'dark:bg-gray-900', 'dark:text-gray-400'"},[createBaseVNode("div",_hoisted_5$2,[V.coverImg?(openBlock(),createElementBlock("img",{key:0,src:V.coverImg,alt:"app cover",class:"w-full h-full object-cover"},null,8,_hoisted_6$2)):(openBlock(),createElementBlock("span",_hoisted_7$2,toDisplayString(V.appName.charAt(0)),1))]),createBaseVNode("button",null,toDisplayString(V.appName),1)],8,_hoisted_4$2))),128)),B.value.length>4?(openBlock(),createElementBlock("button",{key:0,class:"relative flex items-center gap-3 px-3 break-all rounded-md cursor-pointer text-gray-900 dark:text-gray-400 text-xs font-bold",onClick:Y[0]||(Y[0]=V=>R.value=!R.value)},[createTextVNode(toDisplayString(R.value?unref(t)("chat.collapse"):unref(t)("chat.more"))+" ",1),R.value?(openBlock(),createBlock(unref(Up),{key:1,theme:"outline",size:"20"})):(openBlock(),createBlock(unref(Down),{key:0,theme:"outline",size:"20"}))])):createCommentVNode("",!0),createBaseVNode("div",{class:"relative flex items-center gap-3 px-3 py-1 break-all rounded-md cursor-pointer hover:bg-white group dark:hover:bg-gray-800 font-medium text-sm 'text-gray-700', 'dark:bg-gray-900', 'dark:text-gray-400'",onClick:W},[createVNode(unref(ApplicationTwo),{theme:"outline",size:"25",class:"ml-1 mr-1 text-sm my-1 text-gray-600"}),createTextVNode(" "+toDisplayString(unref(t)("chat.appSquare")),1)]),_.value.length?(openBlock(),createBlock(_sfc_main$4,{key:`stickyList-${c.value}-${_.value}`,title:unref(t)("chat.favorites"),"data-sources":c.value?_.value:_.value.slice(0,5),onSelect:D,onDelete:F},null,8,["title","data-sources"])):createCommentVNode("",!0),_.value.length>5?(openBlock(),createElementBlock("button",{key:2,class:"relative flex items-center gap-3 px-3 break-all rounded-md cursor-pointer text-gray-900 dark:text-gray-400 text-xs font-bold",onClick:Y[1]||(Y[1]=V=>c.value=!c.value)},[createTextVNode(toDisplayString(c.value?unref(t)("chat.collapse"):unref(t)("chat.more"))+" ",1),c.value?(openBlock(),createBlock(unref(Up),{key:1,theme:"outline",size:"20"})):(openBlock(),createBlock(unref(Down),{key:0,theme:"outline",size:"20"}))])):createCommentVNode("",!0),l.value.length?(openBlock(),createBlock(_sfc_main$4,{key:3e3+g.value,title:unref(t)("chat.todayConversations"),"data-sources":l.value,onSelect:D,onDelete:F},null,8,["title","data-sources"])):createCommentVNode("",!0),y.value.length?(openBlock(),createBlock(_sfc_main$4,{key:4e3+g.value,title:unref(t)("chat.historyConversations"),"data-sources":y.value,onSelect:D,onDelete:F},null,8,["title","data-sources"])):createCommentVNode("",!0)],64)):(openBlock(),createElementBlock("div",_hoisted_2$2,[createVNode(unref(_sfc_main$j),{icon:"ri:inbox-line",class:"mb-2 text-3xl"}),createBaseVNode("span",null,toDisplayString(J.$t("common.noData")),1)]))])]),_:1}))}}),_hoisted_1$2={class:"flex flex-col gap-3 px-4 py-1 overflow-y-auto max-h-full noScrollbar",style:{"-ms-overflow-style":"none","scrollbar-width":"none"}},_hoisted_2$1={class:"flex items-center justify-between w-full my-1"},_hoisted_3$1={class:"flex items-center space-x-2"},_hoisted_4$1={class:"w-8 h-8 rounded-full bg-gray-200 dark:bg-gray-500 flex items-center justify-center overflow-hidden shadow-sm border border-gray-300"},_hoisted_5$1=["src"],_hoisted_6$1={key:1,class:"text-sm font-medium"},_hoisted_7$1={class:"line-clamp-1 overflow-hidden text-ellipsis w-32 block whitespace-nowrap font-medium text-base text-gray-700 dark:text-gray-100"},_hoisted_8$1=createBaseVNode("span",{"aria-hidden":"true",class:"pointer-events-none absolute h-full w-full rounded-full bg-white dark:bg-transparent"},null,-1),_hoisted_9$1={class:"min-h-[2rem] text-xs line-clamp-2 text-gray-600 dark:text-gray-400 mb-2"},_sfc_main$2=defineComponent({__name:"Plugin",setup(b){const r=useChatStore(),m=ref(100),w=computed(()=>r.groupList),U=computed(()=>r.groupKeyWord),k=[],x=computed(()=>{var n;return(n=r.pluginList)!=null&&n.length?r.pluginList:k});watch(w,()=>m.value=m.value+1),watch(U,()=>m.value=m.value+1);const a=computed(()=>r.currentPlugin);w.value.filter(n=>U.value?n.title.includes(U.value)&&n.isSticky:n.isSticky);function g(n){var c;((c=a.value)==null?void 0:c.parameters)===n.parameters?r.setUsingPlugin(null):r.setUsingPlugin(n)}return onMounted(()=>{r.queryPlugins(),r.queryMyGroup()}),(n,c)=>(openBlock(),createElementBlock("div",_hoisted_1$2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(x.value,R=>(openBlock(),createElementBlock("div",{key:R.parameters,class:"select-none relative h-26 bg-white shadow flex flex-col items-start gap-3 px-3 py-1 break-all rounded-lg cursor-pointer group font-medium dark:bg-gray-800"},[createBaseVNode("div",_hoisted_2$1,[createBaseVNode("div",_hoisted_3$1,[createBaseVNode("div",_hoisted_4$1,[R.pluginImg?(openBlock(),createElementBlock("img",{key:0,src:R.pluginImg,alt:"App cover",class:"w-full h-full object-cover"},null,8,_hoisted_5$1)):(openBlock(),createElementBlock("span",_hoisted_6$1,toDisplayString(R.pluginName.charAt(0)),1))]),createBaseVNode("span",_hoisted_7$1,toDisplayString(R.pluginName),1)]),createVNode(unref(ue),{class:normalizeClass(["group relative inline-flex h-5 w-10 flex-shrink-0 cursor-pointer items-center justify-center rounded-full focus:outline-none"]),onClick:withModifiers(v=>g(R),["prevent"])},{default:withCtx(()=>{var v,e;return[_hoisted_8$1,createBaseVNode("span",{"aria-hidden":"true",class:normalizeClass([((v=a.value)==null?void 0:v.parameters)===R.parameters?"bg-indigo-600":"bg-gray-200 dark:bg-gray-700","pointer-events-none absolute mx-auto h-4 w-9 rounded-full transition-colors duration-200 ease-in-out"])},null,2),createBaseVNode("span",{"aria-hidden":"true",class:normalizeClass([((e=a.value)==null?void 0:e.parameters)===R.parameters?"translate-x-5":"translate-x-0","pointer-events-none absolute left-0 inline-block h-5 w-5 transform rounded-full border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-500 shadow ring-0 transition-transform duration-200 ease-in-out"])},null,2)]}),_:2},1032,["onClick"])]),createBaseVNode("div",null,[createBaseVNode("span",_hoisted_9$1,toDisplayString(R.description),1)])]))),128))]))}}),_hoisted_1$1={class:"flex flex-col h-full flex-1"},_hoisted_2={key:0,class:"flex bg-opacity w-full justify-between items-center px-4 dark:bg-gray-900 h-14"},_hoisted_3={class:"w-full flex justify-center space-x-2 font-medium rounded-full bg-gray-100 dark:bg-gray-800 shadow-sm"},_hoisted_4={key:1,class:"flex bg-opacity w-full justify-between items-center px-4 dark:bg-gray-900 h-14"},_hoisted_5={class:"w-full py-1 text-primary-600 dark:text-gray-100 text-lg font-bold flex justify-between"},_hoisted_6=["src"],_hoisted_7={class:"mx-auto"},_hoisted_8={key:1,class:"h-7 w-7"},_hoisted_9={class:"flex-1 min-h-0 overflow-hidden"},_hoisted_10={class:"p-4 pb-1 pt-1 border-t-gray-100 dark:border-t-gray-800 flex items-center justify-between text-left w-full"},_hoisted_11={class:"w-8 h-8 mb-2 rounded-full bg-primary-600 flex items-center justify-center overflow-hidden shadow-sm border border-gray-300"},_hoisted_12=["src"],_hoisted_13={class:"py-1"},_hoisted_14=createBaseVNode("button",{type:"button",class:"inline-flex mb-2 justify-center items-center rounded-md bg-white dark:bg-gray-900 px-3 py-2 text-sm text-gray-500 shadow-sm ring-1 ring-inset ring-gray-200 dark:ring-gray-800 hover:bg-opacity dark:hover:bg-gray-800 w-full"},[createBaseVNode("span",null,"登录 / 注册")],-1),_hoisted_15=[_hoisted_14],_hoisted_16={type:"button",class:"inline-flex mb-2 justify-center items-center rounded-md bg-white dark:bg-gray-900 px-3 py-2 text-sm text-gray-500 shadow-sm ring-1 ring-inset ring-gray-200 dark:ring-gray-800 hover:bg-opacity dark:hover:bg-gray-800 w-full"},_hoisted_17={key:2,class:"w-full flex justify-center items-center pb-3 text-xs text-gray-500"},_hoisted_18={class:"ml-2 transition-all text-gray-500 hover:text-gray-600 dark:hover:text-gray-400",href:"https://beian.miit.gov.cn",target:"_blank"},_sfc_main$1=defineComponent({__name:"index",setup(b){var ye;const r=useGlobalStoreWithOut(),m=useRouter(),w=useAppStore(),U=useChatStore(),k=useAuthStore(),x=ref(null),a=ref(null),g=ref(null),n=computed(()=>{var se;return Number((se=k.globalConfig)==null?void 0:se.signInStatus)===1}),c=computed(()=>{var se;return Number((se=k.globalConfig)==null?void 0:se.isHideSidebar)===1}),R=computed(()=>w.theme==="dark"),v=computed(()=>k.userBalance),e=computed(()=>U.currentPlugin),L=useDialog(),O=ref(0),B=ref(0),P=ref(0),S=ref(0),_=ref(0),l=ref(0),{isMobile:y}=useBasicLayout(),D=computed(()=>k.isLogin),M=computed(()=>k.globalConfig.clientLogoPath||logo);computed(()=>k.globalConfig.clientHomePath||"/");const F=((ye=k.globalConfig)==null?void 0:ye.siteName)||"AIWeb",N=computed(()=>k.globalConfig.model3Name||t("chat.ordinaryPoints")),G=computed(()=>k.globalConfig.model4Name)||t("chat.advancedPoints"),W=computed(()=>k.globalConfig.drawMjName)||t("chat.drawingPoints"),J=computed(()=>Number(k.globalConfig.pluginFirst)===1),Y=computed(()=>Number(k.globalConfig.isHidePlugin)===1),V=computed(()=>k.userInfo.avatar),H=computed(()=>w.siderCollapsed);ref("");const z=ref(!J.value||Y.value?"chat":"plugin");ref(!1);const X=computed(()=>k.globalConfig),q=computed(()=>{var se,Ie;return((se=X.value)==null?void 0:se.companyName)&&((Ie=X.value)==null?void 0:Ie.filingNumber)}),$=computed(()=>U.groupList.find(Ie=>Ie.uuid===U.active)),fe=computed(()=>{var se;try{return JSON.parse(((se=$.value)==null?void 0:se.config)||"{}")}catch{return{}}}),Q=computed(()=>U==null?void 0:U.activeModelDeductType),ie=computed(()=>{var oe;const se=((oe=e==null?void 0:e.value)==null?void 0:oe.deductType)||fe.value.deductType||Q.value;let Ie,Ce;switch(se){case 1:Ie=v.value.sumModel3Count||0,Ce=N.value;break;case 2:Ie=v.value.sumModel4Count||0,Ce=G.value;break;case 3:Ie=v.value.sumDrawMjCount||0,Ce=W.value;break;default:Ie=0,Ce=t("chat.points")}return{remainingPoints:Ie,buttonText:Ce}});async function Te(){await me(),m.replace({path:"user-center"})}async function me(){return new Promise(se=>{setTimeout(()=>{k.isLogin||m.replace({path:"login"}),se()},100)})}function K(){const se=R.value?"light":"dark";w.setTheme(se)}async function ce(){L.warning({title:t("chat.clearConversation"),content:t("chat.clearAllNonFavoriteConversations"),positiveText:t("common.confirm"),negativeText:t("common.cancel"),onPositiveClick:async()=>{await U.delAllGroup(),await U.addNewChatGroup()}})}function de(){w.setSiderCollapsed(!H.value)}function Z(){D.value?k.logOut():k.setLoginDialog(!0)}function ae(){if(!D.value){k.setLoginDialog(!0);return}r.updateSignInDialog(!0)}function he(){k.logOut(),m.replace("/")}const we=computed(()=>y.value?{position:"fixed",zIndex:50}:{}),_e=computed(()=>y.value?{paddingBottom:"env(safe-area-inset-bottom)"}:{});return watch(y,se=>{w.setSiderCollapsed(se)},{immediate:!0,flush:"post"}),watch(()=>k.userBalance.useModel3Token,(se,Ie)=>{var Ce;O.value=Ie||0,B.value=se||0,(Ce=x.value)==null||Ce.play()},{immediate:!0,flush:"post"}),watch(()=>k.userBalance.useModel4Token,(se,Ie)=>{var Ce;P.value=Ie||0,S.value=se||0,(Ce=a.value)==null||Ce.play()},{immediate:!0,flush:"post"}),watch(()=>k.userBalance.useDrawMjToken,(se,Ie)=>{var Ce;_.value=Ie||0,l.value=se||0,(Ce=g.value)==null||Ce.play()},{immediate:!0,flush:"post"}),(se,Ie)=>(openBlock(),createElementBlock("div",null,[createVNode(unref(NLayoutSider),{collapsed:H.value,"collapsed-width":0,width:260,"collapse-mode":"transform",position:"absolute",bordered:"",style:normalizeStyle(we.value),onUpdateCollapsed:de},{default:withCtx(()=>{var Ce,oe;return[createBaseVNode("div",{class:"flex flex-col h-full bg-opacity dark:bg-gray-900 select-none",style:normalizeStyle(_e.value)},[createBaseVNode("main",_hoisted_1$1,[Y.value?(openBlock(),createElementBlock("div",_hoisted_4,[createBaseVNode("button",_hoisted_5,[c.value?(openBlock(),createElementBlock("img",{key:0,src:M.value,alt:"Logo",class:"h-7 w-7"},null,8,_hoisted_6)):createCommentVNode("",!0),createBaseVNode("span",_hoisted_7,toDisplayString(unref(F)),1),c.value?(openBlock(),createElementBlock("span",_hoisted_8)):createCommentVNode("",!0)])])):(openBlock(),createElementBlock("div",_hoisted_2,[createBaseVNode("div",_hoisted_3,[J.value?(openBlock(),createElementBlock("button",{key:0,onClick:Ie[0]||(Ie[0]=pe=>z.value="plugin"),class:normalizeClass([{"bg-white dark:bg-gray-700 text-primary-600 dark:text-gray-100 ":z.value==="plugin","dark:text-gray-400":z.value!=="plugin"},"block w-full rounded-full focus:outline-none py-1"])}," 插件 ",2)):createCommentVNode("",!0),createBaseVNode("button",{onClick:Ie[1]||(Ie[1]=pe=>z.value="chat"),class:normalizeClass([{"bg-white dark:bg-gray-700 text-primary-600 dark:text-gray-100 ":z.value==="chat","dark:text-gray-400":z.value!=="chat"},"block w-full rounded-full focus:outline-none py-1"])}," 对话 ",2),J.value?createCommentVNode("",!0):(openBlock(),createElementBlock("button",{key:1,onClick:Ie[2]||(Ie[2]=pe=>z.value="plugin"),class:normalizeClass([{"bg-white dark:bg-gray-700 text-primary-600 dark:text-gray-100 ":z.value==="plugin","dark:text-gray-400":z.value!=="plugin"},"block w-full rounded-full focus:outline-none py-1"])}," 插件 ",2))])])),createBaseVNode("div",_hoisted_9,[z.value==="chat"?(openBlock(),createBlock(_sfc_main$3,{key:0})):createCommentVNode("",!0),z.value==="plugin"?(openBlock(),createBlock(_sfc_main$2,{key:1})):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_10,[D.value&&(unref(y)||c.value)?(openBlock(),createBlock(unref(ge$1),{key:0,as:"div",class:"relative inline-block text-left"},{default:withCtx(()=>[createBaseVNode("div",null,[createVNode(unref(Se),{class:"inline-flex w-full justify-center gap-x-1.5 rounded-md pr-3 py-2 text-sm font-semibold dark:text-gray-400 text-gray-700"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_11,[V.value?(openBlock(),createElementBlock("img",{key:0,src:V.value,class:"w-full h-full object-cover"},null,8,_hoisted_12)):createCommentVNode("",!0),V.value?createCommentVNode("",!0):(openBlock(),createBlock(unref(User),{key:1,theme:"outline",size:"20",class:"text-white"}))])]),_:1})]),createVNode(Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:withCtx(()=>[createVNode(unref(Me),{class:"absolute w-[228px] left-0 bottom-full mb-2 origin-bottom-right divide-y divide-gray-100 rounded-md bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none dark:bg-gray-800 dark:text-gray-400 text-gray-900 z-50"},{default:withCtx(()=>[createBaseVNode("div",_hoisted_13,[createVNode(unref(be),null,{default:withCtx(({active:pe})=>[createBaseVNode("a",{href:"#",class:normalizeClass([[pe?"bg-gray-100 dark:bg-gray-700":"","group flex items-center justify-start px-2 py-2 text-sm whitespace-nowrap"],"border-b border-b-gray-100 dark:border-b-gray-800"]),onClick:ce},[createVNode(unref(DeleteThemes),{theme:"outline",size:"16",class:"mr-2"}),createTextVNode(" "+toDisplayString(unref(t)("chat.clear")),1)],2)]),_:1}),createVNode(unref(be),null,{default:withCtx(({active:pe})=>[createBaseVNode("a",{href:"#",class:normalizeClass([pe?"bg-gray-100 dark:bg-gray-700":"","group flex items-center justify-start px-2 py-2 text-sm whitespace-nowrap"]),onClick:Ie[3]||(Ie[3]=xe=>unref(r).updateNoticeDialog(!0))},[createVNode(unref(Announcement),{theme:"outline",size:"16",class:"mr-2"}),createTextVNode(" "+toDisplayString(unref(t)("chat.announcement")),1)],2)]),_:1}),createVNode(unref(be),null,{default:withCtx(({active:pe})=>[createBaseVNode("a",{href:"#",class:normalizeClass([pe?"bg-gray-100 dark:bg-gray-700":"","group flex items-center justify-start px-2 py-2 text-sm whitespace-nowrap"]),onClick:Ie[4]||(Ie[4]=xe=>unref(r).updateGoodsDialog(!0))},[createVNode(unref(Commodity),{theme:"outline",size:"16",class:"mr-2"}),createTextVNode(" "+toDisplayString(unref(t)("chat.pointsMall")),1)],2)]),_:1}),createVNode(unref(be),null,{default:withCtx(({active:pe})=>[createBaseVNode("a",{href:"#",class:normalizeClass([pe?"bg-gray-100 dark:bg-gray-700":"","group flex items-center justify-start px-2 py-2 text-sm whitespace-nowrap"]),onClick:K},[createVNode(unref(SunOne),{theme:"outline",size:"16",class:"mr-2"}),createTextVNode(" "+toDisplayString(unref(t)("chat.toggleTheme")),1)],2)]),_:1}),n.value?(openBlock(),createBlock(unref(be),{key:0},{default:withCtx(({active:pe})=>[createBaseVNode("a",{href:"#",class:normalizeClass([pe?"bg-gray-100 dark:bg-gray-700":"","group flex items-center justify-start px-2 py-2 text-sm whitespace-nowrap"]),onClick:ae},[createVNode(unref(Calendar),{theme:"outline",size:"16",class:"mr-2"}),createTextVNode(" "+toDisplayString(unref(t)("chat.signInReward")),1)],2)]),_:1})):createCommentVNode("",!0),createVNode(unref(be),null,{default:withCtx(({active:pe})=>[createBaseVNode("a",{href:"#",class:normalizeClass([pe?"bg-gray-100 dark:bg-gray-700":"","group flex items-center justify-start px-2 py-2 text-sm whitespace-nowrap"]),onClick:Ie[5]||(Ie[5]=xe=>Te())},[createVNode(unref(User),{theme:"outline",size:"16",class:"mr-2"}),createTextVNode(" 个人中心 ")],2)]),_:1}),createVNode(unref(be),null,{default:withCtx(({active:pe})=>[createBaseVNode("a",{href:"#",class:normalizeClass([pe?"bg-gray-100 dark:bg-gray-700":"","group flex items-center justify-start px-2 py-2 text-sm whitespace-nowrap"]),onClick:Ie[6]||(Ie[6]=xe=>he())},[createVNode(unref(Logout),{theme:"outline",size:"16",class:"mr-2"}),createTextVNode(" 退出登录 ")],2)]),_:1})])]),_:1})]),_:1})]),_:1})):createCommentVNode("",!0),D.value?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:1,onClick:Z,class:"flex flex-1 items-center justify-center cursor-pointer"},_hoisted_15)),D.value?(openBlock(),createElementBlock("div",{key:2,onClick:Ie[7]||(Ie[7]=pe=>unref(r).updateGoodsDialog(!0)),class:"flex flex-1 items-center justify-center cursor-pointer"},[createBaseVNode("button",_hoisted_16,[createBaseVNode("span",null,toDisplayString(unref(t)("chat.remaining")+`${ie.value.remainingPoints} ${ie.value.buttonText}`),1)])])):createCommentVNode("",!0)]),q.value&&unref(y)?(openBlock(),createElementBlock("div",_hoisted_17,[createTextVNode(" 版权所有 © "+toDisplayString((Ce=X.value)==null?void 0:Ce.companyName)+" ",1),createBaseVNode("a",_hoisted_18,toDisplayString((oe=X.value)==null?void 0:oe.filingNumber),1)])):createCommentVNode("",!0)])],4)]}),_:1},8,["collapsed","style"]),unref(y)?withDirectives((openBlock(),createElementBlock("div",{key:0,class:"fixed inset-0 z-40 bg-black/40",onClick:de},null,512)),[[vShow,!H.value]]):createCommentVNode("",!0)]))}}),_hoisted_1={class:"h-full transition-all"},_sfc_main=defineComponent({__name:"chat",setup(b){const r=useMessage(),m=useRoute(),w=useRouter(),U=useAppStore(),k=useChatStore(),x=useAuthStore(),{isMobile:a}=useBasicLayout(),g=computed(()=>x.isLogin),n=computed(()=>U.siderCollapsed),c=computed(()=>k.groupList),R=computed(()=>m.query.appId),v=ref(0),e=ref(0),L=computed(()=>{var M;return Number((M=x.globalConfig)==null?void 0:M.showWatermark)===1});ref(x.userInfo.username??"");const O=ref(x.userInfo.id??""),B=computed(()=>{var M;return Number((M=x.globalConfig)==null?void 0:M.isModelInherited)===1}),P=computed(()=>k.isStreamIn!==void 0?k.isStreamIn:!1);watch(g,async(M,F)=>{M&&!F&&(await k.queryMyGroup(),window.location.href="/chat")});const S=computed(()=>a.value?["rounded-none","shadow-none"]:["rounded-none","shadow-md","dark:border-gray-900"]),_=computed(()=>["h-full",{"pl-[260px]":!a.value&&!n.value}]);async function l(M){if(P.value){r.info("AI回复中,请稍后再试");return}k.setStreamIn(!1);try{if(M&&M>0)await k.addNewChatGroup(M);else{const{modelInfo:F}=k.activeConfig;if(F&&B.value&&k.activeGroupAppId===0){const N={modelInfo:F};await k.addNewChatGroup(0,N)}else await k.addNewChatGroup()}k.setUsingPlugin(null),a.value&&U.setSiderCollapsed(!0)}catch{}}function y(M){v.value=M.touches[0].clientX}function D(M){e.value=M.changedTouches[0].clientX,e.value-v.value>100&&a.value&&U.setSiderCollapsed(!1)}return onMounted(()=>{window.addEventListener("touchstart",y),window.addEventListener("touchend",D)}),onUnmounted(()=>{window.removeEventListener("touchstart",y),window.removeEventListener("touchend",D)}),onMounted(async()=>{c.value.length===0&&(await nextTick(),l())}),provide("createNewChatGroup",l),watch(R,async(M,F)=>{if(M){const N=+M;w.replace("/chat"),await nextTick(),l(N)}},{immediate:!0}),(M,F)=>(openBlock(),createElementBlock(Fragment,null,[L.value&&g.value?(openBlock(),createBlock(unref(NWatermark),{key:0,content:"#"+O.value,cross:"",fullscreen:"","font-size":16,"line-height":16,width:384,height:384,"x-offset":12,"y-offset":60,rotate:-15},null,8,["content"])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_1,[createBaseVNode("div",{class:normalizeClass(["h-full overflow-hidden",S.value])},[createVNode(unref(NLayout),{class:normalizeClass(["z-40 transition",_.value]),"has-sider":""},{default:withCtx(()=>[createVNode(_sfc_main$1,{class:"h-full"}),createVNode(_sfc_main$5,{class:"w-full flex-1"})]),_:1},8,["class"])],2)])],64))}});export{_sfc_main as default};