@shotstack/shotstack-studio 2.1.4 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/internal.umd.js
CHANGED
|
@@ -260,7 +260,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
260
260
|
|
|
261
261
|
`)}g.write("payload.value = newResult;"),g.write("return payload;");const P=g.compile();return(b,x)=>P(h,b,x)};let s;const n=Fr,o=!Hn.jitless,l=o&&Vh.value,c=t.catchall;let f;e._zod.parse=(h,g)=>{f??(f=r.value);const p=h.value;return n(p)?o&&l&&g?.async===!1&&g.jitless!==!0?(s||(s=a(t.shape)),h=s(h,g),c?Ip([],p,h,g,f,e):h):i(h,g):(h.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),h)}});function Pp(e,t,i,r){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const a=e.filter(s=>!er(s));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:e.map(s=>s.issues.map(n=>Di(n,r,Wt())))}),t)}var ro=V("$ZodUnion",(e,t)=>{Pe.init(e,t),Le(e._zod,"optin",()=>t.options.some(a=>a._zod.optin==="optional")?"optional":void 0),Le(e._zod,"optout",()=>t.options.some(a=>a._zod.optout==="optional")?"optional":void 0),Le(e._zod,"values",()=>{if(t.options.every(a=>a._zod.values))return new Set(t.options.flatMap(a=>Array.from(a._zod.values)))}),Le(e._zod,"pattern",()=>{if(t.options.every(a=>a._zod.pattern)){const a=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${a.map(s=>qn(s.source)).join("|")})$`)}});const i=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(a,s)=>{if(i)return r(a,s);let n=!1;const o=[];for(const u of t.options){const l=u._zod.run({value:a.value,issues:[]},s);if(l instanceof Promise)o.push(l),n=!0;else{if(l.issues.length===0)return l;o.push(l)}}return n?Promise.all(o).then(u=>Pp(u,a,e,s)):Pp(o,a,e,s)}});function Tp(e,t,i,r){const a=e.filter(s=>s.issues.length===0);return a.length===1?(t.value=a[0].value,t):(a.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:e.map(s=>s.issues.map(n=>Di(n,r,Wt())))}):t.issues.push({code:"invalid_union",input:t.value,inst:i,errors:[],inclusive:!1}),t)}var Op=V("$ZodXor",(e,t)=>{ro.init(e,t),t.inclusive=!1;const i=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(a,s)=>{if(i)return r(a,s);let n=!1;const o=[];for(const u of t.options){const l=u._zod.run({value:a.value,issues:[]},s);l instanceof Promise?(o.push(l),n=!0):o.push(l)}return n?Promise.all(o).then(u=>Tp(u,a,e,s)):Tp(o,a,e,s)}}),Rp=V("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,ro.init(e,t);const i=e._zod.parse;Le(e._zod,"propValues",()=>{const a={};for(const s of t.options){const n=s._zod.propValues;if(!n||Object.keys(n).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const[o,u]of Object.entries(n)){a[o]||(a[o]=new Set);for(const l of u)a[o].add(l)}}return a});const r=hs(()=>{const a=t.options,s=new Map;for(const n of a){const o=n._zod.propValues?.[t.discriminator];if(!o||o.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(const u of o){if(s.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);s.set(u,n)}}return s});e._zod.parse=(a,s)=>{const n=a.value;if(!Fr(n))return a.issues.push({code:"invalid_type",expected:"object",input:n,inst:e}),a;const o=r.value.get(n?.[t.discriminator]);return o?o._zod.run(a,s):t.unionFallback?i(a,s):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:n,path:[t.discriminator],inst:e}),a)}}),Mp=V("$ZodIntersection",(e,t)=>{Pe.init(e,t),e._zod.parse=(i,r)=>{const a=i.value,s=t.left._zod.run({value:a,issues:[]},r),n=t.right._zod.run({value:a,issues:[]},r);return s instanceof Promise||n instanceof Promise?Promise.all([s,n]).then(([u,l])=>Zp(i,u,l)):Zp(i,s,n)}});function Ql(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Qa(e)&&Qa(t)){const i=Object.keys(t),r=Object.keys(e).filter(s=>i.indexOf(s)!==-1),a={...e,...t};for(const s of r){const n=Ql(e[s],t[s]);if(!n.valid)return{valid:!1,mergeErrorPath:[s,...n.mergeErrorPath]};a[s]=n.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const i=[];for(let r=0;r<e.length;r++){const a=e[r],s=t[r],n=Ql(a,s);if(!n.valid)return{valid:!1,mergeErrorPath:[r,...n.mergeErrorPath]};i.push(n.data)}return{valid:!0,data:i}}return{valid:!1,mergeErrorPath:[]}}function Zp(e,t,i){const r=new Map;let a;for(const o of t.issues)if(o.code==="unrecognized_keys"){a??(a=o);for(const u of o.keys)r.has(u)||r.set(u,{}),r.get(u).l=!0}else e.issues.push(o);for(const o of i.issues)if(o.code==="unrecognized_keys")for(const u of o.keys)r.has(u)||r.set(u,{}),r.get(u).r=!0;else e.issues.push(o);const s=[...r].filter(([,o])=>o.l&&o.r).map(([o])=>o);if(s.length&&a&&e.issues.push({...a,keys:s}),er(e))return e;const n=Ql(t.value,i.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}var e0=V("$ZodTuple",(e,t)=>{Pe.init(e,t);const i=t.items;e._zod.parse=(r,a)=>{const s=r.value;if(!Array.isArray(s))return r.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];const n=[],o=[...i].reverse().findIndex(c=>c._zod.optin!=="optional"),u=o===-1?0:i.length-o;if(!t.rest){const c=s.length>i.length,f=s.length<u-1;if(c||f)return r.issues.push({...c?{code:"too_big",maximum:i.length,inclusive:!0}:{code:"too_small",minimum:i.length},input:s,inst:e,origin:"array"}),r}let l=-1;for(const c of i){if(l++,l>=s.length&&l>=u)continue;const f=c._zod.run({value:s[l],issues:[]},a);f instanceof Promise?n.push(f.then(h=>so(h,r,l))):so(f,r,l)}if(t.rest){const c=s.slice(i.length);for(const f of c){l++;const h=t.rest._zod.run({value:f,issues:[]},a);h instanceof Promise?n.push(h.then(g=>so(g,r,l))):so(h,r,l)}}return n.length?Promise.all(n).then(()=>r):r}});function so(e,t,i){e.issues.length&&t.issues.push(...zi(i,e.issues)),t.value[i]=e.value}var Lp=V("$ZodRecord",(e,t)=>{Pe.init(e,t),e._zod.parse=(i,r)=>{const a=i.value;if(!Qa(a))return i.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),i;const s=[],n=t.keyType._zod.values;if(n){i.value={};const o=new Set;for(const l of n)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){o.add(typeof l=="number"?l.toString():l);const c=t.valueType._zod.run({value:a[l],issues:[]},r);c instanceof Promise?s.push(c.then(f=>{f.issues.length&&i.issues.push(...zi(l,f.issues)),i.value[l]=f.value})):(c.issues.length&&i.issues.push(...zi(l,c.issues)),i.value[l]=c.value)}let u;for(const l in a)o.has(l)||(u=u??[],u.push(l));u&&u.length>0&&i.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:u})}else{i.value={};for(const o of Reflect.ownKeys(a)){if(o==="__proto__")continue;let u=t.keyType._zod.run({value:o,issues:[]},r);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof o=="string"&&Wl.test(o)&&u.issues.length){const f=t.keyType._zod.run({value:Number(o),issues:[]},r);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(u=f)}if(u.issues.length){t.mode==="loose"?i.value[o]=a[o]:i.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(f=>Di(f,r,Wt())),input:o,path:[o],inst:e});continue}const c=t.valueType._zod.run({value:a[o],issues:[]},r);c instanceof Promise?s.push(c.then(f=>{f.issues.length&&i.issues.push(...zi(o,f.issues)),i.value[u.value]=f.value})):(c.issues.length&&i.issues.push(...zi(o,c.issues)),i.value[u.value]=c.value)}}return s.length?Promise.all(s).then(()=>i):i}}),$p=V("$ZodMap",(e,t)=>{Pe.init(e,t),e._zod.parse=(i,r)=>{const a=i.value;if(!(a instanceof Map))return i.issues.push({expected:"map",code:"invalid_type",input:a,inst:e}),i;const s=[];i.value=new Map;for(const[n,o]of a){const u=t.keyType._zod.run({value:n,issues:[]},r),l=t.valueType._zod.run({value:o,issues:[]},r);u instanceof Promise||l instanceof Promise?s.push(Promise.all([u,l]).then(([c,f])=>{Up(c,f,i,n,a,e,r)})):Up(u,l,i,n,a,e,r)}return s.length?Promise.all(s).then(()=>i):i}});function Up(e,t,i,r,a,s,n){e.issues.length&&(Qn.has(typeof r)?i.issues.push(...zi(r,e.issues)):i.issues.push({code:"invalid_key",origin:"map",input:a,inst:s,issues:e.issues.map(o=>Di(o,n,Wt()))})),t.issues.length&&(Qn.has(typeof r)?i.issues.push(...zi(r,t.issues)):i.issues.push({origin:"map",code:"invalid_element",input:a,inst:s,key:r,issues:t.issues.map(o=>Di(o,n,Wt()))})),i.value.set(e.value,t.value)}var jp=V("$ZodSet",(e,t)=>{Pe.init(e,t),e._zod.parse=(i,r)=>{const a=i.value;if(!(a instanceof Set))return i.issues.push({input:a,inst:e,expected:"set",code:"invalid_type"}),i;const s=[];i.value=new Set;for(const n of a){const o=t.valueType._zod.run({value:n,issues:[]},r);o instanceof Promise?s.push(o.then(u=>Gp(u,i))):Gp(o,i)}return s.length?Promise.all(s).then(()=>i):i}});function Gp(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Wp=V("$ZodEnum",(e,t)=>{Pe.init(e,t);const i=Nl(t.entries),r=new Set(i);e._zod.values=r,e._zod.pattern=new RegExp(`^(${i.filter(a=>Qn.has(typeof a)).map(a=>typeof a=="string"?sa(a):a.toString()).join("|")})$`),e._zod.parse=(a,s)=>{const n=a.value;return r.has(n)||a.issues.push({code:"invalid_value",values:i,input:n,inst:e}),a}}),Yp=V("$ZodLiteral",(e,t)=>{if(Pe.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const i=new Set(t.values);e._zod.values=i,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?sa(r):r?sa(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,a)=>{const s=r.value;return i.has(s)||r.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),r}}),Kp=V("$ZodFile",(e,t)=>{Pe.init(e,t),e._zod.parse=(i,r)=>{const a=i.value;return a instanceof File||i.issues.push({expected:"file",code:"invalid_type",input:a,inst:e}),i}}),Xp=V("$ZodTransform",(e,t)=>{Pe.init(e,t),e._zod.parse=(i,r)=>{if(r.direction==="backward")throw new Xn(e.constructor.name);const a=t.transform(i.value,i);if(r.async)return(a instanceof Promise?a:Promise.resolve(a)).then(n=>(i.value=n,i));if(a instanceof Promise)throw new Ja;return i.value=a,i}});function Hp(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var t0=V("$ZodOptional",(e,t)=>{Pe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Le(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Le(e._zod,"pattern",()=>{const i=t.innerType._zod.pattern;return i?new RegExp(`^(${qn(i.source)})?$`):void 0}),e._zod.parse=(i,r)=>{if(t.innerType._zod.optin==="optional"){const a=t.innerType._zod.run(i,r);return a instanceof Promise?a.then(s=>Hp(s,i.value)):Hp(a,i.value)}return i.value===void 0?i:t.innerType._zod.run(i,r)}}),Jp=V("$ZodExactOptional",(e,t)=>{t0.init(e,t),Le(e._zod,"values",()=>t.innerType._zod.values),Le(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(i,r)=>t.innerType._zod.run(i,r)}),qp=V("$ZodNullable",(e,t)=>{Pe.init(e,t),Le(e._zod,"optin",()=>t.innerType._zod.optin),Le(e._zod,"optout",()=>t.innerType._zod.optout),Le(e._zod,"pattern",()=>{const i=t.innerType._zod.pattern;return i?new RegExp(`^(${qn(i.source)}|null)$`):void 0}),Le(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(i,r)=>i.value===null?i:t.innerType._zod.run(i,r)}),Qp=V("$ZodDefault",(e,t)=>{Pe.init(e,t),e._zod.optin="optional",Le(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(i,r)=>{if(r.direction==="backward")return t.innerType._zod.run(i,r);if(i.value===void 0)return i.value=t.defaultValue,i;const a=t.innerType._zod.run(i,r);return a instanceof Promise?a.then(s=>em(s,t)):em(a,t)}});function em(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var tm=V("$ZodPrefault",(e,t)=>{Pe.init(e,t),e._zod.optin="optional",Le(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(i,r)=>(r.direction==="backward"||i.value===void 0&&(i.value=t.defaultValue),t.innerType._zod.run(i,r))}),im=V("$ZodNonOptional",(e,t)=>{Pe.init(e,t),Le(e._zod,"values",()=>{const i=t.innerType._zod.values;return i?new Set([...i].filter(r=>r!==void 0)):void 0}),e._zod.parse=(i,r)=>{const a=t.innerType._zod.run(i,r);return a instanceof Promise?a.then(s=>am(s,e)):am(a,e)}});function am(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var rm=V("$ZodSuccess",(e,t)=>{Pe.init(e,t),e._zod.parse=(i,r)=>{if(r.direction==="backward")throw new Xn("ZodSuccess");const a=t.innerType._zod.run(i,r);return a instanceof Promise?a.then(s=>(i.value=s.issues.length===0,i)):(i.value=a.issues.length===0,i)}}),sm=V("$ZodCatch",(e,t)=>{Pe.init(e,t),Le(e._zod,"optin",()=>t.innerType._zod.optin),Le(e._zod,"optout",()=>t.innerType._zod.optout),Le(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(i,r)=>{if(r.direction==="backward")return t.innerType._zod.run(i,r);const a=t.innerType._zod.run(i,r);return a instanceof Promise?a.then(s=>(i.value=s.value,s.issues.length&&(i.value=t.catchValue({...i,error:{issues:s.issues.map(n=>Di(n,r,Wt()))},input:i.value}),i.issues=[]),i)):(i.value=a.value,a.issues.length&&(i.value=t.catchValue({...i,error:{issues:a.issues.map(s=>Di(s,r,Wt()))},input:i.value}),i.issues=[]),i)}}),nm=V("$ZodNaN",(e,t)=>{Pe.init(e,t),e._zod.parse=(i,r)=>((typeof i.value!="number"||!Number.isNaN(i.value))&&i.issues.push({input:i.value,inst:e,expected:"nan",code:"invalid_type"}),i)}),om=V("$ZodPipe",(e,t)=>{Pe.init(e,t),Le(e._zod,"values",()=>t.in._zod.values),Le(e._zod,"optin",()=>t.in._zod.optin),Le(e._zod,"optout",()=>t.out._zod.optout),Le(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(i,r)=>{if(r.direction==="backward"){const s=t.out._zod.run(i,r);return s instanceof Promise?s.then(n=>no(n,t.in,r)):no(s,t.in,r)}const a=t.in._zod.run(i,r);return a instanceof Promise?a.then(s=>no(s,t.out,r)):no(a,t.out,r)}});function no(e,t,i){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},i)}var i0=V("$ZodCodec",(e,t)=>{Pe.init(e,t),Le(e._zod,"values",()=>t.in._zod.values),Le(e._zod,"optin",()=>t.in._zod.optin),Le(e._zod,"optout",()=>t.out._zod.optout),Le(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(i,r)=>{if((r.direction||"forward")==="forward"){const s=t.in._zod.run(i,r);return s instanceof Promise?s.then(n=>oo(n,t,r)):oo(s,t,r)}else{const s=t.out._zod.run(i,r);return s instanceof Promise?s.then(n=>oo(n,t,r)):oo(s,t,r)}}});function oo(e,t,i){if(e.issues.length)return e.aborted=!0,e;if((i.direction||"forward")==="forward"){const a=t.transform(e.value,e);return a instanceof Promise?a.then(s=>uo(e,s,t.out,i)):uo(e,a,t.out,i)}else{const a=t.reverseTransform(e.value,e);return a instanceof Promise?a.then(s=>uo(e,s,t.in,i)):uo(e,a,t.in,i)}}function uo(e,t,i,r){return e.issues.length?(e.aborted=!0,e):i._zod.run({value:t,issues:e.issues},r)}var um=V("$ZodReadonly",(e,t)=>{Pe.init(e,t),Le(e._zod,"propValues",()=>t.innerType._zod.propValues),Le(e._zod,"values",()=>t.innerType._zod.values),Le(e._zod,"optin",()=>t.innerType?._zod?.optin),Le(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(i,r)=>{if(r.direction==="backward")return t.innerType._zod.run(i,r);const a=t.innerType._zod.run(i,r);return a instanceof Promise?a.then(lm):lm(a)}});function lm(e){return e.value=Object.freeze(e.value),e}var cm=V("$ZodTemplateLiteral",(e,t)=>{Pe.init(e,t);const i=[];for(const r of t.parts)if(typeof r=="object"&&r!==null){if(!r._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);const a=r._zod.pattern instanceof RegExp?r._zod.pattern.source:r._zod.pattern;if(!a)throw new Error(`Invalid template literal part: ${r._zod.traits}`);const s=a.startsWith("^")?1:0,n=a.endsWith("$")?a.length-1:a.length;i.push(a.slice(s,n))}else if(r===null||Ph.has(typeof r))i.push(sa(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${i.join("")}$`),e._zod.parse=(r,a)=>typeof r.value!="string"?(r.issues.push({input:r.value,inst:e,expected:"string",code:"invalid_type"}),r):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),r)}),fm=V("$ZodFunction",(e,t)=>(Pe.init(e,t),e._def=t,e._zod.def=t,e.implement=i=>{if(typeof i!="function")throw new Error("implement() must be called with a function");return function(...r){const a=e._def.input?Pl(e._def.input,r):r,s=Reflect.apply(i,this,a);return e._def.output?Pl(e._def.output,s):s}},e.implementAsync=i=>{if(typeof i!="function")throw new Error("implementAsync() must be called with a function");return async function(...r){const a=e._def.input?await Tl(e._def.input,r):r,s=await Reflect.apply(i,this,a);return e._def.output?await Tl(e._def.output,s):s}},e._zod.parse=(i,r)=>typeof i.value!="function"?(i.issues.push({code:"invalid_type",expected:"function",input:i.value,inst:e}),i):(e._def.output&&e._def.output._zod.def.type==="promise"?i.value=e.implementAsync(i.value):i.value=e.implement(i.value),i),e.input=(...i)=>{const r=e.constructor;return Array.isArray(i[0])?new r({type:"function",input:new e0({type:"tuple",items:i[0],rest:i[1]}),output:e._def.output}):new r({type:"function",input:i[0],output:e._def.output})},e.output=i=>{const r=e.constructor;return new r({type:"function",input:e._def.input,output:i})},e)),dm=V("$ZodPromise",(e,t)=>{Pe.init(e,t),e._zod.parse=(i,r)=>Promise.resolve(i.value).then(a=>t.innerType._zod.run({value:a,issues:[]},r))}),hm=V("$ZodLazy",(e,t)=>{Pe.init(e,t),Le(e._zod,"innerType",()=>t.getter()),Le(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Le(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Le(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Le(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(i,r)=>e._zod.innerType._zod.run(i,r)}),gm=V("$ZodCustom",(e,t)=>{Et.init(e,t),Pe.init(e,t),e._zod.parse=(i,r)=>i,e._zod.check=i=>{const r=i.value,a=t.fn(r);if(a instanceof Promise)return a.then(s=>pm(s,i,r,e));pm(a,i,r,e)}});function pm(e,t,i,r){if(!e){const a={code:"custom",input:i,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(a.params=r._zod.def.params),t.issues.push(io(a))}}var a0={};aa(a0,{ar:()=>p8,az:()=>y8,be:()=>v8,bg:()=>C8,ca:()=>E8,cs:()=>k8,da:()=>_8,de:()=>N8,en:()=>ym,eo:()=>I8,es:()=>z8,fa:()=>T8,fi:()=>R8,fr:()=>Z8,frCA:()=>$8,he:()=>j8,hu:()=>W8,hy:()=>K8,id:()=>H8,is:()=>q8,it:()=>e9,ja:()=>i9,ka:()=>r9,kh:()=>n9,km:()=>vm,ko:()=>u9,lt:()=>c9,mk:()=>d9,ms:()=>g9,nl:()=>m9,no:()=>b9,ota:()=>w9,pl:()=>A9,ps:()=>x9,pt:()=>D9,ru:()=>S9,sl:()=>B9,sv:()=>I9,ta:()=>z9,th:()=>T9,tr:()=>R9,ua:()=>Z9,uk:()=>xm,ur:()=>$9,uz:()=>j9,vi:()=>W9,yo:()=>q9,zhCN:()=>K9,zhTW:()=>H9});var g8=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(a){return e[a]??null}const i={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},r={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${a.expected}، ولكن تم إدخال ${o}`:`مدخلات غير مقبولة: يفترض إدخال ${s}، ولكن تم إدخال ${o}`}case"invalid_value":return a.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${Ne(a.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?` أكبر من اللازم: يفترض أن تكون ${a.origin??"القيمة"} ${s} ${a.maximum.toString()} ${n.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${a.origin??"القيمة"} ${s} ${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`أصغر من اللازم: يفترض لـ ${a.origin} أن يكون ${s} ${a.minimum.toString()} ${n.unit}`:`أصغر من اللازم: يفترض لـ ${a.origin} أن يكون ${s} ${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${a.prefix}"`:s.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${s.suffix}"`:s.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${s.includes}"`:s.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${s.pattern}`:`${i[s.format]??a.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${a.divisor}`;case"unrecognized_keys":return`معرف${a.keys.length>1?"ات":""} غريب${a.keys.length>1?"ة":""}: ${ae(a.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${a.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${a.origin}`;default:return"مدخل غير مقبول"}}};function p8(){return{localeError:g8()}}var m8=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(a){return e[a]??null}const i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Yanlış dəyər: gözlənilən instanceof ${a.expected}, daxil olan ${o}`:`Yanlış dəyər: gözlənilən ${s}, daxil olan ${o}`}case"invalid_value":return a.values.length===1?`Yanlış dəyər: gözlənilən ${Ne(a.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Çox böyük: gözlənilən ${a.origin??"dəyər"} ${s}${a.maximum.toString()} ${n.unit??"element"}`:`Çox böyük: gözlənilən ${a.origin??"dəyər"} ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Çox kiçik: gözlənilən ${a.origin} ${s}${a.minimum.toString()} ${n.unit}`:`Çox kiçik: gözlənilən ${a.origin} ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Yanlış mətn: "${s.prefix}" ilə başlamalıdır`:s.format==="ends_with"?`Yanlış mətn: "${s.suffix}" ilə bitməlidir`:s.format==="includes"?`Yanlış mətn: "${s.includes}" daxil olmalıdır`:s.format==="regex"?`Yanlış mətn: ${s.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${i[s.format]??a.format}`}case"not_multiple_of":return`Yanlış ədəd: ${a.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${a.keys.length>1?"lar":""}: ${ae(a.keys,", ")}`;case"invalid_key":return`${a.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${a.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function y8(){return{localeError:m8()}}function mm(e,t,i,r){const a=Math.abs(e),s=a%10,n=a%100;return n>=11&&n<=19?r:s===1?t:s>=2&&s<=4?i:r}var b8=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(a){return e[a]??null}const i={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},r={nan:"NaN",number:"лік",array:"масіў"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Няправільны ўвод: чакаўся instanceof ${a.expected}, атрымана ${o}`:`Няправільны ўвод: чакаўся ${s}, атрымана ${o}`}case"invalid_value":return a.values.length===1?`Няправільны ўвод: чакалася ${Ne(a.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);if(n){const o=Number(a.maximum),u=mm(o,n.unit.one,n.unit.few,n.unit.many);return`Занадта вялікі: чакалася, што ${a.origin??"значэнне"} павінна ${n.verb} ${s}${a.maximum.toString()} ${u}`}return`Занадта вялікі: чакалася, што ${a.origin??"значэнне"} павінна быць ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);if(n){const o=Number(a.minimum),u=mm(o,n.unit.one,n.unit.few,n.unit.many);return`Занадта малы: чакалася, што ${a.origin} павінна ${n.verb} ${s}${a.minimum.toString()} ${u}`}return`Занадта малы: чакалася, што ${a.origin} павінна быць ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${s.prefix}"`:s.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${s.suffix}"`:s.format==="includes"?`Няправільны радок: павінен змяшчаць "${s.includes}"`:s.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${s.pattern}`:`Няправільны ${i[s.format]??a.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${a.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${a.keys.length>1?"ключы":"ключ"}: ${ae(a.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${a.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${a.origin}`;default:return"Няправільны ўвод"}}};function v8(){return{localeError:b8()}}var w8=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function t(a){return e[a]??null}const i={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},r={nan:"NaN",number:"число",array:"масив"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Невалиден вход: очакван instanceof ${a.expected}, получен ${o}`:`Невалиден вход: очакван ${s}, получен ${o}`}case"invalid_value":return a.values.length===1?`Невалиден вход: очакван ${Ne(a.values[0])}`:`Невалидна опция: очаквано едно от ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Твърде голямо: очаква се ${a.origin??"стойност"} да съдържа ${s}${a.maximum.toString()} ${n.unit??"елемента"}`:`Твърде голямо: очаква се ${a.origin??"стойност"} да бъде ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Твърде малко: очаква се ${a.origin} да съдържа ${s}${a.minimum.toString()} ${n.unit}`:`Твърде малко: очаква се ${a.origin} да бъде ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;if(s.format==="starts_with")return`Невалиден низ: трябва да започва с "${s.prefix}"`;if(s.format==="ends_with")return`Невалиден низ: трябва да завършва с "${s.suffix}"`;if(s.format==="includes")return`Невалиден низ: трябва да включва "${s.includes}"`;if(s.format==="regex")return`Невалиден низ: трябва да съвпада с ${s.pattern}`;let n="Невалиден";return s.format==="emoji"&&(n="Невалидно"),s.format==="datetime"&&(n="Невалидно"),s.format==="date"&&(n="Невалидна"),s.format==="time"&&(n="Невалидно"),s.format==="duration"&&(n="Невалидна"),`${n} ${i[s.format]??a.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${a.divisor}`;case"unrecognized_keys":return`Неразпознат${a.keys.length>1?"и":""} ключ${a.keys.length>1?"ове":""}: ${ae(a.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${a.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${a.origin}`;default:return"Невалиден вход"}}};function C8(){return{localeError:w8()}}var x8=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(a){return e[a]??null}const i={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Tipus invàlid: s'esperava instanceof ${a.expected}, s'ha rebut ${o}`:`Tipus invàlid: s'esperava ${s}, s'ha rebut ${o}`}case"invalid_value":return a.values.length===1?`Valor invàlid: s'esperava ${Ne(a.values[0])}`:`Opció invàlida: s'esperava una de ${ae(a.values," o ")}`;case"too_big":{const s=a.inclusive?"com a màxim":"menys de",n=t(a.origin);return n?`Massa gran: s'esperava que ${a.origin??"el valor"} contingués ${s} ${a.maximum.toString()} ${n.unit??"elements"}`:`Massa gran: s'esperava que ${a.origin??"el valor"} fos ${s} ${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?"com a mínim":"més de",n=t(a.origin);return n?`Massa petit: s'esperava que ${a.origin} contingués ${s} ${a.minimum.toString()} ${n.unit}`:`Massa petit: s'esperava que ${a.origin} fos ${s} ${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Format invàlid: ha de començar amb "${s.prefix}"`:s.format==="ends_with"?`Format invàlid: ha d'acabar amb "${s.suffix}"`:s.format==="includes"?`Format invàlid: ha d'incloure "${s.includes}"`:s.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${s.pattern}`:`Format invàlid per a ${i[s.format]??a.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${a.divisor}`;case"unrecognized_keys":return`Clau${a.keys.length>1?"s":""} no reconeguda${a.keys.length>1?"s":""}: ${ae(a.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${a.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${a.origin}`;default:return"Entrada invàlida"}}};function E8(){return{localeError:x8()}}var A8=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(a){return e[a]??null}const i={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},r={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Neplatný vstup: očekáváno instanceof ${a.expected}, obdrženo ${o}`:`Neplatný vstup: očekáváno ${s}, obdrženo ${o}`}case"invalid_value":return a.values.length===1?`Neplatný vstup: očekáváno ${Ne(a.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Hodnota je příliš velká: ${a.origin??"hodnota"} musí mít ${s}${a.maximum.toString()} ${n.unit??"prvků"}`:`Hodnota je příliš velká: ${a.origin??"hodnota"} musí být ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Hodnota je příliš malá: ${a.origin??"hodnota"} musí mít ${s}${a.minimum.toString()} ${n.unit??"prvků"}`:`Hodnota je příliš malá: ${a.origin??"hodnota"} musí být ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Neplatný řetězec: musí začínat na "${s.prefix}"`:s.format==="ends_with"?`Neplatný řetězec: musí končit na "${s.suffix}"`:s.format==="includes"?`Neplatný řetězec: musí obsahovat "${s.includes}"`:s.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${s.pattern}`:`Neplatný formát ${i[s.format]??a.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${a.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${ae(a.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${a.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${a.origin}`;default:return"Neplatný vstup"}}};function k8(){return{localeError:A8()}}var D8=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(a){return e[a]??null}const i={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},r={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Ugyldigt input: forventede instanceof ${a.expected}, fik ${o}`:`Ugyldigt input: forventede ${s}, fik ${o}`}case"invalid_value":return a.values.length===1?`Ugyldig værdi: forventede ${Ne(a.values[0])}`:`Ugyldigt valg: forventede en af følgende ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin),o=r[a.origin]??a.origin;return n?`For stor: forventede ${o??"value"} ${n.verb} ${s} ${a.maximum.toString()} ${n.unit??"elementer"}`:`For stor: forventede ${o??"value"} havde ${s} ${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin),o=r[a.origin]??a.origin;return n?`For lille: forventede ${o} ${n.verb} ${s} ${a.minimum.toString()} ${n.unit}`:`For lille: forventede ${o} havde ${s} ${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Ugyldig streng: skal starte med "${s.prefix}"`:s.format==="ends_with"?`Ugyldig streng: skal ende med "${s.suffix}"`:s.format==="includes"?`Ugyldig streng: skal indeholde "${s.includes}"`:s.format==="regex"?`Ugyldig streng: skal matche mønsteret ${s.pattern}`:`Ugyldig ${i[s.format]??a.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${ae(a.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${a.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${a.origin}`;default:return"Ugyldigt input"}}};function _8(){return{localeError:D8()}}var S8=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(a){return e[a]??null}const i={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},r={nan:"NaN",number:"Zahl",array:"Array"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Ungültige Eingabe: erwartet instanceof ${a.expected}, erhalten ${o}`:`Ungültige Eingabe: erwartet ${s}, erhalten ${o}`}case"invalid_value":return a.values.length===1?`Ungültige Eingabe: erwartet ${Ne(a.values[0])}`:`Ungültige Option: erwartet eine von ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Zu groß: erwartet, dass ${a.origin??"Wert"} ${s}${a.maximum.toString()} ${n.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${a.origin??"Wert"} ${s}${a.maximum.toString()} ist`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Zu klein: erwartet, dass ${a.origin} ${s}${a.minimum.toString()} ${n.unit} hat`:`Zu klein: erwartet, dass ${a.origin} ${s}${a.minimum.toString()} ist`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Ungültiger String: muss mit "${s.prefix}" beginnen`:s.format==="ends_with"?`Ungültiger String: muss mit "${s.suffix}" enden`:s.format==="includes"?`Ungültiger String: muss "${s.includes}" enthalten`:s.format==="regex"?`Ungültiger String: muss dem Muster ${s.pattern} entsprechen`:`Ungültig: ${i[s.format]??a.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${a.divisor} sein`;case"unrecognized_keys":return`${a.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${ae(a.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${a.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${a.origin}`;default:return"Ungültige Eingabe"}}};function N8(){return{localeError:S8()}}var B8=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(a){return e[a]??null}const i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return`Invalid input: expected ${s}, received ${o}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${Ne(a.values[0])}`:`Invalid option: expected one of ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Too big: expected ${a.origin??"value"} to have ${s}${a.maximum.toString()} ${n.unit??"elements"}`:`Too big: expected ${a.origin??"value"} to be ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Too small: expected ${a.origin} to have ${s}${a.minimum.toString()} ${n.unit}`:`Too small: expected ${a.origin} to be ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${i[s.format]??a.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${a.divisor}`;case"unrecognized_keys":return`Unrecognized key${a.keys.length>1?"s":""}: ${ae(a.keys,", ")}`;case"invalid_key":return`Invalid key in ${a.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}};function ym(){return{localeError:B8()}}var F8=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(a){return e[a]??null}const i={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},r={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Nevalida enigo: atendiĝis instanceof ${a.expected}, riceviĝis ${o}`:`Nevalida enigo: atendiĝis ${s}, riceviĝis ${o}`}case"invalid_value":return a.values.length===1?`Nevalida enigo: atendiĝis ${Ne(a.values[0])}`:`Nevalida opcio: atendiĝis unu el ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Tro granda: atendiĝis ke ${a.origin??"valoro"} havu ${s}${a.maximum.toString()} ${n.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${a.origin??"valoro"} havu ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Tro malgranda: atendiĝis ke ${a.origin} havu ${s}${a.minimum.toString()} ${n.unit}`:`Tro malgranda: atendiĝis ke ${a.origin} estu ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${s.prefix}"`:s.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${s.suffix}"`:s.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${s.includes}"`:s.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${s.pattern}`:`Nevalida ${i[s.format]??a.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${a.divisor}`;case"unrecognized_keys":return`Nekonata${a.keys.length>1?"j":""} ŝlosilo${a.keys.length>1?"j":""}: ${ae(a.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${a.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${a.origin}`;default:return"Nevalida enigo"}}};function I8(){return{localeError:F8()}}var V8=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(a){return e[a]??null}const i={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Entrada inválida: se esperaba instanceof ${a.expected}, recibido ${o}`:`Entrada inválida: se esperaba ${s}, recibido ${o}`}case"invalid_value":return a.values.length===1?`Entrada inválida: se esperaba ${Ne(a.values[0])}`:`Opción inválida: se esperaba una de ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin),o=r[a.origin]??a.origin;return n?`Demasiado grande: se esperaba que ${o??"valor"} tuviera ${s}${a.maximum.toString()} ${n.unit??"elementos"}`:`Demasiado grande: se esperaba que ${o??"valor"} fuera ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin),o=r[a.origin]??a.origin;return n?`Demasiado pequeño: se esperaba que ${o} tuviera ${s}${a.minimum.toString()} ${n.unit}`:`Demasiado pequeño: se esperaba que ${o} fuera ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Cadena inválida: debe comenzar con "${s.prefix}"`:s.format==="ends_with"?`Cadena inválida: debe terminar en "${s.suffix}"`:s.format==="includes"?`Cadena inválida: debe incluir "${s.includes}"`:s.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${s.pattern}`:`Inválido ${i[s.format]??a.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${a.divisor}`;case"unrecognized_keys":return`Llave${a.keys.length>1?"s":""} desconocida${a.keys.length>1?"s":""}: ${ae(a.keys,", ")}`;case"invalid_key":return`Llave inválida en ${r[a.origin]??a.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${r[a.origin]??a.origin}`;default:return"Entrada inválida"}}};function z8(){return{localeError:V8()}}var P8=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(a){return e[a]??null}const i={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},r={nan:"NaN",number:"عدد",array:"آرایه"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`ورودی نامعتبر: میبایست instanceof ${a.expected} میبود، ${o} دریافت شد`:`ورودی نامعتبر: میبایست ${s} میبود، ${o} دریافت شد`}case"invalid_value":return a.values.length===1?`ورودی نامعتبر: میبایست ${Ne(a.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${ae(a.values,"|")} میبود`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`خیلی بزرگ: ${a.origin??"مقدار"} باید ${s}${a.maximum.toString()} ${n.unit??"عنصر"} باشد`:`خیلی بزرگ: ${a.origin??"مقدار"} باید ${s}${a.maximum.toString()} باشد`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`خیلی کوچک: ${a.origin} باید ${s}${a.minimum.toString()} ${n.unit} باشد`:`خیلی کوچک: ${a.origin} باید ${s}${a.minimum.toString()} باشد`}case"invalid_format":{const s=a;return s.format==="starts_with"?`رشته نامعتبر: باید با "${s.prefix}" شروع شود`:s.format==="ends_with"?`رشته نامعتبر: باید با "${s.suffix}" تمام شود`:s.format==="includes"?`رشته نامعتبر: باید شامل "${s.includes}" باشد`:s.format==="regex"?`رشته نامعتبر: باید با الگوی ${s.pattern} مطابقت داشته باشد`:`${i[s.format]??a.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${a.divisor} باشد`;case"unrecognized_keys":return`کلید${a.keys.length>1?"های":""} ناشناس: ${ae(a.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${a.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${a.origin}`;default:return"ورودی نامعتبر"}}};function T8(){return{localeError:P8()}}var O8=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(a){return e[a]??null}const i={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},r={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Virheellinen tyyppi: odotettiin instanceof ${a.expected}, oli ${o}`:`Virheellinen tyyppi: odotettiin ${s}, oli ${o}`}case"invalid_value":return a.values.length===1?`Virheellinen syöte: täytyy olla ${Ne(a.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Liian suuri: ${n.subject} täytyy olla ${s}${a.maximum.toString()} ${n.unit}`.trim():`Liian suuri: arvon täytyy olla ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Liian pieni: ${n.subject} täytyy olla ${s}${a.minimum.toString()} ${n.unit}`.trim():`Liian pieni: arvon täytyy olla ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${s.prefix}"`:s.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${s.suffix}"`:s.format==="includes"?`Virheellinen syöte: täytyy sisältää "${s.includes}"`:s.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${s.pattern}`:`Virheellinen ${i[s.format]??a.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${a.divisor} monikerta`;case"unrecognized_keys":return`${a.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${ae(a.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function R8(){return{localeError:O8()}}var M8=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(a){return e[a]??null}const i={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},r={nan:"NaN",number:"nombre",array:"tableau"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Entrée invalide : instanceof ${a.expected} attendu, ${o} reçu`:`Entrée invalide : ${s} attendu, ${o} reçu`}case"invalid_value":return a.values.length===1?`Entrée invalide : ${Ne(a.values[0])} attendu`:`Option invalide : une valeur parmi ${ae(a.values,"|")} attendue`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Trop grand : ${a.origin??"valeur"} doit ${n.verb} ${s}${a.maximum.toString()} ${n.unit??"élément(s)"}`:`Trop grand : ${a.origin??"valeur"} doit être ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Trop petit : ${a.origin} doit ${n.verb} ${s}${a.minimum.toString()} ${n.unit}`:`Trop petit : ${a.origin} doit être ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Chaîne invalide : doit commencer par "${s.prefix}"`:s.format==="ends_with"?`Chaîne invalide : doit se terminer par "${s.suffix}"`:s.format==="includes"?`Chaîne invalide : doit inclure "${s.includes}"`:s.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${s.pattern}`:`${i[s.format]??a.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${a.divisor}`;case"unrecognized_keys":return`Clé${a.keys.length>1?"s":""} non reconnue${a.keys.length>1?"s":""} : ${ae(a.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${a.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${a.origin}`;default:return"Entrée invalide"}}};function Z8(){return{localeError:M8()}}var L8=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(a){return e[a]??null}const i={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},r={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Entrée invalide : attendu instanceof ${a.expected}, reçu ${o}`:`Entrée invalide : attendu ${s}, reçu ${o}`}case"invalid_value":return a.values.length===1?`Entrée invalide : attendu ${Ne(a.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"≤":"<",n=t(a.origin);return n?`Trop grand : attendu que ${a.origin??"la valeur"} ait ${s}${a.maximum.toString()} ${n.unit}`:`Trop grand : attendu que ${a.origin??"la valeur"} soit ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?"≥":">",n=t(a.origin);return n?`Trop petit : attendu que ${a.origin} ait ${s}${a.minimum.toString()} ${n.unit}`:`Trop petit : attendu que ${a.origin} soit ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Chaîne invalide : doit commencer par "${s.prefix}"`:s.format==="ends_with"?`Chaîne invalide : doit se terminer par "${s.suffix}"`:s.format==="includes"?`Chaîne invalide : doit inclure "${s.includes}"`:s.format==="regex"?`Chaîne invalide : doit correspondre au motif ${s.pattern}`:`${i[s.format]??a.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${a.divisor}`;case"unrecognized_keys":return`Clé${a.keys.length>1?"s":""} non reconnue${a.keys.length>1?"s":""} : ${ae(a.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${a.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${a.origin}`;default:return"Entrée invalide"}}};function $8(){return{localeError:L8()}}var U8=()=>{const e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},i=l=>l?e[l]:void 0,r=l=>{const c=i(l);return c?c.label:l??e.unknown.label},a=l=>`ה${r(l)}`,s=l=>(i(l)?.gender??"m")==="f"?"צריכה להיות":"צריך להיות",n=l=>l?t[l]??null:null,o={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},u={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{const c=l.expected,f=u[c??""]??r(c),h=Be(l.input),g=u[h]??e[h]?.label??h;return/^[A-Z]/.test(l.expected)?`קלט לא תקין: צריך להיות instanceof ${l.expected}, התקבל ${g}`:`קלט לא תקין: צריך להיות ${f}, התקבל ${g}`}case"invalid_value":{if(l.values.length===1)return`ערך לא תקין: הערך חייב להיות ${Ne(l.values[0])}`;const c=l.values.map(g=>Ne(g));if(l.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${c[0]} או ${c[1]}`;const f=c[c.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${c.slice(0,-1).join(", ")} או ${f}`}case"too_big":{const c=n(l.origin),f=a(l.origin??"value");if(l.origin==="string")return`${c?.longLabel??"ארוך"} מדי: ${f} צריכה להכיל ${l.maximum.toString()} ${c?.unit??""} ${l.inclusive?"או פחות":"לכל היותר"}`.trim();if(l.origin==="number"){const p=l.inclusive?`קטן או שווה ל-${l.maximum}`:`קטן מ-${l.maximum}`;return`גדול מדי: ${f} צריך להיות ${p}`}if(l.origin==="array"||l.origin==="set"){const p=l.origin==="set"?"צריכה":"צריך",v=l.inclusive?`${l.maximum} ${c?.unit??""} או פחות`:`פחות מ-${l.maximum} ${c?.unit??""}`;return`גדול מדי: ${f} ${p} להכיל ${v}`.trim()}const h=l.inclusive?"<=":"<",g=s(l.origin??"value");return c?.unit?`${c.longLabel} מדי: ${f} ${g} ${h}${l.maximum.toString()} ${c.unit}`:`${c?.longLabel??"גדול"} מדי: ${f} ${g} ${h}${l.maximum.toString()}`}case"too_small":{const c=n(l.origin),f=a(l.origin??"value");if(l.origin==="string")return`${c?.shortLabel??"קצר"} מדי: ${f} צריכה להכיל ${l.minimum.toString()} ${c?.unit??""} ${l.inclusive?"או יותר":"לפחות"}`.trim();if(l.origin==="number"){const p=l.inclusive?`גדול או שווה ל-${l.minimum}`:`גדול מ-${l.minimum}`;return`קטן מדי: ${f} צריך להיות ${p}`}if(l.origin==="array"||l.origin==="set"){const p=l.origin==="set"?"צריכה":"צריך";if(l.minimum===1&&l.inclusive){const k=(l.origin==="set","לפחות פריט אחד");return`קטן מדי: ${f} ${p} להכיל ${k}`}const v=l.inclusive?`${l.minimum} ${c?.unit??""} או יותר`:`יותר מ-${l.minimum} ${c?.unit??""}`;return`קטן מדי: ${f} ${p} להכיל ${v}`.trim()}const h=l.inclusive?">=":">",g=s(l.origin??"value");return c?.unit?`${c.shortLabel} מדי: ${f} ${g} ${h}${l.minimum.toString()} ${c.unit}`:`${c?.shortLabel??"קטן"} מדי: ${f} ${g} ${h}${l.minimum.toString()}`}case"invalid_format":{const c=l;if(c.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${c.prefix}"`;if(c.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${c.suffix}"`;if(c.format==="includes")return`המחרוזת חייבת לכלול "${c.includes}"`;if(c.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${c.pattern}`;const f=o[c.format],h=f?.label??c.format,p=(f?.gender??"m")==="f"?"תקינה":"תקין";return`${h} לא ${p}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${l.divisor}`;case"unrecognized_keys":return`מפתח${l.keys.length>1?"ות":""} לא מזוה${l.keys.length>1?"ים":"ה"}: ${ae(l.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${a(l.origin??"array")}`;default:return"קלט לא תקין"}}};function j8(){return{localeError:U8()}}var G8=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(a){return e[a]??null}const i={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},r={nan:"NaN",number:"szám",array:"tömb"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Érvénytelen bemenet: a várt érték instanceof ${a.expected}, a kapott érték ${o}`:`Érvénytelen bemenet: a várt érték ${s}, a kapott érték ${o}`}case"invalid_value":return a.values.length===1?`Érvénytelen bemenet: a várt érték ${Ne(a.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Túl nagy: ${a.origin??"érték"} mérete túl nagy ${s}${a.maximum.toString()} ${n.unit??"elem"}`:`Túl nagy: a bemeneti érték ${a.origin??"érték"} túl nagy: ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Túl kicsi: a bemeneti érték ${a.origin} mérete túl kicsi ${s}${a.minimum.toString()} ${n.unit}`:`Túl kicsi: a bemeneti érték ${a.origin} túl kicsi ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Érvénytelen string: "${s.prefix}" értékkel kell kezdődnie`:s.format==="ends_with"?`Érvénytelen string: "${s.suffix}" értékkel kell végződnie`:s.format==="includes"?`Érvénytelen string: "${s.includes}" értéket kell tartalmaznia`:s.format==="regex"?`Érvénytelen string: ${s.pattern} mintának kell megfelelnie`:`Érvénytelen ${i[s.format]??a.format}`}case"not_multiple_of":return`Érvénytelen szám: ${a.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${a.keys.length>1?"s":""}: ${ae(a.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${a.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${a.origin}`;default:return"Érvénytelen bemenet"}}};function W8(){return{localeError:G8()}}function bm(e,t,i){return Math.abs(e)===1?t:i}function Vr(e){if(!e)return"";const t=["ա","ե","ը","ի","ո","ու","օ"],i=e[e.length-1];return e+(t.includes(i)?"ն":"ը")}var Y8=()=>{const e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function t(a){return e[a]??null}const i={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},r={nan:"NaN",number:"թիվ",array:"զանգված"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${a.expected}, ստացվել է ${o}`:`Սխալ մուտքագրում․ սպասվում էր ${s}, ստացվել է ${o}`}case"invalid_value":return a.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${Ne(a.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);if(n){const o=Number(a.maximum),u=bm(o,n.unit.one,n.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Vr(a.origin??"արժեք")} կունենա ${s}${a.maximum.toString()} ${u}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Vr(a.origin??"արժեք")} լինի ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);if(n){const o=Number(a.minimum),u=bm(o,n.unit.one,n.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Vr(a.origin)} կունենա ${s}${a.minimum.toString()} ${u}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Vr(a.origin)} լինի ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Սխալ տող․ պետք է սկսվի "${s.prefix}"-ով`:s.format==="ends_with"?`Սխալ տող․ պետք է ավարտվի "${s.suffix}"-ով`:s.format==="includes"?`Սխալ տող․ պետք է պարունակի "${s.includes}"`:s.format==="regex"?`Սխալ տող․ պետք է համապատասխանի ${s.pattern} ձևաչափին`:`Սխալ ${i[s.format]??a.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${a.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${a.keys.length>1?"ներ":""}. ${ae(a.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${Vr(a.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${Vr(a.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function K8(){return{localeError:Y8()}}var X8=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(a){return e[a]??null}const i={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Input tidak valid: diharapkan instanceof ${a.expected}, diterima ${o}`:`Input tidak valid: diharapkan ${s}, diterima ${o}`}case"invalid_value":return a.values.length===1?`Input tidak valid: diharapkan ${Ne(a.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Terlalu besar: diharapkan ${a.origin??"value"} memiliki ${s}${a.maximum.toString()} ${n.unit??"elemen"}`:`Terlalu besar: diharapkan ${a.origin??"value"} menjadi ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Terlalu kecil: diharapkan ${a.origin} memiliki ${s}${a.minimum.toString()} ${n.unit}`:`Terlalu kecil: diharapkan ${a.origin} menjadi ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`String tidak valid: harus dimulai dengan "${s.prefix}"`:s.format==="ends_with"?`String tidak valid: harus berakhir dengan "${s.suffix}"`:s.format==="includes"?`String tidak valid: harus menyertakan "${s.includes}"`:s.format==="regex"?`String tidak valid: harus sesuai pola ${s.pattern}`:`${i[s.format]??a.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${a.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${a.keys.length>1?"s":""}: ${ae(a.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${a.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${a.origin}`;default:return"Input tidak valid"}}};function H8(){return{localeError:X8()}}var J8=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function t(a){return e[a]??null}const i={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},r={nan:"NaN",number:"númer",array:"fylki"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Rangt gildi: Þú slóst inn ${o} þar sem á að vera instanceof ${a.expected}`:`Rangt gildi: Þú slóst inn ${o} þar sem á að vera ${s}`}case"invalid_value":return a.values.length===1?`Rangt gildi: gert ráð fyrir ${Ne(a.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Of stórt: gert er ráð fyrir að ${a.origin??"gildi"} hafi ${s}${a.maximum.toString()} ${n.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${a.origin??"gildi"} sé ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Of lítið: gert er ráð fyrir að ${a.origin} hafi ${s}${a.minimum.toString()} ${n.unit}`:`Of lítið: gert er ráð fyrir að ${a.origin} sé ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Ógildur strengur: verður að byrja á "${s.prefix}"`:s.format==="ends_with"?`Ógildur strengur: verður að enda á "${s.suffix}"`:s.format==="includes"?`Ógildur strengur: verður að innihalda "${s.includes}"`:s.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${s.pattern}`:`Rangt ${i[s.format]??a.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${a.divisor}`;case"unrecognized_keys":return`Óþekkt ${a.keys.length>1?"ir lyklar":"ur lykill"}: ${ae(a.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${a.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${a.origin}`;default:return"Rangt gildi"}}};function q8(){return{localeError:J8()}}var Q8=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(a){return e[a]??null}const i={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"numero",array:"vettore"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Input non valido: atteso instanceof ${a.expected}, ricevuto ${o}`:`Input non valido: atteso ${s}, ricevuto ${o}`}case"invalid_value":return a.values.length===1?`Input non valido: atteso ${Ne(a.values[0])}`:`Opzione non valida: atteso uno tra ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Troppo grande: ${a.origin??"valore"} deve avere ${s}${a.maximum.toString()} ${n.unit??"elementi"}`:`Troppo grande: ${a.origin??"valore"} deve essere ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Troppo piccolo: ${a.origin} deve avere ${s}${a.minimum.toString()} ${n.unit}`:`Troppo piccolo: ${a.origin} deve essere ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Stringa non valida: deve iniziare con "${s.prefix}"`:s.format==="ends_with"?`Stringa non valida: deve terminare con "${s.suffix}"`:s.format==="includes"?`Stringa non valida: deve includere "${s.includes}"`:s.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${s.pattern}`:`Invalid ${i[s.format]??a.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${a.divisor}`;case"unrecognized_keys":return`Chiav${a.keys.length>1?"i":"e"} non riconosciut${a.keys.length>1?"e":"a"}: ${ae(a.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${a.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${a.origin}`;default:return"Input non valido"}}};function e9(){return{localeError:Q8()}}var t9=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(a){return e[a]??null}const i={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},r={nan:"NaN",number:"数値",array:"配列"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`無効な入力: instanceof ${a.expected}が期待されましたが、${o}が入力されました`:`無効な入力: ${s}が期待されましたが、${o}が入力されました`}case"invalid_value":return a.values.length===1?`無効な入力: ${Ne(a.values[0])}が期待されました`:`無効な選択: ${ae(a.values,"、")}のいずれかである必要があります`;case"too_big":{const s=a.inclusive?"以下である":"より小さい",n=t(a.origin);return n?`大きすぎる値: ${a.origin??"値"}は${a.maximum.toString()}${n.unit??"要素"}${s}必要があります`:`大きすぎる値: ${a.origin??"値"}は${a.maximum.toString()}${s}必要があります`}case"too_small":{const s=a.inclusive?"以上である":"より大きい",n=t(a.origin);return n?`小さすぎる値: ${a.origin}は${a.minimum.toString()}${n.unit}${s}必要があります`:`小さすぎる値: ${a.origin}は${a.minimum.toString()}${s}必要があります`}case"invalid_format":{const s=a;return s.format==="starts_with"?`無効な文字列: "${s.prefix}"で始まる必要があります`:s.format==="ends_with"?`無効な文字列: "${s.suffix}"で終わる必要があります`:s.format==="includes"?`無効な文字列: "${s.includes}"を含む必要があります`:s.format==="regex"?`無効な文字列: パターン${s.pattern}に一致する必要があります`:`無効な${i[s.format]??a.format}`}case"not_multiple_of":return`無効な数値: ${a.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${a.keys.length>1?"群":""}: ${ae(a.keys,"、")}`;case"invalid_key":return`${a.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${a.origin}内の無効な値`;default:return"無効な入力"}}};function i9(){return{localeError:t9()}}var a9=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function t(a){return e[a]??null}const i={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},r={nan:"NaN",number:"რიცხვი",string:"სტრინგი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${a.expected}, მიღებული ${o}`:`არასწორი შეყვანა: მოსალოდნელი ${s}, მიღებული ${o}`}case"invalid_value":return a.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${Ne(a.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${ae(a.values,"|")}-დან`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`ზედმეტად დიდი: მოსალოდნელი ${a.origin??"მნიშვნელობა"} ${n.verb} ${s}${a.maximum.toString()} ${n.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${a.origin??"მნიშვნელობა"} იყოს ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`ზედმეტად პატარა: მოსალოდნელი ${a.origin} ${n.verb} ${s}${a.minimum.toString()} ${n.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${a.origin} იყოს ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${s.prefix}"-ით`:s.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${s.suffix}"-ით`:s.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${s.includes}"-ს`:s.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${s.pattern}`:`არასწორი ${i[s.format]??a.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${a.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${a.keys.length>1?"ები":"ი"}: ${ae(a.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${a.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${a.origin}-ში`;default:return"არასწორი შეყვანა"}}};function r9(){return{localeError:a9()}}var s9=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(a){return e[a]??null}const i={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},r={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${a.expected} ប៉ុន្តែទទួលបាន ${o}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${s} ប៉ុន្តែទទួលបាន ${o}`}case"invalid_value":return a.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Ne(a.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`ធំពេក៖ ត្រូវការ ${a.origin??"តម្លៃ"} ${s} ${a.maximum.toString()} ${n.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${a.origin??"តម្លៃ"} ${s} ${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`តូចពេក៖ ត្រូវការ ${a.origin} ${s} ${a.minimum.toString()} ${n.unit}`:`តូចពេក៖ ត្រូវការ ${a.origin} ${s} ${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${s.prefix}"`:s.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${s.suffix}"`:s.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${s.includes}"`:s.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${s.pattern}`:`មិនត្រឹមត្រូវ៖ ${i[s.format]??a.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${a.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${ae(a.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${a.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${a.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function vm(){return{localeError:s9()}}function n9(){return vm()}var o9=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(a){return e[a]??null}const i={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},r={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`잘못된 입력: 예상 타입은 instanceof ${a.expected}, 받은 타입은 ${o}입니다`:`잘못된 입력: 예상 타입은 ${s}, 받은 타입은 ${o}입니다`}case"invalid_value":return a.values.length===1?`잘못된 입력: 값은 ${Ne(a.values[0])} 이어야 합니다`:`잘못된 옵션: ${ae(a.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const s=a.inclusive?"이하":"미만",n=s==="미만"?"이어야 합니다":"여야 합니다",o=t(a.origin),u=o?.unit??"요소";return o?`${a.origin??"값"}이 너무 큽니다: ${a.maximum.toString()}${u} ${s}${n}`:`${a.origin??"값"}이 너무 큽니다: ${a.maximum.toString()} ${s}${n}`}case"too_small":{const s=a.inclusive?"이상":"초과",n=s==="이상"?"이어야 합니다":"여야 합니다",o=t(a.origin),u=o?.unit??"요소";return o?`${a.origin??"값"}이 너무 작습니다: ${a.minimum.toString()}${u} ${s}${n}`:`${a.origin??"값"}이 너무 작습니다: ${a.minimum.toString()} ${s}${n}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`잘못된 문자열: "${s.prefix}"(으)로 시작해야 합니다`:s.format==="ends_with"?`잘못된 문자열: "${s.suffix}"(으)로 끝나야 합니다`:s.format==="includes"?`잘못된 문자열: "${s.includes}"을(를) 포함해야 합니다`:s.format==="regex"?`잘못된 문자열: 정규식 ${s.pattern} 패턴과 일치해야 합니다`:`잘못된 ${i[s.format]??a.format}`}case"not_multiple_of":return`잘못된 숫자: ${a.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${ae(a.keys,", ")}`;case"invalid_key":return`잘못된 키: ${a.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${a.origin}`;default:return"잘못된 입력"}}};function u9(){return{localeError:o9()}}var Es=e=>e.charAt(0).toUpperCase()+e.slice(1);function wm(e){const t=Math.abs(e),i=t%10,r=t%100;return r>=11&&r<=19||i===0?"many":i===1?"one":"few"}var l9=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function t(a,s,n,o){const u=e[a]??null;return u===null?u:{unit:u.unit[s],verb:u.verb[o][n?"inclusive":"notInclusive"]}}const i={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},r={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Gautas tipas ${o}, o tikėtasi - instanceof ${a.expected}`:`Gautas tipas ${o}, o tikėtasi - ${s}`}case"invalid_value":return a.values.length===1?`Privalo būti ${Ne(a.values[0])}`:`Privalo būti vienas iš ${ae(a.values,"|")} pasirinkimų`;case"too_big":{const s=r[a.origin]??a.origin,n=t(a.origin,wm(Number(a.maximum)),a.inclusive??!1,"smaller");if(n?.verb)return`${Es(s??a.origin??"reikšmė")} ${n.verb} ${a.maximum.toString()} ${n.unit??"elementų"}`;const o=a.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${Es(s??a.origin??"reikšmė")} turi būti ${o} ${a.maximum.toString()} ${n?.unit}`}case"too_small":{const s=r[a.origin]??a.origin,n=t(a.origin,wm(Number(a.minimum)),a.inclusive??!1,"bigger");if(n?.verb)return`${Es(s??a.origin??"reikšmė")} ${n.verb} ${a.minimum.toString()} ${n.unit??"elementų"}`;const o=a.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${Es(s??a.origin??"reikšmė")} turi būti ${o} ${a.minimum.toString()} ${n?.unit}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Eilutė privalo prasidėti "${s.prefix}"`:s.format==="ends_with"?`Eilutė privalo pasibaigti "${s.suffix}"`:s.format==="includes"?`Eilutė privalo įtraukti "${s.includes}"`:s.format==="regex"?`Eilutė privalo atitikti ${s.pattern}`:`Neteisingas ${i[s.format]??a.format}`}case"not_multiple_of":return`Skaičius privalo būti ${a.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${a.keys.length>1?"i":"as"} rakt${a.keys.length>1?"ai":"as"}: ${ae(a.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const s=r[a.origin]??a.origin;return`${Es(s??a.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function c9(){return{localeError:l9()}}var f9=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(a){return e[a]??null}const i={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},r={nan:"NaN",number:"број",array:"низа"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Грешен внес: се очекува instanceof ${a.expected}, примено ${o}`:`Грешен внес: се очекува ${s}, примено ${o}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${Ne(a.values[0])}`:`Грешана опција: се очекува една ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Премногу голем: се очекува ${a.origin??"вредноста"} да има ${s}${a.maximum.toString()} ${n.unit??"елементи"}`:`Премногу голем: се очекува ${a.origin??"вредноста"} да биде ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Премногу мал: се очекува ${a.origin} да има ${s}${a.minimum.toString()} ${n.unit}`:`Премногу мал: се очекува ${a.origin} да биде ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Неважечка низа: мора да започнува со "${s.prefix}"`:s.format==="ends_with"?`Неважечка низа: мора да завршува со "${s.suffix}"`:s.format==="includes"?`Неважечка низа: мора да вклучува "${s.includes}"`:s.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${s.pattern}`:`Invalid ${i[s.format]??a.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${ae(a.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${a.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${a.origin}`;default:return"Грешен внес"}}};function d9(){return{localeError:f9()}}var h9=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(a){return e[a]??null}const i={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"nombor"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Input tidak sah: dijangka instanceof ${a.expected}, diterima ${o}`:`Input tidak sah: dijangka ${s}, diterima ${o}`}case"invalid_value":return a.values.length===1?`Input tidak sah: dijangka ${Ne(a.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Terlalu besar: dijangka ${a.origin??"nilai"} ${n.verb} ${s}${a.maximum.toString()} ${n.unit??"elemen"}`:`Terlalu besar: dijangka ${a.origin??"nilai"} adalah ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Terlalu kecil: dijangka ${a.origin} ${n.verb} ${s}${a.minimum.toString()} ${n.unit}`:`Terlalu kecil: dijangka ${a.origin} adalah ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`String tidak sah: mesti bermula dengan "${s.prefix}"`:s.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${s.suffix}"`:s.format==="includes"?`String tidak sah: mesti mengandungi "${s.includes}"`:s.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${s.pattern}`:`${i[s.format]??a.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${a.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${ae(a.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${a.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${a.origin}`;default:return"Input tidak sah"}}};function g9(){return{localeError:h9()}}var p9=()=>{const e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(a){return e[a]??null}const i={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},r={nan:"NaN",number:"getal"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Ongeldige invoer: verwacht instanceof ${a.expected}, ontving ${o}`:`Ongeldige invoer: verwacht ${s}, ontving ${o}`}case"invalid_value":return a.values.length===1?`Ongeldige invoer: verwacht ${Ne(a.values[0])}`:`Ongeldige optie: verwacht één van ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin),o=a.origin==="date"?"laat":a.origin==="string"?"lang":"groot";return n?`Te ${o}: verwacht dat ${a.origin??"waarde"} ${s}${a.maximum.toString()} ${n.unit??"elementen"} ${n.verb}`:`Te ${o}: verwacht dat ${a.origin??"waarde"} ${s}${a.maximum.toString()} is`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin),o=a.origin==="date"?"vroeg":a.origin==="string"?"kort":"klein";return n?`Te ${o}: verwacht dat ${a.origin} ${s}${a.minimum.toString()} ${n.unit} ${n.verb}`:`Te ${o}: verwacht dat ${a.origin} ${s}${a.minimum.toString()} is`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Ongeldige tekst: moet met "${s.prefix}" beginnen`:s.format==="ends_with"?`Ongeldige tekst: moet op "${s.suffix}" eindigen`:s.format==="includes"?`Ongeldige tekst: moet "${s.includes}" bevatten`:s.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${s.pattern}`:`Ongeldig: ${i[s.format]??a.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${a.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${a.keys.length>1?"s":""}: ${ae(a.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${a.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${a.origin}`;default:return"Ongeldige invoer"}}};function m9(){return{localeError:p9()}}var y9=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(a){return e[a]??null}const i={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"tall",array:"liste"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Ugyldig input: forventet instanceof ${a.expected}, fikk ${o}`:`Ugyldig input: forventet ${s}, fikk ${o}`}case"invalid_value":return a.values.length===1?`Ugyldig verdi: forventet ${Ne(a.values[0])}`:`Ugyldig valg: forventet en av ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`For stor(t): forventet ${a.origin??"value"} til å ha ${s}${a.maximum.toString()} ${n.unit??"elementer"}`:`For stor(t): forventet ${a.origin??"value"} til å ha ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`For lite(n): forventet ${a.origin} til å ha ${s}${a.minimum.toString()} ${n.unit}`:`For lite(n): forventet ${a.origin} til å ha ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Ugyldig streng: må starte med "${s.prefix}"`:s.format==="ends_with"?`Ugyldig streng: må ende med "${s.suffix}"`:s.format==="includes"?`Ugyldig streng: må inneholde "${s.includes}"`:s.format==="regex"?`Ugyldig streng: må matche mønsteret ${s.pattern}`:`Ugyldig ${i[s.format]??a.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${ae(a.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${a.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${a.origin}`;default:return"Ugyldig input"}}};function b9(){return{localeError:y9()}}var v9=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(a){return e[a]??null}const i={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},r={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Fâsit giren: umulan instanceof ${a.expected}, alınan ${o}`:`Fâsit giren: umulan ${s}, alınan ${o}`}case"invalid_value":return a.values.length===1?`Fâsit giren: umulan ${Ne(a.values[0])}`:`Fâsit tercih: mûteberler ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Fazla büyük: ${a.origin??"value"}, ${s}${a.maximum.toString()} ${n.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${a.origin??"value"}, ${s}${a.maximum.toString()} olmalıydı.`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Fazla küçük: ${a.origin}, ${s}${a.minimum.toString()} ${n.unit} sahip olmalıydı.`:`Fazla küçük: ${a.origin}, ${s}${a.minimum.toString()} olmalıydı.`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Fâsit metin: "${s.prefix}" ile başlamalı.`:s.format==="ends_with"?`Fâsit metin: "${s.suffix}" ile bitmeli.`:s.format==="includes"?`Fâsit metin: "${s.includes}" ihtivâ etmeli.`:s.format==="regex"?`Fâsit metin: ${s.pattern} nakşına uymalı.`:`Fâsit ${i[s.format]??a.format}`}case"not_multiple_of":return`Fâsit sayı: ${a.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${a.keys.length>1?"s":""}: ${ae(a.keys,", ")}`;case"invalid_key":return`${a.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${a.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function w9(){return{localeError:v9()}}var C9=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(a){return e[a]??null}const i={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},r={nan:"NaN",number:"عدد",array:"ارې"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`ناسم ورودي: باید instanceof ${a.expected} وای, مګر ${o} ترلاسه شو`:`ناسم ورودي: باید ${s} وای, مګر ${o} ترلاسه شو`}case"invalid_value":return a.values.length===1?`ناسم ورودي: باید ${Ne(a.values[0])} وای`:`ناسم انتخاب: باید یو له ${ae(a.values,"|")} څخه وای`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`ډیر لوی: ${a.origin??"ارزښت"} باید ${s}${a.maximum.toString()} ${n.unit??"عنصرونه"} ولري`:`ډیر لوی: ${a.origin??"ارزښت"} باید ${s}${a.maximum.toString()} وي`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`ډیر کوچنی: ${a.origin} باید ${s}${a.minimum.toString()} ${n.unit} ولري`:`ډیر کوچنی: ${a.origin} باید ${s}${a.minimum.toString()} وي`}case"invalid_format":{const s=a;return s.format==="starts_with"?`ناسم متن: باید د "${s.prefix}" سره پیل شي`:s.format==="ends_with"?`ناسم متن: باید د "${s.suffix}" سره پای ته ورسيږي`:s.format==="includes"?`ناسم متن: باید "${s.includes}" ولري`:s.format==="regex"?`ناسم متن: باید د ${s.pattern} سره مطابقت ولري`:`${i[s.format]??a.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${a.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${a.keys.length>1?"کلیډونه":"کلیډ"}: ${ae(a.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${a.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${a.origin} کې`;default:return"ناسمه ورودي"}}};function x9(){return{localeError:C9()}}var E9=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(a){return e[a]??null}const i={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},r={nan:"NaN",number:"liczba",array:"tablica"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${a.expected}, otrzymano ${o}`:`Nieprawidłowe dane wejściowe: oczekiwano ${s}, otrzymano ${o}`}case"invalid_value":return a.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${Ne(a.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Za duża wartość: oczekiwano, że ${a.origin??"wartość"} będzie mieć ${s}${a.maximum.toString()} ${n.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${a.origin??"wartość"} będzie wynosić ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Za mała wartość: oczekiwano, że ${a.origin??"wartość"} będzie mieć ${s}${a.minimum.toString()} ${n.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${a.origin??"wartość"} będzie wynosić ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${s.prefix}"`:s.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${s.suffix}"`:s.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${s.includes}"`:s.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${s.pattern}`:`Nieprawidłow(y/a/e) ${i[s.format]??a.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${a.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${a.keys.length>1?"s":""}: ${ae(a.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${a.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${a.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function A9(){return{localeError:E9()}}var k9=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(a){return e[a]??null}const i={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN",number:"número",null:"nulo"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Tipo inválido: esperado instanceof ${a.expected}, recebido ${o}`:`Tipo inválido: esperado ${s}, recebido ${o}`}case"invalid_value":return a.values.length===1?`Entrada inválida: esperado ${Ne(a.values[0])}`:`Opção inválida: esperada uma das ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Muito grande: esperado que ${a.origin??"valor"} tivesse ${s}${a.maximum.toString()} ${n.unit??"elementos"}`:`Muito grande: esperado que ${a.origin??"valor"} fosse ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Muito pequeno: esperado que ${a.origin} tivesse ${s}${a.minimum.toString()} ${n.unit}`:`Muito pequeno: esperado que ${a.origin} fosse ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Texto inválido: deve começar com "${s.prefix}"`:s.format==="ends_with"?`Texto inválido: deve terminar com "${s.suffix}"`:s.format==="includes"?`Texto inválido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inválido: deve corresponder ao padrão ${s.pattern}`:`${i[s.format]??a.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${a.divisor}`;case"unrecognized_keys":return`Chave${a.keys.length>1?"s":""} desconhecida${a.keys.length>1?"s":""}: ${ae(a.keys,", ")}`;case"invalid_key":return`Chave inválida em ${a.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${a.origin}`;default:return"Campo inválido"}}};function D9(){return{localeError:k9()}}function Cm(e,t,i,r){const a=Math.abs(e),s=a%10,n=a%100;return n>=11&&n<=19?r:s===1?t:s>=2&&s<=4?i:r}var _9=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(a){return e[a]??null}const i={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},r={nan:"NaN",number:"число",array:"массив"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Неверный ввод: ожидалось instanceof ${a.expected}, получено ${o}`:`Неверный ввод: ожидалось ${s}, получено ${o}`}case"invalid_value":return a.values.length===1?`Неверный ввод: ожидалось ${Ne(a.values[0])}`:`Неверный вариант: ожидалось одно из ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);if(n){const o=Number(a.maximum),u=Cm(o,n.unit.one,n.unit.few,n.unit.many);return`Слишком большое значение: ожидалось, что ${a.origin??"значение"} будет иметь ${s}${a.maximum.toString()} ${u}`}return`Слишком большое значение: ожидалось, что ${a.origin??"значение"} будет ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);if(n){const o=Number(a.minimum),u=Cm(o,n.unit.one,n.unit.few,n.unit.many);return`Слишком маленькое значение: ожидалось, что ${a.origin} будет иметь ${s}${a.minimum.toString()} ${u}`}return`Слишком маленькое значение: ожидалось, что ${a.origin} будет ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Неверная строка: должна начинаться с "${s.prefix}"`:s.format==="ends_with"?`Неверная строка: должна заканчиваться на "${s.suffix}"`:s.format==="includes"?`Неверная строка: должна содержать "${s.includes}"`:s.format==="regex"?`Неверная строка: должна соответствовать шаблону ${s.pattern}`:`Неверный ${i[s.format]??a.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${a.divisor}`;case"unrecognized_keys":return`Нераспознанн${a.keys.length>1?"ые":"ый"} ключ${a.keys.length>1?"и":""}: ${ae(a.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${a.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${a.origin}`;default:return"Неверные входные данные"}}};function S9(){return{localeError:_9()}}var N9=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(a){return e[a]??null}const i={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},r={nan:"NaN",number:"število",array:"tabela"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Neveljaven vnos: pričakovano instanceof ${a.expected}, prejeto ${o}`:`Neveljaven vnos: pričakovano ${s}, prejeto ${o}`}case"invalid_value":return a.values.length===1?`Neveljaven vnos: pričakovano ${Ne(a.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Preveliko: pričakovano, da bo ${a.origin??"vrednost"} imelo ${s}${a.maximum.toString()} ${n.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${a.origin??"vrednost"} ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Premajhno: pričakovano, da bo ${a.origin} imelo ${s}${a.minimum.toString()} ${n.unit}`:`Premajhno: pričakovano, da bo ${a.origin} ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Neveljaven niz: mora se začeti z "${s.prefix}"`:s.format==="ends_with"?`Neveljaven niz: mora se končati z "${s.suffix}"`:s.format==="includes"?`Neveljaven niz: mora vsebovati "${s.includes}"`:s.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${s.pattern}`:`Neveljaven ${i[s.format]??a.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${a.divisor}`;case"unrecognized_keys":return`Neprepoznan${a.keys.length>1?"i ključi":" ključ"}: ${ae(a.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${a.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${a.origin}`;default:return"Neveljaven vnos"}}};function B9(){return{localeError:N9()}}var F9=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(a){return e[a]??null}const i={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},r={nan:"NaN",number:"antal",array:"lista"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Ogiltig inmatning: förväntat instanceof ${a.expected}, fick ${o}`:`Ogiltig inmatning: förväntat ${s}, fick ${o}`}case"invalid_value":return a.values.length===1?`Ogiltig inmatning: förväntat ${Ne(a.values[0])}`:`Ogiltigt val: förväntade en av ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`För stor(t): förväntade ${a.origin??"värdet"} att ha ${s}${a.maximum.toString()} ${n.unit??"element"}`:`För stor(t): förväntat ${a.origin??"värdet"} att ha ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`För lite(t): förväntade ${a.origin??"värdet"} att ha ${s}${a.minimum.toString()} ${n.unit}`:`För lite(t): förväntade ${a.origin??"värdet"} att ha ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Ogiltig sträng: måste börja med "${s.prefix}"`:s.format==="ends_with"?`Ogiltig sträng: måste sluta med "${s.suffix}"`:s.format==="includes"?`Ogiltig sträng: måste innehålla "${s.includes}"`:s.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${s.pattern}"`:`Ogiltig(t) ${i[s.format]??a.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${ae(a.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${a.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${a.origin??"värdet"}`;default:return"Ogiltig input"}}};function I9(){return{localeError:F9()}}var V9=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(a){return e[a]??null}const i={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${a.expected}, பெறப்பட்டது ${o}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${s}, பெறப்பட்டது ${o}`}case"invalid_value":return a.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Ne(a.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${ae(a.values,"|")} இல் ஒன்று`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${a.origin??"மதிப்பு"} ${s}${a.maximum.toString()} ${n.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${a.origin??"மதிப்பு"} ${s}${a.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${a.origin} ${s}${a.minimum.toString()} ${n.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${a.origin} ${s}${a.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const s=a;return s.format==="starts_with"?`தவறான சரம்: "${s.prefix}" இல் தொடங்க வேண்டும்`:s.format==="ends_with"?`தவறான சரம்: "${s.suffix}" இல் முடிவடைய வேண்டும்`:s.format==="includes"?`தவறான சரம்: "${s.includes}" ஐ உள்ளடக்க வேண்டும்`:s.format==="regex"?`தவறான சரம்: ${s.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${i[s.format]??a.format}`}case"not_multiple_of":return`தவறான எண்: ${a.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${a.keys.length>1?"கள்":""}: ${ae(a.keys,", ")}`;case"invalid_key":return`${a.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${a.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function z9(){return{localeError:V9()}}var P9=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(a){return e[a]??null}const i={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},r={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${a.expected} แต่ได้รับ ${o}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${s} แต่ได้รับ ${o}`}case"invalid_value":return a.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${Ne(a.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"ไม่เกิน":"น้อยกว่า",n=t(a.origin);return n?`เกินกำหนด: ${a.origin??"ค่า"} ควรมี${s} ${a.maximum.toString()} ${n.unit??"รายการ"}`:`เกินกำหนด: ${a.origin??"ค่า"} ควรมี${s} ${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?"อย่างน้อย":"มากกว่า",n=t(a.origin);return n?`น้อยกว่ากำหนด: ${a.origin} ควรมี${s} ${a.minimum.toString()} ${n.unit}`:`น้อยกว่ากำหนด: ${a.origin} ควรมี${s} ${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${s.prefix}"`:s.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${s.suffix}"`:s.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${s.includes}" อยู่ในข้อความ`:s.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${s.pattern}`:`รูปแบบไม่ถูกต้อง: ${i[s.format]??a.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${a.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${ae(a.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${a.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${a.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function T9(){return{localeError:P9()}}var O9=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function t(a){return e[a]??null}const i={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},r={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Geçersiz değer: beklenen instanceof ${a.expected}, alınan ${o}`:`Geçersiz değer: beklenen ${s}, alınan ${o}`}case"invalid_value":return a.values.length===1?`Geçersiz değer: beklenen ${Ne(a.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Çok büyük: beklenen ${a.origin??"değer"} ${s}${a.maximum.toString()} ${n.unit??"öğe"}`:`Çok büyük: beklenen ${a.origin??"değer"} ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Çok küçük: beklenen ${a.origin} ${s}${a.minimum.toString()} ${n.unit}`:`Çok küçük: beklenen ${a.origin} ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Geçersiz metin: "${s.prefix}" ile başlamalı`:s.format==="ends_with"?`Geçersiz metin: "${s.suffix}" ile bitmeli`:s.format==="includes"?`Geçersiz metin: "${s.includes}" içermeli`:s.format==="regex"?`Geçersiz metin: ${s.pattern} desenine uymalı`:`Geçersiz ${i[s.format]??a.format}`}case"not_multiple_of":return`Geçersiz sayı: ${a.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${a.keys.length>1?"lar":""}: ${ae(a.keys,", ")}`;case"invalid_key":return`${a.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${a.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function R9(){return{localeError:O9()}}var M9=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(a){return e[a]??null}const i={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},r={nan:"NaN",number:"число",array:"масив"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Неправильні вхідні дані: очікується instanceof ${a.expected}, отримано ${o}`:`Неправильні вхідні дані: очікується ${s}, отримано ${o}`}case"invalid_value":return a.values.length===1?`Неправильні вхідні дані: очікується ${Ne(a.values[0])}`:`Неправильна опція: очікується одне з ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Занадто велике: очікується, що ${a.origin??"значення"} ${n.verb} ${s}${a.maximum.toString()} ${n.unit??"елементів"}`:`Занадто велике: очікується, що ${a.origin??"значення"} буде ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Занадто мале: очікується, що ${a.origin} ${n.verb} ${s}${a.minimum.toString()} ${n.unit}`:`Занадто мале: очікується, що ${a.origin} буде ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Неправильний рядок: повинен починатися з "${s.prefix}"`:s.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${s.suffix}"`:s.format==="includes"?`Неправильний рядок: повинен містити "${s.includes}"`:s.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${s.pattern}`:`Неправильний ${i[s.format]??a.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${a.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${a.keys.length>1?"і":""}: ${ae(a.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${a.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${a.origin}`;default:return"Неправильні вхідні дані"}}};function xm(){return{localeError:M9()}}function Z9(){return xm()}var L9=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(a){return e[a]??null}const i={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},r={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`غلط ان پٹ: instanceof ${a.expected} متوقع تھا، ${o} موصول ہوا`:`غلط ان پٹ: ${s} متوقع تھا، ${o} موصول ہوا`}case"invalid_value":return a.values.length===1?`غلط ان پٹ: ${Ne(a.values[0])} متوقع تھا`:`غلط آپشن: ${ae(a.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`بہت بڑا: ${a.origin??"ویلیو"} کے ${s}${a.maximum.toString()} ${n.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${a.origin??"ویلیو"} کا ${s}${a.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`بہت چھوٹا: ${a.origin} کے ${s}${a.minimum.toString()} ${n.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${a.origin} کا ${s}${a.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const s=a;return s.format==="starts_with"?`غلط سٹرنگ: "${s.prefix}" سے شروع ہونا چاہیے`:s.format==="ends_with"?`غلط سٹرنگ: "${s.suffix}" پر ختم ہونا چاہیے`:s.format==="includes"?`غلط سٹرنگ: "${s.includes}" شامل ہونا چاہیے`:s.format==="regex"?`غلط سٹرنگ: پیٹرن ${s.pattern} سے میچ ہونا چاہیے`:`غلط ${i[s.format]??a.format}`}case"not_multiple_of":return`غلط نمبر: ${a.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${a.keys.length>1?"ز":""}: ${ae(a.keys,"، ")}`;case"invalid_key":return`${a.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${a.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function $9(){return{localeError:L9()}}var U9=()=>{const e={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"}};function t(a){return e[a]??null}const i={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},r={nan:"NaN",number:"raqam",array:"massiv"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${a.expected}, qabul qilingan ${o}`:`Noto‘g‘ri kirish: kutilgan ${s}, qabul qilingan ${o}`}case"invalid_value":return a.values.length===1?`Noto‘g‘ri kirish: kutilgan ${Ne(a.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Juda katta: kutilgan ${a.origin??"qiymat"} ${s}${a.maximum.toString()} ${n.unit} ${n.verb}`:`Juda katta: kutilgan ${a.origin??"qiymat"} ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Juda kichik: kutilgan ${a.origin} ${s}${a.minimum.toString()} ${n.unit} ${n.verb}`:`Juda kichik: kutilgan ${a.origin} ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Noto‘g‘ri satr: "${s.prefix}" bilan boshlanishi kerak`:s.format==="ends_with"?`Noto‘g‘ri satr: "${s.suffix}" bilan tugashi kerak`:s.format==="includes"?`Noto‘g‘ri satr: "${s.includes}" ni o‘z ichiga olishi kerak`:s.format==="regex"?`Noto‘g‘ri satr: ${s.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${i[s.format]??a.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${a.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${a.keys.length>1?"lar":""}: ${ae(a.keys,", ")}`;case"invalid_key":return`${a.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${a.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function j9(){return{localeError:U9()}}var G9=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(a){return e[a]??null}const i={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},r={nan:"NaN",number:"số",array:"mảng"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${a.expected}, nhận được ${o}`:`Đầu vào không hợp lệ: mong đợi ${s}, nhận được ${o}`}case"invalid_value":return a.values.length===1?`Đầu vào không hợp lệ: mong đợi ${Ne(a.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Quá lớn: mong đợi ${a.origin??"giá trị"} ${n.verb} ${s}${a.maximum.toString()} ${n.unit??"phần tử"}`:`Quá lớn: mong đợi ${a.origin??"giá trị"} ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Quá nhỏ: mong đợi ${a.origin} ${n.verb} ${s}${a.minimum.toString()} ${n.unit}`:`Quá nhỏ: mong đợi ${a.origin} ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${s.prefix}"`:s.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${s.suffix}"`:s.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${s.includes}"`:s.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${s.pattern}`:`${i[s.format]??a.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${a.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${ae(a.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${a.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${a.origin}`;default:return"Đầu vào không hợp lệ"}}};function W9(){return{localeError:G9()}}var Y9=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(a){return e[a]??null}const i={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},r={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`无效输入:期望 instanceof ${a.expected},实际接收 ${o}`:`无效输入:期望 ${s},实际接收 ${o}`}case"invalid_value":return a.values.length===1?`无效输入:期望 ${Ne(a.values[0])}`:`无效选项:期望以下之一 ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`数值过大:期望 ${a.origin??"值"} ${s}${a.maximum.toString()} ${n.unit??"个元素"}`:`数值过大:期望 ${a.origin??"值"} ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`数值过小:期望 ${a.origin} ${s}${a.minimum.toString()} ${n.unit}`:`数值过小:期望 ${a.origin} ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`无效字符串:必须以 "${s.prefix}" 开头`:s.format==="ends_with"?`无效字符串:必须以 "${s.suffix}" 结尾`:s.format==="includes"?`无效字符串:必须包含 "${s.includes}"`:s.format==="regex"?`无效字符串:必须满足正则表达式 ${s.pattern}`:`无效${i[s.format]??a.format}`}case"not_multiple_of":return`无效数字:必须是 ${a.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${ae(a.keys,", ")}`;case"invalid_key":return`${a.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${a.origin} 中包含无效值(value)`;default:return"无效输入"}}};function K9(){return{localeError:Y9()}}var X9=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(a){return e[a]??null}const i={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},r={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`無效的輸入值:預期為 instanceof ${a.expected},但收到 ${o}`:`無效的輸入值:預期為 ${s},但收到 ${o}`}case"invalid_value":return a.values.length===1?`無效的輸入值:預期為 ${Ne(a.values[0])}`:`無效的選項:預期為以下其中之一 ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`數值過大:預期 ${a.origin??"值"} 應為 ${s}${a.maximum.toString()} ${n.unit??"個元素"}`:`數值過大:預期 ${a.origin??"值"} 應為 ${s}${a.maximum.toString()}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`數值過小:預期 ${a.origin} 應為 ${s}${a.minimum.toString()} ${n.unit}`:`數值過小:預期 ${a.origin} 應為 ${s}${a.minimum.toString()}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`無效的字串:必須以 "${s.prefix}" 開頭`:s.format==="ends_with"?`無效的字串:必須以 "${s.suffix}" 結尾`:s.format==="includes"?`無效的字串:必須包含 "${s.includes}"`:s.format==="regex"?`無效的字串:必須符合格式 ${s.pattern}`:`無效的 ${i[s.format]??a.format}`}case"not_multiple_of":return`無效的數字:必須為 ${a.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${a.keys.length>1?"們":""}:${ae(a.keys,"、")}`;case"invalid_key":return`${a.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${a.origin} 中有無效的值`;default:return"無效的輸入值"}}};function H9(){return{localeError:X9()}}var J9=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function t(a){return e[a]??null}const i={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},r={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return a=>{switch(a.code){case"invalid_type":{const s=r[a.expected]??a.expected,n=Be(a.input),o=r[n]??n;return/^[A-Z]/.test(a.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${a.expected}, àmọ̀ a rí ${o}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${s}, àmọ̀ a rí ${o}`}case"invalid_value":return a.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${Ne(a.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${ae(a.values,"|")}`;case"too_big":{const s=a.inclusive?"<=":"<",n=t(a.origin);return n?`Tó pọ̀ jù: a ní láti jẹ́ pé ${a.origin??"iye"} ${n.verb} ${s}${a.maximum} ${n.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${s}${a.maximum}`}case"too_small":{const s=a.inclusive?">=":">",n=t(a.origin);return n?`Kéré ju: a ní láti jẹ́ pé ${a.origin} ${n.verb} ${s}${a.minimum} ${n.unit}`:`Kéré ju: a ní láti jẹ́ ${s}${a.minimum}`}case"invalid_format":{const s=a;return s.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${s.prefix}"`:s.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${s.suffix}"`:s.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${s.includes}"`:s.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${s.pattern}`:`Aṣìṣe: ${i[s.format]??a.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${a.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${ae(a.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${a.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${a.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function q9(){return{localeError:J9()}}var Em,Am=Symbol("ZodOutput"),km=Symbol("ZodInput"),Dm=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const i=t[0];return this._map.set(e,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const i={...this.get(t)??{}};delete i.id;const r={...i,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function r0(){return new Dm}(Em=globalThis).__zod_globalRegistry??(Em.__zod_globalRegistry=r0());var _i=globalThis.__zod_globalRegistry;function _m(e,t){return new e({type:"string",...re(t)})}function Sm(e,t){return new e({type:"string",coerce:!0,...re(t)})}function s0(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...re(t)})}function lo(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...re(t)})}function n0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...re(t)})}function o0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...re(t)})}function u0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...re(t)})}function l0(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...re(t)})}function co(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...re(t)})}function c0(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...re(t)})}function f0(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...re(t)})}function d0(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...re(t)})}function h0(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...re(t)})}function g0(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...re(t)})}function p0(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...re(t)})}function m0(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...re(t)})}function y0(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...re(t)})}function b0(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...re(t)})}function Nm(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...re(t)})}function v0(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...re(t)})}function w0(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...re(t)})}function C0(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...re(t)})}function x0(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...re(t)})}function E0(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...re(t)})}function A0(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...re(t)})}var Bm={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Fm(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...re(t)})}function Im(e,t){return new e({type:"string",format:"date",check:"string_format",...re(t)})}function Vm(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...re(t)})}function zm(e,t){return new e({type:"string",format:"duration",check:"string_format",...re(t)})}function Pm(e,t){return new e({type:"number",checks:[],...re(t)})}function Tm(e,t){return new e({type:"number",coerce:!0,checks:[],...re(t)})}function Om(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...re(t)})}function Rm(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...re(t)})}function Mm(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...re(t)})}function Zm(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...re(t)})}function Lm(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...re(t)})}function $m(e,t){return new e({type:"boolean",...re(t)})}function Um(e,t){return new e({type:"boolean",coerce:!0,...re(t)})}function jm(e,t){return new e({type:"bigint",...re(t)})}function Gm(e,t){return new e({type:"bigint",coerce:!0,...re(t)})}function Wm(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...re(t)})}function Ym(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...re(t)})}function Km(e,t){return new e({type:"symbol",...re(t)})}function Xm(e,t){return new e({type:"undefined",...re(t)})}function Hm(e,t){return new e({type:"null",...re(t)})}function Jm(e){return new e({type:"any"})}function qm(e){return new e({type:"unknown"})}function Qm(e,t){return new e({type:"never",...re(t)})}function e4(e,t){return new e({type:"void",...re(t)})}function t4(e,t){return new e({type:"date",...re(t)})}function i4(e,t){return new e({type:"date",coerce:!0,...re(t)})}function a4(e,t){return new e({type:"nan",...re(t)})}function Na(e,t){return new Yl({check:"less_than",...re(t),value:e,inclusive:!1})}function Si(e,t){return new Yl({check:"less_than",...re(t),value:e,inclusive:!0})}function Ba(e,t){return new Kl({check:"greater_than",...re(t),value:e,inclusive:!1})}function oi(e,t){return new Kl({check:"greater_than",...re(t),value:e,inclusive:!0})}function k0(e){return Ba(0,e)}function D0(e){return Na(0,e)}function _0(e){return Si(0,e)}function S0(e){return oi(0,e)}function zr(e,t){return new kg({check:"multiple_of",...re(t),value:e})}function Pr(e,t){return new Sg({check:"max_size",...re(t),maximum:e})}function Fa(e,t){return new Ng({check:"min_size",...re(t),minimum:e})}function As(e,t){return new Bg({check:"size_equals",...re(t),size:e})}function ks(e,t){return new Fg({check:"max_length",...re(t),maximum:e})}function ir(e,t){return new Ig({check:"min_length",...re(t),minimum:e})}function Ds(e,t){return new Vg({check:"length_equals",...re(t),length:e})}function fo(e,t){return new zg({check:"string_format",format:"regex",...re(t),pattern:e})}function ho(e){return new Pg({check:"string_format",format:"lowercase",...re(e)})}function go(e){return new Tg({check:"string_format",format:"uppercase",...re(e)})}function po(e,t){return new Og({check:"string_format",format:"includes",...re(t),includes:e})}function mo(e,t){return new Rg({check:"string_format",format:"starts_with",...re(t),prefix:e})}function yo(e,t){return new Mg({check:"string_format",format:"ends_with",...re(t),suffix:e})}function N0(e,t,i){return new Lg({check:"property",property:e,schema:t,...re(i)})}function bo(e,t){return new $g({check:"mime_type",mime:e,...re(t)})}function na(e){return new Ug({check:"overwrite",tx:e})}function vo(e){return na(t=>t.normalize(e))}function wo(){return na(e=>e.trim())}function Co(){return na(e=>e.toLowerCase())}function xo(){return na(e=>e.toUpperCase())}function Eo(){return na(e=>Ih(e))}function r4(e,t,i){return new e({type:"array",element:t,...re(i)})}function Q9(e,t,i){return new e({type:"union",options:t,...re(i)})}function ek(e,t,i){return new e({type:"union",options:t,inclusive:!1,...re(i)})}function tk(e,t,i,r){return new e({type:"union",options:i,discriminator:t,...re(r)})}function ik(e,t,i){return new e({type:"intersection",left:t,right:i})}function ak(e,t,i,r){const a=i instanceof Pe,s=a?r:i,n=a?i:null;return new e({type:"tuple",items:t,rest:n,...re(s)})}function rk(e,t,i,r){return new e({type:"record",keyType:t,valueType:i,...re(r)})}function sk(e,t,i,r){return new e({type:"map",keyType:t,valueType:i,...re(r)})}function nk(e,t,i){return new e({type:"set",valueType:t,...re(i)})}function ok(e,t,i){const r=Array.isArray(t)?Object.fromEntries(t.map(a=>[a,a])):t;return new e({type:"enum",entries:r,...re(i)})}function uk(e,t,i){return new e({type:"enum",entries:t,...re(i)})}function lk(e,t,i){return new e({type:"literal",values:Array.isArray(t)?t:[t],...re(i)})}function s4(e,t){return new e({type:"file",...re(t)})}function ck(e,t){return new e({type:"transform",transform:t})}function fk(e,t){return new e({type:"optional",innerType:t})}function dk(e,t){return new e({type:"nullable",innerType:t})}function hk(e,t,i){return new e({type:"default",innerType:t,get defaultValue(){return typeof i=="function"?i():zh(i)}})}function gk(e,t,i){return new e({type:"nonoptional",innerType:t,...re(i)})}function pk(e,t){return new e({type:"success",innerType:t})}function mk(e,t,i){return new e({type:"catch",innerType:t,catchValue:typeof i=="function"?i:()=>i})}function yk(e,t,i){return new e({type:"pipe",in:t,out:i})}function bk(e,t){return new e({type:"readonly",innerType:t})}function vk(e,t,i){return new e({type:"template_literal",parts:t,...re(i)})}function wk(e,t){return new e({type:"lazy",getter:t})}function Ck(e,t){return new e({type:"promise",innerType:t})}function n4(e,t,i){const r=re(i);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function o4(e,t,i){return new e({type:"custom",check:"custom",fn:t,...re(i)})}function u4(e){const t=l4(i=>(i.addIssue=r=>{if(typeof r=="string")i.issues.push(io(r,i.value,t._zod.def));else{const a=r;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=i.value),a.inst??(a.inst=t),a.continue??(a.continue=!t._zod.def.abort),i.issues.push(io(a))}},e(i.value,i)));return t}function l4(e,t){const i=new Et({check:"custom",...re(t)});return i._zod.check=e,i}function c4(e){const t=new Et({check:"describe"});return t._zod.onattach=[i=>{const r=_i.get(i)??{};_i.add(i,{...r,description:e})}],t._zod.check=()=>{},t}function f4(e){const t=new Et({check:"meta"});return t._zod.onattach=[i=>{const r=_i.get(i)??{};_i.add(i,{...r,...e})}],t._zod.check=()=>{},t}function d4(e,t){const i=re(t);let r=i.truthy??["true","1","yes","on","y","enabled"],a=i.falsy??["false","0","no","off","n","disabled"];i.case!=="sensitive"&&(r=r.map(g=>typeof g=="string"?g.toLowerCase():g),a=a.map(g=>typeof g=="string"?g.toLowerCase():g));const s=new Set(r),n=new Set(a),o=e.Codec??i0,u=e.Boolean??Jl,l=e.String??xs,c=new l({type:"string",error:i.error}),f=new u({type:"boolean",error:i.error}),h=new o({type:"pipe",in:c,out:f,transform:(g,p)=>{let v=g;return i.case!=="sensitive"&&(v=v.toLowerCase()),s.has(v)?!0:n.has(v)?!1:(p.issues.push({code:"invalid_value",expected:"stringbool",values:[...s,...n],input:p.value,inst:h,continue:!1}),{})},reverseTransform:(g,p)=>g===!0?r[0]||"true":a[0]||"false",error:i.error});return h}function _s(e,t,i,r={}){const a=re(r),s={...re(r),check:"string_format",type:"string",format:t,fn:typeof i=="function"?i:o=>i.test(o),...a};return i instanceof RegExp&&(s.pattern=i),new e(s)}function Tr(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??_i,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function ct(e,t,i={path:[],schemaPath:[]}){var r;const a=e._zod.def,s=t.seen.get(e);if(s)return s.count++,i.schemaPath.includes(e)&&(s.cycle=i.path),s.schema;const n={schema:{},count:1,cycle:void 0,path:i.path};t.seen.set(e,n);const o=e._zod.toJSONSchema?.();if(o)n.schema=o;else{const c={...i,schemaPath:[...i.schemaPath,e],path:i.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,n.schema,c);else{const h=n.schema,g=t.processors[a.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);g(e,t,h,c)}const f=e._zod.parent;f&&(n.ref||(n.ref=f),ct(f,t,c),t.seen.get(f).isParent=!0)}const u=t.metadataRegistry.get(e);return u&&Object.assign(n.schema,u),t.io==="input"&&ei(e)&&(delete n.schema.examples,delete n.schema.default),t.io==="input"&&n.schema._prefault&&((r=n.schema).default??(r.default=n.schema._prefault)),delete n.schema._prefault,t.seen.get(e).schema}function Or(e,t){const i=e.seen.get(t);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const n of e.seen.entries()){const o=e.metadataRegistry.get(n[0])?.id;if(o){const u=r.get(o);if(u&&u!==n[0])throw new Error(`Duplicate schema id "${o}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(o,n[0])}}const a=n=>{const o=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const f=e.external.registry.get(n[0])?.id,h=e.external.uri??(p=>p);if(f)return{ref:h(f)};const g=n[1].defId??n[1].schema.id??`schema${e.counter++}`;return n[1].defId=g,{defId:g,ref:`${h("__shared")}#/${o}/${g}`}}if(n[1]===i)return{ref:"#"};const l=`#/${o}/`,c=n[1].schema.id??`__schema${e.counter++}`;return{defId:c,ref:l+c}},s=n=>{if(n[1].schema.$ref)return;const o=n[1],{ref:u,defId:l}=a(n);o.def={...o.schema},l&&(o.defId=l);const c=o.schema;for(const f in c)delete c[f];c.$ref=u};if(e.cycles==="throw")for(const n of e.seen.entries()){const o=n[1];if(o.cycle)throw new Error(`Cycle detected: #/${o.cycle?.join("/")}/<root>
|
|
262
262
|
|
|
263
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const n of e.seen.entries()){const o=n[1];if(t===n[0]){s(n);continue}if(e.external){const l=e.external.registry.get(n[0])?.id;if(t!==n[0]&&l){s(n);continue}}if(e.metadataRegistry.get(n[0])?.id){s(n);continue}if(o.cycle){s(n);continue}if(o.count>1&&e.reused==="ref"){s(n);continue}}}function Rr(e,t){const i=e.seen.get(t);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=n=>{const o=e.seen.get(n);if(o.ref===null)return;const u=o.def??o.schema,l={...u},c=o.ref;if(o.ref=null,c){r(c);const h=e.seen.get(c),g=h.schema;if(g.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(g)):Object.assign(u,g),Object.assign(u,l),n._zod.parent===c)for(const v in u)v==="$ref"||v==="allOf"||v in l||delete u[v];if(g.$ref&&h.def)for(const v in u)v==="$ref"||v==="allOf"||v in h.def&&JSON.stringify(u[v])===JSON.stringify(h.def[v])&&delete u[v]}const f=n._zod.parent;if(f&&f!==c){r(f);const h=e.seen.get(f);if(h?.schema.$ref&&(u.$ref=h.schema.$ref,h.def))for(const g in u)g==="$ref"||g==="allOf"||g in h.def&&JSON.stringify(u[g])===JSON.stringify(h.def[g])&&delete u[g]}e.override({zodSchema:n,jsonSchema:u,path:o.path??[]})};for(const n of[...e.seen.entries()].reverse())r(n[0]);const a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const n=e.external.registry.get(t)?.id;if(!n)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(n)}Object.assign(a,i.def??i.schema);const s=e.external?.defs??{};for(const n of e.seen.entries()){const o=n[1];o.def&&o.defId&&(s[o.defId]=o.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?a.$defs=s:a.definitions=s);try{const n=JSON.parse(JSON.stringify(a));return Object.defineProperty(n,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ss(t,"input",e.processors),output:Ss(t,"output",e.processors)}},enumerable:!1,writable:!1}),n}catch{throw new Error("Error converting schema to JSON.")}}function ei(e,t){const i=t??{seen:new Set};if(i.seen.has(e))return!1;i.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return ei(r.element,i);if(r.type==="set")return ei(r.valueType,i);if(r.type==="lazy")return ei(r.getter(),i);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return ei(r.innerType,i);if(r.type==="intersection")return ei(r.left,i)||ei(r.right,i);if(r.type==="record"||r.type==="map")return ei(r.keyType,i)||ei(r.valueType,i);if(r.type==="pipe")return ei(r.in,i)||ei(r.out,i);if(r.type==="object"){for(const a in r.shape)if(ei(r.shape[a],i))return!0;return!1}if(r.type==="union"){for(const a of r.options)if(ei(a,i))return!0;return!1}if(r.type==="tuple"){for(const a of r.items)if(ei(a,i))return!0;return!!(r.rest&&ei(r.rest,i))}return!1}var h4=(e,t={})=>i=>{const r=Tr({...i,processors:t});return ct(e,r),Or(r,e),Rr(r,e)},Ss=(e,t,i={})=>r=>{const{libraryOptions:a,target:s}=r??{},n=Tr({...a??{},target:s,io:t,processors:i});return ct(e,n),Or(n,e),Rr(n,e)},xk={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},g4=(e,t,i,r)=>{const a=i;a.type="string";const{minimum:s,maximum:n,format:o,patterns:u,contentEncoding:l}=e._zod.bag;if(typeof s=="number"&&(a.minLength=s),typeof n=="number"&&(a.maxLength=n),o&&(a.format=xk[o]??o,a.format===""&&delete a.format,o==="time"&&delete a.format),l&&(a.contentEncoding=l),u&&u.size>0){const c=[...u];c.length===1?a.pattern=c[0].source:c.length>1&&(a.allOf=[...c.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},p4=(e,t,i,r)=>{const a=i,{minimum:s,maximum:n,format:o,multipleOf:u,exclusiveMaximum:l,exclusiveMinimum:c}=e._zod.bag;typeof o=="string"&&o.includes("int")?a.type="integer":a.type="number",typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(a.minimum=c,a.exclusiveMinimum=!0):a.exclusiveMinimum=c),typeof s=="number"&&(a.minimum=s,typeof c=="number"&&t.target!=="draft-04"&&(c>=s?delete a.minimum:delete a.exclusiveMinimum)),typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(a.maximum=l,a.exclusiveMaximum=!0):a.exclusiveMaximum=l),typeof n=="number"&&(a.maximum=n,typeof l=="number"&&t.target!=="draft-04"&&(l<=n?delete a.maximum:delete a.exclusiveMaximum)),typeof u=="number"&&(a.multipleOf=u)},m4=(e,t,i,r)=>{i.type="boolean"},y4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},b4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},v4=(e,t,i,r)=>{t.target==="openapi-3.0"?(i.type="string",i.nullable=!0,i.enum=[null]):i.type="null"},w4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},C4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},x4=(e,t,i,r)=>{i.not={}},E4=(e,t,i,r)=>{},A4=(e,t,i,r)=>{},k4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},D4=(e,t,i,r)=>{const a=e._zod.def,s=Nl(a.entries);s.every(n=>typeof n=="number")&&(i.type="number"),s.every(n=>typeof n=="string")&&(i.type="string"),i.enum=s},_4=(e,t,i,r)=>{const a=e._zod.def,s=[];for(const n of a.values)if(n===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof n=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(n))}else s.push(n);if(s.length!==0)if(s.length===1){const n=s[0];i.type=n===null?"null":typeof n,t.target==="draft-04"||t.target==="openapi-3.0"?i.enum=[n]:i.const=n}else s.every(n=>typeof n=="number")&&(i.type="number"),s.every(n=>typeof n=="string")&&(i.type="string"),s.every(n=>typeof n=="boolean")&&(i.type="boolean"),s.every(n=>n===null)&&(i.type="null"),i.enum=s},S4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},N4=(e,t,i,r)=>{const a=i,s=e._zod.pattern;if(!s)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=s.source},B4=(e,t,i,r)=>{const a=i,s={type:"string",format:"binary",contentEncoding:"binary"},{minimum:n,maximum:o,mime:u}=e._zod.bag;n!==void 0&&(s.minLength=n),o!==void 0&&(s.maxLength=o),u?u.length===1?(s.contentMediaType=u[0],Object.assign(a,s)):(Object.assign(a,s),a.anyOf=u.map(l=>({contentMediaType:l}))):Object.assign(a,s)},F4=(e,t,i,r)=>{i.type="boolean"},I4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},V4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},z4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},P4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},T4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},O4=(e,t,i,r)=>{const a=i,s=e._zod.def,{minimum:n,maximum:o}=e._zod.bag;typeof n=="number"&&(a.minItems=n),typeof o=="number"&&(a.maxItems=o),a.type="array",a.items=ct(s.element,t,{...r,path:[...r.path,"items"]})},R4=(e,t,i,r)=>{const a=i,s=e._zod.def;a.type="object",a.properties={};const n=s.shape;for(const l in n)a.properties[l]=ct(n[l],t,{...r,path:[...r.path,"properties",l]});const o=new Set(Object.keys(n)),u=new Set([...o].filter(l=>{const c=s.shape[l]._zod;return t.io==="input"?c.optin===void 0:c.optout===void 0}));u.size>0&&(a.required=Array.from(u)),s.catchall?._zod.def.type==="never"?a.additionalProperties=!1:s.catchall?s.catchall&&(a.additionalProperties=ct(s.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},B0=(e,t,i,r)=>{const a=e._zod.def,s=a.inclusive===!1,n=a.options.map((o,u)=>ct(o,t,{...r,path:[...r.path,s?"oneOf":"anyOf",u]}));s?i.oneOf=n:i.anyOf=n},M4=(e,t,i,r)=>{const a=e._zod.def,s=ct(a.left,t,{...r,path:[...r.path,"allOf",0]}),n=ct(a.right,t,{...r,path:[...r.path,"allOf",1]}),o=l=>"allOf"in l&&Object.keys(l).length===1,u=[...o(s)?s.allOf:[s],...o(n)?n.allOf:[n]];i.allOf=u},Z4=(e,t,i,r)=>{const a=i,s=e._zod.def;a.type="array";const n=t.target==="draft-2020-12"?"prefixItems":"items",o=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=s.items.map((h,g)=>ct(h,t,{...r,path:[...r.path,n,g]})),l=s.rest?ct(s.rest,t,{...r,path:[...r.path,o,...t.target==="openapi-3.0"?[s.items.length]:[]]}):null;t.target==="draft-2020-12"?(a.prefixItems=u,l&&(a.items=l)):t.target==="openapi-3.0"?(a.items={anyOf:u},l&&a.items.anyOf.push(l),a.minItems=u.length,l||(a.maxItems=u.length)):(a.items=u,l&&(a.additionalItems=l));const{minimum:c,maximum:f}=e._zod.bag;typeof c=="number"&&(a.minItems=c),typeof f=="number"&&(a.maxItems=f)},L4=(e,t,i,r)=>{const a=i,s=e._zod.def;a.type="object";const n=s.keyType,u=n._zod.bag?.patterns;if(s.mode==="loose"&&u&&u.size>0){const c=ct(s.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});a.patternProperties={};for(const f of u)a.patternProperties[f.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=ct(s.keyType,t,{...r,path:[...r.path,"propertyNames"]})),a.additionalProperties=ct(s.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const l=n._zod.values;if(l){const c=[...l].filter(f=>typeof f=="string"||typeof f=="number");c.length>0&&(a.required=c)}},$4=(e,t,i,r)=>{const a=e._zod.def,s=ct(a.innerType,t,r),n=t.seen.get(e);t.target==="openapi-3.0"?(n.ref=a.innerType,i.nullable=!0):i.anyOf=[s,{type:"null"}]},U4=(e,t,i,r)=>{const a=e._zod.def;ct(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType},j4=(e,t,i,r)=>{const a=e._zod.def;ct(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType,i.default=JSON.parse(JSON.stringify(a.defaultValue))},G4=(e,t,i,r)=>{const a=e._zod.def;ct(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType,t.io==="input"&&(i._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},W4=(e,t,i,r)=>{const a=e._zod.def;ct(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType;let n;try{n=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}i.default=n},Y4=(e,t,i,r)=>{const a=e._zod.def,s=t.io==="input"?a.in._zod.def.type==="transform"?a.out:a.in:a.out;ct(s,t,r);const n=t.seen.get(e);n.ref=s},K4=(e,t,i,r)=>{const a=e._zod.def;ct(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType,i.readOnly=!0},X4=(e,t,i,r)=>{const a=e._zod.def;ct(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType},F0=(e,t,i,r)=>{const a=e._zod.def;ct(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType},H4=(e,t,i,r)=>{const a=e._zod.innerType;ct(a,t,r);const s=t.seen.get(e);s.ref=a},I0={string:g4,number:p4,boolean:m4,bigint:y4,symbol:b4,null:v4,undefined:w4,void:C4,never:x4,any:E4,unknown:A4,date:k4,enum:D4,literal:_4,nan:S4,template_literal:N4,file:B4,success:F4,custom:I4,function:V4,transform:z4,map:P4,set:T4,array:O4,object:R4,union:B0,intersection:M4,tuple:Z4,record:L4,nullable:$4,nonoptional:U4,default:j4,prefault:G4,catch:W4,pipe:Y4,readonly:K4,promise:X4,optional:F0,lazy:H4};function J4(e,t){if("_idmap"in e){const r=e,a=Tr({...t,processors:I0}),s={};for(const u of r._idmap.entries()){const[l,c]=u;ct(c,a)}const n={},o={registry:r,uri:t?.uri,defs:s};a.external=o;for(const u of r._idmap.entries()){const[l,c]=u;Or(a,c),n[l]=Rr(a,c)}if(Object.keys(s).length>0){const u=a.target==="draft-2020-12"?"$defs":"definitions";n.__shared={[u]:s}}return{schemas:n}}const i=Tr({...t,processors:I0});return ct(e,i),Or(i,e),Rr(i,e)}var Ek=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??"draft-2020-12";t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),this.ctx=Tr({processors:I0,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return ct(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),Or(this.ctx,e);const i=Rr(this.ctx,e),{"~standard":r,...a}=i;return a}},Ak={},q4={};aa(q4,{ZodAny:()=>G0,ZodArray:()=>X0,ZodBase64:()=>Ro,ZodBase64URL:()=>Mo,ZodBigInt:()=>zs,ZodBigIntFormat:()=>Uo,ZodBoolean:()=>Vs,ZodCIDRv4:()=>To,ZodCIDRv6:()=>Oo,ZodCUID:()=>No,ZodCUID2:()=>Bo,ZodCatch:()=>yc,ZodCodec:()=>qo,ZodCustom:()=>$s,ZodCustomStringFormat:()=>Mr,ZodDate:()=>Go,ZodDefault:()=>fc,ZodDiscriminatedUnion:()=>J0,ZodE164:()=>Zo,ZodEmail:()=>Do,ZodEmoji:()=>_o,ZodEnum:()=>Zr,ZodExactOptional:()=>uc,ZodFile:()=>nc,ZodFunction:()=>Dc,ZodGUID:()=>Bs,ZodIPv4:()=>zo,ZodIPv6:()=>Po,ZodIntersection:()=>q0,ZodJWT:()=>Lo,ZodKSUID:()=>Vo,ZodLazy:()=>Ec,ZodLiteral:()=>sc,ZodMAC:()=>R0,ZodMap:()=>ac,ZodNaN:()=>vc,ZodNanoID:()=>So,ZodNever:()=>Y0,ZodNonOptional:()=>Ho,ZodNull:()=>U0,ZodNullable:()=>cc,ZodNumber:()=>Is,ZodNumberFormat:()=>ar,ZodObject:()=>Ts,ZodOptional:()=>Xo,ZodPipe:()=>Jo,ZodPrefault:()=>hc,ZodPromise:()=>kc,ZodReadonly:()=>wc,ZodRecord:()=>Rs,ZodSet:()=>rc,ZodString:()=>Ns,ZodStringFormat:()=>gt,ZodSuccess:()=>mc,ZodSymbol:()=>L0,ZodTemplateLiteral:()=>xc,ZodTransform:()=>oc,ZodTuple:()=>ec,ZodType:()=>Oe,ZodULID:()=>Fo,ZodURL:()=>Fs,ZodUUID:()=>ji,ZodUndefined:()=>$0,ZodUnion:()=>Os,ZodUnknown:()=>W0,ZodVoid:()=>K0,ZodXID:()=>Io,ZodXor:()=>H0,_ZodString:()=>Ao,_default:()=>dc,_function:()=>Qo,any:()=>ey,array:()=>Ps,base64:()=>O1,base64url:()=>R1,bigint:()=>X1,boolean:()=>Z0,catch:()=>bc,check:()=>xy,cidrv4:()=>P1,cidrv6:()=>T1,codec:()=>vy,cuid:()=>_1,cuid2:()=>S1,custom:()=>Ey,date:()=>iy,describe:()=>Ay,discriminatedUnion:()=>uy,e164:()=>M1,email:()=>y1,emoji:()=>k1,enum:()=>Yo,exactOptional:()=>lc,file:()=>py,float32:()=>G1,float64:()=>W1,function:()=>Qo,guid:()=>b1,hash:()=>j1,hex:()=>U1,hostname:()=>$1,httpUrl:()=>A1,instanceof:()=>Dy,int:()=>$o,int32:()=>Y1,int64:()=>H1,intersection:()=>Q0,ipv4:()=>I1,ipv6:()=>z1,json:()=>Sy,jwt:()=>Z1,keyof:()=>ay,ksuid:()=>F1,lazy:()=>Ac,literal:()=>gy,looseObject:()=>ny,looseRecord:()=>cy,mac:()=>V1,map:()=>fy,meta:()=>ky,nan:()=>by,nanoid:()=>D1,nativeEnum:()=>hy,never:()=>jo,nonoptional:()=>pc,null:()=>j0,nullable:()=>Zs,nullish:()=>my,number:()=>M0,object:()=>ry,optional:()=>Ms,partialRecord:()=>ly,pipe:()=>Ls,prefault:()=>gc,preprocess:()=>Ny,promise:()=>Cy,readonly:()=>Cc,record:()=>ic,refine:()=>_c,set:()=>dy,strictObject:()=>sy,string:()=>ko,stringFormat:()=>L1,stringbool:()=>_y,success:()=>yy,superRefine:()=>Sc,symbol:()=>q1,templateLiteral:()=>wy,transform:()=>Ko,tuple:()=>tc,uint32:()=>K1,uint64:()=>J1,ulid:()=>N1,undefined:()=>Q1,union:()=>Wo,unknown:()=>rr,url:()=>E1,uuid:()=>v1,uuidv4:()=>w1,uuidv6:()=>C1,uuidv7:()=>x1,void:()=>ty,xid:()=>B1,xor:()=>oy});var Q4={};aa(Q4,{endsWith:()=>yo,gt:()=>Ba,gte:()=>oi,includes:()=>po,length:()=>Ds,lowercase:()=>ho,lt:()=>Na,lte:()=>Si,maxLength:()=>ks,maxSize:()=>Pr,mime:()=>bo,minLength:()=>ir,minSize:()=>Fa,multipleOf:()=>zr,negative:()=>D0,nonnegative:()=>S0,nonpositive:()=>_0,normalize:()=>vo,overwrite:()=>na,positive:()=>k0,property:()=>N0,regex:()=>fo,size:()=>As,slugify:()=>Eo,startsWith:()=>mo,toLowerCase:()=>Co,toUpperCase:()=>xo,trim:()=>wo,uppercase:()=>go});var V0={};aa(V0,{ZodISODate:()=>P0,ZodISODateTime:()=>z0,ZodISODuration:()=>O0,ZodISOTime:()=>T0,date:()=>t1,datetime:()=>e1,duration:()=>a1,time:()=>i1});var z0=V("ZodISODateTime",(e,t)=>{ap.init(e,t),gt.init(e,t)});function e1(e){return Fm(z0,e)}var P0=V("ZodISODate",(e,t)=>{rp.init(e,t),gt.init(e,t)});function t1(e){return Im(P0,e)}var T0=V("ZodISOTime",(e,t)=>{sp.init(e,t),gt.init(e,t)});function i1(e){return Vm(T0,e)}var O0=V("ZodISODuration",(e,t)=>{np.init(e,t),gt.init(e,t)});function a1(e){return zm(O0,e)}var r1=(e,t)=>{Il.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:i=>zl(e,i)},flatten:{value:i=>Vl(e,i)},addIssue:{value:i=>{e.issues.push(i),e.message=JSON.stringify(e.issues,Jn,2)}},addIssues:{value:i=>{e.issues.push(...i),e.message=JSON.stringify(e.issues,Jn,2)}},isEmpty:{get(){return e.issues.length===0}}})},kk=V("ZodError",r1),yi=V("ZodError",r1,{Parent:Error}),s1=ps(yi),n1=ms(yi),o1=ys(yi),u1=bs(yi),l1=Ol(yi),c1=Rl(yi),f1=Ml(yi),d1=Zl(yi),h1=Ll(yi),g1=$l(yi),p1=Ul(yi),m1=jl(yi),Oe=V("ZodType",(e,t)=>(Pe.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ss(e,"input"),output:Ss(e,"output")}}),e.toJSONSchema=h4(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...i)=>e.clone(We.mergeDefs(t,{checks:[...t.checks??[],...i.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(i,r)=>ki(e,i,r),e.brand=()=>e,e.register=(i,r)=>(i.add(e,r),e),e.parse=(i,r)=>s1(e,i,r,{callee:e.parse}),e.safeParse=(i,r)=>o1(e,i,r),e.parseAsync=async(i,r)=>n1(e,i,r,{callee:e.parseAsync}),e.safeParseAsync=async(i,r)=>u1(e,i,r),e.spa=e.safeParseAsync,e.encode=(i,r)=>l1(e,i,r),e.decode=(i,r)=>c1(e,i,r),e.encodeAsync=async(i,r)=>f1(e,i,r),e.decodeAsync=async(i,r)=>d1(e,i,r),e.safeEncode=(i,r)=>h1(e,i,r),e.safeDecode=(i,r)=>g1(e,i,r),e.safeEncodeAsync=async(i,r)=>p1(e,i,r),e.safeDecodeAsync=async(i,r)=>m1(e,i,r),e.refine=(i,r)=>e.check(_c(i,r)),e.superRefine=i=>e.check(Sc(i)),e.overwrite=i=>e.check(na(i)),e.optional=()=>Ms(e),e.exactOptional=()=>lc(e),e.nullable=()=>Zs(e),e.nullish=()=>Ms(Zs(e)),e.nonoptional=i=>pc(e,i),e.array=()=>Ps(e),e.or=i=>Wo([e,i]),e.and=i=>Q0(e,i),e.transform=i=>Ls(e,Ko(i)),e.default=i=>dc(e,i),e.prefault=i=>gc(e,i),e.catch=i=>bc(e,i),e.pipe=i=>Ls(e,i),e.readonly=()=>Cc(e),e.describe=i=>{const r=e.clone();return _i.add(r,{description:i}),r},Object.defineProperty(e,"description",{get(){return _i.get(e)?.description},configurable:!0}),e.meta=(...i)=>{if(i.length===0)return _i.get(e);const r=e.clone();return _i.add(r,i[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=i=>i(e),e)),Ao=V("_ZodString",(e,t)=>{xs.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(r,a,s)=>g4(e,r,a);const i=e._zod.bag;e.format=i.format??null,e.minLength=i.minimum??null,e.maxLength=i.maximum??null,e.regex=(...r)=>e.check(fo(...r)),e.includes=(...r)=>e.check(po(...r)),e.startsWith=(...r)=>e.check(mo(...r)),e.endsWith=(...r)=>e.check(yo(...r)),e.min=(...r)=>e.check(ir(...r)),e.max=(...r)=>e.check(ks(...r)),e.length=(...r)=>e.check(Ds(...r)),e.nonempty=(...r)=>e.check(ir(1,...r)),e.lowercase=r=>e.check(ho(r)),e.uppercase=r=>e.check(go(r)),e.trim=()=>e.check(wo()),e.normalize=(...r)=>e.check(vo(...r)),e.toLowerCase=()=>e.check(Co()),e.toUpperCase=()=>e.check(xo()),e.slugify=()=>e.check(Eo())}),Ns=V("ZodString",(e,t)=>{xs.init(e,t),Ao.init(e,t),e.email=i=>e.check(s0(Do,i)),e.url=i=>e.check(co(Fs,i)),e.jwt=i=>e.check(A0(Lo,i)),e.emoji=i=>e.check(c0(_o,i)),e.guid=i=>e.check(lo(Bs,i)),e.uuid=i=>e.check(n0(ji,i)),e.uuidv4=i=>e.check(o0(ji,i)),e.uuidv6=i=>e.check(u0(ji,i)),e.uuidv7=i=>e.check(l0(ji,i)),e.nanoid=i=>e.check(f0(So,i)),e.guid=i=>e.check(lo(Bs,i)),e.cuid=i=>e.check(d0(No,i)),e.cuid2=i=>e.check(h0(Bo,i)),e.ulid=i=>e.check(g0(Fo,i)),e.base64=i=>e.check(C0(Ro,i)),e.base64url=i=>e.check(x0(Mo,i)),e.xid=i=>e.check(p0(Io,i)),e.ksuid=i=>e.check(m0(Vo,i)),e.ipv4=i=>e.check(y0(zo,i)),e.ipv6=i=>e.check(b0(Po,i)),e.cidrv4=i=>e.check(v0(To,i)),e.cidrv6=i=>e.check(w0(Oo,i)),e.e164=i=>e.check(E0(Zo,i)),e.datetime=i=>e.check(e1(i)),e.date=i=>e.check(t1(i)),e.time=i=>e.check(i1(i)),e.duration=i=>e.check(a1(i))});function ko(e){return _m(Ns,e)}var gt=V("ZodStringFormat",(e,t)=>{ht.init(e,t),Ao.init(e,t)}),Do=V("ZodEmail",(e,t)=>{Kg.init(e,t),gt.init(e,t)});function y1(e){return s0(Do,e)}var Bs=V("ZodGUID",(e,t)=>{Wg.init(e,t),gt.init(e,t)});function b1(e){return lo(Bs,e)}var ji=V("ZodUUID",(e,t)=>{Yg.init(e,t),gt.init(e,t)});function v1(e){return n0(ji,e)}function w1(e){return o0(ji,e)}function C1(e){return u0(ji,e)}function x1(e){return l0(ji,e)}var Fs=V("ZodURL",(e,t)=>{Xg.init(e,t),gt.init(e,t)});function E1(e){return co(Fs,e)}function A1(e){return co(Fs,{protocol:/^https?$/,hostname:tr.domain,...We.normalizeParams(e)})}var _o=V("ZodEmoji",(e,t)=>{Hg.init(e,t),gt.init(e,t)});function k1(e){return c0(_o,e)}var So=V("ZodNanoID",(e,t)=>{Jg.init(e,t),gt.init(e,t)});function D1(e){return f0(So,e)}var No=V("ZodCUID",(e,t)=>{qg.init(e,t),gt.init(e,t)});function _1(e){return d0(No,e)}var Bo=V("ZodCUID2",(e,t)=>{Qg.init(e,t),gt.init(e,t)});function S1(e){return h0(Bo,e)}var Fo=V("ZodULID",(e,t)=>{ep.init(e,t),gt.init(e,t)});function N1(e){return g0(Fo,e)}var Io=V("ZodXID",(e,t)=>{tp.init(e,t),gt.init(e,t)});function B1(e){return p0(Io,e)}var Vo=V("ZodKSUID",(e,t)=>{ip.init(e,t),gt.init(e,t)});function F1(e){return m0(Vo,e)}var zo=V("ZodIPv4",(e,t)=>{op.init(e,t),gt.init(e,t)});function I1(e){return y0(zo,e)}var R0=V("ZodMAC",(e,t)=>{lp.init(e,t),gt.init(e,t)});function V1(e){return Nm(R0,e)}var Po=V("ZodIPv6",(e,t)=>{up.init(e,t),gt.init(e,t)});function z1(e){return b0(Po,e)}var To=V("ZodCIDRv4",(e,t)=>{cp.init(e,t),gt.init(e,t)});function P1(e){return v0(To,e)}var Oo=V("ZodCIDRv6",(e,t)=>{fp.init(e,t),gt.init(e,t)});function T1(e){return w0(Oo,e)}var Ro=V("ZodBase64",(e,t)=>{dp.init(e,t),gt.init(e,t)});function O1(e){return C0(Ro,e)}var Mo=V("ZodBase64URL",(e,t)=>{gp.init(e,t),gt.init(e,t)});function R1(e){return x0(Mo,e)}var Zo=V("ZodE164",(e,t)=>{pp.init(e,t),gt.init(e,t)});function M1(e){return E0(Zo,e)}var Lo=V("ZodJWT",(e,t)=>{yp.init(e,t),gt.init(e,t)});function Z1(e){return A0(Lo,e)}var Mr=V("ZodCustomStringFormat",(e,t)=>{bp.init(e,t),gt.init(e,t)});function L1(e,t,i={}){return _s(Mr,e,t,i)}function $1(e){return _s(Mr,"hostname",tr.hostname,e)}function U1(e){return _s(Mr,"hex",tr.hex,e)}function j1(e,t){const i=t?.enc??"hex",r=`${e}_${i}`,a=tr[r];if(!a)throw new Error(`Unrecognized hash format: ${r}`);return _s(Mr,r,a,t)}var Is=V("ZodNumber",(e,t)=>{Hl.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(r,a,s)=>p4(e,r,a),e.gt=(r,a)=>e.check(Ba(r,a)),e.gte=(r,a)=>e.check(oi(r,a)),e.min=(r,a)=>e.check(oi(r,a)),e.lt=(r,a)=>e.check(Na(r,a)),e.lte=(r,a)=>e.check(Si(r,a)),e.max=(r,a)=>e.check(Si(r,a)),e.int=r=>e.check($o(r)),e.safe=r=>e.check($o(r)),e.positive=r=>e.check(Ba(0,r)),e.nonnegative=r=>e.check(oi(0,r)),e.negative=r=>e.check(Na(0,r)),e.nonpositive=r=>e.check(Si(0,r)),e.multipleOf=(r,a)=>e.check(zr(r,a)),e.step=(r,a)=>e.check(zr(r,a)),e.finite=()=>e;const i=e._zod.bag;e.minValue=Math.max(i.minimum??Number.NEGATIVE_INFINITY,i.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(i.maximum??Number.POSITIVE_INFINITY,i.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(i.format??"").includes("int")||Number.isSafeInteger(i.multipleOf??.5),e.isFinite=!0,e.format=i.format??null});function M0(e){return Pm(Is,e)}var ar=V("ZodNumberFormat",(e,t)=>{vp.init(e,t),Is.init(e,t)});function $o(e){return Om(ar,e)}function G1(e){return Rm(ar,e)}function W1(e){return Mm(ar,e)}function Y1(e){return Zm(ar,e)}function K1(e){return Lm(ar,e)}var Vs=V("ZodBoolean",(e,t)=>{Jl.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>m4(e,i,r)});function Z0(e){return $m(Vs,e)}var zs=V("ZodBigInt",(e,t)=>{ql.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(r,a,s)=>y4(e,r),e.gte=(r,a)=>e.check(oi(r,a)),e.min=(r,a)=>e.check(oi(r,a)),e.gt=(r,a)=>e.check(Ba(r,a)),e.gte=(r,a)=>e.check(oi(r,a)),e.min=(r,a)=>e.check(oi(r,a)),e.lt=(r,a)=>e.check(Na(r,a)),e.lte=(r,a)=>e.check(Si(r,a)),e.max=(r,a)=>e.check(Si(r,a)),e.positive=r=>e.check(Ba(BigInt(0),r)),e.negative=r=>e.check(Na(BigInt(0),r)),e.nonpositive=r=>e.check(Si(BigInt(0),r)),e.nonnegative=r=>e.check(oi(BigInt(0),r)),e.multipleOf=(r,a)=>e.check(zr(r,a));const i=e._zod.bag;e.minValue=i.minimum??null,e.maxValue=i.maximum??null,e.format=i.format??null});function X1(e){return jm(zs,e)}var Uo=V("ZodBigIntFormat",(e,t)=>{wp.init(e,t),zs.init(e,t)});function H1(e){return Wm(Uo,e)}function J1(e){return Ym(Uo,e)}var L0=V("ZodSymbol",(e,t)=>{Cp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>b4(e,i)});function q1(e){return Km(L0,e)}var $0=V("ZodUndefined",(e,t)=>{xp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>w4(e,i)});function Q1(e){return Xm($0,e)}var U0=V("ZodNull",(e,t)=>{Ep.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>v4(e,i,r)});function j0(e){return Hm(U0,e)}var G0=V("ZodAny",(e,t)=>{Ap.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>E4()});function ey(){return Jm(G0)}var W0=V("ZodUnknown",(e,t)=>{kp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>A4()});function rr(){return qm(W0)}var Y0=V("ZodNever",(e,t)=>{Dp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>x4(e,i,r)});function jo(e){return Qm(Y0,e)}var K0=V("ZodVoid",(e,t)=>{_p.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>C4(e,i)});function ty(e){return e4(K0,e)}var Go=V("ZodDate",(e,t)=>{Sp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(r,a,s)=>k4(e,r),e.min=(r,a)=>e.check(oi(r,a)),e.max=(r,a)=>e.check(Si(r,a));const i=e._zod.bag;e.minDate=i.minimum?new Date(i.minimum):null,e.maxDate=i.maximum?new Date(i.maximum):null});function iy(e){return t4(Go,e)}var X0=V("ZodArray",(e,t)=>{Bp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>O4(e,i,r,a),e.element=t.element,e.min=(i,r)=>e.check(ir(i,r)),e.nonempty=i=>e.check(ir(1,i)),e.max=(i,r)=>e.check(ks(i,r)),e.length=(i,r)=>e.check(Ds(i,r)),e.unwrap=()=>e.element});function Ps(e,t){return r4(X0,e,t)}function ay(e){const t=e._zod.def.shape;return Yo(Object.keys(t))}var Ts=V("ZodObject",(e,t)=>{zp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>R4(e,i,r,a),We.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Yo(Object.keys(e._zod.def.shape)),e.catchall=i=>e.clone({...e._zod.def,catchall:i}),e.passthrough=()=>e.clone({...e._zod.def,catchall:rr()}),e.loose=()=>e.clone({...e._zod.def,catchall:rr()}),e.strict=()=>e.clone({...e._zod.def,catchall:jo()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=i=>We.extend(e,i),e.safeExtend=i=>We.safeExtend(e,i),e.merge=i=>We.merge(e,i),e.pick=i=>We.pick(e,i),e.omit=i=>We.omit(e,i),e.partial=(...i)=>We.partial(Xo,e,i[0]),e.required=(...i)=>We.required(Ho,e,i[0])});function ry(e,t){const i={type:"object",shape:e??{},...We.normalizeParams(t)};return new Ts(i)}function sy(e,t){return new Ts({type:"object",shape:e,catchall:jo(),...We.normalizeParams(t)})}function ny(e,t){return new Ts({type:"object",shape:e,catchall:rr(),...We.normalizeParams(t)})}var Os=V("ZodUnion",(e,t)=>{ro.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>B0(e,i,r,a),e.options=t.options});function Wo(e,t){return new Os({type:"union",options:e,...We.normalizeParams(t)})}var H0=V("ZodXor",(e,t)=>{Os.init(e,t),Op.init(e,t),e._zod.processJSONSchema=(i,r,a)=>B0(e,i,r,a),e.options=t.options});function oy(e,t){return new H0({type:"union",options:e,inclusive:!1,...We.normalizeParams(t)})}var J0=V("ZodDiscriminatedUnion",(e,t)=>{Os.init(e,t),Rp.init(e,t)});function uy(e,t,i){return new J0({type:"union",options:t,discriminator:e,...We.normalizeParams(i)})}var q0=V("ZodIntersection",(e,t)=>{Mp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>M4(e,i,r,a)});function Q0(e,t){return new q0({type:"intersection",left:e,right:t})}var ec=V("ZodTuple",(e,t)=>{e0.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>Z4(e,i,r,a),e.rest=i=>e.clone({...e._zod.def,rest:i})});function tc(e,t,i){const r=t instanceof Pe,a=r?i:t,s=r?t:null;return new ec({type:"tuple",items:e,rest:s,...We.normalizeParams(a)})}var Rs=V("ZodRecord",(e,t)=>{Lp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>L4(e,i,r,a),e.keyType=t.keyType,e.valueType=t.valueType});function ic(e,t,i){return new Rs({type:"record",keyType:e,valueType:t,...We.normalizeParams(i)})}function ly(e,t,i){const r=ki(e);return r._zod.values=void 0,new Rs({type:"record",keyType:r,valueType:t,...We.normalizeParams(i)})}function cy(e,t,i){return new Rs({type:"record",keyType:e,valueType:t,mode:"loose",...We.normalizeParams(i)})}var ac=V("ZodMap",(e,t)=>{$p.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>P4(e,i),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...i)=>e.check(Fa(...i)),e.nonempty=i=>e.check(Fa(1,i)),e.max=(...i)=>e.check(Pr(...i)),e.size=(...i)=>e.check(As(...i))});function fy(e,t,i){return new ac({type:"map",keyType:e,valueType:t,...We.normalizeParams(i)})}var rc=V("ZodSet",(e,t)=>{jp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>T4(e,i),e.min=(...i)=>e.check(Fa(...i)),e.nonempty=i=>e.check(Fa(1,i)),e.max=(...i)=>e.check(Pr(...i)),e.size=(...i)=>e.check(As(...i))});function dy(e,t){return new rc({type:"set",valueType:e,...We.normalizeParams(t)})}var Zr=V("ZodEnum",(e,t)=>{Wp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(r,a,s)=>D4(e,r,a),e.enum=t.entries,e.options=Object.values(t.entries);const i=new Set(Object.keys(t.entries));e.extract=(r,a)=>{const s={};for(const n of r)if(i.has(n))s[n]=t.entries[n];else throw new Error(`Key ${n} not found in enum`);return new Zr({...t,checks:[],...We.normalizeParams(a),entries:s})},e.exclude=(r,a)=>{const s={...t.entries};for(const n of r)if(i.has(n))delete s[n];else throw new Error(`Key ${n} not found in enum`);return new Zr({...t,checks:[],...We.normalizeParams(a),entries:s})}});function Yo(e,t){const i=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Zr({type:"enum",entries:i,...We.normalizeParams(t)})}function hy(e,t){return new Zr({type:"enum",entries:e,...We.normalizeParams(t)})}var sc=V("ZodLiteral",(e,t)=>{Yp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>_4(e,i,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function gy(e,t){return new sc({type:"literal",values:Array.isArray(e)?e:[e],...We.normalizeParams(t)})}var nc=V("ZodFile",(e,t)=>{Kp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>B4(e,i,r),e.min=(i,r)=>e.check(Fa(i,r)),e.max=(i,r)=>e.check(Pr(i,r)),e.mime=(i,r)=>e.check(bo(Array.isArray(i)?i:[i],r))});function py(e){return s4(nc,e)}var oc=V("ZodTransform",(e,t)=>{Xp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>z4(e,i),e._zod.parse=(i,r)=>{if(r.direction==="backward")throw new Xn(e.constructor.name);i.addIssue=s=>{if(typeof s=="string")i.issues.push(We.issue(s,i.value,t));else{const n=s;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=i.value),n.inst??(n.inst=e),i.issues.push(We.issue(n))}};const a=t.transform(i.value,i);return a instanceof Promise?a.then(s=>(i.value=s,i)):(i.value=a,i)}});function Ko(e){return new oc({type:"transform",transform:e})}var Xo=V("ZodOptional",(e,t)=>{t0.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>F0(e,i,r,a),e.unwrap=()=>e._zod.def.innerType});function Ms(e){return new Xo({type:"optional",innerType:e})}var uc=V("ZodExactOptional",(e,t)=>{Jp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>F0(e,i,r,a),e.unwrap=()=>e._zod.def.innerType});function lc(e){return new uc({type:"optional",innerType:e})}var cc=V("ZodNullable",(e,t)=>{qp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>$4(e,i,r,a),e.unwrap=()=>e._zod.def.innerType});function Zs(e){return new cc({type:"nullable",innerType:e})}function my(e){return Ms(Zs(e))}var fc=V("ZodDefault",(e,t)=>{Qp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>j4(e,i,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function dc(e,t){return new fc({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():We.shallowClone(t)}})}var hc=V("ZodPrefault",(e,t)=>{tm.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>G4(e,i,r,a),e.unwrap=()=>e._zod.def.innerType});function gc(e,t){return new hc({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():We.shallowClone(t)}})}var Ho=V("ZodNonOptional",(e,t)=>{im.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>U4(e,i,r,a),e.unwrap=()=>e._zod.def.innerType});function pc(e,t){return new Ho({type:"nonoptional",innerType:e,...We.normalizeParams(t)})}var mc=V("ZodSuccess",(e,t)=>{rm.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>F4(e,i,r),e.unwrap=()=>e._zod.def.innerType});function yy(e){return new mc({type:"success",innerType:e})}var yc=V("ZodCatch",(e,t)=>{sm.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>W4(e,i,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bc(e,t){return new yc({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var vc=V("ZodNaN",(e,t)=>{nm.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>S4(e,i)});function by(e){return a4(vc,e)}var Jo=V("ZodPipe",(e,t)=>{om.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>Y4(e,i,r,a),e.in=t.in,e.out=t.out});function Ls(e,t){return new Jo({type:"pipe",in:e,out:t})}var qo=V("ZodCodec",(e,t)=>{Jo.init(e,t),i0.init(e,t)});function vy(e,t,i){return new qo({type:"pipe",in:e,out:t,transform:i.decode,reverseTransform:i.encode})}var wc=V("ZodReadonly",(e,t)=>{um.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>K4(e,i,r,a),e.unwrap=()=>e._zod.def.innerType});function Cc(e){return new wc({type:"readonly",innerType:e})}var xc=V("ZodTemplateLiteral",(e,t)=>{cm.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>N4(e,i,r)});function wy(e,t){return new xc({type:"template_literal",parts:e,...We.normalizeParams(t)})}var Ec=V("ZodLazy",(e,t)=>{hm.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>H4(e,i,r,a),e.unwrap=()=>e._zod.def.getter()});function Ac(e){return new Ec({type:"lazy",getter:e})}var kc=V("ZodPromise",(e,t)=>{dm.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>X4(e,i,r,a),e.unwrap=()=>e._zod.def.innerType});function Cy(e){return new kc({type:"promise",innerType:e})}var Dc=V("ZodFunction",(e,t)=>{fm.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>V4(e,i)});function Qo(e){return new Dc({type:"function",input:Array.isArray(e?.input)?tc(e?.input):e?.input??Ps(rr()),output:e?.output??rr()})}var $s=V("ZodCustom",(e,t)=>{gm.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>I4(e,i)});function xy(e){const t=new Et({check:"custom"});return t._zod.check=e,t}function Ey(e,t){return n4($s,e??(()=>!0),t)}function _c(e,t={}){return o4($s,e,t)}function Sc(e){return u4(e)}var Ay=c4,ky=f4;function Dy(e,t={}){const i=new $s({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...We.normalizeParams(t)});return i._zod.bag.Class=e,i._zod.check=r=>{r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:i,path:[...i._zod.def.path??[]]})},i}var _y=(...e)=>d4({Codec:qo,Boolean:Vs,String:Ns},...e);function Sy(e){const t=Ac(()=>Wo([ko(e),M0(),Z0(),j0(),Ps(t),ic(ko(),t)]));return t}function Ny(e,t){return Ls(Ko(e),t)}var Dk={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function _k(e){Wt({customError:e})}function Sk(){return Wt().customError}var Nc;Nc||(Nc={});var le={...q4,...Q4,iso:V0},Nk=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Bk(e,t){const i=e.$schema;return i==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":i==="http://json-schema.org/draft-07/schema#"?"draft-7":i==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function Fk(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");const i=e.slice(1).split("/").filter(Boolean);if(i.length===0)return t.rootSchema;const r=t.version==="draft-2020-12"?"$defs":"definitions";if(i[0]===r){const a=i[1];if(!a||!t.defs[a])throw new Error(`Reference not found: ${e}`);return t.defs[a]}throw new Error(`Reference not found: ${e}`)}function By(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return le.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){const a=e.$ref;if(t.refs.has(a))return t.refs.get(a);if(t.processing.has(a))return le.lazy(()=>{if(!t.refs.has(a))throw new Error(`Circular reference not resolved: ${a}`);return t.refs.get(a)});t.processing.add(a);const s=Fk(a,t),n=Yt(s,t);return t.refs.set(a,n),t.processing.delete(a),n}if(e.enum!==void 0){const a=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&a.length===1&&a[0]===null)return le.null();if(a.length===0)return le.never();if(a.length===1)return le.literal(a[0]);if(a.every(n=>typeof n=="string"))return le.enum(a);const s=a.map(n=>le.literal(n));return s.length<2?s[0]:le.union([s[0],s[1],...s.slice(2)])}if(e.const!==void 0)return le.literal(e.const);const i=e.type;if(Array.isArray(i)){const a=i.map(s=>{const n={...e,type:s};return By(n,t)});return a.length===0?le.never():a.length===1?a[0]:le.union(a)}if(!i)return le.any();let r;switch(i){case"string":{let a=le.string();if(e.format){const s=e.format;s==="email"?a=a.check(le.email()):s==="uri"||s==="uri-reference"?a=a.check(le.url()):s==="uuid"||s==="guid"?a=a.check(le.uuid()):s==="date-time"?a=a.check(le.iso.datetime()):s==="date"?a=a.check(le.iso.date()):s==="time"?a=a.check(le.iso.time()):s==="duration"?a=a.check(le.iso.duration()):s==="ipv4"?a=a.check(le.ipv4()):s==="ipv6"?a=a.check(le.ipv6()):s==="mac"?a=a.check(le.mac()):s==="cidr"?a=a.check(le.cidrv4()):s==="cidr-v6"?a=a.check(le.cidrv6()):s==="base64"?a=a.check(le.base64()):s==="base64url"?a=a.check(le.base64url()):s==="e164"?a=a.check(le.e164()):s==="jwt"?a=a.check(le.jwt()):s==="emoji"?a=a.check(le.emoji()):s==="nanoid"?a=a.check(le.nanoid()):s==="cuid"?a=a.check(le.cuid()):s==="cuid2"?a=a.check(le.cuid2()):s==="ulid"?a=a.check(le.ulid()):s==="xid"?a=a.check(le.xid()):s==="ksuid"&&(a=a.check(le.ksuid()))}typeof e.minLength=="number"&&(a=a.min(e.minLength)),typeof e.maxLength=="number"&&(a=a.max(e.maxLength)),e.pattern&&(a=a.regex(new RegExp(e.pattern))),r=a;break}case"number":case"integer":{let a=i==="integer"?le.number().int():le.number();typeof e.minimum=="number"&&(a=a.min(e.minimum)),typeof e.maximum=="number"&&(a=a.max(e.maximum)),typeof e.exclusiveMinimum=="number"?a=a.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(a=a.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?a=a.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(a=a.lt(e.maximum)),typeof e.multipleOf=="number"&&(a=a.multipleOf(e.multipleOf)),r=a;break}case"boolean":{r=le.boolean();break}case"null":{r=le.null();break}case"object":{const a={},s=e.properties||{},n=new Set(e.required||[]);for(const[u,l]of Object.entries(s)){const c=Yt(l,t);a[u]=n.has(u)?c:c.optional()}if(e.propertyNames){const u=Yt(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?Yt(e.additionalProperties,t):le.any();if(Object.keys(a).length===0){r=le.record(u,l);break}const c=le.object(a).passthrough(),f=le.looseRecord(u,l);r=le.intersection(c,f);break}if(e.patternProperties){const u=e.patternProperties,l=Object.keys(u),c=[];for(const h of l){const g=Yt(u[h],t),p=le.string().regex(new RegExp(h));c.push(le.looseRecord(p,g))}const f=[];if(Object.keys(a).length>0&&f.push(le.object(a).passthrough()),f.push(...c),f.length===0)r=le.object({}).passthrough();else if(f.length===1)r=f[0];else{let h=le.intersection(f[0],f[1]);for(let g=2;g<f.length;g++)h=le.intersection(h,f[g]);r=h}break}const o=le.object(a);e.additionalProperties===!1?r=o.strict():typeof e.additionalProperties=="object"?r=o.catchall(Yt(e.additionalProperties,t)):r=o.passthrough();break}case"array":{const a=e.prefixItems,s=e.items;if(a&&Array.isArray(a)){const n=a.map(u=>Yt(u,t)),o=s&&typeof s=="object"&&!Array.isArray(s)?Yt(s,t):void 0;o?r=le.tuple(n).rest(o):r=le.tuple(n),typeof e.minItems=="number"&&(r=r.check(le.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(le.maxLength(e.maxItems)))}else if(Array.isArray(s)){const n=s.map(u=>Yt(u,t)),o=e.additionalItems&&typeof e.additionalItems=="object"?Yt(e.additionalItems,t):void 0;o?r=le.tuple(n).rest(o):r=le.tuple(n),typeof e.minItems=="number"&&(r=r.check(le.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(le.maxLength(e.maxItems)))}else if(s!==void 0){const n=Yt(s,t);let o=le.array(n);typeof e.minItems=="number"&&(o=o.min(e.minItems)),typeof e.maxItems=="number"&&(o=o.max(e.maxItems)),r=o}else r=le.array(le.any());break}default:throw new Error(`Unsupported type: ${i}`)}return e.description&&(r=r.describe(e.description)),e.default!==void 0&&(r=r.default(e.default)),r}function Yt(e,t){if(typeof e=="boolean")return e?le.any():le.never();let i=By(e,t);const r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){const o=e.anyOf.map(l=>Yt(l,t)),u=le.union(o);i=r?le.intersection(i,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){const o=e.oneOf.map(l=>Yt(l,t)),u=le.xor(o);i=r?le.intersection(i,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)i=r?i:le.any();else{let o=r?i:Yt(e.allOf[0],t);const u=r?0:1;for(let l=u;l<e.allOf.length;l++)o=le.intersection(o,Yt(e.allOf[l],t));i=o}e.nullable===!0&&t.version==="openapi-3.0"&&(i=le.nullable(i)),e.readOnly===!0&&(i=le.readonly(i));const a={},s=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(const o of s)o in e&&(a[o]=e[o]);const n=["contentEncoding","contentMediaType","contentSchema"];for(const o of n)o in e&&(a[o]=e[o]);for(const o of Object.keys(e))Nk.has(o)||(a[o]=e[o]);return Object.keys(a).length>0&&t.registry.add(i,a),i}function Ik(e,t){if(typeof e=="boolean")return e?le.any():le.never();const i=Bk(e,t?.defaultTarget),r=e.$defs||e.definitions||{},a={version:i,defs:r,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??_i};return Yt(e,a)}var Fy={};aa(Fy,{bigint:()=>Tk,boolean:()=>Pk,date:()=>Ok,number:()=>zk,string:()=>Vk});function Vk(e){return Sm(Ns,e)}function zk(e){return Tm(Is,e)}function Pk(e){return Um(Vs,e)}function Tk(e){return Gm(zs,e)}function Ok(e){return i4(Go,e)}Wt(ym());var Rt={DEFAULTS:{width:800,height:400,pixelRatio:2,fontFamily:"Open Sans",fontSize:48,color:"#ffffff",textAlign:"center"},LIMITS:{minWidth:1,maxWidth:4096,minHeight:1,maxHeight:4096,minFontSize:1,maxFontSize:512,minDuration:.1,maxDuration:120,maxTextLength:1e4},ANIMATION_TYPES:["typewriter","fadeIn","slideIn","shift","ascend","movingLetters"]},Ni=/^#[A-Fa-f0-9]{6}$/,Iy=te.object({src:te.string().url(),family:te.string(),weight:te.union([te.string(),te.number()]).optional(),style:te.string().optional(),originalFamily:te.string().optional()}),Vy=te.object({width:te.number().min(0).default(0),color:te.string().regex(Ni).default("#000000"),opacity:te.number().min(0).max(1).default(1),radius:te.number().min(0).default(0)}),zy=te.union([te.number().min(0),te.object({top:te.number().min(0).default(0),right:te.number().min(0).default(0),bottom:te.number().min(0).default(0),left:te.number().min(0).default(0)})]),Rk=FE.extend({family:te.string().default(Rt.DEFAULTS.fontFamily),size:te.number().int().min(Rt.LIMITS.minFontSize).max(Rt.LIMITS.maxFontSize).default(Rt.DEFAULTS.fontSize),weight:te.union([te.string(),te.number()]).default("400"),color:te.string().regex(Ni).default(Rt.DEFAULTS.color),opacity:te.number().min(0).max(1).default(1),background:te.string().regex(Ni).optional()}),Mk=te.object({type:te.enum(["linear","radial"]).default("linear"),angle:te.number().min(0).max(360).default(0),stops:te.array(te.object({offset:te.number().min(0).max(1),color:te.string().regex(Ni)})).min(2)}),Py=IE.extend({letterSpacing:te.number().default(0),lineHeight:te.number().min(0).max(10).default(1.2),textTransform:te.enum(["none","uppercase","lowercase","capitalize"]).default("none"),textDecoration:te.enum(["none","underline","line-through"]).default("none"),gradient:Mk.optional()}),Ty=NE.extend({width:te.number().min(0).default(0),color:te.string().regex(Ni).default("#000000"),opacity:te.number().min(0).max(1).default(1)}),Oy=SE.extend({offsetX:te.number().default(0),offsetY:te.number().default(0),blur:te.number().min(0).default(0),color:te.string().regex(Ni).default("#000000"),opacity:te.number().min(0).max(1).default(.5)}),Ry=DE.extend({color:te.string().regex(Ni).optional(),opacity:te.number().min(0).max(1).default(1)}),My=AE.extend({horizontal:te.enum(["left","center","right"]).default(Rt.DEFAULTS.textAlign),vertical:te.enum(["top","middle","bottom"]).default("middle")}),Zk=kE.extend({preset:te.enum(Rt.ANIMATION_TYPES),speed:te.number().min(.1).max(10).default(1),duration:te.number().min(Rt.LIMITS.minDuration).max(Rt.LIMITS.maxDuration).optional(),style:te.enum(["character","word"]).optional(),direction:te.enum(["left","right","up","down"]).optional()}).superRefine((e,t)=>{const i=["typewriter","shift","fadeIn","slideIn"];e.style&&!i.includes(e.preset)&&t.addIssue({code:te.ZodIssueCode.custom,message:`style is not allowed for preset "${e.preset}"`,path:["style"]});const r={ascend:["up","down"],shift:["left","right","up","down"],slideIn:["left","right","up","down"],movingLetters:["left","right","up","down"]};if(e.direction){const a=r[e.preset];a?a.includes(e.direction)||t.addIssue({code:te.ZodIssueCode.custom,message:`direction "${e.direction}" is not valid for preset "${e.preset}"`,path:["direction"]}):t.addIssue({code:te.ZodIssueCode.custom,message:`direction is not allowed for preset "${e.preset}"`,path:["direction"]})}}),Lk=rh.extend({type:te.literal("rich-text"),text:te.string().max(Rt.LIMITS.maxTextLength).default(""),width:te.number().int().min(Rt.LIMITS.minWidth).max(Rt.LIMITS.maxWidth).default(Rt.DEFAULTS.width).optional(),height:te.number().int().min(Rt.LIMITS.minHeight).max(Rt.LIMITS.maxHeight).default(Rt.DEFAULTS.height).optional(),font:Rk.optional(),style:Py.optional(),stroke:Ty.optional(),shadow:Oy.optional(),background:Ry.optional(),border:Vy.optional(),padding:zy.optional(),align:My.optional(),animation:Zk.optional(),customFonts:te.array(Iy).optional()}).strict(),$k=te.object({text:te.string().min(1),start:te.number().min(0),end:te.number().min(0),confidence:te.number().min(0).max(1).optional()}),Uk=te.object({family:te.string().default("Roboto"),size:te.number().int().min(1).max(500).default(24),weight:te.union([te.string(),te.number()]).default("400"),color:te.string().regex(Ni).default("#ffffff"),opacity:te.number().min(0).max(1).default(1),background:te.string().regex(Ni).optional()}),jk=BE.extend({font:te.object({color:te.string().regex(Ni).default("#ffffff"),background:te.string().regex(Ni).optional(),opacity:te.number().min(0).max(1).default(1)}).optional(),stroke:te.object({width:te.number().min(0).optional(),color:te.string().regex(Ni).optional(),opacity:te.number().min(0).max(1).optional()}).optional(),scale:te.number().min(.5).max(2).default(1)}),Gk=EE.extend({style:te.enum(["karaoke","highlight","pop","fade","slide","bounce","typewriter","none"]).default("highlight"),speed:te.number().min(.5).max(2).default(1),direction:te.enum(["left","right","up","down"]).default("up")});te.object({type:te.literal("rich-caption"),src:te.string().min(1).optional(),words:te.array($k).max(1e5).optional(),font:Uk.optional(),style:Py.optional(),stroke:Ty.optional(),shadow:Oy.optional(),background:Ry.optional(),border:Vy.optional(),padding:zy.optional(),align:My.optional(),active:jk.optional(),wordAnimation:Gk.optional(),pauseThreshold:te.number().min(0).default(500).optional(),customFonts:te.array(Iy).optional()}).superRefine((e,t)=>{!e.src&&!e.words&&t.addIssue({code:te.ZodIssueCode.custom,message:"Either src or words must be provided",path:["src"]})});var eu=null;function Zy(){return typeof process<"u"&&process.versions!=null&&process.versions.node!=null}function Wk(e){if(e.buffer instanceof ArrayBuffer)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);const t=new ArrayBuffer(e.byteLength),i=new Uint8Array(t);for(let r=0;r<e.byteLength;r++)i[r]=e[r];return t}var Ly="https://shotstack-ingest-api-dev-sources.s3.ap-southeast-2.amazonaws.com/euo5r93oyr/zzz01k9h-yycyx-2x2y6-qx9bj-7n567b/source.wasm";async function $y(e){try{const t=await fetch(e);if(t.ok){const i=await t.arrayBuffer(),r=new Uint8Array(i);if(r.length>=4&&r[0]===0&&r[1]===97&&r[2]===115&&r[3]===109)return i;console.error(`❌ Invalid WASM magic number from URL: ${e}`)}else console.error(`❌ Failed to fetch WASM from URL: ${e}, status: ${t.status}`);return}catch(t){console.error(`❌ Error fetching WASM from ${e}:`,t);return}}async function Yk(){try{const{readFile:e}=await Promise.resolve().then(()=>Wu),t=await Promise.resolve().then(()=>Wu),i=[];try{const{createRequire:a}=await Promise.resolve().then(()=>Wu),n=a((typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:ia&&ia.tagName.toUpperCase()==="SCRIPT"&&ia.src||new URL("internal.umd.js",document.baseURI).href)||`file://${process.cwd()}/`).resolve("harfbuzzjs/package.json"),o=t.dirname(n);i.push(t.join(o,"hb.wasm"))}catch{}let r;try{if(typeof(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:ia&&ia.tagName.toUpperCase()==="SCRIPT"&&ia.src||new URL("internal.umd.js",document.baseURI).href)=="string"){const{fileURLToPath:a}=await Promise.resolve().then(()=>Wu);r=t.dirname(a(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:ia&&ia.tagName.toUpperCase()==="SCRIPT"&&ia.src||new URL("internal.umd.js",document.baseURI).href))}}catch{}r||(r=process.cwd()),i.push(t.join(r,"dist/hb.wasm"),t.join(r,"assets/wasm/hb.wasm"),t.join(r,"node_modules/harfbuzzjs/hb.wasm"),t.join(r,"node_modules/@shotstack/shotstack-canvas/assets/wasm/hb.wasm")),i.push("/var/task/node_modules/harfbuzzjs/hb.wasm","/var/task/node_modules/@shotstack/shotstack-canvas/assets/wasm/hb.wasm");for(const a of i)try{const s=await e(a);return Wk(s)}catch{continue}return await $y(Ly)}catch(e){return console.error("Error in loadWasmNode:",e),await $y(Ly)}}async function Kk(e){try{if(e){const t=e.endsWith(".wasm")?e:e.endsWith("/")?`${e}hb.wasm`:`${e}/hb.wasm`,i=await fetch(t);if(i.ok){const r=await i.arrayBuffer(),a=new Uint8Array(r);if(a.length>=4&&a[0]===0&&a[1]===97&&a[2]===115&&a[3]===109)return r}}return}catch(t){console.error("Error in loadWasmWeb:",t);return}}function Xk(e){const t=window.fetch;window.fetch=function(a,s){return(typeof a=="string"?a:a instanceof URL?a.href:a.url).includes("hb.wasm")?Promise.resolve(new Response(e.slice(0),{status:200,statusText:"OK",headers:{"Content-Type":"application/wasm","Content-Length":e.byteLength.toString()}})):t.apply(this,[a,s])};const i=WebAssembly.instantiate;WebAssembly.instantiate=async function(a,s){if(a instanceof WebAssembly.Module||(a instanceof ArrayBuffer,a.byteLength)!==e.byteLength)return i.call(WebAssembly,a,s);const o=await WebAssembly.compile(e),u=await i.call(WebAssembly,o,s);return{module:o,instance:u}};const r=WebAssembly.instantiateStreaming;r&&(WebAssembly.instantiateStreaming=async function(a,s){try{const n=await a;if((n.url||"").includes("hb.wasm")){const u=await WebAssembly.compile(e),l=await WebAssembly.instantiate(u,s);return{module:u,instance:l}}return r.call(WebAssembly,n,s)}catch(n){throw n}})}async function Hk(e){if(eu)return eu;try{let t;if(Zy()?t=await Yk():t=await Kk(e),!t)throw new Error("Failed to load WASM binary from any source");Zy()||(Xk(t),window.Module={wasmBinary:t,locateFile:u=>u});const i=await Promise.resolve().then(()=>sz),a=await(i.default||i)({wasmBinary:t}),s=await Promise.resolve().then(()=>uz),o=(s.default||s)(a);if(!o||typeof o.createBuffer!="function"||typeof o.createFont!="function")throw new Error("Failed to initialize HarfBuzz: unexpected export shape from 'harfbuzzjs'.");return eu=o,eu}catch(t){throw console.error("Failed to initialize HarfBuzz:",t),new Error(`Failed to initialize HarfBuzz: ${t instanceof Error?t.message:String(t)}`)}}var Jk={utf16le:"utf-16le",ucs2:"utf-16le",utf16be:"utf-16be"},$t=class{constructor(e){this.buffer=e,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.pos=0,this.length=this.buffer.length}readString(e,t="ascii"){t=Jk[t]||t;let i=this.readBuffer(e);try{return new TextDecoder(t).decode(i)}catch{return i}}readBuffer(e){return this.buffer.slice(this.pos,this.pos+=e)}readUInt24BE(){return(this.readUInt16BE()<<8)+this.readUInt8()}readUInt24LE(){return this.readUInt16LE()+(this.readUInt8()<<16)}readInt24BE(){return(this.readInt16BE()<<8)+this.readUInt8()}readInt24LE(){return this.readUInt16LE()+(this.readInt8()<<16)}};$t.TYPES={UInt8:1,UInt16:2,UInt24:3,UInt32:4,Int8:1,Int16:2,Int24:3,Int32:4,Float:4,Double:8};for(let e of Object.getOwnPropertyNames(DataView.prototype))if(e.slice(0,3)==="get"){let t=e.slice(3).replace("Ui","UI");t==="Float32"?t="Float":t==="Float64"&&(t="Double");let i=$t.TYPES[t];$t.prototype["read"+t+(i===1?"":"BE")]=function(){const r=this.view[e](this.pos,!1);return this.pos+=i,r},i!==1&&($t.prototype["read"+t+"LE"]=function(){const r=this.view[e](this.pos,!0);return this.pos+=i,r})}var qk=new TextEncoder,Uy=new Uint8Array(new Uint16Array([4660]).buffer)[0]==18,tu=class{constructor(e){this.buffer=e,this.view=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),this.pos=0}writeBuffer(e){this.buffer.set(e,this.pos),this.pos+=e.length}writeString(e,t="ascii"){let i;switch(t){case"utf16le":case"utf16-le":case"ucs2":i=jy(e,Uy);break;case"utf16be":case"utf16-be":i=jy(e,!Uy);break;case"utf8":i=qk.encode(e);break;case"ascii":i=Qk(e);break;default:throw new Error(`Unsupported encoding: ${t}`)}this.writeBuffer(i)}writeUInt24BE(e){this.buffer[this.pos++]=e>>>16&255,this.buffer[this.pos++]=e>>>8&255,this.buffer[this.pos++]=e&255}writeUInt24LE(e){this.buffer[this.pos++]=e&255,this.buffer[this.pos++]=e>>>8&255,this.buffer[this.pos++]=e>>>16&255}writeInt24BE(e){e>=0?this.writeUInt24BE(e):this.writeUInt24BE(e+16777215+1)}writeInt24LE(e){e>=0?this.writeUInt24LE(e):this.writeUInt24LE(e+16777215+1)}fill(e,t){if(t<this.buffer.length)this.buffer.fill(e,this.pos,this.pos+t),this.pos+=t;else{const i=new Uint8Array(t);i.fill(e),this.writeBuffer(i)}}};function jy(e,t){let i=new Uint16Array(e.length);for(let r=0;r<e.length;r++){let a=e.charCodeAt(r);t&&(a=a>>8|(a&255)<<8),i[r]=a}return new Uint8Array(i.buffer)}function Qk(e){let t=new Uint8Array(e.length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t}for(let e of Object.getOwnPropertyNames(DataView.prototype))if(e.slice(0,3)==="set"){let t=e.slice(3).replace("Ui","UI");t==="Float32"?t="Float":t==="Float64"&&(t="Double");let i=$t.TYPES[t];tu.prototype["write"+t+(i===1?"":"BE")]=function(r){this.view[e](this.pos,r,!1),this.pos+=i},i!==1&&(tu.prototype["write"+t+"LE"]=function(r){this.view[e](this.pos,r,!0),this.pos+=i})}var oa=class{fromBuffer(e){let t=new $t(e);return this.decode(t)}toBuffer(e){let t=this.size(e),i=new Uint8Array(t),r=new tu(i);return this.encode(r,e),i}},rt=class extends oa{constructor(e,t="BE"){super(),this.type=e,this.endian=t,this.fn=this.type,this.type[this.type.length-1]!=="8"&&(this.fn+=this.endian)}size(){return $t.TYPES[this.type]}decode(e){return e[`read${this.fn}`]()}encode(e,t){return e[`write${this.fn}`](t)}},oe=new rt("UInt8"),eD=new rt("UInt16","BE"),d=eD;new rt("UInt16","LE");var tD=new rt("UInt24","BE"),Ia=tD;new rt("UInt24","LE");var iD=new rt("UInt32","BE"),B=iD;new rt("UInt32","LE");var Mt=new rt("Int8"),aD=new rt("Int16","BE"),K=aD;new rt("Int16","LE"),new rt("Int24","BE"),new rt("Int24","LE");var rD=new rt("Int32","BE"),sr=rD;new rt("Int32","LE"),new rt("Float","BE"),new rt("Float","LE"),new rt("Double","BE"),new rt("Double","LE");var nr=class extends rt{constructor(e,t,i=e>>1){super(`Int${e}`,t),this._point=1<<i}decode(e){return super.decode(e)/this._point}encode(e,t){return super.encode(e,t*this._point|0)}},sD=new nr(16,"BE"),nD=sD;new nr(16,"LE");var oD=new nr(32,"BE"),Nt=oD;new nr(32,"LE");function Gi(e,t,i){let r;if(typeof e=="number"?r=e:typeof e=="function"?r=e.call(i,i):i&&typeof e=="string"?r=i[e]:t&&e instanceof rt&&(r=e.decode(t)),isNaN(r))throw new Error("Not a fixed size");return r}var Bc=class{constructor(e={}){this.enumerable=!0,this.configurable=!0;for(let t in e){const i=e[t];this[t]=i}}},S=class extends oa{constructor(e,t,i="count"){super(),this.type=e,this.length=t,this.lengthType=i}decode(e,t){let i;const{pos:r}=e,a=[];let s=t;if(this.length!=null&&(i=Gi(this.length,e,t)),this.length instanceof rt&&(Object.defineProperties(a,{parent:{value:t},_startOffset:{value:r},_currentOffset:{value:0,writable:!0},_length:{value:i}}),s=a),i==null||this.lengthType==="bytes"){const n=i!=null?e.pos+i:t?._length?t._startOffset+t._length:e.length;for(;e.pos<n;)a.push(this.type.decode(e,s))}else for(let n=0,o=i;n<o;n++)a.push(this.type.decode(e,s));return a}size(e,t,i=!0){if(!e)return this.type.size(null,t)*Gi(this.length,null,t);let r=0;this.length instanceof rt&&(r+=this.length.size(),t={parent:t,pointerSize:0});for(let a of e)r+=this.type.size(a,t);return t&&i&&this.length instanceof rt&&(r+=t.pointerSize),r}encode(e,t,i){let r=i;this.length instanceof rt&&(r={pointers:[],startOffset:e.pos,parent:i},r.pointerOffset=e.pos+this.size(t,r,!1),this.length.encode(e,t.length));for(let a of t)this.type.encode(e,a,r);if(this.length instanceof rt){let a=0;for(;a<r.pointers.length;){const s=r.pointers[a++];s.type.encode(e,s.val,s.parent)}}}},lt=class extends S{decode(e,t){const{pos:i}=e,r=Gi(this.length,e,t);this.length instanceof rt&&(t={parent:t,_startOffset:i,_currentOffset:0,_length:r});const a=new Fc(this.type,r,e,t);return e.pos+=r*this.type.size(null,t),a}size(e,t){return e instanceof Fc&&(e=e.toArray()),super.size(e,t)}encode(e,t,i){return t instanceof Fc&&(t=t.toArray()),super.encode(e,t,i)}},Fc=class{constructor(e,t,i,r){this.type=e,this.length=t,this.stream=i,this.ctx=r,this.base=this.stream.pos,this.items=[]}get(e){if(!(e<0||e>=this.length)){if(this.items[e]==null){const{pos:t}=this.stream;this.stream.pos=this.base+this.type.size(null,this.ctx)*e,this.items[e]=this.type.decode(this.stream,this.ctx),this.stream.pos=t}return this.items[e]}}toArray(){const e=[];for(let t=0,i=this.length;t<i;t++)e.push(this.get(t));return e}},Pi=class extends oa{constructor(e,t=[]){super(),this.type=e,this.flags=t}decode(e){const t=this.type.decode(e),i={};for(let r=0;r<this.flags.length;r++){const a=this.flags[r];a!=null&&(i[a]=!!(t&1<<r))}return i}size(){return this.type.size()}encode(e,t){let i=0;for(let r=0;r<this.flags.length;r++){const a=this.flags[r];a!=null&&t[a]&&(i|=1<<r)}return this.type.encode(e,i)}},Wi=class extends oa{constructor(e){super(),this.length=e}decode(e,t){const i=Gi(this.length,e,t);return e.readBuffer(i)}size(e,t){if(!e)return Gi(this.length,null,t);let i=e.length;return this.length instanceof rt&&(i+=this.length.size()),i}encode(e,t,i){return this.length instanceof rt&&this.length.encode(e,t.length),e.writeBuffer(t)}},iu=class extends oa{constructor(e,t=!0){super(),this.type=e,this.condition=t}decode(e,t){let{condition:i}=this;if(typeof i=="function"&&(i=i.call(t,t)),i)return this.type.decode(e,t)}size(e,t){let{condition:i}=this;return typeof i=="function"&&(i=i.call(t,t)),i?this.type.size(e,t):0}encode(e,t,i){let{condition:r}=this;if(typeof r=="function"&&(r=r.call(i,i)),r)return this.type.encode(e,t,i)}},yt=class extends oa{constructor(e,t=1){super(),this.type=e,this.count=t}decode(e,t){e.pos+=this.size(null,t)}size(e,t){const i=Gi(this.count,null,t);return this.type.size()*i}encode(e,t,i){return e.fill(0,this.size(t,i))}},nt=class extends oa{constructor(e,t="ascii"){super(),this.length=e,this.encoding=t}decode(e,t){let i,r,{encoding:a}=this;typeof a=="function"&&(a=a.call(t,t)||"ascii");let s=Ic(a);if(this.length!=null)i=Gi(this.length,e,t);else{let o;for({buffer:o,length:i,pos:r}=e;r<i-s+1&&(o[r]!==0||s===2&&o[r+1]!==0);)r+=s;i=r-e.pos}const n=e.readString(i,a);return this.length==null&&e.pos<e.length&&(e.pos+=s),n}size(e,t){if(e==null)return Gi(this.length,null,t);let{encoding:i}=this;typeof i=="function"&&(i=i.call(t?.val,t?.val)||"ascii"),i==="utf16be"&&(i="utf16le");let r=Gy(e,i);return this.length instanceof rt&&(r+=this.length.size()),this.length==null&&(r+=Ic(i)),r}encode(e,t,i){let{encoding:r}=this;if(typeof r=="function"&&(r=r.call(i?.val,i?.val)||"ascii"),this.length instanceof rt&&this.length.encode(e,Gy(t,r)),e.writeString(t,r),this.length==null)return Ic(r)==2?e.writeUInt16LE(0):e.writeUInt8(0)}};function Ic(e){switch(e){case"ascii":case"utf8":return 1;case"utf16le":case"utf16-le":case"utf-16be":case"utf-16le":case"utf16be":case"utf16-be":case"ucs2":return 2;default:return 1}}function Gy(e,t){switch(t){case"ascii":return e.length;case"utf8":let i=0;for(let r=0;r<e.length;r++){let a=e.charCodeAt(r);if(a>=55296&&a<=56319&&r<e.length-1){let s=e.charCodeAt(++r);(s&64512)===56320?a=((a&1023)<<10)+(s&1023)+65536:r--}a&4294967168?a&4294965248?a&4294901760?a&4292870144||(i+=4):i+=3:i+=2:i++}return i;case"utf16le":case"utf16-le":case"utf16be":case"utf16-be":case"ucs2":return e.length*2;default:throw new Error("Unknown encoding "+t)}}var T=class extends oa{constructor(e={}){super(),this.fields=e}decode(e,t,i=0){const r=this._setup(e,t,i);return this._parseFields(e,r,this.fields),this.process!=null&&this.process.call(r,e),r}_setup(e,t,i){const r={};return Object.defineProperties(r,{parent:{value:t},_startOffset:{value:e.pos},_currentOffset:{value:0,writable:!0},_length:{value:i}}),r}_parseFields(e,t,i){for(let a in i){var r;const s=i[a];typeof s=="function"?r=s.call(t,t):r=s.decode(e,t),r!==void 0&&(r instanceof Bc?Object.defineProperty(t,a,r):t[a]=r),t._currentOffset=e.pos-t._startOffset}}size(e,t,i=!0){e==null&&(e={});const r={parent:t,val:e,pointerSize:0};this.preEncode!=null&&this.preEncode.call(e);let a=0;for(let s in this.fields){const n=this.fields[s];n.size!=null&&(a+=n.size(e[s],r))}return i&&(a+=r.pointerSize),a}encode(e,t,i){let r;this.preEncode!=null&&this.preEncode.call(t,e);const a={pointers:[],startOffset:e.pos,parent:i,val:t,pointerSize:0};a.pointerOffset=e.pos+this.size(t,a,!1);for(let n in this.fields)r=this.fields[n],r.encode!=null&&r.encode(e,t[n],a);let s=0;for(;s<a.pointers.length;){const n=a.pointers[s++];n.type.encode(e,n.val,n.parent)}}},uD=(e,t)=>t.reduce((i,r)=>i&&i[r],e),Ye=class A3 extends T{constructor(t,i={}){super(),this.type=t,this.versions=i,typeof t=="string"&&(this.versionPath=t.split("."))}decode(t,i,r=0){const a=this._setup(t,i,r);typeof this.type=="string"?a.version=uD(i,this.versionPath):a.version=this.type.decode(t),this.versions.header&&this._parseFields(t,a,this.versions.header);const s=this.versions[a.version];if(s==null)throw new Error(`Unknown version ${a.version}`);return s instanceof A3?s.decode(t,i):(this._parseFields(t,a,s),this.process!=null&&this.process.call(a,t),a)}size(t,i,r=!0){let a,s;if(!t)throw new Error("Not a fixed size");this.preEncode!=null&&this.preEncode.call(t);const n={parent:i,val:t,pointerSize:0};let o=0;if(typeof this.type!="string"&&(o+=this.type.size(t.version,n)),this.versions.header)for(a in this.versions.header)s=this.versions.header[a],s.size!=null&&(o+=s.size(t[a],n));const u=this.versions[t.version];if(u==null)throw new Error(`Unknown version ${t.version}`);for(a in u)s=u[a],s.size!=null&&(o+=s.size(t[a],n));return r&&(o+=n.pointerSize),o}encode(t,i,r){let a,s;this.preEncode!=null&&this.preEncode.call(i,t);const n={pointers:[],startOffset:t.pos,parent:r,val:i,pointerSize:0};if(n.pointerOffset=t.pos+this.size(i,n,!1),typeof this.type!="string"&&this.type.encode(t,i.version),this.versions.header)for(a in this.versions.header)s=this.versions.header[a],s.encode!=null&&s.encode(t,i[a],n);const o=this.versions[i.version];for(a in o)s=o[a],s.encode!=null&&s.encode(t,i[a],n);let u=0;for(;u<n.pointers.length;){const l=n.pointers[u++];l.type.encode(t,l.val,l.parent)}}},N=class extends oa{constructor(e,t,i={}){if(super(),this.offsetType=e,this.type=t,this.options=i,this.type==="void"&&(this.type=null),this.options.type==null&&(this.options.type="local"),this.options.allowNull==null&&(this.options.allowNull=!0),this.options.nullValue==null&&(this.options.nullValue=0),this.options.lazy==null&&(this.options.lazy=!1),this.options.relativeTo){if(typeof this.options.relativeTo!="function")throw new Error("relativeTo option must be a function");this.relativeToGetter=i.relativeTo}}decode(e,t){const i=this.offsetType.decode(e,t);if(i===this.options.nullValue&&this.options.allowNull)return null;let r;switch(this.options.type){case"local":r=t._startOffset;break;case"immediate":r=e.pos-this.offsetType.size();break;case"parent":r=t.parent._startOffset;break;default:for(var a=t;a.parent;)a=a.parent;r=a._startOffset||0}this.options.relativeTo&&(r+=this.relativeToGetter(t));const s=i+r;if(this.type!=null){let n=null;const o=()=>{if(n!=null)return n;const{pos:u}=e;return e.pos=s,n=this.type.decode(e,t),e.pos=u,n};return this.options.lazy?new Bc({get:o}):o()}else return s}size(e,t){const i=t;switch(this.options.type){case"local":case"immediate":break;case"parent":t=t.parent;break;default:for(;t.parent;)t=t.parent}let{type:r}=this;if(r==null){if(!(e instanceof Vc))throw new Error("Must be a VoidPointer");({type:r}=e),e=e.value}if(e&&t){let a=r.size(e,i);t.pointerSize+=a}return this.offsetType.size()}encode(e,t,i){let r;const a=i;if(t==null){this.offsetType.encode(e,this.options.nullValue);return}switch(this.options.type){case"local":r=i.startOffset;break;case"immediate":r=e.pos+this.offsetType.size(t,a);break;case"parent":i=i.parent,r=i.startOffset;break;default:for(r=0;i.parent;)i=i.parent}this.options.relativeTo&&(r+=this.relativeToGetter(a.val)),this.offsetType.encode(e,i.pointerOffset-r);let{type:s}=this;if(s==null){if(!(t instanceof Vc))throw new Error("Must be a VoidPointer");({type:s}=t),t=t.value}return i.pointers.push({type:s,val:t,parent:a}),i.pointerOffset+=s.size(t,a)}},Vc=class{constructor(e,t){this.type=e,this.value=t}};function ui(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Ut(e,t,i,r){var a=arguments.length,s=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,i,r);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s}var Wy=_a(H7()),lD=_a(wh()),cD=_a(xh());function or(e){return e&&e.__esModule?e.default:e}var Va={};Va=JSON.parse('{"categories":["Cc","Zs","Po","Sc","Ps","Pe","Sm","Pd","Nd","Lu","Sk","Pc","Ll","So","Lo","Pi","Cf","No","Pf","Lt","Lm","Mn","Me","Mc","Nl","Zl","Zp","Cs","Co"],"combiningClasses":["Not_Reordered","Above","Above_Right","Below","Attached_Above_Right","Attached_Below","Overlay","Iota_Subscript","Double_Below","Double_Above","Below_Right","Above_Left","CCC10","CCC11","CCC12","CCC13","CCC14","CCC15","CCC16","CCC17","CCC18","CCC19","CCC20","CCC21","CCC22","CCC23","CCC24","CCC25","CCC30","CCC31","CCC32","CCC27","CCC28","CCC29","CCC33","CCC34","CCC35","CCC36","Nukta","Virama","CCC84","CCC91","CCC103","CCC107","CCC118","CCC122","CCC129","CCC130","CCC132","Attached_Above","Below_Left","Left","Kana_Voicing","CCC26","Right"],"scripts":["Common","Latin","Bopomofo","Inherited","Greek","Coptic","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Nko","Samaritan","Mandaic","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul","Ethiopic","Cherokee","Canadian_Aboriginal","Ogham","Runic","Tagalog","Hanunoo","Buhid","Tagbanwa","Khmer","Mongolian","Limbu","Tai_Le","New_Tai_Lue","Buginese","Tai_Tham","Balinese","Sundanese","Batak","Lepcha","Ol_Chiki","Braille","Glagolitic","Tifinagh","Han","Hiragana","Katakana","Yi","Lisu","Vai","Bamum","Syloti_Nagri","Phags_Pa","Saurashtra","Kayah_Li","Rejang","Javanese","Cham","Tai_Viet","Meetei_Mayek","null","Linear_B","Lycian","Carian","Old_Italic","Gothic","Old_Permic","Ugaritic","Old_Persian","Deseret","Shavian","Osmanya","Osage","Elbasan","Caucasian_Albanian","Linear_A","Cypriot","Imperial_Aramaic","Palmyrene","Nabataean","Hatran","Phoenician","Lydian","Meroitic_Hieroglyphs","Meroitic_Cursive","Kharoshthi","Old_South_Arabian","Old_North_Arabian","Manichaean","Avestan","Inscriptional_Parthian","Inscriptional_Pahlavi","Psalter_Pahlavi","Old_Turkic","Old_Hungarian","Hanifi_Rohingya","Old_Sogdian","Sogdian","Elymaic","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Newa","Tirhuta","Siddham","Modi","Takri","Ahom","Dogra","Warang_Citi","Nandinagari","Zanabazar_Square","Soyombo","Pau_Cin_Hau","Bhaiksuki","Marchen","Masaram_Gondi","Gunjala_Gondi","Makasar","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Medefaidrin","Miao","Tangut","Nushu","Duployan","SignWriting","Nyiakeng_Puachue_Hmong","Wancho","Mende_Kikakui","Adlam"],"eaw":["N","Na","A","W","H","F"]}');var zc=new cD.default(lD.default.toByteArray("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")),fD=Math.log2||(e=>Math.log(e)/Math.LN2),au=e=>fD(e)+1|0,dD=au(or(Va).categories.length-1),Yy=au(or(Va).combiningClasses.length-1),Pc=au(or(Va).scripts.length-1),Tc=au(or(Va).eaw.length-1),Oc=10,hD=Yy+Pc+Tc+Oc,gD=Pc+Tc+Oc,pD=Tc+Oc,mD=(1<<dD)-1,yD=(1<<Yy)-1,bD=(1<<Pc)-1;function ru(e){const t=zc.get(e);return or(Va).categories[t>>hD&mD]}function vD(e){const t=zc.get(e);return or(Va).combiningClasses[t>>gD&yD]}function Ky(e){const t=zc.get(e);return or(Va).scripts[t>>pD&bD]}function Xy(e){return ru(e)==="Nd"}function Hy(e){const t=ru(e);return t==="Mn"||t==="Me"||t==="Mc"}var Rc=_a(xh()),Jy=_a(q7()),Mc=_a(Q7()),wD=_a(Ch()),CD=_a(nA());function Us(e,t,i,r){Object.defineProperty(e,t,{get:i,set:r,enumerable:!0,configurable:!0})}function su(e){return e&&e.__esModule?e.default:e}var js={};Us(js,"logErrors",()=>xD),Us(js,"registerFormat",()=>Lr),Us(js,"create",()=>qy),Us(js,"defaultLanguage",()=>nu),Us(js,"setDefaultLanguage",()=>ED);var xD=!1,Zc=[];function Lr(e){Zc.push(e)}function qy(e,t){for(let i=0;i<Zc.length;i++){let r=Zc[i];if(r.probe(e)){let a=new r(new $t(e));return t?a.getFont(t):a}}throw new Error("Unknown font format")}var nu="en";function ED(e="en"){nu=e}function jt(e,t,i){if(i.get){let r=i.get;i.get=function(){let a=r.call(this);return Object.defineProperty(this,t,{value:a}),a}}else if(typeof i.value=="function"){let r=i.value;return{get(){let a=new Map;function s(...n){let o=n.length>0?n[0]:"value";if(a.has(o))return a.get(o);let u=r.apply(this,n);return a.set(o,u),u}return Object.defineProperty(this,t,{value:s}),s}}}}var AD=new T({firstCode:d,entryCount:d,idDelta:K,idRangeOffset:d}),Lc=new T({startCharCode:B,endCharCode:B,glyphID:B}),kD=new T({startUnicodeValue:Ia,additionalCount:oe}),DD=new T({unicodeValue:Ia,glyphID:d}),_D=new S(kD,B),SD=new S(DD,B),ND=new T({varSelector:Ia,defaultUVS:new N(B,_D,{type:"parent"}),nonDefaultUVS:new N(B,SD,{type:"parent"})}),BD=new Ye(d,{0:{length:d,language:d,codeMap:new lt(oe,256)},2:{length:d,language:d,subHeaderKeys:new S(d,256),subHeaderCount:e=>Math.max.apply(Math,e.subHeaderKeys),subHeaders:new lt(AD,"subHeaderCount"),glyphIndexArray:new lt(d,"subHeaderCount")},4:{length:d,language:d,segCountX2:d,segCount:e=>e.segCountX2>>1,searchRange:d,entrySelector:d,rangeShift:d,endCode:new lt(d,"segCount"),reservedPad:new yt(d),startCode:new lt(d,"segCount"),idDelta:new lt(K,"segCount"),idRangeOffset:new lt(d,"segCount"),glyphIndexArray:new lt(d,e=>(e.length-e._currentOffset)/2)},6:{length:d,language:d,firstCode:d,entryCount:d,glyphIndices:new lt(d,"entryCount")},8:{reserved:new yt(d),length:B,language:d,is32:new lt(oe,8192),nGroups:B,groups:new lt(Lc,"nGroups")},10:{reserved:new yt(d),length:B,language:B,firstCode:B,entryCount:B,glyphIndices:new lt(d,"numChars")},12:{reserved:new yt(d),length:B,language:B,nGroups:B,groups:new lt(Lc,"nGroups")},13:{reserved:new yt(d),length:B,language:B,nGroups:B,groups:new lt(Lc,"nGroups")},14:{length:B,numRecords:B,varSelectors:new lt(ND,"numRecords")}}),FD=new T({platformID:d,encodingID:d,table:new N(B,BD,{type:"parent",lazy:!0})}),ID=new T({version:d,numSubtables:d,tables:new S(FD,"numSubtables")}),VD=new T({version:sr,revision:sr,checkSumAdjustment:B,magicNumber:B,flags:d,unitsPerEm:d,created:new S(sr,2),modified:new S(sr,2),xMin:K,yMin:K,xMax:K,yMax:K,macStyle:new Pi(d,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:d,fontDirectionHint:K,indexToLocFormat:K,glyphDataFormat:K}),zD=new T({version:sr,ascent:K,descent:K,lineGap:K,advanceWidthMax:d,minLeftSideBearing:K,minRightSideBearing:K,xMaxExtent:K,caretSlopeRise:K,caretSlopeRun:K,caretOffset:K,reserved:new yt(K,4),metricDataFormat:K,numberOfMetrics:d}),PD=new T({advance:d,bearing:K}),TD=new T({metrics:new lt(PD,e=>e.parent.hhea.numberOfMetrics),bearings:new lt(K,e=>e.parent.maxp.numGlyphs-e.parent.hhea.numberOfMetrics)}),OD=new T({version:sr,numGlyphs:d,maxPoints:d,maxContours:d,maxComponentPoints:d,maxComponentContours:d,maxZones:d,maxTwilightPoints:d,maxStorage:d,maxFunctionDefs:d,maxInstructionDefs:d,maxStackElements:d,maxSizeOfInstructions:d,maxComponentElements:d,maxComponentDepth:d});function Qy(e,t,i=0){return e===1&&eb[i]?eb[i]:LD[e][t]}var RD=new Set(["x-mac-roman","x-mac-cyrillic","iso-8859-6","iso-8859-8"]),MD={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"},$c=new Map;function ZD(e){let t=$c.get(e);if(t)return t;let i=MD[e];if(i){let r=new Map;for(let a=0;a<i.length;a++)r.set(i.charCodeAt(a),128+a);return $c.set(e,r),r}if(RD.has(e)){let r=new TextDecoder(e),a=new Uint8Array(128);for(let o=0;o<128;o++)a[o]=128+o;let s=new Map,n=r.decode(a);for(let o=0;o<128;o++)s.set(n.charCodeAt(o),128+o);return $c.set(e,s),s}}var LD=[["utf-16be","utf-16be","utf-16be","utf-16be","utf-16be","utf-16be","utf-16be"],["x-mac-roman","shift-jis","big5","euc-kr","iso-8859-6","iso-8859-8","x-mac-greek","x-mac-cyrillic","x-mac-symbol","x-mac-devanagari","x-mac-gurmukhi","x-mac-gujarati","Oriya","Bengali","Tamil","Telugu","Kannada","Malayalam","Sinhalese","Burmese","Khmer","iso-8859-11","Laotian","Georgian","Armenian","gbk","Tibetan","Mongolian","Geez","x-mac-ce","Vietnamese","Sindhi"],["ascii",null,"iso-8859-1"],["symbol","utf-16be","shift-jis","gb18030","big5","euc-kr","johab",null,null,null,"utf-16be"]],eb={15:"x-mac-icelandic",17:"x-mac-turkish",18:"x-mac-croatian",24:"x-mac-ce",25:"x-mac-ce",26:"x-mac-ce",27:"x-mac-ce",28:"x-mac-ce",30:"x-mac-icelandic",37:"x-mac-romanian",38:"x-mac-ce",39:"x-mac-ce",40:"x-mac-ce",143:"x-mac-inuit",146:"x-mac-gaelic"},$D=[[],{0:"en",30:"fo",60:"ks",90:"rw",1:"fr",31:"fa",61:"ku",91:"rn",2:"de",32:"ru",62:"sd",92:"ny",3:"it",33:"zh",63:"bo",93:"mg",4:"nl",34:"nl-BE",64:"ne",94:"eo",5:"sv",35:"ga",65:"sa",128:"cy",6:"es",36:"sq",66:"mr",129:"eu",7:"da",37:"ro",67:"bn",130:"ca",8:"pt",38:"cz",68:"as",131:"la",9:"no",39:"sk",69:"gu",132:"qu",10:"he",40:"si",70:"pa",133:"gn",11:"ja",41:"yi",71:"or",134:"ay",12:"ar",42:"sr",72:"ml",135:"tt",13:"fi",43:"mk",73:"kn",136:"ug",14:"el",44:"bg",74:"ta",137:"dz",15:"is",45:"uk",75:"te",138:"jv",16:"mt",46:"be",76:"si",139:"su",17:"tr",47:"uz",77:"my",140:"gl",18:"hr",48:"kk",78:"km",141:"af",19:"zh-Hant",49:"az-Cyrl",79:"lo",142:"br",20:"ur",50:"az-Arab",80:"vi",143:"iu",21:"hi",51:"hy",81:"id",144:"gd",22:"th",52:"ka",82:"tl",145:"gv",23:"ko",53:"mo",83:"ms",146:"ga",24:"lt",54:"ky",84:"ms-Arab",147:"to",25:"pl",55:"tg",85:"am",148:"el-polyton",26:"hu",56:"tk",86:"ti",149:"kl",27:"es",57:"mn-CN",87:"om",150:"az",28:"lv",58:"mn",88:"so",151:"nn",29:"se",59:"ps",89:"sw"},[],{1078:"af",16393:"en-IN",1159:"rw",1074:"tn",1052:"sq",6153:"en-IE",1089:"sw",1115:"si",1156:"gsw",8201:"en-JM",1111:"kok",1051:"sk",1118:"am",17417:"en-MY",1042:"ko",1060:"sl",5121:"ar-DZ",5129:"en-NZ",1088:"ky",11274:"es-AR",15361:"ar-BH",13321:"en-PH",1108:"lo",16394:"es-BO",3073:"ar",18441:"en-SG",1062:"lv",13322:"es-CL",2049:"ar-IQ",7177:"en-ZA",1063:"lt",9226:"es-CO",11265:"ar-JO",11273:"en-TT",2094:"dsb",5130:"es-CR",13313:"ar-KW",2057:"en-GB",1134:"lb",7178:"es-DO",12289:"ar-LB",1033:"en",1071:"mk",12298:"es-EC",4097:"ar-LY",12297:"en-ZW",2110:"ms-BN",17418:"es-SV",6145:"ary",1061:"et",1086:"ms",4106:"es-GT",8193:"ar-OM",1080:"fo",1100:"ml",18442:"es-HN",16385:"ar-QA",1124:"fil",1082:"mt",2058:"es-MX",1025:"ar-SA",1035:"fi",1153:"mi",19466:"es-NI",10241:"ar-SY",2060:"fr-BE",1146:"arn",6154:"es-PA",7169:"aeb",3084:"fr-CA",1102:"mr",15370:"es-PY",14337:"ar-AE",1036:"fr",1148:"moh",10250:"es-PE",9217:"ar-YE",5132:"fr-LU",1104:"mn",20490:"es-PR",1067:"hy",6156:"fr-MC",2128:"mn-CN",3082:"es",1101:"as",4108:"fr-CH",1121:"ne",1034:"es",2092:"az-Cyrl",1122:"fy",1044:"nb",21514:"es-US",1068:"az",1110:"gl",2068:"nn",14346:"es-UY",1133:"ba",1079:"ka",1154:"oc",8202:"es-VE",1069:"eu",3079:"de-AT",1096:"or",2077:"sv-FI",1059:"be",1031:"de",1123:"ps",1053:"sv",2117:"bn",5127:"de-LI",1045:"pl",1114:"syr",1093:"bn-IN",4103:"de-LU",1046:"pt",1064:"tg",8218:"bs-Cyrl",2055:"de-CH",2070:"pt-PT",2143:"tzm",5146:"bs",1032:"el",1094:"pa",1097:"ta",1150:"br",1135:"kl",1131:"qu-BO",1092:"tt",1026:"bg",1095:"gu",2155:"qu-EC",1098:"te",1027:"ca",1128:"ha",3179:"qu",1054:"th",3076:"zh-HK",1037:"he",1048:"ro",1105:"bo",5124:"zh-MO",1081:"hi",1047:"rm",1055:"tr",2052:"zh",1038:"hu",1049:"ru",1090:"tk",4100:"zh-SG",1039:"is",9275:"smn",1152:"ug",1028:"zh-TW",1136:"ig",4155:"smj-NO",1058:"uk",1155:"co",1057:"id",5179:"smj",1070:"hsb",1050:"hr",1117:"iu",3131:"se-FI",1056:"ur",4122:"hr-BA",2141:"iu-Latn",1083:"se",2115:"uz-Cyrl",1029:"cs",2108:"ga",2107:"se-SE",1091:"uz",1030:"da",1076:"xh",8251:"sms",1066:"vi",1164:"prs",1077:"zu",6203:"sma-NO",1106:"cy",1125:"dv",1040:"it",7227:"sms",1160:"wo",2067:"nl-BE",2064:"it-CH",1103:"sa",1157:"sah",1043:"nl",1041:"ja",7194:"sr-Cyrl-BA",1144:"ii",3081:"en-AU",1099:"kn",3098:"sr",1130:"yo",10249:"en-BZ",1087:"kk",6170:"sr-Latn-BA",4105:"en-CA",1107:"km",2074:"sr-Latn",9225:"en-029",1158:"quc",1132:"nso"}],tb=new T({platformID:d,encodingID:d,languageID:d,nameID:d,length:d,string:new N(d,new nt("length",e=>Qy(e.platformID,e.encodingID,e.languageID)),{type:"parent",relativeTo:e=>e.parent.stringOffset,allowNull:!1})}),UD=new T({length:d,tag:new N(d,new nt("length","utf16be"),{type:"parent",relativeTo:e=>e.stringOffset})}),ou=new Ye(d,{0:{count:d,stringOffset:d,records:new S(tb,"count")},1:{count:d,stringOffset:d,records:new S(tb,"count"),langTagCount:d,langTags:new S(UD,"langTagCount")}}),jD=ou,Uc=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"];ou.process=function(e){var t={};for(let i of this.records){let r=$D[i.platformID][i.languageID];r==null&&this.langTags!=null&&i.languageID>=32768&&(r=this.langTags[i.languageID-32768].tag),r==null&&(r=i.platformID+"-"+i.languageID);let a=i.nameID>=256?"fontFeatures":Uc[i.nameID]||i.nameID;t[a]==null&&(t[a]={});let s=t[a];i.nameID>=256&&(s=s[i.nameID]||(s[i.nameID]={})),(typeof i.string=="string"||typeof s[r]!="string")&&(s[r]=i.string)}this.records=t},ou.preEncode=function(){if(Array.isArray(this.records))return;this.version=0;let e=[];for(let t in this.records){let i=this.records[t];t!=="fontFeatures"&&(e.push({platformID:3,encodingID:1,languageID:1033,nameID:Uc.indexOf(t),length:i.en.length*2,string:i.en}),t==="postscriptName"&&e.push({platformID:1,encodingID:0,languageID:0,nameID:Uc.indexOf(t),length:i.en.length,string:i.en}))}this.records=e,this.count=e.length,this.stringOffset=ou.size(this,null,!1)};var ib=new Ye(d,{header:{xAvgCharWidth:K,usWeightClass:d,usWidthClass:d,fsType:new Pi(d,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:K,ySubscriptYSize:K,ySubscriptXOffset:K,ySubscriptYOffset:K,ySuperscriptXSize:K,ySuperscriptYSize:K,ySuperscriptXOffset:K,ySuperscriptYOffset:K,yStrikeoutSize:K,yStrikeoutPosition:K,sFamilyClass:K,panose:new S(oe,10),ulCharRange:new S(B,4),vendorID:new nt(4),fsSelection:new Pi(d,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:d,usLastCharIndex:d},0:{},1:{typoAscender:K,typoDescender:K,typoLineGap:K,winAscent:d,winDescent:d,codePageRange:new S(B,2)},2:{typoAscender:K,typoDescender:K,typoLineGap:K,winAscent:d,winDescent:d,codePageRange:new S(B,2),xHeight:K,capHeight:K,defaultChar:d,breakChar:d,maxContent:d},5:{typoAscender:K,typoDescender:K,typoLineGap:K,winAscent:d,winDescent:d,codePageRange:new S(B,2),xHeight:K,capHeight:K,defaultChar:d,breakChar:d,maxContent:d,usLowerOpticalPointSize:d,usUpperOpticalPointSize:d}}),jc=ib.versions;jc[3]=jc[4]=jc[2];var GD=ib,WD=new Ye(Nt,{header:{italicAngle:Nt,underlinePosition:K,underlineThickness:K,isFixedPitch:B,minMemType42:B,maxMemType42:B,minMemType1:B,maxMemType1:B},1:{},2:{numberOfGlyphs:d,glyphNameIndex:new S(d,"numberOfGlyphs"),names:new S(new nt(oe))},2.5:{numberOfGlyphs:d,offsets:new S(oe,"numberOfGlyphs")},3:{},4:{map:new S(B,e=>e.parent.maxp.numGlyphs)}}),YD=new T({controlValues:new S(K)}),KD=new T({instructions:new S(oe)}),Gc=new Ye("head.indexToLocFormat",{0:{offsets:new S(d)},1:{offsets:new S(B)}});Gc.process=function(){if(this.version===0&&!this._processed){for(let e=0;e<this.offsets.length;e++)this.offsets[e]<<=1;this._processed=!0}},Gc.preEncode=function(){if(this.version===0&&this._processed!==!1){for(let e=0;e<this.offsets.length;e++)this.offsets[e]>>>=1;this._processed=!1}};var XD=Gc,HD=new T({controlValueProgram:new S(oe)}),JD=new S(new Wi),Yi=class{getCFFVersion(e){for(;e&&!e.hdrSize;)e=e.parent;return e?e.version:-1}decode(e,t){let r=this.getCFFVersion(t)>=2?e.readUInt32BE():e.readUInt16BE();if(r===0)return[];let a=e.readUInt8(),s;if(a===1)s=oe;else if(a===2)s=d;else if(a===3)s=Ia;else if(a===4)s=B;else throw new Error(`Bad offset size in CFFIndex: ${a} ${e.pos}`);let n=[],o=e.pos+(r+1)*a-1,u=s.decode(e);for(let l=0;l<r;l++){let c=s.decode(e);if(this.type!=null){let f=e.pos;e.pos=o+u,t.length=c-u,n.push(this.type.decode(e,t)),e.pos=f}else n.push({offset:o+u,length:c-u});u=c}return e.pos=o+u,n}size(e,t){let i=2;if(e.length===0)return i;let r=this.type||new Wi,a=1;for(let n=0;n<e.length;n++){let o=e[n];a+=r.size(o,t)}let s;if(a<=255)s=oe;else if(a<=65535)s=d;else if(a<=16777215)s=Ia;else if(a<=4294967295)s=B;else throw new Error("Bad offset in CFFIndex");return i+=1+s.size()*(e.length+1),i+=a-1,i}encode(e,t,i){if(e.writeUInt16BE(t.length),t.length===0)return;let r=this.type||new Wi,a=[],s=1;for(let o of t){let u=r.size(o,i);a.push(u),s+=u}let n;if(s<=255)n=oe;else if(s<=65535)n=d;else if(s<=16777215)n=Ia;else if(s<=4294967295)n=B;else throw new Error("Bad offset in CFFIndex");e.writeUInt8(n.size()),s=1,n.encode(e,s);for(let o of a)s+=o,n.encode(e,s);for(let o of t)r.encode(e,o,i)}constructor(e){this.type=e}},Gs=15,ab=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],rb={".":10,E:11,"E-":12,"-":14},Wc=class{static decode(e,t){if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return(t-247)*256+e.readUInt8()+108;if(251<=t&&t<=254)return-(t-251)*256-e.readUInt8()-108;if(t===28)return e.readInt16BE();if(t===29)return e.readInt32BE();if(t===30){let i="";for(;;){let r=e.readUInt8(),a=r>>4;if(a===Gs)break;i+=ab[a];let s=r&15;if(s===Gs)break;i+=ab[s]}return parseFloat(i)}return null}static size(e){if(e.forceLarge&&(e=32768),(e|0)!==e){let t=""+e;return 1+Math.ceil((t.length+1)/2)}else return-107<=e&&e<=107?1:108<=e&&e<=1131||-1131<=e&&e<=-108?2:-32768<=e&&e<=32767?3:5}static encode(e,t){let i=Number(t);if(t.forceLarge)return e.writeUInt8(29),e.writeInt32BE(i);if((i|0)!==i){e.writeUInt8(30);let a=""+i;for(let s=0;s<a.length;s+=2){let n=a[s],o=rb[n]||+n;if(s===a.length-1)var r=Gs;else{let u=a[s+1];var r=rb[u]||+u}e.writeUInt8(o<<4|r&15)}if(r!==Gs)return e.writeUInt8(Gs<<4)}else return-107<=i&&i<=107?e.writeUInt8(i+139):108<=i&&i<=1131?(i-=108,e.writeUInt8((i>>8)+247),e.writeUInt8(i&255)):-1131<=i&&i<=-108?(i=-i-108,e.writeUInt8((i>>8)+251),e.writeUInt8(i&255)):-32768<=i&&i<=32767?(e.writeUInt8(28),e.writeInt16BE(i)):(e.writeUInt8(29),e.writeInt32BE(i))}},uu=class{decodeOperands(e,t,i,r){if(Array.isArray(e))return r.map((a,s)=>this.decodeOperands(e[s],t,i,[a]));if(e.decode!=null)return e.decode(t,i,r);switch(e){case"number":case"offset":case"sid":return r[0];case"boolean":return!!r[0];default:return r}}encodeOperands(e,t,i,r){return Array.isArray(e)?r.map((a,s)=>this.encodeOperands(e[s],t,i,a)[0]):e.encode!=null?e.encode(t,r,i):typeof r=="number"?[r]:typeof r=="boolean"?[+r]:Array.isArray(r)?r:[r]}decode(e,t){let i=e.pos+t.length,r={},a=[];Object.defineProperties(r,{parent:{value:t},_startOffset:{value:e.pos}});for(let s in this.fields){let n=this.fields[s];r[n[1]]=n[3]}for(;e.pos<i;){let s=e.readUInt8();if(s<28){s===12&&(s=s<<8|e.readUInt8());let n=this.fields[s];if(!n)throw new Error(`Unknown operator ${s}`);let o=this.decodeOperands(n[2],e,r,a);o!=null&&(o instanceof Bc?Object.defineProperty(r,n[1],o):r[n[1]]=o),a=[]}else a.push(Wc.decode(e,s))}return r}size(e,t,i=!0){let r={parent:t,val:e,pointerSize:0,startOffset:t.startOffset||0},a=0;for(let s in this.fields){let n=this.fields[s],o=e[n[1]];if(o==null||(0,Wy.default)(o,n[3]))continue;let u=this.encodeOperands(n[2],null,r,o);for(let c of u)a+=Wc.size(c);let l=Array.isArray(n[0])?n[0]:[n[0]];a+=l.length}return i&&(a+=r.pointerSize),a}encode(e,t,i){let r={pointers:[],startOffset:e.pos,parent:i,val:t,pointerSize:0};r.pointerOffset=e.pos+this.size(t,r,!1);for(let s of this.ops){let n=t[s[1]];if(n==null||(0,Wy.default)(n,s[3]))continue;let o=this.encodeOperands(s[2],e,r,n);for(let l of o)Wc.encode(e,l);let u=Array.isArray(s[0])?s[0]:[s[0]];for(let l of u)e.writeUInt8(l)}let a=0;for(;a<r.pointers.length;){let s=r.pointers[a++];s.type.encode(e,s.val,s.parent)}}constructor(e=[]){this.ops=e,this.fields={};for(let t of e){let i=Array.isArray(t[0])?t[0][0]<<8|t[0][1]:t[0];this.fields[i]=t}}},Ti=class extends N{decode(e,t,i){return this.offsetType={decode:()=>i[0]},super.decode(e,t,i)}encode(e,t,i){if(!e)return this.offsetType={size:()=>0},this.size(t,i),[new sb(0)];let r=null;return this.offsetType={encode:(a,s)=>r=s},super.encode(e,t,i),[new sb(r)]}constructor(e,t={}){t.type==null&&(t.type="global"),super(null,e,t)}},sb=class{valueOf(){return this.val}constructor(e){this.val=e,this.forceLarge=!0}},qD=class{static decode(e,t,i){let r=i.pop();for(;i.length>r;)i.pop()}},Yc=new uu([[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","number",.039625],[[12,10],"BlueShift","number",7],[[12,11],"BlueFuzz","number",1],[10,"StdHW","number",null],[11,"StdVW","number",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","boolean",!1],[[12,17],"LanguageGroup","number",0],[[12,18],"ExpansionFactor","number",.06],[[12,19],"initialRandomSeed","number",0],[20,"defaultWidthX","number",0],[21,"nominalWidthX","number",0],[22,"vsindex","number",0],[23,"blend",qD,null],[19,"Subrs",new Ti(new Yi,{type:"local"}),null]]),lu=[".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"],nb=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],QD=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],ob=[".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"],e_=[".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"],t_=[".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"],ub=new T({reserved:new yt(d),reqFeatureIndex:d,featureCount:d,featureIndexes:new S(d,"featureCount")}),i_=new T({tag:new nt(4),langSys:new N(d,ub,{type:"parent"})}),a_=new T({defaultLangSys:new N(d,ub),count:d,langSysRecords:new S(i_,"count")}),r_=new T({tag:new nt(4),script:new N(d,a_,{type:"parent"})}),lb=new S(r_,d),s_=new T({version:d,nameID:d}),cb=new T({featureParams:new N(d,s_),lookupCount:d,lookupListIndexes:new S(d,"lookupCount")}),n_=new T({tag:new nt(4),feature:new N(d,cb,{type:"parent"})}),fb=new S(n_,d),o_=new T({markAttachmentType:oe,flags:new Pi(oe,["rightToLeft","ignoreBaseGlyphs","ignoreLigatures","ignoreMarks","useMarkFilteringSet"])});function cu(e){let t=new T({lookupType:d,flags:o_,subTableCount:d,subTables:new S(new N(d,e),"subTableCount"),markFilteringSet:new iu(d,i=>i.flags.flags.useMarkFilteringSet)});return new lt(new N(d,t),d)}var u_=new T({start:d,end:d,startCoverageIndex:d}),ot=new Ye(d,{1:{glyphCount:d,glyphs:new S(d,"glyphCount")},2:{rangeCount:d,rangeRecords:new S(u_,"rangeCount")}}),l_=new T({start:d,end:d,class:d}),za=new Ye(d,{1:{startGlyph:d,glyphCount:d,classValueArray:new S(d,"glyphCount")},2:{classRangeCount:d,classRangeRecord:new S(l_,"classRangeCount")}}),Pa=new T({a:d,b:d,deltaFormat:d}),Ws=new T({sequenceIndex:d,lookupListIndex:d}),c_=new T({glyphCount:d,lookupCount:d,input:new S(d,e=>e.glyphCount-1),lookupRecords:new S(Ws,"lookupCount")}),f_=new S(new N(d,c_),d),d_=new T({glyphCount:d,lookupCount:d,classes:new S(d,e=>e.glyphCount-1),lookupRecords:new S(Ws,"lookupCount")}),h_=new S(new N(d,d_),d),db=new Ye(d,{1:{coverage:new N(d,ot),ruleSetCount:d,ruleSets:new S(new N(d,f_),"ruleSetCount")},2:{coverage:new N(d,ot),classDef:new N(d,za),classSetCnt:d,classSet:new S(new N(d,h_),"classSetCnt")},3:{glyphCount:d,lookupCount:d,coverages:new S(new N(d,ot),"glyphCount"),lookupRecords:new S(Ws,"lookupCount")}}),g_=new T({backtrackGlyphCount:d,backtrack:new S(d,"backtrackGlyphCount"),inputGlyphCount:d,input:new S(d,e=>e.inputGlyphCount-1),lookaheadGlyphCount:d,lookahead:new S(d,"lookaheadGlyphCount"),lookupCount:d,lookupRecords:new S(Ws,"lookupCount")}),hb=new S(new N(d,g_),d),gb=new Ye(d,{1:{coverage:new N(d,ot),chainCount:d,chainRuleSets:new S(new N(d,hb),"chainCount")},2:{coverage:new N(d,ot),backtrackClassDef:new N(d,za),inputClassDef:new N(d,za),lookaheadClassDef:new N(d,za),chainCount:d,chainClassSet:new S(new N(d,hb),"chainCount")},3:{backtrackGlyphCount:d,backtrackCoverage:new S(new N(d,ot),"backtrackGlyphCount"),inputGlyphCount:d,inputCoverage:new S(new N(d,ot),"inputGlyphCount"),lookaheadGlyphCount:d,lookaheadCoverage:new S(new N(d,ot),"lookaheadGlyphCount"),lookupCount:d,lookupRecords:new S(Ws,"lookupCount")}}),Ys=new nr(16,"BE",14),p_=new T({startCoord:Ys,peakCoord:Ys,endCoord:Ys}),m_=new T({axisCount:d,regionCount:d,variationRegions:new S(new S(p_,"axisCount"),"regionCount")}),y_=new T({shortDeltas:new S(K,e=>e.parent.shortDeltaCount),regionDeltas:new S(Mt,e=>e.parent.regionIndexCount-e.parent.shortDeltaCount),deltas:e=>e.shortDeltas.concat(e.regionDeltas)}),b_=new T({itemCount:d,shortDeltaCount:d,regionIndexCount:d,regionIndexes:new S(d,"regionIndexCount"),deltaSets:new S(y_,"itemCount")}),fu=new T({format:d,variationRegionList:new N(B,m_),variationDataCount:d,itemVariationData:new S(new N(B,b_),"variationDataCount")}),v_=new Ye(d,{1:{axisIndex:d,axisIndex:d,filterRangeMinValue:Ys,filterRangeMaxValue:Ys}}),w_=new T({conditionCount:d,conditionTable:new S(new N(B,v_),"conditionCount")}),C_=new T({featureIndex:d,alternateFeatureTable:new N(B,cb,{type:"parent"})}),x_=new T({version:Nt,substitutionCount:d,substitutions:new S(C_,"substitutionCount")}),E_=new T({conditionSet:new N(B,w_,{type:"parent"}),featureTableSubstitution:new N(B,x_,{type:"parent"})}),pb=new T({majorVersion:d,minorVersion:d,featureVariationRecordCount:B,featureVariationRecords:new S(E_,"featureVariationRecordCount")}),mb=class{decode(e,t,i){return this.predefinedOps[i[0]]?this.predefinedOps[i[0]]:this.type.decode(e,t,i)}size(e,t){return this.type.size(e,t)}encode(e,t,i){let r=this.predefinedOps.indexOf(t);return r!==-1?r:this.type.encode(e,t,i)}constructor(e,t){this.predefinedOps=e,this.type=t}},A_=class extends rt{decode(e){return oe.decode(e)&127}constructor(){super("UInt8")}},yb=new T({first:d,nLeft:oe}),k_=new T({first:d,nLeft:d}),D_=new Ye(new A_,{0:{nCodes:oe,codes:new S(oe,"nCodes")},1:{nRanges:oe,ranges:new S(yb,"nRanges")}}),__=new mb([nb,QD],new Ti(D_,{lazy:!0})),bb=class extends S{decode(e,t){let i=Gi(this.length,e,t),r=0,a=[];for(;r<i;){let s=this.type.decode(e,t);s.offset=r,r+=s.nLeft+1,a.push(s)}return a}},S_=new Ye(oe,{0:{glyphs:new S(d,e=>e.parent.CharStrings.length-1)},1:{ranges:new bb(yb,e=>e.parent.CharStrings.length-1)},2:{ranges:new bb(k_,e=>e.parent.CharStrings.length-1)}}),N_=new mb([ob,e_,t_],new Ti(S_,{lazy:!0})),B_=new T({first:d,fd:oe}),F_=new T({first:B,fd:d}),vb=new Ye(oe,{0:{fds:new S(oe,e=>e.parent.CharStrings.length)},3:{nRanges:d,ranges:new S(B_,"nRanges"),sentinel:d},4:{nRanges:B,ranges:new S(F_,"nRanges"),sentinel:B}}),Kc=new Ti(Yc),wb=class{decode(e,t,i){return t.length=i[0],Kc.decode(e,t,[i[1]])}size(e,t){return[Yc.size(e,t,!1),Kc.size(e,t)[0]]}encode(e,t,i){return[Yc.size(t,i,!1),Kc.encode(e,t,i)[0]]}},Cb=new uu([[18,"Private",new wb,null],[[12,38],"FontName","sid",null],[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[[12,5],"PaintType","number",0]]),I_=new uu([[[12,30],"ROS",["sid","sid","number"],null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","boolean",!1],[[12,2],"ItalicAngle","number",0],[[12,3],"UnderlinePosition","number",-100],[[12,4],"UnderlineThickness","number",50],[[12,5],"PaintType","number",0],[[12,6],"CharstringType","number",2],[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[13,"UniqueID","number",null],[5,"FontBBox","array",[0,0,0,0]],[[12,8],"StrokeWidth","number",0],[14,"XUID","array",null],[15,"charset",N_,ob],[16,"Encoding",__,nb],[17,"CharStrings",new Ti(new Yi),null],[18,"Private",new wb,null],[[12,20],"SyntheticBase","number",null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","number",0],[[12,32],"CIDFontRevision","number",0],[[12,33],"CIDFontType","number",0],[[12,34],"CIDCount","number",8720],[[12,35],"UIDBase","number",null],[[12,37],"FDSelect",new Ti(vb),null],[[12,36],"FDArray",new Ti(new Yi(Cb)),null],[[12,38],"FontName","sid",null]]),V_=new T({length:d,itemVariationStore:fu}),z_=new uu([[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[17,"CharStrings",new Ti(new Yi),null],[[12,37],"FDSelect",new Ti(vb),null],[[12,36],"FDArray",new Ti(new Yi(Cb)),null],[24,"vstore",new Ti(V_),null],[25,"maxstack","number",193]]),P_=new Ye(nD,{1:{hdrSize:oe,offSize:oe,nameIndex:new Yi(new nt("length")),topDictIndex:new Yi(I_),stringIndex:new Yi(new nt("length")),globalSubrIndex:new Yi},2:{hdrSize:oe,length:d,topDict:z_,globalSubrIndex:new Yi}}),xb=P_,T_=class k3{static decode(t){return new k3(t)}decode(){this.stream.pos;let t=xb.decode(this.stream);for(let i in t){let r=t[i];this[i]=r}if(this.version<2){if(this.topDictIndex.length!==1)throw new Error("Only a single font is allowed in CFF");this.topDict=this.topDictIndex[0]}return this.isCIDFont=this.topDict.ROS!=null,this}string(t){return this.version>=2?null:t<lu.length?lu[t]:this.stringIndex[t-lu.length]}get postscriptName(){return this.version<2?this.nameIndex[0]:null}get fullName(){return this.string(this.topDict.FullName)}get familyName(){return this.string(this.topDict.FamilyName)}getCharString(t){return this.stream.pos=this.topDict.CharStrings[t].offset,this.stream.readBuffer(this.topDict.CharStrings[t].length)}getGlyphName(t){if(this.version>=2||this.isCIDFont)return null;let{charset:i}=this.topDict;if(Array.isArray(i))return i[t];if(t===0)return".notdef";switch(t-=1,i.version){case 0:return this.string(i.glyphs[t]);case 1:case 2:for(let r=0;r<i.ranges.length;r++){let a=i.ranges[r];if(a.offset<=t&&t<=a.offset+a.nLeft)return this.string(a.first+(t-a.offset))}break}return null}fdForGlyph(t){if(!this.topDict.FDSelect)return null;switch(this.topDict.FDSelect.version){case 0:return this.topDict.FDSelect.fds[t];case 3:case 4:let{ranges:i}=this.topDict.FDSelect,r=0,a=i.length-1;for(;r<=a;){let s=r+a>>1;if(t<i[s].first)a=s-1;else if(s<a&&t>=i[s+1].first)r=s+1;else return i[s].fd}default:throw new Error(`Unknown FDSelect version: ${this.topDict.FDSelect.version}`)}}privateDictForGlyph(t){if(this.topDict.FDSelect){let i=this.fdForGlyph(t);return this.topDict.FDArray[i]?this.topDict.FDArray[i].Private:null}return this.version<2?this.topDict.Private:this.topDict.FDArray[0].Private}constructor(t){this.stream=t,this.decode()}},Eb=T_,O_=new T({glyphIndex:d,vertOriginY:K}),R_=new T({majorVersion:d,minorVersion:d,defaultVertOriginY:K,numVertOriginYMetrics:d,metrics:new S(O_,"numVertOriginYMetrics")}),$r=new T({height:oe,width:oe,horiBearingX:Mt,horiBearingY:Mt,horiAdvance:oe,vertBearingX:Mt,vertBearingY:Mt,vertAdvance:oe}),du=new T({height:oe,width:oe,bearingX:Mt,bearingY:Mt,advance:oe}),Ab=new T({glyph:d,xOffset:Mt,yOffset:Mt}),kb=class{},Xc=class{};new Ye("version",{1:{metrics:du,data:kb},2:{metrics:du,data:Xc},5:{data:Xc},6:{metrics:$r,data:kb},7:{metrics:$r,data:Xc},8:{metrics:du,pad:new yt(oe),numComponents:d,components:new S(Ab,"numComponents")},9:{metrics:$r,pad:new yt(oe),numComponents:d,components:new S(Ab,"numComponents")},17:{metrics:du,dataLen:B,data:new Wi("dataLen")},18:{metrics:$r,dataLen:B,data:new Wi("dataLen")},19:{dataLen:B,data:new Wi("dataLen")}});var Db=new T({ascender:Mt,descender:Mt,widthMax:oe,caretSlopeNumerator:Mt,caretSlopeDenominator:Mt,caretOffset:Mt,minOriginSB:Mt,minAdvanceSB:Mt,maxBeforeBL:Mt,minAfterBL:Mt,pad:new yt(Mt,2)}),M_=new T({glyphCode:d,offset:d}),Z_=new Ye(d,{header:{imageFormat:d,imageDataOffset:B},1:{offsetArray:new S(B,e=>e.parent.lastGlyphIndex-e.parent.firstGlyphIndex+1)},2:{imageSize:B,bigMetrics:$r},3:{offsetArray:new S(d,e=>e.parent.lastGlyphIndex-e.parent.firstGlyphIndex+1)},4:{numGlyphs:B,glyphArray:new S(M_,e=>e.numGlyphs+1)},5:{imageSize:B,bigMetrics:$r,numGlyphs:B,glyphCodeArray:new S(d,"numGlyphs")}}),L_=new T({firstGlyphIndex:d,lastGlyphIndex:d,subtable:new N(B,Z_)}),$_=new T({indexSubTableArray:new N(B,new S(L_,1),{type:"parent"}),indexTablesSize:B,numberOfIndexSubTables:B,colorRef:B,hori:Db,vert:Db,startGlyphIndex:d,endGlyphIndex:d,ppemX:oe,ppemY:oe,bitDepth:oe,flags:new Pi(oe,["horizontal","vertical"])}),U_=new T({version:B,numSizes:B,sizes:new S($_,"numSizes")}),j_=new T({ppem:d,resolution:d,imageOffsets:new S(new N(B,"void"),e=>e.parent.parent.maxp.numGlyphs+1)}),G_=new T({version:d,flags:new Pi(d,["renderOutlines"]),numImgTables:B,imageTables:new S(new N(B,j_),"numImgTables")}),W_=new T({gid:d,paletteIndex:d}),Y_=new T({gid:d,firstLayerIndex:d,numLayers:d}),K_=new T({version:d,numBaseGlyphRecords:d,baseGlyphRecord:new N(B,new S(Y_,"numBaseGlyphRecords")),layerRecords:new N(B,new S(W_,"numLayerRecords"),{lazy:!0}),numLayerRecords:d}),X_=new T({blue:oe,green:oe,red:oe,alpha:oe}),H_=new Ye(d,{header:{numPaletteEntries:d,numPalettes:d,numColorRecords:d,colorRecords:new N(B,new S(X_,"numColorRecords")),colorRecordIndices:new S(d,"numPalettes")},0:{},1:{offsetPaletteTypeArray:new N(B,new S(B,"numPalettes")),offsetPaletteLabelArray:new N(B,new S(d,"numPalettes")),offsetPaletteEntryLabelArray:new N(B,new S(d,"numPaletteEntries"))}}),Ks=new Ye(d,{1:{coordinate:K},2:{coordinate:K,referenceGlyph:d,baseCoordPoint:d},3:{coordinate:K,deviceTable:new N(d,Pa)}}),J_=new T({defaultIndex:d,baseCoordCount:d,baseCoords:new S(new N(d,Ks),"baseCoordCount")}),q_=new T({tag:new nt(4),minCoord:new N(d,Ks,{type:"parent"}),maxCoord:new N(d,Ks,{type:"parent"})}),_b=new T({minCoord:new N(d,Ks),maxCoord:new N(d,Ks),featMinMaxCount:d,featMinMaxRecords:new S(q_,"featMinMaxCount")}),Q_=new T({tag:new nt(4),minMax:new N(d,_b,{type:"parent"})}),eS=new T({baseValues:new N(d,J_),defaultMinMax:new N(d,_b),baseLangSysCount:d,baseLangSysRecords:new S(Q_,"baseLangSysCount")}),tS=new T({tag:new nt(4),script:new N(d,eS,{type:"parent"})}),iS=new S(tS,d),aS=new S(new nt(4),d),Sb=new T({baseTagList:new N(d,aS),baseScriptList:new N(d,iS)}),rS=new Ye(B,{header:{horizAxis:new N(d,Sb),vertAxis:new N(d,Sb)},65536:{},65537:{itemVariationStore:new N(B,fu)}}),sS=new S(d,d),nS=new T({coverage:new N(d,ot),glyphCount:d,attachPoints:new S(new N(d,sS),"glyphCount")}),oS=new Ye(d,{1:{coordinate:K},2:{caretValuePoint:d},3:{coordinate:K,deviceTable:new N(d,Pa)}}),uS=new S(new N(d,oS),d),lS=new T({coverage:new N(d,ot),ligGlyphCount:d,ligGlyphs:new S(new N(d,uS),"ligGlyphCount")}),Nb=new T({markSetTableFormat:d,markSetCount:d,coverage:new S(new N(B,ot),"markSetCount")}),cS=new Ye(B,{header:{glyphClassDef:new N(d,za),attachList:new N(d,nS),ligCaretList:new N(d,lS),markAttachClassDef:new N(d,za)},65536:{},65538:{markGlyphSetsDef:new N(d,Nb)},65539:{markGlyphSetsDef:new N(d,Nb),itemVariationStore:new N(B,fu)}}),Ur=new Pi(d,["xPlacement","yPlacement","xAdvance","yAdvance","xPlaDevice","yPlaDevice","xAdvDevice","yAdvDevice"]),fS={xPlacement:K,yPlacement:K,xAdvance:K,yAdvance:K,xPlaDevice:new N(d,Pa,{type:"global",relativeTo:e=>e.rel}),yPlaDevice:new N(d,Pa,{type:"global",relativeTo:e=>e.rel}),xAdvDevice:new N(d,Pa,{type:"global",relativeTo:e=>e.rel}),yAdvDevice:new N(d,Pa,{type:"global",relativeTo:e=>e.rel})},jr=class{buildStruct(e){let t=e;for(;!t[this.key]&&t.parent;)t=t.parent;if(!t[this.key])return;let i={};i.rel=()=>t._startOffset;let r=t[this.key];for(let a in r)r[a]&&(i[a]=fS[a]);return new T(i)}size(e,t){return this.buildStruct(t).size(e,t)}decode(e,t){let i=this.buildStruct(t).decode(e,t);return delete i.rel,i}constructor(e="valueFormat"){this.key=e}},dS=new T({secondGlyph:d,value1:new jr("valueFormat1"),value2:new jr("valueFormat2")}),hS=new S(dS,d),gS=new T({value1:new jr("valueFormat1"),value2:new jr("valueFormat2")}),Xs=new Ye(d,{1:{xCoordinate:K,yCoordinate:K},2:{xCoordinate:K,yCoordinate:K,anchorPoint:d},3:{xCoordinate:K,yCoordinate:K,xDeviceTable:new N(d,Pa),yDeviceTable:new N(d,Pa)}}),pS=new T({entryAnchor:new N(d,Xs,{type:"parent"}),exitAnchor:new N(d,Xs,{type:"parent"})}),mS=new T({class:d,markAnchor:new N(d,Xs,{type:"parent"})}),Hc=new S(mS,d),yS=new S(new N(d,Xs),e=>e.parent.classCount),Bb=new S(yS,d),bS=new S(new N(d,Xs),e=>e.parent.parent.classCount),vS=new S(bS,d),wS=new S(new N(d,vS),d),Hs=new Ye("lookupType",{1:new Ye(d,{1:{coverage:new N(d,ot),valueFormat:Ur,value:new jr},2:{coverage:new N(d,ot),valueFormat:Ur,valueCount:d,values:new lt(new jr,"valueCount")}}),2:new Ye(d,{1:{coverage:new N(d,ot),valueFormat1:Ur,valueFormat2:Ur,pairSetCount:d,pairSets:new lt(new N(d,hS),"pairSetCount")},2:{coverage:new N(d,ot),valueFormat1:Ur,valueFormat2:Ur,classDef1:new N(d,za),classDef2:new N(d,za),class1Count:d,class2Count:d,classRecords:new lt(new lt(gS,"class2Count"),"class1Count")}}),3:{format:d,coverage:new N(d,ot),entryExitCount:d,entryExitRecords:new S(pS,"entryExitCount")},4:{format:d,markCoverage:new N(d,ot),baseCoverage:new N(d,ot),classCount:d,markArray:new N(d,Hc),baseArray:new N(d,Bb)},5:{format:d,markCoverage:new N(d,ot),ligatureCoverage:new N(d,ot),classCount:d,markArray:new N(d,Hc),ligatureArray:new N(d,wS)},6:{format:d,mark1Coverage:new N(d,ot),mark2Coverage:new N(d,ot),classCount:d,mark1Array:new N(d,Hc),mark2Array:new N(d,Bb)},7:db,8:gb,9:{posFormat:d,lookupType:d,extension:new N(B,null)}});Hs.versions[9].extension.type=Hs;var CS=new Ye(B,{header:{scriptList:new N(d,lb),featureList:new N(d,fb),lookupList:new N(d,new cu(Hs))},65536:{},65537:{featureVariations:new N(B,pb)}}),Fb=new S(d,d),xS=Fb,ES=new T({glyph:d,compCount:d,components:new S(d,e=>e.compCount-1)}),AS=new S(new N(d,ES),d),Jc=new Ye("lookupType",{1:new Ye(d,{1:{coverage:new N(d,ot),deltaGlyphID:K},2:{coverage:new N(d,ot),glyphCount:d,substitute:new lt(d,"glyphCount")}}),2:{substFormat:d,coverage:new N(d,ot),count:d,sequences:new lt(new N(d,Fb),"count")},3:{substFormat:d,coverage:new N(d,ot),count:d,alternateSet:new lt(new N(d,xS),"count")},4:{substFormat:d,coverage:new N(d,ot),count:d,ligatureSets:new lt(new N(d,AS),"count")},5:db,6:gb,7:{substFormat:d,lookupType:d,extension:new N(B,null)},8:{substFormat:d,coverage:new N(d,ot),backtrackCoverage:new S(new N(d,ot),"backtrackGlyphCount"),lookaheadGlyphCount:d,lookaheadCoverage:new S(new N(d,ot),"lookaheadGlyphCount"),glyphCount:d,substitutes:new S(d,"glyphCount")}});Jc.versions[7].extension.type=Jc;var kS=new Ye(B,{header:{scriptList:new N(d,lb),featureList:new N(d,fb),lookupList:new N(d,new cu(Jc))},65536:{},65537:{featureVariations:new N(B,pb)}}),Ta=new S(d,d),DS=new T({shrinkageEnableGSUB:new N(d,Ta),shrinkageDisableGSUB:new N(d,Ta),shrinkageEnableGPOS:new N(d,Ta),shrinkageDisableGPOS:new N(d,Ta),shrinkageJstfMax:new N(d,new cu(Hs)),extensionEnableGSUB:new N(d,Ta),extensionDisableGSUB:new N(d,Ta),extensionEnableGPOS:new N(d,Ta),extensionDisableGPOS:new N(d,Ta),extensionJstfMax:new N(d,new cu(Hs))}),Ib=new S(new N(d,DS),d),_S=new T({tag:new nt(4),jstfLangSys:new N(d,Ib)}),SS=new T({extenderGlyphs:new N(d,new S(d,d)),defaultLangSys:new N(d,Ib),langSysCount:d,langSysRecords:new S(_S,"langSysCount")}),NS=new T({tag:new nt(4),script:new N(d,SS,{type:"parent"})}),BS=new T({version:B,scriptCount:d,scriptList:new S(NS,"scriptCount")}),FS=class{decode(e,t){switch(this.size(0,t)){case 1:return e.readUInt8();case 2:return e.readUInt16BE();case 3:return e.readUInt24BE();case 4:return e.readUInt32BE()}}size(e,t){return Gi(this._size,null,t)}constructor(e){this._size=e}},IS=new T({entry:new FS(e=>((e.parent.entryFormat&48)>>4)+1),outerIndex:e=>e.entry>>(e.parent.entryFormat&15)+1,innerIndex:e=>e.entry&(1<<(e.parent.entryFormat&15)+1)-1}),qc=new T({entryFormat:d,mapCount:d,mapData:new S(IS,"mapCount")}),VS=new T({majorVersion:d,minorVersion:d,itemVariationStore:new N(B,fu),advanceWidthMapping:new N(B,qc),LSBMapping:new N(B,qc),RSBMapping:new N(B,qc)}),zS=new T({format:B,length:B,offset:B}),PS=new T({reserved:new yt(d,2),cbSignature:B,signature:new Wi("cbSignature")}),TS=new T({ulVersion:B,usNumSigs:d,usFlag:d,signatures:new S(zS,"usNumSigs"),signatureBlocks:new S(PS,"usNumSigs")}),OS=new T({rangeMaxPPEM:d,rangeGaspBehavior:new Pi(d,["grayscale","gridfit","symmetricSmoothing","symmetricGridfit"])}),RS=new T({version:d,numRanges:d,gaspRanges:new S(OS,"numRanges")}),MS=new T({pixelSize:oe,maximumWidth:oe,widths:new S(oe,e=>e.parent.parent.maxp.numGlyphs)}),ZS=new T({version:d,numRecords:K,sizeDeviceRecord:sr,records:new S(MS,"numRecords")}),LS=new T({left:d,right:d,value:K}),Vb=new T({firstGlyph:d,nGlyphs:d,offsets:new S(d,"nGlyphs"),max:e=>e.offsets.length&&Math.max.apply(Math,e.offsets)}),$S=new T({off:e=>e._startOffset-e.parent.parent._startOffset,len:e=>((e.parent.leftTable.max-e.off)/e.parent.rowWidth+1)*(e.parent.rowWidth/2),values:new lt(K,"len")}),zb=new Ye("format",{0:{nPairs:d,searchRange:d,entrySelector:d,rangeShift:d,pairs:new S(LS,"nPairs")},2:{rowWidth:d,leftTable:new N(d,Vb,{type:"parent"}),rightTable:new N(d,Vb,{type:"parent"}),array:new N(d,$S,{type:"parent"})},3:{glyphCount:d,kernValueCount:oe,leftClassCount:oe,rightClassCount:oe,flags:oe,kernValue:new S(K,"kernValueCount"),leftClass:new S(oe,"glyphCount"),rightClass:new S(oe,"glyphCount"),kernIndex:new S(oe,e=>e.leftClassCount*e.rightClassCount)}}),Pb=new Ye("version",{0:{subVersion:d,length:d,format:oe,coverage:new Pi(oe,["horizontal","minimum","crossStream","override"]),subtable:zb,padding:new yt(oe,e=>e.length-e._currentOffset)},1:{length:B,coverage:new Pi(oe,[null,null,null,null,null,"variation","crossStream","vertical"]),format:oe,tupleIndex:d,subtable:zb,padding:new yt(oe,e=>e.length-e._currentOffset)}}),US=new Ye(d,{0:{nTables:d,tables:new S(Pb,"nTables")},1:{reserved:new yt(d),nTables:B,tables:new S(Pb,"nTables")}}),jS=new T({version:d,numGlyphs:d,yPels:new S(oe,"numGlyphs")}),GS=new T({version:d,fontNumber:B,pitch:d,xHeight:d,style:d,typeFamily:d,capHeight:d,symbolSet:d,typeface:new nt(16),characterComplement:new nt(8),fileName:new nt(6),strokeWeight:new nt(1),widthType:new nt(1),serifStyle:oe,reserved:new yt(oe)}),WS=new T({bCharSet:oe,xRatio:oe,yStartRatio:oe,yEndRatio:oe}),YS=new T({yPelHeight:d,yMax:K,yMin:K}),KS=new T({recs:d,startsz:oe,endsz:oe,entries:new S(YS,"recs")}),XS=new T({version:d,numRecs:d,numRatios:d,ratioRanges:new S(WS,"numRatios"),offsets:new S(d,"numRatios"),groups:new S(KS,"numRecs")}),HS=new T({version:d,ascent:K,descent:K,lineGap:K,advanceHeightMax:K,minTopSideBearing:K,minBottomSideBearing:K,yMaxExtent:K,caretSlopeRise:K,caretSlopeRun:K,caretOffset:K,reserved:new yt(K,4),metricDataFormat:K,numberOfMetrics:d}),JS=new T({advance:d,bearing:K}),qS=new T({metrics:new lt(JS,e=>e.parent.vhea.numberOfMetrics),bearings:new lt(K,e=>e.parent.maxp.numGlyphs-e.parent.vhea.numberOfMetrics)}),Tb=new nr(16,"BE",14),QS=new T({fromCoord:Tb,toCoord:Tb}),eN=new T({pairCount:d,correspondence:new S(QS,"pairCount")}),tN=new T({version:Nt,axisCount:B,segment:new S(eN,"axisCount")}),iN=class{getItem(e){if(this._items[e]==null){let t=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.parent)*e,this._items[e]=this.type.decode(this.stream,this.parent),this.stream.pos=t}return this._items[e]}inspect(){return`[UnboundedArray ${this.type.constructor.name}]`}constructor(e,t,i){this.type=e,this.stream=t,this.parent=i,this.base=this.stream.pos,this._items=[]}},Ki=class extends S{decode(e,t){return new iN(this.type,e,t)}constructor(e){super(e,0)}},Oa=function(e=d){class t{decode(o,u){return u=u.parent.parent,this.type.decode(o,u)}size(o,u){return u=u.parent.parent,this.type.size(o,u)}encode(o,u,l){return l=l.parent.parent,this.type.encode(o,u,l)}constructor(o){this.type=o}}e=new t(e);let i=new T({unitSize:d,nUnits:d,searchRange:d,entrySelector:d,rangeShift:d}),r=new T({lastGlyph:d,firstGlyph:d,value:e}),a=new T({lastGlyph:d,firstGlyph:d,values:new N(d,new S(e,n=>n.lastGlyph-n.firstGlyph+1),{type:"parent"})}),s=new T({glyph:d,value:e});return new Ye(d,{0:{values:new Ki(e)},2:{binarySearchHeader:i,segments:new S(r,n=>n.binarySearchHeader.nUnits)},4:{binarySearchHeader:i,segments:new S(a,n=>n.binarySearchHeader.nUnits)},6:{binarySearchHeader:i,segments:new S(s,n=>n.binarySearchHeader.nUnits)},8:{firstGlyph:d,count:d,values:new S(e,"count")}})};function hu(e={},t=d){let i=Object.assign({newState:d,flags:d},e),r=new T(i),a=new Ki(new S(d,n=>n.nClasses));return new T({nClasses:B,classTable:new N(B,new Oa(t)),stateArray:new N(B,a),entryTable:new N(B,new Ki(r))})}function aN(e={},t=d){let i=new T({version(){return 8},firstGlyph:d,values:new S(oe,d)}),r=Object.assign({newStateOffset:d,newState:o=>(o.newStateOffset-(o.parent.stateArray.base-o.parent._startOffset))/o.parent.nClasses,flags:d},e),a=new T(r),s=new Ki(new S(oe,o=>o.nClasses));return new T({nClasses:d,classTable:new N(d,i),stateArray:new N(d,s),entryTable:new N(d,new Ki(a))})}var rN=new Ye("format",{0:{deltas:new S(K,32)},1:{deltas:new S(K,32),mappingData:new Oa(d)},2:{standardGlyph:d,controlPoints:new S(d,32)},3:{standardGlyph:d,controlPoints:new S(d,32),mappingData:new Oa(d)}}),sN=new T({version:Nt,format:d,defaultBaseline:d,subtable:rN}),nN=new T({setting:d,nameIndex:K,name:e=>e.parent.parent.parent.name.records.fontFeatures[e.nameIndex]}),oN=new T({feature:d,nSettings:d,settingTable:new N(B,new S(nN,"nSettings"),{type:"parent"}),featureFlags:new Pi(oe,[null,null,null,null,null,null,"hasDefault","exclusive"]),defaultSetting:oe,nameIndex:K,name:e=>e.parent.parent.name.records.fontFeatures[e.nameIndex]}),uN=new T({version:Nt,featureNameCount:d,reserved1:new yt(d),reserved2:new yt(B),featureNames:new S(oN,"featureNameCount")}),lN=new T({axisTag:new nt(4),minValue:Nt,defaultValue:Nt,maxValue:Nt,flags:d,nameID:d,name:e=>e.parent.parent.name.records.fontFeatures[e.nameID]}),cN=new T({nameID:d,name:e=>e.parent.parent.name.records.fontFeatures[e.nameID],flags:d,coord:new S(Nt,e=>e.parent.axisCount),postscriptNameID:new iu(d,e=>e.parent.instanceSize-e._currentOffset>0)}),fN=new T({version:Nt,offsetToData:d,countSizePairs:d,axisCount:d,axisSize:d,instanceCount:d,instanceSize:d,axis:new S(lN,"axisCount"),instance:new S(cN,"instanceCount")}),dN=new nr(16,"BE",14),hN=class{static decode(e,t){return t.flags?e.readUInt32BE():e.readUInt16BE()*2}},gN=new T({version:d,reserved:new yt(d),axisCount:d,globalCoordCount:d,globalCoords:new N(B,new S(new S(dN,"axisCount"),"globalCoordCount")),glyphCount:d,flags:d,offsetToData:B,offsets:new S(new N(hN,"void",{relativeTo:e=>e.offsetToData,allowNull:!1}),e=>e.glyphCount+1)}),pN=gN,mN=new T({length:d,coverage:d,subFeatureFlags:B,stateTable:new aN}),yN=new T({justClass:B,beforeGrowLimit:Nt,beforeShrinkLimit:Nt,afterGrowLimit:Nt,afterShrinkLimit:Nt,growFlags:d,shrinkFlags:d}),bN=new S(yN,B),vN=new Ye("actionType",{0:{lowerLimit:Nt,upperLimit:Nt,order:d,glyphs:new S(d,d)},1:{addGlyph:d},2:{substThreshold:Nt,addGlyph:d,substGlyph:d},3:{},4:{variationAxis:B,minimumLimit:Nt,noStretchValue:Nt,maximumLimit:Nt},5:{flags:d,glyph:d}}),wN=new T({actionClass:d,actionType:d,actionLength:B,actionData:vN,padding:new yt(oe,e=>e.actionLength-e._currentOffset)}),CN=new S(wN,B),xN=new T({lookupTable:new Oa(new N(d,CN))}),Ob=new T({classTable:new N(d,mN,{type:"parent"}),wdcOffset:d,postCompensationTable:new N(d,xN,{type:"parent"}),widthDeltaClusters:new Oa(new N(d,bN,{type:"parent",relativeTo:e=>e.wdcOffset}))}),EN=new T({version:B,format:d,horizontal:new N(d,Ob),vertical:new N(d,Ob)}),AN={action:d},kN={markIndex:d,currentIndex:d},DN={currentInsertIndex:d,markedInsertIndex:d},_N=new T({items:new Ki(new N(B,new Oa))}),SN=new Ye("type",{0:{stateTable:new hu},1:{stateTable:new hu(kN),substitutionTable:new N(B,_N)},2:{stateTable:new hu(AN),ligatureActions:new N(B,new Ki(B)),components:new N(B,new Ki(d)),ligatureList:new N(B,new Ki(d))},4:{lookupTable:new Oa},5:{stateTable:new hu(DN),insertionActions:new N(B,new Ki(d))}}),NN=new T({length:B,coverage:Ia,type:oe,subFeatureFlags:B,table:SN,padding:new yt(oe,e=>e.length-e._currentOffset)}),BN=new T({featureType:d,featureSetting:d,enableFlags:B,disableFlags:B}),FN=new T({defaultFlags:B,chainLength:B,nFeatureEntries:B,nSubtables:B,features:new S(BN,"nFeatureEntries"),subtables:new S(NN,"nSubtables")}),IN=new T({version:d,unused:new yt(d),nChains:B,chains:new S(FN,"nChains")}),VN=new T({left:K,top:K,right:K,bottom:K}),zN=new T({version:Nt,format:d,lookupTable:new Oa(VN)}),ze={},gu=ze;ze.cmap=ID,ze.head=VD,ze.hhea=zD,ze.hmtx=TD,ze.maxp=OD,ze.name=jD,ze["OS/2"]=GD,ze.post=WD,ze.fpgm=KD,ze.loca=XD,ze.prep=HD,ze["cvt "]=YD,ze.glyf=JD,ze["CFF "]=Eb,ze.CFF2=Eb,ze.VORG=R_,ze.EBLC=U_,ze.CBLC=ze.EBLC,ze.sbix=G_,ze.COLR=K_,ze.CPAL=H_,ze.BASE=rS,ze.GDEF=cS,ze.GPOS=CS,ze.GSUB=kS,ze.JSTF=BS,ze.HVAR=VS,ze.DSIG=TS,ze.gasp=RS,ze.hdmx=ZS,ze.kern=US,ze.LTSH=jS,ze.PCLT=GS,ze.VDMX=XS,ze.vhea=HS,ze.vmtx=qS,ze.avar=tN,ze.bsln=sN,ze.feat=uN,ze.fvar=fN,ze.gvar=pN,ze.just=EN,ze.morx=IN,ze.opbd=zN;var PN=new T({tag:new nt(4),checkSum:B,offset:new N(B,"void",{type:"global"}),length:B}),Qc=new T({tag:new nt(4),numTables:d,searchRange:d,entrySelector:d,rangeShift:d,tables:new S(PN,"numTables")});Qc.process=function(){let e={};for(let t of this.tables)e[t.tag]=t;this.tables=e},Qc.preEncode=function(){if(!Array.isArray(this.tables)){let i=[];for(let r in this.tables){let a=this.tables[r];a&&i.push({tag:r,checkSum:0,offset:new Vc(gu[r],a),length:gu[r].size(a)})}this.tables=i}this.tag="true",this.numTables=this.tables.length;let e=Math.floor(Math.log(this.numTables)/Math.LN2),t=Math.pow(2,e);this.searchRange=t*16,this.entrySelector=Math.log(t)/Math.LN2,this.rangeShift=this.numTables*16-this.searchRange};var Rb=Qc;function pu(e,t){let i=0,r=e.length-1;for(;i<=r;){let a=i+r>>1,s=t(e[a]);if(s<0)r=a-1;else if(s>0)i=a+1;else return a}return-1}function Gr(e,t){let i=[];for(;e<t;)i.push(e++);return i}var mu=new TextDecoder("ascii"),Mb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Js=new Uint8Array(256);for(let e=0;e<Mb.length;e++)Js[Mb.charCodeAt(e)]=e;function ef(e){let t=e.length*.75;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let i=new Uint8Array(t),r=0;for(let a=0,s=e.length;a<s;a+=4){let n=Js[e.charCodeAt(a)],o=Js[e.charCodeAt(a+1)],u=Js[e.charCodeAt(a+2)],l=Js[e.charCodeAt(a+3)];i[r++]=n<<2|o>>4,i[r++]=(o&15)<<4|u>>2,i[r++]=(u&3)<<6|l&63}return i}var tf=class{findSubtable(e,t){for(let[i,r]of t)for(let a of e.tables)if(a.platformID===i&&a.encodingID===r)return a.table;return null}lookup(e,t){if(this.encoding)e=this.encoding.get(e)||e;else if(t){let r=this.getVariationSelector(e,t);if(r)return r}let i=this.cmap;switch(i.version){case 0:return i.codeMap.get(e)||0;case 4:{let r=0,a=i.segCount-1;for(;r<=a;){let s=r+a>>1;if(e<i.startCode.get(s))a=s-1;else if(e>i.endCode.get(s))r=s+1;else{let n=i.idRangeOffset.get(s),o;if(n===0)o=e+i.idDelta.get(s);else{let u=n/2+(e-i.startCode.get(s))-(i.segCount-s);o=i.glyphIndexArray.get(u)||0,o!==0&&(o+=i.idDelta.get(s))}return o&65535}}return 0}case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return i.glyphIndices.get(e-i.firstCode)||0;case 12:case 13:{let r=0,a=i.nGroups-1;for(;r<=a;){let s=r+a>>1,n=i.groups.get(s);if(e<n.startCharCode)a=s-1;else if(e>n.endCharCode)r=s+1;else return i.version===12?n.glyphID+(e-n.startCharCode):n.glyphID}return 0}case 14:throw new Error("TODO: cmap format 14");default:throw new Error(`Unknown cmap format ${i.version}`)}}getVariationSelector(e,t){if(!this.uvs)return 0;let i=this.uvs.varSelectors.toArray(),r=pu(i,s=>t-s.varSelector),a=i[r];return r!==-1&&a.defaultUVS&&(r=pu(a.defaultUVS,s=>e<s.startUnicodeValue?-1:e>s.startUnicodeValue+s.additionalCount?1:0)),r!==-1&&a.nonDefaultUVS&&(r=pu(a.nonDefaultUVS,s=>e-s.unicodeValue),r!==-1)?a.nonDefaultUVS[r].glyphID:0}getCharacterSet(){let e=this.cmap;switch(e.version){case 0:return Gr(0,e.codeMap.length);case 4:{let t=[],i=e.endCode.toArray();for(let r=0;r<i.length;r++){let a=i[r]+1,s=e.startCode.get(r);t.push(...Gr(s,a))}return t}case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return Gr(e.firstCode,e.firstCode+e.glyphIndices.length);case 12:case 13:{let t=[];for(let i of e.groups.toArray())t.push(...Gr(i.startCharCode,i.endCharCode+1));return t}case 14:throw new Error("TODO: cmap format 14");default:throw new Error(`Unknown cmap format ${e.version}`)}}codePointsForGlyph(e){let t=this.cmap;switch(t.version){case 0:{let r=[];for(let a=0;a<256;a++)t.codeMap.get(a)===e&&r.push(a);return r}case 4:{let r=[];for(let a=0;a<t.segCount;a++){let s=t.endCode.get(a),n=t.startCode.get(a),o=t.idRangeOffset.get(a),u=t.idDelta.get(a);for(var i=n;i<=s;i++){let l=0;if(o===0)l=i+u;else{let c=o/2+(i-n)-(t.segCount-a);l=t.glyphIndexArray.get(c)||0,l!==0&&(l+=u)}l===e&&r.push(i)}}return r}case 12:{let r=[];for(let a of t.groups.toArray())e>=a.glyphID&&e<=a.glyphID+(a.endCharCode-a.startCharCode)&&r.push(a.startCharCode+(e-a.glyphID));return r}case 13:{let r=[];for(let a of t.groups.toArray())e===a.glyphID&&r.push(...Gr(a.startCharCode,a.endCharCode+1));return r}default:throw new Error(`Unknown cmap format ${t.version}`)}}constructor(e){if(this.encoding=null,this.cmap=this.findSubtable(e,[[3,10],[0,6],[0,4],[3,1],[0,3],[0,2],[0,1],[0,0]]),!this.cmap)for(let t of e.tables){let i=Qy(t.platformID,t.encodingID,t.table.language-1),r=ZD(i);r&&(this.cmap=t.table,this.encoding=r)}if(!this.cmap)throw new Error("Could not find a supported cmap table");this.uvs=this.findSubtable(e,[[0,5]]),this.uvs&&this.uvs.version!==14&&(this.uvs=null)}};Ut([jt],tf.prototype,"getCharacterSet",null),Ut([jt],tf.prototype,"codePointsForGlyph",null);var TN=class{process(e,t){for(let i=0;i<e.length-1;i++){let r=e[i].id,a=e[i+1].id;t[i].xAdvance+=this.getKerning(r,a)}}getKerning(e,t){let i=0;for(let r of this.kern.tables){if(r.coverage.crossStream)continue;switch(r.version){case 0:if(!r.coverage.horizontal)continue;break;case 1:if(r.coverage.vertical||r.coverage.variation)continue;break;default:throw new Error(`Unsupported kerning table version ${r.version}`)}let a=0,s=r.subtable;switch(r.format){case 0:let n=pu(s.pairs,function(c){return e-c.left||t-c.right});n>=0&&(a=s.pairs[n].value);break;case 2:let o=0,u=0;e>=s.leftTable.firstGlyph&&e<s.leftTable.firstGlyph+s.leftTable.nGlyphs?o=s.leftTable.offsets[e-s.leftTable.firstGlyph]:o=s.array.off,t>=s.rightTable.firstGlyph&&t<s.rightTable.firstGlyph+s.rightTable.nGlyphs&&(u=s.rightTable.offsets[t-s.rightTable.firstGlyph]);let l=(o+u-s.array.off)/2;a=s.array.values.get(l);break;case 3:if(e>=s.glyphCount||t>=s.glyphCount)return 0;a=s.kernValue[s.kernIndex[s.leftClass[e]*s.rightClassCount+s.rightClass[t]]];break;default:throw new Error(`Unsupported kerning sub-table format ${r.format}`)}r.coverage.override?i=a:i+=a}return i}constructor(e){this.kern=e.kern}},ON=class{positionGlyphs(e,t){let i=0,r=0;for(let a=0;a<e.length;a++)e[a].isMark?r=a:(i!==r&&this.positionCluster(e,t,i,r),i=r=a);return i!==r&&this.positionCluster(e,t,i,r),t}positionCluster(e,t,i,r){let a=e[i],s=a.cbox.copy();a.codePoints.length>1&&(s.minX+=(a.codePoints.length-1)*s.width/a.codePoints.length);let n=-t[i].xAdvance,o=0,u=this.font.unitsPerEm/16;for(let l=i+1;l<=r;l++){let c=e[l],f=c.cbox,h=t[l],g=this.getCombiningClass(c.codePoints[0]);if(g!=="Not_Reordered"){switch(h.xOffset=h.yOffset=0,g){case"Double_Above":case"Double_Below":h.xOffset+=s.minX-f.width/2-f.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":h.xOffset+=s.minX-f.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":h.xOffset+=s.maxX-f.width-f.minX;break;default:h.xOffset+=s.minX+(s.width-f.width)/2-f.minX}switch(g){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":(g==="Attached_Below_Left"||g==="Attached_Below")&&(s.minY+=u),h.yOffset=-s.minY-f.maxY,s.minY+=f.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":(g==="Attached_Above"||g==="Attached_Above_Right")&&(s.maxY+=u),h.yOffset=s.maxY-f.minY,s.maxY+=f.height;break}h.xAdvance=h.yAdvance=0,h.xOffset+=n,h.yOffset+=o}else n-=h.xAdvance,o-=h.yAdvance}}getCombiningClass(e){let t=vD(e);if((e&-256)===3584){if(t==="Not_Reordered")switch(e){case 3633:case 3636:case 3637:case 3638:case 3639:case 3655:case 3660:case 3645:case 3662:return"Above_Right";case 3761:case 3764:case 3765:case 3766:case 3767:case 3771:case 3788:case 3789:return"Above";case 3772:return"Below"}else if(e===3642)return"Below_Right"}switch(t){case"CCC10":case"CCC11":case"CCC12":case"CCC13":case"CCC14":case"CCC15":case"CCC16":case"CCC17":case"CCC18":case"CCC20":case"CCC22":return"Below";case"CCC23":return"Attached_Above";case"CCC24":return"Above_Right";case"CCC25":case"CCC19":return"Above_Left";case"CCC26":return"Above";case"CCC21":break;case"CCC27":case"CCC28":case"CCC30":case"CCC31":case"CCC33":case"CCC34":case"CCC35":case"CCC36":return"Above";case"CCC29":case"CCC32":return"Below";case"CCC103":return"Below_Right";case"CCC107":return"Above_Right";case"CCC118":return"Below";case"CCC122":return"Above";case"CCC129":case"CCC132":return"Below";case"CCC130":return"Above"}return t}constructor(e){this.font=e}},Wr=class D3{get width(){return this.maxX-this.minX}get height(){return this.maxY-this.minY}addPoint(t,i){Math.abs(t)!==1/0&&(t<this.minX&&(this.minX=t),t>this.maxX&&(this.maxX=t)),Math.abs(i)!==1/0&&(i<this.minY&&(this.minY=i),i>this.maxY&&(this.maxY=i))}copy(){return new D3(this.minX,this.minY,this.maxX,this.maxY)}constructor(t=1/0,i=1/0,r=-1/0,a=-1/0){this.minX=t,this.minY=i,this.maxX=r,this.maxY=a}},Yr={Caucasian_Albanian:"aghb",Arabic:"arab",Imperial_Aramaic:"armi",Armenian:"armn",Avestan:"avst",Balinese:"bali",Bamum:"bamu",Bassa_Vah:"bass",Batak:"batk",Bengali:["bng2","beng"],Bopomofo:"bopo",Brahmi:"brah",Braille:"brai",Buginese:"bugi",Buhid:"buhd",Chakma:"cakm",Canadian_Aboriginal:"cans",Carian:"cari",Cham:"cham",Cherokee:"cher",Coptic:"copt",Cypriot:"cprt",Cyrillic:"cyrl",Devanagari:["dev2","deva"],Deseret:"dsrt",Duployan:"dupl",Egyptian_Hieroglyphs:"egyp",Elbasan:"elba",Ethiopic:"ethi",Georgian:"geor",Glagolitic:"glag",Gothic:"goth",Grantha:"gran",Greek:"grek",Gujarati:["gjr2","gujr"],Gurmukhi:["gur2","guru"],Hangul:"hang",Han:"hani",Hanunoo:"hano",Hebrew:"hebr",Hiragana:"hira",Pahawh_Hmong:"hmng",Katakana_Or_Hiragana:"hrkt",Old_Italic:"ital",Javanese:"java",Kayah_Li:"kali",Katakana:"kana",Kharoshthi:"khar",Khmer:"khmr",Khojki:"khoj",Kannada:["knd2","knda"],Kaithi:"kthi",Tai_Tham:"lana",Lao:"lao ",Latin:"latn",Lepcha:"lepc",Limbu:"limb",Linear_A:"lina",Linear_B:"linb",Lisu:"lisu",Lycian:"lyci",Lydian:"lydi",Mahajani:"mahj",Mandaic:"mand",Manichaean:"mani",Mende_Kikakui:"mend",Meroitic_Cursive:"merc",Meroitic_Hieroglyphs:"mero",Malayalam:["mlm2","mlym"],Modi:"modi",Mongolian:"mong",Mro:"mroo",Meetei_Mayek:"mtei",Myanmar:["mym2","mymr"],Old_North_Arabian:"narb",Nabataean:"nbat",Nko:"nko ",Ogham:"ogam",Ol_Chiki:"olck",Old_Turkic:"orkh",Oriya:["ory2","orya"],Osmanya:"osma",Palmyrene:"palm",Pau_Cin_Hau:"pauc",Old_Permic:"perm",Phags_Pa:"phag",Inscriptional_Pahlavi:"phli",Psalter_Pahlavi:"phlp",Phoenician:"phnx",Miao:"plrd",Inscriptional_Parthian:"prti",Rejang:"rjng",Runic:"runr",Samaritan:"samr",Old_South_Arabian:"sarb",Saurashtra:"saur",Shavian:"shaw",Sharada:"shrd",Siddham:"sidd",Khudawadi:"sind",Sinhala:"sinh",Sora_Sompeng:"sora",Sundanese:"sund",Syloti_Nagri:"sylo",Syriac:"syrc",Tagbanwa:"tagb",Takri:"takr",Tai_Le:"tale",New_Tai_Lue:"talu",Tamil:["tml2","taml"],Tai_Viet:"tavt",Telugu:["tel2","telu"],Tifinagh:"tfng",Tagalog:"tglg",Thaana:"thaa",Thai:"thai",Tibetan:"tibt",Tirhuta:"tirh",Ugaritic:"ugar",Vai:"vai ",Warang_Citi:"wara",Old_Persian:"xpeo",Cuneiform:"xsux",Yi:"yi ",Inherited:"zinh",Common:"zyyy",Unknown:"zzzz"},af={};for(let e in Yr){let t=Yr[e];if(Array.isArray(t))for(let i of t)af[i]=e;else af[t]=e}function RN(e){return af[e]}function MN(e){let t=e.length,i=0;for(;i<t;){let r=e.charCodeAt(i++);if(55296<=r&&r<=56319&&i<t){let s=e.charCodeAt(i);56320<=s&&s<=57343&&(i++,r=((r&1023)<<10)+(s&1023)+65536)}let a=Ky(r);if(a!=="Common"&&a!=="Inherited"&&a!=="Unknown")return Yr[a]}return Yr.Unknown}function ZN(e){for(let t=0;t<e.length;t++){let i=e[t],r=Ky(i);if(r!=="Common"&&r!=="Inherited"&&r!=="Unknown")return Yr[r]}return Yr.Unknown}var LN={arab:!0,hebr:!0,syrc:!0,thaa:!0,cprt:!0,khar:!0,phnx:!0,"nko ":!0,lydi:!0,avst:!0,armi:!0,phli:!0,prti:!0,sarb:!0,orkh:!0,samr:!0,mand:!0,merc:!0,mero:!0,mani:!0,mend:!0,nbat:!0,narb:!0,palm:!0,phlp:!0};function Zb(e){return LN[e]?"rtl":"ltr"}var $N=class{get advanceWidth(){let e=0;for(let t of this.positions)e+=t.xAdvance;return e}get advanceHeight(){let e=0;for(let t of this.positions)e+=t.yAdvance;return e}get bbox(){let e=new Wr,t=0,i=0;for(let r=0;r<this.glyphs.length;r++){let a=this.glyphs[r],s=this.positions[r],n=a.bbox;e.addPoint(n.minX+t+s.xOffset,n.minY+i+s.yOffset),e.addPoint(n.maxX+t+s.xOffset,n.maxY+i+s.yOffset),t+=s.xAdvance,i+=s.yAdvance}return e}constructor(e,t,i,r,a){if(this.glyphs=e,this.positions=null,this.script=i,this.language=r||null,this.direction=a||Zb(i),this.features={},Array.isArray(t))for(let s of t)this.features[s]=!0;else typeof t=="object"&&(this.features=t)}},UN=class{constructor(e=0,t=0,i=0,r=0){this.xAdvance=e,this.yAdvance=t,this.xOffset=i,this.yOffset=r}},ur={allTypographicFeatures:{code:0,exclusive:!1,allTypeFeatures:0},ligatures:{code:1,exclusive:!1,requiredLigatures:0,commonLigatures:2,rareLigatures:4,rebusPictures:8,diphthongLigatures:10,squaredLigatures:12,abbrevSquaredLigatures:14,symbolLigatures:16,contextualLigatures:18,historicalLigatures:20},cursiveConnection:{code:2,exclusive:!0,unconnected:0,partiallyConnected:1,cursive:2},letterCase:{code:3,exclusive:!0},verticalSubstitution:{code:4,exclusive:!1,substituteVerticalForms:0},linguisticRearrangement:{code:5,exclusive:!1,linguisticRearrangement:0},numberSpacing:{code:6,exclusive:!0,monospacedNumbers:0,proportionalNumbers:1,thirdWidthNumbers:2,quarterWidthNumbers:3},smartSwash:{code:8,exclusive:!1,wordInitialSwashes:0,wordFinalSwashes:2,nonFinalSwashes:8},diacritics:{code:9,exclusive:!0,showDiacritics:0,hideDiacritics:1,decomposeDiacritics:2},verticalPosition:{code:10,exclusive:!0,normalPosition:0,superiors:1,inferiors:2,ordinals:3,scientificInferiors:4},fractions:{code:11,exclusive:!0,noFractions:0,verticalFractions:1,diagonalFractions:2},overlappingCharacters:{code:13,exclusive:!1,preventOverlap:0},typographicExtras:{code:14,exclusive:!1,slashedZero:4},mathematicalExtras:{code:15,exclusive:!1,mathematicalGreek:10},ornamentSets:{code:16,exclusive:!0,noOrnaments:0,dingbats:1,piCharacters:2,fleurons:3,decorativeBorders:4,internationalSymbols:5,mathSymbols:6},characterAlternatives:{code:17,exclusive:!0,noAlternates:0},designComplexity:{code:18,exclusive:!0,designLevel1:0,designLevel2:1,designLevel3:2,designLevel4:3,designLevel5:4},styleOptions:{code:19,exclusive:!0,noStyleOptions:0,displayText:1,engravedText:2,illuminatedCaps:3,titlingCaps:4,tallCaps:5},characterShape:{code:20,exclusive:!0,traditionalCharacters:0,simplifiedCharacters:1,JIS1978Characters:2,JIS1983Characters:3,JIS1990Characters:4,traditionalAltOne:5,traditionalAltTwo:6,traditionalAltThree:7,traditionalAltFour:8,traditionalAltFive:9,expertCharacters:10,JIS2004Characters:11,hojoCharacters:12,NLCCharacters:13,traditionalNamesCharacters:14},numberCase:{code:21,exclusive:!0,lowerCaseNumbers:0,upperCaseNumbers:1},textSpacing:{code:22,exclusive:!0,proportionalText:0,monospacedText:1,halfWidthText:2,thirdWidthText:3,quarterWidthText:4,altProportionalText:5,altHalfWidthText:6},transliteration:{code:23,exclusive:!0,noTransliteration:0},annotation:{code:24,exclusive:!0,noAnnotation:0,boxAnnotation:1,roundedBoxAnnotation:2,circleAnnotation:3,invertedCircleAnnotation:4,parenthesisAnnotation:5,periodAnnotation:6,romanNumeralAnnotation:7,diamondAnnotation:8,invertedBoxAnnotation:9,invertedRoundedBoxAnnotation:10},kanaSpacing:{code:25,exclusive:!0,fullWidthKana:0,proportionalKana:1},ideographicSpacing:{code:26,exclusive:!0,fullWidthIdeographs:0,proportionalIdeographs:1,halfWidthIdeographs:2},unicodeDecomposition:{code:27,exclusive:!1,canonicalComposition:0,compatibilityComposition:2,transcodingComposition:4},rubyKana:{code:28,exclusive:!1,rubyKana:2},CJKSymbolAlternatives:{code:29,exclusive:!0,noCJKSymbolAlternatives:0,CJKSymbolAltOne:1,CJKSymbolAltTwo:2,CJKSymbolAltThree:3,CJKSymbolAltFour:4,CJKSymbolAltFive:5},ideographicAlternatives:{code:30,exclusive:!0,noIdeographicAlternatives:0,ideographicAltOne:1,ideographicAltTwo:2,ideographicAltThree:3,ideographicAltFour:4,ideographicAltFive:5},CJKVerticalRomanPlacement:{code:31,exclusive:!0,CJKVerticalRomanCentered:0,CJKVerticalRomanHBaseline:1},italicCJKRoman:{code:32,exclusive:!1,CJKItalicRoman:2},caseSensitiveLayout:{code:33,exclusive:!1,caseSensitiveLayout:0,caseSensitiveSpacing:2},alternateKana:{code:34,exclusive:!1,alternateHorizKana:0,alternateVertKana:2},stylisticAlternatives:{code:35,exclusive:!1,noStylisticAlternates:0,stylisticAltOne:2,stylisticAltTwo:4,stylisticAltThree:6,stylisticAltFour:8,stylisticAltFive:10,stylisticAltSix:12,stylisticAltSeven:14,stylisticAltEight:16,stylisticAltNine:18,stylisticAltTen:20,stylisticAltEleven:22,stylisticAltTwelve:24,stylisticAltThirteen:26,stylisticAltFourteen:28,stylisticAltFifteen:30,stylisticAltSixteen:32,stylisticAltSeventeen:34,stylisticAltEighteen:36,stylisticAltNineteen:38,stylisticAltTwenty:40},contextualAlternates:{code:36,exclusive:!1,contextualAlternates:0,swashAlternates:2,contextualSwashAlternates:4},lowerCase:{code:37,exclusive:!0,defaultLowerCase:0,lowerCaseSmallCaps:1,lowerCasePetiteCaps:2},upperCase:{code:38,exclusive:!0,defaultUpperCase:0,upperCaseSmallCaps:1,upperCasePetiteCaps:2},languageTag:{code:39,exclusive:!0},CJKRomanSpacing:{code:103,exclusive:!0,halfWidthCJKRoman:0,proportionalCJKRoman:1,defaultCJKRoman:2,fullWidthCJKRoman:3}},ne=(e,t)=>[ur[e].code,ur[e][t]],yu={rlig:ne("ligatures","requiredLigatures"),clig:ne("ligatures","contextualLigatures"),dlig:ne("ligatures","rareLigatures"),hlig:ne("ligatures","historicalLigatures"),liga:ne("ligatures","commonLigatures"),hist:ne("ligatures","historicalLigatures"),smcp:ne("lowerCase","lowerCaseSmallCaps"),pcap:ne("lowerCase","lowerCasePetiteCaps"),frac:ne("fractions","diagonalFractions"),dnom:ne("fractions","diagonalFractions"),numr:ne("fractions","diagonalFractions"),afrc:ne("fractions","verticalFractions"),case:ne("caseSensitiveLayout","caseSensitiveLayout"),ccmp:ne("unicodeDecomposition","canonicalComposition"),cpct:ne("CJKVerticalRomanPlacement","CJKVerticalRomanCentered"),valt:ne("CJKVerticalRomanPlacement","CJKVerticalRomanCentered"),swsh:ne("contextualAlternates","swashAlternates"),cswh:ne("contextualAlternates","contextualSwashAlternates"),curs:ne("cursiveConnection","cursive"),c2pc:ne("upperCase","upperCasePetiteCaps"),c2sc:ne("upperCase","upperCaseSmallCaps"),init:ne("smartSwash","wordInitialSwashes"),fin2:ne("smartSwash","wordFinalSwashes"),medi:ne("smartSwash","nonFinalSwashes"),med2:ne("smartSwash","nonFinalSwashes"),fin3:ne("smartSwash","wordFinalSwashes"),fina:ne("smartSwash","wordFinalSwashes"),pkna:ne("kanaSpacing","proportionalKana"),half:ne("textSpacing","halfWidthText"),halt:ne("textSpacing","altHalfWidthText"),hkna:ne("alternateKana","alternateHorizKana"),vkna:ne("alternateKana","alternateVertKana"),ital:ne("italicCJKRoman","CJKItalicRoman"),lnum:ne("numberCase","upperCaseNumbers"),onum:ne("numberCase","lowerCaseNumbers"),mgrk:ne("mathematicalExtras","mathematicalGreek"),calt:ne("contextualAlternates","contextualAlternates"),vrt2:ne("verticalSubstitution","substituteVerticalForms"),vert:ne("verticalSubstitution","substituteVerticalForms"),tnum:ne("numberSpacing","monospacedNumbers"),pnum:ne("numberSpacing","proportionalNumbers"),sups:ne("verticalPosition","superiors"),subs:ne("verticalPosition","inferiors"),ordn:ne("verticalPosition","ordinals"),pwid:ne("textSpacing","proportionalText"),hwid:ne("textSpacing","halfWidthText"),qwid:ne("textSpacing","quarterWidthText"),twid:ne("textSpacing","thirdWidthText"),fwid:ne("textSpacing","proportionalText"),palt:ne("textSpacing","altProportionalText"),trad:ne("characterShape","traditionalCharacters"),smpl:ne("characterShape","simplifiedCharacters"),jp78:ne("characterShape","JIS1978Characters"),jp83:ne("characterShape","JIS1983Characters"),jp90:ne("characterShape","JIS1990Characters"),jp04:ne("characterShape","JIS2004Characters"),expt:ne("characterShape","expertCharacters"),hojo:ne("characterShape","hojoCharacters"),nlck:ne("characterShape","NLCCharacters"),tnam:ne("characterShape","traditionalNamesCharacters"),ruby:ne("rubyKana","rubyKana"),titl:ne("styleOptions","titlingCaps"),zero:ne("typographicExtras","slashedZero"),ss01:ne("stylisticAlternatives","stylisticAltOne"),ss02:ne("stylisticAlternatives","stylisticAltTwo"),ss03:ne("stylisticAlternatives","stylisticAltThree"),ss04:ne("stylisticAlternatives","stylisticAltFour"),ss05:ne("stylisticAlternatives","stylisticAltFive"),ss06:ne("stylisticAlternatives","stylisticAltSix"),ss07:ne("stylisticAlternatives","stylisticAltSeven"),ss08:ne("stylisticAlternatives","stylisticAltEight"),ss09:ne("stylisticAlternatives","stylisticAltNine"),ss10:ne("stylisticAlternatives","stylisticAltTen"),ss11:ne("stylisticAlternatives","stylisticAltEleven"),ss12:ne("stylisticAlternatives","stylisticAltTwelve"),ss13:ne("stylisticAlternatives","stylisticAltThirteen"),ss14:ne("stylisticAlternatives","stylisticAltFourteen"),ss15:ne("stylisticAlternatives","stylisticAltFifteen"),ss16:ne("stylisticAlternatives","stylisticAltSixteen"),ss17:ne("stylisticAlternatives","stylisticAltSeventeen"),ss18:ne("stylisticAlternatives","stylisticAltEighteen"),ss19:ne("stylisticAlternatives","stylisticAltNineteen"),ss20:ne("stylisticAlternatives","stylisticAltTwenty")};for(let e=1;e<=99;e++)yu[`cv${`00${e}`.slice(-2)}`]=[ur.characterAlternatives.code,e];var lr={};for(let e in yu){let t=yu[e];lr[t[0]]==null&&(lr[t[0]]={}),lr[t[0]][t[1]]=e}function jN(e){let t={};for(let i in e){let r;(r=yu[i])&&(t[r[0]]==null&&(t[r[0]]={}),t[r[0]][r[1]]=e[i])}return t}function Lb(e){let[t,i]=e;if(isNaN(t))var r=ur[t]&&ur[t].code;else var r=t;if(isNaN(i))var a=ur[t]&&ur[t][i];else var a=i;return[r,a]}function GN(e){let t={};if(Array.isArray(e))for(let i=0;i<e.length;i++){let r,a=Lb(e[i]);(r=lr[a[0]]&&lr[a[0]][a[1]])&&(t[r]=!0)}else if(typeof e=="object")for(let i in e){let r=e[i];for(let a in r){let s,n=Lb([i,a]);r[a]&&(s=lr[n[0]]&&lr[n[0]][n[1]])&&(t[s]=!0)}}return Object.keys(t)}var qs=class{lookup(e){switch(this.table.version){case 0:return this.table.values.getItem(e);case 2:case 4:{let r=0,a=this.table.binarySearchHeader.nUnits-1;for(;r<=a;){var t=r+a>>1,i=this.table.segments[t];if(i.firstGlyph===65535)return null;if(e<i.firstGlyph)a=t-1;else if(e>i.lastGlyph)r=t+1;else return this.table.version===2?i.value:i.values[e-i.firstGlyph]}return null}case 6:{let r=0,a=this.table.binarySearchHeader.nUnits-1;for(;r<=a;){var t=r+a>>1,i=this.table.segments[t];if(i.glyph===65535)return null;if(e<i.glyph)a=t-1;else if(e>i.glyph)r=t+1;else return i.value}return null}case 8:return this.table.values[e-this.table.firstGlyph];default:throw new Error(`Unknown lookup table format: ${this.table.version}`)}}glyphsForValue(e){let t=[];switch(this.table.version){case 2:case 4:for(let i of this.table.segments)if(this.table.version===2&&i.value===e)t.push(...Gr(i.firstGlyph,i.lastGlyph+1));else for(let r=0;r<i.values.length;r++)i.values[r]===e&&t.push(i.firstGlyph+r);break;case 6:for(let i of this.table.segments)i.value===e&&t.push(i.glyph);break;case 8:for(let i=0;i<this.table.values.length;i++)this.table.values[i]===e&&t.push(this.table.firstGlyph+i);break;default:throw new Error(`Unknown lookup table format: ${this.table.version}`)}return t}constructor(e){this.table=e}};Ut([jt],qs.prototype,"glyphsForValue",null);var WN=0,$b=0,Ub=1,jb=2,YN=16384,KN=class{process(e,t,i){let r=WN,a=t?e.length-1:0,s=t?-1:1;for(;s===1&&a<=e.length||s===-1&&a>=-1;){let n=null,o=Ub,u=!0;a===e.length||a===-1?o=$b:(n=e[a],n.id===65535?o=jb:(o=this.lookupTable.lookup(n.id),o==null&&(o=Ub)));let c=this.stateTable.stateArray.getItem(r)[o],f=this.stateTable.entryTable.getItem(c);o!==$b&&o!==jb&&(i(n,f,a),u=!(f.flags&YN)),r=f.newState,u&&(a+=s)}return e}traverse(e,t=0,i=new Set){if(i.has(t))return;i.add(t);let{nClasses:r,stateArray:a,entryTable:s}=this.stateTable,n=a.getItem(t);for(let o=4;o<r;o++){let u=n[o],l=s.getItem(u);for(let c of this.lookupTable.glyphsForValue(o))e.enter&&e.enter(c,l),l.newState!==0&&this.traverse(e,l.newState,i),e.exit&&e.exit(c,l)}}constructor(e){this.stateTable=e,this.lookupTable=new qs(e.classTable)}},XN=32768,HN=8192,JN=15,Gb=32768,qN=32768,QN=8192,eB=2147483648,tB=1073741824,iB=1073741823,Wb=4194304,aB=2048,rB=1024,sB=992,nB=31,Yb=class{process(e,t={}){for(let r of this.morx.chains){let a=r.defaultFlags;for(let s of r.features){let n;(n=t[s.featureType])&&(n[s.featureSetting]?(a&=s.disableFlags,a|=s.enableFlags):n[s.featureSetting]===!1&&(a|=~s.disableFlags,a&=~s.enableFlags))}for(let s of r.subtables)s.subFeatureFlags&a&&this.processSubtable(s,e)}let i=e.length-1;for(;i>=0;)e[i].id===65535&&e.splice(i,1),i--;return e}processSubtable(e,t){if(this.subtable=e,this.glyphs=t,this.subtable.type===4){this.processNoncontextualSubstitutions(this.subtable,this.glyphs);return}this.ligatureStack=[],this.markedGlyph=null,this.firstGlyph=null,this.lastGlyph=null,this.markedIndex=null;let i=this.getStateMachine(e),r=this.getProcessor(),a=!!(this.subtable.coverage&Wb);return i.process(this.glyphs,a,r)}getStateMachine(e){return new KN(e.table.stateTable)}getProcessor(){switch(this.subtable.type){case 0:return this.processIndicRearragement;case 1:return this.processContextualSubstitution;case 2:return this.processLigature;case 4:return this.processNoncontextualSubstitutions;case 5:return this.processGlyphInsertion;default:throw new Error(`Invalid morx subtable type: ${this.subtable.type}`)}}processIndicRearragement(e,t,i){t.flags&XN&&(this.firstGlyph=i),t.flags&HN&&(this.lastGlyph=i),oB(this.glyphs,t.flags&JN,this.firstGlyph,this.lastGlyph)}processContextualSubstitution(e,t,i){let r=this.subtable.table.substitutionTable.items;if(t.markIndex!==65535){let s=r.getItem(t.markIndex),n=new qs(s);e=this.glyphs[this.markedGlyph];var a=n.lookup(e.id);a&&(this.glyphs[this.markedGlyph]=this.font.getGlyph(a,e.codePoints))}if(t.currentIndex!==65535){let s=r.getItem(t.currentIndex),n=new qs(s);e=this.glyphs[i];var a=n.lookup(e.id);a&&(this.glyphs[i]=this.font.getGlyph(a,e.codePoints))}t.flags&Gb&&(this.markedGlyph=i)}processLigature(e,t,i){if(t.flags&qN&&this.ligatureStack.push(i),t.flags&QN){let r=this.subtable.table.ligatureActions,a=this.subtable.table.components,s=this.subtable.table.ligatureList,n=t.action,o=!1,u=0,l=[],c=[];for(;!o;){let f=this.ligatureStack.pop();l.unshift(...this.glyphs[f].codePoints);let h=r.getItem(n++);o=!!(h&eB);let g=!!(h&tB),p=(h&iB)<<2>>2;p+=this.glyphs[f].id;let v=a.getItem(p);if(u+=v,o||g){let k=s.getItem(u);this.glyphs[f]=this.font.getGlyph(k,l),c.push(f),u=0,l=[]}else this.glyphs[f]=this.font.getGlyph(65535)}this.ligatureStack.push(...c)}}processNoncontextualSubstitutions(e,t,i){let r=new qs(e.table.lookupTable);for(i=0;i<t.length;i++){let a=t[i];if(a.id!==65535){let s=r.lookup(a.id);s&&(t[i]=this.font.getGlyph(s,a.codePoints))}}}_insertGlyphs(e,t,i,r){let a=[];for(;i--;){let s=this.subtable.table.insertionActions.getItem(t++);a.push(this.font.getGlyph(s))}r||e++,this.glyphs.splice(e,0,...a)}processGlyphInsertion(e,t,i){if(t.flags&Gb&&(this.markedIndex=i),t.markedInsertIndex!==65535){let r=(t.flags&nB)>>>5,a=!!(t.flags&rB);this._insertGlyphs(this.markedIndex,t.markedInsertIndex,r,a)}if(t.currentInsertIndex!==65535){let r=(t.flags&sB)>>>5,a=!!(t.flags&aB);this._insertGlyphs(i,t.currentInsertIndex,r,a)}}getSupportedFeatures(){let e=[];for(let t of this.morx.chains)for(let i of t.features)e.push([i.featureType,i.featureSetting]);return e}generateInputs(e){return this.inputCache||this.generateInputCache(),this.inputCache[e]||[]}generateInputCache(){this.inputCache={};for(let e of this.morx.chains){let t=e.defaultFlags;for(let i of e.subtables)i.subFeatureFlags&t&&this.generateInputsForSubtable(i)}}generateInputsForSubtable(e){if(e.type!==2)return;if(!!(e.coverage&Wb))throw new Error("Reverse subtable, not supported.");this.subtable=e,this.ligatureStack=[];let i=this.getStateMachine(e),r=this.getProcessor(),a=[],s=[];this.glyphs=[],i.traverse({enter:(n,o)=>{let u=this.glyphs;s.push({glyphs:u.slice(),ligatureStack:this.ligatureStack.slice()});let l=this.font.getGlyph(n);a.push(l),u.push(a[a.length-1]),r(u[u.length-1],o,u.length-1);let c=0,f=0;for(let h=0;h<u.length&&c<=1;h++)u[h].id!==65535&&(c++,f=u[h].id);if(c===1){let h=a.map(p=>p.id),g=this.inputCache[f];g?g.push(h):this.inputCache[f]=[h]}},exit:()=>{({glyphs:this.glyphs,ligatureStack:this.ligatureStack}=s.pop()),a.pop()}})}constructor(e){this.processIndicRearragement=this.processIndicRearragement.bind(this),this.processContextualSubstitution=this.processContextualSubstitution.bind(this),this.processLigature=this.processLigature.bind(this),this.processNoncontextualSubstitutions=this.processNoncontextualSubstitutions.bind(this),this.processGlyphInsertion=this.processGlyphInsertion.bind(this),this.font=e,this.morx=e.morx,this.inputCache=null}};Ut([jt],Yb.prototype,"getStateMachine",null);function ti(e,t,i,r=!1,a=!1){let s=e.splice(i[0]-(i[1]-1),i[1]);a&&s.reverse();let n=e.splice(t[0],t[1],...s);return r&&n.reverse(),e.splice(i[0]-(t[1]-1),0,...n),e}function oB(e,t,i,r){switch(t){case 0:return e;case 1:return ti(e,[i,1],[r,0]);case 2:return ti(e,[i,0],[r,1]);case 3:return ti(e,[i,1],[r,1]);case 4:return ti(e,[i,2],[r,0]);case 5:return ti(e,[i,2],[r,0],!0,!1);case 6:return ti(e,[i,0],[r,2]);case 7:return ti(e,[i,0],[r,2],!1,!0);case 8:return ti(e,[i,1],[r,2]);case 9:return ti(e,[i,1],[r,2],!1,!0);case 10:return ti(e,[i,2],[r,1]);case 11:return ti(e,[i,2],[r,1],!0,!1);case 12:return ti(e,[i,2],[r,2]);case 13:return ti(e,[i,2],[r,2],!0,!1);case 14:return ti(e,[i,2],[r,2],!1,!0);case 15:return ti(e,[i,2],[r,2],!0,!0);default:throw new Error(`Unknown verb: ${t}`)}}var uB=class{substitute(e){e.direction==="rtl"&&e.glyphs.reverse(),this.morxProcessor.process(e.glyphs,jN(e.features))}getAvailableFeatures(e,t){return GN(this.morxProcessor.getSupportedFeatures())}stringsForGlyph(e){let t=this.morxProcessor.generateInputs(e),i=new Set;for(let r of t)this._addStrings(r,0,i,"");return i}_addStrings(e,t,i,r){let a=this.font._cmapProcessor.codePointsForGlyph(e[t]);for(let s of a){let n=r+String.fromCodePoint(s);t<e.length-1?this._addStrings(e,t+1,i,n):i.add(n)}}constructor(e){this.font=e,this.morxProcessor=new Yb(e),this.fallbackPosition=!1}},lB=class{_addFeatures(e,t){let i=this.stages.length-1,r=this.stages[i];for(let a of e)this.allFeatures[a]==null&&(r.push(a),this.allFeatures[a]=i,t&&(this.globalFeatures[a]=!0))}add(e,t=!0){if(this.stages.length===0&&this.stages.push([]),typeof e=="string"&&(e=[e]),Array.isArray(e))this._addFeatures(e,t);else if(typeof e=="object")this._addFeatures(e.global||[],!0),this._addFeatures(e.local||[],!1);else throw new Error("Unsupported argument to ShapingPlan#add")}addStage(e,t){typeof e=="function"?this.stages.push(e,[]):(this.stages.push([]),this.add(e,t))}setFeatureOverrides(e){if(Array.isArray(e))this.add(e);else if(typeof e=="object"){for(let t in e)if(e[t])this.add(t);else if(this.allFeatures[t]!=null){let i=this.stages[this.allFeatures[t]];i.splice(i.indexOf(t),1),delete this.allFeatures[t],delete this.globalFeatures[t]}}}assignGlobalFeatures(e){for(let t of e)for(let i in this.globalFeatures)t.features[i]=!0}process(e,t,i){for(let r of this.stages)typeof r=="function"?i||r(this.font,t,this):r.length>0&&e.applyFeatures(r,t,i)}constructor(e,t,i){this.font=e,this.script=t,this.direction=i,this.stages=[],this.globalFeatures={},this.allFeatures={}}},cB=["rvrn"],fB=["ccmp","locl","rlig","mark","mkmk"],dB=["frac","numr","dnom"],hB=["calt","clig","liga","rclt","curs","kern"],gB={ltr:["ltra","ltrm"],rtl:["rtla","rtlm"]},Ra=class{static plan(e,t,i){this.planPreprocessing(e),this.planFeatures(e),this.planPostprocessing(e,i),e.assignGlobalFeatures(t),this.assignFeatures(e,t)}static planPreprocessing(e){e.add({global:[...cB,...gB[e.direction]],local:dB})}static planFeatures(e){}static planPostprocessing(e,t){e.add([...fB,...hB]),e.setFeatureOverrides(t)}static assignFeatures(e,t){for(let i=0;i<t.length;i++){let r=t[i];if(r.codePoints[0]===8260){let a=i,s=i+1;for(;a>0&&Xy(t[a-1].codePoints[0]);)t[a-1].features.numr=!0,t[a-1].features.frac=!0,a--;for(;s<t.length&&Xy(t[s].codePoints[0]);)t[s].features.dnom=!0,t[s].features.frac=!0,s++;r.features.frac=!0,i=s-1}}}};ui(Ra,"zeroMarkWidths","AFTER_GPOS");var pB=new Rc.default(ef("APABAAAAAAAAOAAAAf0BAv7tmi1MxDAUx7vtvjhAgcDgkEgEAnmXEBIMCYaEcygEiqBQ4FAkCE4ikUgMiiBJSAgSiUQSDMn9L9eSl6bddddug9t7yS/trevre+3r27pcNxZiG+yCfdCVv/9LeQxOwRm4AJegD27ALbgD9+ABPJF+z+BN/h7yDj5k/VOWX6SdmU5+wLWknggxDxaS8u0qiiX4uiz9XamQ3wzDMAzDMAzDMAzDVI/h959V/v7BMAzDMAzDMLlyNTNiMSdewVxbiA44B4/guz1qW58VYlMI0WsJ0W+N6kXw0spvPtdwhtkwnGM6uLaV4Xyzg3v3PM9DPfQ/sOg4xPWjipy31P8LTqbU304c/cLCUmWJLNB2Uz2U1KTeRKNmKHVMfbJC+/0loTZRH/W5cvEvBJPMbREkWt3FD1NcqXZBSpuE2Ad0PBehPtNrPtIEdYP+hiRt/V1jIiE69X4NT/uVZI3PUHE9bm5M7ePGdZWy951v7Nn6j8v1WWKP3mt6ttnsigx6VN7Vc0VomSSGqW2mGNP1muZPl7LfjNUaKNFtDGVf2fvE9O7VlBS5j333c5p/eeoOqcs1R/hIqDWLJ7TTlksirVT1SI7l8k4Yp+g3jafGcrU1RM6l9th80XOpnlN97bDNY4i4s61B0Si/ipa0uHMl6zqEjlFfCZm/TM8KmzQDjmuTAQ==")),Kb=["isol","fina","fin2","fin3","medi","med2","init"],rf={Non_Joining:0,Transparent:6},pt="isol",Ma="fina",sf="fin2",mB="fin3",bu="medi",vu="med2",wu="init",He=null,yB=[[[He,He,0],[He,pt,2],[He,pt,1],[He,pt,2],[He,pt,1],[He,pt,6]],[[He,He,0],[He,pt,2],[He,pt,1],[He,pt,2],[He,sf,5],[He,pt,6]],[[He,He,0],[He,pt,2],[wu,Ma,1],[wu,Ma,3],[wu,Ma,4],[wu,Ma,6]],[[He,He,0],[He,pt,2],[bu,Ma,1],[bu,Ma,3],[bu,Ma,4],[bu,Ma,6]],[[He,He,0],[He,pt,2],[vu,pt,1],[vu,pt,2],[vu,sf,5],[vu,pt,6]],[[He,He,0],[He,pt,2],[pt,pt,1],[pt,pt,2],[pt,sf,5],[pt,pt,6]],[[He,He,0],[He,pt,2],[He,pt,1],[He,pt,2],[He,mB,5],[He,pt,6]]],Za=class extends Ra{static planFeatures(e){e.add(["ccmp","locl"]);for(let t=0;t<Kb.length;t++){let i=Kb[t];e.addStage(i,!1)}e.addStage("mset")}static assignFeatures(e,t){super.assignFeatures(e,t);let i=-1,r=0,a=[];for(let n=0;n<t.length;n++){let o,u;var s=t[n];let l=bB(s.codePoints[0]);if(l===rf.Transparent){a[n]=He;continue}[u,o,r]=yB[r][l],u!==He&&i!==-1&&(a[i]=u),a[n]=o,i=n}for(let n=0;n<t.length;n++){let o;var s=t[n];(o=a[n])&&(s.features[o]=!0)}}};function bB(e){let t=pB.get(e);if(t)return t-1;let i=ru(e);return i==="Mn"||i==="Me"||i==="Cf"?rf.Transparent:rf.Non_Joining}var vB=class{reset(e={},t=0){this.options=e,this.flags=e.flags||{},this.markAttachmentType=e.markAttachmentType||0,this.index=t}get cur(){return this.glyphs[this.index]||null}shouldIgnore(e){return this.flags.ignoreMarks&&e.isMark||this.flags.ignoreBaseGlyphs&&e.isBase||this.flags.ignoreLigatures&&e.isLigature||this.markAttachmentType&&e.isMark&&e.markAttachmentType!==this.markAttachmentType}move(e){for(this.index+=e;0<=this.index&&this.index<this.glyphs.length&&this.shouldIgnore(this.glyphs[this.index]);)this.index+=e;return 0>this.index||this.index>=this.glyphs.length?null:this.glyphs[this.index]}next(){return this.move(1)}prev(){return this.move(-1)}peek(e=1){let t=this.index,i=this.increment(e);return this.index=t,i}peekIndex(e=1){let t=this.index;this.increment(e);let i=this.index;return this.index=t,i}increment(e=1){let t=e<0?-1:1;for(e=Math.abs(e);e--;)this.move(t);return this.glyphs[this.index]}constructor(e,t){this.glyphs=e,this.reset(t)}},wB=["DFLT","dflt","latn"],Cu=class{findScript(e){if(this.table.scriptList==null)return null;Array.isArray(e)||(e=[e]);for(let t of e)for(let i of this.table.scriptList)if(i.tag===t)return i;return null}selectScript(e,t,i){let r=!1,a;if(!this.script||e!==this.scriptTag){if(a=this.findScript(e),a||(a=this.findScript(wB)),!a)return this.scriptTag;this.scriptTag=a.tag,this.script=a.script,this.language=null,this.languageTag=null,r=!0}if((!i||i!==this.direction)&&(this.direction=i||Zb(e)),t&&t.length<4&&(t+=" ".repeat(4-t.length)),!t||t!==this.languageTag){this.language=null;for(let s of this.script.langSysRecords)if(s.tag===t){this.language=s.langSys,this.languageTag=s.tag;break}this.language||(this.language=this.script.defaultLangSys,this.languageTag=null),r=!0}if(r&&(this.features={},this.language))for(let s of this.language.featureIndexes){let n=this.table.featureList[s],o=this.substituteFeatureForVariations(s);this.features[n.tag]=o||n.feature}return this.scriptTag}lookupsForFeatures(e=[],t){let i=[];for(let r of e){let a=this.features[r];if(a)for(let s of a.lookupListIndexes)t&&t.indexOf(s)!==-1||i.push({feature:r,index:s,lookup:this.table.lookupList.get(s)})}return i.sort((r,a)=>r.index-a.index),i}substituteFeatureForVariations(e){if(this.variationsIndex===-1)return null;let i=this.table.featureVariations.featureVariationRecords[this.variationsIndex].featureTableSubstitution.substitutions;for(let r of i)if(r.featureIndex===e)return r.alternateFeatureTable;return null}findVariationsIndex(e){let t=this.table.featureVariations;if(!t)return-1;let i=t.featureVariationRecords;for(let r=0;r<i.length;r++){let a=i[r].conditionSet.conditionTable;if(this.variationConditionsMatch(a,e))return r}return-1}variationConditionsMatch(e,t){return e.every(i=>{let r=i.axisIndex<t.length?t[i.axisIndex]:0;return i.filterRangeMinValue<=r&&r<=i.filterRangeMaxValue})}applyFeatures(e,t,i){let r=this.lookupsForFeatures(e);this.applyLookups(r,t,i)}applyLookups(e,t,i){this.glyphs=t,this.positions=i,this.glyphIterator=new vB(t);for(let{feature:r,lookup:a}of e)for(this.currentFeature=r,this.glyphIterator.reset(a.flags);this.glyphIterator.index<t.length;){if(!(r in this.glyphIterator.cur.features)){this.glyphIterator.next();continue}for(let s of a.subTables)if(this.applyLookup(a.lookupType,s))break;this.glyphIterator.next()}}applyLookup(e,t){throw new Error("applyLookup must be implemented by subclasses")}applyLookupList(e){let t=this.glyphIterator.options,i=this.glyphIterator.index;for(let r of e){this.glyphIterator.reset(t,i),this.glyphIterator.increment(r.sequenceIndex);let a=this.table.lookupList.get(r.lookupListIndex);this.glyphIterator.reset(a.flags,this.glyphIterator.index);for(let s of a.subTables)if(this.applyLookup(a.lookupType,s))break}return this.glyphIterator.reset(t,i),!0}coverageIndex(e,t){switch(t==null&&(t=this.glyphIterator.cur.id),e.version){case 1:return e.glyphs.indexOf(t);case 2:for(let i of e.rangeRecords)if(i.start<=t&&t<=i.end)return i.startCoverageIndex+t-i.start;break}return-1}match(e,t,i,r){let a=this.glyphIterator.index,s=this.glyphIterator.increment(e),n=0;for(;n<t.length&&s&&i(t[n],s);)r&&r.push(this.glyphIterator.index),n++,s=this.glyphIterator.next();return this.glyphIterator.index=a,n<t.length?!1:r||!0}sequenceMatches(e,t){return this.match(e,t,(i,r)=>i===r.id)}sequenceMatchIndices(e,t){return this.match(e,t,(i,r)=>this.currentFeature in r.features?i===r.id:!1,[])}coverageSequenceMatches(e,t){return this.match(e,t,(i,r)=>this.coverageIndex(i,r.id)>=0)}getClassID(e,t){switch(t.version){case 1:let i=e-t.startGlyph;if(i>=0&&i<t.classValueArray.length)return t.classValueArray[i];break;case 2:for(let r of t.classRangeRecord)if(r.start<=e&&e<=r.end)return r.class;break}return 0}classSequenceMatches(e,t,i){return this.match(e,t,(r,a)=>r===this.getClassID(a.id,i))}applyContext(e){let t,i;switch(e.version){case 1:if(t=this.coverageIndex(e.coverage),t===-1)return!1;i=e.ruleSets[t];for(let r of i)if(this.sequenceMatches(1,r.input))return this.applyLookupList(r.lookupRecords);break;case 2:if(this.coverageIndex(e.coverage)===-1||(t=this.getClassID(this.glyphIterator.cur.id,e.classDef),t===-1))return!1;i=e.classSet[t];for(let r of i)if(this.classSequenceMatches(1,r.classes,e.classDef))return this.applyLookupList(r.lookupRecords);break;case 3:if(this.coverageSequenceMatches(0,e.coverages))return this.applyLookupList(e.lookupRecords);break}return!1}applyChainingContext(e){let t;switch(e.version){case 1:if(t=this.coverageIndex(e.coverage),t===-1)return!1;let i=e.chainRuleSets[t];for(let a of i)if(this.sequenceMatches(-a.backtrack.length,a.backtrack)&&this.sequenceMatches(1,a.input)&&this.sequenceMatches(1+a.input.length,a.lookahead))return this.applyLookupList(a.lookupRecords);break;case 2:if(this.coverageIndex(e.coverage)===-1)return!1;t=this.getClassID(this.glyphIterator.cur.id,e.inputClassDef);let r=e.chainClassSet[t];if(!r)return!1;for(let a of r)if(this.classSequenceMatches(-a.backtrack.length,a.backtrack,e.backtrackClassDef)&&this.classSequenceMatches(1,a.input,e.inputClassDef)&&this.classSequenceMatches(1+a.input.length,a.lookahead,e.lookaheadClassDef))return this.applyLookupList(a.lookupRecords);break;case 3:if(this.coverageSequenceMatches(-e.backtrackGlyphCount,e.backtrackCoverage)&&this.coverageSequenceMatches(0,e.inputCoverage)&&this.coverageSequenceMatches(e.inputGlyphCount,e.lookaheadCoverage))return this.applyLookupList(e.lookupRecords);break}return!1}constructor(e,t){this.font=e,this.table=t,this.script=null,this.scriptTag=null,this.language=null,this.languageTag=null,this.features={},this.lookups={},this.variationsIndex=e._variationProcessor?this.findVariationsIndex(e._variationProcessor.normalizedCoords):-1,this.selectScript(),this.glyphs=[],this.positions=[],this.ligatureID=1,this.currentFeature=null}},ua=class _3{get id(){return this._id}set id(t){this._id=t,this.substituted=!0;let i=this._font.GDEF;if(i&&i.glyphClassDef){let r=Cu.prototype.getClassID(t,i.glyphClassDef);this.isBase=r===1,this.isLigature=r===2,this.isMark=r===3,this.markAttachmentType=i.markAttachClassDef?Cu.prototype.getClassID(t,i.markAttachClassDef):0}else this.isMark=this.codePoints.length>0&&this.codePoints.every(Hy),this.isBase=!this.isMark,this.isLigature=this.codePoints.length>1,this.markAttachmentType=0}copy(){return new _3(this._font,this.id,this.codePoints,this.features)}constructor(t,i,r=[],a){if(this._font=t,this.codePoints=r,this.id=i,this.features={},Array.isArray(a))for(let s=0;s<a.length;s++){let n=a[s];this.features[n]=!0}else typeof a=="object"&&Object.assign(this.features,a);this.ligatureID=null,this.ligatureComponent=null,this.isLigated=!1,this.cursiveAttachment=null,this.markAttachment=null,this.shaperInfo=null,this.substituted=!1,this.isMultiplied=!1}},Xb=class extends Ra{static planFeatures(e){e.add(["ljmo","vjmo","tjmo"],!1)}static assignFeatures(e,t){let i=0,r=0;for(;r<t.length;){let a,n=t[r].codePoints[0],o=_u(n);switch([a,i]=RB[i][o],a){case la:e.font.hasGlyphForCodePoint(n)||(r=Qb(t,r,e.font));break;case of:r=MB(t,r,e.font);break;case uf:LB(t,r,e.font);break;case lf:r=$B(t,r,e.font);break}r++}}};ui(Xb,"zeroMarkWidths","NONE");var Kr=44032,Hb=55204,CB=Hb-Kr+1,xu=4352,Eu=4449,cr=4519,xB=19,Au=21,Qs=28,EB=xu+xB-1,AB=Eu+Au-1,kB=cr+Qs-1,Jb=9676,DB=e=>4352<=e&&e<=4447||43360<=e&&e<=43388,_B=e=>4448<=e&&e<=4519||55216<=e&&e<=55238,SB=e=>4520<=e&&e<=4607||55243<=e&&e<=55291,NB=e=>12334<=e&&e<=12335,BB=e=>Kr<=e&&e<=Hb,FB=e=>e-Kr<CB&&(e-Kr)%Qs===0,IB=e=>xu<=e&&e<=EB,VB=e=>Eu<=e&&e<=AB,zB=e=>1<=e&&e<=kB,PB=0,TB=1,ku=2,nf=3,Du=4,qb=5,OB=6;function _u(e){return DB(e)?TB:_B(e)?ku:SB(e)?nf:FB(e)?Du:BB(e)?qb:NB(e)?OB:PB}var li=0,la=1,of=2,uf=4,lf=5,RB=[[[li,0],[li,1],[li,0],[li,0],[la,2],[la,3],[lf,0]],[[li,0],[li,1],[of,2],[li,0],[la,2],[la,3],[lf,0]],[[li,0],[li,1],[li,0],[of,3],[la,2],[la,3],[uf,0]],[[li,0],[li,1],[li,0],[li,0],[la,2],[la,3],[uf,0]]];function en(e,t,i){return new ua(e,e.glyphForCodePoint(t).id,[t],i)}function Qb(e,t,i){let r=e[t],s=r.codePoints[0]-Kr,n=cr+s%Qs;s=s/Qs|0;let o=xu+s/Au|0,u=Eu+s%Au;if(!i.hasGlyphForCodePoint(o)||!i.hasGlyphForCodePoint(u)||n!==cr&&!i.hasGlyphForCodePoint(n))return t;let l=en(i,o,r.features);l.features.ljmo=!0;let c=en(i,u,r.features);c.features.vjmo=!0;let f=[l,c];if(n>cr){let h=en(i,n,r.features);h.features.tjmo=!0,f.push(h)}return e.splice(t,1,...f),t+f.length-1}function MB(e,t,i){let r=e[t],a=e[t].codePoints[0],s=_u(a),n=e[t-1].codePoints[0],o=_u(n),u,l,c,f;if(o===Du&&s===nf)u=n,f=r;else{s===ku?(l=e[t-1],c=r):(l=e[t-2],c=e[t-1],f=r);let g=l.codePoints[0],p=c.codePoints[0];IB(g)&&VB(p)&&(u=Kr+((g-xu)*Au+(p-Eu))*Qs)}let h=f&&f.codePoints[0]||cr;if(u!=null&&(h===cr||zB(h))){let g=u+(h-cr);if(i.hasGlyphForCodePoint(g)){let p=o===ku?3:2;return e.splice(t-p+1,p,en(i,g,r.features)),t-p+1}}return l&&(l.features.ljmo=!0),c&&(c.features.vjmo=!0),f&&(f.features.tjmo=!0),o===Du?(Qb(e,t-1,i),t+1):t}function ZB(e){switch(_u(e)){case Du:case qb:return 1;case ku:return 2;case nf:return 3}}function LB(e,t,i){let r=e[t],a=e[t].codePoints[0];if(i.glyphForCodePoint(a).advanceWidth===0)return;let s=e[t-1].codePoints[0],n=ZB(s);return e.splice(t,1),e.splice(t-n,0,r)}function $B(e,t,i){let r=e[t],a=e[t].codePoints[0];if(i.hasGlyphForCodePoint(Jb)){let s=en(i,Jb,r.features),n=i.glyphForCodePoint(a).advanceWidth===0?t:t+1;e.splice(n,0,s),t++}return t}var ev={};ev=JSON.parse('{"stateTable":[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,14,15,16,17],[0,0,0,18,19,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,28,29,30,31,32,33,0,34,0,0,35,36,0,0,37,0],[0,0,0,38,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,39,0,0,0,40,41,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,12,43,0,0,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,0,43,0,0,0,0],[0,0,0,45,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,50,0,0,51,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0],[0,0,0,53,54,55,56,57,58,0,59,0,0,60,61,0,0,62,0],[0,0,0,4,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,63,64,0,0,40,41,0,9,0,10,0,0,0,42,0,63,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,0,2,16,0],[0,0,0,18,65,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,0,0],[0,0,0,69,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,73,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,75,0,0,0,76,77,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,25,79,0,0,0,0],[0,0,0,18,19,20,74,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,81,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,86,0,0,87,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,88,0,0,0,0,0,0,0,0],[0,0,0,18,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,89,90,0,0,76,77,0,23,0,24,0,0,0,78,0,89,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,0,0],[0,0,0,94,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,96,0,0,0,97,98,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,35,100,0,0,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,102,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,107,0,0,108,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,109,0,0,0,0,0,0,0,0],[0,0,0,28,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,110,111,0,0,97,98,0,33,0,34,0,0,0,99,0,110,0,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,0,0],[0,0,0,0,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,0,0,115,116,117,118,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,39,0,122,0,123,123,8,9,0,10,0,0,0,42,0,39,0,0],[0,124,64,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,0],[0,39,0,0,0,121,125,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,126,126,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,47,47,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,128,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,129,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,50,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,134,0,0,0,0,0,0,0,0],[0,0,0,135,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,136,0,0,0,137,138,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,60,140,0,0,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,0,140,0,0,0,0],[0,0,0,142,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,147,0,0,148,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,149,0,0,0,0,0,0,0,0],[0,0,0,53,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,150,151,0,0,137,138,0,58,0,59,0,0,0,139,0,150,0,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,0,0],[0,0,0,155,116,156,157,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,75,3,4,5,159,160,8,161,0,162,0,11,12,163,0,75,16,0],[0,0,0,0,0,40,164,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,0,165,0,0,0,0],[0,124,64,0,0,40,164,0,9,0,10,0,0,0,42,0,124,0,0],[0,0,0,0,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,71,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,167,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,168,0,0,0,0,0,0,0,0],[0,0,0,0,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,0,79,0,0,0,0],[0,0,0,169,170,171,172,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,75,0,176,0,177,177,22,23,0,24,0,0,0,78,0,75,0,0],[0,178,90,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,0],[0,75,0,0,0,175,179,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,180,180,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,83,83,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,182,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,183,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,86,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,188,0,0,0,0,0,0,0,0],[0,0,0,189,170,190,191,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,76,193,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,0,194,0,0,0,0],[0,178,90,0,0,76,193,0,23,0,24,0,0,0,78,0,178,0,0],[0,0,0,0,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,195,196,197,198,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,96,0,202,0,203,203,32,33,0,34,0,0,0,99,0,96,0,0],[0,204,111,0,0,0,0,0,0,0,0,0,0,0,0,0,204,0,0],[0,96,0,0,0,201,205,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,206,206,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,104,104,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,208,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,209,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,107,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,214,0,0,0,0,0,0,0,0],[0,0,0,215,196,216,217,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,97,219,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,0,220,0,0,0,0],[0,204,111,0,0,97,219,0,33,0,34,0,0,0,99,0,204,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,223,0,0,0,40,224,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,119,225,0,0,0,0],[0,0,0,115,116,117,222,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,115,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,226,64,0,0,40,224,0,9,0,10,0,0,0,42,0,226,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,39,0,0,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,44,44,8,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,227,0,228,229,0,9,0,10,0,0,230,0,0,0,0,0],[0,39,0,122,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,231,231,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,232,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,131,131,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,234,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,235,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,0,0,240,241,242,243,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,136,0,247,0,248,248,57,58,0,59,0,0,0,139,0,136,0,0],[0,249,151,0,0,0,0,0,0,0,0,0,0,0,0,0,249,0,0],[0,136,0,0,0,246,250,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,251,251,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,144,144,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,253,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,254,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,147,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0],[0,0,0,260,241,261,262,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,137,264,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,0,265,0,0,0,0],[0,249,151,0,0,137,264,0,58,0,59,0,0,0,139,0,249,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,158,225,0,0,0,0],[0,0,0,155,116,156,222,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,155,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,43,266,266,8,161,0,24,0,0,12,267,0,0,0,0],[0,75,0,176,43,268,268,269,161,0,24,0,0,0,267,0,75,0,0],[0,0,0,0,0,270,0,0,271,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,272,0,0,0,0,0,0,0,0],[0,273,274,0,0,40,41,0,9,0,10,0,0,0,42,0,273,0,0],[0,0,0,40,0,123,123,8,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,121,275,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,276,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,279,0,0,0,76,280,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,173,281,0,0,0,0],[0,0,0,169,170,171,278,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,169,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,282,90,0,0,76,280,0,23,0,24,0,0,0,78,0,282,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,75,0,0,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,80,80,22,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,283,0,284,285,0,23,0,24,0,0,286,0,0,0,0,0],[0,75,0,176,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,287,287,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,288,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,185,185,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,290,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,291,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,192,281,0,0,0,0],[0,0,0,189,170,190,278,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,189,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,76,0,177,177,22,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,175,296,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,299,0,0,0,97,300,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,199,301,0,0,0,0],[0,0,0,195,196,197,298,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,195,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,302,111,0,0,97,300,0,33,0,34,0,0,0,99,0,302,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,96,0,0,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,101,101,32,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,303,0,304,305,0,33,0,34,0,0,306,0,0,0,0,0],[0,96,0,202,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,307,307,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,211,211,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,310,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,311,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,218,301,0,0,0,0],[0,0,0,215,196,216,298,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,215,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,97,0,203,203,32,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,201,316,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,0,225,0,0,0,0],[0,0,0,317,318,319,320,8,9,0,10,0,0,321,322,0,0,16,0],[0,223,0,323,0,123,123,8,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,0,0,121,324,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,325,318,326,327,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,64,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,230,0,0,0,0,0],[0,0,0,227,0,228,121,0,9,0,10,0,0,230,0,0,0,0,0],[0,0,0,227,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,0,0],[0,0,0,0,0,329,329,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,330,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,237,237,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,332,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,333,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,337,0,0,0,137,338,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,244,339,0,0,0,0],[0,0,0,240,241,242,336,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,240,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,340,151,0,0,137,338,0,58,0,59,0,0,0,139,0,340,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,136,0,0,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,141,141,57,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,341,0,342,343,0,58,0,59,0,0,344,0,0,0,0,0],[0,136,0,247,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,0,0,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,345,345,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,346,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,256,256,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,348,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,349,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,263,339,0,0,0,0],[0,0,0,260,241,261,336,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,260,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,137,0,248,248,57,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,246,354,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,126,126,8,23,0,0,0,0,0,0,0,0,0,0],[0,355,90,0,0,121,125,0,9,0,10,0,0,0,42,0,355,0,0],[0,0,0,0,0,356,356,269,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,357,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,270,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,363,0,0,0,0,0,0,0,0],[0,0,0,364,116,365,366,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,40,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,0,281,0,0,0,0],[0,0,0,369,370,371,372,22,23,0,24,0,0,373,374,0,0,27,0],[0,279,0,375,0,177,177,22,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,0,0,175,376,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,377,370,378,379,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,90,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,286,0,0,0,0,0],[0,0,0,283,0,284,175,0,23,0,24,0,0,286,0,0,0,0,0],[0,0,0,283,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0],[0,0,0,0,0,381,381,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,382,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,293,293,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,384,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,385,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,76,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,0,301,0,0,0,0],[0,0,0,387,388,389,390,32,33,0,34,0,0,391,392,0,0,37,0],[0,299,0,393,0,203,203,32,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,0,0,201,394,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,395,388,396,397,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,111,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,306,0,0,0,0,0],[0,0,0,303,0,304,201,0,33,0,34,0,0,306,0,0,0,0,0],[0,0,0,303,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,0,0],[0,0,0,0,0,399,399,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,400,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,313,313,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,402,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,403,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,97,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,407,0,0,0,40,408,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,321,409,0,0,0,0],[0,0,0,317,318,319,406,8,9,0,10,0,0,321,322,0,0,16,0],[0,0,0,317,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,410,64,0,0,40,408,0,9,0,10,0,0,0,42,0,410,0,0],[0,223,0,0,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,323,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,328,409,0,0,0,0],[0,0,0,325,318,326,406,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,325,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,130,0,0],[0,0,0,0,0,411,411,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,412,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,413,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,0,339,0,0,0,0],[0,0,0,414,415,416,417,57,58,0,59,0,0,418,419,0,0,62,0],[0,337,0,420,0,248,248,57,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,0,0,246,421,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,422,415,423,424,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,151,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,344,0,0,0,0,0],[0,0,0,341,0,342,246,0,58,0,59,0,0,344,0,0,0,0,0],[0,0,0,341,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0],[0,0,0,0,0,426,426,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,427,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,351,351,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,429,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,430,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,137,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,432,116,433,434,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,0,0,180,180,269,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,359,359,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,437,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,438,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,443,274,0,0,0,0,0,0,0,0,0,0,0,0,0,443,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,367,225,0,0,0,0],[0,0,0,364,116,365,445,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,364,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,448,0,0,0,76,449,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,373,450,0,0,0,0],[0,0,0,369,370,371,447,22,23,0,24,0,0,373,374,0,0,27,0],[0,0,0,369,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,451,90,0,0,76,449,0,23,0,24,0,0,0,78,0,451,0,0],[0,279,0,0,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,375,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,380,450,0,0,0,0],[0,0,0,377,370,378,447,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,377,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,0,0,0,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,0,0],[0,0,0,0,0,452,452,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,453,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,454,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,457,0,0,0,97,458,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,391,459,0,0,0,0],[0,0,0,387,388,389,456,32,33,0,34,0,0,391,392,0,0,37,0],[0,0,0,387,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,460,111,0,0,97,458,0,33,0,34,0,0,0,99,0,460,0,0],[0,299,0,0,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,393,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,398,459,0,0,0,0],[0,0,0,395,388,396,456,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,395,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,0,0,0,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,210,0,0],[0,0,0,0,0,461,461,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,462,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,463,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,0,409,0,0,0,0],[0,0,0,464,465,466,467,8,9,0,10,0,0,468,469,0,0,16,0],[0,407,0,470,0,123,123,8,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,0,0,121,471,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,472,465,473,474,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,0,0,0,0,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,236,0,0],[0,0,0,0,0,0,476,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,479,0,0,0,137,480,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,418,481,0,0,0,0],[0,0,0,414,415,416,478,57,58,0,59,0,0,418,419,0,0,62,0],[0,0,0,414,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,482,151,0,0,137,480,0,58,0,59,0,0,0,139,0,482,0,0],[0,337,0,0,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,420,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,425,481,0,0,0,0],[0,0,0,422,415,423,478,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,422,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,0,0,0,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0],[0,0,0,0,0,483,483,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,485,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,435,225,0,0,0,0],[0,0,0,432,116,433,445,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,432,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,486,486,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,487,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,440,440,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,489,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,490,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,495,0,496,497,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,0,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,0,225,0,0,0,0],[0,0,0,0,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,0,450,0,0,0,0],[0,0,0,499,500,501,502,22,23,0,24,0,0,503,504,0,0,27,0],[0,448,0,505,0,177,177,22,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,0,0,175,506,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,507,500,508,509,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,0,0,0,0,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,292,0,0],[0,0,0,0,0,0,511,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,0,459,0,0,0,0],[0,0,0,512,513,514,515,32,33,0,34,0,0,516,517,0,0,37,0],[0,457,0,518,0,203,203,32,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,0,0,201,519,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,520,513,521,522,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,0,0,0,0,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,312,0,0],[0,0,0,0,0,0,524,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,527,0,0,0,40,528,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,468,529,0,0,0,0],[0,0,0,464,465,466,526,8,9,0,10,0,0,468,469,0,0,16,0],[0,0,0,464,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,530,64,0,0,40,528,0,9,0,10,0,0,0,42,0,530,0,0],[0,407,0,0,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,470,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,475,529,0,0,0,0],[0,0,0,472,465,473,526,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,472,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,0,0],[0,0,0,0,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,0,481,0,0,0,0],[0,0,0,531,532,533,534,57,58,0,59,0,0,535,536,0,0,62,0],[0,479,0,537,0,248,248,57,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,0,0,246,538,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,539,532,540,541,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,0,0,0,0,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,350,0,0],[0,0,0,0,0,0,543,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,358,0,0],[0,0,0,0,0,544,544,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,545,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,492,492,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,547,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,548,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,274,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,498,0,0,0,0,0],[0,0,0,495,0,496,368,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,495,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,553,0,0,0,76,554,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,503,555,0,0,0,0],[0,0,0,499,500,501,552,22,23,0,24,0,0,503,504,0,0,27,0],[0,0,0,499,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,556,90,0,0,76,554,0,23,0,24,0,0,0,78,0,556,0,0],[0,448,0,0,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,505,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,510,555,0,0,0,0],[0,0,0,507,500,508,552,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,507,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,559,0,0,0,97,560,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,516,561,0,0,0,0],[0,0,0,512,513,514,558,32,33,0,34,0,0,516,517,0,0,37,0],[0,0,0,512,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,562,111,0,0,97,560,0,33,0,34,0,0,0,99,0,562,0,0],[0,457,0,0,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,518,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,523,561,0,0,0,0],[0,0,0,520,513,521,558,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,520,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0],[0,0,0,0,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,0,529,0,0,0,0],[0,0,0,563,66,564,565,8,9,0,10,0,0,566,68,0,0,16,0],[0,527,0,567,0,123,123,8,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,0,0,121,568,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,569,66,570,571,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,575,0,0,0,137,576,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,535,577,0,0,0,0],[0,0,0,531,532,533,574,57,58,0,59,0,0,535,536,0,0,62,0],[0,0,0,531,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,578,151,0,0,137,576,0,58,0,59,0,0,0,139,0,578,0,0],[0,479,0,0,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,537,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,542,577,0,0,0,0],[0,0,0,539,532,540,574,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,539,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,137,0,0],[0,0,0,0,0,0,0,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,439,0,0],[0,0,0,0,0,579,579,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,580,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,581,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,0,555,0,0,0,0],[0,0,0,582,91,583,584,22,23,0,24,0,0,585,93,0,0,27,0],[0,553,0,586,0,177,177,22,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,0,0,175,587,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,588,91,589,590,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,0,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,0,561,0,0,0,0],[0,0,0,592,112,593,594,32,33,0,34,0,0,595,114,0,0,37,0],[0,559,0,596,0,203,203,32,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,0,0,201,597,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,598,112,599,600,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,566,165,0,0,0,0],[0,0,0,563,66,564,67,8,9,0,10,0,0,566,68,0,0,16,0],[0,0,0,563,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,527,0,0,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,567,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,572,165,0,0,0,0],[0,0,0,569,66,570,67,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,569,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,0,577,0,0,0,0],[0,0,0,603,152,604,605,57,58,0,59,0,0,606,154,0,0,62,0],[0,575,0,607,0,248,248,57,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,0,0,246,608,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,609,152,610,611,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,0,0,0,0,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,491,0,0],[0,0,0,0,0,0,613,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,585,194,0,0,0,0],[0,0,0,582,91,583,92,22,23,0,24,0,0,585,93,0,0,27,0],[0,0,0,582,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,553,0,0,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,586,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,591,194,0,0,0,0],[0,0,0,588,91,589,92,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,588,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,595,220,0,0,0,0],[0,0,0,592,112,593,113,32,33,0,34,0,0,595,114,0,0,37,0],[0,0,0,592,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,559,0,0,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,596,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,601,220,0,0,0,0],[0,0,0,598,112,599,113,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,598,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,606,265,0,0,0,0],[0,0,0,603,152,604,153,57,58,0,59,0,0,606,154,0,0,62,0],[0,0,0,603,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,575,0,0,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,607,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,612,265,0,0,0,0],[0,0,0,609,152,610,153,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,609,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,549,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0]],"accepting":[false,true,true,true,true,true,false,false,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,false,false,true,true,true,true,true,true,true,true,true,true,false,true,true,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,false,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,false,true,false,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,false,false,true,false,true,true,false,true,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,true,true,false,false,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,false,false,true,true,false,false,true,true,true,false,true,false,true,true,true,true,false,false,false,true,false,true,true,true,true,false,false,false,true,true,false,true,true,true,true,true,true,false,true,true,false,true,false,true,true,true,true,false,false,false,false,false,false,false,true,true,false,false,true,true,false,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,true,false,true,true,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,false,true,true,false,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,true,false,true,true,true,true,false,false,false,true,false,true,true,true,true,true,false,true,true,true,false,true,true,true,true,true,false,true,true,true,true,false,true,true,true,true,true,false,true,true,false,true,true,true],"tags":[[],["broken_cluster"],["consonant_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],[],["broken_cluster"],["symbol_cluster"],[],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["symbol_cluster"],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],[],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],[],[],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],["consonant_syllable"],["vowel_syllable"],["standalone_cluster"]]}');var Su={};Su=JSON.parse('{"categories":["O","IND","S","GB","B","FM","CGJ","VMAbv","VMPst","VAbv","VPst","CMBlw","VPre","VBlw","H","VMBlw","CMAbv","MBlw","CS","R","SUB","MPst","MPre","FAbv","FPst","FBlw","null","SMAbv","SMBlw","VMPre","ZWNJ","ZWJ","WJ","M","VS","N","HN","MAbv"],"decompositions":{"2507":[2503,2494],"2508":[2503,2519],"2888":[2887,2902],"2891":[2887,2878],"2892":[2887,2903],"3018":[3014,3006],"3019":[3015,3006],"3020":[3014,3031],"3144":[3142,3158],"3264":[3263,3285],"3271":[3270,3285],"3272":[3270,3286],"3274":[3270,3266],"3275":[3270,3266,3285],"3402":[3398,3390],"3403":[3399,3390],"3404":[3398,3415],"3546":[3545,3530],"3548":[3545,3535],"3549":[3545,3535,3530],"3550":[3545,3551],"3635":[3661,3634],"3763":[3789,3762],"3955":[3953,3954],"3957":[3953,3956],"3958":[4018,3968],"3959":[4018,3953,3968],"3960":[4019,3968],"3961":[4019,3953,3968],"3969":[3953,3968],"6971":[6970,6965],"6973":[6972,6965],"6976":[6974,6965],"6977":[6975,6965],"6979":[6978,6965],"69934":[69937,69927],"69935":[69938,69927],"70475":[70471,70462],"70476":[70471,70487],"70843":[70841,70842],"70844":[70841,70832],"70846":[70841,70845],"71098":[71096,71087],"71099":[71097,71087]},"stateTable":[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[2,2,3,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,17,18,11,19,20,21,22,0,0,0,23,0,0,2,0,0,24,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,27,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,39,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,49,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,53,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0]],"accepting":[false,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true],"tags":[[],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["symbol_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["virama_terminated_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["number_joiner_terminated_cluster"],["standard_cluster"],["standard_cluster"],["numeral_cluster"]]}');var je={X:1,C:2,V:4,N:8,H:16,ZWNJ:32,ZWJ:64,M:128,Placeholder:2048,Dotted_Circle:4096,RS:8192,Coeng:16384,Repha:32768,Ra:65536,CM:131072},Se={Start:1,Ra_To_Become_Reph:2,Pre_M:4,Pre_C:8,Base_C:16,After_Main:32,Before_Sub:128,Below_C:256,After_Sub:512,Before_Post:1024,Post_C:2048,After_Post:4096,Final_C:8192,SMVD:16384,End:32768},UB=je.C|je.Ra|je.CM|je.V|je.Placeholder|je.Dotted_Circle,tv=je.ZWJ|je.ZWNJ,tn=je.H|je.Coeng,iv={Default:{hasOldSpec:!1,virama:0,basePos:"Last",rephPos:Se.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Devanagari:{hasOldSpec:!0,virama:2381,basePos:"Last",rephPos:Se.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Bengali:{hasOldSpec:!0,virama:2509,basePos:"Last",rephPos:Se.After_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gurmukhi:{hasOldSpec:!0,virama:2637,basePos:"Last",rephPos:Se.Before_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gujarati:{hasOldSpec:!0,virama:2765,basePos:"Last",rephPos:Se.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Oriya:{hasOldSpec:!0,virama:2893,basePos:"Last",rephPos:Se.After_Main,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Tamil:{hasOldSpec:!0,virama:3021,basePos:"Last",rephPos:Se.After_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Telugu:{hasOldSpec:!0,virama:3149,basePos:"Last",rephPos:Se.After_Post,rephMode:"Explicit",blwfMode:"Post_Only"},Kannada:{hasOldSpec:!0,virama:3277,basePos:"Last",rephPos:Se.After_Post,rephMode:"Implicit",blwfMode:"Post_Only"},Malayalam:{hasOldSpec:!0,virama:3405,basePos:"Last",rephPos:Se.After_Main,rephMode:"Log_Repha",blwfMode:"Pre_And_Post"},Khmer:{hasOldSpec:!1,virama:6098,basePos:"First",rephPos:Se.Ra_To_Become_Reph,rephMode:"Vis_Repha",blwfMode:"Pre_And_Post"}},jB={6078:[6081,6078],6079:[6081,6079],6080:[6081,6080],6084:[6081,6084],6085:[6081,6085]},{decompositions:GB}=su(Su),av=new Rc.default(ef("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")),WB=new Jy.default(su(ev)),It=class extends Ra{static planFeatures(e){e.addStage(YB),e.addStage(["locl","ccmp"]),e.addStage(XB),e.addStage("nukt"),e.addStage("akhn"),e.addStage("rphf",!1),e.addStage("rkrf"),e.addStage("pref",!1),e.addStage("blwf",!1),e.addStage("abvf",!1),e.addStage("half",!1),e.addStage("pstf",!1),e.addStage("vatu"),e.addStage("cjct"),e.addStage("cfar",!1),e.addStage(HB),e.addStage({local:["init"],global:["pres","abvs","blws","psts","haln","dist","abvm","blwm","calt","clig"]}),e.unicodeScript=RN(e.script),e.indicConfig=iv[e.unicodeScript]||iv.Default,e.isOldSpec=e.indicConfig.hasOldSpec&&e.script[e.script.length-1]!=="2"}static assignFeatures(e,t){for(let i=t.length-1;i>=0;i--){let r=t[i].codePoints[0],a=jB[r]||GB[r];if(a){let s=a.map(n=>{let o=e.font.glyphForCodePoint(n);return new ua(e.font,o.id,[n],t[i].features)});t.splice(i,1,...s)}}}};ui(It,"zeroMarkWidths","NONE");function cf(e){return av.get(e.codePoints[0])>>8}function rv(e){return 1<<(av.get(e.codePoints[0])&255)}var Nu=class{constructor(e,t,i,r){this.category=e,this.position=t,this.syllableType=i,this.syllable=r}};function YB(e,t){let i=0,r=0;for(let[a,s,n]of WB.match(t.map(cf))){if(a>r){++i;for(let o=r;o<a;o++)t[o].shaperInfo=new Nu(je.X,Se.End,"non_indic_cluster",i)}++i;for(let o=a;o<=s;o++)t[o].shaperInfo=new Nu(1<<cf(t[o]),rv(t[o]),n[0],i);r=s+1}if(r<t.length){++i;for(let a=r;a<t.length;a++)t[a].shaperInfo=new Nu(je.X,Se.End,"non_indic_cluster",i)}}function fr(e){return e.shaperInfo.category&UB}function Xi(e){return e.shaperInfo.category&tv}function ca(e){return e.shaperInfo.category&tn}function fa(e,t){for(let r of e)r.features={[t]:!0};return e[0]._font._layoutEngine.engine.GSUBProcessor.applyFeatures([t],e),e.length===1}function KB(e,t,i){let r=[i,t,i];return fa(r.slice(0,2),"blwf")||fa(r.slice(1,3),"blwf")?Se.Below_C:fa(r.slice(0,2),"pstf")||fa(r.slice(1,3),"pstf")||fa(r.slice(0,2),"pref")||fa(r.slice(1,3),"pref")?Se.Post_C:Se.Base_C}function XB(e,t,i){let r=i.indicConfig,a=e._layoutEngine.engine.GSUBProcessor.features,s=e.glyphForCodePoint(9676).id,n=e.glyphForCodePoint(r.virama).id;if(n){let o=new ua(e,n,[r.virama]);for(let u=0;u<t.length;u++)t[u].shaperInfo.position===Se.Base_C&&(t[u].shaperInfo.position=KB(e,t[u].copy(),o))}for(let o=0,u=Bu(t,0);o<t.length;o=u,u=Bu(t,o)){let{category:l,syllableType:c}=t[o].shaperInfo;if(c==="symbol_cluster"||c==="non_indic_cluster")continue;if(c==="broken_cluster"&&s){let b=new ua(e,s,[9676]);b.shaperInfo=new Nu(1<<cf(b),rv(b),t[o].shaperInfo.syllableType,t[o].shaperInfo.syllable);let x=o;for(;x<u&&t[x].shaperInfo.category===je.Repha;)x++;t.splice(x++,0,b),u++}let f=u,h=o,g=!1;if(r.rephPos!==Se.Ra_To_Become_Reph&&a.rphf&&o+3<=u&&(r.rephMode==="Implicit"&&!Xi(t[o+2])||r.rephMode==="Explicit"&&t[o+2].shaperInfo.category===je.ZWJ)){let b=[t[o].copy(),t[o+1].copy(),t[o+2].copy()];if(fa(b.slice(0,2),"rphf")||r.rephMode==="Explicit"&&fa(b,"rphf")){for(h+=2;h<u&&Xi(t[h]);)h++;f=o,g=!0}}else if(r.rephMode==="Log_Repha"&&t[o].shaperInfo.category===je.Repha){for(h++;h<u&&Xi(t[h]);)h++;f=o,g=!0}switch(r.basePos){case"Last":{let b=u,x=!1;do{let D=t[--b].shaperInfo;if(fr(t[b])){if(D.position!==Se.Below_C&&(D.position!==Se.Post_C||x)){f=b;break}D.position===Se.Below_C&&(x=!0),f=b}else if(o<b&&D.category===je.ZWJ&&t[b-1].shaperInfo.category===je.H)break}while(b>h);break}case"First":f=o;for(let b=f+1;b<u;b++)fr(t[b])&&(t[b].shaperInfo.position=Se.Below_C)}g&&f===o&&h-f<=2&&(g=!1);for(let b=o;b<f;b++){let x=t[b].shaperInfo;x.position=Math.min(Se.Pre_C,x.position)}f<u&&(t[f].shaperInfo.position=Se.Base_C);for(let b=f+1;b<u;b++)if(t[b].shaperInfo.category===je.M){for(let x=b+1;x<u;x++)if(fr(t[x])){t[x].shaperInfo.position=Se.Final_C;break}break}if(g&&(t[o].shaperInfo.position=Se.Ra_To_Become_Reph),i.isOldSpec){let b=i.unicodeScript!=="Malayalam";for(let x=f+1;x<u;x++)if(t[x].shaperInfo.category===je.H){let D;for(D=u-1;D>x&&!(fr(t[D])||b&&t[D].shaperInfo.category===je.H);D--);if(t[D].shaperInfo.category!==je.H&&D>x){let w=t[x];t.splice(x,0,...t.splice(x+1,D-x)),t[D]=w}break}}let p=Se.Start;for(let b=o;b<u;b++){let x=t[b].shaperInfo;if(x.category&(tv|je.N|je.RS|je.CM|tn&x.category)){if(x.position=p,x.category===je.H&&x.position===Se.Pre_M){for(let D=b;D>o;D--)if(t[D-1].shaperInfo.position!==Se.Pre_M){x.position=t[D-1].shaperInfo.position;break}}}else x.position!==Se.SMVD&&(p=x.position)}let v=f;for(let b=f+1;b<u;b++)if(fr(t[b])){for(let x=v+1;x<b;x++)t[x].shaperInfo.position<Se.SMVD&&(t[x].shaperInfo.position=t[b].shaperInfo.position);v=b}else t[b].shaperInfo.category===je.M&&(v=b);let k=t.slice(o,u);k.sort((b,x)=>b.shaperInfo.position-x.shaperInfo.position),t.splice(o,k.length,...k);for(let b=o;b<u;b++)if(t[b].shaperInfo.position===Se.Base_C){f=b;break}for(let b=o;b<u&&t[b].shaperInfo.position===Se.Ra_To_Become_Reph;b++)t[b].features.rphf=!0;let C=!i.isOldSpec&&r.blwfMode==="Pre_And_Post";for(let b=o;b<f;b++)t[b].features.half=!0,C&&(t[b].features.blwf=!0);for(let b=f+1;b<u;b++)t[b].features.abvf=!0,t[b].features.pstf=!0,t[b].features.blwf=!0;if(i.isOldSpec&&i.unicodeScript==="Devanagari")for(let b=o;b+1<f;b++)t[b].shaperInfo.category===je.Ra&&t[b+1].shaperInfo.category===je.H&&(b+1===f||t[b+2].shaperInfo.category===je.ZWJ)&&(t[b].features.blwf=!0,t[b+1].features.blwf=!0);let P=2;if(a.pref&&f+P<u)for(let b=f+1;b+P-1<u;b++){let x=[t[b].copy(),t[b+1].copy()];if(fa(x,"pref")){for(let D=0;D<P;D++)t[b++].features.pref=!0;if(a.cfar)for(;b<u;b++)t[b].features.cfar=!0;break}}for(let b=o+1;b<u;b++)if(Xi(t[b])){let x=t[b].shaperInfo.category===je.ZWNJ,D=b;do D--,x&&delete t[D].features.half;while(D>o&&!fr(t[D]))}}}function HB(e,t,i){let r=i.indicConfig,a=e._layoutEngine.engine.GSUBProcessor.features;for(let s=0,n=Bu(t,0);s<t.length;s=n,n=Bu(t,s)){let o=!!a.pref,u=s;for(;u<n;u++)if(t[u].shaperInfo.position>=Se.Base_C){if(o&&u+1<n){for(let l=u+1;l<n;l++)if(t[l].features.pref){if(!(t[l].substituted&&t[l].isLigated&&!t[l].isMultiplied)){for(u=l;u<n&&ca(t[u]);)u++;t[u].shaperInfo.position=Se.BASE_C,o=!1}break}}if(i.unicodeScript==="Malayalam")for(let l=u+1;l<n;l++){for(;l<n&&Xi(t[l]);)l++;if(l===n||!ca(t[l]))break;for(l++;l<n&&Xi(t[l]);)l++;l<n&&fr(t[l])&&t[l].shaperInfo.position===Se.Below_C&&(u=l,t[u].shaperInfo.position=Se.Base_C)}s<u&&t[u].shaperInfo.position>Se.Base_C&&u--;break}if(u===n&&s<u&&t[u-1].shaperInfo.category===je.ZWJ&&u--,u<n)for(;s<u&&t[u].shaperInfo.category&(je.N|tn);)u--;if(s+1<n&&s<u){let l=u===n?u-2:u-1;if(i.unicodeScript!=="Malayalam"&&i.unicodeScript!=="Tamil"){for(;l>s&&!(t[l].shaperInfo.category&(je.M|tn));)l--;ca(t[l])&&t[l].shaperInfo.position!==Se.Pre_M?l+1<n&&Xi(t[l+1])&&l++:l=s}if(s<l&&t[l].shaperInfo.position!==Se.Pre_M){for(let c=l;c>s;c--)if(t[c-1].shaperInfo.position===Se.Pre_M){let f=c-1;f<u&&u<=l&&u--;let h=t[f];t.splice(f,0,...t.splice(f+1,l-f)),t[l]=h,l--}}}if(s+1<n&&t[s].shaperInfo.position===Se.Ra_To_Become_Reph&&t[s].shaperInfo.category===je.Repha!==(t[s].isLigated&&!t[s].isMultiplied)){let l,c=r.rephPos,f=!1;if(c!==Se.After_Post){for(l=s+1;l<u&&!ca(t[l]);)l++;if(l<u&&ca(t[l])&&(l+1<u&&Xi(t[l+1])&&l++,f=!0),!f&&c===Se.After_Main){for(l=u;l+1<n&&t[l+1].shaperInfo.position<=Se.After_Main;)l++;f=l<n}if(!f&&c===Se.After_Sub){for(l=u;l+1<n&&!(t[l+1].shaperInfo.position&(Se.Post_C|Se.After_Post|Se.SMVD));)l++;f=l<n}}if(!f){for(l=s+1;l<u&&!ca(t[l]);)l++;l<u&&ca(t[l])&&(l+1<u&&Xi(t[l+1])&&l++,f=!0)}if(!f){for(l=n-1;l>s&&t[l].shaperInfo.position===Se.SMVD;)l--;if(ca(t[l]))for(let g=u+1;g<l;g++)t[g].shaperInfo.category===je.M&&l--}let h=t[s];t.splice(s,0,...t.splice(s+1,l-s)),t[l]=h,s<u&&u<=l&&u--}if(o&&u+1<n){for(let l=u+1;l<n;l++)if(t[l].features.pref){if(t[l].isLigated&&!t[l].isMultiplied){let c=u;if(i.unicodeScript!=="Malayalam"&&i.unicodeScript!=="Tamil"){for(;c>s&&!(t[c-1].shaperInfo.category&(je.M|tn));)c--;if(c>s&&t[c-1].shaperInfo.category===je.M){let g=l;for(let p=u+1;p<g;p++)if(t[p].shaperInfo.category===je.M){c--;break}}}c>s&&ca(t[c-1])&&c<n&&Xi(t[c])&&c++;let f=l,h=t[f];t.splice(c+1,0,...t.splice(c,f-c)),t[c]=h,c<=u&&u<f&&u++}break}}t[s].shaperInfo.position===Se.Pre_M&&(!s||!/Cf|Mn/.test(ru(t[s-1].codePoints[0])))&&(t[s].features.init=!0)}}function Bu(e,t){if(t>=e.length)return t;let i=e[t].shaperInfo.syllable;for(;++t<e.length&&e[t].shaperInfo.syllable===i;);return t}var{categories:JB,decompositions:sv}=su(Su),qB=new Rc.default(ef("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")),QB=new Jy.default(su(Su)),$e=class extends Ra{static planFeatures(e){e.addStage(tF),e.addStage(["locl","ccmp","nukt","akhn"]),e.addStage(ov),e.addStage(["rphf"],!1),e.addStage(iF),e.addStage(ov),e.addStage(["pref"]),e.addStage(aF),e.addStage(["rkrf","abvf","blwf","half","pstf","vatu","cjct"]),e.addStage(rF),e.addStage(["abvs","blws","pres","psts","dist","abvm","blwm"])}static assignFeatures(e,t){for(let i=t.length-1;i>=0;i--){let r=t[i].codePoints[0];if(sv[r]){let a=sv[r].map(s=>{let n=e.font.glyphForCodePoint(s);return new ua(e.font,n.id,[s],t[i].features)});t.splice(i,1,...a)}}}};ui($e,"zeroMarkWidths","BEFORE_GPOS");function nv(e){return qB.get(e.codePoints[0])}var eF=class{constructor(e,t,i){this.category=e,this.syllableType=t,this.syllable=i}};function tF(e,t){let i=0;for(let[r,a,s]of QB.match(t.map(nv))){++i;for(let o=r;o<=a;o++)t[o].shaperInfo=new eF(JB[nv(t[o])],s[0],i);let n=t[r].shaperInfo.category==="R"?1:Math.min(3,a-r);for(let o=r;o<r+n;o++)t[o].features.rphf=!0}}function ov(e,t){for(let i of t)i.substituted=!1}function iF(e,t){for(let i of t)i.substituted&&i.features.rphf&&(i.shaperInfo.category="R")}function aF(e,t){for(let i of t)i.substituted&&(i.shaperInfo.category="VPre")}function rF(e,t){let i=e.glyphForCodePoint(9676).id;for(let r=0,a=uv(t,0);r<t.length;r=a,a=uv(t,r)){let s,n,o=t[r].shaperInfo,u=o.syllableType;if(!(u!=="virama_terminated_cluster"&&u!=="standard_cluster"&&u!=="broken_cluster")){if(u==="broken_cluster"&&i){let l=new ua(e,i,[9676]);for(l.shaperInfo=o,s=r;s<a&&t[s].shaperInfo.category==="R";s++);t.splice(++s,0,l),a++}if(o.category==="R"&&a-r>1){for(s=r+1;s<a;s++)if(o=t[s].shaperInfo,lv(o)||Fu(t[s])){Fu(t[s])&&s--,t.splice(r,0,...t.splice(r+1,s-r),t[s]);break}}for(s=r,n=a;s<a;s++)o=t[s].shaperInfo,lv(o)||Fu(t[s])?n=Fu(t[s])?s+1:s:(o.category==="VPre"||o.category==="VMPre")&&n<s&&t.splice(n,1,t[s],...t.splice(n,s-n))}}}function uv(e,t){if(t>=e.length)return t;let i=e[t].shaperInfo.syllable;for(;++t<e.length&&e[t].shaperInfo.syllable===i;);return t}function Fu(e){return e.shaperInfo.category==="H"&&!e.isLigated}function lv(e){return e.category==="B"||e.category==="GB"}var sF={arab:Za,mong:Za,syrc:Za,"nko ":Za,phag:Za,mand:Za,mani:Za,phlp:Za,hang:Xb,bng2:It,beng:It,dev2:It,deva:It,gjr2:It,gujr:It,guru:It,gur2:It,knda:It,knd2:It,mlm2:It,mlym:It,ory2:It,orya:It,taml:It,tml2:It,telu:It,tel2:It,khmr:It,bali:$e,batk:$e,brah:$e,bugi:$e,buhd:$e,cakm:$e,cham:$e,dupl:$e,egyp:$e,gran:$e,hano:$e,java:$e,kthi:$e,kali:$e,khar:$e,khoj:$e,sind:$e,lepc:$e,limb:$e,mahj:$e,mtei:$e,modi:$e,hmng:$e,rjng:$e,saur:$e,shrd:$e,sidd:$e,sinh:It,sund:$e,sylo:$e,tglg:$e,tagb:$e,tale:$e,lana:$e,tavt:$e,takr:$e,tibt:$e,tfng:$e,tirh:$e,latn:Ra,DFLT:Ra};function nF(e){Array.isArray(e)||(e=[e]);for(let t of e){let i=sF[t];if(i)return i}return Ra}var oF=class extends Cu{applyLookup(e,t){switch(e){case 1:{let r=this.coverageIndex(t.coverage);if(r===-1)return!1;let a=this.glyphIterator.cur;switch(t.version){case 1:a.id=a.id+t.deltaGlyphID&65535;break;case 2:a.id=t.substitute.get(r);break}return!0}case 2:{let r=this.coverageIndex(t.coverage);if(r!==-1){let a=t.sequences.get(r);if(a.length===0)return this.glyphs.splice(this.glyphIterator.index,1),!0;this.glyphIterator.cur.id=a[0],this.glyphIterator.cur.ligatureComponent=0;let s=this.glyphIterator.cur.features,n=this.glyphIterator.cur,o=a.slice(1).map((u,l)=>{let c=new ua(this.font,u,void 0,s);return c.shaperInfo=n.shaperInfo,c.isLigated=n.isLigated,c.ligatureComponent=l+1,c.substituted=!0,c.isMultiplied=!0,c});return this.glyphs.splice(this.glyphIterator.index+1,0,...o),!0}return!1}case 3:{let r=this.coverageIndex(t.coverage);if(r!==-1){let a=0;return this.glyphIterator.cur.id=t.alternateSet.get(r)[a],!0}return!1}case 4:{let r=this.coverageIndex(t.coverage);if(r===-1)return!1;for(let a of t.ligatureSets.get(r)){let s=this.sequenceMatchIndices(1,a.components);if(!s)continue;let n=this.glyphIterator.cur,o=n.codePoints.slice();for(let p of s)o.push(...this.glyphs[p].codePoints);let u=new ua(this.font,a.glyph,o,n.features);u.shaperInfo=n.shaperInfo,u.isLigated=!0,u.substituted=!0;let l=n.isMark;for(let p=0;p<s.length&&l;p++)l=this.glyphs[s[p]].isMark;u.ligatureID=l?null:this.ligatureID++;let c=n.ligatureID,f=n.codePoints.length,h=f,g=this.glyphIterator.index+1;for(let p of s){if(l)g=p;else for(;g<p;){var i=h-f+Math.min(this.glyphs[g].ligatureComponent||1,f);this.glyphs[g].ligatureID=u.ligatureID,this.glyphs[g].ligatureComponent=i,g++}c=this.glyphs[g].ligatureID,f=this.glyphs[g].codePoints.length,h+=f,g++}if(c&&!l)for(let p=g;p<this.glyphs.length&&this.glyphs[p].ligatureID===c;p++){var i=h-f+Math.min(this.glyphs[p].ligatureComponent||1,f);this.glyphs[p].ligatureComponent=i}for(let p=s.length-1;p>=0;p--)this.glyphs.splice(s[p],1);return this.glyphs[this.glyphIterator.index]=u,!0}return!1}case 5:return this.applyContext(t);case 6:return this.applyChainingContext(t);case 7:return this.applyLookup(t.lookupType,t.extension);default:throw new Error(`GSUB lookupType ${e} is not supported`)}}},uF=class extends Cu{applyPositionValue(e,t){let i=this.positions[this.glyphIterator.peekIndex(e)];t.xAdvance!=null&&(i.xAdvance+=t.xAdvance),t.yAdvance!=null&&(i.yAdvance+=t.yAdvance),t.xPlacement!=null&&(i.xOffset+=t.xPlacement),t.yPlacement!=null&&(i.yOffset+=t.yPlacement);let r=this.font._variationProcessor,a=this.font.GDEF&&this.font.GDEF.itemVariationStore;r&&a&&(t.xPlaDevice&&(i.xOffset+=r.getDelta(a,t.xPlaDevice.a,t.xPlaDevice.b)),t.yPlaDevice&&(i.yOffset+=r.getDelta(a,t.yPlaDevice.a,t.yPlaDevice.b)),t.xAdvDevice&&(i.xAdvance+=r.getDelta(a,t.xAdvDevice.a,t.xAdvDevice.b)),t.yAdvDevice&&(i.yAdvance+=r.getDelta(a,t.yAdvDevice.a,t.yAdvDevice.b)))}applyLookup(e,t){switch(e){case 1:{let r=this.coverageIndex(t.coverage);if(r===-1)return!1;switch(t.version){case 1:this.applyPositionValue(0,t.value);break;case 2:this.applyPositionValue(0,t.values.get(r));break}return!0}case 2:{let r=this.glyphIterator.peek();if(!r)return!1;let a=this.coverageIndex(t.coverage);if(a===-1)return!1;switch(t.version){case 1:let s=t.pairSets.get(a);for(let u of s)if(u.secondGlyph===r.id)return this.applyPositionValue(0,u.value1),this.applyPositionValue(1,u.value2),!0;return!1;case 2:let n=this.getClassID(this.glyphIterator.cur.id,t.classDef1),o=this.getClassID(r.id,t.classDef2);if(n===-1||o===-1)return!1;var i=t.classRecords.get(n).get(o);return this.applyPositionValue(0,i.value1),this.applyPositionValue(1,i.value2),!0}}case 3:{let r=this.glyphIterator.peekIndex(),a=this.glyphs[r];if(!a)return!1;let s=t.entryExitRecords[this.coverageIndex(t.coverage)];if(!s||!s.exitAnchor)return!1;let n=t.entryExitRecords[this.coverageIndex(t.coverage,a.id)];if(!n||!n.entryAnchor)return!1;let o=this.getAnchor(n.entryAnchor),u=this.getAnchor(s.exitAnchor),l=this.positions[this.glyphIterator.index],c=this.positions[r],f;switch(this.direction){case"ltr":l.xAdvance=u.x+l.xOffset,f=o.x+c.xOffset,c.xAdvance-=f,c.xOffset-=f;break;case"rtl":f=u.x+l.xOffset,l.xAdvance-=f,l.xOffset-=f,c.xAdvance=o.x+c.xOffset;break}return this.glyphIterator.flags.rightToLeft?(this.glyphIterator.cur.cursiveAttachment=r,l.yOffset=o.y-u.y):(a.cursiveAttachment=this.glyphIterator.index,l.yOffset=u.y-o.y),!0}case 4:{let r=this.coverageIndex(t.markCoverage);if(r===-1)return!1;let a=this.glyphIterator.index;for(;--a>=0&&(this.glyphs[a].isMark||this.glyphs[a].ligatureComponent>0););if(a<0)return!1;let s=this.coverageIndex(t.baseCoverage,this.glyphs[a].id);if(s===-1)return!1;let n=t.markArray[r],o=t.baseArray[s][n.class];return this.applyAnchor(n,o,a),!0}case 5:{let r=this.coverageIndex(t.markCoverage);if(r===-1)return!1;let a=this.glyphIterator.index;for(;--a>=0&&this.glyphs[a].isMark;);if(a<0)return!1;let s=this.coverageIndex(t.ligatureCoverage,this.glyphs[a].id);if(s===-1)return!1;let n=t.ligatureArray[s],o=this.glyphIterator.cur,u=this.glyphs[a],l=u.ligatureID&&u.ligatureID===o.ligatureID&&o.ligatureComponent>0?Math.min(o.ligatureComponent,u.codePoints.length)-1:u.codePoints.length-1,c=t.markArray[r],f=n[l][c.class];return this.applyAnchor(c,f,a),!0}case 6:{let r=this.coverageIndex(t.mark1Coverage);if(r===-1)return!1;let a=this.glyphIterator.peekIndex(-1),s=this.glyphs[a];if(!s||!s.isMark)return!1;let n=this.glyphIterator.cur,o=!1;if(n.ligatureID===s.ligatureID?n.ligatureID?n.ligatureComponent===s.ligatureComponent&&(o=!0):o=!0:(n.ligatureID&&!n.ligatureComponent||s.ligatureID&&!s.ligatureComponent)&&(o=!0),!o)return!1;let u=this.coverageIndex(t.mark2Coverage,s.id);if(u===-1)return!1;let l=t.mark1Array[r],c=t.mark2Array[u][l.class];return this.applyAnchor(l,c,a),!0}case 7:return this.applyContext(t);case 8:return this.applyChainingContext(t);case 9:return this.applyLookup(t.lookupType,t.extension);default:throw new Error(`Unsupported GPOS table: ${e}`)}}applyAnchor(e,t,i){let r=this.getAnchor(t),a=this.getAnchor(e.markAnchor);this.positions[i];let s=this.positions[this.glyphIterator.index];s.xOffset=r.x-a.x,s.yOffset=r.y-a.y,this.glyphIterator.cur.markAttachment=i}getAnchor(e){let t=e.xCoordinate,i=e.yCoordinate,r=this.font._variationProcessor,a=this.font.GDEF&&this.font.GDEF.itemVariationStore;return r&&a&&(e.xDeviceTable&&(t+=r.getDelta(a,e.xDeviceTable.a,e.xDeviceTable.b)),e.yDeviceTable&&(i+=r.getDelta(a,e.yDeviceTable.a,e.yDeviceTable.b))),{x:t,y:i}}applyFeatures(e,t,i){super.applyFeatures(e,t,i);for(var r=0;r<this.glyphs.length;r++)this.fixCursiveAttachment(r);this.fixMarkAttachment()}fixCursiveAttachment(e){let t=this.glyphs[e];if(t.cursiveAttachment!=null){let i=t.cursiveAttachment;t.cursiveAttachment=null,this.fixCursiveAttachment(i),this.positions[e].yOffset+=this.positions[i].yOffset}}fixMarkAttachment(){for(let e=0;e<this.glyphs.length;e++){let t=this.glyphs[e];if(t.markAttachment!=null){let i=t.markAttachment;if(this.positions[e].xOffset+=this.positions[i].xOffset,this.positions[e].yOffset+=this.positions[i].yOffset,this.direction==="ltr")for(let r=i;r<e;r++)this.positions[e].xOffset-=this.positions[r].xAdvance,this.positions[e].yOffset-=this.positions[r].yAdvance;else for(let r=i+1;r<e+1;r++)this.positions[e].xOffset+=this.positions[r].xAdvance,this.positions[e].yOffset+=this.positions[r].yAdvance}}}},lF=class{setup(e){this.glyphInfos=e.glyphs.map(i=>new ua(this.font,i.id,[...i.codePoints]));let t=null;this.GPOSProcessor&&(t=this.GPOSProcessor.selectScript(e.script,e.language,e.direction)),this.GSUBProcessor&&(t=this.GSUBProcessor.selectScript(e.script,e.language,e.direction)),this.shaper=nF(t),this.plan=new lB(this.font,t,e.direction),this.shaper.plan(this.plan,this.glyphInfos,e.features);for(let i in this.plan.allFeatures)e.features[i]=!0}substitute(e){this.GSUBProcessor&&(this.plan.process(this.GSUBProcessor,this.glyphInfos),e.glyphs=this.glyphInfos.map(t=>this.font.getGlyph(t.id,t.codePoints)))}position(e){return this.shaper.zeroMarkWidths==="BEFORE_GPOS"&&this.zeroMarkAdvances(e.positions),this.GPOSProcessor&&this.plan.process(this.GPOSProcessor,this.glyphInfos,e.positions),this.shaper.zeroMarkWidths==="AFTER_GPOS"&&this.zeroMarkAdvances(e.positions),e.direction==="rtl"&&(e.glyphs.reverse(),e.positions.reverse()),this.GPOSProcessor&&this.GPOSProcessor.features}zeroMarkAdvances(e){for(let t=0;t<this.glyphInfos.length;t++)this.glyphInfos[t].isMark&&(e[t].xAdvance=0,e[t].yAdvance=0)}cleanup(){this.glyphInfos=null,this.plan=null,this.shaper=null}getAvailableFeatures(e,t){let i=[];return this.GSUBProcessor&&(this.GSUBProcessor.selectScript(e,t),i.push(...Object.keys(this.GSUBProcessor.features))),this.GPOSProcessor&&(this.GPOSProcessor.selectScript(e,t),i.push(...Object.keys(this.GPOSProcessor.features))),i}constructor(e){this.font=e,this.glyphInfos=null,this.plan=null,this.GSUBProcessor=null,this.GPOSProcessor=null,this.fallbackPosition=!0,e.GSUB&&(this.GSUBProcessor=new oF(e,e.GSUB)),e.GPOS&&(this.GPOSProcessor=new uF(e,e.GPOS))}},cF=class{layout(e,t,i,r,a){if(typeof t=="string"&&(a=r,r=i,i=t,t=[]),typeof e=="string"){i==null&&(i=MN(e));var s=this.font.glyphsForString(e)}else{if(i==null){let u=[];for(let l of e)u.push(...l.codePoints);i=ZN(u)}var s=e}let n=new $N(s,t,i,r,a);return s.length===0?(n.positions=[],n):(this.engine&&this.engine.setup&&this.engine.setup(n),this.substitute(n),this.position(n),this.hideDefaultIgnorables(n.glyphs,n.positions),this.engine&&this.engine.cleanup&&this.engine.cleanup(),n)}substitute(e){this.engine&&this.engine.substitute&&this.engine.substitute(e)}position(e){e.positions=e.glyphs.map(i=>new UN(i.advanceWidth));let t=null;this.engine&&this.engine.position&&(t=this.engine.position(e)),!t&&(!this.engine||this.engine.fallbackPosition)&&(this.unicodeLayoutEngine||(this.unicodeLayoutEngine=new ON(this.font)),this.unicodeLayoutEngine.positionGlyphs(e.glyphs,e.positions)),(!t||!t.kern)&&e.features.kern!==!1&&this.font.kern&&(this.kernProcessor||(this.kernProcessor=new TN(this.font)),this.kernProcessor.process(e.glyphs,e.positions),e.features.kern=!0)}hideDefaultIgnorables(e,t){let i=this.font.glyphForCodePoint(32);for(let r=0;r<e.length;r++)this.isDefaultIgnorable(e[r].codePoints[0])&&(e[r]=i,t[r].xAdvance=0,t[r].yAdvance=0)}isDefaultIgnorable(e){let t=e>>16;if(t===0)switch(e>>8){case 0:return e===173;case 3:return e===847;case 6:return e===1564;case 23:return 6068<=e&&e<=6069;case 24:return 6155<=e&&e<=6158;case 32:return 8203<=e&&e<=8207||8234<=e&&e<=8238||8288<=e&&e<=8303;case 254:return 65024<=e&&e<=65039||e===65279;case 255:return 65520<=e&&e<=65528;default:return!1}else switch(t){case 1:return 113824<=e&&e<=113827||119155<=e&&e<=119162;case 14:return 917504<=e&&e<=921599;default:return!1}}getAvailableFeatures(e,t){let i=[];return this.engine&&i.push(...this.engine.getAvailableFeatures(e,t)),this.font.kern&&i.indexOf("kern")===-1&&i.push("kern"),i}stringsForGlyph(e){let t=new Set,i=this.font._cmapProcessor.codePointsForGlyph(e);for(let r of i)t.add(String.fromCodePoint(r));if(this.engine&&this.engine.stringsForGlyph)for(let r of this.engine.stringsForGlyph(e))t.add(r);return Array.from(t)}constructor(e){this.font=e,this.unicodeLayoutEngine=null,this.kernProcessor=null,this.font.morx?this.engine=new uB(this.font):(this.font.GSUB||this.font.GPOS)&&(this.engine=new lF(this.font))}},fF={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"},Iu=class S3{toFunction(){return t=>{this.commands.forEach(i=>t[i.command].apply(t,i.args))}}toSVG(){return this.commands.map(i=>{let r=i.args.map(a=>Math.round(a*100)/100);return`${fF[i.command]}${r.join(" ")}`}).join("")}get cbox(){if(!this._cbox){let t=new Wr;for(let i of this.commands)for(let r=0;r<i.args.length;r+=2)t.addPoint(i.args[r],i.args[r+1]);this._cbox=Object.freeze(t)}return this._cbox}get bbox(){if(this._bbox)return this._bbox;let t=new Wr,i=0,r=0,a=P=>Math.pow(1-P,3)*g[C]+3*Math.pow(1-P,2)*P*p[C]+3*(1-P)*Math.pow(P,2)*v[C]+Math.pow(P,3)*k[C];for(let P of this.commands)switch(P.command){case"moveTo":case"lineTo":let[b,x]=P.args;t.addPoint(b,x),i=b,r=x;break;case"quadraticCurveTo":case"bezierCurveTo":if(P.command==="quadraticCurveTo")var[s,n,f,h]=P.args,o=i+2/3*(s-i),u=r+2/3*(n-r),l=f+2/3*(s-f),c=h+2/3*(n-h);else var[o,u,l,c,f,h]=P.args;t.addPoint(f,h);for(var g=[i,r],p=[o,u],v=[l,c],k=[f,h],C=0;C<=1;C++){let D=6*g[C]-12*p[C]+6*v[C],w=-3*g[C]+9*p[C]-9*v[C]+3*k[C];if(P=3*p[C]-3*g[C],w===0){if(D===0)continue;let z=-P/D;0<z&&z<1&&(C===0?t.addPoint(a(z),t.maxY):C===1&&t.addPoint(t.maxX,a(z)));continue}let R=Math.pow(D,2)-4*P*w;if(R<0)continue;let j=(-D+Math.sqrt(R))/(2*w);0<j&&j<1&&(C===0?t.addPoint(a(j),t.maxY):C===1&&t.addPoint(t.maxX,a(j)));let $=(-D-Math.sqrt(R))/(2*w);0<$&&$<1&&(C===0?t.addPoint(a($),t.maxY):C===1&&t.addPoint(t.maxX,a($)))}i=f,r=h;break}return this._bbox=Object.freeze(t)}mapPoints(t){let i=new S3;for(let r of this.commands){let a=[];for(let s=0;s<r.args.length;s+=2){let[n,o]=t(r.args[s],r.args[s+1]);a.push(n,o)}i[r.command](...a)}return i}transform(t,i,r,a,s,n){return this.mapPoints((o,u)=>{const l=t*o+r*u+s,c=i*o+a*u+n;return[l,c]})}translate(t,i){return this.transform(1,0,0,1,t,i)}rotate(t){let i=Math.cos(t),r=Math.sin(t);return this.transform(i,r,-r,i,0,0)}scale(t,i=t){return this.transform(t,0,0,i,0,0)}constructor(){this.commands=[],this._bbox=null,this._cbox=null}};for(let e of["moveTo","lineTo","quadraticCurveTo","bezierCurveTo","closePath"])Iu.prototype[e]=function(...t){return this._bbox=this._cbox=null,this.commands.push({command:e,args:t}),this};var an=[".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"],Hi=class{_getPath(){return new Iu}_getCBox(){return this.path.cbox}_getBBox(){return this.path.bbox}_getTableMetrics(e){if(this.id<e.metrics.length)return e.metrics.get(this.id);let t=e.metrics.get(e.metrics.length-1);return{advance:t?t.advance:0,bearing:e.bearings.get(this.id-e.metrics.length)||0}}_getMetrics(e){if(this._metrics)return this._metrics;let{advance:t,bearing:i}=this._getTableMetrics(this._font.hmtx);if(this._font.vmtx)var{advance:r,bearing:a}=this._getTableMetrics(this._font.vmtx);else{let s;if((typeof e>"u"||e===null)&&({cbox:e}=this),(s=this._font["OS/2"])&&s.version>0)var r=Math.abs(s.typoAscender-s.typoDescender),a=s.typoAscender-e.maxY;else{let{hhea:n}=this._font;var r=Math.abs(n.ascent-n.descent),a=n.ascent-e.maxY}}return this._font._variationProcessor&&this._font.HVAR&&(t+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR)),this._metrics={advanceWidth:t,advanceHeight:r,leftBearing:i,topBearing:a}}get cbox(){return this._getCBox()}get bbox(){return this._getBBox()}get path(){return this._getPath()}getScaledPath(e){let t=1/this._font.unitsPerEm*e;return this.path.scale(t)}get advanceWidth(){return this._getMetrics().advanceWidth}get advanceHeight(){return this._getMetrics().advanceHeight}get ligatureCaretPositions(){}_getName(){let{post:e}=this._font;if(!e)return null;switch(e.version){case 1:return an[this.id];case 2:let t=e.glyphNameIndex[this.id];return t<an.length?an[t]:e.names[t-an.length];case 2.5:return an[this.id+e.offsets[this.id]];case 4:return String.fromCharCode(e.map[this.id])}}get name(){return this._getName()}render(e,t){e.save();let i=1/this._font.head.unitsPerEm*t;e.scale(i,i),this.path.toFunction()(e),e.fill(),e.restore()}constructor(e,t,i){this.id=e,this.codePoints=t,this._font=i,this.isMark=this.codePoints.length>0&&this.codePoints.every(Hy),this.isLigature=this.codePoints.length>1}};Ut([jt],Hi.prototype,"cbox",null),Ut([jt],Hi.prototype,"bbox",null),Ut([jt],Hi.prototype,"path",null),Ut([jt],Hi.prototype,"advanceWidth",null),Ut([jt],Hi.prototype,"advanceHeight",null),Ut([jt],Hi.prototype,"name",null);var cv=new T({numberOfContours:K,xMin:K,yMin:K,xMax:K,yMax:K}),dF=1,hF=2,gF=4,pF=8,mF=16,yF=32,bF=1,vF=8,fv=32,wF=64,CF=128,xF=256,da=class N3{copy(){return new N3(this.onCurve,this.endContour,this.x,this.y)}constructor(t,i,r=0,a=0){this.onCurve=t,this.endContour=i,this.x=r,this.y=a}},EF=class{constructor(e,t,i){this.glyphID=e,this.dx=t,this.dy=i,this.pos=0,this.scaleX=this.scaleY=1,this.scale01=this.scale10=0}},Vu=class extends Hi{_getCBox(e){if(this._font._variationProcessor&&!e)return this.path.cbox;let t=this._font._getTableStream("glyf");t.pos+=this._font.loca.offsets[this.id];let i=cv.decode(t),r=new Wr(i.xMin,i.yMin,i.xMax,i.yMax);return Object.freeze(r)}_parseGlyphCoord(e,t,i,r){if(i){var a=e.readUInt8();r||(a=-a),a+=t}else if(r)var a=t;else var a=t+e.readInt16BE();return a}_decode(){let e=this._font.loca.offsets[this.id],t=this._font.loca.offsets[this.id+1];if(e===t)return null;let i=this._font._getTableStream("glyf");i.pos+=e;let r=i.pos,a=cv.decode(i);return a.numberOfContours>0?this._decodeSimple(a,i):a.numberOfContours<0&&this._decodeComposite(a,i,r),a}_decodeSimple(e,t){e.points=[];let i=new S(d,e.numberOfContours).decode(t);e.instructions=new S(oe,d).decode(t);let r=[],a=i[i.length-1]+1;for(;r.length<a;){var s=t.readUInt8();if(r.push(s),s&pF){let l=t.readUInt8();for(let c=0;c<l;c++)r.push(s)}}for(var n=0;n<r.length;n++){var s=r[n];let c=new da(!!(s&dF),i.indexOf(n)>=0,0,0);e.points.push(c)}let o=0;for(var n=0;n<r.length;n++){var s=r[n];e.points[n].x=o=this._parseGlyphCoord(t,o,s&hF,s&mF)}let u=0;for(var n=0;n<r.length;n++){var s=r[n];e.points[n].y=u=this._parseGlyphCoord(t,u,s&gF,s&yF)}if(this._font._variationProcessor){let l=e.points.slice();l.push(...this._getPhantomPoints(e)),this._font._variationProcessor.transformPoints(this.id,l),e.phantomPoints=l.slice(-4)}}_decodeComposite(e,t,i=0){e.components=[];let r=!1,a=fv;for(;a&fv;){a=t.readUInt16BE();let u=t.pos-i,l=t.readUInt16BE();if(r||(r=(a&xF)!==0),a&bF)var s=t.readInt16BE(),n=t.readInt16BE();else var s=t.readInt8(),n=t.readInt8();var o=new EF(l,s,n);o.pos=u,a&vF?o.scaleX=o.scaleY=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824:a&wF?(o.scaleX=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,o.scaleY=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824):a&CF&&(o.scaleX=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,o.scale01=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,o.scale10=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,o.scaleY=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824),e.components.push(o)}if(this._font._variationProcessor){let u=[];for(let l=0;l<e.components.length;l++){var o=e.components[l];u.push(new da(!0,!0,o.dx,o.dy))}u.push(...this._getPhantomPoints(e)),this._font._variationProcessor.transformPoints(this.id,u),e.phantomPoints=u.splice(-4,4);for(let l=0;l<u.length;l++){let c=u[l];e.components[l].dx=c.x,e.components[l].dy=c.y}}return r}_getPhantomPoints(e){let t=this._getCBox(!0);this._metrics==null&&(this._metrics=Hi.prototype._getMetrics.call(this,t));let{advanceWidth:i,advanceHeight:r,leftBearing:a,topBearing:s}=this._metrics;return[new da(!1,!0,e.xMin-a,0),new da(!1,!0,e.xMin-a+i,0),new da(!1,!0,0,e.yMax+s),new da(!1,!0,0,e.yMax+s+r)]}_getContours(){let e=this._decode();if(!e)return[];let t=[];if(e.numberOfContours<0)for(let s of e.components){let n=this._font.getGlyph(s.glyphID)._getContours();for(let o=0;o<n.length;o++){let u=n[o];for(let l=0;l<u.length;l++){let c=u[l],f=c.x*s.scaleX+c.y*s.scale01+s.dx,h=c.y*s.scaleY+c.x*s.scale10+s.dy;t.push(new da(c.onCurve,c.endContour,f,h))}}}else t=e.points||[];e.phantomPoints&&!this._font.directory.tables.HVAR&&(this._metrics.advanceWidth=e.phantomPoints[1].x-e.phantomPoints[0].x,this._metrics.advanceHeight=e.phantomPoints[3].y-e.phantomPoints[2].y,this._metrics.leftBearing=e.xMin-e.phantomPoints[0].x,this._metrics.topBearing=e.phantomPoints[2].y-e.yMax);let i=[],r=[];for(let s=0;s<t.length;s++){var a=t[s];r.push(a),a.endContour&&(i.push(r),r=[])}return i}_getMetrics(){if(this._metrics)return this._metrics;let e=this._getCBox(!0);return super._getMetrics(e),this._font._variationProcessor&&!this._font.HVAR&&this.path,this._metrics}_getPath(){let e=this._getContours(),t=new Iu;for(let r=0;r<e.length;r++){let a=e[r],s=a[0],n=a[a.length-1],o=0;if(s.onCurve){var i=null;o=1}else{n.onCurve?s=n:s=new da(!1,!1,(s.x+n.x)/2,(s.y+n.y)/2);var i=s}t.moveTo(s.x,s.y);for(let u=o;u<a.length;u++){let l=a[u],c=u===0?s:a[u-1];if(c.onCurve&&l.onCurve)t.lineTo(l.x,l.y);else if(c.onCurve&&!l.onCurve)var i=l;else if(!c.onCurve&&!l.onCurve){let h=(c.x+l.x)/2,g=(c.y+l.y)/2;t.quadraticCurveTo(c.x,c.y,h,g);var i=l}else if(!c.onCurve&&l.onCurve){t.quadraticCurveTo(i.x,i.y,l.x,l.y);var i=null}else throw new Error("Unknown TTF path state")}i&&t.quadraticCurveTo(i.x,i.y,s.x,s.y),t.closePath()}return t}constructor(...e){super(...e),ui(this,"type","TTF")}},AF=class extends Hi{_getName(){return this._font.CFF2?super._getName():this._font["CFF "].getGlyphName(this.id)}bias(e){return e.length<1240?107:e.length<33900?1131:32768}_getPath(){let e=this._font.CFF2||this._font["CFF "],{stream:t}=e,i=e.topDict.CharStrings[this.id],r=i.offset+i.length;t.pos=i.offset;let a=new Iu,s=[],n=[],o=null,u=0,l=0,c=0,f,h,g=!1;this._usedGsubrs=f={},this._usedSubrs=h={};let p=e.globalSubrIndex||[],v=this.bias(p),k=e.privateDictForGlyph(this.id)||{},C=k.Subrs||[],P=this.bias(C),b=e.topDict.vstore&&e.topDict.vstore.itemVariationStore,x=k.vsindex,D=this._font._variationProcessor;function w(){o==null&&(o=s.shift()+k.nominalWidthX)}function R(){return s.length%2!==0&&w(),u+=s.length>>1,s.length=0}function j(z,ie){g&&a.closePath(),a.moveTo(z,ie),g=!0}let $=function(){for(;t.pos<r;){let O=t.readUInt8();if(O<32){let H,X,we,de,ye,U,Q,se,Ee,Fe,Re,et,tt,Ke,Ot,qe;switch(O){case 1:case 3:case 18:case 23:R();break;case 4:s.length>1&&w(),c+=s.shift(),j(l,c);break;case 5:for(;s.length>=2;)l+=s.shift(),c+=s.shift(),a.lineTo(l,c);break;case 6:case 7:for(we=O===6;s.length>=1;)we?l+=s.shift():c+=s.shift(),a.lineTo(l,c),we=!we;break;case 8:for(;s.length>0;)de=l+s.shift(),ye=c+s.shift(),U=de+s.shift(),Q=ye+s.shift(),l=U+s.shift(),c=Q+s.shift(),a.bezierCurveTo(de,ye,U,Q,l,c);break;case 10:if(H=s.pop()+P,X=C[H],X){h[H]=!0;let L=t.pos,M=r;t.pos=X.offset,r=X.offset+X.length,$(),t.pos=L,r=M}break;case 11:if(e.version>=2)break;return;case 14:if(e.version>=2)break;s.length>0&&w(),g&&(a.closePath(),g=!1);break;case 15:if(e.version<2)throw new Error("vsindex operator not supported in CFF v1");x=s.pop();break;case 16:{if(e.version<2)throw new Error("blend operator not supported in CFF v1");if(!D)throw new Error("blend operator in non-variation font");let L=D.getBlendVector(b,x),M=s.pop(),J=M*L.length,Z=s.length-J,he=Z-M;for(let be=0;be<M;be++){let ge=s[he+be];for(let ve=0;ve<L.length;ve++)ge+=L[ve]*s[Z++];s[he+be]=ge}for(;J--;)s.pop();break}case 19:case 20:R(),t.pos+=u+7>>3;break;case 21:s.length>2&&w(),l+=s.shift(),c+=s.shift(),j(l,c);break;case 22:s.length>1&&w(),l+=s.shift(),j(l,c);break;case 24:for(;s.length>=8;)de=l+s.shift(),ye=c+s.shift(),U=de+s.shift(),Q=ye+s.shift(),l=U+s.shift(),c=Q+s.shift(),a.bezierCurveTo(de,ye,U,Q,l,c);l+=s.shift(),c+=s.shift(),a.lineTo(l,c);break;case 25:for(;s.length>=8;)l+=s.shift(),c+=s.shift(),a.lineTo(l,c);de=l+s.shift(),ye=c+s.shift(),U=de+s.shift(),Q=ye+s.shift(),l=U+s.shift(),c=Q+s.shift(),a.bezierCurveTo(de,ye,U,Q,l,c);break;case 26:for(s.length%2&&(l+=s.shift());s.length>=4;)de=l,ye=c+s.shift(),U=de+s.shift(),Q=ye+s.shift(),l=U,c=Q+s.shift(),a.bezierCurveTo(de,ye,U,Q,l,c);break;case 27:for(s.length%2&&(c+=s.shift());s.length>=4;)de=l+s.shift(),ye=c,U=de+s.shift(),Q=ye+s.shift(),l=U+s.shift(),c=Q,a.bezierCurveTo(de,ye,U,Q,l,c);break;case 28:s.push(t.readInt16BE());break;case 29:if(H=s.pop()+v,X=p[H],X){f[H]=!0;let L=t.pos,M=r;t.pos=X.offset,r=X.offset+X.length,$(),t.pos=L,r=M}break;case 30:case 31:for(we=O===31;s.length>=4;)we?(de=l+s.shift(),ye=c,U=de+s.shift(),Q=ye+s.shift(),c=Q+s.shift(),l=U+(s.length===1?s.shift():0)):(de=l,ye=c+s.shift(),U=de+s.shift(),Q=ye+s.shift(),l=U+s.shift(),c=Q+(s.length===1?s.shift():0)),a.bezierCurveTo(de,ye,U,Q,l,c),we=!we;break;case 12:switch(O=t.readUInt8(),O){case 3:let L=s.pop(),M=s.pop();s.push(L&&M?1:0);break;case 4:L=s.pop(),M=s.pop(),s.push(L||M?1:0);break;case 5:L=s.pop(),s.push(L?0:1);break;case 9:L=s.pop(),s.push(Math.abs(L));break;case 10:L=s.pop(),M=s.pop(),s.push(L+M);break;case 11:L=s.pop(),M=s.pop(),s.push(L-M);break;case 12:L=s.pop(),M=s.pop(),s.push(L/M);break;case 14:L=s.pop(),s.push(-L);break;case 15:L=s.pop(),M=s.pop(),s.push(L===M?1:0);break;case 18:s.pop();break;case 20:let J=s.pop(),Z=s.pop();n[Z]=J;break;case 21:Z=s.pop(),s.push(n[Z]||0);break;case 22:let he=s.pop(),be=s.pop(),ge=s.pop(),ve=s.pop();s.push(ge<=ve?he:be);break;case 23:s.push(Math.random());break;case 24:L=s.pop(),M=s.pop(),s.push(L*M);break;case 26:L=s.pop(),s.push(Math.sqrt(L));break;case 27:L=s.pop(),s.push(L,L);break;case 28:L=s.pop(),M=s.pop(),s.push(M,L);break;case 29:Z=s.pop(),Z<0?Z=0:Z>s.length-1&&(Z=s.length-1),s.push(s[Z]);break;case 30:let _e=s.pop(),W=s.pop();if(W>=0)for(;W>0;){var z=s[_e-1];for(let q=_e-2;q>=0;q--)s[q+1]=s[q];s[0]=z,W--}else for(;W<0;){var z=s[0];for(let Me=0;Me<=_e;Me++)s[Me]=s[Me+1];s[_e-1]=z,W++}break;case 34:de=l+s.shift(),ye=c,U=de+s.shift(),Q=ye+s.shift(),se=U+s.shift(),Ee=Q,Fe=se+s.shift(),Re=Ee,et=Fe+s.shift(),tt=Re,Ke=et+s.shift(),Ot=tt,l=Ke,c=Ot,a.bezierCurveTo(de,ye,U,Q,se,Ee),a.bezierCurveTo(Fe,Re,et,tt,Ke,Ot);break;case 35:qe=[];for(let q=0;q<=5;q++)l+=s.shift(),c+=s.shift(),qe.push(l,c);a.bezierCurveTo(...qe.slice(0,6)),a.bezierCurveTo(...qe.slice(6)),s.shift();break;case 36:de=l+s.shift(),ye=c+s.shift(),U=de+s.shift(),Q=ye+s.shift(),se=U+s.shift(),Ee=Q,Fe=se+s.shift(),Re=Ee,et=Fe+s.shift(),tt=Re+s.shift(),Ke=et+s.shift(),Ot=tt,l=Ke,c=Ot,a.bezierCurveTo(de,ye,U,Q,se,Ee),a.bezierCurveTo(Fe,Re,et,tt,Ke,Ot);break;case 37:let ee=l,pe=c;qe=[];for(let q=0;q<=4;q++)l+=s.shift(),c+=s.shift(),qe.push(l,c);Math.abs(l-ee)>Math.abs(c-pe)?(l+=s.shift(),c=pe):(l=ee,c+=s.shift()),qe.push(l,c),a.bezierCurveTo(...qe.slice(0,6)),a.bezierCurveTo(...qe.slice(6));break;default:throw new Error(`Unknown op: 12 ${O}`)}break;default:throw new Error(`Unknown op: ${O}`)}}else if(O<247)s.push(O-139);else if(O<251){var ie=t.readUInt8();s.push((O-247)*256+ie+108)}else if(O<255){var ie=t.readUInt8();s.push(-(O-251)*256-ie-108)}else s.push(t.readInt32BE()/65536)}};return $(),g&&a.closePath(),a}constructor(...e){super(...e),ui(this,"type","CFF")}},kF=new T({originX:d,originY:d,type:new nt(4),data:new Wi(e=>e.parent.buflen-e._currentOffset)}),DF=class extends Vu{getImageForSize(e){for(let s=0;s<this._font.sbix.imageTables.length;s++){var t=this._font.sbix.imageTables[s];if(t.ppem>=e)break}let i=t.imageOffsets,r=i[this.id],a=i[this.id+1];return r===a?null:(this._font.stream.pos=r,kF.decode(this._font.stream,{buflen:a-r}))}render(e,t){let i=this.getImageForSize(t);if(i!=null){let r=t/this._font.unitsPerEm;e.image(i.data,{height:t,x:i.originX,y:(this.bbox.minY-i.originY)*r})}this._font.sbix.flags.renderOutlines&&super.render(e,t)}constructor(...e){super(...e),ui(this,"type","SBIX")}},dv=class{constructor(e,t){this.glyph=e,this.color=t}},_F=class extends Hi{_getBBox(){let e=new Wr;for(let t=0;t<this.layers.length;t++){let r=this.layers[t].glyph.bbox;e.addPoint(r.minX,r.minY),e.addPoint(r.maxX,r.maxY)}return e}get layers(){let e=this._font.CPAL,t=this._font.COLR,i=0,r=t.baseGlyphRecord.length-1;for(;i<=r;){let l=i+r>>1;var a=t.baseGlyphRecord[l];if(this.id<a.gid)r=l-1;else if(this.id>a.gid)i=l+1;else{var s=a;break}}if(s==null){var n=this._font._getBaseGlyph(this.id),o={red:0,green:0,blue:0,alpha:255};return[new dv(n,o)]}let u=[];for(let l=s.firstLayerIndex;l<s.firstLayerIndex+s.numLayers;l++){var a=t.layerRecords[l],o=e.colorRecords[a.paletteIndex],n=this._font._getBaseGlyph(a.gid);u.push(new dv(n,o))}return u}render(e,t){for(let{glyph:i,color:r}of this.layers)e.fillColor([r.red,r.green,r.blue],r.alpha/255*100),i.render(e,t)}constructor(...e){super(...e),ui(this,"type","COLR")}},SF=32768,NF=4095,BF=32768,hv=16384,FF=8192,gv=4095,pv=128,mv=127,IF=128,VF=64,zF=63,PF=class{normalizeCoords(e){let t=[];for(var i=0;i<this.font.fvar.axis.length;i++){let r=this.font.fvar.axis[i];e[i]<r.defaultValue?t.push((e[i]-r.defaultValue+Number.EPSILON)/(r.defaultValue-r.minValue+Number.EPSILON)):t.push((e[i]-r.defaultValue+Number.EPSILON)/(r.maxValue-r.defaultValue+Number.EPSILON))}if(this.font.avar)for(var i=0;i<this.font.avar.segment.length;i++){let a=this.font.avar.segment[i];for(let s=0;s<a.correspondence.length;s++){let n=a.correspondence[s];if(s>=1&&t[i]<n.fromCoord){let o=a.correspondence[s-1];t[i]=((t[i]-o.fromCoord)*(n.toCoord-o.toCoord)+Number.EPSILON)/(n.fromCoord-o.fromCoord+Number.EPSILON)+o.toCoord;break}}}return t}transformPoints(e,t){if(!this.font.fvar||!this.font.gvar)return;let{gvar:i}=this.font;if(e>=i.glyphCount)return;let r=i.offsets[e];if(r===i.offsets[e+1])return;let{stream:a}=this.font;if(a.pos=r,a.pos>=a.length)return;let s=a.readUInt16BE(),n=r+a.readUInt16BE();if(s&SF){var o=a.pos;a.pos=n;var u=this.decodePoints();n=a.pos,a.pos=o}let l=t.map(v=>v.copy());s&=NF;for(let v=0;v<s;v++){let k=a.readUInt16BE(),C=a.readUInt16BE();if(C&BF){var c=[];for(let R=0;R<i.axisCount;R++)c.push(a.readInt16BE()/16384)}else{if((C&gv)>=i.globalCoordCount)throw new Error("Invalid gvar table");var c=i.globalCoords[C&gv]}if(C&hv){var f=[];for(let R=0;R<i.axisCount;R++)f.push(a.readInt16BE()/16384);var h=[];for(let R=0;R<i.axisCount;R++)h.push(a.readInt16BE()/16384)}let P=this.tupleFactor(C,c,f,h);if(P===0){n+=k;continue}var o=a.pos;if(a.pos=n,C&FF)var g=this.decodePoints();else var g=u;let x=g.length===0?t.length:g.length,D=this.decodeDeltas(x),w=this.decodeDeltas(x);if(g.length===0)for(let R=0;R<t.length;R++){var p=t[R];p.x+=Math.round(D[R]*P),p.y+=Math.round(w[R]*P)}else{let R=l.map($=>$.copy()),j=t.map(()=>!1);for(let $=0;$<g.length;$++){let z=g[$];if(z<t.length){let ie=R[z];j[z]=!0,ie.x+=D[$]*P,ie.y+=w[$]*P}}this.interpolateMissingDeltas(R,l,j);for(let $=0;$<t.length;$++){let z=R[$].x-l[$].x,ie=R[$].y-l[$].y;t[$].x=Math.round(t[$].x+z),t[$].y=Math.round(t[$].y+ie)}}n+=k,a.pos=o}}decodePoints(){let e=this.font.stream,t=e.readUInt8();t&pv&&(t=(t&mv)<<8|e.readUInt8());let i=new Uint16Array(t),r=0,a=0;for(;r<t;){let s=e.readUInt8(),n=(s&mv)+1,o=s&pv?e.readUInt16:e.readUInt8;for(let u=0;u<n&&r<t;u++)a+=o.call(e),i[r++]=a}return i}decodeDeltas(e){let t=this.font.stream,i=0,r=new Int16Array(e);for(;i<e;){let a=t.readUInt8(),s=(a&zF)+1;if(a&IF)i+=s;else{let n=a&VF?t.readInt16BE:t.readInt8;for(let o=0;o<s&&i<e;o++)r[i++]=n.call(t)}}return r}tupleFactor(e,t,i,r){let a=this.normalizedCoords,{gvar:s}=this.font,n=1;for(let o=0;o<s.axisCount;o++)if(t[o]!==0){if(a[o]===0)return 0;if(e&hv){if(a[o]<i[o]||a[o]>r[o])return 0;a[o]<t[o]?n=n*(a[o]-i[o]+Number.EPSILON)/(t[o]-i[o]+Number.EPSILON):n=n*(r[o]-a[o]+Number.EPSILON)/(r[o]-t[o]+Number.EPSILON)}else{if(a[o]<Math.min(0,t[o])||a[o]>Math.max(0,t[o]))return 0;n=(n*a[o]+Number.EPSILON)/(t[o]+Number.EPSILON)}}return n}interpolateMissingDeltas(e,t,i){if(e.length===0)return;let r=0;for(;r<e.length;){let a=r,s=r,n=e[s];for(;!n.endContour;)n=e[++s];for(;r<=s&&!i[r];)r++;if(r>s)continue;let o=r,u=r;for(r++;r<=s;)i[r]&&(this.deltaInterpolate(u+1,r-1,u,r,t,e),u=r),r++;u===o?this.deltaShift(a,s,u,t,e):(this.deltaInterpolate(u+1,s,u,o,t,e),o>0&&this.deltaInterpolate(a,o-1,u,o,t,e)),r=s+1}}deltaInterpolate(e,t,i,r,a,s){if(e>t)return;let n=["x","y"];for(let u=0;u<n.length;u++){let l=n[u];if(a[i][l]>a[r][l]){var o=i;i=r,r=o}let c=a[i][l],f=a[r][l],h=s[i][l],g=s[r][l];if(c!==f||h===g){let p=c===f?0:(g-h)/(f-c);for(let v=e;v<=t;v++){let k=a[v][l];k<=c?k+=h-c:k>=f?k+=g-f:k=h+(k-c)*p,s[v][l]=k}}}}deltaShift(e,t,i,r,a){let s=a[i].x-r[i].x,n=a[i].y-r[i].y;if(!(s===0&&n===0))for(let o=e;o<=t;o++)o!==i&&(a[o].x+=s,a[o].y+=n)}getAdvanceAdjustment(e,t){let i,r;if(t.advanceWidthMapping){let a=e;a>=t.advanceWidthMapping.mapCount&&(a=t.advanceWidthMapping.mapCount-1),t.advanceWidthMapping.entryFormat,{outerIndex:i,innerIndex:r}=t.advanceWidthMapping.mapData[a]}else i=0,r=e;return this.getDelta(t.itemVariationStore,i,r)}getDelta(e,t,i){if(t>=e.itemVariationData.length)return 0;let r=e.itemVariationData[t];if(i>=r.deltaSets.length)return 0;let a=r.deltaSets[i],s=this.getBlendVector(e,t),n=0;for(let o=0;o<r.regionIndexCount;o++)n+=a.deltas[o]*s[o];return n}getBlendVector(e,t){let i=e.itemVariationData[t];if(this.blendVectors.has(i))return this.blendVectors.get(i);let r=this.normalizedCoords,a=[];for(let s=0;s<i.regionIndexCount;s++){let n=1,o=i.regionIndexes[s],u=e.variationRegionList.variationRegions[o];for(let l=0;l<u.length;l++){let c=u[l],f;c.startCoord>c.peakCoord||c.peakCoord>c.endCoord||c.startCoord<0&&c.endCoord>0&&c.peakCoord!==0||c.peakCoord===0?f=1:r[l]<c.startCoord||r[l]>c.endCoord?f=0:r[l]===c.peakCoord?f=1:r[l]<c.peakCoord?f=(r[l]-c.startCoord+Number.EPSILON)/(c.peakCoord-c.startCoord+Number.EPSILON):f=(c.endCoord-r[l]+Number.EPSILON)/(c.endCoord-c.peakCoord+Number.EPSILON),n*=f}a[s]=n}return this.blendVectors.set(i,a),a}constructor(e,t){this.font=e,this.normalizedCoords=this.normalizeCoords(t),this.blendVectors=new Map}};Promise.resolve();var yv=class{includeGlyph(e){return typeof e=="object"&&(e=e.id),this.mapping[e]==null&&(this.glyphs.push(e),this.mapping[e]=this.glyphs.length-1),this.mapping[e]}constructor(e){this.font=e,this.glyphs=[],this.mapping={},this.includeGlyph(0)}},TF=1,OF=2,RF=4,MF=8,ZF=16,LF=32,bv=class{static size(e){return e>=0&&e<=255?1:2}static encode(e,t){t>=0&&t<=255?e.writeUInt8(t):e.writeInt16BE(t)}},vv=new T({numberOfContours:K,xMin:K,yMin:K,xMax:K,yMax:K,endPtsOfContours:new S(d,"numberOfContours"),instructions:new S(oe,d),flags:new S(oe,0),xPoints:new S(bv,0),yPoints:new S(bv,0)}),$F=class{encodeSimple(e,t=[]){let i=[],r=[],a=[],s=[],n=0,o=0,u=0,l=0,c=0;for(let k=0;k<e.commands.length;k++){let C=e.commands[k];for(let P=0;P<C.args.length;P+=2){let b=C.args[P],x=C.args[P+1],D=0;if(C.command==="quadraticCurveTo"&&P===2){let w=e.commands[k+1];if(w&&w.command==="quadraticCurveTo"){let R=(o+w.args[0])/2,j=(u+w.args[1])/2;if(b===R&&x===j)continue}}C.command==="quadraticCurveTo"&&P===0||(D|=TF),D=this._encodePoint(b,o,r,D,OF,ZF),D=this._encodePoint(x,u,a,D,RF,LF),D===l&&n<255?(s[s.length-1]|=MF,n++):(n>0&&(s.push(n),n=0),s.push(D),l=D),o=b,u=x,c++}C.command==="closePath"&&i.push(c-1)}e.commands.length>1&&e.commands[e.commands.length-1].command!=="closePath"&&i.push(c-1);let f=e.bbox,h={numberOfContours:i.length,xMin:f.minX,yMin:f.minY,xMax:f.maxX,yMax:f.maxY,endPtsOfContours:i,instructions:t,flags:s,xPoints:r,yPoints:a},g=vv.size(h),p=4-g%4,v=new tu(g+p);return vv.encode(v,h),p!==0&&v.fill(0,p),v.buffer}_encodePoint(e,t,i,r,a,s){let n=e-t;return e===t?r|=s:(-255<=n&&n<=255&&(r|=a,n<0?n=-n:r|=s),i.push(n)),r}},UF=class extends yv{_addGlyph(e){let t=this.font.getGlyph(e),i=t._decode(),r=this.font.loca.offsets[e],a=this.font.loca.offsets[e+1],s=this.font._getTableStream("glyf");s.pos+=r;let n=s.readBuffer(a-r);if(i&&i.numberOfContours<0){n=new Uint8Array(n);let o=new DataView(n.buffer);for(let u of i.components)e=this.includeGlyph(u.glyphID),o.setUint16(u.pos,e)}else i&&this.font._variationProcessor&&(n=this.glyphEncoder.encodeSimple(t.path,i.instructions));return this.glyf.push(n),this.loca.offsets.push(this.offset),this.hmtx.metrics.push({advance:t.advanceWidth,bearing:t._getMetrics().leftBearing}),this.offset+=n.length,this.glyf.length-1}encode(){this.glyf=[],this.offset=0,this.loca={offsets:[],version:this.font.loca.version},this.hmtx={metrics:[],bearings:[]};let e=0;for(;e<this.glyphs.length;)this._addGlyph(this.glyphs[e++]);let t=(0,Mc.default)(this.font.maxp);t.numGlyphs=this.glyf.length,this.loca.offsets.push(this.offset);let i=(0,Mc.default)(this.font.head);i.indexToLocFormat=this.loca.version;let r=(0,Mc.default)(this.font.hhea);return r.numberOfMetrics=this.hmtx.metrics.length,Rb.toBuffer({tables:{head:i,hhea:r,loca:this.loca,maxp:t,"cvt ":this.font["cvt "],prep:this.font.prep,glyf:this.glyf,hmtx:this.hmtx,fpgm:this.font.fpgm}})}constructor(e){super(e),this.glyphEncoder=new $F}},jF=class extends yv{subsetCharstrings(){this.charstrings=[];let e={};for(let t of this.glyphs){this.charstrings.push(this.cff.getCharString(t));let i=this.font.getGlyph(t);i.path;for(let r in i._usedGsubrs)e[r]=!0}this.gsubrs=this.subsetSubrs(this.cff.globalSubrIndex,e)}subsetSubrs(e,t){let i=[];for(let r=0;r<e.length;r++){let a=e[r];t[r]?(this.cff.stream.pos=a.offset,i.push(this.cff.stream.readBuffer(a.length))):i.push(new Uint8Array([11]))}return i}subsetFontdict(e){e.FDArray=[],e.FDSelect={version:0,fds:[]};let t={},i=[],r={};for(let a of this.glyphs){let s=this.cff.fdForGlyph(a);if(s==null)continue;t[s]||(e.FDArray.push(Object.assign({},this.cff.topDict.FDArray[s])),i.push({}),r[s]=e.FDArray.length-1),t[s]=!0,e.FDSelect.fds.push(r[s]);let n=this.font.getGlyph(a);n.path;for(let o in n._usedSubrs)i[r[s]][o]=!0}for(let a=0;a<e.FDArray.length;a++){let s=e.FDArray[a];delete s.FontName,s.Private&&s.Private.Subrs&&(s.Private=Object.assign({},s.Private),s.Private.Subrs=this.subsetSubrs(s.Private.Subrs,i[a]))}}createCIDFontdict(e){let t={};for(let r of this.glyphs){let a=this.font.getGlyph(r);a.path;for(let s in a._usedSubrs)t[s]=!0}let i=Object.assign({},this.cff.topDict.Private);return this.cff.topDict.Private&&this.cff.topDict.Private.Subrs&&(i.Subrs=this.subsetSubrs(this.cff.topDict.Private.Subrs,t)),e.FDArray=[{Private:i}],e.FDSelect={version:3,nRanges:1,ranges:[{first:0,fd:0}],sentinel:this.charstrings.length}}addString(e){return e?(this.strings||(this.strings=[]),this.strings.push(e),lu.length+this.strings.length-1):null}encode(){this.subsetCharstrings();let e={version:this.charstrings.length>255?2:1,ranges:[{first:1,nLeft:this.charstrings.length-2}]},t=Object.assign({},this.cff.topDict);t.Private=null,t.charset=e,t.Encoding=null,t.CharStrings=this.charstrings;for(let r of["version","Notice","Copyright","FullName","FamilyName","Weight","PostScript","BaseFontName","FontName"])t[r]=this.addString(this.cff.string(t[r]));t.ROS=[this.addString("Adobe"),this.addString("Identity"),0],t.CIDCount=this.charstrings.length,this.cff.isCIDFont?this.subsetFontdict(t):this.createCIDFontdict(t);let i={version:1,hdrSize:this.cff.hdrSize,offSize:4,header:this.cff.header,nameIndex:[this.cff.postscriptName],topDictIndex:[t],stringIndex:this.strings,globalSubrIndex:this.gsubrs};return xb.toBuffer(i)}constructor(e){if(super(e),this.cff=this.font["CFF "],!this.cff)throw new Error("Not a CFF Font")}},ci=class B3{static probe(t){let i=mu.decode(t.slice(0,4));return i==="true"||i==="OTTO"||i==="\0\0\0"}setDefaultLanguage(t=null){this.defaultLanguage=t}_getTable(t){if(!(t.tag in this._tables))try{this._tables[t.tag]=this._decodeTable(t)}catch{}return this._tables[t.tag]}_getTableStream(t){let i=this.directory.tables[t];return i?(this.stream.pos=i.offset,this.stream):null}_decodeDirectory(){return this.directory=Rb.decode(this.stream,{_startOffset:0})}_decodeTable(t){let i=this.stream.pos,r=this._getTableStream(t.tag),a=gu[t.tag].decode(r,this,t.length);return this.stream.pos=i,a}getName(t,i=this.defaultLanguage||nu){let r=this.name&&this.name.records[t];return r&&(r[i]||r[this.defaultLanguage]||r[nu]||r.en||r[Object.keys(r)[0]])||null}get postscriptName(){return this.getName("postscriptName")}get fullName(){return this.getName("fullName")}get familyName(){return this.getName("fontFamily")}get subfamilyName(){return this.getName("fontSubfamily")}get copyright(){return this.getName("copyright")}get version(){return this.getName("version")}get ascent(){return this.hhea.ascent}get descent(){return this.hhea.descent}get lineGap(){return this.hhea.lineGap}get underlinePosition(){return this.post.underlinePosition}get underlineThickness(){return this.post.underlineThickness}get italicAngle(){return this.post.italicAngle}get capHeight(){let t=this["OS/2"];return t?t.capHeight:this.ascent}get xHeight(){let t=this["OS/2"];return t?t.xHeight:0}get numGlyphs(){return this.maxp.numGlyphs}get unitsPerEm(){return this.head.unitsPerEm}get bbox(){return Object.freeze(new Wr(this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax))}get _cmapProcessor(){return new tf(this.cmap)}get characterSet(){return this._cmapProcessor.getCharacterSet()}hasGlyphForCodePoint(t){return!!this._cmapProcessor.lookup(t)}glyphForCodePoint(t){return this.getGlyph(this._cmapProcessor.lookup(t),[t])}glyphsForString(t){let i=[],r=t.length,a=0,s=-1,n=-1;for(;a<=r;){let o=0,u=0;if(a<r){if(o=t.charCodeAt(a++),55296<=o&&o<=56319&&a<r){let l=t.charCodeAt(a);56320<=l&&l<=57343&&(a++,o=((o&1023)<<10)+(l&1023)+65536)}u=65024<=o&&o<=65039||917760<=o&&o<=917999?1:0}else a++;n===0&&u===1?i.push(this.getGlyph(this._cmapProcessor.lookup(s,o),[s,o])):n===0&&u===0&&i.push(this.glyphForCodePoint(s)),s=o,n=u}return i}get _layoutEngine(){return new cF(this)}layout(t,i,r,a,s){return this._layoutEngine.layout(t,i,r,a,s)}stringsForGlyph(t){return this._layoutEngine.stringsForGlyph(t)}get availableFeatures(){return this._layoutEngine.getAvailableFeatures()}getAvailableFeatures(t,i){return this._layoutEngine.getAvailableFeatures(t,i)}_getBaseGlyph(t,i=[]){return this._glyphs[t]||(this.directory.tables.glyf?this._glyphs[t]=new Vu(t,i,this):(this.directory.tables["CFF "]||this.directory.tables.CFF2)&&(this._glyphs[t]=new AF(t,i,this))),this._glyphs[t]||null}getGlyph(t,i=[]){return this._glyphs[t]||(this.directory.tables.sbix?this._glyphs[t]=new DF(t,i,this):this.directory.tables.COLR&&this.directory.tables.CPAL?this._glyphs[t]=new _F(t,i,this):this._getBaseGlyph(t,i)),this._glyphs[t]||null}createSubset(){return this.directory.tables["CFF "]?new jF(this):new UF(this)}get variationAxes(){let t={};if(!this.fvar)return t;for(let i of this.fvar.axis)t[i.axisTag.trim()]={name:i.name.en,min:i.minValue,default:i.defaultValue,max:i.maxValue};return t}get namedVariations(){let t={};if(!this.fvar)return t;for(let i of this.fvar.instance){let r={};for(let a=0;a<this.fvar.axis.length;a++){let s=this.fvar.axis[a];r[s.axisTag.trim()]=i.coord[a]}t[i.name.en]=r}return t}getVariation(t){if(!(this.directory.tables.fvar&&(this.directory.tables.gvar&&this.directory.tables.glyf||this.directory.tables.CFF2)))throw new Error("Variations require a font with the fvar, gvar and glyf, or CFF2 tables.");if(typeof t=="string"&&(t=this.namedVariations[t]),typeof t!="object")throw new Error("Variation settings must be either a variation name or settings object.");let i=this.fvar.axis.map((s,n)=>{let o=s.axisTag.trim();return o in t?Math.max(s.minValue,Math.min(s.maxValue,t[o])):s.defaultValue}),r=new $t(this.stream.buffer);r.pos=this._directoryPos;let a=new B3(r,i);return a._tables=this._tables,a}get _variationProcessor(){if(!this.fvar)return null;let t=this.variationCoords;return!t&&!this.CFF2?null:(t||(t=this.fvar.axis.map(i=>i.defaultValue)),new PF(this,t))}getFont(t){return this.getVariation(t)}constructor(t,i=null){ui(this,"type","TTF"),this.defaultLanguage=null,this.stream=t,this.variationCoords=i,this._directoryPos=this.stream.pos,this._tables={},this._glyphs={},this._decodeDirectory();for(let r in this.directory.tables){let a=this.directory.tables[r];gu[r]&&a.length>0&&Object.defineProperty(this,r,{get:this._getTable.bind(this,a)})}}};Ut([jt],ci.prototype,"bbox",null),Ut([jt],ci.prototype,"_cmapProcessor",null),Ut([jt],ci.prototype,"characterSet",null),Ut([jt],ci.prototype,"_layoutEngine",null),Ut([jt],ci.prototype,"variationAxes",null),Ut([jt],ci.prototype,"namedVariations",null),Ut([jt],ci.prototype,"_variationProcessor",null);var GF=new T({tag:new nt(4),offset:new N(B,"void",{type:"global"}),compLength:B,length:B,origChecksum:B}),wv=new T({tag:new nt(4),flavor:B,length:B,numTables:d,reserved:new yt(d),totalSfntSize:B,majorVersion:d,minorVersion:d,metaOffset:B,metaLength:B,metaOrigLength:B,privOffset:B,privLength:B,tables:new S(GF,"numTables")});wv.process=function(){let e={};for(let t of this.tables)e[t.tag]=t;this.tables=e};var WF=wv,YF=class extends ci{static probe(e){return mu.decode(e.slice(0,4))==="wOFF"}_decodeDirectory(){this.directory=WF.decode(this.stream,{_startOffset:0})}_getTableStream(e){let t=this.directory.tables[e];if(t)if(this.stream.pos=t.offset,t.compLength<t.length){this.stream.pos+=2;let i=new Uint8Array(t.length),r=(0,wD.default)(this.stream.readBuffer(t.compLength-2),i);return new $t(r)}else return this.stream;return null}constructor(...e){super(...e),ui(this,"type","WOFF")}},KF=class extends Vu{_decode(){return this._font._transformedGlyphs[this.id]}_getCBox(){return this.path.bbox}constructor(...e){super(...e),ui(this,"type","WOFF2")}},Cv={decode(e){let t=0,i=[0,1,2,3,4];for(let r=0;r<i.length;r++){let a=e.readUInt8();if(t&3758096384)throw new Error("Overflow");if(t=t<<7|a&127,!(a&128))return t}throw new Error("Bad base 128 number")}},XF=["cmap","head","hhea","hmtx","maxp","name","OS/2","post","cvt ","fpgm","glyf","loca","prep","CFF ","VORG","EBDT","EBLC","gasp","hdmx","kern","LTSH","PCLT","VDMX","vhea","vmtx","BASE","GDEF","GPOS","GSUB","EBSC","JSTF","MATH","CBDT","CBLC","COLR","CPAL","SVG ","sbix","acnt","avar","bdat","bloc","bsln","cvar","fdsc","feat","fmtx","fvar","gvar","hsty","just","lcar","mort","morx","opbd","prop","trak","Zapf","Silf","Glat","Gloc","Feat","Sill"],HF=new T({flags:oe,customTag:new iu(new nt(4),e=>(e.flags&63)===63),tag:e=>e.customTag||XF[e.flags&63],length:Cv,transformVersion:e=>e.flags>>>6&3,transformed:e=>e.tag==="glyf"||e.tag==="loca"?e.transformVersion===0:e.transformVersion!==0,transformLength:new iu(Cv,e=>e.transformed)}),xv=new T({tag:new nt(4),flavor:B,length:B,numTables:d,reserved:new yt(d),totalSfntSize:B,totalCompressedSize:B,majorVersion:d,minorVersion:d,metaOffset:B,metaLength:B,metaOrigLength:B,privOffset:B,privLength:B,tables:new S(HF,"numTables")});xv.process=function(){let e={};for(let t=0;t<this.tables.length;t++){let i=this.tables[t];e[i.tag]=i}return this.tables=e};var JF=xv,qF=class extends ci{static probe(e){return mu.decode(e.slice(0,4))==="wOF2"}_decodeDirectory(){this.directory=JF.decode(this.stream),this._dataPos=this.stream.pos}_decompress(){if(!this._decompressed){this.stream.pos=this._dataPos;let e=this.stream.readBuffer(this.directory.totalCompressedSize),t=0;for(let r in this.directory.tables){let a=this.directory.tables[r];a.offset=t,t+=a.transformLength!=null?a.transformLength:a.length}let i=(0,CD.default)(e,t);if(!i)throw new Error("Error decoding compressed data in WOFF2");this.stream=new $t(i),this._decompressed=!0}}_decodeTable(e){return this._decompress(),super._decodeTable(e)}_getBaseGlyph(e,t=[]){if(!this._glyphs[e])return this.directory.tables.glyf&&this.directory.tables.glyf.transformed?(this._transformedGlyphs||this._transformGlyfTable(),this._glyphs[e]=new KF(e,t,this)):super._getBaseGlyph(e,t)}_transformGlyfTable(){this._decompress(),this.stream.pos=this.directory.tables.glyf.offset;let e=QF.decode(this.stream),t=[];for(let r=0;r<e.numGlyphs;r++){let a={},s=e.nContours.readInt16BE();if(a.numberOfContours=s,s>0){let n=[],o=0;for(let u=0;u<s;u++){let l=ff(e.nPoints);o+=l,n.push(o)}a.points=aI(e.flags,e.glyphs,o);for(let u=0;u<s;u++)a.points[n[u]-1].endContour=!0;var i=ff(e.glyphs)}else if(s<0&&Vu.prototype._decodeComposite.call({_font:this},a,e.composites))var i=ff(e.glyphs);t.push(a)}this._transformedGlyphs=t}constructor(...e){super(...e),ui(this,"type","WOFF2")}},dr=class{decode(e,t){return new $t(this._buf.decode(e,t))}constructor(e){this.length=e,this._buf=new Wi(e)}},QF=new T({version:B,numGlyphs:d,indexFormat:d,nContourStreamSize:B,nPointsStreamSize:B,flagStreamSize:B,glyphStreamSize:B,compositeStreamSize:B,bboxStreamSize:B,instructionStreamSize:B,nContours:new dr("nContourStreamSize"),nPoints:new dr("nPointsStreamSize"),flags:new dr("flagStreamSize"),glyphs:new dr("glyphStreamSize"),composites:new dr("compositeStreamSize"),bboxes:new dr("bboxStreamSize"),instructions:new dr("instructionStreamSize")}),eI=253,tI=254,iI=255,Ev=253;function ff(e){let t=e.readUInt8();return t===eI?e.readUInt16BE():t===iI?e.readUInt8()+Ev:t===tI?e.readUInt8()+Ev*2:t}function Ji(e,t){return e&1?t:-t}function aI(e,t,i){let r,a=r=0,s=[];for(let u=0;u<i;u++){let l=0,c=0,f=e.readUInt8(),h=!(f>>7);if(f&=127,f<10)l=0,c=Ji(f,((f&14)<<7)+t.readUInt8());else if(f<20)l=Ji(f,((f-10&14)<<7)+t.readUInt8()),c=0;else if(f<84){var n=f-20,o=t.readUInt8();l=Ji(f,1+(n&48)+(o>>4)),c=Ji(f>>1,1+((n&12)<<2)+(o&15))}else if(f<120){var n=f-84;l=Ji(f,1+(n/12<<8)+t.readUInt8()),c=Ji(f>>1,1+(n%12>>2<<8)+t.readUInt8())}else if(f<124){var o=t.readUInt8();let p=t.readUInt8();l=Ji(f,(o<<4)+(p>>4)),c=Ji(f>>1,((p&15)<<8)+t.readUInt8())}else l=Ji(f,t.readUInt16BE()),c=Ji(f>>1,t.readUInt16BE());a+=l,r+=c,s.push(new da(h,!1,a,r))}return s}var rI=new Ye(B,{65536:{numFonts:B,offsets:new S(B,"numFonts")},131072:{numFonts:B,offsets:new S(B,"numFonts"),dsigTag:B,dsigLength:B,dsigOffset:B}}),sI=class{static probe(e){return mu.decode(e.slice(0,4))==="ttcf"}getFont(e){for(let t of this.header.offsets){let i=new $t(this.stream.buffer);i.pos=t;let r=new ci(i);if(r.postscriptName===e||r.postscriptName instanceof Uint8Array&&e instanceof Uint8Array&&r.postscriptName.every((a,s)=>e[s]===a))return r}return null}get fonts(){let e=[];for(let t of this.header.offsets){let i=new $t(this.stream.buffer);i.pos=t,e.push(new ci(i))}return e}constructor(e){if(ui(this,"type","TTC"),this.stream=e,e.readString(4)!=="ttcf")throw new Error("Not a TrueType collection");this.header=rI.decode(e)}},nI=new nt(oe);new T({len:B,buf:new Wi("len")});var oI=new T({id:d,nameOffset:K,attr:oe,dataOffset:Ia,handle:B}),uI=new T({name:new nt(4),maxTypeIndex:d,refList:new N(d,new S(oI,e=>e.maxTypeIndex+1),{type:"parent"})}),lI=new T({length:d,types:new S(uI,e=>e.length+1)}),cI=new T({reserved:new yt(oe,24),typeList:new N(d,lI),nameListOffset:new N(d,"void")}),Av=new T({dataOffset:B,map:new N(B,cI),dataLength:B,mapLength:B}),fI=class{static probe(e){let t=new $t(e);try{var i=Av.decode(t)}catch{return!1}for(let r of i.map.typeList.types)if(r.name==="sfnt")return!0;return!1}getFont(e){if(!this.sfnt)return null;for(let t of this.sfnt.refList){let i=this.header.dataOffset+t.dataOffset+4,r=new $t(this.stream.buffer.slice(i)),a=new ci(r);if(a.postscriptName===e||a.postscriptName instanceof Uint8Array&&e instanceof Uint8Array&&a.postscriptName.every((s,n)=>e[n]===s))return a}return null}get fonts(){let e=[];for(let t of this.sfnt.refList){let i=this.header.dataOffset+t.dataOffset+4,r=new $t(this.stream.buffer.slice(i));e.push(new ci(r))}return e}constructor(e){ui(this,"type","DFont"),this.stream=e,this.header=Av.decode(this.stream);for(let t of this.header.map.typeList.types){for(let i of t.refList)i.nameOffset>=0?(this.stream.pos=i.nameOffset+this.header.map.nameListOffset,i.name=nI.decode(this.stream)):i.name=null;t.name==="sfnt"&&(this.sfnt=t)}}};Lr(ci),Lr(YF),Lr(qF),Lr(sI),Lr(fI);function zu(e){if(e==null)return"400";if(typeof e=="number")return String(e);const t=String(e).toLowerCase().trim(),i={thin:"100",hairline:"100",extralight:"200",ultralight:"200",light:"300",normal:"400",regular:"400",medium:"500",semibold:"600",demibold:"600",bold:"700",extrabold:"800",ultrabold:"800",black:"900",heavy:"900"};if(i[t])return i[t];const r=parseInt(String(e),10);return!isNaN(r)&&r>=100&&r<=900?String(r):(console.warn(`Invalid font weight "${e}", defaulting to 400`),"400")}var rn=class mt{constructor(t){xt(this,"hb"),xt(this,"faces",new Map),xt(this,"fonts",new Map),xt(this,"blobs",new Map),xt(this,"fontkitFonts",new Map),xt(this,"fontkitBaseFonts",new Map),xt(this,"colorEmojiFonts",new Set),xt(this,"colorEmojiFontBytes",new Map),xt(this,"registeredCanvasFonts",new Set),xt(this,"wasmBaseURL"),xt(this,"initPromise"),xt(this,"emojiFallbackDesc"),this.wasmBaseURL=t}static setFallbackLoader(t){mt.fallbackLoader=t}static async getSharedInstance(t){if(mt.sharedInitPromise){const i=await mt.sharedInitPromise;return mt.refCount++,i}if(mt.sharedInstance)return mt.refCount++,mt.sharedInstance;mt.sharedInitPromise=(async()=>{const i=new mt(t);return await i.init(),mt.sharedInstance=i,mt.refCount=1,i})();try{return await mt.sharedInitPromise}finally{mt.sharedInitPromise=null}}static getRefCount(){return mt.refCount}static hasSharedInstance(){return mt.sharedInstance!==null}release(){if(this!==mt.sharedInstance){this.destroy();return}mt.refCount--,mt.refCount<=0&&(this.destroy(),mt.sharedInstance=null,mt.refCount=0)}static resetSharedInstance(){mt.sharedInstance&&(mt.sharedInstance.destroy(),mt.sharedInstance=null),mt.refCount=0,mt.sharedInitPromise=null}setEmojiFallback(t){this.emojiFallbackDesc=t}isColorEmojiFont(t){return this.colorEmojiFonts.has(t)}getColorEmojiFontBytes(t){return this.colorEmojiFontBytes.get(t)}getColorEmojiFontFamilies(){return Array.from(this.colorEmojiFonts)}detectColorEmojiFont(t){try{if(t.directory&&t.directory.tables){const i=t.directory.tables;if(i.CBDT||i.CBLC||i.sbix||i.COLR&&i.CPAL||i.SVG)return!0}if(t.availableTables){const i=t.availableTables;if(i.includes("CBDT")||i.includes("CBLC")||i.includes("sbix")||i.includes("COLR")&&i.includes("CPAL")||i.includes("SVG"))return!0}if(t._tables){const i=Object.keys(t._tables);if(i.includes("CBDT")||i.includes("CBLC")||i.includes("sbix")||i.includes("COLR")&&i.includes("CPAL")||i.includes("SVG"))return!0}return!1}catch{return!1}}async init(){if(this.initPromise){await this.initPromise;return}if(!this.hb){this.initPromise=this._doInit();try{await this.initPromise}catch(t){throw new Error(`Failed to initialize FontRegistry: ${t instanceof Error?t.message:String(t)}`)}}}async _doInit(){try{this.hb=await Hk("https://shotstack-ingest-api-dev-sources.s3.ap-southeast-2.amazonaws.com/euo5r93oyr/zzz01k9h-yycyx-2x2y6-qx9bj-7n567b/source.wasm")}catch(t){throw this.initPromise=void 0,t}}async getHB(){if(!this.hb)try{await this.init()}catch(t){throw new Error(`Failed to get HarfBuzz instance: ${t instanceof Error?t.message:String(t)}`)}return this.hb}key(t){const i=zu(t.weight);return`${t.family}__${i}`}hasRegisteredFace(t){return this.faces.has(this.key(t))}async registerFromBytes(t,i){try{this.hb||await this.init();const r=this.key(i);if(this.fonts.has(r))return;const a=this.hb.createBlob(t),s=this.hb.createFace(a,0),n=this.hb.createFont(s),o=s.upem||1e3;n.setScale(o,o);const u=zu(i.weight),l=parseInt(u,10);if(l!==400&&typeof n.setVariations=="function")try{n.setVariations(`wght=${l}`)}catch{}this.blobs.set(r,a),this.faces.set(r,s),this.fonts.set(r,n);try{const c=typeof Buffer<"u"?Buffer.from(t):new Uint8Array(t),f=qy(c),h=i.family;if(this.fontkitBaseFonts.has(h)||this.fontkitBaseFonts.set(h,f),this.detectColorEmojiFont(f)&&(this.colorEmojiFonts.add(i.family),this.colorEmojiFontBytes.has(i.family)||this.colorEmojiFontBytes.set(i.family,t.slice(0))),f.variationAxes&&Object.keys(f.variationAxes).length>0){const p=f.getVariation({wght:l});this.fontkitFonts.set(r,p)}else this.fontkitFonts.set(r,f)}catch(c){console.warn(`⚠️ Fontkit failed for ${i.family}:`,c)}await this.registerWithCanvas(i.family,t)}catch(r){throw new Error(`Failed to register font "${i.family}": ${r instanceof Error?r.message:String(r)}`)}}async tryFallbackInstall(t){const i=mt.fallbackLoader;if(!i)return!1;try{const r=zu(t.weight),a=await i({family:t.family,weight:r});return a?(await this.registerFromBytes(a,{family:t.family,weight:r}),!0):!1}catch{return!1}}async getFont(t){try{this.hb||await this.init();const i=this.key(t);let r=this.fonts.get(i);if(r||(r=await this.tryFallbackInstall(t)?this.fonts.get(i):void 0),r||(r=await this.tryDeriveFromExistingFont(t)),!r)throw new Error(`Font not registered for ${i}`);return r}catch(i){throw i instanceof Error&&i.message.includes("Font not registered")?i:new Error(`Failed to get font "${t.family}": ${i instanceof Error?i.message:String(i)}`)}}async tryDeriveFromExistingFont(t){const i=t.family,r=zu(t.weight),a=parseInt(r,10);let s;for(const[h,g]of this.blobs)if(h.startsWith(`${i}__`)){s=g;break}const n=this.fontkitBaseFonts.get(i);if(!s||!n)return;if(!(n.variationAxes&&n.variationAxes.wght!==void 0)){console.warn(`Font ${i} is not a variable font, cannot derive weight ${r}`);return}const u=this.key(t),l=this.hb.createFace(s,0),c=this.hb.createFont(l),f=l.upem||1e3;if(c.setScale(f,f),typeof c.setVariations=="function")try{c.setVariations(`wght=${a}`)}catch{}this.faces.set(u,l),this.fonts.set(u,c);try{const h=n.getVariation({wght:a});this.fontkitFonts.set(u,h)}catch{this.fontkitFonts.set(u,n),console.warn(`⚠️ Could not apply weight variation, using base font for ${i}`)}return c}async getFace(t){try{this.hb||await this.init();const i=this.key(t);let r=this.faces.get(i);return r||(r=await this.tryFallbackInstall(t)?this.faces.get(i):void 0),r||(await this.tryDeriveFromExistingFont(t),r=this.faces.get(i)),r}catch(i){throw new Error(`Failed to get face for "${t.family}": ${i instanceof Error?i.message:String(i)}`)}}async getUnitsPerEm(t){try{return(await this.getFace(t))?.upem||1e3}catch(i){throw new Error(`Failed to get units per em for "${t.family}": ${i instanceof Error?i.message:String(i)}`)}}async glyphPath(t,i){const r=this.key(t);try{const a=this.fontkitFonts.get(r);if(a){const o=a.getGlyph(i);if(o&&o.path){const u=o.path.toSVG();return u&&u!==""?u:"M 0 0"}}const n=(await this.getFont(t)).glyphToPath(i);return n&&n!==""?n:"M 0 0"}catch(a){throw new Error(`Failed to get glyph path for glyph ${i} in font "${t.family}": ${a instanceof Error?a.message:String(a)}`)}}async registerWithCanvas(t,i){if(!this.registeredCanvasFonts.has(t)&&!(typeof window<"u"))try{const a=(await import("canvas")).GlobalFonts;if(a&&typeof a.register=="function"){const s=Buffer.from(i);a.register(s,t),this.registeredCanvasFonts.add(t)}}catch{}}destroy(){try{for(const[,t]of this.fonts)try{t.destroy()}catch(i){console.error(`Error destroying font: ${i instanceof Error?i.message:String(i)}`)}for(const[,t]of this.faces)try{t.destroy()}catch(i){console.error(`Error destroying face: ${i instanceof Error?i.message:String(i)}`)}for(const[,t]of this.blobs)try{t.destroy()}catch(i){console.error(`Error destroying blob: ${i instanceof Error?i.message:String(i)}`)}this.fonts.clear(),this.faces.clear(),this.blobs.clear(),this.fontkitFonts.clear(),this.fontkitBaseFonts.clear(),this.colorEmojiFonts.clear(),this.colorEmojiFontBytes.clear(),this.registeredCanvasFonts.clear(),this.hb=void 0,this.initPromise=void 0}catch(t){console.error(`Error during FontRegistry cleanup: ${t instanceof Error?t.message:String(t)}`)}}};xt(rn,"sharedInstance",null),xt(rn,"refCount",0),xt(rn,"sharedInitPromise",null),xt(rn,"fallbackLoader");var kv=rn;function dI(){var e=function(t){var i={R:"13k,1a,2,3,3,2+1j,ch+16,a+1,5+2,2+n,5,a,4,6+16,4+3,h+1b,4mo,179q,2+9,2+11,2i9+7y,2+68,4,3+4,5+13,4+3,2+4k,3+29,8+cf,1t+7z,w+17,3+3m,1t+3z,16o1+5r,8+30,8+mc,29+1r,29+4v,75+73",EN:"1c+9,3d+1,6,187+9,513,4+5,7+9,sf+j,175h+9,qw+q,161f+1d,4xt+a,25i+9",ES:"17,2,6dp+1,f+1,av,16vr,mx+1,4o,2",ET:"z+2,3h+3,b+1,ym,3e+1,2o,p4+1,8,6u,7c,g6,1wc,1n9+4,30+1b,2n,6d,qhx+1,h0m,a+1,49+2,63+1,4+1,6bb+3,12jj",AN:"16o+5,2j+9,2+1,35,ed,1ff2+9,87+u",CS:"18,2+1,b,2u,12k,55v,l,17v0,2,3,53,2+1,b",B:"a,3,f+2,2v,690",S:"9,2,k",WS:"c,k,4f4,1vk+a,u,1j,335",ON:"x+1,4+4,h+5,r+5,r+3,z,5+3,2+1,2+1,5,2+2,3+4,o,w,ci+1,8+d,3+d,6+8,2+g,39+1,9,6+1,2,33,b8,3+1,3c+1,7+1,5r,b,7h+3,sa+5,2,3i+6,jg+3,ur+9,2v,ij+1,9g+9,7+a,8m,4+1,49+x,14u,2+2,c+2,e+2,e+2,e+1,i+n,e+e,2+p,u+2,e+2,36+1,2+3,2+1,b,2+2,6+5,2,2,2,h+1,5+4,6+3,3+f,16+2,5+3l,3+81,1y+p,2+40,q+a,m+13,2r+ch,2+9e,75+hf,3+v,2+2w,6e+5,f+6,75+2a,1a+p,2+2g,d+5x,r+b,6+3,4+o,g,6+1,6+2,2k+1,4,2j,5h+z,1m+1,1e+f,t+2,1f+e,d+3,4o+3,2s+1,w,535+1r,h3l+1i,93+2,2s,b+1,3l+x,2v,4g+3,21+3,kz+1,g5v+1,5a,j+9,n+v,2,3,2+8,2+1,3+2,2,3,46+1,4+4,h+5,r+5,r+a,3h+2,4+6,b+4,78,1r+24,4+c,4,1hb,ey+6,103+j,16j+c,1ux+7,5+g,fsh,jdq+1t,4,57+2e,p1,1m,1m,1m,1m,4kt+1,7j+17,5+2r,d+e,3+e,2+e,2+10,m+4,w,1n+5,1q,4z+5,4b+rb,9+c,4+c,4+37,d+2g,8+b,l+b,5+1j,9+9,7+13,9+t,3+1,27+3c,2+29,2+3q,d+d,3+4,4+2,6+6,a+o,8+6,a+2,e+6,16+42,2+1i",BN:"0+8,6+d,2s+5,2+p,e,4m9,1kt+2,2b+5,5+5,17q9+v,7k,6p+8,6+1,119d+3,440+7,96s+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+75,6p+2rz,1ben+1,1ekf+1,1ekf+1",NSM:"lc+33,7o+6,7c+18,2,2+1,2+1,2,21+a,1d+k,h,2u+6,3+5,3+1,2+3,10,v+q,2k+a,1n+8,a,p+3,2+8,2+2,2+4,18+2,3c+e,2+v,1k,2,5+7,5,4+6,b+1,u,1n,5+3,9,l+1,r,3+1,1m,5+1,5+1,3+2,4,v+1,4,c+1,1m,5+4,2+1,5,l+1,n+5,2,1n,3,2+3,9,8+1,c+1,v,1q,d,1f,4,1m+2,6+2,2+3,8+1,c+1,u,1n,g+1,l+1,t+1,1m+1,5+3,9,l+1,u,21,8+2,2,2j,3+6,d+7,2r,3+8,c+5,23+1,s,2,2,1k+d,2+4,2+1,6+a,2+z,a,2v+3,2+5,2+1,3+1,q+1,5+2,h+3,e,3+1,7,g,jk+2,qb+2,u+2,u+1,v+1,1t+1,2+6,9,3+a,a,1a+2,3c+1,z,3b+2,5+1,a,7+2,64+1,3,1n,2+6,2,2,3+7,7+9,3,1d+g,1s+3,1d,2+4,2,6,15+8,d+1,x+3,3+1,2+2,1l,2+1,4,2+2,1n+7,3+1,49+2,2+c,2+6,5,7,4+1,5j+1l,2+4,k1+w,2db+2,3y,2p+v,ff+3,30+1,n9x+3,2+9,x+1,29+1,7l,4,5,q+1,6,48+1,r+h,e,13+7,q+a,1b+2,1d,3+3,3+1,14,1w+5,3+1,3+1,d,9,1c,1g,2+2,3+1,6+1,2,17+1,9,6n,3,5,fn5,ki+f,h+f,r2,6b,46+4,1af+2,2+1,6+3,15+2,5,4m+1,fy+3,as+1,4a+a,4x,1j+e,1l+2,1e+3,3+1,1y+2,11+4,2+7,1r,d+1,1h+8,b+3,3,2o+2,3,2+1,7,4h,4+7,m+1,1m+1,4,12+6,4+4,5g+7,3+2,2,o,2d+5,2,5+1,2+1,6n+3,7+1,2+1,s+1,2e+7,3,2+1,2z,2,3+5,2,2u+2,3+3,2+4,78+8,2+1,75+1,2,5,41+3,3+1,5,x+5,3+1,15+5,3+3,9,a+5,3+2,1b+c,2+1,bb+6,2+5,2d+l,3+6,2+1,2+1,3f+5,4,2+1,2+6,2,21+1,4,2,9o+1,f0c+4,1o+6,t5,1s+3,2a,f5l+1,43t+2,i+7,3+6,v+3,45+2,1j0+1i,5+1d,9,f,n+4,2+e,11t+6,2+g,3+6,2+1,2+4,7a+6,c6+3,15t+6,32+6,gzhy+6n",AL:"16w,3,2,e+1b,z+2,2+2s,g+1,8+1,b+m,2+t,s+2i,c+e,4h+f,1d+1e,1bwe+dp,3+3z,x+c,2+1,35+3y,2rm+z,5+7,b+5,dt+l,c+u,17nl+27,1t+27,4x+6n,3+d",LRO:"6ct",RLO:"6cu",LRE:"6cq",RLE:"6cr",PDF:"6cs",LRI:"6ee",RLI:"6ef",FSI:"6eg",PDI:"6eh"},r={},a={};r.L=1,a[1]="L",Object.keys(i).forEach(function(W,ee){r[W]=1<<ee+1,a[r[W]]=W}),Object.freeze(r);var s=r.LRI|r.RLI|r.FSI,n=r.L|r.R|r.AL,o=r.B|r.S|r.WS|r.ON|r.FSI|r.LRI|r.RLI|r.PDI,u=r.BN|r.RLE|r.LRE|r.RLO|r.LRO|r.PDF,l=r.S|r.WS|r.B|s|r.PDI|u,c=null;function f(){if(!c){c=new Map;var W=function(pe){if(i.hasOwnProperty(pe)){var q=0;i[pe].split(",").forEach(function(Me){var xe=Me.split("+"),ke=xe[0],me=xe[1];ke=parseInt(ke,36),me=me?parseInt(me,36):0,c.set(q+=ke,r[pe]);for(var Je=0;Je<me;Je++)c.set(++q,r[pe])})}};for(var ee in i)W(ee)}}function h(W){return f(),c.get(W.codePointAt(0))||r.L}function g(W){return a[h(W)]}var p={pairs:"14>1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function v(W,ee){var pe=36,q=0,Me=new Map,xe=ee&&new Map,ke;return W.split(",").forEach(function me(Je){if(Je.indexOf("+")!==-1)for(var it=+Je;it--;)me(ke);else{ke=Je;var fe=Je.split(">"),_t=fe[0],Gt=fe[1];_t=String.fromCodePoint(q+=parseInt(_t,pe)),Gt=String.fromCodePoint(q+=parseInt(Gt,pe)),Me.set(_t,Gt),ee&&xe.set(Gt,_t)}}),{map:Me,reverseMap:xe}}var k,C,P;function b(){if(!k){var W=v(p.pairs,!0),ee=W.map,pe=W.reverseMap;k=ee,C=pe,P=v(p.canonical,!1).map}}function x(W){return b(),k.get(W)||null}function D(W){return b(),C.get(W)||null}function w(W){return b(),P.get(W)||null}var R=r.L,j=r.R,$=r.EN,z=r.ES,ie=r.ET,O=r.AN,H=r.CS,X=r.B,we=r.S,de=r.ON,ye=r.BN,U=r.NSM,Q=r.AL,se=r.LRO,Ee=r.RLO,Fe=r.LRE,Re=r.RLE,et=r.PDF,tt=r.LRI,Ke=r.RLI,Ot=r.FSI,qe=r.PDI;function L(W,ee){for(var pe=125,q=new Uint32Array(W.length),Me=0;Me<W.length;Me++)q[Me]=h(W[Me]);var xe=new Map;function ke(hi,Mi){var gi=q[hi];q[hi]=Mi,xe.set(gi,xe.get(gi)-1),gi&o&&xe.set(o,xe.get(o)-1),xe.set(Mi,(xe.get(Mi)||0)+1),Mi&o&&xe.set(o,(xe.get(o)||0)+1)}for(var me=new Uint8Array(W.length),Je=new Map,it=[],fe=null,_t=0;_t<W.length;_t++)fe||it.push(fe={start:_t,end:W.length-1,level:ee==="rtl"?1:ee==="ltr"?0:x3(_t,!1)}),q[_t]&X&&(fe.end=_t,fe=null);for(var Gt=Re|Fe|Ee|se|s|qe|et|X,ft=function(hi){return hi+(hi&1?1:2)},wi=function(hi){return hi+(hi&1?2:1)},Bt=0;Bt<it.length;Bt++){fe=it[Bt];var Ge=[{_level:fe.level,_override:0,_isolate:0}],Ze=void 0,Kt=0,ri=0,Lt=0;xe.clear();for(var bt=fe.start;bt<=fe.end;bt++){var At=q[bt];if(Ze=Ge[Ge.length-1],xe.set(At,(xe.get(At)||0)+1),At&o&&xe.set(o,(xe.get(o)||0)+1),At&Gt)if(At&(Re|Fe)){me[bt]=Ze._level;var mr=(At===Re?wi:ft)(Ze._level);mr<=pe&&!Kt&&!ri?Ge.push({_level:mr,_override:0,_isolate:0}):Kt||ri++}else if(At&(Ee|se)){me[bt]=Ze._level;var ya=(At===Ee?wi:ft)(Ze._level);ya<=pe&&!Kt&&!ri?Ge.push({_level:ya,_override:At&Ee?j:R,_isolate:0}):Kt||ri++}else if(At&s){At&Ot&&(At=x3(bt+1,!0)===1?Ke:tt),me[bt]=Ze._level,Ze._override&&ke(bt,Ze._override);var ba=(At===Ke?wi:ft)(Ze._level);ba<=pe&&Kt===0&&ri===0?(Lt++,Ge.push({_level:ba,_override:0,_isolate:1,_isolInitIndex:bt})):Kt++}else if(At&qe){if(Kt>0)Kt--;else if(Lt>0){for(ri=0;!Ge[Ge.length-1]._isolate;)Ge.pop();var $a=Ge[Ge.length-1]._isolInitIndex;$a!=null&&(Je.set($a,bt),Je.set(bt,$a)),Ge.pop(),Lt--}Ze=Ge[Ge.length-1],me[bt]=Ze._level,Ze._override&&ke(bt,Ze._override)}else At&et?(Kt===0&&(ri>0?ri--:!Ze._isolate&&Ge.length>1&&(Ge.pop(),Ze=Ge[Ge.length-1])),me[bt]=Ze._level):At&X&&(me[bt]=fe.level);else me[bt]=Ze._level,Ze._override&&At!==ye&&ke(bt,Ze._override)}for(var Bi=[],si=null,Ci=fe.start;Ci<=fe.end;Ci++){var Xt=q[Ci];if(!(Xt&u)){var va=me[Ci],yr=Xt&s,_=Xt===qe;si&&va===si._level?(si._end=Ci,si._endsWithIsolInit=yr):Bi.push(si={_start:Ci,_end:Ci,_level:va,_startsWithPDI:_,_endsWithIsolInit:yr})}}for(var ce=[],Ue=0;Ue<Bi.length;Ue++){var at=Bi[Ue];if(!at._startsWithPDI||at._startsWithPDI&&!Je.has(at._start)){for(var Xe=[si=at],zt=void 0;si&&si._endsWithIsolInit&&(zt=Je.get(si._end))!=null;)for(var xi=Ue+1;xi<Bi.length;xi++)if(Bi[xi]._start===zt){Xe.push(si=Bi[xi]);break}for(var Oi=[],br=0;br<Xe.length;br++)for(var gn=Xe[br],Ua=gn._start;Ua<=gn._end;Ua++)Oi.push(Ua);for(var vr=me[Oi[0]],qr=fe.level,ja=Oi[0]-1;ja>=0;ja--)if(!(q[ja]&u)){qr=me[ja];break}var wr=Oi[Oi.length-1],Ht=me[wr],Jt=fe.level;if(!(q[wr]&s)){for(var di=wr+1;di<=fe.end;di++)if(!(q[di]&u)){Jt=me[di];break}}ce.push({_seqIndices:Oi,_sosType:Math.max(qr,vr)%2?j:R,_eosType:Math.max(Jt,Ht)%2?j:R})}}for(var wa=0;wa<ce.length;wa++){var ea=ce[wa],Ce=ea._seqIndices,Ca=ea._sosType,Hu=ea._eosType,Fi=me[Ce[0]]&1?j:R;if(xe.get(U))for(var Cr=0;Cr<Ce.length;Cr++){var pn=Ce[Cr];if(q[pn]&U){for(var mn=Ca,Qr=Cr-1;Qr>=0;Qr--)if(!(q[Ce[Qr]]&u)){mn=q[Ce[Qr]];break}ke(pn,mn&(s|qe)?de:mn)}}if(xe.get($))for(var xr=0;xr<Ce.length;xr++){var es=Ce[xr];if(q[es]&$)for(var xa=xr-1;xa>=-1;xa--){var o3=xa===-1?Ca:q[Ce[xa]];if(o3&n){o3===Q&&ke(es,O);break}}}if(xe.get(Q))for(var Nf=0;Nf<Ce.length;Nf++){var u3=Ce[Nf];q[u3]&Q&&ke(u3,j)}if(xe.get(z)||xe.get(H))for(var yn=1;yn<Ce.length-1;yn++){var Bf=Ce[yn];if(q[Bf]&(z|H)){for(var ts=0,Ff=0,If=yn-1;If>=0&&(ts=q[Ce[If]],!!(ts&u));If--);for(var Vf=yn+1;Vf<Ce.length&&(Ff=q[Ce[Vf]],!!(Ff&u));Vf++);ts===Ff&&(q[Bf]===z?ts===$:ts&($|O))&&ke(Bf,ts)}}if(xe.get($))for(var ta=0;ta<Ce.length;ta++){var Ez=Ce[ta];if(q[Ez]&$){for(var Ju=ta-1;Ju>=0&&q[Ce[Ju]]&(ie|u);Ju--)ke(Ce[Ju],$);for(ta++;ta<Ce.length&&q[Ce[ta]]&(ie|u|$);ta++)q[Ce[ta]]!==$&&ke(Ce[ta],$)}}if(xe.get(ie)||xe.get(z)||xe.get(H))for(var bn=0;bn<Ce.length;bn++){var l3=Ce[bn];if(q[l3]&(ie|z|H)){ke(l3,de);for(var qu=bn-1;qu>=0&&q[Ce[qu]]&u;qu--)ke(Ce[qu],de);for(var Qu=bn+1;Qu<Ce.length&&q[Ce[Qu]]&u;Qu++)ke(Ce[Qu],de)}}if(xe.get($))for(var zf=0,c3=Ca;zf<Ce.length;zf++){var f3=Ce[zf],Pf=q[f3];Pf&$?c3===R&&ke(f3,R):Pf&n&&(c3=Pf)}if(xe.get(o)){var vn=j|$|O,d3=vn|R,el=[];{for(var is=[],as=0;as<Ce.length;as++)if(q[Ce[as]]&o){var wn=W[Ce[as]],h3=void 0;if(x(wn)!==null)if(is.length<63)is.push({char:wn,seqIndex:as});else break;else if((h3=D(wn))!==null)for(var Cn=is.length-1;Cn>=0;Cn--){var Tf=is[Cn].char;if(Tf===h3||Tf===D(w(wn))||x(w(Tf))===wn){el.push([is[Cn].seqIndex,as]),is.length=Cn;break}}}el.sort(function(hi,Mi){return hi[0]-Mi[0]})}for(var Of=0;Of<el.length;Of++){for(var g3=el[Of],tl=g3[0],Rf=g3[1],p3=!1,Ri=0,Mf=tl+1;Mf<Rf;Mf++){var m3=Ce[Mf];if(q[m3]&d3){p3=!0;var y3=q[m3]&vn?j:R;if(y3===Fi){Ri=y3;break}}}if(p3&&!Ri){Ri=Ca;for(var Zf=tl-1;Zf>=0;Zf--){var b3=Ce[Zf];if(q[b3]&d3){var v3=q[b3]&vn?j:R;v3!==Fi?Ri=v3:Ri=Fi;break}}}if(Ri){if(q[Ce[tl]]=q[Ce[Rf]]=Ri,Ri!==Fi){for(var xn=tl+1;xn<Ce.length;xn++)if(!(q[Ce[xn]]&u)){h(W[Ce[xn]])&U&&(q[Ce[xn]]=Ri);break}}if(Ri!==Fi){for(var En=Rf+1;En<Ce.length;En++)if(!(q[Ce[En]]&u)){h(W[Ce[En]])&U&&(q[Ce[En]]=Ri);break}}}}for(var Ga=0;Ga<Ce.length;Ga++)if(q[Ce[Ga]]&o){for(var w3=Ga,Lf=Ga,$f=Ca,An=Ga-1;An>=0;An--)if(q[Ce[An]]&u)w3=An;else{$f=q[Ce[An]]&vn?j:R;break}for(var C3=Hu,kn=Ga+1;kn<Ce.length;kn++)if(q[Ce[kn]]&(o|u))Lf=kn;else{C3=q[Ce[kn]]&vn?j:R;break}for(var Uf=w3;Uf<=Lf;Uf++)q[Ce[Uf]]=$f===C3?$f:Fi;Ga=Lf}}}for(var Ei=fe.start;Ei<=fe.end;Ei++){var Az=me[Ei],il=q[Ei];if(Az&1?il&(R|$|O)&&me[Ei]++:il&j?me[Ei]++:il&(O|$)&&(me[Ei]+=2),il&u&&(me[Ei]=Ei===0?fe.level:me[Ei-1]),Ei===fe.end||h(W[Ei])&(we|X))for(var al=Ei;al>=0&&h(W[al])&l;al--)me[al]=fe.level}}return{levels:me,paragraphs:it};function x3(hi,Mi){for(var gi=hi;gi<W.length;gi++){var Wa=q[gi];if(Wa&(j|Q))return 1;if(Wa&(X|R)||Mi&&Wa===qe)return 0;if(Wa&s){var E3=kz(gi);gi=E3===-1?W.length:E3}}return 0}function kz(hi){for(var Mi=1,gi=hi+1;gi<W.length;gi++){var Wa=q[gi];if(Wa&X)break;if(Wa&qe){if(--Mi===0)return gi}else Wa&s&&Mi++}return-1}}var M="14>1,j>2,t>2,u>2,1a>g,2v3>1,1>1,1ge>1,1wd>1,b>1,1j>1,f>1,ai>3,-2>3,+1,8>1k0,-1jq>1y7,-1y6>1hf,-1he>1h6,-1h5>1ha,-1h8>1qi,-1pu>1,6>3u,-3s>7,6>1,1>1,f>1,1>1,+2,3>1,1>1,+13,4>1,1>1,6>1eo,-1ee>1,3>1mg,-1me>1mk,-1mj>1mi,-1mg>1mi,-1md>1,1>1,+2,1>10k,-103>1,1>1,4>1,5>1,1>1,+10,3>1,1>8,-7>8,+1,-6>7,+1,a>1,1>1,u>1,u6>1,1>1,+5,26>1,1>1,2>1,2>2,8>1,7>1,4>1,1>1,+5,b8>1,1>1,+3,1>3,-2>1,2>1,1>1,+2,c>1,3>1,1>1,+2,h>1,3>1,a>1,1>1,2>1,3>1,1>1,d>1,f>1,3>1,1a>1,1>1,6>1,7>1,13>1,k>1,1>1,+19,4>1,1>1,+2,2>1,1>1,+18,m>1,a>1,1>1,lk>1,1>1,4>1,2>1,f>1,3>1,1>1,+3,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,6>1,4j>1,j>2,t>2,u>2,2>1,+1",J;function Z(){if(!J){var W=v(M,!0),ee=W.map,pe=W.reverseMap;pe.forEach(function(q,Me){ee.set(Me,q)}),J=ee}}function he(W){return Z(),J.get(W)||null}function be(W,ee,pe,q){var Me=W.length;pe=Math.max(0,pe==null?0:+pe),q=Math.min(Me-1,q==null?Me-1:+q);for(var xe=new Map,ke=pe;ke<=q;ke++)if(ee[ke]&1){var me=he(W[ke]);me!==null&&xe.set(ke,me)}return xe}function ge(W,ee,pe,q){var Me=W.length;pe=Math.max(0,pe==null?0:+pe),q=Math.min(Me-1,q==null?Me-1:+q);var xe=[];return ee.paragraphs.forEach(function(ke){var me=Math.max(pe,ke.start),Je=Math.min(q,ke.end);if(me<Je){for(var it=ee.levels.slice(me,Je+1),fe=Je;fe>=me&&h(W[fe])&l;fe--)it[fe]=ke.level;for(var _t=ke.level,Gt=1/0,ft=0;ft<it.length;ft++){var wi=it[ft];wi>_t&&(_t=wi),wi<Gt&&(Gt=wi|1)}for(var Bt=_t;Bt>=Gt;Bt--)for(var Ge=0;Ge<it.length;Ge++)if(it[Ge]>=Bt){for(var Ze=Ge;Ge+1<it.length&&it[Ge+1]>=Bt;)Ge++;Ge>Ze&&xe.push([Ze+me,Ge+me])}}}),xe}function ve(W,ee,pe,q){var Me=_e(W,ee,pe,q),xe=[].concat(W);return Me.forEach(function(ke,me){xe[me]=(ee.levels[ke]&1?he(W[ke]):null)||W[ke]}),xe.join("")}function _e(W,ee,pe,q){for(var Me=ge(W,ee,pe,q),xe=[],ke=0;ke<W.length;ke++)xe[ke]=ke;return Me.forEach(function(me){for(var Je=me[0],it=me[1],fe=xe.slice(Je,it+1),_t=fe.length;_t--;)xe[it-_t]=fe[_t]}),xe}return t.closingToOpeningBracket=D,t.getBidiCharType=h,t.getBidiCharTypeName=g,t.getCanonicalBracket=w,t.getEmbeddingLevels=L,t.getMirroredCharacter=he,t.getMirroredCharactersMap=be,t.getReorderSegments=ge,t.getReorderedIndices=_e,t.getReorderedString=ve,t.openingToClosingBracket=x,Object.defineProperty(t,"__esModule",{value:!0}),t}({});return e}var hI=dI,gI=/[--ۿ܀-ݏݐ-ݿހ-߀-߿ࠀ-ࡀ-ࡠ-ࢠ-ࣿיִ-ﭏﭐ-﷿ﹰ-𐴀-𐹠-𞠀-𞤀-𞥟--𞸀-]/u;function Dv(e){return gI.test(e)}function _v(e,t,i){return t<0||t>=e.length?e:t===0?"":e.slice(0,t)}function Sv(e){const t=e.codePointAt(0);return t?t>=127744&&t<=129535||t>=9728&&t<=9983||t>=9984&&t<=10175||t>=65024&&t<=65039||t>=128512&&t<=128591||t>=128640&&t<=128767||t>=129280&&t<=129535||t>=129648&&t<=129791:!1}function pI(e){if(e.length<=1)return e;const t=e.slice(),i=t.map(n=>n.level),r=Math.max(...i),a=Math.min(...i),s=a%2===1?a:a+1;for(let n=r;n>=s;n--){let o=0;for(;o<t.length;)if(i[t.indexOf(t[o])]>=n){let u=o;for(;u+1<t.length&&t[u+1].level>=n;)u++;if(o<u){let l=o,c=u;for(;l<c;){const f=t[l];t[l]=t[c],t[c]=f,l++,c--}}o=u+1}else o++}return t}var mI=class{constructor(e){this.fonts=e}transformText(e,t){switch(t){case"uppercase":return e.toUpperCase();case"lowercase":return e.toLowerCase();case"capitalize":return e.replace(/\b\w/g,i=>i.toUpperCase());default:return e}}async shapeFull(e,t,i){try{const r=await this.fonts.getHB(),a=r.createBuffer();try{a.addText(e),a.guessSegmentProperties(),i&&a.setDirection(i);const s=await this.fonts.getFont(t),o=(await this.fonts.getFace(t))?.upem||1e3;return s.setScale(o,o),r.shape(s,a),a.json()}finally{try{a.destroy()}catch(s){console.error(`Error destroying HarfBuzz buffer: ${s instanceof Error?s.message:String(s)}`)}}}catch(r){throw new Error(`Failed to shape text with font "${t.family}": ${r instanceof Error?r.message:String(r)}`)}}splitIntoBidiRuns(e,t,i,r){const a=[];if(e.length===0)return a;let s=0,n=t[0],o=r?Sv(e[0]):!1;for(let u=1;u<=e.length;u++){const l=u===e.length,c=l?-1:t[u],f=!l&&r?Sv(String.fromCodePoint(e.codePointAt(u)??0)):!1;if(l||c!==n||r&&f!==o){const h=e.slice(s,u),g=o&&r?r:i;a.push({text:h,startIndex:s,endIndex:u,level:n,font:g}),l||(s=u,n=c,o=f)}}return a}async shapeWithBidi(e,t,i){const r=Dv(e),a=/[a-zA-Z0-9]/.test(e);if(!(r&&a)&&!i){const h=r?"rtl":void 0;return this.shapeFull(e,t,h)}const n=hI(),{levels:o}=n.getEmbeddingLevels(e),u=this.splitIntoBidiRuns(e,o,t,i),l=[];for(const h of u){const g=h.level%2===1?"rtl":"ltr",p=await this.shapeFull(h.text,h.font,g);for(const v of p)v.cl+=h.startIndex,h.font!==t&&(v.fontDesc=h.font);l.push({glyphs:p,startIndex:h.startIndex,endIndex:h.endIndex,level:h.level})}const c=pI(l),f=[];for(const h of c)f.push(...h.glyphs);return f}async layout(e){try{const{textTransform:t,desc:i,fontSize:r,letterSpacing:a,width:s,emojiFallback:n}=e,o=this.transformText(e.text,t);if(!o||o.length===0)return[];let u;try{u=await this.shapeWithBidi(o,i,n)}catch(b){throw new Error(`Text shaping failed: ${b instanceof Error?b.message:String(b)}`)}let l;try{l=(await this.fonts.getFace(i))?.upem||1e3}catch(b){throw new Error(`Failed to get font metrics: ${b instanceof Error?b.message:String(b)}`)}const c=r/l,f=u.map(b=>{const x=b.cl;let D;if(x>=0&&x<o.length){const w=o.codePointAt(x);w!==void 0&&(D=String.fromCodePoint(w))}return{id:b.g,xAdvance:b.ax*c+a,xOffset:b.dx*c,yOffset:-b.dy*c,cluster:b.cl,char:D,fontDesc:b.fontDesc}}),h=[];let g=[],p=0;const v=new Set;for(let b=0;b<o.length;b++)o[b]===" "&&v.add(b);let k=-1;for(let b=0;b<f.length;b++){const x=f[b],D=x.xAdvance;if(x.char===`
|
|
263
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const n of e.seen.entries()){const o=n[1];if(t===n[0]){s(n);continue}if(e.external){const l=e.external.registry.get(n[0])?.id;if(t!==n[0]&&l){s(n);continue}}if(e.metadataRegistry.get(n[0])?.id){s(n);continue}if(o.cycle){s(n);continue}if(o.count>1&&e.reused==="ref"){s(n);continue}}}function Rr(e,t){const i=e.seen.get(t);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=n=>{const o=e.seen.get(n);if(o.ref===null)return;const u=o.def??o.schema,l={...u},c=o.ref;if(o.ref=null,c){r(c);const h=e.seen.get(c),g=h.schema;if(g.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(g)):Object.assign(u,g),Object.assign(u,l),n._zod.parent===c)for(const v in u)v==="$ref"||v==="allOf"||v in l||delete u[v];if(g.$ref&&h.def)for(const v in u)v==="$ref"||v==="allOf"||v in h.def&&JSON.stringify(u[v])===JSON.stringify(h.def[v])&&delete u[v]}const f=n._zod.parent;if(f&&f!==c){r(f);const h=e.seen.get(f);if(h?.schema.$ref&&(u.$ref=h.schema.$ref,h.def))for(const g in u)g==="$ref"||g==="allOf"||g in h.def&&JSON.stringify(u[g])===JSON.stringify(h.def[g])&&delete u[g]}e.override({zodSchema:n,jsonSchema:u,path:o.path??[]})};for(const n of[...e.seen.entries()].reverse())r(n[0]);const a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const n=e.external.registry.get(t)?.id;if(!n)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(n)}Object.assign(a,i.def??i.schema);const s=e.external?.defs??{};for(const n of e.seen.entries()){const o=n[1];o.def&&o.defId&&(s[o.defId]=o.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?a.$defs=s:a.definitions=s);try{const n=JSON.parse(JSON.stringify(a));return Object.defineProperty(n,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ss(t,"input",e.processors),output:Ss(t,"output",e.processors)}},enumerable:!1,writable:!1}),n}catch{throw new Error("Error converting schema to JSON.")}}function ei(e,t){const i=t??{seen:new Set};if(i.seen.has(e))return!1;i.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return ei(r.element,i);if(r.type==="set")return ei(r.valueType,i);if(r.type==="lazy")return ei(r.getter(),i);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return ei(r.innerType,i);if(r.type==="intersection")return ei(r.left,i)||ei(r.right,i);if(r.type==="record"||r.type==="map")return ei(r.keyType,i)||ei(r.valueType,i);if(r.type==="pipe")return ei(r.in,i)||ei(r.out,i);if(r.type==="object"){for(const a in r.shape)if(ei(r.shape[a],i))return!0;return!1}if(r.type==="union"){for(const a of r.options)if(ei(a,i))return!0;return!1}if(r.type==="tuple"){for(const a of r.items)if(ei(a,i))return!0;return!!(r.rest&&ei(r.rest,i))}return!1}var h4=(e,t={})=>i=>{const r=Tr({...i,processors:t});return ct(e,r),Or(r,e),Rr(r,e)},Ss=(e,t,i={})=>r=>{const{libraryOptions:a,target:s}=r??{},n=Tr({...a??{},target:s,io:t,processors:i});return ct(e,n),Or(n,e),Rr(n,e)},xk={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},g4=(e,t,i,r)=>{const a=i;a.type="string";const{minimum:s,maximum:n,format:o,patterns:u,contentEncoding:l}=e._zod.bag;if(typeof s=="number"&&(a.minLength=s),typeof n=="number"&&(a.maxLength=n),o&&(a.format=xk[o]??o,a.format===""&&delete a.format,o==="time"&&delete a.format),l&&(a.contentEncoding=l),u&&u.size>0){const c=[...u];c.length===1?a.pattern=c[0].source:c.length>1&&(a.allOf=[...c.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},p4=(e,t,i,r)=>{const a=i,{minimum:s,maximum:n,format:o,multipleOf:u,exclusiveMaximum:l,exclusiveMinimum:c}=e._zod.bag;typeof o=="string"&&o.includes("int")?a.type="integer":a.type="number",typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(a.minimum=c,a.exclusiveMinimum=!0):a.exclusiveMinimum=c),typeof s=="number"&&(a.minimum=s,typeof c=="number"&&t.target!=="draft-04"&&(c>=s?delete a.minimum:delete a.exclusiveMinimum)),typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(a.maximum=l,a.exclusiveMaximum=!0):a.exclusiveMaximum=l),typeof n=="number"&&(a.maximum=n,typeof l=="number"&&t.target!=="draft-04"&&(l<=n?delete a.maximum:delete a.exclusiveMaximum)),typeof u=="number"&&(a.multipleOf=u)},m4=(e,t,i,r)=>{i.type="boolean"},y4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},b4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},v4=(e,t,i,r)=>{t.target==="openapi-3.0"?(i.type="string",i.nullable=!0,i.enum=[null]):i.type="null"},w4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},C4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},x4=(e,t,i,r)=>{i.not={}},E4=(e,t,i,r)=>{},A4=(e,t,i,r)=>{},k4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},D4=(e,t,i,r)=>{const a=e._zod.def,s=Nl(a.entries);s.every(n=>typeof n=="number")&&(i.type="number"),s.every(n=>typeof n=="string")&&(i.type="string"),i.enum=s},_4=(e,t,i,r)=>{const a=e._zod.def,s=[];for(const n of a.values)if(n===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof n=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(n))}else s.push(n);if(s.length!==0)if(s.length===1){const n=s[0];i.type=n===null?"null":typeof n,t.target==="draft-04"||t.target==="openapi-3.0"?i.enum=[n]:i.const=n}else s.every(n=>typeof n=="number")&&(i.type="number"),s.every(n=>typeof n=="string")&&(i.type="string"),s.every(n=>typeof n=="boolean")&&(i.type="boolean"),s.every(n=>n===null)&&(i.type="null"),i.enum=s},S4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},N4=(e,t,i,r)=>{const a=i,s=e._zod.pattern;if(!s)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=s.source},B4=(e,t,i,r)=>{const a=i,s={type:"string",format:"binary",contentEncoding:"binary"},{minimum:n,maximum:o,mime:u}=e._zod.bag;n!==void 0&&(s.minLength=n),o!==void 0&&(s.maxLength=o),u?u.length===1?(s.contentMediaType=u[0],Object.assign(a,s)):(Object.assign(a,s),a.anyOf=u.map(l=>({contentMediaType:l}))):Object.assign(a,s)},F4=(e,t,i,r)=>{i.type="boolean"},I4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},V4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},z4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},P4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},T4=(e,t,i,r)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},O4=(e,t,i,r)=>{const a=i,s=e._zod.def,{minimum:n,maximum:o}=e._zod.bag;typeof n=="number"&&(a.minItems=n),typeof o=="number"&&(a.maxItems=o),a.type="array",a.items=ct(s.element,t,{...r,path:[...r.path,"items"]})},R4=(e,t,i,r)=>{const a=i,s=e._zod.def;a.type="object",a.properties={};const n=s.shape;for(const l in n)a.properties[l]=ct(n[l],t,{...r,path:[...r.path,"properties",l]});const o=new Set(Object.keys(n)),u=new Set([...o].filter(l=>{const c=s.shape[l]._zod;return t.io==="input"?c.optin===void 0:c.optout===void 0}));u.size>0&&(a.required=Array.from(u)),s.catchall?._zod.def.type==="never"?a.additionalProperties=!1:s.catchall?s.catchall&&(a.additionalProperties=ct(s.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},B0=(e,t,i,r)=>{const a=e._zod.def,s=a.inclusive===!1,n=a.options.map((o,u)=>ct(o,t,{...r,path:[...r.path,s?"oneOf":"anyOf",u]}));s?i.oneOf=n:i.anyOf=n},M4=(e,t,i,r)=>{const a=e._zod.def,s=ct(a.left,t,{...r,path:[...r.path,"allOf",0]}),n=ct(a.right,t,{...r,path:[...r.path,"allOf",1]}),o=l=>"allOf"in l&&Object.keys(l).length===1,u=[...o(s)?s.allOf:[s],...o(n)?n.allOf:[n]];i.allOf=u},Z4=(e,t,i,r)=>{const a=i,s=e._zod.def;a.type="array";const n=t.target==="draft-2020-12"?"prefixItems":"items",o=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=s.items.map((h,g)=>ct(h,t,{...r,path:[...r.path,n,g]})),l=s.rest?ct(s.rest,t,{...r,path:[...r.path,o,...t.target==="openapi-3.0"?[s.items.length]:[]]}):null;t.target==="draft-2020-12"?(a.prefixItems=u,l&&(a.items=l)):t.target==="openapi-3.0"?(a.items={anyOf:u},l&&a.items.anyOf.push(l),a.minItems=u.length,l||(a.maxItems=u.length)):(a.items=u,l&&(a.additionalItems=l));const{minimum:c,maximum:f}=e._zod.bag;typeof c=="number"&&(a.minItems=c),typeof f=="number"&&(a.maxItems=f)},L4=(e,t,i,r)=>{const a=i,s=e._zod.def;a.type="object";const n=s.keyType,u=n._zod.bag?.patterns;if(s.mode==="loose"&&u&&u.size>0){const c=ct(s.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});a.patternProperties={};for(const f of u)a.patternProperties[f.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=ct(s.keyType,t,{...r,path:[...r.path,"propertyNames"]})),a.additionalProperties=ct(s.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const l=n._zod.values;if(l){const c=[...l].filter(f=>typeof f=="string"||typeof f=="number");c.length>0&&(a.required=c)}},$4=(e,t,i,r)=>{const a=e._zod.def,s=ct(a.innerType,t,r),n=t.seen.get(e);t.target==="openapi-3.0"?(n.ref=a.innerType,i.nullable=!0):i.anyOf=[s,{type:"null"}]},U4=(e,t,i,r)=>{const a=e._zod.def;ct(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType},j4=(e,t,i,r)=>{const a=e._zod.def;ct(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType,i.default=JSON.parse(JSON.stringify(a.defaultValue))},G4=(e,t,i,r)=>{const a=e._zod.def;ct(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType,t.io==="input"&&(i._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},W4=(e,t,i,r)=>{const a=e._zod.def;ct(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType;let n;try{n=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}i.default=n},Y4=(e,t,i,r)=>{const a=e._zod.def,s=t.io==="input"?a.in._zod.def.type==="transform"?a.out:a.in:a.out;ct(s,t,r);const n=t.seen.get(e);n.ref=s},K4=(e,t,i,r)=>{const a=e._zod.def;ct(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType,i.readOnly=!0},X4=(e,t,i,r)=>{const a=e._zod.def;ct(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType},F0=(e,t,i,r)=>{const a=e._zod.def;ct(a.innerType,t,r);const s=t.seen.get(e);s.ref=a.innerType},H4=(e,t,i,r)=>{const a=e._zod.innerType;ct(a,t,r);const s=t.seen.get(e);s.ref=a},I0={string:g4,number:p4,boolean:m4,bigint:y4,symbol:b4,null:v4,undefined:w4,void:C4,never:x4,any:E4,unknown:A4,date:k4,enum:D4,literal:_4,nan:S4,template_literal:N4,file:B4,success:F4,custom:I4,function:V4,transform:z4,map:P4,set:T4,array:O4,object:R4,union:B0,intersection:M4,tuple:Z4,record:L4,nullable:$4,nonoptional:U4,default:j4,prefault:G4,catch:W4,pipe:Y4,readonly:K4,promise:X4,optional:F0,lazy:H4};function J4(e,t){if("_idmap"in e){const r=e,a=Tr({...t,processors:I0}),s={};for(const u of r._idmap.entries()){const[l,c]=u;ct(c,a)}const n={},o={registry:r,uri:t?.uri,defs:s};a.external=o;for(const u of r._idmap.entries()){const[l,c]=u;Or(a,c),n[l]=Rr(a,c)}if(Object.keys(s).length>0){const u=a.target==="draft-2020-12"?"$defs":"definitions";n.__shared={[u]:s}}return{schemas:n}}const i=Tr({...t,processors:I0});return ct(e,i),Or(i,e),Rr(i,e)}var Ek=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??"draft-2020-12";t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),this.ctx=Tr({processors:I0,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return ct(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),Or(this.ctx,e);const i=Rr(this.ctx,e),{"~standard":r,...a}=i;return a}},Ak={},q4={};aa(q4,{ZodAny:()=>G0,ZodArray:()=>X0,ZodBase64:()=>Ro,ZodBase64URL:()=>Mo,ZodBigInt:()=>zs,ZodBigIntFormat:()=>Uo,ZodBoolean:()=>Vs,ZodCIDRv4:()=>To,ZodCIDRv6:()=>Oo,ZodCUID:()=>No,ZodCUID2:()=>Bo,ZodCatch:()=>yc,ZodCodec:()=>qo,ZodCustom:()=>$s,ZodCustomStringFormat:()=>Mr,ZodDate:()=>Go,ZodDefault:()=>fc,ZodDiscriminatedUnion:()=>J0,ZodE164:()=>Zo,ZodEmail:()=>Do,ZodEmoji:()=>_o,ZodEnum:()=>Zr,ZodExactOptional:()=>uc,ZodFile:()=>nc,ZodFunction:()=>Dc,ZodGUID:()=>Bs,ZodIPv4:()=>zo,ZodIPv6:()=>Po,ZodIntersection:()=>q0,ZodJWT:()=>Lo,ZodKSUID:()=>Vo,ZodLazy:()=>Ec,ZodLiteral:()=>sc,ZodMAC:()=>R0,ZodMap:()=>ac,ZodNaN:()=>vc,ZodNanoID:()=>So,ZodNever:()=>Y0,ZodNonOptional:()=>Ho,ZodNull:()=>U0,ZodNullable:()=>cc,ZodNumber:()=>Is,ZodNumberFormat:()=>ar,ZodObject:()=>Ts,ZodOptional:()=>Xo,ZodPipe:()=>Jo,ZodPrefault:()=>hc,ZodPromise:()=>kc,ZodReadonly:()=>wc,ZodRecord:()=>Rs,ZodSet:()=>rc,ZodString:()=>Ns,ZodStringFormat:()=>gt,ZodSuccess:()=>mc,ZodSymbol:()=>L0,ZodTemplateLiteral:()=>xc,ZodTransform:()=>oc,ZodTuple:()=>ec,ZodType:()=>Oe,ZodULID:()=>Fo,ZodURL:()=>Fs,ZodUUID:()=>ji,ZodUndefined:()=>$0,ZodUnion:()=>Os,ZodUnknown:()=>W0,ZodVoid:()=>K0,ZodXID:()=>Io,ZodXor:()=>H0,_ZodString:()=>Ao,_default:()=>dc,_function:()=>Qo,any:()=>ey,array:()=>Ps,base64:()=>O1,base64url:()=>R1,bigint:()=>X1,boolean:()=>Z0,catch:()=>bc,check:()=>xy,cidrv4:()=>P1,cidrv6:()=>T1,codec:()=>vy,cuid:()=>_1,cuid2:()=>S1,custom:()=>Ey,date:()=>iy,describe:()=>Ay,discriminatedUnion:()=>uy,e164:()=>M1,email:()=>y1,emoji:()=>k1,enum:()=>Yo,exactOptional:()=>lc,file:()=>py,float32:()=>G1,float64:()=>W1,function:()=>Qo,guid:()=>b1,hash:()=>j1,hex:()=>U1,hostname:()=>$1,httpUrl:()=>A1,instanceof:()=>Dy,int:()=>$o,int32:()=>Y1,int64:()=>H1,intersection:()=>Q0,ipv4:()=>I1,ipv6:()=>z1,json:()=>Sy,jwt:()=>Z1,keyof:()=>ay,ksuid:()=>F1,lazy:()=>Ac,literal:()=>gy,looseObject:()=>ny,looseRecord:()=>cy,mac:()=>V1,map:()=>fy,meta:()=>ky,nan:()=>by,nanoid:()=>D1,nativeEnum:()=>hy,never:()=>jo,nonoptional:()=>pc,null:()=>j0,nullable:()=>Zs,nullish:()=>my,number:()=>M0,object:()=>ry,optional:()=>Ms,partialRecord:()=>ly,pipe:()=>Ls,prefault:()=>gc,preprocess:()=>Ny,promise:()=>Cy,readonly:()=>Cc,record:()=>ic,refine:()=>_c,set:()=>dy,strictObject:()=>sy,string:()=>ko,stringFormat:()=>L1,stringbool:()=>_y,success:()=>yy,superRefine:()=>Sc,symbol:()=>q1,templateLiteral:()=>wy,transform:()=>Ko,tuple:()=>tc,uint32:()=>K1,uint64:()=>J1,ulid:()=>N1,undefined:()=>Q1,union:()=>Wo,unknown:()=>rr,url:()=>E1,uuid:()=>v1,uuidv4:()=>w1,uuidv6:()=>C1,uuidv7:()=>x1,void:()=>ty,xid:()=>B1,xor:()=>oy});var Q4={};aa(Q4,{endsWith:()=>yo,gt:()=>Ba,gte:()=>oi,includes:()=>po,length:()=>Ds,lowercase:()=>ho,lt:()=>Na,lte:()=>Si,maxLength:()=>ks,maxSize:()=>Pr,mime:()=>bo,minLength:()=>ir,minSize:()=>Fa,multipleOf:()=>zr,negative:()=>D0,nonnegative:()=>S0,nonpositive:()=>_0,normalize:()=>vo,overwrite:()=>na,positive:()=>k0,property:()=>N0,regex:()=>fo,size:()=>As,slugify:()=>Eo,startsWith:()=>mo,toLowerCase:()=>Co,toUpperCase:()=>xo,trim:()=>wo,uppercase:()=>go});var V0={};aa(V0,{ZodISODate:()=>P0,ZodISODateTime:()=>z0,ZodISODuration:()=>O0,ZodISOTime:()=>T0,date:()=>t1,datetime:()=>e1,duration:()=>a1,time:()=>i1});var z0=V("ZodISODateTime",(e,t)=>{ap.init(e,t),gt.init(e,t)});function e1(e){return Fm(z0,e)}var P0=V("ZodISODate",(e,t)=>{rp.init(e,t),gt.init(e,t)});function t1(e){return Im(P0,e)}var T0=V("ZodISOTime",(e,t)=>{sp.init(e,t),gt.init(e,t)});function i1(e){return Vm(T0,e)}var O0=V("ZodISODuration",(e,t)=>{np.init(e,t),gt.init(e,t)});function a1(e){return zm(O0,e)}var r1=(e,t)=>{Il.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:i=>zl(e,i)},flatten:{value:i=>Vl(e,i)},addIssue:{value:i=>{e.issues.push(i),e.message=JSON.stringify(e.issues,Jn,2)}},addIssues:{value:i=>{e.issues.push(...i),e.message=JSON.stringify(e.issues,Jn,2)}},isEmpty:{get(){return e.issues.length===0}}})},kk=V("ZodError",r1),yi=V("ZodError",r1,{Parent:Error}),s1=ps(yi),n1=ms(yi),o1=ys(yi),u1=bs(yi),l1=Ol(yi),c1=Rl(yi),f1=Ml(yi),d1=Zl(yi),h1=Ll(yi),g1=$l(yi),p1=Ul(yi),m1=jl(yi),Oe=V("ZodType",(e,t)=>(Pe.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ss(e,"input"),output:Ss(e,"output")}}),e.toJSONSchema=h4(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...i)=>e.clone(We.mergeDefs(t,{checks:[...t.checks??[],...i.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(i,r)=>ki(e,i,r),e.brand=()=>e,e.register=(i,r)=>(i.add(e,r),e),e.parse=(i,r)=>s1(e,i,r,{callee:e.parse}),e.safeParse=(i,r)=>o1(e,i,r),e.parseAsync=async(i,r)=>n1(e,i,r,{callee:e.parseAsync}),e.safeParseAsync=async(i,r)=>u1(e,i,r),e.spa=e.safeParseAsync,e.encode=(i,r)=>l1(e,i,r),e.decode=(i,r)=>c1(e,i,r),e.encodeAsync=async(i,r)=>f1(e,i,r),e.decodeAsync=async(i,r)=>d1(e,i,r),e.safeEncode=(i,r)=>h1(e,i,r),e.safeDecode=(i,r)=>g1(e,i,r),e.safeEncodeAsync=async(i,r)=>p1(e,i,r),e.safeDecodeAsync=async(i,r)=>m1(e,i,r),e.refine=(i,r)=>e.check(_c(i,r)),e.superRefine=i=>e.check(Sc(i)),e.overwrite=i=>e.check(na(i)),e.optional=()=>Ms(e),e.exactOptional=()=>lc(e),e.nullable=()=>Zs(e),e.nullish=()=>Ms(Zs(e)),e.nonoptional=i=>pc(e,i),e.array=()=>Ps(e),e.or=i=>Wo([e,i]),e.and=i=>Q0(e,i),e.transform=i=>Ls(e,Ko(i)),e.default=i=>dc(e,i),e.prefault=i=>gc(e,i),e.catch=i=>bc(e,i),e.pipe=i=>Ls(e,i),e.readonly=()=>Cc(e),e.describe=i=>{const r=e.clone();return _i.add(r,{description:i}),r},Object.defineProperty(e,"description",{get(){return _i.get(e)?.description},configurable:!0}),e.meta=(...i)=>{if(i.length===0)return _i.get(e);const r=e.clone();return _i.add(r,i[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=i=>i(e),e)),Ao=V("_ZodString",(e,t)=>{xs.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(r,a,s)=>g4(e,r,a);const i=e._zod.bag;e.format=i.format??null,e.minLength=i.minimum??null,e.maxLength=i.maximum??null,e.regex=(...r)=>e.check(fo(...r)),e.includes=(...r)=>e.check(po(...r)),e.startsWith=(...r)=>e.check(mo(...r)),e.endsWith=(...r)=>e.check(yo(...r)),e.min=(...r)=>e.check(ir(...r)),e.max=(...r)=>e.check(ks(...r)),e.length=(...r)=>e.check(Ds(...r)),e.nonempty=(...r)=>e.check(ir(1,...r)),e.lowercase=r=>e.check(ho(r)),e.uppercase=r=>e.check(go(r)),e.trim=()=>e.check(wo()),e.normalize=(...r)=>e.check(vo(...r)),e.toLowerCase=()=>e.check(Co()),e.toUpperCase=()=>e.check(xo()),e.slugify=()=>e.check(Eo())}),Ns=V("ZodString",(e,t)=>{xs.init(e,t),Ao.init(e,t),e.email=i=>e.check(s0(Do,i)),e.url=i=>e.check(co(Fs,i)),e.jwt=i=>e.check(A0(Lo,i)),e.emoji=i=>e.check(c0(_o,i)),e.guid=i=>e.check(lo(Bs,i)),e.uuid=i=>e.check(n0(ji,i)),e.uuidv4=i=>e.check(o0(ji,i)),e.uuidv6=i=>e.check(u0(ji,i)),e.uuidv7=i=>e.check(l0(ji,i)),e.nanoid=i=>e.check(f0(So,i)),e.guid=i=>e.check(lo(Bs,i)),e.cuid=i=>e.check(d0(No,i)),e.cuid2=i=>e.check(h0(Bo,i)),e.ulid=i=>e.check(g0(Fo,i)),e.base64=i=>e.check(C0(Ro,i)),e.base64url=i=>e.check(x0(Mo,i)),e.xid=i=>e.check(p0(Io,i)),e.ksuid=i=>e.check(m0(Vo,i)),e.ipv4=i=>e.check(y0(zo,i)),e.ipv6=i=>e.check(b0(Po,i)),e.cidrv4=i=>e.check(v0(To,i)),e.cidrv6=i=>e.check(w0(Oo,i)),e.e164=i=>e.check(E0(Zo,i)),e.datetime=i=>e.check(e1(i)),e.date=i=>e.check(t1(i)),e.time=i=>e.check(i1(i)),e.duration=i=>e.check(a1(i))});function ko(e){return _m(Ns,e)}var gt=V("ZodStringFormat",(e,t)=>{ht.init(e,t),Ao.init(e,t)}),Do=V("ZodEmail",(e,t)=>{Kg.init(e,t),gt.init(e,t)});function y1(e){return s0(Do,e)}var Bs=V("ZodGUID",(e,t)=>{Wg.init(e,t),gt.init(e,t)});function b1(e){return lo(Bs,e)}var ji=V("ZodUUID",(e,t)=>{Yg.init(e,t),gt.init(e,t)});function v1(e){return n0(ji,e)}function w1(e){return o0(ji,e)}function C1(e){return u0(ji,e)}function x1(e){return l0(ji,e)}var Fs=V("ZodURL",(e,t)=>{Xg.init(e,t),gt.init(e,t)});function E1(e){return co(Fs,e)}function A1(e){return co(Fs,{protocol:/^https?$/,hostname:tr.domain,...We.normalizeParams(e)})}var _o=V("ZodEmoji",(e,t)=>{Hg.init(e,t),gt.init(e,t)});function k1(e){return c0(_o,e)}var So=V("ZodNanoID",(e,t)=>{Jg.init(e,t),gt.init(e,t)});function D1(e){return f0(So,e)}var No=V("ZodCUID",(e,t)=>{qg.init(e,t),gt.init(e,t)});function _1(e){return d0(No,e)}var Bo=V("ZodCUID2",(e,t)=>{Qg.init(e,t),gt.init(e,t)});function S1(e){return h0(Bo,e)}var Fo=V("ZodULID",(e,t)=>{ep.init(e,t),gt.init(e,t)});function N1(e){return g0(Fo,e)}var Io=V("ZodXID",(e,t)=>{tp.init(e,t),gt.init(e,t)});function B1(e){return p0(Io,e)}var Vo=V("ZodKSUID",(e,t)=>{ip.init(e,t),gt.init(e,t)});function F1(e){return m0(Vo,e)}var zo=V("ZodIPv4",(e,t)=>{op.init(e,t),gt.init(e,t)});function I1(e){return y0(zo,e)}var R0=V("ZodMAC",(e,t)=>{lp.init(e,t),gt.init(e,t)});function V1(e){return Nm(R0,e)}var Po=V("ZodIPv6",(e,t)=>{up.init(e,t),gt.init(e,t)});function z1(e){return b0(Po,e)}var To=V("ZodCIDRv4",(e,t)=>{cp.init(e,t),gt.init(e,t)});function P1(e){return v0(To,e)}var Oo=V("ZodCIDRv6",(e,t)=>{fp.init(e,t),gt.init(e,t)});function T1(e){return w0(Oo,e)}var Ro=V("ZodBase64",(e,t)=>{dp.init(e,t),gt.init(e,t)});function O1(e){return C0(Ro,e)}var Mo=V("ZodBase64URL",(e,t)=>{gp.init(e,t),gt.init(e,t)});function R1(e){return x0(Mo,e)}var Zo=V("ZodE164",(e,t)=>{pp.init(e,t),gt.init(e,t)});function M1(e){return E0(Zo,e)}var Lo=V("ZodJWT",(e,t)=>{yp.init(e,t),gt.init(e,t)});function Z1(e){return A0(Lo,e)}var Mr=V("ZodCustomStringFormat",(e,t)=>{bp.init(e,t),gt.init(e,t)});function L1(e,t,i={}){return _s(Mr,e,t,i)}function $1(e){return _s(Mr,"hostname",tr.hostname,e)}function U1(e){return _s(Mr,"hex",tr.hex,e)}function j1(e,t){const i=t?.enc??"hex",r=`${e}_${i}`,a=tr[r];if(!a)throw new Error(`Unrecognized hash format: ${r}`);return _s(Mr,r,a,t)}var Is=V("ZodNumber",(e,t)=>{Hl.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(r,a,s)=>p4(e,r,a),e.gt=(r,a)=>e.check(Ba(r,a)),e.gte=(r,a)=>e.check(oi(r,a)),e.min=(r,a)=>e.check(oi(r,a)),e.lt=(r,a)=>e.check(Na(r,a)),e.lte=(r,a)=>e.check(Si(r,a)),e.max=(r,a)=>e.check(Si(r,a)),e.int=r=>e.check($o(r)),e.safe=r=>e.check($o(r)),e.positive=r=>e.check(Ba(0,r)),e.nonnegative=r=>e.check(oi(0,r)),e.negative=r=>e.check(Na(0,r)),e.nonpositive=r=>e.check(Si(0,r)),e.multipleOf=(r,a)=>e.check(zr(r,a)),e.step=(r,a)=>e.check(zr(r,a)),e.finite=()=>e;const i=e._zod.bag;e.minValue=Math.max(i.minimum??Number.NEGATIVE_INFINITY,i.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(i.maximum??Number.POSITIVE_INFINITY,i.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(i.format??"").includes("int")||Number.isSafeInteger(i.multipleOf??.5),e.isFinite=!0,e.format=i.format??null});function M0(e){return Pm(Is,e)}var ar=V("ZodNumberFormat",(e,t)=>{vp.init(e,t),Is.init(e,t)});function $o(e){return Om(ar,e)}function G1(e){return Rm(ar,e)}function W1(e){return Mm(ar,e)}function Y1(e){return Zm(ar,e)}function K1(e){return Lm(ar,e)}var Vs=V("ZodBoolean",(e,t)=>{Jl.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>m4(e,i,r)});function Z0(e){return $m(Vs,e)}var zs=V("ZodBigInt",(e,t)=>{ql.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(r,a,s)=>y4(e,r),e.gte=(r,a)=>e.check(oi(r,a)),e.min=(r,a)=>e.check(oi(r,a)),e.gt=(r,a)=>e.check(Ba(r,a)),e.gte=(r,a)=>e.check(oi(r,a)),e.min=(r,a)=>e.check(oi(r,a)),e.lt=(r,a)=>e.check(Na(r,a)),e.lte=(r,a)=>e.check(Si(r,a)),e.max=(r,a)=>e.check(Si(r,a)),e.positive=r=>e.check(Ba(BigInt(0),r)),e.negative=r=>e.check(Na(BigInt(0),r)),e.nonpositive=r=>e.check(Si(BigInt(0),r)),e.nonnegative=r=>e.check(oi(BigInt(0),r)),e.multipleOf=(r,a)=>e.check(zr(r,a));const i=e._zod.bag;e.minValue=i.minimum??null,e.maxValue=i.maximum??null,e.format=i.format??null});function X1(e){return jm(zs,e)}var Uo=V("ZodBigIntFormat",(e,t)=>{wp.init(e,t),zs.init(e,t)});function H1(e){return Wm(Uo,e)}function J1(e){return Ym(Uo,e)}var L0=V("ZodSymbol",(e,t)=>{Cp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>b4(e,i)});function q1(e){return Km(L0,e)}var $0=V("ZodUndefined",(e,t)=>{xp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>w4(e,i)});function Q1(e){return Xm($0,e)}var U0=V("ZodNull",(e,t)=>{Ep.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>v4(e,i,r)});function j0(e){return Hm(U0,e)}var G0=V("ZodAny",(e,t)=>{Ap.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>E4()});function ey(){return Jm(G0)}var W0=V("ZodUnknown",(e,t)=>{kp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>A4()});function rr(){return qm(W0)}var Y0=V("ZodNever",(e,t)=>{Dp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>x4(e,i,r)});function jo(e){return Qm(Y0,e)}var K0=V("ZodVoid",(e,t)=>{_p.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>C4(e,i)});function ty(e){return e4(K0,e)}var Go=V("ZodDate",(e,t)=>{Sp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(r,a,s)=>k4(e,r),e.min=(r,a)=>e.check(oi(r,a)),e.max=(r,a)=>e.check(Si(r,a));const i=e._zod.bag;e.minDate=i.minimum?new Date(i.minimum):null,e.maxDate=i.maximum?new Date(i.maximum):null});function iy(e){return t4(Go,e)}var X0=V("ZodArray",(e,t)=>{Bp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>O4(e,i,r,a),e.element=t.element,e.min=(i,r)=>e.check(ir(i,r)),e.nonempty=i=>e.check(ir(1,i)),e.max=(i,r)=>e.check(ks(i,r)),e.length=(i,r)=>e.check(Ds(i,r)),e.unwrap=()=>e.element});function Ps(e,t){return r4(X0,e,t)}function ay(e){const t=e._zod.def.shape;return Yo(Object.keys(t))}var Ts=V("ZodObject",(e,t)=>{zp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>R4(e,i,r,a),We.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Yo(Object.keys(e._zod.def.shape)),e.catchall=i=>e.clone({...e._zod.def,catchall:i}),e.passthrough=()=>e.clone({...e._zod.def,catchall:rr()}),e.loose=()=>e.clone({...e._zod.def,catchall:rr()}),e.strict=()=>e.clone({...e._zod.def,catchall:jo()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=i=>We.extend(e,i),e.safeExtend=i=>We.safeExtend(e,i),e.merge=i=>We.merge(e,i),e.pick=i=>We.pick(e,i),e.omit=i=>We.omit(e,i),e.partial=(...i)=>We.partial(Xo,e,i[0]),e.required=(...i)=>We.required(Ho,e,i[0])});function ry(e,t){const i={type:"object",shape:e??{},...We.normalizeParams(t)};return new Ts(i)}function sy(e,t){return new Ts({type:"object",shape:e,catchall:jo(),...We.normalizeParams(t)})}function ny(e,t){return new Ts({type:"object",shape:e,catchall:rr(),...We.normalizeParams(t)})}var Os=V("ZodUnion",(e,t)=>{ro.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>B0(e,i,r,a),e.options=t.options});function Wo(e,t){return new Os({type:"union",options:e,...We.normalizeParams(t)})}var H0=V("ZodXor",(e,t)=>{Os.init(e,t),Op.init(e,t),e._zod.processJSONSchema=(i,r,a)=>B0(e,i,r,a),e.options=t.options});function oy(e,t){return new H0({type:"union",options:e,inclusive:!1,...We.normalizeParams(t)})}var J0=V("ZodDiscriminatedUnion",(e,t)=>{Os.init(e,t),Rp.init(e,t)});function uy(e,t,i){return new J0({type:"union",options:t,discriminator:e,...We.normalizeParams(i)})}var q0=V("ZodIntersection",(e,t)=>{Mp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>M4(e,i,r,a)});function Q0(e,t){return new q0({type:"intersection",left:e,right:t})}var ec=V("ZodTuple",(e,t)=>{e0.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>Z4(e,i,r,a),e.rest=i=>e.clone({...e._zod.def,rest:i})});function tc(e,t,i){const r=t instanceof Pe,a=r?i:t,s=r?t:null;return new ec({type:"tuple",items:e,rest:s,...We.normalizeParams(a)})}var Rs=V("ZodRecord",(e,t)=>{Lp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>L4(e,i,r,a),e.keyType=t.keyType,e.valueType=t.valueType});function ic(e,t,i){return new Rs({type:"record",keyType:e,valueType:t,...We.normalizeParams(i)})}function ly(e,t,i){const r=ki(e);return r._zod.values=void 0,new Rs({type:"record",keyType:r,valueType:t,...We.normalizeParams(i)})}function cy(e,t,i){return new Rs({type:"record",keyType:e,valueType:t,mode:"loose",...We.normalizeParams(i)})}var ac=V("ZodMap",(e,t)=>{$p.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>P4(e,i),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...i)=>e.check(Fa(...i)),e.nonempty=i=>e.check(Fa(1,i)),e.max=(...i)=>e.check(Pr(...i)),e.size=(...i)=>e.check(As(...i))});function fy(e,t,i){return new ac({type:"map",keyType:e,valueType:t,...We.normalizeParams(i)})}var rc=V("ZodSet",(e,t)=>{jp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>T4(e,i),e.min=(...i)=>e.check(Fa(...i)),e.nonempty=i=>e.check(Fa(1,i)),e.max=(...i)=>e.check(Pr(...i)),e.size=(...i)=>e.check(As(...i))});function dy(e,t){return new rc({type:"set",valueType:e,...We.normalizeParams(t)})}var Zr=V("ZodEnum",(e,t)=>{Wp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(r,a,s)=>D4(e,r,a),e.enum=t.entries,e.options=Object.values(t.entries);const i=new Set(Object.keys(t.entries));e.extract=(r,a)=>{const s={};for(const n of r)if(i.has(n))s[n]=t.entries[n];else throw new Error(`Key ${n} not found in enum`);return new Zr({...t,checks:[],...We.normalizeParams(a),entries:s})},e.exclude=(r,a)=>{const s={...t.entries};for(const n of r)if(i.has(n))delete s[n];else throw new Error(`Key ${n} not found in enum`);return new Zr({...t,checks:[],...We.normalizeParams(a),entries:s})}});function Yo(e,t){const i=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Zr({type:"enum",entries:i,...We.normalizeParams(t)})}function hy(e,t){return new Zr({type:"enum",entries:e,...We.normalizeParams(t)})}var sc=V("ZodLiteral",(e,t)=>{Yp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>_4(e,i,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function gy(e,t){return new sc({type:"literal",values:Array.isArray(e)?e:[e],...We.normalizeParams(t)})}var nc=V("ZodFile",(e,t)=>{Kp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>B4(e,i,r),e.min=(i,r)=>e.check(Fa(i,r)),e.max=(i,r)=>e.check(Pr(i,r)),e.mime=(i,r)=>e.check(bo(Array.isArray(i)?i:[i],r))});function py(e){return s4(nc,e)}var oc=V("ZodTransform",(e,t)=>{Xp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>z4(e,i),e._zod.parse=(i,r)=>{if(r.direction==="backward")throw new Xn(e.constructor.name);i.addIssue=s=>{if(typeof s=="string")i.issues.push(We.issue(s,i.value,t));else{const n=s;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=i.value),n.inst??(n.inst=e),i.issues.push(We.issue(n))}};const a=t.transform(i.value,i);return a instanceof Promise?a.then(s=>(i.value=s,i)):(i.value=a,i)}});function Ko(e){return new oc({type:"transform",transform:e})}var Xo=V("ZodOptional",(e,t)=>{t0.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>F0(e,i,r,a),e.unwrap=()=>e._zod.def.innerType});function Ms(e){return new Xo({type:"optional",innerType:e})}var uc=V("ZodExactOptional",(e,t)=>{Jp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>F0(e,i,r,a),e.unwrap=()=>e._zod.def.innerType});function lc(e){return new uc({type:"optional",innerType:e})}var cc=V("ZodNullable",(e,t)=>{qp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>$4(e,i,r,a),e.unwrap=()=>e._zod.def.innerType});function Zs(e){return new cc({type:"nullable",innerType:e})}function my(e){return Ms(Zs(e))}var fc=V("ZodDefault",(e,t)=>{Qp.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>j4(e,i,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function dc(e,t){return new fc({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():We.shallowClone(t)}})}var hc=V("ZodPrefault",(e,t)=>{tm.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>G4(e,i,r,a),e.unwrap=()=>e._zod.def.innerType});function gc(e,t){return new hc({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():We.shallowClone(t)}})}var Ho=V("ZodNonOptional",(e,t)=>{im.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>U4(e,i,r,a),e.unwrap=()=>e._zod.def.innerType});function pc(e,t){return new Ho({type:"nonoptional",innerType:e,...We.normalizeParams(t)})}var mc=V("ZodSuccess",(e,t)=>{rm.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>F4(e,i,r),e.unwrap=()=>e._zod.def.innerType});function yy(e){return new mc({type:"success",innerType:e})}var yc=V("ZodCatch",(e,t)=>{sm.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>W4(e,i,r,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bc(e,t){return new yc({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var vc=V("ZodNaN",(e,t)=>{nm.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>S4(e,i)});function by(e){return a4(vc,e)}var Jo=V("ZodPipe",(e,t)=>{om.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>Y4(e,i,r,a),e.in=t.in,e.out=t.out});function Ls(e,t){return new Jo({type:"pipe",in:e,out:t})}var qo=V("ZodCodec",(e,t)=>{Jo.init(e,t),i0.init(e,t)});function vy(e,t,i){return new qo({type:"pipe",in:e,out:t,transform:i.decode,reverseTransform:i.encode})}var wc=V("ZodReadonly",(e,t)=>{um.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>K4(e,i,r,a),e.unwrap=()=>e._zod.def.innerType});function Cc(e){return new wc({type:"readonly",innerType:e})}var xc=V("ZodTemplateLiteral",(e,t)=>{cm.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>N4(e,i,r)});function wy(e,t){return new xc({type:"template_literal",parts:e,...We.normalizeParams(t)})}var Ec=V("ZodLazy",(e,t)=>{hm.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>H4(e,i,r,a),e.unwrap=()=>e._zod.def.getter()});function Ac(e){return new Ec({type:"lazy",getter:e})}var kc=V("ZodPromise",(e,t)=>{dm.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>X4(e,i,r,a),e.unwrap=()=>e._zod.def.innerType});function Cy(e){return new kc({type:"promise",innerType:e})}var Dc=V("ZodFunction",(e,t)=>{fm.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>V4(e,i)});function Qo(e){return new Dc({type:"function",input:Array.isArray(e?.input)?tc(e?.input):e?.input??Ps(rr()),output:e?.output??rr()})}var $s=V("ZodCustom",(e,t)=>{gm.init(e,t),Oe.init(e,t),e._zod.processJSONSchema=(i,r,a)=>I4(e,i)});function xy(e){const t=new Et({check:"custom"});return t._zod.check=e,t}function Ey(e,t){return n4($s,e??(()=>!0),t)}function _c(e,t={}){return o4($s,e,t)}function Sc(e){return u4(e)}var Ay=c4,ky=f4;function Dy(e,t={}){const i=new $s({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...We.normalizeParams(t)});return i._zod.bag.Class=e,i._zod.check=r=>{r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:i,path:[...i._zod.def.path??[]]})},i}var _y=(...e)=>d4({Codec:qo,Boolean:Vs,String:Ns},...e);function Sy(e){const t=Ac(()=>Wo([ko(e),M0(),Z0(),j0(),Ps(t),ic(ko(),t)]));return t}function Ny(e,t){return Ls(Ko(e),t)}var Dk={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function _k(e){Wt({customError:e})}function Sk(){return Wt().customError}var Nc;Nc||(Nc={});var le={...q4,...Q4,iso:V0},Nk=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Bk(e,t){const i=e.$schema;return i==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":i==="http://json-schema.org/draft-07/schema#"?"draft-7":i==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function Fk(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");const i=e.slice(1).split("/").filter(Boolean);if(i.length===0)return t.rootSchema;const r=t.version==="draft-2020-12"?"$defs":"definitions";if(i[0]===r){const a=i[1];if(!a||!t.defs[a])throw new Error(`Reference not found: ${e}`);return t.defs[a]}throw new Error(`Reference not found: ${e}`)}function By(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return le.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){const a=e.$ref;if(t.refs.has(a))return t.refs.get(a);if(t.processing.has(a))return le.lazy(()=>{if(!t.refs.has(a))throw new Error(`Circular reference not resolved: ${a}`);return t.refs.get(a)});t.processing.add(a);const s=Fk(a,t),n=Yt(s,t);return t.refs.set(a,n),t.processing.delete(a),n}if(e.enum!==void 0){const a=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&a.length===1&&a[0]===null)return le.null();if(a.length===0)return le.never();if(a.length===1)return le.literal(a[0]);if(a.every(n=>typeof n=="string"))return le.enum(a);const s=a.map(n=>le.literal(n));return s.length<2?s[0]:le.union([s[0],s[1],...s.slice(2)])}if(e.const!==void 0)return le.literal(e.const);const i=e.type;if(Array.isArray(i)){const a=i.map(s=>{const n={...e,type:s};return By(n,t)});return a.length===0?le.never():a.length===1?a[0]:le.union(a)}if(!i)return le.any();let r;switch(i){case"string":{let a=le.string();if(e.format){const s=e.format;s==="email"?a=a.check(le.email()):s==="uri"||s==="uri-reference"?a=a.check(le.url()):s==="uuid"||s==="guid"?a=a.check(le.uuid()):s==="date-time"?a=a.check(le.iso.datetime()):s==="date"?a=a.check(le.iso.date()):s==="time"?a=a.check(le.iso.time()):s==="duration"?a=a.check(le.iso.duration()):s==="ipv4"?a=a.check(le.ipv4()):s==="ipv6"?a=a.check(le.ipv6()):s==="mac"?a=a.check(le.mac()):s==="cidr"?a=a.check(le.cidrv4()):s==="cidr-v6"?a=a.check(le.cidrv6()):s==="base64"?a=a.check(le.base64()):s==="base64url"?a=a.check(le.base64url()):s==="e164"?a=a.check(le.e164()):s==="jwt"?a=a.check(le.jwt()):s==="emoji"?a=a.check(le.emoji()):s==="nanoid"?a=a.check(le.nanoid()):s==="cuid"?a=a.check(le.cuid()):s==="cuid2"?a=a.check(le.cuid2()):s==="ulid"?a=a.check(le.ulid()):s==="xid"?a=a.check(le.xid()):s==="ksuid"&&(a=a.check(le.ksuid()))}typeof e.minLength=="number"&&(a=a.min(e.minLength)),typeof e.maxLength=="number"&&(a=a.max(e.maxLength)),e.pattern&&(a=a.regex(new RegExp(e.pattern))),r=a;break}case"number":case"integer":{let a=i==="integer"?le.number().int():le.number();typeof e.minimum=="number"&&(a=a.min(e.minimum)),typeof e.maximum=="number"&&(a=a.max(e.maximum)),typeof e.exclusiveMinimum=="number"?a=a.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(a=a.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?a=a.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(a=a.lt(e.maximum)),typeof e.multipleOf=="number"&&(a=a.multipleOf(e.multipleOf)),r=a;break}case"boolean":{r=le.boolean();break}case"null":{r=le.null();break}case"object":{const a={},s=e.properties||{},n=new Set(e.required||[]);for(const[u,l]of Object.entries(s)){const c=Yt(l,t);a[u]=n.has(u)?c:c.optional()}if(e.propertyNames){const u=Yt(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?Yt(e.additionalProperties,t):le.any();if(Object.keys(a).length===0){r=le.record(u,l);break}const c=le.object(a).passthrough(),f=le.looseRecord(u,l);r=le.intersection(c,f);break}if(e.patternProperties){const u=e.patternProperties,l=Object.keys(u),c=[];for(const h of l){const g=Yt(u[h],t),p=le.string().regex(new RegExp(h));c.push(le.looseRecord(p,g))}const f=[];if(Object.keys(a).length>0&&f.push(le.object(a).passthrough()),f.push(...c),f.length===0)r=le.object({}).passthrough();else if(f.length===1)r=f[0];else{let h=le.intersection(f[0],f[1]);for(let g=2;g<f.length;g++)h=le.intersection(h,f[g]);r=h}break}const o=le.object(a);e.additionalProperties===!1?r=o.strict():typeof e.additionalProperties=="object"?r=o.catchall(Yt(e.additionalProperties,t)):r=o.passthrough();break}case"array":{const a=e.prefixItems,s=e.items;if(a&&Array.isArray(a)){const n=a.map(u=>Yt(u,t)),o=s&&typeof s=="object"&&!Array.isArray(s)?Yt(s,t):void 0;o?r=le.tuple(n).rest(o):r=le.tuple(n),typeof e.minItems=="number"&&(r=r.check(le.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(le.maxLength(e.maxItems)))}else if(Array.isArray(s)){const n=s.map(u=>Yt(u,t)),o=e.additionalItems&&typeof e.additionalItems=="object"?Yt(e.additionalItems,t):void 0;o?r=le.tuple(n).rest(o):r=le.tuple(n),typeof e.minItems=="number"&&(r=r.check(le.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(le.maxLength(e.maxItems)))}else if(s!==void 0){const n=Yt(s,t);let o=le.array(n);typeof e.minItems=="number"&&(o=o.min(e.minItems)),typeof e.maxItems=="number"&&(o=o.max(e.maxItems)),r=o}else r=le.array(le.any());break}default:throw new Error(`Unsupported type: ${i}`)}return e.description&&(r=r.describe(e.description)),e.default!==void 0&&(r=r.default(e.default)),r}function Yt(e,t){if(typeof e=="boolean")return e?le.any():le.never();let i=By(e,t);const r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){const o=e.anyOf.map(l=>Yt(l,t)),u=le.union(o);i=r?le.intersection(i,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){const o=e.oneOf.map(l=>Yt(l,t)),u=le.xor(o);i=r?le.intersection(i,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)i=r?i:le.any();else{let o=r?i:Yt(e.allOf[0],t);const u=r?0:1;for(let l=u;l<e.allOf.length;l++)o=le.intersection(o,Yt(e.allOf[l],t));i=o}e.nullable===!0&&t.version==="openapi-3.0"&&(i=le.nullable(i)),e.readOnly===!0&&(i=le.readonly(i));const a={},s=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(const o of s)o in e&&(a[o]=e[o]);const n=["contentEncoding","contentMediaType","contentSchema"];for(const o of n)o in e&&(a[o]=e[o]);for(const o of Object.keys(e))Nk.has(o)||(a[o]=e[o]);return Object.keys(a).length>0&&t.registry.add(i,a),i}function Ik(e,t){if(typeof e=="boolean")return e?le.any():le.never();const i=Bk(e,t?.defaultTarget),r=e.$defs||e.definitions||{},a={version:i,defs:r,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??_i};return Yt(e,a)}var Fy={};aa(Fy,{bigint:()=>Tk,boolean:()=>Pk,date:()=>Ok,number:()=>zk,string:()=>Vk});function Vk(e){return Sm(Ns,e)}function zk(e){return Tm(Is,e)}function Pk(e){return Um(Vs,e)}function Tk(e){return Gm(zs,e)}function Ok(e){return i4(Go,e)}Wt(ym());var Rt={DEFAULTS:{width:800,height:400,pixelRatio:2,fontFamily:"Open Sans",fontSize:48,color:"#ffffff",textAlign:"center"},LIMITS:{minWidth:1,maxWidth:4096,minHeight:1,maxHeight:4096,minFontSize:1,maxFontSize:512,minDuration:.1,maxDuration:120,maxTextLength:1e4},ANIMATION_TYPES:["typewriter","fadeIn","slideIn","shift","ascend","movingLetters"]},Ni=/^#[A-Fa-f0-9]{6}$/,Iy=te.object({src:te.string().url(),family:te.string(),weight:te.union([te.string(),te.number()]).optional(),style:te.string().optional(),originalFamily:te.string().optional()}),Vy=te.object({width:te.number().min(0).default(0),color:te.string().regex(Ni).default("#000000"),opacity:te.number().min(0).max(1).default(1),radius:te.number().min(0).default(0)}),zy=te.union([te.number().min(0),te.object({top:te.number().min(0).default(0),right:te.number().min(0).default(0),bottom:te.number().min(0).default(0),left:te.number().min(0).default(0)})]),Rk=FE.extend({family:te.string().default(Rt.DEFAULTS.fontFamily),size:te.number().int().min(Rt.LIMITS.minFontSize).max(Rt.LIMITS.maxFontSize).default(Rt.DEFAULTS.fontSize),weight:te.union([te.string(),te.number()]).default("400"),color:te.string().regex(Ni).default(Rt.DEFAULTS.color),opacity:te.number().min(0).max(1).default(1),background:te.string().regex(Ni).optional()}),Mk=te.object({type:te.enum(["linear","radial"]).default("linear"),angle:te.number().min(0).max(360).default(0),stops:te.array(te.object({offset:te.number().min(0).max(1),color:te.string().regex(Ni)})).min(2)}),Py=IE.extend({letterSpacing:te.number().default(0),lineHeight:te.number().min(0).max(10).default(1.2),textTransform:te.enum(["none","uppercase","lowercase","capitalize"]).default("none"),textDecoration:te.enum(["none","underline","line-through"]).default("none"),gradient:Mk.optional()}),Ty=NE.extend({width:te.number().min(0).default(0),color:te.string().regex(Ni).default("#000000"),opacity:te.number().min(0).max(1).default(1)}),Oy=SE.extend({offsetX:te.number().default(0),offsetY:te.number().default(0),blur:te.number().min(0).default(0),color:te.string().regex(Ni).default("#000000"),opacity:te.number().min(0).max(1).default(.5)}),Ry=DE.extend({color:te.string().regex(Ni).optional(),opacity:te.number().min(0).max(1).default(1)}),My=AE.extend({horizontal:te.enum(["left","center","right"]).default(Rt.DEFAULTS.textAlign),vertical:te.enum(["top","middle","bottom"]).default("middle")}),Zk=kE.extend({preset:te.enum(Rt.ANIMATION_TYPES),speed:te.number().min(.1).max(10).default(1),duration:te.number().min(Rt.LIMITS.minDuration).max(Rt.LIMITS.maxDuration).optional(),style:te.enum(["character","word"]).optional(),direction:te.enum(["left","right","up","down"]).optional()}).superRefine((e,t)=>{const i=["typewriter","shift","fadeIn","slideIn"];e.style&&!i.includes(e.preset)&&t.addIssue({code:te.ZodIssueCode.custom,message:`style is not allowed for preset "${e.preset}"`,path:["style"]});const r={ascend:["up","down"],shift:["left","right","up","down"],slideIn:["left","right","up","down"],movingLetters:["left","right","up","down"]};if(e.direction){const a=r[e.preset];a?a.includes(e.direction)||t.addIssue({code:te.ZodIssueCode.custom,message:`direction "${e.direction}" is not valid for preset "${e.preset}"`,path:["direction"]}):t.addIssue({code:te.ZodIssueCode.custom,message:`direction is not allowed for preset "${e.preset}"`,path:["direction"]})}}),Lk=rh.extend({type:te.literal("rich-text"),text:te.string().max(Rt.LIMITS.maxTextLength).default(""),width:te.number().int().min(Rt.LIMITS.minWidth).max(Rt.LIMITS.maxWidth).default(Rt.DEFAULTS.width).optional(),height:te.number().int().min(Rt.LIMITS.minHeight).max(Rt.LIMITS.maxHeight).default(Rt.DEFAULTS.height).optional(),font:Rk.optional(),style:Py.optional(),stroke:Ty.optional(),shadow:Oy.optional(),background:Ry.optional(),border:Vy.optional(),padding:zy.optional(),align:My.optional(),animation:Zk.optional(),customFonts:te.array(Iy).optional()}).strict(),$k=te.object({text:te.string().min(1),start:te.number().min(0),end:te.number().min(0),confidence:te.number().min(0).max(1).optional()}),Uk=te.object({family:te.string().default("Roboto"),size:te.number().int().min(1).max(500).default(24),weight:te.union([te.string(),te.number()]).default("400"),color:te.string().regex(Ni).default("#ffffff"),opacity:te.number().min(0).max(1).default(1),background:te.string().regex(Ni).optional()}),jk=BE.extend({font:te.object({color:te.string().regex(Ni).default("#ffffff"),background:te.string().regex(Ni).optional(),opacity:te.number().min(0).max(1).default(1)}).optional(),stroke:te.object({width:te.number().min(0).optional(),color:te.string().regex(Ni).optional(),opacity:te.number().min(0).max(1).optional()}).optional(),scale:te.number().min(.5).max(2).default(1)}),Gk=EE.extend({style:te.enum(["karaoke","highlight","pop","fade","slide","bounce","typewriter","none"]).default("highlight"),speed:te.number().min(.5).max(2).default(1),direction:te.enum(["left","right","up","down"]).default("up")});te.object({type:te.literal("rich-caption"),src:te.string().min(1).optional(),words:te.array($k).max(1e5).optional(),font:Uk.optional(),style:Py.optional(),stroke:Ty.optional(),shadow:Oy.optional(),background:Ry.optional(),border:Vy.optional(),padding:zy.optional(),align:My.optional(),active:jk.optional(),wordAnimation:Gk.optional(),pauseThreshold:te.number().min(0).default(500).optional(),customFonts:te.array(Iy).optional()}).superRefine((e,t)=>{!e.src&&!e.words&&t.addIssue({code:te.ZodIssueCode.custom,message:"Either src or words must be provided",path:["src"]})});var eu=null;function Zy(){return typeof process<"u"&&process.versions!=null&&process.versions.node!=null}function Wk(e){if(e.buffer instanceof ArrayBuffer)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);const t=new ArrayBuffer(e.byteLength),i=new Uint8Array(t);for(let r=0;r<e.byteLength;r++)i[r]=e[r];return t}var Ly="https://shotstack-ingest-api-dev-sources.s3.ap-southeast-2.amazonaws.com/euo5r93oyr/zzz01k9h-yycyx-2x2y6-qx9bj-7n567b/source.wasm";async function $y(e){try{const t=await fetch(e);if(t.ok){const i=await t.arrayBuffer(),r=new Uint8Array(i);if(r.length>=4&&r[0]===0&&r[1]===97&&r[2]===115&&r[3]===109)return i;console.error(`❌ Invalid WASM magic number from URL: ${e}`)}else console.error(`❌ Failed to fetch WASM from URL: ${e}, status: ${t.status}`);return}catch(t){console.error(`❌ Error fetching WASM from ${e}:`,t);return}}async function Yk(){try{const{readFile:e}=await Promise.resolve().then(()=>Wu),t=await Promise.resolve().then(()=>Wu),i=[];try{const{createRequire:a}=await Promise.resolve().then(()=>Wu),n=a((typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:ia&&ia.tagName.toUpperCase()==="SCRIPT"&&ia.src||new URL("internal.umd.js",document.baseURI).href)||`file://${process.cwd()}/`).resolve("harfbuzzjs/package.json"),o=t.dirname(n);i.push(t.join(o,"hb.wasm"))}catch{}let r;try{if(typeof(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:ia&&ia.tagName.toUpperCase()==="SCRIPT"&&ia.src||new URL("internal.umd.js",document.baseURI).href)=="string"){const{fileURLToPath:a}=await Promise.resolve().then(()=>Wu);r=t.dirname(a(typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:ia&&ia.tagName.toUpperCase()==="SCRIPT"&&ia.src||new URL("internal.umd.js",document.baseURI).href))}}catch{}r||(r=process.cwd()),i.push(t.join(r,"dist/hb.wasm"),t.join(r,"assets/wasm/hb.wasm"),t.join(r,"node_modules/harfbuzzjs/hb.wasm"),t.join(r,"node_modules/@shotstack/shotstack-canvas/assets/wasm/hb.wasm")),i.push("/var/task/node_modules/harfbuzzjs/hb.wasm","/var/task/node_modules/@shotstack/shotstack-canvas/assets/wasm/hb.wasm");for(const a of i)try{const s=await e(a);return Wk(s)}catch{continue}return await $y(Ly)}catch(e){return console.error("Error in loadWasmNode:",e),await $y(Ly)}}async function Kk(e){try{if(e){const t=e.endsWith(".wasm")?e:e.endsWith("/")?`${e}hb.wasm`:`${e}/hb.wasm`,i=await fetch(t);if(i.ok){const r=await i.arrayBuffer(),a=new Uint8Array(r);if(a.length>=4&&a[0]===0&&a[1]===97&&a[2]===115&&a[3]===109)return r}}return}catch(t){console.error("Error in loadWasmWeb:",t);return}}function Xk(e){const t=window.fetch;window.fetch=function(a,s){return(typeof a=="string"?a:a instanceof URL?a.href:a.url).includes("hb.wasm")?Promise.resolve(new Response(e.slice(0),{status:200,statusText:"OK",headers:{"Content-Type":"application/wasm","Content-Length":e.byteLength.toString()}})):t.apply(this,[a,s])};const i=WebAssembly.instantiate;WebAssembly.instantiate=async function(a,s){if(a instanceof WebAssembly.Module||(a instanceof ArrayBuffer,a.byteLength)!==e.byteLength)return i.call(WebAssembly,a,s);const o=await WebAssembly.compile(e),u=await i.call(WebAssembly,o,s);return{module:o,instance:u}};const r=WebAssembly.instantiateStreaming;r&&(WebAssembly.instantiateStreaming=async function(a,s){try{const n=await a;if((n.url||"").includes("hb.wasm")){const u=await WebAssembly.compile(e),l=await WebAssembly.instantiate(u,s);return{module:u,instance:l}}return r.call(WebAssembly,n,s)}catch(n){throw n}})}async function Hk(e){if(eu)return eu;try{let t;if(Zy()?t=await Yk():t=await Kk(e),!t)throw new Error("Failed to load WASM binary from any source");Zy()||(Xk(t),window.Module={wasmBinary:t,locateFile:u=>u});const i=await Promise.resolve().then(()=>sz),a=await(i.default||i)({wasmBinary:t}),s=await Promise.resolve().then(()=>uz),o=(s.default||s)(a);if(!o||typeof o.createBuffer!="function"||typeof o.createFont!="function")throw new Error("Failed to initialize HarfBuzz: unexpected export shape from 'harfbuzzjs'.");return eu=o,eu}catch(t){throw console.error("Failed to initialize HarfBuzz:",t),new Error(`Failed to initialize HarfBuzz: ${t instanceof Error?t.message:String(t)}`)}}var Jk={utf16le:"utf-16le",ucs2:"utf-16le",utf16be:"utf-16be"},$t=class{constructor(e){this.buffer=e,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.pos=0,this.length=this.buffer.length}readString(e,t="ascii"){t=Jk[t]||t;let i=this.readBuffer(e);try{return new TextDecoder(t).decode(i)}catch{return i}}readBuffer(e){return this.buffer.slice(this.pos,this.pos+=e)}readUInt24BE(){return(this.readUInt16BE()<<8)+this.readUInt8()}readUInt24LE(){return this.readUInt16LE()+(this.readUInt8()<<16)}readInt24BE(){return(this.readInt16BE()<<8)+this.readUInt8()}readInt24LE(){return this.readUInt16LE()+(this.readInt8()<<16)}};$t.TYPES={UInt8:1,UInt16:2,UInt24:3,UInt32:4,Int8:1,Int16:2,Int24:3,Int32:4,Float:4,Double:8};for(let e of Object.getOwnPropertyNames(DataView.prototype))if(e.slice(0,3)==="get"){let t=e.slice(3).replace("Ui","UI");t==="Float32"?t="Float":t==="Float64"&&(t="Double");let i=$t.TYPES[t];$t.prototype["read"+t+(i===1?"":"BE")]=function(){const r=this.view[e](this.pos,!1);return this.pos+=i,r},i!==1&&($t.prototype["read"+t+"LE"]=function(){const r=this.view[e](this.pos,!0);return this.pos+=i,r})}var qk=new TextEncoder,Uy=new Uint8Array(new Uint16Array([4660]).buffer)[0]==18,tu=class{constructor(e){this.buffer=e,this.view=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),this.pos=0}writeBuffer(e){this.buffer.set(e,this.pos),this.pos+=e.length}writeString(e,t="ascii"){let i;switch(t){case"utf16le":case"utf16-le":case"ucs2":i=jy(e,Uy);break;case"utf16be":case"utf16-be":i=jy(e,!Uy);break;case"utf8":i=qk.encode(e);break;case"ascii":i=Qk(e);break;default:throw new Error(`Unsupported encoding: ${t}`)}this.writeBuffer(i)}writeUInt24BE(e){this.buffer[this.pos++]=e>>>16&255,this.buffer[this.pos++]=e>>>8&255,this.buffer[this.pos++]=e&255}writeUInt24LE(e){this.buffer[this.pos++]=e&255,this.buffer[this.pos++]=e>>>8&255,this.buffer[this.pos++]=e>>>16&255}writeInt24BE(e){e>=0?this.writeUInt24BE(e):this.writeUInt24BE(e+16777215+1)}writeInt24LE(e){e>=0?this.writeUInt24LE(e):this.writeUInt24LE(e+16777215+1)}fill(e,t){if(t<this.buffer.length)this.buffer.fill(e,this.pos,this.pos+t),this.pos+=t;else{const i=new Uint8Array(t);i.fill(e),this.writeBuffer(i)}}};function jy(e,t){let i=new Uint16Array(e.length);for(let r=0;r<e.length;r++){let a=e.charCodeAt(r);t&&(a=a>>8|(a&255)<<8),i[r]=a}return new Uint8Array(i.buffer)}function Qk(e){let t=new Uint8Array(e.length);for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t}for(let e of Object.getOwnPropertyNames(DataView.prototype))if(e.slice(0,3)==="set"){let t=e.slice(3).replace("Ui","UI");t==="Float32"?t="Float":t==="Float64"&&(t="Double");let i=$t.TYPES[t];tu.prototype["write"+t+(i===1?"":"BE")]=function(r){this.view[e](this.pos,r,!1),this.pos+=i},i!==1&&(tu.prototype["write"+t+"LE"]=function(r){this.view[e](this.pos,r,!0),this.pos+=i})}var oa=class{fromBuffer(e){let t=new $t(e);return this.decode(t)}toBuffer(e){let t=this.size(e),i=new Uint8Array(t),r=new tu(i);return this.encode(r,e),i}},rt=class extends oa{constructor(e,t="BE"){super(),this.type=e,this.endian=t,this.fn=this.type,this.type[this.type.length-1]!=="8"&&(this.fn+=this.endian)}size(){return $t.TYPES[this.type]}decode(e){return e[`read${this.fn}`]()}encode(e,t){return e[`write${this.fn}`](t)}},oe=new rt("UInt8"),eD=new rt("UInt16","BE"),d=eD;new rt("UInt16","LE");var tD=new rt("UInt24","BE"),Ia=tD;new rt("UInt24","LE");var iD=new rt("UInt32","BE"),B=iD;new rt("UInt32","LE");var Mt=new rt("Int8"),aD=new rt("Int16","BE"),K=aD;new rt("Int16","LE"),new rt("Int24","BE"),new rt("Int24","LE");var rD=new rt("Int32","BE"),sr=rD;new rt("Int32","LE"),new rt("Float","BE"),new rt("Float","LE"),new rt("Double","BE"),new rt("Double","LE");var nr=class extends rt{constructor(e,t,i=e>>1){super(`Int${e}`,t),this._point=1<<i}decode(e){return super.decode(e)/this._point}encode(e,t){return super.encode(e,t*this._point|0)}},sD=new nr(16,"BE"),nD=sD;new nr(16,"LE");var oD=new nr(32,"BE"),Nt=oD;new nr(32,"LE");function Gi(e,t,i){let r;if(typeof e=="number"?r=e:typeof e=="function"?r=e.call(i,i):i&&typeof e=="string"?r=i[e]:t&&e instanceof rt&&(r=e.decode(t)),isNaN(r))throw new Error("Not a fixed size");return r}var Bc=class{constructor(e={}){this.enumerable=!0,this.configurable=!0;for(let t in e){const i=e[t];this[t]=i}}},S=class extends oa{constructor(e,t,i="count"){super(),this.type=e,this.length=t,this.lengthType=i}decode(e,t){let i;const{pos:r}=e,a=[];let s=t;if(this.length!=null&&(i=Gi(this.length,e,t)),this.length instanceof rt&&(Object.defineProperties(a,{parent:{value:t},_startOffset:{value:r},_currentOffset:{value:0,writable:!0},_length:{value:i}}),s=a),i==null||this.lengthType==="bytes"){const n=i!=null?e.pos+i:t?._length?t._startOffset+t._length:e.length;for(;e.pos<n;)a.push(this.type.decode(e,s))}else for(let n=0,o=i;n<o;n++)a.push(this.type.decode(e,s));return a}size(e,t,i=!0){if(!e)return this.type.size(null,t)*Gi(this.length,null,t);let r=0;this.length instanceof rt&&(r+=this.length.size(),t={parent:t,pointerSize:0});for(let a of e)r+=this.type.size(a,t);return t&&i&&this.length instanceof rt&&(r+=t.pointerSize),r}encode(e,t,i){let r=i;this.length instanceof rt&&(r={pointers:[],startOffset:e.pos,parent:i},r.pointerOffset=e.pos+this.size(t,r,!1),this.length.encode(e,t.length));for(let a of t)this.type.encode(e,a,r);if(this.length instanceof rt){let a=0;for(;a<r.pointers.length;){const s=r.pointers[a++];s.type.encode(e,s.val,s.parent)}}}},lt=class extends S{decode(e,t){const{pos:i}=e,r=Gi(this.length,e,t);this.length instanceof rt&&(t={parent:t,_startOffset:i,_currentOffset:0,_length:r});const a=new Fc(this.type,r,e,t);return e.pos+=r*this.type.size(null,t),a}size(e,t){return e instanceof Fc&&(e=e.toArray()),super.size(e,t)}encode(e,t,i){return t instanceof Fc&&(t=t.toArray()),super.encode(e,t,i)}},Fc=class{constructor(e,t,i,r){this.type=e,this.length=t,this.stream=i,this.ctx=r,this.base=this.stream.pos,this.items=[]}get(e){if(!(e<0||e>=this.length)){if(this.items[e]==null){const{pos:t}=this.stream;this.stream.pos=this.base+this.type.size(null,this.ctx)*e,this.items[e]=this.type.decode(this.stream,this.ctx),this.stream.pos=t}return this.items[e]}}toArray(){const e=[];for(let t=0,i=this.length;t<i;t++)e.push(this.get(t));return e}},Pi=class extends oa{constructor(e,t=[]){super(),this.type=e,this.flags=t}decode(e){const t=this.type.decode(e),i={};for(let r=0;r<this.flags.length;r++){const a=this.flags[r];a!=null&&(i[a]=!!(t&1<<r))}return i}size(){return this.type.size()}encode(e,t){let i=0;for(let r=0;r<this.flags.length;r++){const a=this.flags[r];a!=null&&t[a]&&(i|=1<<r)}return this.type.encode(e,i)}},Wi=class extends oa{constructor(e){super(),this.length=e}decode(e,t){const i=Gi(this.length,e,t);return e.readBuffer(i)}size(e,t){if(!e)return Gi(this.length,null,t);let i=e.length;return this.length instanceof rt&&(i+=this.length.size()),i}encode(e,t,i){return this.length instanceof rt&&this.length.encode(e,t.length),e.writeBuffer(t)}},iu=class extends oa{constructor(e,t=!0){super(),this.type=e,this.condition=t}decode(e,t){let{condition:i}=this;if(typeof i=="function"&&(i=i.call(t,t)),i)return this.type.decode(e,t)}size(e,t){let{condition:i}=this;return typeof i=="function"&&(i=i.call(t,t)),i?this.type.size(e,t):0}encode(e,t,i){let{condition:r}=this;if(typeof r=="function"&&(r=r.call(i,i)),r)return this.type.encode(e,t,i)}},yt=class extends oa{constructor(e,t=1){super(),this.type=e,this.count=t}decode(e,t){e.pos+=this.size(null,t)}size(e,t){const i=Gi(this.count,null,t);return this.type.size()*i}encode(e,t,i){return e.fill(0,this.size(t,i))}},nt=class extends oa{constructor(e,t="ascii"){super(),this.length=e,this.encoding=t}decode(e,t){let i,r,{encoding:a}=this;typeof a=="function"&&(a=a.call(t,t)||"ascii");let s=Ic(a);if(this.length!=null)i=Gi(this.length,e,t);else{let o;for({buffer:o,length:i,pos:r}=e;r<i-s+1&&(o[r]!==0||s===2&&o[r+1]!==0);)r+=s;i=r-e.pos}const n=e.readString(i,a);return this.length==null&&e.pos<e.length&&(e.pos+=s),n}size(e,t){if(e==null)return Gi(this.length,null,t);let{encoding:i}=this;typeof i=="function"&&(i=i.call(t?.val,t?.val)||"ascii"),i==="utf16be"&&(i="utf16le");let r=Gy(e,i);return this.length instanceof rt&&(r+=this.length.size()),this.length==null&&(r+=Ic(i)),r}encode(e,t,i){let{encoding:r}=this;if(typeof r=="function"&&(r=r.call(i?.val,i?.val)||"ascii"),this.length instanceof rt&&this.length.encode(e,Gy(t,r)),e.writeString(t,r),this.length==null)return Ic(r)==2?e.writeUInt16LE(0):e.writeUInt8(0)}};function Ic(e){switch(e){case"ascii":case"utf8":return 1;case"utf16le":case"utf16-le":case"utf-16be":case"utf-16le":case"utf16be":case"utf16-be":case"ucs2":return 2;default:return 1}}function Gy(e,t){switch(t){case"ascii":return e.length;case"utf8":let i=0;for(let r=0;r<e.length;r++){let a=e.charCodeAt(r);if(a>=55296&&a<=56319&&r<e.length-1){let s=e.charCodeAt(++r);(s&64512)===56320?a=((a&1023)<<10)+(s&1023)+65536:r--}a&4294967168?a&4294965248?a&4294901760?a&4292870144||(i+=4):i+=3:i+=2:i++}return i;case"utf16le":case"utf16-le":case"utf16be":case"utf16-be":case"ucs2":return e.length*2;default:throw new Error("Unknown encoding "+t)}}var T=class extends oa{constructor(e={}){super(),this.fields=e}decode(e,t,i=0){const r=this._setup(e,t,i);return this._parseFields(e,r,this.fields),this.process!=null&&this.process.call(r,e),r}_setup(e,t,i){const r={};return Object.defineProperties(r,{parent:{value:t},_startOffset:{value:e.pos},_currentOffset:{value:0,writable:!0},_length:{value:i}}),r}_parseFields(e,t,i){for(let a in i){var r;const s=i[a];typeof s=="function"?r=s.call(t,t):r=s.decode(e,t),r!==void 0&&(r instanceof Bc?Object.defineProperty(t,a,r):t[a]=r),t._currentOffset=e.pos-t._startOffset}}size(e,t,i=!0){e==null&&(e={});const r={parent:t,val:e,pointerSize:0};this.preEncode!=null&&this.preEncode.call(e);let a=0;for(let s in this.fields){const n=this.fields[s];n.size!=null&&(a+=n.size(e[s],r))}return i&&(a+=r.pointerSize),a}encode(e,t,i){let r;this.preEncode!=null&&this.preEncode.call(t,e);const a={pointers:[],startOffset:e.pos,parent:i,val:t,pointerSize:0};a.pointerOffset=e.pos+this.size(t,a,!1);for(let n in this.fields)r=this.fields[n],r.encode!=null&&r.encode(e,t[n],a);let s=0;for(;s<a.pointers.length;){const n=a.pointers[s++];n.type.encode(e,n.val,n.parent)}}},uD=(e,t)=>t.reduce((i,r)=>i&&i[r],e),Ye=class A3 extends T{constructor(t,i={}){super(),this.type=t,this.versions=i,typeof t=="string"&&(this.versionPath=t.split("."))}decode(t,i,r=0){const a=this._setup(t,i,r);typeof this.type=="string"?a.version=uD(i,this.versionPath):a.version=this.type.decode(t),this.versions.header&&this._parseFields(t,a,this.versions.header);const s=this.versions[a.version];if(s==null)throw new Error(`Unknown version ${a.version}`);return s instanceof A3?s.decode(t,i):(this._parseFields(t,a,s),this.process!=null&&this.process.call(a,t),a)}size(t,i,r=!0){let a,s;if(!t)throw new Error("Not a fixed size");this.preEncode!=null&&this.preEncode.call(t);const n={parent:i,val:t,pointerSize:0};let o=0;if(typeof this.type!="string"&&(o+=this.type.size(t.version,n)),this.versions.header)for(a in this.versions.header)s=this.versions.header[a],s.size!=null&&(o+=s.size(t[a],n));const u=this.versions[t.version];if(u==null)throw new Error(`Unknown version ${t.version}`);for(a in u)s=u[a],s.size!=null&&(o+=s.size(t[a],n));return r&&(o+=n.pointerSize),o}encode(t,i,r){let a,s;this.preEncode!=null&&this.preEncode.call(i,t);const n={pointers:[],startOffset:t.pos,parent:r,val:i,pointerSize:0};if(n.pointerOffset=t.pos+this.size(i,n,!1),typeof this.type!="string"&&this.type.encode(t,i.version),this.versions.header)for(a in this.versions.header)s=this.versions.header[a],s.encode!=null&&s.encode(t,i[a],n);const o=this.versions[i.version];for(a in o)s=o[a],s.encode!=null&&s.encode(t,i[a],n);let u=0;for(;u<n.pointers.length;){const l=n.pointers[u++];l.type.encode(t,l.val,l.parent)}}},N=class extends oa{constructor(e,t,i={}){if(super(),this.offsetType=e,this.type=t,this.options=i,this.type==="void"&&(this.type=null),this.options.type==null&&(this.options.type="local"),this.options.allowNull==null&&(this.options.allowNull=!0),this.options.nullValue==null&&(this.options.nullValue=0),this.options.lazy==null&&(this.options.lazy=!1),this.options.relativeTo){if(typeof this.options.relativeTo!="function")throw new Error("relativeTo option must be a function");this.relativeToGetter=i.relativeTo}}decode(e,t){const i=this.offsetType.decode(e,t);if(i===this.options.nullValue&&this.options.allowNull)return null;let r;switch(this.options.type){case"local":r=t._startOffset;break;case"immediate":r=e.pos-this.offsetType.size();break;case"parent":r=t.parent._startOffset;break;default:for(var a=t;a.parent;)a=a.parent;r=a._startOffset||0}this.options.relativeTo&&(r+=this.relativeToGetter(t));const s=i+r;if(this.type!=null){let n=null;const o=()=>{if(n!=null)return n;const{pos:u}=e;return e.pos=s,n=this.type.decode(e,t),e.pos=u,n};return this.options.lazy?new Bc({get:o}):o()}else return s}size(e,t){const i=t;switch(this.options.type){case"local":case"immediate":break;case"parent":t=t.parent;break;default:for(;t.parent;)t=t.parent}let{type:r}=this;if(r==null){if(!(e instanceof Vc))throw new Error("Must be a VoidPointer");({type:r}=e),e=e.value}if(e&&t){let a=r.size(e,i);t.pointerSize+=a}return this.offsetType.size()}encode(e,t,i){let r;const a=i;if(t==null){this.offsetType.encode(e,this.options.nullValue);return}switch(this.options.type){case"local":r=i.startOffset;break;case"immediate":r=e.pos+this.offsetType.size(t,a);break;case"parent":i=i.parent,r=i.startOffset;break;default:for(r=0;i.parent;)i=i.parent}this.options.relativeTo&&(r+=this.relativeToGetter(a.val)),this.offsetType.encode(e,i.pointerOffset-r);let{type:s}=this;if(s==null){if(!(t instanceof Vc))throw new Error("Must be a VoidPointer");({type:s}=t),t=t.value}return i.pointers.push({type:s,val:t,parent:a}),i.pointerOffset+=s.size(t,a)}},Vc=class{constructor(e,t){this.type=e,this.value=t}};function ui(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Ut(e,t,i,r){var a=arguments.length,s=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,i):r,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,i,r);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(s=(a<3?n(s):a>3?n(t,i,s):n(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s}var Wy=_a(H7()),lD=_a(wh()),cD=_a(xh());function or(e){return e&&e.__esModule?e.default:e}var Va={};Va=JSON.parse('{"categories":["Cc","Zs","Po","Sc","Ps","Pe","Sm","Pd","Nd","Lu","Sk","Pc","Ll","So","Lo","Pi","Cf","No","Pf","Lt","Lm","Mn","Me","Mc","Nl","Zl","Zp","Cs","Co"],"combiningClasses":["Not_Reordered","Above","Above_Right","Below","Attached_Above_Right","Attached_Below","Overlay","Iota_Subscript","Double_Below","Double_Above","Below_Right","Above_Left","CCC10","CCC11","CCC12","CCC13","CCC14","CCC15","CCC16","CCC17","CCC18","CCC19","CCC20","CCC21","CCC22","CCC23","CCC24","CCC25","CCC30","CCC31","CCC32","CCC27","CCC28","CCC29","CCC33","CCC34","CCC35","CCC36","Nukta","Virama","CCC84","CCC91","CCC103","CCC107","CCC118","CCC122","CCC129","CCC130","CCC132","Attached_Above","Below_Left","Left","Kana_Voicing","CCC26","Right"],"scripts":["Common","Latin","Bopomofo","Inherited","Greek","Coptic","Cyrillic","Armenian","Hebrew","Arabic","Syriac","Thaana","Nko","Samaritan","Mandaic","Devanagari","Bengali","Gurmukhi","Gujarati","Oriya","Tamil","Telugu","Kannada","Malayalam","Sinhala","Thai","Lao","Tibetan","Myanmar","Georgian","Hangul","Ethiopic","Cherokee","Canadian_Aboriginal","Ogham","Runic","Tagalog","Hanunoo","Buhid","Tagbanwa","Khmer","Mongolian","Limbu","Tai_Le","New_Tai_Lue","Buginese","Tai_Tham","Balinese","Sundanese","Batak","Lepcha","Ol_Chiki","Braille","Glagolitic","Tifinagh","Han","Hiragana","Katakana","Yi","Lisu","Vai","Bamum","Syloti_Nagri","Phags_Pa","Saurashtra","Kayah_Li","Rejang","Javanese","Cham","Tai_Viet","Meetei_Mayek","null","Linear_B","Lycian","Carian","Old_Italic","Gothic","Old_Permic","Ugaritic","Old_Persian","Deseret","Shavian","Osmanya","Osage","Elbasan","Caucasian_Albanian","Linear_A","Cypriot","Imperial_Aramaic","Palmyrene","Nabataean","Hatran","Phoenician","Lydian","Meroitic_Hieroglyphs","Meroitic_Cursive","Kharoshthi","Old_South_Arabian","Old_North_Arabian","Manichaean","Avestan","Inscriptional_Parthian","Inscriptional_Pahlavi","Psalter_Pahlavi","Old_Turkic","Old_Hungarian","Hanifi_Rohingya","Old_Sogdian","Sogdian","Elymaic","Brahmi","Kaithi","Sora_Sompeng","Chakma","Mahajani","Sharada","Khojki","Multani","Khudawadi","Grantha","Newa","Tirhuta","Siddham","Modi","Takri","Ahom","Dogra","Warang_Citi","Nandinagari","Zanabazar_Square","Soyombo","Pau_Cin_Hau","Bhaiksuki","Marchen","Masaram_Gondi","Gunjala_Gondi","Makasar","Cuneiform","Egyptian_Hieroglyphs","Anatolian_Hieroglyphs","Mro","Bassa_Vah","Pahawh_Hmong","Medefaidrin","Miao","Tangut","Nushu","Duployan","SignWriting","Nyiakeng_Puachue_Hmong","Wancho","Mende_Kikakui","Adlam"],"eaw":["N","Na","A","W","H","F"]}');var zc=new cD.default(lD.default.toByteArray("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")),fD=Math.log2||(e=>Math.log(e)/Math.LN2),au=e=>fD(e)+1|0,dD=au(or(Va).categories.length-1),Yy=au(or(Va).combiningClasses.length-1),Pc=au(or(Va).scripts.length-1),Tc=au(or(Va).eaw.length-1),Oc=10,hD=Yy+Pc+Tc+Oc,gD=Pc+Tc+Oc,pD=Tc+Oc,mD=(1<<dD)-1,yD=(1<<Yy)-1,bD=(1<<Pc)-1;function ru(e){const t=zc.get(e);return or(Va).categories[t>>hD&mD]}function vD(e){const t=zc.get(e);return or(Va).combiningClasses[t>>gD&yD]}function Ky(e){const t=zc.get(e);return or(Va).scripts[t>>pD&bD]}function Xy(e){return ru(e)==="Nd"}function Hy(e){const t=ru(e);return t==="Mn"||t==="Me"||t==="Mc"}var Rc=_a(xh()),Jy=_a(q7()),Mc=_a(Q7()),wD=_a(Ch()),CD=_a(nA());function Us(e,t,i,r){Object.defineProperty(e,t,{get:i,set:r,enumerable:!0,configurable:!0})}function su(e){return e&&e.__esModule?e.default:e}var js={};Us(js,"logErrors",()=>xD),Us(js,"registerFormat",()=>Lr),Us(js,"create",()=>qy),Us(js,"defaultLanguage",()=>nu),Us(js,"setDefaultLanguage",()=>ED);var xD=!1,Zc=[];function Lr(e){Zc.push(e)}function qy(e,t){for(let i=0;i<Zc.length;i++){let r=Zc[i];if(r.probe(e)){let a=new r(new $t(e));return t?a.getFont(t):a}}throw new Error("Unknown font format")}var nu="en";function ED(e="en"){nu=e}function jt(e,t,i){if(i.get){let r=i.get;i.get=function(){let a=r.call(this);return Object.defineProperty(this,t,{value:a}),a}}else if(typeof i.value=="function"){let r=i.value;return{get(){let a=new Map;function s(...n){let o=n.length>0?n[0]:"value";if(a.has(o))return a.get(o);let u=r.apply(this,n);return a.set(o,u),u}return Object.defineProperty(this,t,{value:s}),s}}}}var AD=new T({firstCode:d,entryCount:d,idDelta:K,idRangeOffset:d}),Lc=new T({startCharCode:B,endCharCode:B,glyphID:B}),kD=new T({startUnicodeValue:Ia,additionalCount:oe}),DD=new T({unicodeValue:Ia,glyphID:d}),_D=new S(kD,B),SD=new S(DD,B),ND=new T({varSelector:Ia,defaultUVS:new N(B,_D,{type:"parent"}),nonDefaultUVS:new N(B,SD,{type:"parent"})}),BD=new Ye(d,{0:{length:d,language:d,codeMap:new lt(oe,256)},2:{length:d,language:d,subHeaderKeys:new S(d,256),subHeaderCount:e=>Math.max.apply(Math,e.subHeaderKeys),subHeaders:new lt(AD,"subHeaderCount"),glyphIndexArray:new lt(d,"subHeaderCount")},4:{length:d,language:d,segCountX2:d,segCount:e=>e.segCountX2>>1,searchRange:d,entrySelector:d,rangeShift:d,endCode:new lt(d,"segCount"),reservedPad:new yt(d),startCode:new lt(d,"segCount"),idDelta:new lt(K,"segCount"),idRangeOffset:new lt(d,"segCount"),glyphIndexArray:new lt(d,e=>(e.length-e._currentOffset)/2)},6:{length:d,language:d,firstCode:d,entryCount:d,glyphIndices:new lt(d,"entryCount")},8:{reserved:new yt(d),length:B,language:d,is32:new lt(oe,8192),nGroups:B,groups:new lt(Lc,"nGroups")},10:{reserved:new yt(d),length:B,language:B,firstCode:B,entryCount:B,glyphIndices:new lt(d,"numChars")},12:{reserved:new yt(d),length:B,language:B,nGroups:B,groups:new lt(Lc,"nGroups")},13:{reserved:new yt(d),length:B,language:B,nGroups:B,groups:new lt(Lc,"nGroups")},14:{length:B,numRecords:B,varSelectors:new lt(ND,"numRecords")}}),FD=new T({platformID:d,encodingID:d,table:new N(B,BD,{type:"parent",lazy:!0})}),ID=new T({version:d,numSubtables:d,tables:new S(FD,"numSubtables")}),VD=new T({version:sr,revision:sr,checkSumAdjustment:B,magicNumber:B,flags:d,unitsPerEm:d,created:new S(sr,2),modified:new S(sr,2),xMin:K,yMin:K,xMax:K,yMax:K,macStyle:new Pi(d,["bold","italic","underline","outline","shadow","condensed","extended"]),lowestRecPPEM:d,fontDirectionHint:K,indexToLocFormat:K,glyphDataFormat:K}),zD=new T({version:sr,ascent:K,descent:K,lineGap:K,advanceWidthMax:d,minLeftSideBearing:K,minRightSideBearing:K,xMaxExtent:K,caretSlopeRise:K,caretSlopeRun:K,caretOffset:K,reserved:new yt(K,4),metricDataFormat:K,numberOfMetrics:d}),PD=new T({advance:d,bearing:K}),TD=new T({metrics:new lt(PD,e=>e.parent.hhea.numberOfMetrics),bearings:new lt(K,e=>e.parent.maxp.numGlyphs-e.parent.hhea.numberOfMetrics)}),OD=new T({version:sr,numGlyphs:d,maxPoints:d,maxContours:d,maxComponentPoints:d,maxComponentContours:d,maxZones:d,maxTwilightPoints:d,maxStorage:d,maxFunctionDefs:d,maxInstructionDefs:d,maxStackElements:d,maxSizeOfInstructions:d,maxComponentElements:d,maxComponentDepth:d});function Qy(e,t,i=0){return e===1&&eb[i]?eb[i]:LD[e][t]}var RD=new Set(["x-mac-roman","x-mac-cyrillic","iso-8859-6","iso-8859-8"]),MD={"x-mac-croatian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ ÀÃÕŒœĐ—“”‘’÷◊©⁄€‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ","x-mac-gaelic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØḂ±≤≥ḃĊċḊḋḞḟĠġṀæøṁṖṗɼƒſṠ«»… ÀÃÕŒœ–—“”‘’ṡẛÿŸṪ€‹›Ŷŷṫ·Ỳỳ⁊ÂÊÁËÈÍÎÏÌÓÔ♣ÒÚÛÙıÝýŴŵẄẅẀẁẂẃ","x-mac-greek":"Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦€ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ","x-mac-icelandic":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-inuit":"ᐃᐄᐅᐆᐊᐋᐱᐲᐳᐴᐸᐹᑉᑎᑏᑐᑑᑕᑖᑦᑭᑮᑯᑰᑲᑳᒃᒋᒌᒍᒎᒐᒑ°ᒡᒥᒦ•¶ᒧ®©™ᒨᒪᒫᒻᓂᓃᓄᓅᓇᓈᓐᓯᓰᓱᓲᓴᓵᔅᓕᓖᓗᓘᓚᓛᓪᔨᔩᔪᔫᔭ… ᔮᔾᕕᕖᕗ–—“”‘’ᕘᕙᕚᕝᕆᕇᕈᕉᕋᕌᕐᕿᖀᖁᖂᖃᖄᖅᖏᖐᖑᖒᖓᖔᖕᙱᙲᙳᙴᙵᙶᖖᖠᖡᖢᖣᖤᖥᖦᕼŁł","x-mac-ce":"ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ","x-mac-romanian":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂȘ∞±≤≥¥µ∂∑∏π∫ªºΩăș¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄€‹›Țț‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ","x-mac-turkish":"ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔÒÚÛÙˆ˜¯˘˙˚¸˝˛ˇ"},$c=new Map;function ZD(e){let t=$c.get(e);if(t)return t;let i=MD[e];if(i){let r=new Map;for(let a=0;a<i.length;a++)r.set(i.charCodeAt(a),128+a);return $c.set(e,r),r}if(RD.has(e)){let r=new TextDecoder(e),a=new Uint8Array(128);for(let o=0;o<128;o++)a[o]=128+o;let s=new Map,n=r.decode(a);for(let o=0;o<128;o++)s.set(n.charCodeAt(o),128+o);return $c.set(e,s),s}}var LD=[["utf-16be","utf-16be","utf-16be","utf-16be","utf-16be","utf-16be","utf-16be"],["x-mac-roman","shift-jis","big5","euc-kr","iso-8859-6","iso-8859-8","x-mac-greek","x-mac-cyrillic","x-mac-symbol","x-mac-devanagari","x-mac-gurmukhi","x-mac-gujarati","Oriya","Bengali","Tamil","Telugu","Kannada","Malayalam","Sinhalese","Burmese","Khmer","iso-8859-11","Laotian","Georgian","Armenian","gbk","Tibetan","Mongolian","Geez","x-mac-ce","Vietnamese","Sindhi"],["ascii",null,"iso-8859-1"],["symbol","utf-16be","shift-jis","gb18030","big5","euc-kr","johab",null,null,null,"utf-16be"]],eb={15:"x-mac-icelandic",17:"x-mac-turkish",18:"x-mac-croatian",24:"x-mac-ce",25:"x-mac-ce",26:"x-mac-ce",27:"x-mac-ce",28:"x-mac-ce",30:"x-mac-icelandic",37:"x-mac-romanian",38:"x-mac-ce",39:"x-mac-ce",40:"x-mac-ce",143:"x-mac-inuit",146:"x-mac-gaelic"},$D=[[],{0:"en",30:"fo",60:"ks",90:"rw",1:"fr",31:"fa",61:"ku",91:"rn",2:"de",32:"ru",62:"sd",92:"ny",3:"it",33:"zh",63:"bo",93:"mg",4:"nl",34:"nl-BE",64:"ne",94:"eo",5:"sv",35:"ga",65:"sa",128:"cy",6:"es",36:"sq",66:"mr",129:"eu",7:"da",37:"ro",67:"bn",130:"ca",8:"pt",38:"cz",68:"as",131:"la",9:"no",39:"sk",69:"gu",132:"qu",10:"he",40:"si",70:"pa",133:"gn",11:"ja",41:"yi",71:"or",134:"ay",12:"ar",42:"sr",72:"ml",135:"tt",13:"fi",43:"mk",73:"kn",136:"ug",14:"el",44:"bg",74:"ta",137:"dz",15:"is",45:"uk",75:"te",138:"jv",16:"mt",46:"be",76:"si",139:"su",17:"tr",47:"uz",77:"my",140:"gl",18:"hr",48:"kk",78:"km",141:"af",19:"zh-Hant",49:"az-Cyrl",79:"lo",142:"br",20:"ur",50:"az-Arab",80:"vi",143:"iu",21:"hi",51:"hy",81:"id",144:"gd",22:"th",52:"ka",82:"tl",145:"gv",23:"ko",53:"mo",83:"ms",146:"ga",24:"lt",54:"ky",84:"ms-Arab",147:"to",25:"pl",55:"tg",85:"am",148:"el-polyton",26:"hu",56:"tk",86:"ti",149:"kl",27:"es",57:"mn-CN",87:"om",150:"az",28:"lv",58:"mn",88:"so",151:"nn",29:"se",59:"ps",89:"sw"},[],{1078:"af",16393:"en-IN",1159:"rw",1074:"tn",1052:"sq",6153:"en-IE",1089:"sw",1115:"si",1156:"gsw",8201:"en-JM",1111:"kok",1051:"sk",1118:"am",17417:"en-MY",1042:"ko",1060:"sl",5121:"ar-DZ",5129:"en-NZ",1088:"ky",11274:"es-AR",15361:"ar-BH",13321:"en-PH",1108:"lo",16394:"es-BO",3073:"ar",18441:"en-SG",1062:"lv",13322:"es-CL",2049:"ar-IQ",7177:"en-ZA",1063:"lt",9226:"es-CO",11265:"ar-JO",11273:"en-TT",2094:"dsb",5130:"es-CR",13313:"ar-KW",2057:"en-GB",1134:"lb",7178:"es-DO",12289:"ar-LB",1033:"en",1071:"mk",12298:"es-EC",4097:"ar-LY",12297:"en-ZW",2110:"ms-BN",17418:"es-SV",6145:"ary",1061:"et",1086:"ms",4106:"es-GT",8193:"ar-OM",1080:"fo",1100:"ml",18442:"es-HN",16385:"ar-QA",1124:"fil",1082:"mt",2058:"es-MX",1025:"ar-SA",1035:"fi",1153:"mi",19466:"es-NI",10241:"ar-SY",2060:"fr-BE",1146:"arn",6154:"es-PA",7169:"aeb",3084:"fr-CA",1102:"mr",15370:"es-PY",14337:"ar-AE",1036:"fr",1148:"moh",10250:"es-PE",9217:"ar-YE",5132:"fr-LU",1104:"mn",20490:"es-PR",1067:"hy",6156:"fr-MC",2128:"mn-CN",3082:"es",1101:"as",4108:"fr-CH",1121:"ne",1034:"es",2092:"az-Cyrl",1122:"fy",1044:"nb",21514:"es-US",1068:"az",1110:"gl",2068:"nn",14346:"es-UY",1133:"ba",1079:"ka",1154:"oc",8202:"es-VE",1069:"eu",3079:"de-AT",1096:"or",2077:"sv-FI",1059:"be",1031:"de",1123:"ps",1053:"sv",2117:"bn",5127:"de-LI",1045:"pl",1114:"syr",1093:"bn-IN",4103:"de-LU",1046:"pt",1064:"tg",8218:"bs-Cyrl",2055:"de-CH",2070:"pt-PT",2143:"tzm",5146:"bs",1032:"el",1094:"pa",1097:"ta",1150:"br",1135:"kl",1131:"qu-BO",1092:"tt",1026:"bg",1095:"gu",2155:"qu-EC",1098:"te",1027:"ca",1128:"ha",3179:"qu",1054:"th",3076:"zh-HK",1037:"he",1048:"ro",1105:"bo",5124:"zh-MO",1081:"hi",1047:"rm",1055:"tr",2052:"zh",1038:"hu",1049:"ru",1090:"tk",4100:"zh-SG",1039:"is",9275:"smn",1152:"ug",1028:"zh-TW",1136:"ig",4155:"smj-NO",1058:"uk",1155:"co",1057:"id",5179:"smj",1070:"hsb",1050:"hr",1117:"iu",3131:"se-FI",1056:"ur",4122:"hr-BA",2141:"iu-Latn",1083:"se",2115:"uz-Cyrl",1029:"cs",2108:"ga",2107:"se-SE",1091:"uz",1030:"da",1076:"xh",8251:"sms",1066:"vi",1164:"prs",1077:"zu",6203:"sma-NO",1106:"cy",1125:"dv",1040:"it",7227:"sms",1160:"wo",2067:"nl-BE",2064:"it-CH",1103:"sa",1157:"sah",1043:"nl",1041:"ja",7194:"sr-Cyrl-BA",1144:"ii",3081:"en-AU",1099:"kn",3098:"sr",1130:"yo",10249:"en-BZ",1087:"kk",6170:"sr-Latn-BA",4105:"en-CA",1107:"km",2074:"sr-Latn",9225:"en-029",1158:"quc",1132:"nso"}],tb=new T({platformID:d,encodingID:d,languageID:d,nameID:d,length:d,string:new N(d,new nt("length",e=>Qy(e.platformID,e.encodingID,e.languageID)),{type:"parent",relativeTo:e=>e.parent.stringOffset,allowNull:!1})}),UD=new T({length:d,tag:new N(d,new nt("length","utf16be"),{type:"parent",relativeTo:e=>e.stringOffset})}),ou=new Ye(d,{0:{count:d,stringOffset:d,records:new S(tb,"count")},1:{count:d,stringOffset:d,records:new S(tb,"count"),langTagCount:d,langTags:new S(UD,"langTagCount")}}),jD=ou,Uc=["copyright","fontFamily","fontSubfamily","uniqueSubfamily","fullName","version","postscriptName","trademark","manufacturer","designer","description","vendorURL","designerURL","license","licenseURL",null,"preferredFamily","preferredSubfamily","compatibleFull","sampleText","postscriptCIDFontName","wwsFamilyName","wwsSubfamilyName"];ou.process=function(e){var t={};for(let i of this.records){let r=$D[i.platformID][i.languageID];r==null&&this.langTags!=null&&i.languageID>=32768&&(r=this.langTags[i.languageID-32768].tag),r==null&&(r=i.platformID+"-"+i.languageID);let a=i.nameID>=256?"fontFeatures":Uc[i.nameID]||i.nameID;t[a]==null&&(t[a]={});let s=t[a];i.nameID>=256&&(s=s[i.nameID]||(s[i.nameID]={})),(typeof i.string=="string"||typeof s[r]!="string")&&(s[r]=i.string)}this.records=t},ou.preEncode=function(){if(Array.isArray(this.records))return;this.version=0;let e=[];for(let t in this.records){let i=this.records[t];t!=="fontFeatures"&&(e.push({platformID:3,encodingID:1,languageID:1033,nameID:Uc.indexOf(t),length:i.en.length*2,string:i.en}),t==="postscriptName"&&e.push({platformID:1,encodingID:0,languageID:0,nameID:Uc.indexOf(t),length:i.en.length,string:i.en}))}this.records=e,this.count=e.length,this.stringOffset=ou.size(this,null,!1)};var ib=new Ye(d,{header:{xAvgCharWidth:K,usWeightClass:d,usWidthClass:d,fsType:new Pi(d,[null,"noEmbedding","viewOnly","editable",null,null,null,null,"noSubsetting","bitmapOnly"]),ySubscriptXSize:K,ySubscriptYSize:K,ySubscriptXOffset:K,ySubscriptYOffset:K,ySuperscriptXSize:K,ySuperscriptYSize:K,ySuperscriptXOffset:K,ySuperscriptYOffset:K,yStrikeoutSize:K,yStrikeoutPosition:K,sFamilyClass:K,panose:new S(oe,10),ulCharRange:new S(B,4),vendorID:new nt(4),fsSelection:new Pi(d,["italic","underscore","negative","outlined","strikeout","bold","regular","useTypoMetrics","wws","oblique"]),usFirstCharIndex:d,usLastCharIndex:d},0:{},1:{typoAscender:K,typoDescender:K,typoLineGap:K,winAscent:d,winDescent:d,codePageRange:new S(B,2)},2:{typoAscender:K,typoDescender:K,typoLineGap:K,winAscent:d,winDescent:d,codePageRange:new S(B,2),xHeight:K,capHeight:K,defaultChar:d,breakChar:d,maxContent:d},5:{typoAscender:K,typoDescender:K,typoLineGap:K,winAscent:d,winDescent:d,codePageRange:new S(B,2),xHeight:K,capHeight:K,defaultChar:d,breakChar:d,maxContent:d,usLowerOpticalPointSize:d,usUpperOpticalPointSize:d}}),jc=ib.versions;jc[3]=jc[4]=jc[2];var GD=ib,WD=new Ye(Nt,{header:{italicAngle:Nt,underlinePosition:K,underlineThickness:K,isFixedPitch:B,minMemType42:B,maxMemType42:B,minMemType1:B,maxMemType1:B},1:{},2:{numberOfGlyphs:d,glyphNameIndex:new S(d,"numberOfGlyphs"),names:new S(new nt(oe))},2.5:{numberOfGlyphs:d,offsets:new S(oe,"numberOfGlyphs")},3:{},4:{map:new S(B,e=>e.parent.maxp.numGlyphs)}}),YD=new T({controlValues:new S(K)}),KD=new T({instructions:new S(oe)}),Gc=new Ye("head.indexToLocFormat",{0:{offsets:new S(d)},1:{offsets:new S(B)}});Gc.process=function(){if(this.version===0&&!this._processed){for(let e=0;e<this.offsets.length;e++)this.offsets[e]<<=1;this._processed=!0}},Gc.preEncode=function(){if(this.version===0&&this._processed!==!1){for(let e=0;e<this.offsets.length;e++)this.offsets[e]>>>=1;this._processed=!1}};var XD=Gc,HD=new T({controlValueProgram:new S(oe)}),JD=new S(new Wi),Yi=class{getCFFVersion(e){for(;e&&!e.hdrSize;)e=e.parent;return e?e.version:-1}decode(e,t){let r=this.getCFFVersion(t)>=2?e.readUInt32BE():e.readUInt16BE();if(r===0)return[];let a=e.readUInt8(),s;if(a===1)s=oe;else if(a===2)s=d;else if(a===3)s=Ia;else if(a===4)s=B;else throw new Error(`Bad offset size in CFFIndex: ${a} ${e.pos}`);let n=[],o=e.pos+(r+1)*a-1,u=s.decode(e);for(let l=0;l<r;l++){let c=s.decode(e);if(this.type!=null){let f=e.pos;e.pos=o+u,t.length=c-u,n.push(this.type.decode(e,t)),e.pos=f}else n.push({offset:o+u,length:c-u});u=c}return e.pos=o+u,n}size(e,t){let i=2;if(e.length===0)return i;let r=this.type||new Wi,a=1;for(let n=0;n<e.length;n++){let o=e[n];a+=r.size(o,t)}let s;if(a<=255)s=oe;else if(a<=65535)s=d;else if(a<=16777215)s=Ia;else if(a<=4294967295)s=B;else throw new Error("Bad offset in CFFIndex");return i+=1+s.size()*(e.length+1),i+=a-1,i}encode(e,t,i){if(e.writeUInt16BE(t.length),t.length===0)return;let r=this.type||new Wi,a=[],s=1;for(let o of t){let u=r.size(o,i);a.push(u),s+=u}let n;if(s<=255)n=oe;else if(s<=65535)n=d;else if(s<=16777215)n=Ia;else if(s<=4294967295)n=B;else throw new Error("Bad offset in CFFIndex");e.writeUInt8(n.size()),s=1,n.encode(e,s);for(let o of a)s+=o,n.encode(e,s);for(let o of t)r.encode(e,o,i)}constructor(e){this.type=e}},Gs=15,ab=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],rb={".":10,E:11,"E-":12,"-":14},Wc=class{static decode(e,t){if(32<=t&&t<=246)return t-139;if(247<=t&&t<=250)return(t-247)*256+e.readUInt8()+108;if(251<=t&&t<=254)return-(t-251)*256-e.readUInt8()-108;if(t===28)return e.readInt16BE();if(t===29)return e.readInt32BE();if(t===30){let i="";for(;;){let r=e.readUInt8(),a=r>>4;if(a===Gs)break;i+=ab[a];let s=r&15;if(s===Gs)break;i+=ab[s]}return parseFloat(i)}return null}static size(e){if(e.forceLarge&&(e=32768),(e|0)!==e){let t=""+e;return 1+Math.ceil((t.length+1)/2)}else return-107<=e&&e<=107?1:108<=e&&e<=1131||-1131<=e&&e<=-108?2:-32768<=e&&e<=32767?3:5}static encode(e,t){let i=Number(t);if(t.forceLarge)return e.writeUInt8(29),e.writeInt32BE(i);if((i|0)!==i){e.writeUInt8(30);let a=""+i;for(let s=0;s<a.length;s+=2){let n=a[s],o=rb[n]||+n;if(s===a.length-1)var r=Gs;else{let u=a[s+1];var r=rb[u]||+u}e.writeUInt8(o<<4|r&15)}if(r!==Gs)return e.writeUInt8(Gs<<4)}else return-107<=i&&i<=107?e.writeUInt8(i+139):108<=i&&i<=1131?(i-=108,e.writeUInt8((i>>8)+247),e.writeUInt8(i&255)):-1131<=i&&i<=-108?(i=-i-108,e.writeUInt8((i>>8)+251),e.writeUInt8(i&255)):-32768<=i&&i<=32767?(e.writeUInt8(28),e.writeInt16BE(i)):(e.writeUInt8(29),e.writeInt32BE(i))}},uu=class{decodeOperands(e,t,i,r){if(Array.isArray(e))return r.map((a,s)=>this.decodeOperands(e[s],t,i,[a]));if(e.decode!=null)return e.decode(t,i,r);switch(e){case"number":case"offset":case"sid":return r[0];case"boolean":return!!r[0];default:return r}}encodeOperands(e,t,i,r){return Array.isArray(e)?r.map((a,s)=>this.encodeOperands(e[s],t,i,a)[0]):e.encode!=null?e.encode(t,r,i):typeof r=="number"?[r]:typeof r=="boolean"?[+r]:Array.isArray(r)?r:[r]}decode(e,t){let i=e.pos+t.length,r={},a=[];Object.defineProperties(r,{parent:{value:t},_startOffset:{value:e.pos}});for(let s in this.fields){let n=this.fields[s];r[n[1]]=n[3]}for(;e.pos<i;){let s=e.readUInt8();if(s<28){s===12&&(s=s<<8|e.readUInt8());let n=this.fields[s];if(!n)throw new Error(`Unknown operator ${s}`);let o=this.decodeOperands(n[2],e,r,a);o!=null&&(o instanceof Bc?Object.defineProperty(r,n[1],o):r[n[1]]=o),a=[]}else a.push(Wc.decode(e,s))}return r}size(e,t,i=!0){let r={parent:t,val:e,pointerSize:0,startOffset:t.startOffset||0},a=0;for(let s in this.fields){let n=this.fields[s],o=e[n[1]];if(o==null||(0,Wy.default)(o,n[3]))continue;let u=this.encodeOperands(n[2],null,r,o);for(let c of u)a+=Wc.size(c);let l=Array.isArray(n[0])?n[0]:[n[0]];a+=l.length}return i&&(a+=r.pointerSize),a}encode(e,t,i){let r={pointers:[],startOffset:e.pos,parent:i,val:t,pointerSize:0};r.pointerOffset=e.pos+this.size(t,r,!1);for(let s of this.ops){let n=t[s[1]];if(n==null||(0,Wy.default)(n,s[3]))continue;let o=this.encodeOperands(s[2],e,r,n);for(let l of o)Wc.encode(e,l);let u=Array.isArray(s[0])?s[0]:[s[0]];for(let l of u)e.writeUInt8(l)}let a=0;for(;a<r.pointers.length;){let s=r.pointers[a++];s.type.encode(e,s.val,s.parent)}}constructor(e=[]){this.ops=e,this.fields={};for(let t of e){let i=Array.isArray(t[0])?t[0][0]<<8|t[0][1]:t[0];this.fields[i]=t}}},Ti=class extends N{decode(e,t,i){return this.offsetType={decode:()=>i[0]},super.decode(e,t,i)}encode(e,t,i){if(!e)return this.offsetType={size:()=>0},this.size(t,i),[new sb(0)];let r=null;return this.offsetType={encode:(a,s)=>r=s},super.encode(e,t,i),[new sb(r)]}constructor(e,t={}){t.type==null&&(t.type="global"),super(null,e,t)}},sb=class{valueOf(){return this.val}constructor(e){this.val=e,this.forceLarge=!0}},qD=class{static decode(e,t,i){let r=i.pop();for(;i.length>r;)i.pop()}},Yc=new uu([[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","number",.039625],[[12,10],"BlueShift","number",7],[[12,11],"BlueFuzz","number",1],[10,"StdHW","number",null],[11,"StdVW","number",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","boolean",!1],[[12,17],"LanguageGroup","number",0],[[12,18],"ExpansionFactor","number",.06],[[12,19],"initialRandomSeed","number",0],[20,"defaultWidthX","number",0],[21,"nominalWidthX","number",0],[22,"vsindex","number",0],[23,"blend",qD,null],[19,"Subrs",new Ti(new Yi,{type:"local"}),null]]),lu=[".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"],nb=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],QD=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],ob=[".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"],e_=[".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"],t_=[".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"],ub=new T({reserved:new yt(d),reqFeatureIndex:d,featureCount:d,featureIndexes:new S(d,"featureCount")}),i_=new T({tag:new nt(4),langSys:new N(d,ub,{type:"parent"})}),a_=new T({defaultLangSys:new N(d,ub),count:d,langSysRecords:new S(i_,"count")}),r_=new T({tag:new nt(4),script:new N(d,a_,{type:"parent"})}),lb=new S(r_,d),s_=new T({version:d,nameID:d}),cb=new T({featureParams:new N(d,s_),lookupCount:d,lookupListIndexes:new S(d,"lookupCount")}),n_=new T({tag:new nt(4),feature:new N(d,cb,{type:"parent"})}),fb=new S(n_,d),o_=new T({markAttachmentType:oe,flags:new Pi(oe,["rightToLeft","ignoreBaseGlyphs","ignoreLigatures","ignoreMarks","useMarkFilteringSet"])});function cu(e){let t=new T({lookupType:d,flags:o_,subTableCount:d,subTables:new S(new N(d,e),"subTableCount"),markFilteringSet:new iu(d,i=>i.flags.flags.useMarkFilteringSet)});return new lt(new N(d,t),d)}var u_=new T({start:d,end:d,startCoverageIndex:d}),ot=new Ye(d,{1:{glyphCount:d,glyphs:new S(d,"glyphCount")},2:{rangeCount:d,rangeRecords:new S(u_,"rangeCount")}}),l_=new T({start:d,end:d,class:d}),za=new Ye(d,{1:{startGlyph:d,glyphCount:d,classValueArray:new S(d,"glyphCount")},2:{classRangeCount:d,classRangeRecord:new S(l_,"classRangeCount")}}),Pa=new T({a:d,b:d,deltaFormat:d}),Ws=new T({sequenceIndex:d,lookupListIndex:d}),c_=new T({glyphCount:d,lookupCount:d,input:new S(d,e=>e.glyphCount-1),lookupRecords:new S(Ws,"lookupCount")}),f_=new S(new N(d,c_),d),d_=new T({glyphCount:d,lookupCount:d,classes:new S(d,e=>e.glyphCount-1),lookupRecords:new S(Ws,"lookupCount")}),h_=new S(new N(d,d_),d),db=new Ye(d,{1:{coverage:new N(d,ot),ruleSetCount:d,ruleSets:new S(new N(d,f_),"ruleSetCount")},2:{coverage:new N(d,ot),classDef:new N(d,za),classSetCnt:d,classSet:new S(new N(d,h_),"classSetCnt")},3:{glyphCount:d,lookupCount:d,coverages:new S(new N(d,ot),"glyphCount"),lookupRecords:new S(Ws,"lookupCount")}}),g_=new T({backtrackGlyphCount:d,backtrack:new S(d,"backtrackGlyphCount"),inputGlyphCount:d,input:new S(d,e=>e.inputGlyphCount-1),lookaheadGlyphCount:d,lookahead:new S(d,"lookaheadGlyphCount"),lookupCount:d,lookupRecords:new S(Ws,"lookupCount")}),hb=new S(new N(d,g_),d),gb=new Ye(d,{1:{coverage:new N(d,ot),chainCount:d,chainRuleSets:new S(new N(d,hb),"chainCount")},2:{coverage:new N(d,ot),backtrackClassDef:new N(d,za),inputClassDef:new N(d,za),lookaheadClassDef:new N(d,za),chainCount:d,chainClassSet:new S(new N(d,hb),"chainCount")},3:{backtrackGlyphCount:d,backtrackCoverage:new S(new N(d,ot),"backtrackGlyphCount"),inputGlyphCount:d,inputCoverage:new S(new N(d,ot),"inputGlyphCount"),lookaheadGlyphCount:d,lookaheadCoverage:new S(new N(d,ot),"lookaheadGlyphCount"),lookupCount:d,lookupRecords:new S(Ws,"lookupCount")}}),Ys=new nr(16,"BE",14),p_=new T({startCoord:Ys,peakCoord:Ys,endCoord:Ys}),m_=new T({axisCount:d,regionCount:d,variationRegions:new S(new S(p_,"axisCount"),"regionCount")}),y_=new T({shortDeltas:new S(K,e=>e.parent.shortDeltaCount),regionDeltas:new S(Mt,e=>e.parent.regionIndexCount-e.parent.shortDeltaCount),deltas:e=>e.shortDeltas.concat(e.regionDeltas)}),b_=new T({itemCount:d,shortDeltaCount:d,regionIndexCount:d,regionIndexes:new S(d,"regionIndexCount"),deltaSets:new S(y_,"itemCount")}),fu=new T({format:d,variationRegionList:new N(B,m_),variationDataCount:d,itemVariationData:new S(new N(B,b_),"variationDataCount")}),v_=new Ye(d,{1:{axisIndex:d,axisIndex:d,filterRangeMinValue:Ys,filterRangeMaxValue:Ys}}),w_=new T({conditionCount:d,conditionTable:new S(new N(B,v_),"conditionCount")}),C_=new T({featureIndex:d,alternateFeatureTable:new N(B,cb,{type:"parent"})}),x_=new T({version:Nt,substitutionCount:d,substitutions:new S(C_,"substitutionCount")}),E_=new T({conditionSet:new N(B,w_,{type:"parent"}),featureTableSubstitution:new N(B,x_,{type:"parent"})}),pb=new T({majorVersion:d,minorVersion:d,featureVariationRecordCount:B,featureVariationRecords:new S(E_,"featureVariationRecordCount")}),mb=class{decode(e,t,i){return this.predefinedOps[i[0]]?this.predefinedOps[i[0]]:this.type.decode(e,t,i)}size(e,t){return this.type.size(e,t)}encode(e,t,i){let r=this.predefinedOps.indexOf(t);return r!==-1?r:this.type.encode(e,t,i)}constructor(e,t){this.predefinedOps=e,this.type=t}},A_=class extends rt{decode(e){return oe.decode(e)&127}constructor(){super("UInt8")}},yb=new T({first:d,nLeft:oe}),k_=new T({first:d,nLeft:d}),D_=new Ye(new A_,{0:{nCodes:oe,codes:new S(oe,"nCodes")},1:{nRanges:oe,ranges:new S(yb,"nRanges")}}),__=new mb([nb,QD],new Ti(D_,{lazy:!0})),bb=class extends S{decode(e,t){let i=Gi(this.length,e,t),r=0,a=[];for(;r<i;){let s=this.type.decode(e,t);s.offset=r,r+=s.nLeft+1,a.push(s)}return a}},S_=new Ye(oe,{0:{glyphs:new S(d,e=>e.parent.CharStrings.length-1)},1:{ranges:new bb(yb,e=>e.parent.CharStrings.length-1)},2:{ranges:new bb(k_,e=>e.parent.CharStrings.length-1)}}),N_=new mb([ob,e_,t_],new Ti(S_,{lazy:!0})),B_=new T({first:d,fd:oe}),F_=new T({first:B,fd:d}),vb=new Ye(oe,{0:{fds:new S(oe,e=>e.parent.CharStrings.length)},3:{nRanges:d,ranges:new S(B_,"nRanges"),sentinel:d},4:{nRanges:B,ranges:new S(F_,"nRanges"),sentinel:B}}),Kc=new Ti(Yc),wb=class{decode(e,t,i){return t.length=i[0],Kc.decode(e,t,[i[1]])}size(e,t){return[Yc.size(e,t,!1),Kc.size(e,t)[0]]}encode(e,t,i){return[Yc.size(t,i,!1),Kc.encode(e,t,i)[0]]}},Cb=new uu([[18,"Private",new wb,null],[[12,38],"FontName","sid",null],[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[[12,5],"PaintType","number",0]]),I_=new uu([[[12,30],"ROS",["sid","sid","number"],null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","boolean",!1],[[12,2],"ItalicAngle","number",0],[[12,3],"UnderlinePosition","number",-100],[[12,4],"UnderlineThickness","number",50],[[12,5],"PaintType","number",0],[[12,6],"CharstringType","number",2],[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[13,"UniqueID","number",null],[5,"FontBBox","array",[0,0,0,0]],[[12,8],"StrokeWidth","number",0],[14,"XUID","array",null],[15,"charset",N_,ob],[16,"Encoding",__,nb],[17,"CharStrings",new Ti(new Yi),null],[18,"Private",new wb,null],[[12,20],"SyntheticBase","number",null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","number",0],[[12,32],"CIDFontRevision","number",0],[[12,33],"CIDFontType","number",0],[[12,34],"CIDCount","number",8720],[[12,35],"UIDBase","number",null],[[12,37],"FDSelect",new Ti(vb),null],[[12,36],"FDArray",new Ti(new Yi(Cb)),null],[[12,38],"FontName","sid",null]]),V_=new T({length:d,itemVariationStore:fu}),z_=new uu([[[12,7],"FontMatrix","array",[.001,0,0,.001,0,0]],[17,"CharStrings",new Ti(new Yi),null],[[12,37],"FDSelect",new Ti(vb),null],[[12,36],"FDArray",new Ti(new Yi(Cb)),null],[24,"vstore",new Ti(V_),null],[25,"maxstack","number",193]]),P_=new Ye(nD,{1:{hdrSize:oe,offSize:oe,nameIndex:new Yi(new nt("length")),topDictIndex:new Yi(I_),stringIndex:new Yi(new nt("length")),globalSubrIndex:new Yi},2:{hdrSize:oe,length:d,topDict:z_,globalSubrIndex:new Yi}}),xb=P_,T_=class k3{static decode(t){return new k3(t)}decode(){this.stream.pos;let t=xb.decode(this.stream);for(let i in t){let r=t[i];this[i]=r}if(this.version<2){if(this.topDictIndex.length!==1)throw new Error("Only a single font is allowed in CFF");this.topDict=this.topDictIndex[0]}return this.isCIDFont=this.topDict.ROS!=null,this}string(t){return this.version>=2?null:t<lu.length?lu[t]:this.stringIndex[t-lu.length]}get postscriptName(){return this.version<2?this.nameIndex[0]:null}get fullName(){return this.string(this.topDict.FullName)}get familyName(){return this.string(this.topDict.FamilyName)}getCharString(t){return this.stream.pos=this.topDict.CharStrings[t].offset,this.stream.readBuffer(this.topDict.CharStrings[t].length)}getGlyphName(t){if(this.version>=2||this.isCIDFont)return null;let{charset:i}=this.topDict;if(Array.isArray(i))return i[t];if(t===0)return".notdef";switch(t-=1,i.version){case 0:return this.string(i.glyphs[t]);case 1:case 2:for(let r=0;r<i.ranges.length;r++){let a=i.ranges[r];if(a.offset<=t&&t<=a.offset+a.nLeft)return this.string(a.first+(t-a.offset))}break}return null}fdForGlyph(t){if(!this.topDict.FDSelect)return null;switch(this.topDict.FDSelect.version){case 0:return this.topDict.FDSelect.fds[t];case 3:case 4:let{ranges:i}=this.topDict.FDSelect,r=0,a=i.length-1;for(;r<=a;){let s=r+a>>1;if(t<i[s].first)a=s-1;else if(s<a&&t>=i[s+1].first)r=s+1;else return i[s].fd}default:throw new Error(`Unknown FDSelect version: ${this.topDict.FDSelect.version}`)}}privateDictForGlyph(t){if(this.topDict.FDSelect){let i=this.fdForGlyph(t);return this.topDict.FDArray[i]?this.topDict.FDArray[i].Private:null}return this.version<2?this.topDict.Private:this.topDict.FDArray[0].Private}constructor(t){this.stream=t,this.decode()}},Eb=T_,O_=new T({glyphIndex:d,vertOriginY:K}),R_=new T({majorVersion:d,minorVersion:d,defaultVertOriginY:K,numVertOriginYMetrics:d,metrics:new S(O_,"numVertOriginYMetrics")}),$r=new T({height:oe,width:oe,horiBearingX:Mt,horiBearingY:Mt,horiAdvance:oe,vertBearingX:Mt,vertBearingY:Mt,vertAdvance:oe}),du=new T({height:oe,width:oe,bearingX:Mt,bearingY:Mt,advance:oe}),Ab=new T({glyph:d,xOffset:Mt,yOffset:Mt}),kb=class{},Xc=class{};new Ye("version",{1:{metrics:du,data:kb},2:{metrics:du,data:Xc},5:{data:Xc},6:{metrics:$r,data:kb},7:{metrics:$r,data:Xc},8:{metrics:du,pad:new yt(oe),numComponents:d,components:new S(Ab,"numComponents")},9:{metrics:$r,pad:new yt(oe),numComponents:d,components:new S(Ab,"numComponents")},17:{metrics:du,dataLen:B,data:new Wi("dataLen")},18:{metrics:$r,dataLen:B,data:new Wi("dataLen")},19:{dataLen:B,data:new Wi("dataLen")}});var Db=new T({ascender:Mt,descender:Mt,widthMax:oe,caretSlopeNumerator:Mt,caretSlopeDenominator:Mt,caretOffset:Mt,minOriginSB:Mt,minAdvanceSB:Mt,maxBeforeBL:Mt,minAfterBL:Mt,pad:new yt(Mt,2)}),M_=new T({glyphCode:d,offset:d}),Z_=new Ye(d,{header:{imageFormat:d,imageDataOffset:B},1:{offsetArray:new S(B,e=>e.parent.lastGlyphIndex-e.parent.firstGlyphIndex+1)},2:{imageSize:B,bigMetrics:$r},3:{offsetArray:new S(d,e=>e.parent.lastGlyphIndex-e.parent.firstGlyphIndex+1)},4:{numGlyphs:B,glyphArray:new S(M_,e=>e.numGlyphs+1)},5:{imageSize:B,bigMetrics:$r,numGlyphs:B,glyphCodeArray:new S(d,"numGlyphs")}}),L_=new T({firstGlyphIndex:d,lastGlyphIndex:d,subtable:new N(B,Z_)}),$_=new T({indexSubTableArray:new N(B,new S(L_,1),{type:"parent"}),indexTablesSize:B,numberOfIndexSubTables:B,colorRef:B,hori:Db,vert:Db,startGlyphIndex:d,endGlyphIndex:d,ppemX:oe,ppemY:oe,bitDepth:oe,flags:new Pi(oe,["horizontal","vertical"])}),U_=new T({version:B,numSizes:B,sizes:new S($_,"numSizes")}),j_=new T({ppem:d,resolution:d,imageOffsets:new S(new N(B,"void"),e=>e.parent.parent.maxp.numGlyphs+1)}),G_=new T({version:d,flags:new Pi(d,["renderOutlines"]),numImgTables:B,imageTables:new S(new N(B,j_),"numImgTables")}),W_=new T({gid:d,paletteIndex:d}),Y_=new T({gid:d,firstLayerIndex:d,numLayers:d}),K_=new T({version:d,numBaseGlyphRecords:d,baseGlyphRecord:new N(B,new S(Y_,"numBaseGlyphRecords")),layerRecords:new N(B,new S(W_,"numLayerRecords"),{lazy:!0}),numLayerRecords:d}),X_=new T({blue:oe,green:oe,red:oe,alpha:oe}),H_=new Ye(d,{header:{numPaletteEntries:d,numPalettes:d,numColorRecords:d,colorRecords:new N(B,new S(X_,"numColorRecords")),colorRecordIndices:new S(d,"numPalettes")},0:{},1:{offsetPaletteTypeArray:new N(B,new S(B,"numPalettes")),offsetPaletteLabelArray:new N(B,new S(d,"numPalettes")),offsetPaletteEntryLabelArray:new N(B,new S(d,"numPaletteEntries"))}}),Ks=new Ye(d,{1:{coordinate:K},2:{coordinate:K,referenceGlyph:d,baseCoordPoint:d},3:{coordinate:K,deviceTable:new N(d,Pa)}}),J_=new T({defaultIndex:d,baseCoordCount:d,baseCoords:new S(new N(d,Ks),"baseCoordCount")}),q_=new T({tag:new nt(4),minCoord:new N(d,Ks,{type:"parent"}),maxCoord:new N(d,Ks,{type:"parent"})}),_b=new T({minCoord:new N(d,Ks),maxCoord:new N(d,Ks),featMinMaxCount:d,featMinMaxRecords:new S(q_,"featMinMaxCount")}),Q_=new T({tag:new nt(4),minMax:new N(d,_b,{type:"parent"})}),eS=new T({baseValues:new N(d,J_),defaultMinMax:new N(d,_b),baseLangSysCount:d,baseLangSysRecords:new S(Q_,"baseLangSysCount")}),tS=new T({tag:new nt(4),script:new N(d,eS,{type:"parent"})}),iS=new S(tS,d),aS=new S(new nt(4),d),Sb=new T({baseTagList:new N(d,aS),baseScriptList:new N(d,iS)}),rS=new Ye(B,{header:{horizAxis:new N(d,Sb),vertAxis:new N(d,Sb)},65536:{},65537:{itemVariationStore:new N(B,fu)}}),sS=new S(d,d),nS=new T({coverage:new N(d,ot),glyphCount:d,attachPoints:new S(new N(d,sS),"glyphCount")}),oS=new Ye(d,{1:{coordinate:K},2:{caretValuePoint:d},3:{coordinate:K,deviceTable:new N(d,Pa)}}),uS=new S(new N(d,oS),d),lS=new T({coverage:new N(d,ot),ligGlyphCount:d,ligGlyphs:new S(new N(d,uS),"ligGlyphCount")}),Nb=new T({markSetTableFormat:d,markSetCount:d,coverage:new S(new N(B,ot),"markSetCount")}),cS=new Ye(B,{header:{glyphClassDef:new N(d,za),attachList:new N(d,nS),ligCaretList:new N(d,lS),markAttachClassDef:new N(d,za)},65536:{},65538:{markGlyphSetsDef:new N(d,Nb)},65539:{markGlyphSetsDef:new N(d,Nb),itemVariationStore:new N(B,fu)}}),Ur=new Pi(d,["xPlacement","yPlacement","xAdvance","yAdvance","xPlaDevice","yPlaDevice","xAdvDevice","yAdvDevice"]),fS={xPlacement:K,yPlacement:K,xAdvance:K,yAdvance:K,xPlaDevice:new N(d,Pa,{type:"global",relativeTo:e=>e.rel}),yPlaDevice:new N(d,Pa,{type:"global",relativeTo:e=>e.rel}),xAdvDevice:new N(d,Pa,{type:"global",relativeTo:e=>e.rel}),yAdvDevice:new N(d,Pa,{type:"global",relativeTo:e=>e.rel})},jr=class{buildStruct(e){let t=e;for(;!t[this.key]&&t.parent;)t=t.parent;if(!t[this.key])return;let i={};i.rel=()=>t._startOffset;let r=t[this.key];for(let a in r)r[a]&&(i[a]=fS[a]);return new T(i)}size(e,t){return this.buildStruct(t).size(e,t)}decode(e,t){let i=this.buildStruct(t).decode(e,t);return delete i.rel,i}constructor(e="valueFormat"){this.key=e}},dS=new T({secondGlyph:d,value1:new jr("valueFormat1"),value2:new jr("valueFormat2")}),hS=new S(dS,d),gS=new T({value1:new jr("valueFormat1"),value2:new jr("valueFormat2")}),Xs=new Ye(d,{1:{xCoordinate:K,yCoordinate:K},2:{xCoordinate:K,yCoordinate:K,anchorPoint:d},3:{xCoordinate:K,yCoordinate:K,xDeviceTable:new N(d,Pa),yDeviceTable:new N(d,Pa)}}),pS=new T({entryAnchor:new N(d,Xs,{type:"parent"}),exitAnchor:new N(d,Xs,{type:"parent"})}),mS=new T({class:d,markAnchor:new N(d,Xs,{type:"parent"})}),Hc=new S(mS,d),yS=new S(new N(d,Xs),e=>e.parent.classCount),Bb=new S(yS,d),bS=new S(new N(d,Xs),e=>e.parent.parent.classCount),vS=new S(bS,d),wS=new S(new N(d,vS),d),Hs=new Ye("lookupType",{1:new Ye(d,{1:{coverage:new N(d,ot),valueFormat:Ur,value:new jr},2:{coverage:new N(d,ot),valueFormat:Ur,valueCount:d,values:new lt(new jr,"valueCount")}}),2:new Ye(d,{1:{coverage:new N(d,ot),valueFormat1:Ur,valueFormat2:Ur,pairSetCount:d,pairSets:new lt(new N(d,hS),"pairSetCount")},2:{coverage:new N(d,ot),valueFormat1:Ur,valueFormat2:Ur,classDef1:new N(d,za),classDef2:new N(d,za),class1Count:d,class2Count:d,classRecords:new lt(new lt(gS,"class2Count"),"class1Count")}}),3:{format:d,coverage:new N(d,ot),entryExitCount:d,entryExitRecords:new S(pS,"entryExitCount")},4:{format:d,markCoverage:new N(d,ot),baseCoverage:new N(d,ot),classCount:d,markArray:new N(d,Hc),baseArray:new N(d,Bb)},5:{format:d,markCoverage:new N(d,ot),ligatureCoverage:new N(d,ot),classCount:d,markArray:new N(d,Hc),ligatureArray:new N(d,wS)},6:{format:d,mark1Coverage:new N(d,ot),mark2Coverage:new N(d,ot),classCount:d,mark1Array:new N(d,Hc),mark2Array:new N(d,Bb)},7:db,8:gb,9:{posFormat:d,lookupType:d,extension:new N(B,null)}});Hs.versions[9].extension.type=Hs;var CS=new Ye(B,{header:{scriptList:new N(d,lb),featureList:new N(d,fb),lookupList:new N(d,new cu(Hs))},65536:{},65537:{featureVariations:new N(B,pb)}}),Fb=new S(d,d),xS=Fb,ES=new T({glyph:d,compCount:d,components:new S(d,e=>e.compCount-1)}),AS=new S(new N(d,ES),d),Jc=new Ye("lookupType",{1:new Ye(d,{1:{coverage:new N(d,ot),deltaGlyphID:K},2:{coverage:new N(d,ot),glyphCount:d,substitute:new lt(d,"glyphCount")}}),2:{substFormat:d,coverage:new N(d,ot),count:d,sequences:new lt(new N(d,Fb),"count")},3:{substFormat:d,coverage:new N(d,ot),count:d,alternateSet:new lt(new N(d,xS),"count")},4:{substFormat:d,coverage:new N(d,ot),count:d,ligatureSets:new lt(new N(d,AS),"count")},5:db,6:gb,7:{substFormat:d,lookupType:d,extension:new N(B,null)},8:{substFormat:d,coverage:new N(d,ot),backtrackCoverage:new S(new N(d,ot),"backtrackGlyphCount"),lookaheadGlyphCount:d,lookaheadCoverage:new S(new N(d,ot),"lookaheadGlyphCount"),glyphCount:d,substitutes:new S(d,"glyphCount")}});Jc.versions[7].extension.type=Jc;var kS=new Ye(B,{header:{scriptList:new N(d,lb),featureList:new N(d,fb),lookupList:new N(d,new cu(Jc))},65536:{},65537:{featureVariations:new N(B,pb)}}),Ta=new S(d,d),DS=new T({shrinkageEnableGSUB:new N(d,Ta),shrinkageDisableGSUB:new N(d,Ta),shrinkageEnableGPOS:new N(d,Ta),shrinkageDisableGPOS:new N(d,Ta),shrinkageJstfMax:new N(d,new cu(Hs)),extensionEnableGSUB:new N(d,Ta),extensionDisableGSUB:new N(d,Ta),extensionEnableGPOS:new N(d,Ta),extensionDisableGPOS:new N(d,Ta),extensionJstfMax:new N(d,new cu(Hs))}),Ib=new S(new N(d,DS),d),_S=new T({tag:new nt(4),jstfLangSys:new N(d,Ib)}),SS=new T({extenderGlyphs:new N(d,new S(d,d)),defaultLangSys:new N(d,Ib),langSysCount:d,langSysRecords:new S(_S,"langSysCount")}),NS=new T({tag:new nt(4),script:new N(d,SS,{type:"parent"})}),BS=new T({version:B,scriptCount:d,scriptList:new S(NS,"scriptCount")}),FS=class{decode(e,t){switch(this.size(0,t)){case 1:return e.readUInt8();case 2:return e.readUInt16BE();case 3:return e.readUInt24BE();case 4:return e.readUInt32BE()}}size(e,t){return Gi(this._size,null,t)}constructor(e){this._size=e}},IS=new T({entry:new FS(e=>((e.parent.entryFormat&48)>>4)+1),outerIndex:e=>e.entry>>(e.parent.entryFormat&15)+1,innerIndex:e=>e.entry&(1<<(e.parent.entryFormat&15)+1)-1}),qc=new T({entryFormat:d,mapCount:d,mapData:new S(IS,"mapCount")}),VS=new T({majorVersion:d,minorVersion:d,itemVariationStore:new N(B,fu),advanceWidthMapping:new N(B,qc),LSBMapping:new N(B,qc),RSBMapping:new N(B,qc)}),zS=new T({format:B,length:B,offset:B}),PS=new T({reserved:new yt(d,2),cbSignature:B,signature:new Wi("cbSignature")}),TS=new T({ulVersion:B,usNumSigs:d,usFlag:d,signatures:new S(zS,"usNumSigs"),signatureBlocks:new S(PS,"usNumSigs")}),OS=new T({rangeMaxPPEM:d,rangeGaspBehavior:new Pi(d,["grayscale","gridfit","symmetricSmoothing","symmetricGridfit"])}),RS=new T({version:d,numRanges:d,gaspRanges:new S(OS,"numRanges")}),MS=new T({pixelSize:oe,maximumWidth:oe,widths:new S(oe,e=>e.parent.parent.maxp.numGlyphs)}),ZS=new T({version:d,numRecords:K,sizeDeviceRecord:sr,records:new S(MS,"numRecords")}),LS=new T({left:d,right:d,value:K}),Vb=new T({firstGlyph:d,nGlyphs:d,offsets:new S(d,"nGlyphs"),max:e=>e.offsets.length&&Math.max.apply(Math,e.offsets)}),$S=new T({off:e=>e._startOffset-e.parent.parent._startOffset,len:e=>((e.parent.leftTable.max-e.off)/e.parent.rowWidth+1)*(e.parent.rowWidth/2),values:new lt(K,"len")}),zb=new Ye("format",{0:{nPairs:d,searchRange:d,entrySelector:d,rangeShift:d,pairs:new S(LS,"nPairs")},2:{rowWidth:d,leftTable:new N(d,Vb,{type:"parent"}),rightTable:new N(d,Vb,{type:"parent"}),array:new N(d,$S,{type:"parent"})},3:{glyphCount:d,kernValueCount:oe,leftClassCount:oe,rightClassCount:oe,flags:oe,kernValue:new S(K,"kernValueCount"),leftClass:new S(oe,"glyphCount"),rightClass:new S(oe,"glyphCount"),kernIndex:new S(oe,e=>e.leftClassCount*e.rightClassCount)}}),Pb=new Ye("version",{0:{subVersion:d,length:d,format:oe,coverage:new Pi(oe,["horizontal","minimum","crossStream","override"]),subtable:zb,padding:new yt(oe,e=>e.length-e._currentOffset)},1:{length:B,coverage:new Pi(oe,[null,null,null,null,null,"variation","crossStream","vertical"]),format:oe,tupleIndex:d,subtable:zb,padding:new yt(oe,e=>e.length-e._currentOffset)}}),US=new Ye(d,{0:{nTables:d,tables:new S(Pb,"nTables")},1:{reserved:new yt(d),nTables:B,tables:new S(Pb,"nTables")}}),jS=new T({version:d,numGlyphs:d,yPels:new S(oe,"numGlyphs")}),GS=new T({version:d,fontNumber:B,pitch:d,xHeight:d,style:d,typeFamily:d,capHeight:d,symbolSet:d,typeface:new nt(16),characterComplement:new nt(8),fileName:new nt(6),strokeWeight:new nt(1),widthType:new nt(1),serifStyle:oe,reserved:new yt(oe)}),WS=new T({bCharSet:oe,xRatio:oe,yStartRatio:oe,yEndRatio:oe}),YS=new T({yPelHeight:d,yMax:K,yMin:K}),KS=new T({recs:d,startsz:oe,endsz:oe,entries:new S(YS,"recs")}),XS=new T({version:d,numRecs:d,numRatios:d,ratioRanges:new S(WS,"numRatios"),offsets:new S(d,"numRatios"),groups:new S(KS,"numRecs")}),HS=new T({version:d,ascent:K,descent:K,lineGap:K,advanceHeightMax:K,minTopSideBearing:K,minBottomSideBearing:K,yMaxExtent:K,caretSlopeRise:K,caretSlopeRun:K,caretOffset:K,reserved:new yt(K,4),metricDataFormat:K,numberOfMetrics:d}),JS=new T({advance:d,bearing:K}),qS=new T({metrics:new lt(JS,e=>e.parent.vhea.numberOfMetrics),bearings:new lt(K,e=>e.parent.maxp.numGlyphs-e.parent.vhea.numberOfMetrics)}),Tb=new nr(16,"BE",14),QS=new T({fromCoord:Tb,toCoord:Tb}),eN=new T({pairCount:d,correspondence:new S(QS,"pairCount")}),tN=new T({version:Nt,axisCount:B,segment:new S(eN,"axisCount")}),iN=class{getItem(e){if(this._items[e]==null){let t=this.stream.pos;this.stream.pos=this.base+this.type.size(null,this.parent)*e,this._items[e]=this.type.decode(this.stream,this.parent),this.stream.pos=t}return this._items[e]}inspect(){return`[UnboundedArray ${this.type.constructor.name}]`}constructor(e,t,i){this.type=e,this.stream=t,this.parent=i,this.base=this.stream.pos,this._items=[]}},Ki=class extends S{decode(e,t){return new iN(this.type,e,t)}constructor(e){super(e,0)}},Oa=function(e=d){class t{decode(o,u){return u=u.parent.parent,this.type.decode(o,u)}size(o,u){return u=u.parent.parent,this.type.size(o,u)}encode(o,u,l){return l=l.parent.parent,this.type.encode(o,u,l)}constructor(o){this.type=o}}e=new t(e);let i=new T({unitSize:d,nUnits:d,searchRange:d,entrySelector:d,rangeShift:d}),r=new T({lastGlyph:d,firstGlyph:d,value:e}),a=new T({lastGlyph:d,firstGlyph:d,values:new N(d,new S(e,n=>n.lastGlyph-n.firstGlyph+1),{type:"parent"})}),s=new T({glyph:d,value:e});return new Ye(d,{0:{values:new Ki(e)},2:{binarySearchHeader:i,segments:new S(r,n=>n.binarySearchHeader.nUnits)},4:{binarySearchHeader:i,segments:new S(a,n=>n.binarySearchHeader.nUnits)},6:{binarySearchHeader:i,segments:new S(s,n=>n.binarySearchHeader.nUnits)},8:{firstGlyph:d,count:d,values:new S(e,"count")}})};function hu(e={},t=d){let i=Object.assign({newState:d,flags:d},e),r=new T(i),a=new Ki(new S(d,n=>n.nClasses));return new T({nClasses:B,classTable:new N(B,new Oa(t)),stateArray:new N(B,a),entryTable:new N(B,new Ki(r))})}function aN(e={},t=d){let i=new T({version(){return 8},firstGlyph:d,values:new S(oe,d)}),r=Object.assign({newStateOffset:d,newState:o=>(o.newStateOffset-(o.parent.stateArray.base-o.parent._startOffset))/o.parent.nClasses,flags:d},e),a=new T(r),s=new Ki(new S(oe,o=>o.nClasses));return new T({nClasses:d,classTable:new N(d,i),stateArray:new N(d,s),entryTable:new N(d,new Ki(a))})}var rN=new Ye("format",{0:{deltas:new S(K,32)},1:{deltas:new S(K,32),mappingData:new Oa(d)},2:{standardGlyph:d,controlPoints:new S(d,32)},3:{standardGlyph:d,controlPoints:new S(d,32),mappingData:new Oa(d)}}),sN=new T({version:Nt,format:d,defaultBaseline:d,subtable:rN}),nN=new T({setting:d,nameIndex:K,name:e=>e.parent.parent.parent.name.records.fontFeatures[e.nameIndex]}),oN=new T({feature:d,nSettings:d,settingTable:new N(B,new S(nN,"nSettings"),{type:"parent"}),featureFlags:new Pi(oe,[null,null,null,null,null,null,"hasDefault","exclusive"]),defaultSetting:oe,nameIndex:K,name:e=>e.parent.parent.name.records.fontFeatures[e.nameIndex]}),uN=new T({version:Nt,featureNameCount:d,reserved1:new yt(d),reserved2:new yt(B),featureNames:new S(oN,"featureNameCount")}),lN=new T({axisTag:new nt(4),minValue:Nt,defaultValue:Nt,maxValue:Nt,flags:d,nameID:d,name:e=>e.parent.parent.name.records.fontFeatures[e.nameID]}),cN=new T({nameID:d,name:e=>e.parent.parent.name.records.fontFeatures[e.nameID],flags:d,coord:new S(Nt,e=>e.parent.axisCount),postscriptNameID:new iu(d,e=>e.parent.instanceSize-e._currentOffset>0)}),fN=new T({version:Nt,offsetToData:d,countSizePairs:d,axisCount:d,axisSize:d,instanceCount:d,instanceSize:d,axis:new S(lN,"axisCount"),instance:new S(cN,"instanceCount")}),dN=new nr(16,"BE",14),hN=class{static decode(e,t){return t.flags?e.readUInt32BE():e.readUInt16BE()*2}},gN=new T({version:d,reserved:new yt(d),axisCount:d,globalCoordCount:d,globalCoords:new N(B,new S(new S(dN,"axisCount"),"globalCoordCount")),glyphCount:d,flags:d,offsetToData:B,offsets:new S(new N(hN,"void",{relativeTo:e=>e.offsetToData,allowNull:!1}),e=>e.glyphCount+1)}),pN=gN,mN=new T({length:d,coverage:d,subFeatureFlags:B,stateTable:new aN}),yN=new T({justClass:B,beforeGrowLimit:Nt,beforeShrinkLimit:Nt,afterGrowLimit:Nt,afterShrinkLimit:Nt,growFlags:d,shrinkFlags:d}),bN=new S(yN,B),vN=new Ye("actionType",{0:{lowerLimit:Nt,upperLimit:Nt,order:d,glyphs:new S(d,d)},1:{addGlyph:d},2:{substThreshold:Nt,addGlyph:d,substGlyph:d},3:{},4:{variationAxis:B,minimumLimit:Nt,noStretchValue:Nt,maximumLimit:Nt},5:{flags:d,glyph:d}}),wN=new T({actionClass:d,actionType:d,actionLength:B,actionData:vN,padding:new yt(oe,e=>e.actionLength-e._currentOffset)}),CN=new S(wN,B),xN=new T({lookupTable:new Oa(new N(d,CN))}),Ob=new T({classTable:new N(d,mN,{type:"parent"}),wdcOffset:d,postCompensationTable:new N(d,xN,{type:"parent"}),widthDeltaClusters:new Oa(new N(d,bN,{type:"parent",relativeTo:e=>e.wdcOffset}))}),EN=new T({version:B,format:d,horizontal:new N(d,Ob),vertical:new N(d,Ob)}),AN={action:d},kN={markIndex:d,currentIndex:d},DN={currentInsertIndex:d,markedInsertIndex:d},_N=new T({items:new Ki(new N(B,new Oa))}),SN=new Ye("type",{0:{stateTable:new hu},1:{stateTable:new hu(kN),substitutionTable:new N(B,_N)},2:{stateTable:new hu(AN),ligatureActions:new N(B,new Ki(B)),components:new N(B,new Ki(d)),ligatureList:new N(B,new Ki(d))},4:{lookupTable:new Oa},5:{stateTable:new hu(DN),insertionActions:new N(B,new Ki(d))}}),NN=new T({length:B,coverage:Ia,type:oe,subFeatureFlags:B,table:SN,padding:new yt(oe,e=>e.length-e._currentOffset)}),BN=new T({featureType:d,featureSetting:d,enableFlags:B,disableFlags:B}),FN=new T({defaultFlags:B,chainLength:B,nFeatureEntries:B,nSubtables:B,features:new S(BN,"nFeatureEntries"),subtables:new S(NN,"nSubtables")}),IN=new T({version:d,unused:new yt(d),nChains:B,chains:new S(FN,"nChains")}),VN=new T({left:K,top:K,right:K,bottom:K}),zN=new T({version:Nt,format:d,lookupTable:new Oa(VN)}),ze={},gu=ze;ze.cmap=ID,ze.head=VD,ze.hhea=zD,ze.hmtx=TD,ze.maxp=OD,ze.name=jD,ze["OS/2"]=GD,ze.post=WD,ze.fpgm=KD,ze.loca=XD,ze.prep=HD,ze["cvt "]=YD,ze.glyf=JD,ze["CFF "]=Eb,ze.CFF2=Eb,ze.VORG=R_,ze.EBLC=U_,ze.CBLC=ze.EBLC,ze.sbix=G_,ze.COLR=K_,ze.CPAL=H_,ze.BASE=rS,ze.GDEF=cS,ze.GPOS=CS,ze.GSUB=kS,ze.JSTF=BS,ze.HVAR=VS,ze.DSIG=TS,ze.gasp=RS,ze.hdmx=ZS,ze.kern=US,ze.LTSH=jS,ze.PCLT=GS,ze.VDMX=XS,ze.vhea=HS,ze.vmtx=qS,ze.avar=tN,ze.bsln=sN,ze.feat=uN,ze.fvar=fN,ze.gvar=pN,ze.just=EN,ze.morx=IN,ze.opbd=zN;var PN=new T({tag:new nt(4),checkSum:B,offset:new N(B,"void",{type:"global"}),length:B}),Qc=new T({tag:new nt(4),numTables:d,searchRange:d,entrySelector:d,rangeShift:d,tables:new S(PN,"numTables")});Qc.process=function(){let e={};for(let t of this.tables)e[t.tag]=t;this.tables=e},Qc.preEncode=function(){if(!Array.isArray(this.tables)){let i=[];for(let r in this.tables){let a=this.tables[r];a&&i.push({tag:r,checkSum:0,offset:new Vc(gu[r],a),length:gu[r].size(a)})}this.tables=i}this.tag="true",this.numTables=this.tables.length;let e=Math.floor(Math.log(this.numTables)/Math.LN2),t=Math.pow(2,e);this.searchRange=t*16,this.entrySelector=Math.log(t)/Math.LN2,this.rangeShift=this.numTables*16-this.searchRange};var Rb=Qc;function pu(e,t){let i=0,r=e.length-1;for(;i<=r;){let a=i+r>>1,s=t(e[a]);if(s<0)r=a-1;else if(s>0)i=a+1;else return a}return-1}function Gr(e,t){let i=[];for(;e<t;)i.push(e++);return i}var mu=new TextDecoder("ascii"),Mb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Js=new Uint8Array(256);for(let e=0;e<Mb.length;e++)Js[Mb.charCodeAt(e)]=e;function ef(e){let t=e.length*.75;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let i=new Uint8Array(t),r=0;for(let a=0,s=e.length;a<s;a+=4){let n=Js[e.charCodeAt(a)],o=Js[e.charCodeAt(a+1)],u=Js[e.charCodeAt(a+2)],l=Js[e.charCodeAt(a+3)];i[r++]=n<<2|o>>4,i[r++]=(o&15)<<4|u>>2,i[r++]=(u&3)<<6|l&63}return i}var tf=class{findSubtable(e,t){for(let[i,r]of t)for(let a of e.tables)if(a.platformID===i&&a.encodingID===r)return a.table;return null}lookup(e,t){if(this.encoding)e=this.encoding.get(e)||e;else if(t){let r=this.getVariationSelector(e,t);if(r)return r}let i=this.cmap;switch(i.version){case 0:return i.codeMap.get(e)||0;case 4:{let r=0,a=i.segCount-1;for(;r<=a;){let s=r+a>>1;if(e<i.startCode.get(s))a=s-1;else if(e>i.endCode.get(s))r=s+1;else{let n=i.idRangeOffset.get(s),o;if(n===0)o=e+i.idDelta.get(s);else{let u=n/2+(e-i.startCode.get(s))-(i.segCount-s);o=i.glyphIndexArray.get(u)||0,o!==0&&(o+=i.idDelta.get(s))}return o&65535}}return 0}case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return i.glyphIndices.get(e-i.firstCode)||0;case 12:case 13:{let r=0,a=i.nGroups-1;for(;r<=a;){let s=r+a>>1,n=i.groups.get(s);if(e<n.startCharCode)a=s-1;else if(e>n.endCharCode)r=s+1;else return i.version===12?n.glyphID+(e-n.startCharCode):n.glyphID}return 0}case 14:throw new Error("TODO: cmap format 14");default:throw new Error(`Unknown cmap format ${i.version}`)}}getVariationSelector(e,t){if(!this.uvs)return 0;let i=this.uvs.varSelectors.toArray(),r=pu(i,s=>t-s.varSelector),a=i[r];return r!==-1&&a.defaultUVS&&(r=pu(a.defaultUVS,s=>e<s.startUnicodeValue?-1:e>s.startUnicodeValue+s.additionalCount?1:0)),r!==-1&&a.nonDefaultUVS&&(r=pu(a.nonDefaultUVS,s=>e-s.unicodeValue),r!==-1)?a.nonDefaultUVS[r].glyphID:0}getCharacterSet(){let e=this.cmap;switch(e.version){case 0:return Gr(0,e.codeMap.length);case 4:{let t=[],i=e.endCode.toArray();for(let r=0;r<i.length;r++){let a=i[r]+1,s=e.startCode.get(r);t.push(...Gr(s,a))}return t}case 8:throw new Error("TODO: cmap format 8");case 6:case 10:return Gr(e.firstCode,e.firstCode+e.glyphIndices.length);case 12:case 13:{let t=[];for(let i of e.groups.toArray())t.push(...Gr(i.startCharCode,i.endCharCode+1));return t}case 14:throw new Error("TODO: cmap format 14");default:throw new Error(`Unknown cmap format ${e.version}`)}}codePointsForGlyph(e){let t=this.cmap;switch(t.version){case 0:{let r=[];for(let a=0;a<256;a++)t.codeMap.get(a)===e&&r.push(a);return r}case 4:{let r=[];for(let a=0;a<t.segCount;a++){let s=t.endCode.get(a),n=t.startCode.get(a),o=t.idRangeOffset.get(a),u=t.idDelta.get(a);for(var i=n;i<=s;i++){let l=0;if(o===0)l=i+u;else{let c=o/2+(i-n)-(t.segCount-a);l=t.glyphIndexArray.get(c)||0,l!==0&&(l+=u)}l===e&&r.push(i)}}return r}case 12:{let r=[];for(let a of t.groups.toArray())e>=a.glyphID&&e<=a.glyphID+(a.endCharCode-a.startCharCode)&&r.push(a.startCharCode+(e-a.glyphID));return r}case 13:{let r=[];for(let a of t.groups.toArray())e===a.glyphID&&r.push(...Gr(a.startCharCode,a.endCharCode+1));return r}default:throw new Error(`Unknown cmap format ${t.version}`)}}constructor(e){if(this.encoding=null,this.cmap=this.findSubtable(e,[[3,10],[0,6],[0,4],[3,1],[0,3],[0,2],[0,1],[0,0]]),!this.cmap)for(let t of e.tables){let i=Qy(t.platformID,t.encodingID,t.table.language-1),r=ZD(i);r&&(this.cmap=t.table,this.encoding=r)}if(!this.cmap)throw new Error("Could not find a supported cmap table");this.uvs=this.findSubtable(e,[[0,5]]),this.uvs&&this.uvs.version!==14&&(this.uvs=null)}};Ut([jt],tf.prototype,"getCharacterSet",null),Ut([jt],tf.prototype,"codePointsForGlyph",null);var TN=class{process(e,t){for(let i=0;i<e.length-1;i++){let r=e[i].id,a=e[i+1].id;t[i].xAdvance+=this.getKerning(r,a)}}getKerning(e,t){let i=0;for(let r of this.kern.tables){if(r.coverage.crossStream)continue;switch(r.version){case 0:if(!r.coverage.horizontal)continue;break;case 1:if(r.coverage.vertical||r.coverage.variation)continue;break;default:throw new Error(`Unsupported kerning table version ${r.version}`)}let a=0,s=r.subtable;switch(r.format){case 0:let n=pu(s.pairs,function(c){return e-c.left||t-c.right});n>=0&&(a=s.pairs[n].value);break;case 2:let o=0,u=0;e>=s.leftTable.firstGlyph&&e<s.leftTable.firstGlyph+s.leftTable.nGlyphs?o=s.leftTable.offsets[e-s.leftTable.firstGlyph]:o=s.array.off,t>=s.rightTable.firstGlyph&&t<s.rightTable.firstGlyph+s.rightTable.nGlyphs&&(u=s.rightTable.offsets[t-s.rightTable.firstGlyph]);let l=(o+u-s.array.off)/2;a=s.array.values.get(l);break;case 3:if(e>=s.glyphCount||t>=s.glyphCount)return 0;a=s.kernValue[s.kernIndex[s.leftClass[e]*s.rightClassCount+s.rightClass[t]]];break;default:throw new Error(`Unsupported kerning sub-table format ${r.format}`)}r.coverage.override?i=a:i+=a}return i}constructor(e){this.kern=e.kern}},ON=class{positionGlyphs(e,t){let i=0,r=0;for(let a=0;a<e.length;a++)e[a].isMark?r=a:(i!==r&&this.positionCluster(e,t,i,r),i=r=a);return i!==r&&this.positionCluster(e,t,i,r),t}positionCluster(e,t,i,r){let a=e[i],s=a.cbox.copy();a.codePoints.length>1&&(s.minX+=(a.codePoints.length-1)*s.width/a.codePoints.length);let n=-t[i].xAdvance,o=0,u=this.font.unitsPerEm/16;for(let l=i+1;l<=r;l++){let c=e[l],f=c.cbox,h=t[l],g=this.getCombiningClass(c.codePoints[0]);if(g!=="Not_Reordered"){switch(h.xOffset=h.yOffset=0,g){case"Double_Above":case"Double_Below":h.xOffset+=s.minX-f.width/2-f.minX;break;case"Attached_Below_Left":case"Below_Left":case"Above_Left":h.xOffset+=s.minX-f.minX;break;case"Attached_Above_Right":case"Below_Right":case"Above_Right":h.xOffset+=s.maxX-f.width-f.minX;break;default:h.xOffset+=s.minX+(s.width-f.width)/2-f.minX}switch(g){case"Double_Below":case"Below_Left":case"Below":case"Below_Right":case"Attached_Below_Left":case"Attached_Below":(g==="Attached_Below_Left"||g==="Attached_Below")&&(s.minY+=u),h.yOffset=-s.minY-f.maxY,s.minY+=f.height;break;case"Double_Above":case"Above_Left":case"Above":case"Above_Right":case"Attached_Above":case"Attached_Above_Right":(g==="Attached_Above"||g==="Attached_Above_Right")&&(s.maxY+=u),h.yOffset=s.maxY-f.minY,s.maxY+=f.height;break}h.xAdvance=h.yAdvance=0,h.xOffset+=n,h.yOffset+=o}else n-=h.xAdvance,o-=h.yAdvance}}getCombiningClass(e){let t=vD(e);if((e&-256)===3584){if(t==="Not_Reordered")switch(e){case 3633:case 3636:case 3637:case 3638:case 3639:case 3655:case 3660:case 3645:case 3662:return"Above_Right";case 3761:case 3764:case 3765:case 3766:case 3767:case 3771:case 3788:case 3789:return"Above";case 3772:return"Below"}else if(e===3642)return"Below_Right"}switch(t){case"CCC10":case"CCC11":case"CCC12":case"CCC13":case"CCC14":case"CCC15":case"CCC16":case"CCC17":case"CCC18":case"CCC20":case"CCC22":return"Below";case"CCC23":return"Attached_Above";case"CCC24":return"Above_Right";case"CCC25":case"CCC19":return"Above_Left";case"CCC26":return"Above";case"CCC21":break;case"CCC27":case"CCC28":case"CCC30":case"CCC31":case"CCC33":case"CCC34":case"CCC35":case"CCC36":return"Above";case"CCC29":case"CCC32":return"Below";case"CCC103":return"Below_Right";case"CCC107":return"Above_Right";case"CCC118":return"Below";case"CCC122":return"Above";case"CCC129":case"CCC132":return"Below";case"CCC130":return"Above"}return t}constructor(e){this.font=e}},Wr=class D3{get width(){return this.maxX-this.minX}get height(){return this.maxY-this.minY}addPoint(t,i){Math.abs(t)!==1/0&&(t<this.minX&&(this.minX=t),t>this.maxX&&(this.maxX=t)),Math.abs(i)!==1/0&&(i<this.minY&&(this.minY=i),i>this.maxY&&(this.maxY=i))}copy(){return new D3(this.minX,this.minY,this.maxX,this.maxY)}constructor(t=1/0,i=1/0,r=-1/0,a=-1/0){this.minX=t,this.minY=i,this.maxX=r,this.maxY=a}},Yr={Caucasian_Albanian:"aghb",Arabic:"arab",Imperial_Aramaic:"armi",Armenian:"armn",Avestan:"avst",Balinese:"bali",Bamum:"bamu",Bassa_Vah:"bass",Batak:"batk",Bengali:["bng2","beng"],Bopomofo:"bopo",Brahmi:"brah",Braille:"brai",Buginese:"bugi",Buhid:"buhd",Chakma:"cakm",Canadian_Aboriginal:"cans",Carian:"cari",Cham:"cham",Cherokee:"cher",Coptic:"copt",Cypriot:"cprt",Cyrillic:"cyrl",Devanagari:["dev2","deva"],Deseret:"dsrt",Duployan:"dupl",Egyptian_Hieroglyphs:"egyp",Elbasan:"elba",Ethiopic:"ethi",Georgian:"geor",Glagolitic:"glag",Gothic:"goth",Grantha:"gran",Greek:"grek",Gujarati:["gjr2","gujr"],Gurmukhi:["gur2","guru"],Hangul:"hang",Han:"hani",Hanunoo:"hano",Hebrew:"hebr",Hiragana:"hira",Pahawh_Hmong:"hmng",Katakana_Or_Hiragana:"hrkt",Old_Italic:"ital",Javanese:"java",Kayah_Li:"kali",Katakana:"kana",Kharoshthi:"khar",Khmer:"khmr",Khojki:"khoj",Kannada:["knd2","knda"],Kaithi:"kthi",Tai_Tham:"lana",Lao:"lao ",Latin:"latn",Lepcha:"lepc",Limbu:"limb",Linear_A:"lina",Linear_B:"linb",Lisu:"lisu",Lycian:"lyci",Lydian:"lydi",Mahajani:"mahj",Mandaic:"mand",Manichaean:"mani",Mende_Kikakui:"mend",Meroitic_Cursive:"merc",Meroitic_Hieroglyphs:"mero",Malayalam:["mlm2","mlym"],Modi:"modi",Mongolian:"mong",Mro:"mroo",Meetei_Mayek:"mtei",Myanmar:["mym2","mymr"],Old_North_Arabian:"narb",Nabataean:"nbat",Nko:"nko ",Ogham:"ogam",Ol_Chiki:"olck",Old_Turkic:"orkh",Oriya:["ory2","orya"],Osmanya:"osma",Palmyrene:"palm",Pau_Cin_Hau:"pauc",Old_Permic:"perm",Phags_Pa:"phag",Inscriptional_Pahlavi:"phli",Psalter_Pahlavi:"phlp",Phoenician:"phnx",Miao:"plrd",Inscriptional_Parthian:"prti",Rejang:"rjng",Runic:"runr",Samaritan:"samr",Old_South_Arabian:"sarb",Saurashtra:"saur",Shavian:"shaw",Sharada:"shrd",Siddham:"sidd",Khudawadi:"sind",Sinhala:"sinh",Sora_Sompeng:"sora",Sundanese:"sund",Syloti_Nagri:"sylo",Syriac:"syrc",Tagbanwa:"tagb",Takri:"takr",Tai_Le:"tale",New_Tai_Lue:"talu",Tamil:["tml2","taml"],Tai_Viet:"tavt",Telugu:["tel2","telu"],Tifinagh:"tfng",Tagalog:"tglg",Thaana:"thaa",Thai:"thai",Tibetan:"tibt",Tirhuta:"tirh",Ugaritic:"ugar",Vai:"vai ",Warang_Citi:"wara",Old_Persian:"xpeo",Cuneiform:"xsux",Yi:"yi ",Inherited:"zinh",Common:"zyyy",Unknown:"zzzz"},af={};for(let e in Yr){let t=Yr[e];if(Array.isArray(t))for(let i of t)af[i]=e;else af[t]=e}function RN(e){return af[e]}function MN(e){let t=e.length,i=0;for(;i<t;){let r=e.charCodeAt(i++);if(55296<=r&&r<=56319&&i<t){let s=e.charCodeAt(i);56320<=s&&s<=57343&&(i++,r=((r&1023)<<10)+(s&1023)+65536)}let a=Ky(r);if(a!=="Common"&&a!=="Inherited"&&a!=="Unknown")return Yr[a]}return Yr.Unknown}function ZN(e){for(let t=0;t<e.length;t++){let i=e[t],r=Ky(i);if(r!=="Common"&&r!=="Inherited"&&r!=="Unknown")return Yr[r]}return Yr.Unknown}var LN={arab:!0,hebr:!0,syrc:!0,thaa:!0,cprt:!0,khar:!0,phnx:!0,"nko ":!0,lydi:!0,avst:!0,armi:!0,phli:!0,prti:!0,sarb:!0,orkh:!0,samr:!0,mand:!0,merc:!0,mero:!0,mani:!0,mend:!0,nbat:!0,narb:!0,palm:!0,phlp:!0};function Zb(e){return LN[e]?"rtl":"ltr"}var $N=class{get advanceWidth(){let e=0;for(let t of this.positions)e+=t.xAdvance;return e}get advanceHeight(){let e=0;for(let t of this.positions)e+=t.yAdvance;return e}get bbox(){let e=new Wr,t=0,i=0;for(let r=0;r<this.glyphs.length;r++){let a=this.glyphs[r],s=this.positions[r],n=a.bbox;e.addPoint(n.minX+t+s.xOffset,n.minY+i+s.yOffset),e.addPoint(n.maxX+t+s.xOffset,n.maxY+i+s.yOffset),t+=s.xAdvance,i+=s.yAdvance}return e}constructor(e,t,i,r,a){if(this.glyphs=e,this.positions=null,this.script=i,this.language=r||null,this.direction=a||Zb(i),this.features={},Array.isArray(t))for(let s of t)this.features[s]=!0;else typeof t=="object"&&(this.features=t)}},UN=class{constructor(e=0,t=0,i=0,r=0){this.xAdvance=e,this.yAdvance=t,this.xOffset=i,this.yOffset=r}},ur={allTypographicFeatures:{code:0,exclusive:!1,allTypeFeatures:0},ligatures:{code:1,exclusive:!1,requiredLigatures:0,commonLigatures:2,rareLigatures:4,rebusPictures:8,diphthongLigatures:10,squaredLigatures:12,abbrevSquaredLigatures:14,symbolLigatures:16,contextualLigatures:18,historicalLigatures:20},cursiveConnection:{code:2,exclusive:!0,unconnected:0,partiallyConnected:1,cursive:2},letterCase:{code:3,exclusive:!0},verticalSubstitution:{code:4,exclusive:!1,substituteVerticalForms:0},linguisticRearrangement:{code:5,exclusive:!1,linguisticRearrangement:0},numberSpacing:{code:6,exclusive:!0,monospacedNumbers:0,proportionalNumbers:1,thirdWidthNumbers:2,quarterWidthNumbers:3},smartSwash:{code:8,exclusive:!1,wordInitialSwashes:0,wordFinalSwashes:2,nonFinalSwashes:8},diacritics:{code:9,exclusive:!0,showDiacritics:0,hideDiacritics:1,decomposeDiacritics:2},verticalPosition:{code:10,exclusive:!0,normalPosition:0,superiors:1,inferiors:2,ordinals:3,scientificInferiors:4},fractions:{code:11,exclusive:!0,noFractions:0,verticalFractions:1,diagonalFractions:2},overlappingCharacters:{code:13,exclusive:!1,preventOverlap:0},typographicExtras:{code:14,exclusive:!1,slashedZero:4},mathematicalExtras:{code:15,exclusive:!1,mathematicalGreek:10},ornamentSets:{code:16,exclusive:!0,noOrnaments:0,dingbats:1,piCharacters:2,fleurons:3,decorativeBorders:4,internationalSymbols:5,mathSymbols:6},characterAlternatives:{code:17,exclusive:!0,noAlternates:0},designComplexity:{code:18,exclusive:!0,designLevel1:0,designLevel2:1,designLevel3:2,designLevel4:3,designLevel5:4},styleOptions:{code:19,exclusive:!0,noStyleOptions:0,displayText:1,engravedText:2,illuminatedCaps:3,titlingCaps:4,tallCaps:5},characterShape:{code:20,exclusive:!0,traditionalCharacters:0,simplifiedCharacters:1,JIS1978Characters:2,JIS1983Characters:3,JIS1990Characters:4,traditionalAltOne:5,traditionalAltTwo:6,traditionalAltThree:7,traditionalAltFour:8,traditionalAltFive:9,expertCharacters:10,JIS2004Characters:11,hojoCharacters:12,NLCCharacters:13,traditionalNamesCharacters:14},numberCase:{code:21,exclusive:!0,lowerCaseNumbers:0,upperCaseNumbers:1},textSpacing:{code:22,exclusive:!0,proportionalText:0,monospacedText:1,halfWidthText:2,thirdWidthText:3,quarterWidthText:4,altProportionalText:5,altHalfWidthText:6},transliteration:{code:23,exclusive:!0,noTransliteration:0},annotation:{code:24,exclusive:!0,noAnnotation:0,boxAnnotation:1,roundedBoxAnnotation:2,circleAnnotation:3,invertedCircleAnnotation:4,parenthesisAnnotation:5,periodAnnotation:6,romanNumeralAnnotation:7,diamondAnnotation:8,invertedBoxAnnotation:9,invertedRoundedBoxAnnotation:10},kanaSpacing:{code:25,exclusive:!0,fullWidthKana:0,proportionalKana:1},ideographicSpacing:{code:26,exclusive:!0,fullWidthIdeographs:0,proportionalIdeographs:1,halfWidthIdeographs:2},unicodeDecomposition:{code:27,exclusive:!1,canonicalComposition:0,compatibilityComposition:2,transcodingComposition:4},rubyKana:{code:28,exclusive:!1,rubyKana:2},CJKSymbolAlternatives:{code:29,exclusive:!0,noCJKSymbolAlternatives:0,CJKSymbolAltOne:1,CJKSymbolAltTwo:2,CJKSymbolAltThree:3,CJKSymbolAltFour:4,CJKSymbolAltFive:5},ideographicAlternatives:{code:30,exclusive:!0,noIdeographicAlternatives:0,ideographicAltOne:1,ideographicAltTwo:2,ideographicAltThree:3,ideographicAltFour:4,ideographicAltFive:5},CJKVerticalRomanPlacement:{code:31,exclusive:!0,CJKVerticalRomanCentered:0,CJKVerticalRomanHBaseline:1},italicCJKRoman:{code:32,exclusive:!1,CJKItalicRoman:2},caseSensitiveLayout:{code:33,exclusive:!1,caseSensitiveLayout:0,caseSensitiveSpacing:2},alternateKana:{code:34,exclusive:!1,alternateHorizKana:0,alternateVertKana:2},stylisticAlternatives:{code:35,exclusive:!1,noStylisticAlternates:0,stylisticAltOne:2,stylisticAltTwo:4,stylisticAltThree:6,stylisticAltFour:8,stylisticAltFive:10,stylisticAltSix:12,stylisticAltSeven:14,stylisticAltEight:16,stylisticAltNine:18,stylisticAltTen:20,stylisticAltEleven:22,stylisticAltTwelve:24,stylisticAltThirteen:26,stylisticAltFourteen:28,stylisticAltFifteen:30,stylisticAltSixteen:32,stylisticAltSeventeen:34,stylisticAltEighteen:36,stylisticAltNineteen:38,stylisticAltTwenty:40},contextualAlternates:{code:36,exclusive:!1,contextualAlternates:0,swashAlternates:2,contextualSwashAlternates:4},lowerCase:{code:37,exclusive:!0,defaultLowerCase:0,lowerCaseSmallCaps:1,lowerCasePetiteCaps:2},upperCase:{code:38,exclusive:!0,defaultUpperCase:0,upperCaseSmallCaps:1,upperCasePetiteCaps:2},languageTag:{code:39,exclusive:!0},CJKRomanSpacing:{code:103,exclusive:!0,halfWidthCJKRoman:0,proportionalCJKRoman:1,defaultCJKRoman:2,fullWidthCJKRoman:3}},ne=(e,t)=>[ur[e].code,ur[e][t]],yu={rlig:ne("ligatures","requiredLigatures"),clig:ne("ligatures","contextualLigatures"),dlig:ne("ligatures","rareLigatures"),hlig:ne("ligatures","historicalLigatures"),liga:ne("ligatures","commonLigatures"),hist:ne("ligatures","historicalLigatures"),smcp:ne("lowerCase","lowerCaseSmallCaps"),pcap:ne("lowerCase","lowerCasePetiteCaps"),frac:ne("fractions","diagonalFractions"),dnom:ne("fractions","diagonalFractions"),numr:ne("fractions","diagonalFractions"),afrc:ne("fractions","verticalFractions"),case:ne("caseSensitiveLayout","caseSensitiveLayout"),ccmp:ne("unicodeDecomposition","canonicalComposition"),cpct:ne("CJKVerticalRomanPlacement","CJKVerticalRomanCentered"),valt:ne("CJKVerticalRomanPlacement","CJKVerticalRomanCentered"),swsh:ne("contextualAlternates","swashAlternates"),cswh:ne("contextualAlternates","contextualSwashAlternates"),curs:ne("cursiveConnection","cursive"),c2pc:ne("upperCase","upperCasePetiteCaps"),c2sc:ne("upperCase","upperCaseSmallCaps"),init:ne("smartSwash","wordInitialSwashes"),fin2:ne("smartSwash","wordFinalSwashes"),medi:ne("smartSwash","nonFinalSwashes"),med2:ne("smartSwash","nonFinalSwashes"),fin3:ne("smartSwash","wordFinalSwashes"),fina:ne("smartSwash","wordFinalSwashes"),pkna:ne("kanaSpacing","proportionalKana"),half:ne("textSpacing","halfWidthText"),halt:ne("textSpacing","altHalfWidthText"),hkna:ne("alternateKana","alternateHorizKana"),vkna:ne("alternateKana","alternateVertKana"),ital:ne("italicCJKRoman","CJKItalicRoman"),lnum:ne("numberCase","upperCaseNumbers"),onum:ne("numberCase","lowerCaseNumbers"),mgrk:ne("mathematicalExtras","mathematicalGreek"),calt:ne("contextualAlternates","contextualAlternates"),vrt2:ne("verticalSubstitution","substituteVerticalForms"),vert:ne("verticalSubstitution","substituteVerticalForms"),tnum:ne("numberSpacing","monospacedNumbers"),pnum:ne("numberSpacing","proportionalNumbers"),sups:ne("verticalPosition","superiors"),subs:ne("verticalPosition","inferiors"),ordn:ne("verticalPosition","ordinals"),pwid:ne("textSpacing","proportionalText"),hwid:ne("textSpacing","halfWidthText"),qwid:ne("textSpacing","quarterWidthText"),twid:ne("textSpacing","thirdWidthText"),fwid:ne("textSpacing","proportionalText"),palt:ne("textSpacing","altProportionalText"),trad:ne("characterShape","traditionalCharacters"),smpl:ne("characterShape","simplifiedCharacters"),jp78:ne("characterShape","JIS1978Characters"),jp83:ne("characterShape","JIS1983Characters"),jp90:ne("characterShape","JIS1990Characters"),jp04:ne("characterShape","JIS2004Characters"),expt:ne("characterShape","expertCharacters"),hojo:ne("characterShape","hojoCharacters"),nlck:ne("characterShape","NLCCharacters"),tnam:ne("characterShape","traditionalNamesCharacters"),ruby:ne("rubyKana","rubyKana"),titl:ne("styleOptions","titlingCaps"),zero:ne("typographicExtras","slashedZero"),ss01:ne("stylisticAlternatives","stylisticAltOne"),ss02:ne("stylisticAlternatives","stylisticAltTwo"),ss03:ne("stylisticAlternatives","stylisticAltThree"),ss04:ne("stylisticAlternatives","stylisticAltFour"),ss05:ne("stylisticAlternatives","stylisticAltFive"),ss06:ne("stylisticAlternatives","stylisticAltSix"),ss07:ne("stylisticAlternatives","stylisticAltSeven"),ss08:ne("stylisticAlternatives","stylisticAltEight"),ss09:ne("stylisticAlternatives","stylisticAltNine"),ss10:ne("stylisticAlternatives","stylisticAltTen"),ss11:ne("stylisticAlternatives","stylisticAltEleven"),ss12:ne("stylisticAlternatives","stylisticAltTwelve"),ss13:ne("stylisticAlternatives","stylisticAltThirteen"),ss14:ne("stylisticAlternatives","stylisticAltFourteen"),ss15:ne("stylisticAlternatives","stylisticAltFifteen"),ss16:ne("stylisticAlternatives","stylisticAltSixteen"),ss17:ne("stylisticAlternatives","stylisticAltSeventeen"),ss18:ne("stylisticAlternatives","stylisticAltEighteen"),ss19:ne("stylisticAlternatives","stylisticAltNineteen"),ss20:ne("stylisticAlternatives","stylisticAltTwenty")};for(let e=1;e<=99;e++)yu[`cv${`00${e}`.slice(-2)}`]=[ur.characterAlternatives.code,e];var lr={};for(let e in yu){let t=yu[e];lr[t[0]]==null&&(lr[t[0]]={}),lr[t[0]][t[1]]=e}function jN(e){let t={};for(let i in e){let r;(r=yu[i])&&(t[r[0]]==null&&(t[r[0]]={}),t[r[0]][r[1]]=e[i])}return t}function Lb(e){let[t,i]=e;if(isNaN(t))var r=ur[t]&&ur[t].code;else var r=t;if(isNaN(i))var a=ur[t]&&ur[t][i];else var a=i;return[r,a]}function GN(e){let t={};if(Array.isArray(e))for(let i=0;i<e.length;i++){let r,a=Lb(e[i]);(r=lr[a[0]]&&lr[a[0]][a[1]])&&(t[r]=!0)}else if(typeof e=="object")for(let i in e){let r=e[i];for(let a in r){let s,n=Lb([i,a]);r[a]&&(s=lr[n[0]]&&lr[n[0]][n[1]])&&(t[s]=!0)}}return Object.keys(t)}var qs=class{lookup(e){switch(this.table.version){case 0:return this.table.values.getItem(e);case 2:case 4:{let r=0,a=this.table.binarySearchHeader.nUnits-1;for(;r<=a;){var t=r+a>>1,i=this.table.segments[t];if(i.firstGlyph===65535)return null;if(e<i.firstGlyph)a=t-1;else if(e>i.lastGlyph)r=t+1;else return this.table.version===2?i.value:i.values[e-i.firstGlyph]}return null}case 6:{let r=0,a=this.table.binarySearchHeader.nUnits-1;for(;r<=a;){var t=r+a>>1,i=this.table.segments[t];if(i.glyph===65535)return null;if(e<i.glyph)a=t-1;else if(e>i.glyph)r=t+1;else return i.value}return null}case 8:return this.table.values[e-this.table.firstGlyph];default:throw new Error(`Unknown lookup table format: ${this.table.version}`)}}glyphsForValue(e){let t=[];switch(this.table.version){case 2:case 4:for(let i of this.table.segments)if(this.table.version===2&&i.value===e)t.push(...Gr(i.firstGlyph,i.lastGlyph+1));else for(let r=0;r<i.values.length;r++)i.values[r]===e&&t.push(i.firstGlyph+r);break;case 6:for(let i of this.table.segments)i.value===e&&t.push(i.glyph);break;case 8:for(let i=0;i<this.table.values.length;i++)this.table.values[i]===e&&t.push(this.table.firstGlyph+i);break;default:throw new Error(`Unknown lookup table format: ${this.table.version}`)}return t}constructor(e){this.table=e}};Ut([jt],qs.prototype,"glyphsForValue",null);var WN=0,$b=0,Ub=1,jb=2,YN=16384,KN=class{process(e,t,i){let r=WN,a=t?e.length-1:0,s=t?-1:1;for(;s===1&&a<=e.length||s===-1&&a>=-1;){let n=null,o=Ub,u=!0;a===e.length||a===-1?o=$b:(n=e[a],n.id===65535?o=jb:(o=this.lookupTable.lookup(n.id),o==null&&(o=Ub)));let c=this.stateTable.stateArray.getItem(r)[o],f=this.stateTable.entryTable.getItem(c);o!==$b&&o!==jb&&(i(n,f,a),u=!(f.flags&YN)),r=f.newState,u&&(a+=s)}return e}traverse(e,t=0,i=new Set){if(i.has(t))return;i.add(t);let{nClasses:r,stateArray:a,entryTable:s}=this.stateTable,n=a.getItem(t);for(let o=4;o<r;o++){let u=n[o],l=s.getItem(u);for(let c of this.lookupTable.glyphsForValue(o))e.enter&&e.enter(c,l),l.newState!==0&&this.traverse(e,l.newState,i),e.exit&&e.exit(c,l)}}constructor(e){this.stateTable=e,this.lookupTable=new qs(e.classTable)}},XN=32768,HN=8192,JN=15,Gb=32768,qN=32768,QN=8192,eB=2147483648,tB=1073741824,iB=1073741823,Wb=4194304,aB=2048,rB=1024,sB=992,nB=31,Yb=class{process(e,t={}){for(let r of this.morx.chains){let a=r.defaultFlags;for(let s of r.features){let n;(n=t[s.featureType])&&(n[s.featureSetting]?(a&=s.disableFlags,a|=s.enableFlags):n[s.featureSetting]===!1&&(a|=~s.disableFlags,a&=~s.enableFlags))}for(let s of r.subtables)s.subFeatureFlags&a&&this.processSubtable(s,e)}let i=e.length-1;for(;i>=0;)e[i].id===65535&&e.splice(i,1),i--;return e}processSubtable(e,t){if(this.subtable=e,this.glyphs=t,this.subtable.type===4){this.processNoncontextualSubstitutions(this.subtable,this.glyphs);return}this.ligatureStack=[],this.markedGlyph=null,this.firstGlyph=null,this.lastGlyph=null,this.markedIndex=null;let i=this.getStateMachine(e),r=this.getProcessor(),a=!!(this.subtable.coverage&Wb);return i.process(this.glyphs,a,r)}getStateMachine(e){return new KN(e.table.stateTable)}getProcessor(){switch(this.subtable.type){case 0:return this.processIndicRearragement;case 1:return this.processContextualSubstitution;case 2:return this.processLigature;case 4:return this.processNoncontextualSubstitutions;case 5:return this.processGlyphInsertion;default:throw new Error(`Invalid morx subtable type: ${this.subtable.type}`)}}processIndicRearragement(e,t,i){t.flags&XN&&(this.firstGlyph=i),t.flags&HN&&(this.lastGlyph=i),oB(this.glyphs,t.flags&JN,this.firstGlyph,this.lastGlyph)}processContextualSubstitution(e,t,i){let r=this.subtable.table.substitutionTable.items;if(t.markIndex!==65535){let s=r.getItem(t.markIndex),n=new qs(s);e=this.glyphs[this.markedGlyph];var a=n.lookup(e.id);a&&(this.glyphs[this.markedGlyph]=this.font.getGlyph(a,e.codePoints))}if(t.currentIndex!==65535){let s=r.getItem(t.currentIndex),n=new qs(s);e=this.glyphs[i];var a=n.lookup(e.id);a&&(this.glyphs[i]=this.font.getGlyph(a,e.codePoints))}t.flags&Gb&&(this.markedGlyph=i)}processLigature(e,t,i){if(t.flags&qN&&this.ligatureStack.push(i),t.flags&QN){let r=this.subtable.table.ligatureActions,a=this.subtable.table.components,s=this.subtable.table.ligatureList,n=t.action,o=!1,u=0,l=[],c=[];for(;!o;){let f=this.ligatureStack.pop();l.unshift(...this.glyphs[f].codePoints);let h=r.getItem(n++);o=!!(h&eB);let g=!!(h&tB),p=(h&iB)<<2>>2;p+=this.glyphs[f].id;let v=a.getItem(p);if(u+=v,o||g){let k=s.getItem(u);this.glyphs[f]=this.font.getGlyph(k,l),c.push(f),u=0,l=[]}else this.glyphs[f]=this.font.getGlyph(65535)}this.ligatureStack.push(...c)}}processNoncontextualSubstitutions(e,t,i){let r=new qs(e.table.lookupTable);for(i=0;i<t.length;i++){let a=t[i];if(a.id!==65535){let s=r.lookup(a.id);s&&(t[i]=this.font.getGlyph(s,a.codePoints))}}}_insertGlyphs(e,t,i,r){let a=[];for(;i--;){let s=this.subtable.table.insertionActions.getItem(t++);a.push(this.font.getGlyph(s))}r||e++,this.glyphs.splice(e,0,...a)}processGlyphInsertion(e,t,i){if(t.flags&Gb&&(this.markedIndex=i),t.markedInsertIndex!==65535){let r=(t.flags&nB)>>>5,a=!!(t.flags&rB);this._insertGlyphs(this.markedIndex,t.markedInsertIndex,r,a)}if(t.currentInsertIndex!==65535){let r=(t.flags&sB)>>>5,a=!!(t.flags&aB);this._insertGlyphs(i,t.currentInsertIndex,r,a)}}getSupportedFeatures(){let e=[];for(let t of this.morx.chains)for(let i of t.features)e.push([i.featureType,i.featureSetting]);return e}generateInputs(e){return this.inputCache||this.generateInputCache(),this.inputCache[e]||[]}generateInputCache(){this.inputCache={};for(let e of this.morx.chains){let t=e.defaultFlags;for(let i of e.subtables)i.subFeatureFlags&t&&this.generateInputsForSubtable(i)}}generateInputsForSubtable(e){if(e.type!==2)return;if(!!(e.coverage&Wb))throw new Error("Reverse subtable, not supported.");this.subtable=e,this.ligatureStack=[];let i=this.getStateMachine(e),r=this.getProcessor(),a=[],s=[];this.glyphs=[],i.traverse({enter:(n,o)=>{let u=this.glyphs;s.push({glyphs:u.slice(),ligatureStack:this.ligatureStack.slice()});let l=this.font.getGlyph(n);a.push(l),u.push(a[a.length-1]),r(u[u.length-1],o,u.length-1);let c=0,f=0;for(let h=0;h<u.length&&c<=1;h++)u[h].id!==65535&&(c++,f=u[h].id);if(c===1){let h=a.map(p=>p.id),g=this.inputCache[f];g?g.push(h):this.inputCache[f]=[h]}},exit:()=>{({glyphs:this.glyphs,ligatureStack:this.ligatureStack}=s.pop()),a.pop()}})}constructor(e){this.processIndicRearragement=this.processIndicRearragement.bind(this),this.processContextualSubstitution=this.processContextualSubstitution.bind(this),this.processLigature=this.processLigature.bind(this),this.processNoncontextualSubstitutions=this.processNoncontextualSubstitutions.bind(this),this.processGlyphInsertion=this.processGlyphInsertion.bind(this),this.font=e,this.morx=e.morx,this.inputCache=null}};Ut([jt],Yb.prototype,"getStateMachine",null);function ti(e,t,i,r=!1,a=!1){let s=e.splice(i[0]-(i[1]-1),i[1]);a&&s.reverse();let n=e.splice(t[0],t[1],...s);return r&&n.reverse(),e.splice(i[0]-(t[1]-1),0,...n),e}function oB(e,t,i,r){switch(t){case 0:return e;case 1:return ti(e,[i,1],[r,0]);case 2:return ti(e,[i,0],[r,1]);case 3:return ti(e,[i,1],[r,1]);case 4:return ti(e,[i,2],[r,0]);case 5:return ti(e,[i,2],[r,0],!0,!1);case 6:return ti(e,[i,0],[r,2]);case 7:return ti(e,[i,0],[r,2],!1,!0);case 8:return ti(e,[i,1],[r,2]);case 9:return ti(e,[i,1],[r,2],!1,!0);case 10:return ti(e,[i,2],[r,1]);case 11:return ti(e,[i,2],[r,1],!0,!1);case 12:return ti(e,[i,2],[r,2]);case 13:return ti(e,[i,2],[r,2],!0,!1);case 14:return ti(e,[i,2],[r,2],!1,!0);case 15:return ti(e,[i,2],[r,2],!0,!0);default:throw new Error(`Unknown verb: ${t}`)}}var uB=class{substitute(e){e.direction==="rtl"&&e.glyphs.reverse(),this.morxProcessor.process(e.glyphs,jN(e.features))}getAvailableFeatures(e,t){return GN(this.morxProcessor.getSupportedFeatures())}stringsForGlyph(e){let t=this.morxProcessor.generateInputs(e),i=new Set;for(let r of t)this._addStrings(r,0,i,"");return i}_addStrings(e,t,i,r){let a=this.font._cmapProcessor.codePointsForGlyph(e[t]);for(let s of a){let n=r+String.fromCodePoint(s);t<e.length-1?this._addStrings(e,t+1,i,n):i.add(n)}}constructor(e){this.font=e,this.morxProcessor=new Yb(e),this.fallbackPosition=!1}},lB=class{_addFeatures(e,t){let i=this.stages.length-1,r=this.stages[i];for(let a of e)this.allFeatures[a]==null&&(r.push(a),this.allFeatures[a]=i,t&&(this.globalFeatures[a]=!0))}add(e,t=!0){if(this.stages.length===0&&this.stages.push([]),typeof e=="string"&&(e=[e]),Array.isArray(e))this._addFeatures(e,t);else if(typeof e=="object")this._addFeatures(e.global||[],!0),this._addFeatures(e.local||[],!1);else throw new Error("Unsupported argument to ShapingPlan#add")}addStage(e,t){typeof e=="function"?this.stages.push(e,[]):(this.stages.push([]),this.add(e,t))}setFeatureOverrides(e){if(Array.isArray(e))this.add(e);else if(typeof e=="object"){for(let t in e)if(e[t])this.add(t);else if(this.allFeatures[t]!=null){let i=this.stages[this.allFeatures[t]];i.splice(i.indexOf(t),1),delete this.allFeatures[t],delete this.globalFeatures[t]}}}assignGlobalFeatures(e){for(let t of e)for(let i in this.globalFeatures)t.features[i]=!0}process(e,t,i){for(let r of this.stages)typeof r=="function"?i||r(this.font,t,this):r.length>0&&e.applyFeatures(r,t,i)}constructor(e,t,i){this.font=e,this.script=t,this.direction=i,this.stages=[],this.globalFeatures={},this.allFeatures={}}},cB=["rvrn"],fB=["ccmp","locl","rlig","mark","mkmk"],dB=["frac","numr","dnom"],hB=["calt","clig","liga","rclt","curs","kern"],gB={ltr:["ltra","ltrm"],rtl:["rtla","rtlm"]},Ra=class{static plan(e,t,i){this.planPreprocessing(e),this.planFeatures(e),this.planPostprocessing(e,i),e.assignGlobalFeatures(t),this.assignFeatures(e,t)}static planPreprocessing(e){e.add({global:[...cB,...gB[e.direction]],local:dB})}static planFeatures(e){}static planPostprocessing(e,t){e.add([...fB,...hB]),e.setFeatureOverrides(t)}static assignFeatures(e,t){for(let i=0;i<t.length;i++){let r=t[i];if(r.codePoints[0]===8260){let a=i,s=i+1;for(;a>0&&Xy(t[a-1].codePoints[0]);)t[a-1].features.numr=!0,t[a-1].features.frac=!0,a--;for(;s<t.length&&Xy(t[s].codePoints[0]);)t[s].features.dnom=!0,t[s].features.frac=!0,s++;r.features.frac=!0,i=s-1}}}};ui(Ra,"zeroMarkWidths","AFTER_GPOS");var pB=new Rc.default(ef("APABAAAAAAAAOAAAAf0BAv7tmi1MxDAUx7vtvjhAgcDgkEgEAnmXEBIMCYaEcygEiqBQ4FAkCE4ikUgMiiBJSAgSiUQSDMn9L9eSl6bddddug9t7yS/trevre+3r27pcNxZiG+yCfdCVv/9LeQxOwRm4AJegD27ALbgD9+ABPJF+z+BN/h7yDj5k/VOWX6SdmU5+wLWknggxDxaS8u0qiiX4uiz9XamQ3wzDMAzDMAzDMAzDVI/h959V/v7BMAzDMAzDMLlyNTNiMSdewVxbiA44B4/guz1qW58VYlMI0WsJ0W+N6kXw0spvPtdwhtkwnGM6uLaV4Xyzg3v3PM9DPfQ/sOg4xPWjipy31P8LTqbU304c/cLCUmWJLNB2Uz2U1KTeRKNmKHVMfbJC+/0loTZRH/W5cvEvBJPMbREkWt3FD1NcqXZBSpuE2Ad0PBehPtNrPtIEdYP+hiRt/V1jIiE69X4NT/uVZI3PUHE9bm5M7ePGdZWy951v7Nn6j8v1WWKP3mt6ttnsigx6VN7Vc0VomSSGqW2mGNP1muZPl7LfjNUaKNFtDGVf2fvE9O7VlBS5j333c5p/eeoOqcs1R/hIqDWLJ7TTlksirVT1SI7l8k4Yp+g3jafGcrU1RM6l9th80XOpnlN97bDNY4i4s61B0Si/ipa0uHMl6zqEjlFfCZm/TM8KmzQDjmuTAQ==")),Kb=["isol","fina","fin2","fin3","medi","med2","init"],rf={Non_Joining:0,Transparent:6},pt="isol",Ma="fina",sf="fin2",mB="fin3",bu="medi",vu="med2",wu="init",He=null,yB=[[[He,He,0],[He,pt,2],[He,pt,1],[He,pt,2],[He,pt,1],[He,pt,6]],[[He,He,0],[He,pt,2],[He,pt,1],[He,pt,2],[He,sf,5],[He,pt,6]],[[He,He,0],[He,pt,2],[wu,Ma,1],[wu,Ma,3],[wu,Ma,4],[wu,Ma,6]],[[He,He,0],[He,pt,2],[bu,Ma,1],[bu,Ma,3],[bu,Ma,4],[bu,Ma,6]],[[He,He,0],[He,pt,2],[vu,pt,1],[vu,pt,2],[vu,sf,5],[vu,pt,6]],[[He,He,0],[He,pt,2],[pt,pt,1],[pt,pt,2],[pt,sf,5],[pt,pt,6]],[[He,He,0],[He,pt,2],[He,pt,1],[He,pt,2],[He,mB,5],[He,pt,6]]],Za=class extends Ra{static planFeatures(e){e.add(["ccmp","locl"]);for(let t=0;t<Kb.length;t++){let i=Kb[t];e.addStage(i,!1)}e.addStage("mset")}static assignFeatures(e,t){super.assignFeatures(e,t);let i=-1,r=0,a=[];for(let n=0;n<t.length;n++){let o,u;var s=t[n];let l=bB(s.codePoints[0]);if(l===rf.Transparent){a[n]=He;continue}[u,o,r]=yB[r][l],u!==He&&i!==-1&&(a[i]=u),a[n]=o,i=n}for(let n=0;n<t.length;n++){let o;var s=t[n];(o=a[n])&&(s.features[o]=!0)}}};function bB(e){let t=pB.get(e);if(t)return t-1;let i=ru(e);return i==="Mn"||i==="Me"||i==="Cf"?rf.Transparent:rf.Non_Joining}var vB=class{reset(e={},t=0){this.options=e,this.flags=e.flags||{},this.markAttachmentType=e.markAttachmentType||0,this.index=t}get cur(){return this.glyphs[this.index]||null}shouldIgnore(e){return this.flags.ignoreMarks&&e.isMark||this.flags.ignoreBaseGlyphs&&e.isBase||this.flags.ignoreLigatures&&e.isLigature||this.markAttachmentType&&e.isMark&&e.markAttachmentType!==this.markAttachmentType}move(e){for(this.index+=e;0<=this.index&&this.index<this.glyphs.length&&this.shouldIgnore(this.glyphs[this.index]);)this.index+=e;return 0>this.index||this.index>=this.glyphs.length?null:this.glyphs[this.index]}next(){return this.move(1)}prev(){return this.move(-1)}peek(e=1){let t=this.index,i=this.increment(e);return this.index=t,i}peekIndex(e=1){let t=this.index;this.increment(e);let i=this.index;return this.index=t,i}increment(e=1){let t=e<0?-1:1;for(e=Math.abs(e);e--;)this.move(t);return this.glyphs[this.index]}constructor(e,t){this.glyphs=e,this.reset(t)}},wB=["DFLT","dflt","latn"],Cu=class{findScript(e){if(this.table.scriptList==null)return null;Array.isArray(e)||(e=[e]);for(let t of e)for(let i of this.table.scriptList)if(i.tag===t)return i;return null}selectScript(e,t,i){let r=!1,a;if(!this.script||e!==this.scriptTag){if(a=this.findScript(e),a||(a=this.findScript(wB)),!a)return this.scriptTag;this.scriptTag=a.tag,this.script=a.script,this.language=null,this.languageTag=null,r=!0}if((!i||i!==this.direction)&&(this.direction=i||Zb(e)),t&&t.length<4&&(t+=" ".repeat(4-t.length)),!t||t!==this.languageTag){this.language=null;for(let s of this.script.langSysRecords)if(s.tag===t){this.language=s.langSys,this.languageTag=s.tag;break}this.language||(this.language=this.script.defaultLangSys,this.languageTag=null),r=!0}if(r&&(this.features={},this.language))for(let s of this.language.featureIndexes){let n=this.table.featureList[s],o=this.substituteFeatureForVariations(s);this.features[n.tag]=o||n.feature}return this.scriptTag}lookupsForFeatures(e=[],t){let i=[];for(let r of e){let a=this.features[r];if(a)for(let s of a.lookupListIndexes)t&&t.indexOf(s)!==-1||i.push({feature:r,index:s,lookup:this.table.lookupList.get(s)})}return i.sort((r,a)=>r.index-a.index),i}substituteFeatureForVariations(e){if(this.variationsIndex===-1)return null;let i=this.table.featureVariations.featureVariationRecords[this.variationsIndex].featureTableSubstitution.substitutions;for(let r of i)if(r.featureIndex===e)return r.alternateFeatureTable;return null}findVariationsIndex(e){let t=this.table.featureVariations;if(!t)return-1;let i=t.featureVariationRecords;for(let r=0;r<i.length;r++){let a=i[r].conditionSet.conditionTable;if(this.variationConditionsMatch(a,e))return r}return-1}variationConditionsMatch(e,t){return e.every(i=>{let r=i.axisIndex<t.length?t[i.axisIndex]:0;return i.filterRangeMinValue<=r&&r<=i.filterRangeMaxValue})}applyFeatures(e,t,i){let r=this.lookupsForFeatures(e);this.applyLookups(r,t,i)}applyLookups(e,t,i){this.glyphs=t,this.positions=i,this.glyphIterator=new vB(t);for(let{feature:r,lookup:a}of e)for(this.currentFeature=r,this.glyphIterator.reset(a.flags);this.glyphIterator.index<t.length;){if(!(r in this.glyphIterator.cur.features)){this.glyphIterator.next();continue}for(let s of a.subTables)if(this.applyLookup(a.lookupType,s))break;this.glyphIterator.next()}}applyLookup(e,t){throw new Error("applyLookup must be implemented by subclasses")}applyLookupList(e){let t=this.glyphIterator.options,i=this.glyphIterator.index;for(let r of e){this.glyphIterator.reset(t,i),this.glyphIterator.increment(r.sequenceIndex);let a=this.table.lookupList.get(r.lookupListIndex);this.glyphIterator.reset(a.flags,this.glyphIterator.index);for(let s of a.subTables)if(this.applyLookup(a.lookupType,s))break}return this.glyphIterator.reset(t,i),!0}coverageIndex(e,t){switch(t==null&&(t=this.glyphIterator.cur.id),e.version){case 1:return e.glyphs.indexOf(t);case 2:for(let i of e.rangeRecords)if(i.start<=t&&t<=i.end)return i.startCoverageIndex+t-i.start;break}return-1}match(e,t,i,r){let a=this.glyphIterator.index,s=this.glyphIterator.increment(e),n=0;for(;n<t.length&&s&&i(t[n],s);)r&&r.push(this.glyphIterator.index),n++,s=this.glyphIterator.next();return this.glyphIterator.index=a,n<t.length?!1:r||!0}sequenceMatches(e,t){return this.match(e,t,(i,r)=>i===r.id)}sequenceMatchIndices(e,t){return this.match(e,t,(i,r)=>this.currentFeature in r.features?i===r.id:!1,[])}coverageSequenceMatches(e,t){return this.match(e,t,(i,r)=>this.coverageIndex(i,r.id)>=0)}getClassID(e,t){switch(t.version){case 1:let i=e-t.startGlyph;if(i>=0&&i<t.classValueArray.length)return t.classValueArray[i];break;case 2:for(let r of t.classRangeRecord)if(r.start<=e&&e<=r.end)return r.class;break}return 0}classSequenceMatches(e,t,i){return this.match(e,t,(r,a)=>r===this.getClassID(a.id,i))}applyContext(e){let t,i;switch(e.version){case 1:if(t=this.coverageIndex(e.coverage),t===-1)return!1;i=e.ruleSets[t];for(let r of i)if(this.sequenceMatches(1,r.input))return this.applyLookupList(r.lookupRecords);break;case 2:if(this.coverageIndex(e.coverage)===-1||(t=this.getClassID(this.glyphIterator.cur.id,e.classDef),t===-1))return!1;i=e.classSet[t];for(let r of i)if(this.classSequenceMatches(1,r.classes,e.classDef))return this.applyLookupList(r.lookupRecords);break;case 3:if(this.coverageSequenceMatches(0,e.coverages))return this.applyLookupList(e.lookupRecords);break}return!1}applyChainingContext(e){let t;switch(e.version){case 1:if(t=this.coverageIndex(e.coverage),t===-1)return!1;let i=e.chainRuleSets[t];for(let a of i)if(this.sequenceMatches(-a.backtrack.length,a.backtrack)&&this.sequenceMatches(1,a.input)&&this.sequenceMatches(1+a.input.length,a.lookahead))return this.applyLookupList(a.lookupRecords);break;case 2:if(this.coverageIndex(e.coverage)===-1)return!1;t=this.getClassID(this.glyphIterator.cur.id,e.inputClassDef);let r=e.chainClassSet[t];if(!r)return!1;for(let a of r)if(this.classSequenceMatches(-a.backtrack.length,a.backtrack,e.backtrackClassDef)&&this.classSequenceMatches(1,a.input,e.inputClassDef)&&this.classSequenceMatches(1+a.input.length,a.lookahead,e.lookaheadClassDef))return this.applyLookupList(a.lookupRecords);break;case 3:if(this.coverageSequenceMatches(-e.backtrackGlyphCount,e.backtrackCoverage)&&this.coverageSequenceMatches(0,e.inputCoverage)&&this.coverageSequenceMatches(e.inputGlyphCount,e.lookaheadCoverage))return this.applyLookupList(e.lookupRecords);break}return!1}constructor(e,t){this.font=e,this.table=t,this.script=null,this.scriptTag=null,this.language=null,this.languageTag=null,this.features={},this.lookups={},this.variationsIndex=e._variationProcessor?this.findVariationsIndex(e._variationProcessor.normalizedCoords):-1,this.selectScript(),this.glyphs=[],this.positions=[],this.ligatureID=1,this.currentFeature=null}},ua=class _3{get id(){return this._id}set id(t){this._id=t,this.substituted=!0;let i=this._font.GDEF;if(i&&i.glyphClassDef){let r=Cu.prototype.getClassID(t,i.glyphClassDef);this.isBase=r===1,this.isLigature=r===2,this.isMark=r===3,this.markAttachmentType=i.markAttachClassDef?Cu.prototype.getClassID(t,i.markAttachClassDef):0}else this.isMark=this.codePoints.length>0&&this.codePoints.every(Hy),this.isBase=!this.isMark,this.isLigature=this.codePoints.length>1,this.markAttachmentType=0}copy(){return new _3(this._font,this.id,this.codePoints,this.features)}constructor(t,i,r=[],a){if(this._font=t,this.codePoints=r,this.id=i,this.features={},Array.isArray(a))for(let s=0;s<a.length;s++){let n=a[s];this.features[n]=!0}else typeof a=="object"&&Object.assign(this.features,a);this.ligatureID=null,this.ligatureComponent=null,this.isLigated=!1,this.cursiveAttachment=null,this.markAttachment=null,this.shaperInfo=null,this.substituted=!1,this.isMultiplied=!1}},Xb=class extends Ra{static planFeatures(e){e.add(["ljmo","vjmo","tjmo"],!1)}static assignFeatures(e,t){let i=0,r=0;for(;r<t.length;){let a,n=t[r].codePoints[0],o=_u(n);switch([a,i]=RB[i][o],a){case la:e.font.hasGlyphForCodePoint(n)||(r=Qb(t,r,e.font));break;case of:r=MB(t,r,e.font);break;case uf:LB(t,r,e.font);break;case lf:r=$B(t,r,e.font);break}r++}}};ui(Xb,"zeroMarkWidths","NONE");var Kr=44032,Hb=55204,CB=Hb-Kr+1,xu=4352,Eu=4449,cr=4519,xB=19,Au=21,Qs=28,EB=xu+xB-1,AB=Eu+Au-1,kB=cr+Qs-1,Jb=9676,DB=e=>4352<=e&&e<=4447||43360<=e&&e<=43388,_B=e=>4448<=e&&e<=4519||55216<=e&&e<=55238,SB=e=>4520<=e&&e<=4607||55243<=e&&e<=55291,NB=e=>12334<=e&&e<=12335,BB=e=>Kr<=e&&e<=Hb,FB=e=>e-Kr<CB&&(e-Kr)%Qs===0,IB=e=>xu<=e&&e<=EB,VB=e=>Eu<=e&&e<=AB,zB=e=>1<=e&&e<=kB,PB=0,TB=1,ku=2,nf=3,Du=4,qb=5,OB=6;function _u(e){return DB(e)?TB:_B(e)?ku:SB(e)?nf:FB(e)?Du:BB(e)?qb:NB(e)?OB:PB}var li=0,la=1,of=2,uf=4,lf=5,RB=[[[li,0],[li,1],[li,0],[li,0],[la,2],[la,3],[lf,0]],[[li,0],[li,1],[of,2],[li,0],[la,2],[la,3],[lf,0]],[[li,0],[li,1],[li,0],[of,3],[la,2],[la,3],[uf,0]],[[li,0],[li,1],[li,0],[li,0],[la,2],[la,3],[uf,0]]];function en(e,t,i){return new ua(e,e.glyphForCodePoint(t).id,[t],i)}function Qb(e,t,i){let r=e[t],s=r.codePoints[0]-Kr,n=cr+s%Qs;s=s/Qs|0;let o=xu+s/Au|0,u=Eu+s%Au;if(!i.hasGlyphForCodePoint(o)||!i.hasGlyphForCodePoint(u)||n!==cr&&!i.hasGlyphForCodePoint(n))return t;let l=en(i,o,r.features);l.features.ljmo=!0;let c=en(i,u,r.features);c.features.vjmo=!0;let f=[l,c];if(n>cr){let h=en(i,n,r.features);h.features.tjmo=!0,f.push(h)}return e.splice(t,1,...f),t+f.length-1}function MB(e,t,i){let r=e[t],a=e[t].codePoints[0],s=_u(a),n=e[t-1].codePoints[0],o=_u(n),u,l,c,f;if(o===Du&&s===nf)u=n,f=r;else{s===ku?(l=e[t-1],c=r):(l=e[t-2],c=e[t-1],f=r);let g=l.codePoints[0],p=c.codePoints[0];IB(g)&&VB(p)&&(u=Kr+((g-xu)*Au+(p-Eu))*Qs)}let h=f&&f.codePoints[0]||cr;if(u!=null&&(h===cr||zB(h))){let g=u+(h-cr);if(i.hasGlyphForCodePoint(g)){let p=o===ku?3:2;return e.splice(t-p+1,p,en(i,g,r.features)),t-p+1}}return l&&(l.features.ljmo=!0),c&&(c.features.vjmo=!0),f&&(f.features.tjmo=!0),o===Du?(Qb(e,t-1,i),t+1):t}function ZB(e){switch(_u(e)){case Du:case qb:return 1;case ku:return 2;case nf:return 3}}function LB(e,t,i){let r=e[t],a=e[t].codePoints[0];if(i.glyphForCodePoint(a).advanceWidth===0)return;let s=e[t-1].codePoints[0],n=ZB(s);return e.splice(t,1),e.splice(t-n,0,r)}function $B(e,t,i){let r=e[t],a=e[t].codePoints[0];if(i.hasGlyphForCodePoint(Jb)){let s=en(i,Jb,r.features),n=i.glyphForCodePoint(a).advanceWidth===0?t:t+1;e.splice(n,0,s),t++}return t}var ev={};ev=JSON.parse('{"stateTable":[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,14,15,16,17],[0,0,0,18,19,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,28,29,30,31,32,33,0,34,0,0,35,36,0,0,37,0],[0,0,0,38,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,39,0,0,0,40,41,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,12,43,0,0,0,0],[0,0,0,0,43,44,44,8,9,0,0,0,0,0,43,0,0,0,0],[0,0,0,45,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,50,0,0,51,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,52,0,0,0,0,0,0,0,0],[0,0,0,53,54,55,56,57,58,0,59,0,0,60,61,0,0,62,0],[0,0,0,4,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,63,64,0,0,40,41,0,9,0,10,0,0,0,42,0,63,0,0],[0,2,3,4,5,6,7,8,9,0,10,11,11,12,13,0,2,16,0],[0,0,0,18,65,20,21,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,0,0],[0,0,0,69,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,73,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,75,0,0,0,76,77,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,25,79,0,0,0,0],[0,0,0,18,19,20,74,22,23,0,24,0,0,25,26,0,0,27,0],[0,0,0,81,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,86,0,0,87,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,88,0,0,0,0,0,0,0,0],[0,0,0,18,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,89,90,0,0,76,77,0,23,0,24,0,0,0,78,0,89,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,0,0],[0,0,0,94,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,96,0,0,0,97,98,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,35,100,0,0,0,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,102,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,107,0,0,108,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,109,0,0,0,0,0,0,0,0],[0,0,0,28,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,110,111,0,0,97,98,0,33,0,34,0,0,0,99,0,110,0,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,0,0],[0,0,0,0,5,7,7,8,9,0,10,0,0,0,13,0,0,16,0],[0,0,0,115,116,117,118,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,39,0,122,0,123,123,8,9,0,10,0,0,0,42,0,39,0,0],[0,124,64,0,0,0,0,0,0,0,0,0,0,0,0,0,124,0,0],[0,39,0,0,0,121,125,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,126,126,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,46,47,48,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,47,47,49,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,128,127,127,49,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,129,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,50,0,0,0,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,134,0,0,0,0,0,0,0,0],[0,0,0,135,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,136,0,0,0,137,138,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,60,140,0,0,0,0],[0,0,0,0,140,141,141,57,58,0,0,0,0,0,140,0,0,0,0],[0,0,0,142,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,147,0,0,148,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,149,0,0,0,0,0,0,0,0],[0,0,0,53,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,150,151,0,0,137,138,0,58,0,59,0,0,0,139,0,150,0,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,0,0],[0,0,0,155,116,156,157,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,0,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,75,3,4,5,159,160,8,161,0,162,0,11,12,163,0,75,16,0],[0,0,0,0,0,40,164,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,0,165,0,0,0,0],[0,124,64,0,0,40,164,0,9,0,10,0,0,0,42,0,124,0,0],[0,0,0,0,0,70,70,0,71,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,71,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,167,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,168,0,0,0,0,0,0,0,0],[0,0,0,0,19,74,74,22,23,0,24,0,0,0,26,0,0,27,0],[0,0,0,0,79,80,80,22,23,0,0,0,0,0,79,0,0,0,0],[0,0,0,169,170,171,172,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,75,0,176,0,177,177,22,23,0,24,0,0,0,78,0,75,0,0],[0,178,90,0,0,0,0,0,0,0,0,0,0,0,0,0,178,0,0],[0,75,0,0,0,175,179,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,180,180,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,82,83,84,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,83,83,85,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,182,181,181,85,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,183,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,86,0,0,0,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,188,0,0,0,0,0,0,0,0],[0,0,0,189,170,190,191,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,0,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,76,193,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,0,194,0,0,0,0],[0,178,90,0,0,76,193,0,23,0,24,0,0,0,78,0,178,0,0],[0,0,0,0,29,95,31,32,33,0,34,0,0,0,36,0,0,37,0],[0,0,0,0,100,101,101,32,33,0,0,0,0,0,100,0,0,0,0],[0,0,0,195,196,197,198,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,96,0,202,0,203,203,32,33,0,34,0,0,0,99,0,96,0,0],[0,204,111,0,0,0,0,0,0,0,0,0,0,0,0,0,204,0,0],[0,96,0,0,0,201,205,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,206,206,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,103,104,105,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,104,104,106,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,208,207,207,106,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,209,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,107,0,0,0,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,214,0,0,0,0,0,0,0,0],[0,0,0,215,196,216,217,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,0,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,97,219,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,0,220,0,0,0,0],[0,204,111,0,0,97,219,0,33,0,34,0,0,0,99,0,204,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,223,0,0,0,40,224,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,119,225,0,0,0,0],[0,0,0,115,116,117,222,8,9,0,10,0,0,119,120,0,0,16,0],[0,0,0,115,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,226,64,0,0,40,224,0,9,0,10,0,0,0,42,0,226,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,39,0,0,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,44,44,8,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,227,0,228,229,0,9,0,10,0,0,230,0,0,0,0,0],[0,39,0,122,0,121,121,0,9,0,10,0,0,0,42,0,39,0,0],[0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,231,231,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,232,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,130,131,132,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,131,131,133,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,234,233,233,133,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,235,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,54,56,56,57,58,0,59,0,0,0,61,0,0,62,0],[0,0,0,240,241,242,243,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,136,0,247,0,248,248,57,58,0,59,0,0,0,139,0,136,0,0],[0,249,151,0,0,0,0,0,0,0,0,0,0,0,0,0,249,0,0],[0,136,0,0,0,246,250,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,251,251,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,143,144,145,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,144,144,146,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,253,252,252,146,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,254,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,147,0,0,0,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0],[0,0,0,260,241,261,262,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,0,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,137,264,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,0,265,0,0,0,0],[0,249,151,0,0,137,264,0,58,0,59,0,0,0,139,0,249,0,0],[0,0,0,221,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,158,225,0,0,0,0],[0,0,0,155,116,156,222,8,9,0,10,0,0,158,120,0,0,16,0],[0,0,0,155,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,43,266,266,8,161,0,24,0,0,12,267,0,0,0,0],[0,75,0,176,43,268,268,269,161,0,24,0,0,0,267,0,75,0,0],[0,0,0,0,0,270,0,0,271,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,272,0,0,0,0,0,0,0,0],[0,273,274,0,0,40,41,0,9,0,10,0,0,0,42,0,273,0,0],[0,0,0,40,0,123,123,8,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,121,275,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,166,0,0,0,0,72,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,276,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,279,0,0,0,76,280,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,173,281,0,0,0,0],[0,0,0,169,170,171,278,22,23,0,24,0,0,173,174,0,0,27,0],[0,0,0,169,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,282,90,0,0,76,280,0,23,0,24,0,0,0,78,0,282,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,75,0,0,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,80,80,22,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,283,0,284,285,0,23,0,24,0,0,286,0,0,0,0,0],[0,75,0,176,0,175,175,0,23,0,24,0,0,0,78,0,75,0,0],[0,0,0,0,0,0,0,22,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,287,287,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,288,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,184,185,186,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,185,185,187,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,290,289,289,187,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,291,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,277,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,192,281,0,0,0,0],[0,0,0,189,170,190,278,22,23,0,24,0,0,192,174,0,0,27,0],[0,0,0,189,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,76,0,177,177,22,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,175,296,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,299,0,0,0,97,300,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,199,301,0,0,0,0],[0,0,0,195,196,197,298,32,33,0,34,0,0,199,200,0,0,37,0],[0,0,0,195,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,302,111,0,0,97,300,0,33,0,34,0,0,0,99,0,302,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,96,0,0,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,101,101,32,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,303,0,304,305,0,33,0,34,0,0,306,0,0,0,0,0],[0,96,0,202,0,201,201,0,33,0,34,0,0,0,99,0,96,0,0],[0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,307,307,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,308,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,210,211,212,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,211,211,213,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,310,309,309,213,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,311,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,297,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,218,301,0,0,0,0],[0,0,0,215,196,216,298,32,33,0,34,0,0,218,200,0,0,37,0],[0,0,0,215,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,97,0,203,203,32,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,201,316,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,116,222,222,8,9,0,10,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,9,0,0,0,0,0,225,0,0,0,0],[0,0,0,317,318,319,320,8,9,0,10,0,0,321,322,0,0,16,0],[0,223,0,323,0,123,123,8,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,0,0,121,324,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,325,318,326,327,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,64,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,9,0,0,0,0,230,0,0,0,0,0],[0,0,0,227,0,228,121,0,9,0,10,0,0,230,0,0,0,0,0],[0,0,0,227,0,121,121,0,9,0,10,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,49,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,46,0,0],[0,0,0,0,0,329,329,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,330,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,236,237,238,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,237,237,239,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,332,331,331,239,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,333,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,337,0,0,0,137,338,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,244,339,0,0,0,0],[0,0,0,240,241,242,336,57,58,0,59,0,0,244,245,0,0,62,0],[0,0,0,240,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,340,151,0,0,137,338,0,58,0,59,0,0,0,139,0,340,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,136,0,0,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,141,141,57,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,341,0,342,343,0,58,0,59,0,0,344,0,0,0,0,0],[0,136,0,247,0,246,246,0,58,0,59,0,0,0,139,0,136,0,0],[0,0,0,0,0,0,0,57,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,345,345,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,346,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,255,256,257,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,256,256,258,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,348,347,347,258,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,349,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,335,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,263,339,0,0,0,0],[0,0,0,260,241,261,336,57,58,0,59,0,0,263,245,0,0,62,0],[0,0,0,260,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,137,0,248,248,57,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,246,354,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,126,126,8,23,0,0,0,0,0,0,0,0,0,0],[0,355,90,0,0,121,125,0,9,0,10,0,0,0,42,0,355,0,0],[0,0,0,0,0,356,356,269,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,357,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,270,0,0,0,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,363,0,0,0,0,0,0,0,0],[0,0,0,364,116,365,366,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,40,0,121,121,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,170,278,278,22,23,0,24,0,0,0,174,0,0,27,0],[0,0,0,0,281,80,80,22,23,0,0,0,0,0,281,0,0,0,0],[0,0,0,369,370,371,372,22,23,0,24,0,0,373,374,0,0,27,0],[0,279,0,375,0,177,177,22,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,0,0,175,376,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,377,370,378,379,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,90,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,23,0,0,0,0,286,0,0,0,0,0],[0,0,0,283,0,284,175,0,23,0,24,0,0,286,0,0,0,0,0],[0,0,0,283,0,175,175,0,23,0,24,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,85,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0],[0,0,0,0,0,381,381,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,382,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,292,293,294,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,293,293,295,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,0,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,384,383,383,295,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,385,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,76,0,175,175,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,196,298,298,32,33,0,34,0,0,0,200,0,0,37,0],[0,0,0,0,301,101,101,32,33,0,0,0,0,0,301,0,0,0,0],[0,0,0,387,388,389,390,32,33,0,34,0,0,391,392,0,0,37,0],[0,299,0,393,0,203,203,32,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,0,0,201,394,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,395,388,396,397,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,111,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,33,0,0,0,0,306,0,0,0,0,0],[0,0,0,303,0,304,201,0,33,0,34,0,0,306,0,0,0,0,0],[0,0,0,303,0,201,201,0,33,0,34,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,106,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,103,0,0],[0,0,0,0,0,399,399,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,400,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,312,313,314,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,313,313,315,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,0,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,402,401,401,315,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,403,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,97,0,201,201,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,407,0,0,0,40,408,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,321,409,0,0,0,0],[0,0,0,317,318,319,406,8,9,0,10,0,0,321,322,0,0,16,0],[0,0,0,317,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,410,64,0,0,40,408,0,9,0,10,0,0,0,42,0,410,0,0],[0,223,0,0,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,223,0,323,0,121,121,0,9,0,10,0,0,0,42,0,223,0,0],[0,0,0,405,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,328,409,0,0,0,0],[0,0,0,325,318,326,406,8,9,0,10,0,0,328,322,0,0,16,0],[0,0,0,325,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,0,0,0,133,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,130,0,0],[0,0,0,0,0,411,411,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,412,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,40,121,334,0,9,0,10,0,0,0,42,0,0,0,0],[0,0,0,0,413,0,0,0,9,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,241,336,336,57,58,0,59,0,0,0,245,0,0,62,0],[0,0,0,0,339,141,141,57,58,0,0,0,0,0,339,0,0,0,0],[0,0,0,414,415,416,417,57,58,0,59,0,0,418,419,0,0,62,0],[0,337,0,420,0,248,248,57,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,0,0,246,421,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,422,415,423,424,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,151,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,58,0,0,0,0,344,0,0,0,0,0],[0,0,0,341,0,342,246,0,58,0,59,0,0,344,0,0,0,0,0],[0,0,0,341,0,246,246,0,58,0,59,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,146,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0],[0,0,0,0,0,426,426,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,427,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,350,351,352,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,351,351,353,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,0,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,429,428,428,353,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,430,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,137,0,246,246,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,432,116,433,434,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,0,0,180,180,269,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,358,359,360,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,359,359,361,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,437,436,436,361,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,438,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,443,274,0,0,0,0,0,0,0,0,0,0,0,0,0,443,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,367,225,0,0,0,0],[0,0,0,364,116,365,445,8,161,0,162,0,0,367,120,0,0,16,0],[0,0,0,364,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,448,0,0,0,76,449,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,373,450,0,0,0,0],[0,0,0,369,370,371,447,22,23,0,24,0,0,373,374,0,0,27,0],[0,0,0,369,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,451,90,0,0,76,449,0,23,0,24,0,0,0,78,0,451,0,0],[0,279,0,0,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,279,0,375,0,175,175,0,23,0,24,0,0,0,78,0,279,0,0],[0,0,0,446,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,380,450,0,0,0,0],[0,0,0,377,370,378,447,22,23,0,24,0,0,380,374,0,0,27,0],[0,0,0,377,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,0,0,0,187,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,184,0,0],[0,0,0,0,0,452,452,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,453,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,76,175,386,0,23,0,24,0,0,0,78,0,0,0,0],[0,0,0,0,454,0,0,0,23,0,0,0,0,0,0,0,0,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,457,0,0,0,97,458,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,391,459,0,0,0,0],[0,0,0,387,388,389,456,32,33,0,34,0,0,391,392,0,0,37,0],[0,0,0,387,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,460,111,0,0,97,458,0,33,0,34,0,0,0,99,0,460,0,0],[0,299,0,0,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,299,0,393,0,201,201,0,33,0,34,0,0,0,99,0,299,0,0],[0,0,0,455,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,398,459,0,0,0,0],[0,0,0,395,388,396,456,32,33,0,34,0,0,398,392,0,0,37,0],[0,0,0,395,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,0,0,0,213,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,210,0,0],[0,0,0,0,0,461,461,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,462,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,97,201,404,0,33,0,34,0,0,0,99,0,0,0,0],[0,0,0,0,463,0,0,0,33,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,318,406,406,8,9,0,10,0,0,0,322,0,0,16,0],[0,0,0,0,409,44,44,8,9,0,0,0,0,0,409,0,0,0,0],[0,0,0,464,465,466,467,8,9,0,10,0,0,468,469,0,0,16,0],[0,407,0,470,0,123,123,8,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,0,0,121,471,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,472,465,473,474,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,0,0,0,0,239,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,236,0,0],[0,0,0,0,0,0,476,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,479,0,0,0,137,480,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,418,481,0,0,0,0],[0,0,0,414,415,416,478,57,58,0,59,0,0,418,419,0,0,62,0],[0,0,0,414,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,482,151,0,0,137,480,0,58,0,59,0,0,0,139,0,482,0,0],[0,337,0,0,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,337,0,420,0,246,246,0,58,0,59,0,0,0,139,0,337,0,0],[0,0,0,477,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,425,481,0,0,0,0],[0,0,0,422,415,423,478,57,58,0,59,0,0,425,419,0,0,62,0],[0,0,0,422,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,0,0,0,258,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0],[0,0,0,0,0,483,483,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,137,246,431,0,58,0,59,0,0,0,139,0,0,0,0],[0,0,0,0,485,0,0,0,58,0,0,0,0,0,0,0,0,0,0],[0,0,0,444,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,435,225,0,0,0,0],[0,0,0,432,116,433,445,8,161,0,162,0,0,435,120,0,0,16,0],[0,0,0,432,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,0,486,486,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,487,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,439,440,441,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,440,440,442,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,489,488,488,442,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,490,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,495,0,496,497,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,0,116,445,445,8,161,0,162,0,0,0,120,0,0,16,0],[0,0,0,0,225,44,44,8,161,0,0,0,0,0,225,0,0,0,0],[0,0,0,0,370,447,447,22,23,0,24,0,0,0,374,0,0,27,0],[0,0,0,0,450,80,80,22,23,0,0,0,0,0,450,0,0,0,0],[0,0,0,499,500,501,502,22,23,0,24,0,0,503,504,0,0,27,0],[0,448,0,505,0,177,177,22,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,0,0,175,506,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,507,500,508,509,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,0,0,0,0,295,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,292,0,0],[0,0,0,0,0,0,511,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,388,456,456,32,33,0,34,0,0,0,392,0,0,37,0],[0,0,0,0,459,101,101,32,33,0,0,0,0,0,459,0,0,0,0],[0,0,0,512,513,514,515,32,33,0,34,0,0,516,517,0,0,37,0],[0,457,0,518,0,203,203,32,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,0,0,201,519,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,520,513,521,522,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,0,0,0,0,315,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,312,0,0],[0,0,0,0,0,0,524,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,527,0,0,0,40,528,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,468,529,0,0,0,0],[0,0,0,464,465,466,526,8,9,0,10,0,0,468,469,0,0,16,0],[0,0,0,464,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,530,64,0,0,40,528,0,9,0,10,0,0,0,42,0,530,0,0],[0,407,0,0,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,407,0,470,0,121,121,0,9,0,10,0,0,0,42,0,407,0,0],[0,0,0,525,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,475,529,0,0,0,0],[0,0,0,472,465,473,526,8,9,0,10,0,0,475,469,0,0,16,0],[0,0,0,472,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,40,0,0],[0,0,0,0,415,478,478,57,58,0,59,0,0,0,419,0,0,62,0],[0,0,0,0,481,141,141,57,58,0,0,0,0,0,481,0,0,0,0],[0,0,0,531,532,533,534,57,58,0,59,0,0,535,536,0,0,62,0],[0,479,0,537,0,248,248,57,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,0,0,246,538,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,539,532,540,541,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,0,0,0,0,353,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,350,0,0],[0,0,0,0,0,0,543,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,361,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,358,0,0],[0,0,0,0,0,544,544,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,545,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,491,492,493,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,492,492,494,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,547,546,546,494,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,548,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,274,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,161,0,0,0,0,498,0,0,0,0,0],[0,0,0,495,0,496,368,0,161,0,162,0,0,498,0,0,0,0,0],[0,0,0,495,0,368,368,0,161,0,162,0,0,0,0,0,0,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,553,0,0,0,76,554,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,503,555,0,0,0,0],[0,0,0,499,500,501,552,22,23,0,24,0,0,503,504,0,0,27,0],[0,0,0,499,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,556,90,0,0,76,554,0,23,0,24,0,0,0,78,0,556,0,0],[0,448,0,0,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,448,0,505,0,175,175,0,23,0,24,0,0,0,78,0,448,0,0],[0,0,0,551,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,510,555,0,0,0,0],[0,0,0,507,500,508,552,22,23,0,24,0,0,510,504,0,0,27,0],[0,0,0,507,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,76,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,559,0,0,0,97,560,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,516,561,0,0,0,0],[0,0,0,512,513,514,558,32,33,0,34,0,0,516,517,0,0,37,0],[0,0,0,512,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,562,111,0,0,97,560,0,33,0,34,0,0,0,99,0,562,0,0],[0,457,0,0,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,457,0,518,0,201,201,0,33,0,34,0,0,0,99,0,457,0,0],[0,0,0,557,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,523,561,0,0,0,0],[0,0,0,520,513,521,558,32,33,0,34,0,0,523,517,0,0,37,0],[0,0,0,520,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,97,0,0],[0,0,0,0,465,526,526,8,9,0,10,0,0,0,469,0,0,16,0],[0,0,0,0,529,44,44,8,9,0,0,0,0,0,529,0,0,0,0],[0,0,0,563,66,564,565,8,9,0,10,0,0,566,68,0,0,16,0],[0,527,0,567,0,123,123,8,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,0,0,121,568,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,569,66,570,571,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,575,0,0,0,137,576,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,535,577,0,0,0,0],[0,0,0,531,532,533,574,57,58,0,59,0,0,535,536,0,0,62,0],[0,0,0,531,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,578,151,0,0,137,576,0,58,0,59,0,0,0,139,0,578,0,0],[0,479,0,0,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,479,0,537,0,246,246,0,58,0,59,0,0,0,139,0,479,0,0],[0,0,0,573,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,542,577,0,0,0,0],[0,0,0,539,532,540,574,57,58,0,59,0,0,542,536,0,0,62,0],[0,0,0,539,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,137,0,0],[0,0,0,0,0,0,0,442,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,439,0,0],[0,0,0,0,0,579,579,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,580,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,549,368,550,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,0,368,368,0,161,0,162,0,0,0,362,0,0,0,0],[0,0,0,0,581,0,0,0,161,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,500,552,552,22,23,0,24,0,0,0,504,0,0,27,0],[0,0,0,0,555,80,80,22,23,0,0,0,0,0,555,0,0,0,0],[0,0,0,582,91,583,584,22,23,0,24,0,0,585,93,0,0,27,0],[0,553,0,586,0,177,177,22,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,0,0,175,587,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,588,91,589,590,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,0,513,558,558,32,33,0,34,0,0,0,517,0,0,37,0],[0,0,0,0,561,101,101,32,33,0,0,0,0,0,561,0,0,0,0],[0,0,0,592,112,593,594,32,33,0,34,0,0,595,114,0,0,37,0],[0,559,0,596,0,203,203,32,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,0,0,201,597,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,598,112,599,600,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,566,165,0,0,0,0],[0,0,0,563,66,564,67,8,9,0,10,0,0,566,68,0,0,16,0],[0,0,0,563,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,527,0,0,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,527,0,567,0,121,121,0,9,0,10,0,0,0,42,0,527,0,0],[0,0,0,602,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,165,44,44,8,9,0,0,0,0,572,165,0,0,0,0],[0,0,0,569,66,570,67,8,9,0,10,0,0,572,68,0,0,16,0],[0,0,0,569,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,0,532,574,574,57,58,0,59,0,0,0,536,0,0,62,0],[0,0,0,0,577,141,141,57,58,0,0,0,0,0,577,0,0,0,0],[0,0,0,603,152,604,605,57,58,0,59,0,0,606,154,0,0,62,0],[0,575,0,607,0,248,248,57,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,0,0,246,608,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,609,152,610,611,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,0,0,0,0,494,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,491,0,0],[0,0,0,0,0,0,613,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,585,194,0,0,0,0],[0,0,0,582,91,583,92,22,23,0,24,0,0,585,93,0,0,27,0],[0,0,0,582,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,553,0,0,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,553,0,586,0,175,175,0,23,0,24,0,0,0,78,0,553,0,0],[0,0,0,614,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,194,80,80,22,23,0,0,0,0,591,194,0,0,0,0],[0,0,0,588,91,589,92,22,23,0,24,0,0,591,93,0,0,27,0],[0,0,0,588,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,595,220,0,0,0,0],[0,0,0,592,112,593,113,32,33,0,34,0,0,595,114,0,0,37,0],[0,0,0,592,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,559,0,0,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,559,0,596,0,201,201,0,33,0,34,0,0,0,99,0,559,0,0],[0,0,0,615,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,220,101,101,32,33,0,0,0,0,601,220,0,0,0,0],[0,0,0,598,112,599,113,32,33,0,34,0,0,601,114,0,0,37,0],[0,0,0,598,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,66,67,67,8,9,0,10,0,0,0,68,0,0,16,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,606,265,0,0,0,0],[0,0,0,603,152,604,153,57,58,0,59,0,0,606,154,0,0,62,0],[0,0,0,603,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,575,0,0,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,575,0,607,0,246,246,0,58,0,59,0,0,0,139,0,575,0,0],[0,0,0,616,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,265,141,141,57,58,0,0,0,0,612,265,0,0,0,0],[0,0,0,609,152,610,153,57,58,0,59,0,0,612,154,0,0,62,0],[0,0,0,609,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,549,0,0],[0,0,0,0,91,92,92,22,23,0,24,0,0,0,93,0,0,27,0],[0,0,0,0,112,113,113,32,33,0,34,0,0,0,114,0,0,37,0],[0,0,0,0,152,153,153,57,58,0,59,0,0,0,154,0,0,62,0]],"accepting":[false,true,true,true,true,true,false,false,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,false,false,true,true,true,true,true,true,true,true,true,true,false,true,true,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,false,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,true,true,true,false,true,false,true,true,false,false,true,true,true,true,true,true,true,false,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,true,false,true,false,true,true,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,false,true,false,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,true,true,true,false,true,true,false,false,false,false,true,true,false,false,true,true,true,false,true,true,false,false,true,false,true,true,false,true,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,true,true,false,false,false,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,true,false,true,false,true,true,false,false,true,true,false,false,true,true,true,false,true,false,true,true,true,true,false,false,false,true,false,true,true,true,true,false,false,false,true,true,false,true,true,true,true,true,true,false,true,true,false,true,false,true,true,true,true,false,false,false,false,false,false,false,true,true,false,false,true,true,false,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,true,true,false,true,true,true,true,true,true,false,true,true,false,true,false,true,true,true,true,true,true,false,true,true,true,true,true,true,false,true,true,false,false,false,false,false,true,true,false,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,true,true,true,false,true,true,true,false,true,true,true,true,false,false,false,true,false,true,true,true,true,true,false,true,true,true,false,true,true,true,true,true,false,true,true,true,true,false,true,true,true,true,true,false,true,true,false,true,true,true],"tags":[[],["broken_cluster"],["consonant_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["broken_cluster"],["broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],[],["broken_cluster"],["symbol_cluster"],[],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["symbol_cluster"],["symbol_cluster"],["symbol_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],["broken_cluster"],[],[],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["broken_cluster"],["symbol_cluster"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],["consonant_syllable"],[],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],["vowel_syllable"],[],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],[],[],[],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],["standalone_cluster"],[],[],["standalone_cluster"],["standalone_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],[],[],[],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],[],[],[],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],[],[],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],["standalone_cluster"],[],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],[],[],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],[],[],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],[],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],[],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],[],[],[],[],["consonant_syllable","broken_cluster"],["consonant_syllable","broken_cluster"],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],[],[],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],["consonant_syllable"],[],["consonant_syllable"],["consonant_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],["vowel_syllable"],[],["vowel_syllable"],["vowel_syllable"],["broken_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],["standalone_cluster"],[],["standalone_cluster"],["standalone_cluster"],[],["consonant_syllable"],["vowel_syllable"],["standalone_cluster"]]}');var Su={};Su=JSON.parse('{"categories":["O","IND","S","GB","B","FM","CGJ","VMAbv","VMPst","VAbv","VPst","CMBlw","VPre","VBlw","H","VMBlw","CMAbv","MBlw","CS","R","SUB","MPst","MPre","FAbv","FPst","FBlw","null","SMAbv","SMBlw","VMPre","ZWNJ","ZWJ","WJ","M","VS","N","HN","MAbv"],"decompositions":{"2507":[2503,2494],"2508":[2503,2519],"2888":[2887,2902],"2891":[2887,2878],"2892":[2887,2903],"3018":[3014,3006],"3019":[3015,3006],"3020":[3014,3031],"3144":[3142,3158],"3264":[3263,3285],"3271":[3270,3285],"3272":[3270,3286],"3274":[3270,3266],"3275":[3270,3266,3285],"3402":[3398,3390],"3403":[3399,3390],"3404":[3398,3415],"3546":[3545,3530],"3548":[3545,3535],"3549":[3545,3535,3530],"3550":[3545,3551],"3635":[3661,3634],"3763":[3789,3762],"3955":[3953,3954],"3957":[3953,3956],"3958":[4018,3968],"3959":[4018,3953,3968],"3960":[4019,3968],"3961":[4019,3953,3968],"3969":[3953,3968],"6971":[6970,6965],"6973":[6972,6965],"6976":[6974,6965],"6977":[6975,6965],"6979":[6978,6965],"69934":[69937,69927],"69935":[69938,69927],"70475":[70471,70462],"70476":[70471,70487],"70843":[70841,70842],"70844":[70841,70832],"70846":[70841,70845],"71098":[71096,71087],"71099":[71097,71087]},"stateTable":[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[2,2,3,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,17,18,11,19,20,21,22,0,0,0,23,0,0,2,0,0,24,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,27,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,39,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,9,0,0,12,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,0,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,4,4,5,0,6,7,8,9,10,11,12,13,14,15,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,49,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,22,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,0,0,0,0,0,0,14,0,0,0,0,0,0,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0],[0,0,0,0,0,5,0,6,7,8,9,0,11,12,0,14,0,16,0,0,0,11,0,20,21,22,0,0,0,23,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,27,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,33,0,0,36,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,34,35,36,37,38,39,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,0,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,53,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,43,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,45,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,0,0,0,0,0,0,38,0,0,0,0,0,0,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,29,0,30,31,32,33,0,35,36,0,38,0,40,0,0,0,35,0,43,44,45,0,0,0,46,0,0,0,0,0,0,0,0],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,0,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,5,0,6,7,8,9,48,11,12,13,14,48,16,0,0,18,11,19,20,21,22,0,0,0,23,0,0,0,0,0,0,0,25],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,51,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,0,0],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,0,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,29,0,30,31,32,33,52,35,36,37,38,52,40,0,0,41,35,42,43,44,45,0,0,0,46,0,0,0,0,0,0,0,47],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,50,0,51,0]],"accepting":[false,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true],"tags":[[],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],[],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["broken_cluster"],["independent_cluster"],["symbol_cluster"],["symbol_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["virama_terminated_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["standard_cluster"],["broken_cluster"],["broken_cluster"],["numeral_cluster"],["number_joiner_terminated_cluster"],["standard_cluster"],["standard_cluster"],["numeral_cluster"]]}');var je={X:1,C:2,V:4,N:8,H:16,ZWNJ:32,ZWJ:64,M:128,Placeholder:2048,Dotted_Circle:4096,RS:8192,Coeng:16384,Repha:32768,Ra:65536,CM:131072},Se={Start:1,Ra_To_Become_Reph:2,Pre_M:4,Pre_C:8,Base_C:16,After_Main:32,Before_Sub:128,Below_C:256,After_Sub:512,Before_Post:1024,Post_C:2048,After_Post:4096,Final_C:8192,SMVD:16384,End:32768},UB=je.C|je.Ra|je.CM|je.V|je.Placeholder|je.Dotted_Circle,tv=je.ZWJ|je.ZWNJ,tn=je.H|je.Coeng,iv={Default:{hasOldSpec:!1,virama:0,basePos:"Last",rephPos:Se.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Devanagari:{hasOldSpec:!0,virama:2381,basePos:"Last",rephPos:Se.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Bengali:{hasOldSpec:!0,virama:2509,basePos:"Last",rephPos:Se.After_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gurmukhi:{hasOldSpec:!0,virama:2637,basePos:"Last",rephPos:Se.Before_Sub,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Gujarati:{hasOldSpec:!0,virama:2765,basePos:"Last",rephPos:Se.Before_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Oriya:{hasOldSpec:!0,virama:2893,basePos:"Last",rephPos:Se.After_Main,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Tamil:{hasOldSpec:!0,virama:3021,basePos:"Last",rephPos:Se.After_Post,rephMode:"Implicit",blwfMode:"Pre_And_Post"},Telugu:{hasOldSpec:!0,virama:3149,basePos:"Last",rephPos:Se.After_Post,rephMode:"Explicit",blwfMode:"Post_Only"},Kannada:{hasOldSpec:!0,virama:3277,basePos:"Last",rephPos:Se.After_Post,rephMode:"Implicit",blwfMode:"Post_Only"},Malayalam:{hasOldSpec:!0,virama:3405,basePos:"Last",rephPos:Se.After_Main,rephMode:"Log_Repha",blwfMode:"Pre_And_Post"},Khmer:{hasOldSpec:!1,virama:6098,basePos:"First",rephPos:Se.Ra_To_Become_Reph,rephMode:"Vis_Repha",blwfMode:"Pre_And_Post"}},jB={6078:[6081,6078],6079:[6081,6079],6080:[6081,6080],6084:[6081,6084],6085:[6081,6085]},{decompositions:GB}=su(Su),av=new Rc.default(ef("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")),WB=new Jy.default(su(ev)),It=class extends Ra{static planFeatures(e){e.addStage(YB),e.addStage(["locl","ccmp"]),e.addStage(XB),e.addStage("nukt"),e.addStage("akhn"),e.addStage("rphf",!1),e.addStage("rkrf"),e.addStage("pref",!1),e.addStage("blwf",!1),e.addStage("abvf",!1),e.addStage("half",!1),e.addStage("pstf",!1),e.addStage("vatu"),e.addStage("cjct"),e.addStage("cfar",!1),e.addStage(HB),e.addStage({local:["init"],global:["pres","abvs","blws","psts","haln","dist","abvm","blwm","calt","clig"]}),e.unicodeScript=RN(e.script),e.indicConfig=iv[e.unicodeScript]||iv.Default,e.isOldSpec=e.indicConfig.hasOldSpec&&e.script[e.script.length-1]!=="2"}static assignFeatures(e,t){for(let i=t.length-1;i>=0;i--){let r=t[i].codePoints[0],a=jB[r]||GB[r];if(a){let s=a.map(n=>{let o=e.font.glyphForCodePoint(n);return new ua(e.font,o.id,[n],t[i].features)});t.splice(i,1,...s)}}}};ui(It,"zeroMarkWidths","NONE");function cf(e){return av.get(e.codePoints[0])>>8}function rv(e){return 1<<(av.get(e.codePoints[0])&255)}var Nu=class{constructor(e,t,i,r){this.category=e,this.position=t,this.syllableType=i,this.syllable=r}};function YB(e,t){let i=0,r=0;for(let[a,s,n]of WB.match(t.map(cf))){if(a>r){++i;for(let o=r;o<a;o++)t[o].shaperInfo=new Nu(je.X,Se.End,"non_indic_cluster",i)}++i;for(let o=a;o<=s;o++)t[o].shaperInfo=new Nu(1<<cf(t[o]),rv(t[o]),n[0],i);r=s+1}if(r<t.length){++i;for(let a=r;a<t.length;a++)t[a].shaperInfo=new Nu(je.X,Se.End,"non_indic_cluster",i)}}function fr(e){return e.shaperInfo.category&UB}function Xi(e){return e.shaperInfo.category&tv}function ca(e){return e.shaperInfo.category&tn}function fa(e,t){for(let r of e)r.features={[t]:!0};return e[0]._font._layoutEngine.engine.GSUBProcessor.applyFeatures([t],e),e.length===1}function KB(e,t,i){let r=[i,t,i];return fa(r.slice(0,2),"blwf")||fa(r.slice(1,3),"blwf")?Se.Below_C:fa(r.slice(0,2),"pstf")||fa(r.slice(1,3),"pstf")||fa(r.slice(0,2),"pref")||fa(r.slice(1,3),"pref")?Se.Post_C:Se.Base_C}function XB(e,t,i){let r=i.indicConfig,a=e._layoutEngine.engine.GSUBProcessor.features,s=e.glyphForCodePoint(9676).id,n=e.glyphForCodePoint(r.virama).id;if(n){let o=new ua(e,n,[r.virama]);for(let u=0;u<t.length;u++)t[u].shaperInfo.position===Se.Base_C&&(t[u].shaperInfo.position=KB(e,t[u].copy(),o))}for(let o=0,u=Bu(t,0);o<t.length;o=u,u=Bu(t,o)){let{category:l,syllableType:c}=t[o].shaperInfo;if(c==="symbol_cluster"||c==="non_indic_cluster")continue;if(c==="broken_cluster"&&s){let b=new ua(e,s,[9676]);b.shaperInfo=new Nu(1<<cf(b),rv(b),t[o].shaperInfo.syllableType,t[o].shaperInfo.syllable);let x=o;for(;x<u&&t[x].shaperInfo.category===je.Repha;)x++;t.splice(x++,0,b),u++}let f=u,h=o,g=!1;if(r.rephPos!==Se.Ra_To_Become_Reph&&a.rphf&&o+3<=u&&(r.rephMode==="Implicit"&&!Xi(t[o+2])||r.rephMode==="Explicit"&&t[o+2].shaperInfo.category===je.ZWJ)){let b=[t[o].copy(),t[o+1].copy(),t[o+2].copy()];if(fa(b.slice(0,2),"rphf")||r.rephMode==="Explicit"&&fa(b,"rphf")){for(h+=2;h<u&&Xi(t[h]);)h++;f=o,g=!0}}else if(r.rephMode==="Log_Repha"&&t[o].shaperInfo.category===je.Repha){for(h++;h<u&&Xi(t[h]);)h++;f=o,g=!0}switch(r.basePos){case"Last":{let b=u,x=!1;do{let D=t[--b].shaperInfo;if(fr(t[b])){if(D.position!==Se.Below_C&&(D.position!==Se.Post_C||x)){f=b;break}D.position===Se.Below_C&&(x=!0),f=b}else if(o<b&&D.category===je.ZWJ&&t[b-1].shaperInfo.category===je.H)break}while(b>h);break}case"First":f=o;for(let b=f+1;b<u;b++)fr(t[b])&&(t[b].shaperInfo.position=Se.Below_C)}g&&f===o&&h-f<=2&&(g=!1);for(let b=o;b<f;b++){let x=t[b].shaperInfo;x.position=Math.min(Se.Pre_C,x.position)}f<u&&(t[f].shaperInfo.position=Se.Base_C);for(let b=f+1;b<u;b++)if(t[b].shaperInfo.category===je.M){for(let x=b+1;x<u;x++)if(fr(t[x])){t[x].shaperInfo.position=Se.Final_C;break}break}if(g&&(t[o].shaperInfo.position=Se.Ra_To_Become_Reph),i.isOldSpec){let b=i.unicodeScript!=="Malayalam";for(let x=f+1;x<u;x++)if(t[x].shaperInfo.category===je.H){let D;for(D=u-1;D>x&&!(fr(t[D])||b&&t[D].shaperInfo.category===je.H);D--);if(t[D].shaperInfo.category!==je.H&&D>x){let w=t[x];t.splice(x,0,...t.splice(x+1,D-x)),t[D]=w}break}}let p=Se.Start;for(let b=o;b<u;b++){let x=t[b].shaperInfo;if(x.category&(tv|je.N|je.RS|je.CM|tn&x.category)){if(x.position=p,x.category===je.H&&x.position===Se.Pre_M){for(let D=b;D>o;D--)if(t[D-1].shaperInfo.position!==Se.Pre_M){x.position=t[D-1].shaperInfo.position;break}}}else x.position!==Se.SMVD&&(p=x.position)}let v=f;for(let b=f+1;b<u;b++)if(fr(t[b])){for(let x=v+1;x<b;x++)t[x].shaperInfo.position<Se.SMVD&&(t[x].shaperInfo.position=t[b].shaperInfo.position);v=b}else t[b].shaperInfo.category===je.M&&(v=b);let k=t.slice(o,u);k.sort((b,x)=>b.shaperInfo.position-x.shaperInfo.position),t.splice(o,k.length,...k);for(let b=o;b<u;b++)if(t[b].shaperInfo.position===Se.Base_C){f=b;break}for(let b=o;b<u&&t[b].shaperInfo.position===Se.Ra_To_Become_Reph;b++)t[b].features.rphf=!0;let C=!i.isOldSpec&&r.blwfMode==="Pre_And_Post";for(let b=o;b<f;b++)t[b].features.half=!0,C&&(t[b].features.blwf=!0);for(let b=f+1;b<u;b++)t[b].features.abvf=!0,t[b].features.pstf=!0,t[b].features.blwf=!0;if(i.isOldSpec&&i.unicodeScript==="Devanagari")for(let b=o;b+1<f;b++)t[b].shaperInfo.category===je.Ra&&t[b+1].shaperInfo.category===je.H&&(b+1===f||t[b+2].shaperInfo.category===je.ZWJ)&&(t[b].features.blwf=!0,t[b+1].features.blwf=!0);let P=2;if(a.pref&&f+P<u)for(let b=f+1;b+P-1<u;b++){let x=[t[b].copy(),t[b+1].copy()];if(fa(x,"pref")){for(let D=0;D<P;D++)t[b++].features.pref=!0;if(a.cfar)for(;b<u;b++)t[b].features.cfar=!0;break}}for(let b=o+1;b<u;b++)if(Xi(t[b])){let x=t[b].shaperInfo.category===je.ZWNJ,D=b;do D--,x&&delete t[D].features.half;while(D>o&&!fr(t[D]))}}}function HB(e,t,i){let r=i.indicConfig,a=e._layoutEngine.engine.GSUBProcessor.features;for(let s=0,n=Bu(t,0);s<t.length;s=n,n=Bu(t,s)){let o=!!a.pref,u=s;for(;u<n;u++)if(t[u].shaperInfo.position>=Se.Base_C){if(o&&u+1<n){for(let l=u+1;l<n;l++)if(t[l].features.pref){if(!(t[l].substituted&&t[l].isLigated&&!t[l].isMultiplied)){for(u=l;u<n&&ca(t[u]);)u++;t[u].shaperInfo.position=Se.BASE_C,o=!1}break}}if(i.unicodeScript==="Malayalam")for(let l=u+1;l<n;l++){for(;l<n&&Xi(t[l]);)l++;if(l===n||!ca(t[l]))break;for(l++;l<n&&Xi(t[l]);)l++;l<n&&fr(t[l])&&t[l].shaperInfo.position===Se.Below_C&&(u=l,t[u].shaperInfo.position=Se.Base_C)}s<u&&t[u].shaperInfo.position>Se.Base_C&&u--;break}if(u===n&&s<u&&t[u-1].shaperInfo.category===je.ZWJ&&u--,u<n)for(;s<u&&t[u].shaperInfo.category&(je.N|tn);)u--;if(s+1<n&&s<u){let l=u===n?u-2:u-1;if(i.unicodeScript!=="Malayalam"&&i.unicodeScript!=="Tamil"){for(;l>s&&!(t[l].shaperInfo.category&(je.M|tn));)l--;ca(t[l])&&t[l].shaperInfo.position!==Se.Pre_M?l+1<n&&Xi(t[l+1])&&l++:l=s}if(s<l&&t[l].shaperInfo.position!==Se.Pre_M){for(let c=l;c>s;c--)if(t[c-1].shaperInfo.position===Se.Pre_M){let f=c-1;f<u&&u<=l&&u--;let h=t[f];t.splice(f,0,...t.splice(f+1,l-f)),t[l]=h,l--}}}if(s+1<n&&t[s].shaperInfo.position===Se.Ra_To_Become_Reph&&t[s].shaperInfo.category===je.Repha!==(t[s].isLigated&&!t[s].isMultiplied)){let l,c=r.rephPos,f=!1;if(c!==Se.After_Post){for(l=s+1;l<u&&!ca(t[l]);)l++;if(l<u&&ca(t[l])&&(l+1<u&&Xi(t[l+1])&&l++,f=!0),!f&&c===Se.After_Main){for(l=u;l+1<n&&t[l+1].shaperInfo.position<=Se.After_Main;)l++;f=l<n}if(!f&&c===Se.After_Sub){for(l=u;l+1<n&&!(t[l+1].shaperInfo.position&(Se.Post_C|Se.After_Post|Se.SMVD));)l++;f=l<n}}if(!f){for(l=s+1;l<u&&!ca(t[l]);)l++;l<u&&ca(t[l])&&(l+1<u&&Xi(t[l+1])&&l++,f=!0)}if(!f){for(l=n-1;l>s&&t[l].shaperInfo.position===Se.SMVD;)l--;if(ca(t[l]))for(let g=u+1;g<l;g++)t[g].shaperInfo.category===je.M&&l--}let h=t[s];t.splice(s,0,...t.splice(s+1,l-s)),t[l]=h,s<u&&u<=l&&u--}if(o&&u+1<n){for(let l=u+1;l<n;l++)if(t[l].features.pref){if(t[l].isLigated&&!t[l].isMultiplied){let c=u;if(i.unicodeScript!=="Malayalam"&&i.unicodeScript!=="Tamil"){for(;c>s&&!(t[c-1].shaperInfo.category&(je.M|tn));)c--;if(c>s&&t[c-1].shaperInfo.category===je.M){let g=l;for(let p=u+1;p<g;p++)if(t[p].shaperInfo.category===je.M){c--;break}}}c>s&&ca(t[c-1])&&c<n&&Xi(t[c])&&c++;let f=l,h=t[f];t.splice(c+1,0,...t.splice(c,f-c)),t[c]=h,c<=u&&u<f&&u++}break}}t[s].shaperInfo.position===Se.Pre_M&&(!s||!/Cf|Mn/.test(ru(t[s-1].codePoints[0])))&&(t[s].features.init=!0)}}function Bu(e,t){if(t>=e.length)return t;let i=e[t].shaperInfo.syllable;for(;++t<e.length&&e[t].shaperInfo.syllable===i;);return t}var{categories:JB,decompositions:sv}=su(Su),qB=new Rc.default(ef("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")),QB=new Jy.default(su(Su)),$e=class extends Ra{static planFeatures(e){e.addStage(tF),e.addStage(["locl","ccmp","nukt","akhn"]),e.addStage(ov),e.addStage(["rphf"],!1),e.addStage(iF),e.addStage(ov),e.addStage(["pref"]),e.addStage(aF),e.addStage(["rkrf","abvf","blwf","half","pstf","vatu","cjct"]),e.addStage(rF),e.addStage(["abvs","blws","pres","psts","dist","abvm","blwm"])}static assignFeatures(e,t){for(let i=t.length-1;i>=0;i--){let r=t[i].codePoints[0];if(sv[r]){let a=sv[r].map(s=>{let n=e.font.glyphForCodePoint(s);return new ua(e.font,n.id,[s],t[i].features)});t.splice(i,1,...a)}}}};ui($e,"zeroMarkWidths","BEFORE_GPOS");function nv(e){return qB.get(e.codePoints[0])}var eF=class{constructor(e,t,i){this.category=e,this.syllableType=t,this.syllable=i}};function tF(e,t){let i=0;for(let[r,a,s]of QB.match(t.map(nv))){++i;for(let o=r;o<=a;o++)t[o].shaperInfo=new eF(JB[nv(t[o])],s[0],i);let n=t[r].shaperInfo.category==="R"?1:Math.min(3,a-r);for(let o=r;o<r+n;o++)t[o].features.rphf=!0}}function ov(e,t){for(let i of t)i.substituted=!1}function iF(e,t){for(let i of t)i.substituted&&i.features.rphf&&(i.shaperInfo.category="R")}function aF(e,t){for(let i of t)i.substituted&&(i.shaperInfo.category="VPre")}function rF(e,t){let i=e.glyphForCodePoint(9676).id;for(let r=0,a=uv(t,0);r<t.length;r=a,a=uv(t,r)){let s,n,o=t[r].shaperInfo,u=o.syllableType;if(!(u!=="virama_terminated_cluster"&&u!=="standard_cluster"&&u!=="broken_cluster")){if(u==="broken_cluster"&&i){let l=new ua(e,i,[9676]);for(l.shaperInfo=o,s=r;s<a&&t[s].shaperInfo.category==="R";s++);t.splice(++s,0,l),a++}if(o.category==="R"&&a-r>1){for(s=r+1;s<a;s++)if(o=t[s].shaperInfo,lv(o)||Fu(t[s])){Fu(t[s])&&s--,t.splice(r,0,...t.splice(r+1,s-r),t[s]);break}}for(s=r,n=a;s<a;s++)o=t[s].shaperInfo,lv(o)||Fu(t[s])?n=Fu(t[s])?s+1:s:(o.category==="VPre"||o.category==="VMPre")&&n<s&&t.splice(n,1,t[s],...t.splice(n,s-n))}}}function uv(e,t){if(t>=e.length)return t;let i=e[t].shaperInfo.syllable;for(;++t<e.length&&e[t].shaperInfo.syllable===i;);return t}function Fu(e){return e.shaperInfo.category==="H"&&!e.isLigated}function lv(e){return e.category==="B"||e.category==="GB"}var sF={arab:Za,mong:Za,syrc:Za,"nko ":Za,phag:Za,mand:Za,mani:Za,phlp:Za,hang:Xb,bng2:It,beng:It,dev2:It,deva:It,gjr2:It,gujr:It,guru:It,gur2:It,knda:It,knd2:It,mlm2:It,mlym:It,ory2:It,orya:It,taml:It,tml2:It,telu:It,tel2:It,khmr:It,bali:$e,batk:$e,brah:$e,bugi:$e,buhd:$e,cakm:$e,cham:$e,dupl:$e,egyp:$e,gran:$e,hano:$e,java:$e,kthi:$e,kali:$e,khar:$e,khoj:$e,sind:$e,lepc:$e,limb:$e,mahj:$e,mtei:$e,modi:$e,hmng:$e,rjng:$e,saur:$e,shrd:$e,sidd:$e,sinh:It,sund:$e,sylo:$e,tglg:$e,tagb:$e,tale:$e,lana:$e,tavt:$e,takr:$e,tibt:$e,tfng:$e,tirh:$e,latn:Ra,DFLT:Ra};function nF(e){Array.isArray(e)||(e=[e]);for(let t of e){let i=sF[t];if(i)return i}return Ra}var oF=class extends Cu{applyLookup(e,t){switch(e){case 1:{let r=this.coverageIndex(t.coverage);if(r===-1)return!1;let a=this.glyphIterator.cur;switch(t.version){case 1:a.id=a.id+t.deltaGlyphID&65535;break;case 2:a.id=t.substitute.get(r);break}return!0}case 2:{let r=this.coverageIndex(t.coverage);if(r!==-1){let a=t.sequences.get(r);if(a.length===0)return this.glyphs.splice(this.glyphIterator.index,1),!0;this.glyphIterator.cur.id=a[0],this.glyphIterator.cur.ligatureComponent=0;let s=this.glyphIterator.cur.features,n=this.glyphIterator.cur,o=a.slice(1).map((u,l)=>{let c=new ua(this.font,u,void 0,s);return c.shaperInfo=n.shaperInfo,c.isLigated=n.isLigated,c.ligatureComponent=l+1,c.substituted=!0,c.isMultiplied=!0,c});return this.glyphs.splice(this.glyphIterator.index+1,0,...o),!0}return!1}case 3:{let r=this.coverageIndex(t.coverage);if(r!==-1){let a=0;return this.glyphIterator.cur.id=t.alternateSet.get(r)[a],!0}return!1}case 4:{let r=this.coverageIndex(t.coverage);if(r===-1)return!1;for(let a of t.ligatureSets.get(r)){let s=this.sequenceMatchIndices(1,a.components);if(!s)continue;let n=this.glyphIterator.cur,o=n.codePoints.slice();for(let p of s)o.push(...this.glyphs[p].codePoints);let u=new ua(this.font,a.glyph,o,n.features);u.shaperInfo=n.shaperInfo,u.isLigated=!0,u.substituted=!0;let l=n.isMark;for(let p=0;p<s.length&&l;p++)l=this.glyphs[s[p]].isMark;u.ligatureID=l?null:this.ligatureID++;let c=n.ligatureID,f=n.codePoints.length,h=f,g=this.glyphIterator.index+1;for(let p of s){if(l)g=p;else for(;g<p;){var i=h-f+Math.min(this.glyphs[g].ligatureComponent||1,f);this.glyphs[g].ligatureID=u.ligatureID,this.glyphs[g].ligatureComponent=i,g++}c=this.glyphs[g].ligatureID,f=this.glyphs[g].codePoints.length,h+=f,g++}if(c&&!l)for(let p=g;p<this.glyphs.length&&this.glyphs[p].ligatureID===c;p++){var i=h-f+Math.min(this.glyphs[p].ligatureComponent||1,f);this.glyphs[p].ligatureComponent=i}for(let p=s.length-1;p>=0;p--)this.glyphs.splice(s[p],1);return this.glyphs[this.glyphIterator.index]=u,!0}return!1}case 5:return this.applyContext(t);case 6:return this.applyChainingContext(t);case 7:return this.applyLookup(t.lookupType,t.extension);default:throw new Error(`GSUB lookupType ${e} is not supported`)}}},uF=class extends Cu{applyPositionValue(e,t){let i=this.positions[this.glyphIterator.peekIndex(e)];t.xAdvance!=null&&(i.xAdvance+=t.xAdvance),t.yAdvance!=null&&(i.yAdvance+=t.yAdvance),t.xPlacement!=null&&(i.xOffset+=t.xPlacement),t.yPlacement!=null&&(i.yOffset+=t.yPlacement);let r=this.font._variationProcessor,a=this.font.GDEF&&this.font.GDEF.itemVariationStore;r&&a&&(t.xPlaDevice&&(i.xOffset+=r.getDelta(a,t.xPlaDevice.a,t.xPlaDevice.b)),t.yPlaDevice&&(i.yOffset+=r.getDelta(a,t.yPlaDevice.a,t.yPlaDevice.b)),t.xAdvDevice&&(i.xAdvance+=r.getDelta(a,t.xAdvDevice.a,t.xAdvDevice.b)),t.yAdvDevice&&(i.yAdvance+=r.getDelta(a,t.yAdvDevice.a,t.yAdvDevice.b)))}applyLookup(e,t){switch(e){case 1:{let r=this.coverageIndex(t.coverage);if(r===-1)return!1;switch(t.version){case 1:this.applyPositionValue(0,t.value);break;case 2:this.applyPositionValue(0,t.values.get(r));break}return!0}case 2:{let r=this.glyphIterator.peek();if(!r)return!1;let a=this.coverageIndex(t.coverage);if(a===-1)return!1;switch(t.version){case 1:let s=t.pairSets.get(a);for(let u of s)if(u.secondGlyph===r.id)return this.applyPositionValue(0,u.value1),this.applyPositionValue(1,u.value2),!0;return!1;case 2:let n=this.getClassID(this.glyphIterator.cur.id,t.classDef1),o=this.getClassID(r.id,t.classDef2);if(n===-1||o===-1)return!1;var i=t.classRecords.get(n).get(o);return this.applyPositionValue(0,i.value1),this.applyPositionValue(1,i.value2),!0}}case 3:{let r=this.glyphIterator.peekIndex(),a=this.glyphs[r];if(!a)return!1;let s=t.entryExitRecords[this.coverageIndex(t.coverage)];if(!s||!s.exitAnchor)return!1;let n=t.entryExitRecords[this.coverageIndex(t.coverage,a.id)];if(!n||!n.entryAnchor)return!1;let o=this.getAnchor(n.entryAnchor),u=this.getAnchor(s.exitAnchor),l=this.positions[this.glyphIterator.index],c=this.positions[r],f;switch(this.direction){case"ltr":l.xAdvance=u.x+l.xOffset,f=o.x+c.xOffset,c.xAdvance-=f,c.xOffset-=f;break;case"rtl":f=u.x+l.xOffset,l.xAdvance-=f,l.xOffset-=f,c.xAdvance=o.x+c.xOffset;break}return this.glyphIterator.flags.rightToLeft?(this.glyphIterator.cur.cursiveAttachment=r,l.yOffset=o.y-u.y):(a.cursiveAttachment=this.glyphIterator.index,l.yOffset=u.y-o.y),!0}case 4:{let r=this.coverageIndex(t.markCoverage);if(r===-1)return!1;let a=this.glyphIterator.index;for(;--a>=0&&(this.glyphs[a].isMark||this.glyphs[a].ligatureComponent>0););if(a<0)return!1;let s=this.coverageIndex(t.baseCoverage,this.glyphs[a].id);if(s===-1)return!1;let n=t.markArray[r],o=t.baseArray[s][n.class];return this.applyAnchor(n,o,a),!0}case 5:{let r=this.coverageIndex(t.markCoverage);if(r===-1)return!1;let a=this.glyphIterator.index;for(;--a>=0&&this.glyphs[a].isMark;);if(a<0)return!1;let s=this.coverageIndex(t.ligatureCoverage,this.glyphs[a].id);if(s===-1)return!1;let n=t.ligatureArray[s],o=this.glyphIterator.cur,u=this.glyphs[a],l=u.ligatureID&&u.ligatureID===o.ligatureID&&o.ligatureComponent>0?Math.min(o.ligatureComponent,u.codePoints.length)-1:u.codePoints.length-1,c=t.markArray[r],f=n[l][c.class];return this.applyAnchor(c,f,a),!0}case 6:{let r=this.coverageIndex(t.mark1Coverage);if(r===-1)return!1;let a=this.glyphIterator.peekIndex(-1),s=this.glyphs[a];if(!s||!s.isMark)return!1;let n=this.glyphIterator.cur,o=!1;if(n.ligatureID===s.ligatureID?n.ligatureID?n.ligatureComponent===s.ligatureComponent&&(o=!0):o=!0:(n.ligatureID&&!n.ligatureComponent||s.ligatureID&&!s.ligatureComponent)&&(o=!0),!o)return!1;let u=this.coverageIndex(t.mark2Coverage,s.id);if(u===-1)return!1;let l=t.mark1Array[r],c=t.mark2Array[u][l.class];return this.applyAnchor(l,c,a),!0}case 7:return this.applyContext(t);case 8:return this.applyChainingContext(t);case 9:return this.applyLookup(t.lookupType,t.extension);default:throw new Error(`Unsupported GPOS table: ${e}`)}}applyAnchor(e,t,i){let r=this.getAnchor(t),a=this.getAnchor(e.markAnchor);this.positions[i];let s=this.positions[this.glyphIterator.index];s.xOffset=r.x-a.x,s.yOffset=r.y-a.y,this.glyphIterator.cur.markAttachment=i}getAnchor(e){let t=e.xCoordinate,i=e.yCoordinate,r=this.font._variationProcessor,a=this.font.GDEF&&this.font.GDEF.itemVariationStore;return r&&a&&(e.xDeviceTable&&(t+=r.getDelta(a,e.xDeviceTable.a,e.xDeviceTable.b)),e.yDeviceTable&&(i+=r.getDelta(a,e.yDeviceTable.a,e.yDeviceTable.b))),{x:t,y:i}}applyFeatures(e,t,i){super.applyFeatures(e,t,i);for(var r=0;r<this.glyphs.length;r++)this.fixCursiveAttachment(r);this.fixMarkAttachment()}fixCursiveAttachment(e){let t=this.glyphs[e];if(t.cursiveAttachment!=null){let i=t.cursiveAttachment;t.cursiveAttachment=null,this.fixCursiveAttachment(i),this.positions[e].yOffset+=this.positions[i].yOffset}}fixMarkAttachment(){for(let e=0;e<this.glyphs.length;e++){let t=this.glyphs[e];if(t.markAttachment!=null){let i=t.markAttachment;if(this.positions[e].xOffset+=this.positions[i].xOffset,this.positions[e].yOffset+=this.positions[i].yOffset,this.direction==="ltr")for(let r=i;r<e;r++)this.positions[e].xOffset-=this.positions[r].xAdvance,this.positions[e].yOffset-=this.positions[r].yAdvance;else for(let r=i+1;r<e+1;r++)this.positions[e].xOffset+=this.positions[r].xAdvance,this.positions[e].yOffset+=this.positions[r].yAdvance}}}},lF=class{setup(e){this.glyphInfos=e.glyphs.map(i=>new ua(this.font,i.id,[...i.codePoints]));let t=null;this.GPOSProcessor&&(t=this.GPOSProcessor.selectScript(e.script,e.language,e.direction)),this.GSUBProcessor&&(t=this.GSUBProcessor.selectScript(e.script,e.language,e.direction)),this.shaper=nF(t),this.plan=new lB(this.font,t,e.direction),this.shaper.plan(this.plan,this.glyphInfos,e.features);for(let i in this.plan.allFeatures)e.features[i]=!0}substitute(e){this.GSUBProcessor&&(this.plan.process(this.GSUBProcessor,this.glyphInfos),e.glyphs=this.glyphInfos.map(t=>this.font.getGlyph(t.id,t.codePoints)))}position(e){return this.shaper.zeroMarkWidths==="BEFORE_GPOS"&&this.zeroMarkAdvances(e.positions),this.GPOSProcessor&&this.plan.process(this.GPOSProcessor,this.glyphInfos,e.positions),this.shaper.zeroMarkWidths==="AFTER_GPOS"&&this.zeroMarkAdvances(e.positions),e.direction==="rtl"&&(e.glyphs.reverse(),e.positions.reverse()),this.GPOSProcessor&&this.GPOSProcessor.features}zeroMarkAdvances(e){for(let t=0;t<this.glyphInfos.length;t++)this.glyphInfos[t].isMark&&(e[t].xAdvance=0,e[t].yAdvance=0)}cleanup(){this.glyphInfos=null,this.plan=null,this.shaper=null}getAvailableFeatures(e,t){let i=[];return this.GSUBProcessor&&(this.GSUBProcessor.selectScript(e,t),i.push(...Object.keys(this.GSUBProcessor.features))),this.GPOSProcessor&&(this.GPOSProcessor.selectScript(e,t),i.push(...Object.keys(this.GPOSProcessor.features))),i}constructor(e){this.font=e,this.glyphInfos=null,this.plan=null,this.GSUBProcessor=null,this.GPOSProcessor=null,this.fallbackPosition=!0,e.GSUB&&(this.GSUBProcessor=new oF(e,e.GSUB)),e.GPOS&&(this.GPOSProcessor=new uF(e,e.GPOS))}},cF=class{layout(e,t,i,r,a){if(typeof t=="string"&&(a=r,r=i,i=t,t=[]),typeof e=="string"){i==null&&(i=MN(e));var s=this.font.glyphsForString(e)}else{if(i==null){let u=[];for(let l of e)u.push(...l.codePoints);i=ZN(u)}var s=e}let n=new $N(s,t,i,r,a);return s.length===0?(n.positions=[],n):(this.engine&&this.engine.setup&&this.engine.setup(n),this.substitute(n),this.position(n),this.hideDefaultIgnorables(n.glyphs,n.positions),this.engine&&this.engine.cleanup&&this.engine.cleanup(),n)}substitute(e){this.engine&&this.engine.substitute&&this.engine.substitute(e)}position(e){e.positions=e.glyphs.map(i=>new UN(i.advanceWidth));let t=null;this.engine&&this.engine.position&&(t=this.engine.position(e)),!t&&(!this.engine||this.engine.fallbackPosition)&&(this.unicodeLayoutEngine||(this.unicodeLayoutEngine=new ON(this.font)),this.unicodeLayoutEngine.positionGlyphs(e.glyphs,e.positions)),(!t||!t.kern)&&e.features.kern!==!1&&this.font.kern&&(this.kernProcessor||(this.kernProcessor=new TN(this.font)),this.kernProcessor.process(e.glyphs,e.positions),e.features.kern=!0)}hideDefaultIgnorables(e,t){let i=this.font.glyphForCodePoint(32);for(let r=0;r<e.length;r++)this.isDefaultIgnorable(e[r].codePoints[0])&&(e[r]=i,t[r].xAdvance=0,t[r].yAdvance=0)}isDefaultIgnorable(e){let t=e>>16;if(t===0)switch(e>>8){case 0:return e===173;case 3:return e===847;case 6:return e===1564;case 23:return 6068<=e&&e<=6069;case 24:return 6155<=e&&e<=6158;case 32:return 8203<=e&&e<=8207||8234<=e&&e<=8238||8288<=e&&e<=8303;case 254:return 65024<=e&&e<=65039||e===65279;case 255:return 65520<=e&&e<=65528;default:return!1}else switch(t){case 1:return 113824<=e&&e<=113827||119155<=e&&e<=119162;case 14:return 917504<=e&&e<=921599;default:return!1}}getAvailableFeatures(e,t){let i=[];return this.engine&&i.push(...this.engine.getAvailableFeatures(e,t)),this.font.kern&&i.indexOf("kern")===-1&&i.push("kern"),i}stringsForGlyph(e){let t=new Set,i=this.font._cmapProcessor.codePointsForGlyph(e);for(let r of i)t.add(String.fromCodePoint(r));if(this.engine&&this.engine.stringsForGlyph)for(let r of this.engine.stringsForGlyph(e))t.add(r);return Array.from(t)}constructor(e){this.font=e,this.unicodeLayoutEngine=null,this.kernProcessor=null,this.font.morx?this.engine=new uB(this.font):(this.font.GSUB||this.font.GPOS)&&(this.engine=new lF(this.font))}},fF={moveTo:"M",lineTo:"L",quadraticCurveTo:"Q",bezierCurveTo:"C",closePath:"Z"},Iu=class S3{toFunction(){return t=>{this.commands.forEach(i=>t[i.command].apply(t,i.args))}}toSVG(){return this.commands.map(i=>{let r=i.args.map(a=>Math.round(a*100)/100);return`${fF[i.command]}${r.join(" ")}`}).join("")}get cbox(){if(!this._cbox){let t=new Wr;for(let i of this.commands)for(let r=0;r<i.args.length;r+=2)t.addPoint(i.args[r],i.args[r+1]);this._cbox=Object.freeze(t)}return this._cbox}get bbox(){if(this._bbox)return this._bbox;let t=new Wr,i=0,r=0,a=P=>Math.pow(1-P,3)*g[C]+3*Math.pow(1-P,2)*P*p[C]+3*(1-P)*Math.pow(P,2)*v[C]+Math.pow(P,3)*k[C];for(let P of this.commands)switch(P.command){case"moveTo":case"lineTo":let[b,x]=P.args;t.addPoint(b,x),i=b,r=x;break;case"quadraticCurveTo":case"bezierCurveTo":if(P.command==="quadraticCurveTo")var[s,n,f,h]=P.args,o=i+2/3*(s-i),u=r+2/3*(n-r),l=f+2/3*(s-f),c=h+2/3*(n-h);else var[o,u,l,c,f,h]=P.args;t.addPoint(f,h);for(var g=[i,r],p=[o,u],v=[l,c],k=[f,h],C=0;C<=1;C++){let D=6*g[C]-12*p[C]+6*v[C],w=-3*g[C]+9*p[C]-9*v[C]+3*k[C];if(P=3*p[C]-3*g[C],w===0){if(D===0)continue;let z=-P/D;0<z&&z<1&&(C===0?t.addPoint(a(z),t.maxY):C===1&&t.addPoint(t.maxX,a(z)));continue}let R=Math.pow(D,2)-4*P*w;if(R<0)continue;let j=(-D+Math.sqrt(R))/(2*w);0<j&&j<1&&(C===0?t.addPoint(a(j),t.maxY):C===1&&t.addPoint(t.maxX,a(j)));let $=(-D-Math.sqrt(R))/(2*w);0<$&&$<1&&(C===0?t.addPoint(a($),t.maxY):C===1&&t.addPoint(t.maxX,a($)))}i=f,r=h;break}return this._bbox=Object.freeze(t)}mapPoints(t){let i=new S3;for(let r of this.commands){let a=[];for(let s=0;s<r.args.length;s+=2){let[n,o]=t(r.args[s],r.args[s+1]);a.push(n,o)}i[r.command](...a)}return i}transform(t,i,r,a,s,n){return this.mapPoints((o,u)=>{const l=t*o+r*u+s,c=i*o+a*u+n;return[l,c]})}translate(t,i){return this.transform(1,0,0,1,t,i)}rotate(t){let i=Math.cos(t),r=Math.sin(t);return this.transform(i,r,-r,i,0,0)}scale(t,i=t){return this.transform(t,0,0,i,0,0)}constructor(){this.commands=[],this._bbox=null,this._cbox=null}};for(let e of["moveTo","lineTo","quadraticCurveTo","bezierCurveTo","closePath"])Iu.prototype[e]=function(...t){return this._bbox=this._cbox=null,this.commands.push({command:e,args:t}),this};var an=[".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"],Hi=class{_getPath(){return new Iu}_getCBox(){return this.path.cbox}_getBBox(){return this.path.bbox}_getTableMetrics(e){if(this.id<e.metrics.length)return e.metrics.get(this.id);let t=e.metrics.get(e.metrics.length-1);return{advance:t?t.advance:0,bearing:e.bearings.get(this.id-e.metrics.length)||0}}_getMetrics(e){if(this._metrics)return this._metrics;let{advance:t,bearing:i}=this._getTableMetrics(this._font.hmtx);if(this._font.vmtx)var{advance:r,bearing:a}=this._getTableMetrics(this._font.vmtx);else{let s;if((typeof e>"u"||e===null)&&({cbox:e}=this),(s=this._font["OS/2"])&&s.version>0)var r=Math.abs(s.typoAscender-s.typoDescender),a=s.typoAscender-e.maxY;else{let{hhea:n}=this._font;var r=Math.abs(n.ascent-n.descent),a=n.ascent-e.maxY}}return this._font._variationProcessor&&this._font.HVAR&&(t+=this._font._variationProcessor.getAdvanceAdjustment(this.id,this._font.HVAR)),this._metrics={advanceWidth:t,advanceHeight:r,leftBearing:i,topBearing:a}}get cbox(){return this._getCBox()}get bbox(){return this._getBBox()}get path(){return this._getPath()}getScaledPath(e){let t=1/this._font.unitsPerEm*e;return this.path.scale(t)}get advanceWidth(){return this._getMetrics().advanceWidth}get advanceHeight(){return this._getMetrics().advanceHeight}get ligatureCaretPositions(){}_getName(){let{post:e}=this._font;if(!e)return null;switch(e.version){case 1:return an[this.id];case 2:let t=e.glyphNameIndex[this.id];return t<an.length?an[t]:e.names[t-an.length];case 2.5:return an[this.id+e.offsets[this.id]];case 4:return String.fromCharCode(e.map[this.id])}}get name(){return this._getName()}render(e,t){e.save();let i=1/this._font.head.unitsPerEm*t;e.scale(i,i),this.path.toFunction()(e),e.fill(),e.restore()}constructor(e,t,i){this.id=e,this.codePoints=t,this._font=i,this.isMark=this.codePoints.length>0&&this.codePoints.every(Hy),this.isLigature=this.codePoints.length>1}};Ut([jt],Hi.prototype,"cbox",null),Ut([jt],Hi.prototype,"bbox",null),Ut([jt],Hi.prototype,"path",null),Ut([jt],Hi.prototype,"advanceWidth",null),Ut([jt],Hi.prototype,"advanceHeight",null),Ut([jt],Hi.prototype,"name",null);var cv=new T({numberOfContours:K,xMin:K,yMin:K,xMax:K,yMax:K}),dF=1,hF=2,gF=4,pF=8,mF=16,yF=32,bF=1,vF=8,fv=32,wF=64,CF=128,xF=256,da=class N3{copy(){return new N3(this.onCurve,this.endContour,this.x,this.y)}constructor(t,i,r=0,a=0){this.onCurve=t,this.endContour=i,this.x=r,this.y=a}},EF=class{constructor(e,t,i){this.glyphID=e,this.dx=t,this.dy=i,this.pos=0,this.scaleX=this.scaleY=1,this.scale01=this.scale10=0}},Vu=class extends Hi{_getCBox(e){if(this._font._variationProcessor&&!e)return this.path.cbox;let t=this._font._getTableStream("glyf");t.pos+=this._font.loca.offsets[this.id];let i=cv.decode(t),r=new Wr(i.xMin,i.yMin,i.xMax,i.yMax);return Object.freeze(r)}_parseGlyphCoord(e,t,i,r){if(i){var a=e.readUInt8();r||(a=-a),a+=t}else if(r)var a=t;else var a=t+e.readInt16BE();return a}_decode(){let e=this._font.loca.offsets[this.id],t=this._font.loca.offsets[this.id+1];if(e===t)return null;let i=this._font._getTableStream("glyf");i.pos+=e;let r=i.pos,a=cv.decode(i);return a.numberOfContours>0?this._decodeSimple(a,i):a.numberOfContours<0&&this._decodeComposite(a,i,r),a}_decodeSimple(e,t){e.points=[];let i=new S(d,e.numberOfContours).decode(t);e.instructions=new S(oe,d).decode(t);let r=[],a=i[i.length-1]+1;for(;r.length<a;){var s=t.readUInt8();if(r.push(s),s&pF){let l=t.readUInt8();for(let c=0;c<l;c++)r.push(s)}}for(var n=0;n<r.length;n++){var s=r[n];let c=new da(!!(s&dF),i.indexOf(n)>=0,0,0);e.points.push(c)}let o=0;for(var n=0;n<r.length;n++){var s=r[n];e.points[n].x=o=this._parseGlyphCoord(t,o,s&hF,s&mF)}let u=0;for(var n=0;n<r.length;n++){var s=r[n];e.points[n].y=u=this._parseGlyphCoord(t,u,s&gF,s&yF)}if(this._font._variationProcessor){let l=e.points.slice();l.push(...this._getPhantomPoints(e)),this._font._variationProcessor.transformPoints(this.id,l),e.phantomPoints=l.slice(-4)}}_decodeComposite(e,t,i=0){e.components=[];let r=!1,a=fv;for(;a&fv;){a=t.readUInt16BE();let u=t.pos-i,l=t.readUInt16BE();if(r||(r=(a&xF)!==0),a&bF)var s=t.readInt16BE(),n=t.readInt16BE();else var s=t.readInt8(),n=t.readInt8();var o=new EF(l,s,n);o.pos=u,a&vF?o.scaleX=o.scaleY=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824:a&wF?(o.scaleX=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,o.scaleY=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824):a&CF&&(o.scaleX=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,o.scale01=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,o.scale10=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824,o.scaleY=(t.readUInt8()<<24|t.readUInt8()<<16)/1073741824),e.components.push(o)}if(this._font._variationProcessor){let u=[];for(let l=0;l<e.components.length;l++){var o=e.components[l];u.push(new da(!0,!0,o.dx,o.dy))}u.push(...this._getPhantomPoints(e)),this._font._variationProcessor.transformPoints(this.id,u),e.phantomPoints=u.splice(-4,4);for(let l=0;l<u.length;l++){let c=u[l];e.components[l].dx=c.x,e.components[l].dy=c.y}}return r}_getPhantomPoints(e){let t=this._getCBox(!0);this._metrics==null&&(this._metrics=Hi.prototype._getMetrics.call(this,t));let{advanceWidth:i,advanceHeight:r,leftBearing:a,topBearing:s}=this._metrics;return[new da(!1,!0,e.xMin-a,0),new da(!1,!0,e.xMin-a+i,0),new da(!1,!0,0,e.yMax+s),new da(!1,!0,0,e.yMax+s+r)]}_getContours(){let e=this._decode();if(!e)return[];let t=[];if(e.numberOfContours<0)for(let s of e.components){let n=this._font.getGlyph(s.glyphID)._getContours();for(let o=0;o<n.length;o++){let u=n[o];for(let l=0;l<u.length;l++){let c=u[l],f=c.x*s.scaleX+c.y*s.scale01+s.dx,h=c.y*s.scaleY+c.x*s.scale10+s.dy;t.push(new da(c.onCurve,c.endContour,f,h))}}}else t=e.points||[];e.phantomPoints&&!this._font.directory.tables.HVAR&&(this._metrics.advanceWidth=e.phantomPoints[1].x-e.phantomPoints[0].x,this._metrics.advanceHeight=e.phantomPoints[3].y-e.phantomPoints[2].y,this._metrics.leftBearing=e.xMin-e.phantomPoints[0].x,this._metrics.topBearing=e.phantomPoints[2].y-e.yMax);let i=[],r=[];for(let s=0;s<t.length;s++){var a=t[s];r.push(a),a.endContour&&(i.push(r),r=[])}return i}_getMetrics(){if(this._metrics)return this._metrics;let e=this._getCBox(!0);return super._getMetrics(e),this._font._variationProcessor&&!this._font.HVAR&&this.path,this._metrics}_getPath(){let e=this._getContours(),t=new Iu;for(let r=0;r<e.length;r++){let a=e[r],s=a[0],n=a[a.length-1],o=0;if(s.onCurve){var i=null;o=1}else{n.onCurve?s=n:s=new da(!1,!1,(s.x+n.x)/2,(s.y+n.y)/2);var i=s}t.moveTo(s.x,s.y);for(let u=o;u<a.length;u++){let l=a[u],c=u===0?s:a[u-1];if(c.onCurve&&l.onCurve)t.lineTo(l.x,l.y);else if(c.onCurve&&!l.onCurve)var i=l;else if(!c.onCurve&&!l.onCurve){let h=(c.x+l.x)/2,g=(c.y+l.y)/2;t.quadraticCurveTo(c.x,c.y,h,g);var i=l}else if(!c.onCurve&&l.onCurve){t.quadraticCurveTo(i.x,i.y,l.x,l.y);var i=null}else throw new Error("Unknown TTF path state")}i&&t.quadraticCurveTo(i.x,i.y,s.x,s.y),t.closePath()}return t}constructor(...e){super(...e),ui(this,"type","TTF")}},AF=class extends Hi{_getName(){return this._font.CFF2?super._getName():this._font["CFF "].getGlyphName(this.id)}bias(e){return e.length<1240?107:e.length<33900?1131:32768}_getPath(){let e=this._font.CFF2||this._font["CFF "],{stream:t}=e,i=e.topDict.CharStrings[this.id],r=i.offset+i.length;t.pos=i.offset;let a=new Iu,s=[],n=[],o=null,u=0,l=0,c=0,f,h,g=!1;this._usedGsubrs=f={},this._usedSubrs=h={};let p=e.globalSubrIndex||[],v=this.bias(p),k=e.privateDictForGlyph(this.id)||{},C=k.Subrs||[],P=this.bias(C),b=e.topDict.vstore&&e.topDict.vstore.itemVariationStore,x=k.vsindex,D=this._font._variationProcessor;function w(){o==null&&(o=s.shift()+k.nominalWidthX)}function R(){return s.length%2!==0&&w(),u+=s.length>>1,s.length=0}function j(z,ie){g&&a.closePath(),a.moveTo(z,ie),g=!0}let $=function(){for(;t.pos<r;){let O=t.readUInt8();if(O<32){let H,X,we,de,ye,U,Q,se,Ee,Fe,Re,et,tt,Ke,Ot,qe;switch(O){case 1:case 3:case 18:case 23:R();break;case 4:s.length>1&&w(),c+=s.shift(),j(l,c);break;case 5:for(;s.length>=2;)l+=s.shift(),c+=s.shift(),a.lineTo(l,c);break;case 6:case 7:for(we=O===6;s.length>=1;)we?l+=s.shift():c+=s.shift(),a.lineTo(l,c),we=!we;break;case 8:for(;s.length>0;)de=l+s.shift(),ye=c+s.shift(),U=de+s.shift(),Q=ye+s.shift(),l=U+s.shift(),c=Q+s.shift(),a.bezierCurveTo(de,ye,U,Q,l,c);break;case 10:if(H=s.pop()+P,X=C[H],X){h[H]=!0;let L=t.pos,M=r;t.pos=X.offset,r=X.offset+X.length,$(),t.pos=L,r=M}break;case 11:if(e.version>=2)break;return;case 14:if(e.version>=2)break;s.length>0&&w(),g&&(a.closePath(),g=!1);break;case 15:if(e.version<2)throw new Error("vsindex operator not supported in CFF v1");x=s.pop();break;case 16:{if(e.version<2)throw new Error("blend operator not supported in CFF v1");if(!D)throw new Error("blend operator in non-variation font");let L=D.getBlendVector(b,x),M=s.pop(),J=M*L.length,Z=s.length-J,he=Z-M;for(let be=0;be<M;be++){let ge=s[he+be];for(let ve=0;ve<L.length;ve++)ge+=L[ve]*s[Z++];s[he+be]=ge}for(;J--;)s.pop();break}case 19:case 20:R(),t.pos+=u+7>>3;break;case 21:s.length>2&&w(),l+=s.shift(),c+=s.shift(),j(l,c);break;case 22:s.length>1&&w(),l+=s.shift(),j(l,c);break;case 24:for(;s.length>=8;)de=l+s.shift(),ye=c+s.shift(),U=de+s.shift(),Q=ye+s.shift(),l=U+s.shift(),c=Q+s.shift(),a.bezierCurveTo(de,ye,U,Q,l,c);l+=s.shift(),c+=s.shift(),a.lineTo(l,c);break;case 25:for(;s.length>=8;)l+=s.shift(),c+=s.shift(),a.lineTo(l,c);de=l+s.shift(),ye=c+s.shift(),U=de+s.shift(),Q=ye+s.shift(),l=U+s.shift(),c=Q+s.shift(),a.bezierCurveTo(de,ye,U,Q,l,c);break;case 26:for(s.length%2&&(l+=s.shift());s.length>=4;)de=l,ye=c+s.shift(),U=de+s.shift(),Q=ye+s.shift(),l=U,c=Q+s.shift(),a.bezierCurveTo(de,ye,U,Q,l,c);break;case 27:for(s.length%2&&(c+=s.shift());s.length>=4;)de=l+s.shift(),ye=c,U=de+s.shift(),Q=ye+s.shift(),l=U+s.shift(),c=Q,a.bezierCurveTo(de,ye,U,Q,l,c);break;case 28:s.push(t.readInt16BE());break;case 29:if(H=s.pop()+v,X=p[H],X){f[H]=!0;let L=t.pos,M=r;t.pos=X.offset,r=X.offset+X.length,$(),t.pos=L,r=M}break;case 30:case 31:for(we=O===31;s.length>=4;)we?(de=l+s.shift(),ye=c,U=de+s.shift(),Q=ye+s.shift(),c=Q+s.shift(),l=U+(s.length===1?s.shift():0)):(de=l,ye=c+s.shift(),U=de+s.shift(),Q=ye+s.shift(),l=U+s.shift(),c=Q+(s.length===1?s.shift():0)),a.bezierCurveTo(de,ye,U,Q,l,c),we=!we;break;case 12:switch(O=t.readUInt8(),O){case 3:let L=s.pop(),M=s.pop();s.push(L&&M?1:0);break;case 4:L=s.pop(),M=s.pop(),s.push(L||M?1:0);break;case 5:L=s.pop(),s.push(L?0:1);break;case 9:L=s.pop(),s.push(Math.abs(L));break;case 10:L=s.pop(),M=s.pop(),s.push(L+M);break;case 11:L=s.pop(),M=s.pop(),s.push(L-M);break;case 12:L=s.pop(),M=s.pop(),s.push(L/M);break;case 14:L=s.pop(),s.push(-L);break;case 15:L=s.pop(),M=s.pop(),s.push(L===M?1:0);break;case 18:s.pop();break;case 20:let J=s.pop(),Z=s.pop();n[Z]=J;break;case 21:Z=s.pop(),s.push(n[Z]||0);break;case 22:let he=s.pop(),be=s.pop(),ge=s.pop(),ve=s.pop();s.push(ge<=ve?he:be);break;case 23:s.push(Math.random());break;case 24:L=s.pop(),M=s.pop(),s.push(L*M);break;case 26:L=s.pop(),s.push(Math.sqrt(L));break;case 27:L=s.pop(),s.push(L,L);break;case 28:L=s.pop(),M=s.pop(),s.push(M,L);break;case 29:Z=s.pop(),Z<0?Z=0:Z>s.length-1&&(Z=s.length-1),s.push(s[Z]);break;case 30:let _e=s.pop(),W=s.pop();if(W>=0)for(;W>0;){var z=s[_e-1];for(let q=_e-2;q>=0;q--)s[q+1]=s[q];s[0]=z,W--}else for(;W<0;){var z=s[0];for(let Me=0;Me<=_e;Me++)s[Me]=s[Me+1];s[_e-1]=z,W++}break;case 34:de=l+s.shift(),ye=c,U=de+s.shift(),Q=ye+s.shift(),se=U+s.shift(),Ee=Q,Fe=se+s.shift(),Re=Ee,et=Fe+s.shift(),tt=Re,Ke=et+s.shift(),Ot=tt,l=Ke,c=Ot,a.bezierCurveTo(de,ye,U,Q,se,Ee),a.bezierCurveTo(Fe,Re,et,tt,Ke,Ot);break;case 35:qe=[];for(let q=0;q<=5;q++)l+=s.shift(),c+=s.shift(),qe.push(l,c);a.bezierCurveTo(...qe.slice(0,6)),a.bezierCurveTo(...qe.slice(6)),s.shift();break;case 36:de=l+s.shift(),ye=c+s.shift(),U=de+s.shift(),Q=ye+s.shift(),se=U+s.shift(),Ee=Q,Fe=se+s.shift(),Re=Ee,et=Fe+s.shift(),tt=Re+s.shift(),Ke=et+s.shift(),Ot=tt,l=Ke,c=Ot,a.bezierCurveTo(de,ye,U,Q,se,Ee),a.bezierCurveTo(Fe,Re,et,tt,Ke,Ot);break;case 37:let ee=l,pe=c;qe=[];for(let q=0;q<=4;q++)l+=s.shift(),c+=s.shift(),qe.push(l,c);Math.abs(l-ee)>Math.abs(c-pe)?(l+=s.shift(),c=pe):(l=ee,c+=s.shift()),qe.push(l,c),a.bezierCurveTo(...qe.slice(0,6)),a.bezierCurveTo(...qe.slice(6));break;default:throw new Error(`Unknown op: 12 ${O}`)}break;default:throw new Error(`Unknown op: ${O}`)}}else if(O<247)s.push(O-139);else if(O<251){var ie=t.readUInt8();s.push((O-247)*256+ie+108)}else if(O<255){var ie=t.readUInt8();s.push(-(O-251)*256-ie-108)}else s.push(t.readInt32BE()/65536)}};return $(),g&&a.closePath(),a}constructor(...e){super(...e),ui(this,"type","CFF")}},kF=new T({originX:d,originY:d,type:new nt(4),data:new Wi(e=>e.parent.buflen-e._currentOffset)}),DF=class extends Vu{getImageForSize(e){for(let s=0;s<this._font.sbix.imageTables.length;s++){var t=this._font.sbix.imageTables[s];if(t.ppem>=e)break}let i=t.imageOffsets,r=i[this.id],a=i[this.id+1];return r===a?null:(this._font.stream.pos=r,kF.decode(this._font.stream,{buflen:a-r}))}render(e,t){let i=this.getImageForSize(t);if(i!=null){let r=t/this._font.unitsPerEm;e.image(i.data,{height:t,x:i.originX,y:(this.bbox.minY-i.originY)*r})}this._font.sbix.flags.renderOutlines&&super.render(e,t)}constructor(...e){super(...e),ui(this,"type","SBIX")}},dv=class{constructor(e,t){this.glyph=e,this.color=t}},_F=class extends Hi{_getBBox(){let e=new Wr;for(let t=0;t<this.layers.length;t++){let r=this.layers[t].glyph.bbox;e.addPoint(r.minX,r.minY),e.addPoint(r.maxX,r.maxY)}return e}get layers(){let e=this._font.CPAL,t=this._font.COLR,i=0,r=t.baseGlyphRecord.length-1;for(;i<=r;){let l=i+r>>1;var a=t.baseGlyphRecord[l];if(this.id<a.gid)r=l-1;else if(this.id>a.gid)i=l+1;else{var s=a;break}}if(s==null){var n=this._font._getBaseGlyph(this.id),o={red:0,green:0,blue:0,alpha:255};return[new dv(n,o)]}let u=[];for(let l=s.firstLayerIndex;l<s.firstLayerIndex+s.numLayers;l++){var a=t.layerRecords[l],o=e.colorRecords[a.paletteIndex],n=this._font._getBaseGlyph(a.gid);u.push(new dv(n,o))}return u}render(e,t){for(let{glyph:i,color:r}of this.layers)e.fillColor([r.red,r.green,r.blue],r.alpha/255*100),i.render(e,t)}constructor(...e){super(...e),ui(this,"type","COLR")}},SF=32768,NF=4095,BF=32768,hv=16384,FF=8192,gv=4095,pv=128,mv=127,IF=128,VF=64,zF=63,PF=class{normalizeCoords(e){let t=[];for(var i=0;i<this.font.fvar.axis.length;i++){let r=this.font.fvar.axis[i];e[i]<r.defaultValue?t.push((e[i]-r.defaultValue+Number.EPSILON)/(r.defaultValue-r.minValue+Number.EPSILON)):t.push((e[i]-r.defaultValue+Number.EPSILON)/(r.maxValue-r.defaultValue+Number.EPSILON))}if(this.font.avar)for(var i=0;i<this.font.avar.segment.length;i++){let a=this.font.avar.segment[i];for(let s=0;s<a.correspondence.length;s++){let n=a.correspondence[s];if(s>=1&&t[i]<n.fromCoord){let o=a.correspondence[s-1];t[i]=((t[i]-o.fromCoord)*(n.toCoord-o.toCoord)+Number.EPSILON)/(n.fromCoord-o.fromCoord+Number.EPSILON)+o.toCoord;break}}}return t}transformPoints(e,t){if(!this.font.fvar||!this.font.gvar)return;let{gvar:i}=this.font;if(e>=i.glyphCount)return;let r=i.offsets[e];if(r===i.offsets[e+1])return;let{stream:a}=this.font;if(a.pos=r,a.pos>=a.length)return;let s=a.readUInt16BE(),n=r+a.readUInt16BE();if(s&SF){var o=a.pos;a.pos=n;var u=this.decodePoints();n=a.pos,a.pos=o}let l=t.map(v=>v.copy());s&=NF;for(let v=0;v<s;v++){let k=a.readUInt16BE(),C=a.readUInt16BE();if(C&BF){var c=[];for(let R=0;R<i.axisCount;R++)c.push(a.readInt16BE()/16384)}else{if((C&gv)>=i.globalCoordCount)throw new Error("Invalid gvar table");var c=i.globalCoords[C&gv]}if(C&hv){var f=[];for(let R=0;R<i.axisCount;R++)f.push(a.readInt16BE()/16384);var h=[];for(let R=0;R<i.axisCount;R++)h.push(a.readInt16BE()/16384)}let P=this.tupleFactor(C,c,f,h);if(P===0){n+=k;continue}var o=a.pos;if(a.pos=n,C&FF)var g=this.decodePoints();else var g=u;let x=g.length===0?t.length:g.length,D=this.decodeDeltas(x),w=this.decodeDeltas(x);if(g.length===0)for(let R=0;R<t.length;R++){var p=t[R];p.x+=Math.round(D[R]*P),p.y+=Math.round(w[R]*P)}else{let R=l.map($=>$.copy()),j=t.map(()=>!1);for(let $=0;$<g.length;$++){let z=g[$];if(z<t.length){let ie=R[z];j[z]=!0,ie.x+=D[$]*P,ie.y+=w[$]*P}}this.interpolateMissingDeltas(R,l,j);for(let $=0;$<t.length;$++){let z=R[$].x-l[$].x,ie=R[$].y-l[$].y;t[$].x=Math.round(t[$].x+z),t[$].y=Math.round(t[$].y+ie)}}n+=k,a.pos=o}}decodePoints(){let e=this.font.stream,t=e.readUInt8();t&pv&&(t=(t&mv)<<8|e.readUInt8());let i=new Uint16Array(t),r=0,a=0;for(;r<t;){let s=e.readUInt8(),n=(s&mv)+1,o=s&pv?e.readUInt16:e.readUInt8;for(let u=0;u<n&&r<t;u++)a+=o.call(e),i[r++]=a}return i}decodeDeltas(e){let t=this.font.stream,i=0,r=new Int16Array(e);for(;i<e;){let a=t.readUInt8(),s=(a&zF)+1;if(a&IF)i+=s;else{let n=a&VF?t.readInt16BE:t.readInt8;for(let o=0;o<s&&i<e;o++)r[i++]=n.call(t)}}return r}tupleFactor(e,t,i,r){let a=this.normalizedCoords,{gvar:s}=this.font,n=1;for(let o=0;o<s.axisCount;o++)if(t[o]!==0){if(a[o]===0)return 0;if(e&hv){if(a[o]<i[o]||a[o]>r[o])return 0;a[o]<t[o]?n=n*(a[o]-i[o]+Number.EPSILON)/(t[o]-i[o]+Number.EPSILON):n=n*(r[o]-a[o]+Number.EPSILON)/(r[o]-t[o]+Number.EPSILON)}else{if(a[o]<Math.min(0,t[o])||a[o]>Math.max(0,t[o]))return 0;n=(n*a[o]+Number.EPSILON)/(t[o]+Number.EPSILON)}}return n}interpolateMissingDeltas(e,t,i){if(e.length===0)return;let r=0;for(;r<e.length;){let a=r,s=r,n=e[s];for(;!n.endContour;)n=e[++s];for(;r<=s&&!i[r];)r++;if(r>s)continue;let o=r,u=r;for(r++;r<=s;)i[r]&&(this.deltaInterpolate(u+1,r-1,u,r,t,e),u=r),r++;u===o?this.deltaShift(a,s,u,t,e):(this.deltaInterpolate(u+1,s,u,o,t,e),o>0&&this.deltaInterpolate(a,o-1,u,o,t,e)),r=s+1}}deltaInterpolate(e,t,i,r,a,s){if(e>t)return;let n=["x","y"];for(let u=0;u<n.length;u++){let l=n[u];if(a[i][l]>a[r][l]){var o=i;i=r,r=o}let c=a[i][l],f=a[r][l],h=s[i][l],g=s[r][l];if(c!==f||h===g){let p=c===f?0:(g-h)/(f-c);for(let v=e;v<=t;v++){let k=a[v][l];k<=c?k+=h-c:k>=f?k+=g-f:k=h+(k-c)*p,s[v][l]=k}}}}deltaShift(e,t,i,r,a){let s=a[i].x-r[i].x,n=a[i].y-r[i].y;if(!(s===0&&n===0))for(let o=e;o<=t;o++)o!==i&&(a[o].x+=s,a[o].y+=n)}getAdvanceAdjustment(e,t){let i,r;if(t.advanceWidthMapping){let a=e;a>=t.advanceWidthMapping.mapCount&&(a=t.advanceWidthMapping.mapCount-1),t.advanceWidthMapping.entryFormat,{outerIndex:i,innerIndex:r}=t.advanceWidthMapping.mapData[a]}else i=0,r=e;return this.getDelta(t.itemVariationStore,i,r)}getDelta(e,t,i){if(t>=e.itemVariationData.length)return 0;let r=e.itemVariationData[t];if(i>=r.deltaSets.length)return 0;let a=r.deltaSets[i],s=this.getBlendVector(e,t),n=0;for(let o=0;o<r.regionIndexCount;o++)n+=a.deltas[o]*s[o];return n}getBlendVector(e,t){let i=e.itemVariationData[t];if(this.blendVectors.has(i))return this.blendVectors.get(i);let r=this.normalizedCoords,a=[];for(let s=0;s<i.regionIndexCount;s++){let n=1,o=i.regionIndexes[s],u=e.variationRegionList.variationRegions[o];for(let l=0;l<u.length;l++){let c=u[l],f;c.startCoord>c.peakCoord||c.peakCoord>c.endCoord||c.startCoord<0&&c.endCoord>0&&c.peakCoord!==0||c.peakCoord===0?f=1:r[l]<c.startCoord||r[l]>c.endCoord?f=0:r[l]===c.peakCoord?f=1:r[l]<c.peakCoord?f=(r[l]-c.startCoord+Number.EPSILON)/(c.peakCoord-c.startCoord+Number.EPSILON):f=(c.endCoord-r[l]+Number.EPSILON)/(c.endCoord-c.peakCoord+Number.EPSILON),n*=f}a[s]=n}return this.blendVectors.set(i,a),a}constructor(e,t){this.font=e,this.normalizedCoords=this.normalizeCoords(t),this.blendVectors=new Map}};Promise.resolve();var yv=class{includeGlyph(e){return typeof e=="object"&&(e=e.id),this.mapping[e]==null&&(this.glyphs.push(e),this.mapping[e]=this.glyphs.length-1),this.mapping[e]}constructor(e){this.font=e,this.glyphs=[],this.mapping={},this.includeGlyph(0)}},TF=1,OF=2,RF=4,MF=8,ZF=16,LF=32,bv=class{static size(e){return e>=0&&e<=255?1:2}static encode(e,t){t>=0&&t<=255?e.writeUInt8(t):e.writeInt16BE(t)}},vv=new T({numberOfContours:K,xMin:K,yMin:K,xMax:K,yMax:K,endPtsOfContours:new S(d,"numberOfContours"),instructions:new S(oe,d),flags:new S(oe,0),xPoints:new S(bv,0),yPoints:new S(bv,0)}),$F=class{encodeSimple(e,t=[]){let i=[],r=[],a=[],s=[],n=0,o=0,u=0,l=0,c=0;for(let k=0;k<e.commands.length;k++){let C=e.commands[k];for(let P=0;P<C.args.length;P+=2){let b=C.args[P],x=C.args[P+1],D=0;if(C.command==="quadraticCurveTo"&&P===2){let w=e.commands[k+1];if(w&&w.command==="quadraticCurveTo"){let R=(o+w.args[0])/2,j=(u+w.args[1])/2;if(b===R&&x===j)continue}}C.command==="quadraticCurveTo"&&P===0||(D|=TF),D=this._encodePoint(b,o,r,D,OF,ZF),D=this._encodePoint(x,u,a,D,RF,LF),D===l&&n<255?(s[s.length-1]|=MF,n++):(n>0&&(s.push(n),n=0),s.push(D),l=D),o=b,u=x,c++}C.command==="closePath"&&i.push(c-1)}e.commands.length>1&&e.commands[e.commands.length-1].command!=="closePath"&&i.push(c-1);let f=e.bbox,h={numberOfContours:i.length,xMin:f.minX,yMin:f.minY,xMax:f.maxX,yMax:f.maxY,endPtsOfContours:i,instructions:t,flags:s,xPoints:r,yPoints:a},g=vv.size(h),p=4-g%4,v=new tu(g+p);return vv.encode(v,h),p!==0&&v.fill(0,p),v.buffer}_encodePoint(e,t,i,r,a,s){let n=e-t;return e===t?r|=s:(-255<=n&&n<=255&&(r|=a,n<0?n=-n:r|=s),i.push(n)),r}},UF=class extends yv{_addGlyph(e){let t=this.font.getGlyph(e),i=t._decode(),r=this.font.loca.offsets[e],a=this.font.loca.offsets[e+1],s=this.font._getTableStream("glyf");s.pos+=r;let n=s.readBuffer(a-r);if(i&&i.numberOfContours<0){n=new Uint8Array(n);let o=new DataView(n.buffer);for(let u of i.components)e=this.includeGlyph(u.glyphID),o.setUint16(u.pos,e)}else i&&this.font._variationProcessor&&(n=this.glyphEncoder.encodeSimple(t.path,i.instructions));return this.glyf.push(n),this.loca.offsets.push(this.offset),this.hmtx.metrics.push({advance:t.advanceWidth,bearing:t._getMetrics().leftBearing}),this.offset+=n.length,this.glyf.length-1}encode(){this.glyf=[],this.offset=0,this.loca={offsets:[],version:this.font.loca.version},this.hmtx={metrics:[],bearings:[]};let e=0;for(;e<this.glyphs.length;)this._addGlyph(this.glyphs[e++]);let t=(0,Mc.default)(this.font.maxp);t.numGlyphs=this.glyf.length,this.loca.offsets.push(this.offset);let i=(0,Mc.default)(this.font.head);i.indexToLocFormat=this.loca.version;let r=(0,Mc.default)(this.font.hhea);return r.numberOfMetrics=this.hmtx.metrics.length,Rb.toBuffer({tables:{head:i,hhea:r,loca:this.loca,maxp:t,"cvt ":this.font["cvt "],prep:this.font.prep,glyf:this.glyf,hmtx:this.hmtx,fpgm:this.font.fpgm}})}constructor(e){super(e),this.glyphEncoder=new $F}},jF=class extends yv{subsetCharstrings(){this.charstrings=[];let e={};for(let t of this.glyphs){this.charstrings.push(this.cff.getCharString(t));let i=this.font.getGlyph(t);i.path;for(let r in i._usedGsubrs)e[r]=!0}this.gsubrs=this.subsetSubrs(this.cff.globalSubrIndex,e)}subsetSubrs(e,t){let i=[];for(let r=0;r<e.length;r++){let a=e[r];t[r]?(this.cff.stream.pos=a.offset,i.push(this.cff.stream.readBuffer(a.length))):i.push(new Uint8Array([11]))}return i}subsetFontdict(e){e.FDArray=[],e.FDSelect={version:0,fds:[]};let t={},i=[],r={};for(let a of this.glyphs){let s=this.cff.fdForGlyph(a);if(s==null)continue;t[s]||(e.FDArray.push(Object.assign({},this.cff.topDict.FDArray[s])),i.push({}),r[s]=e.FDArray.length-1),t[s]=!0,e.FDSelect.fds.push(r[s]);let n=this.font.getGlyph(a);n.path;for(let o in n._usedSubrs)i[r[s]][o]=!0}for(let a=0;a<e.FDArray.length;a++){let s=e.FDArray[a];delete s.FontName,s.Private&&s.Private.Subrs&&(s.Private=Object.assign({},s.Private),s.Private.Subrs=this.subsetSubrs(s.Private.Subrs,i[a]))}}createCIDFontdict(e){let t={};for(let r of this.glyphs){let a=this.font.getGlyph(r);a.path;for(let s in a._usedSubrs)t[s]=!0}let i=Object.assign({},this.cff.topDict.Private);return this.cff.topDict.Private&&this.cff.topDict.Private.Subrs&&(i.Subrs=this.subsetSubrs(this.cff.topDict.Private.Subrs,t)),e.FDArray=[{Private:i}],e.FDSelect={version:3,nRanges:1,ranges:[{first:0,fd:0}],sentinel:this.charstrings.length}}addString(e){return e?(this.strings||(this.strings=[]),this.strings.push(e),lu.length+this.strings.length-1):null}encode(){this.subsetCharstrings();let e={version:this.charstrings.length>255?2:1,ranges:[{first:1,nLeft:this.charstrings.length-2}]},t=Object.assign({},this.cff.topDict);t.Private=null,t.charset=e,t.Encoding=null,t.CharStrings=this.charstrings;for(let r of["version","Notice","Copyright","FullName","FamilyName","Weight","PostScript","BaseFontName","FontName"])t[r]=this.addString(this.cff.string(t[r]));t.ROS=[this.addString("Adobe"),this.addString("Identity"),0],t.CIDCount=this.charstrings.length,this.cff.isCIDFont?this.subsetFontdict(t):this.createCIDFontdict(t);let i={version:1,hdrSize:this.cff.hdrSize,offSize:4,header:this.cff.header,nameIndex:[this.cff.postscriptName],topDictIndex:[t],stringIndex:this.strings,globalSubrIndex:this.gsubrs};return xb.toBuffer(i)}constructor(e){if(super(e),this.cff=this.font["CFF "],!this.cff)throw new Error("Not a CFF Font")}},ci=class B3{static probe(t){let i=mu.decode(t.slice(0,4));return i==="true"||i==="OTTO"||i==="\0\0\0"}setDefaultLanguage(t=null){this.defaultLanguage=t}_getTable(t){if(!(t.tag in this._tables))try{this._tables[t.tag]=this._decodeTable(t)}catch{}return this._tables[t.tag]}_getTableStream(t){let i=this.directory.tables[t];return i?(this.stream.pos=i.offset,this.stream):null}_decodeDirectory(){return this.directory=Rb.decode(this.stream,{_startOffset:0})}_decodeTable(t){let i=this.stream.pos,r=this._getTableStream(t.tag),a=gu[t.tag].decode(r,this,t.length);return this.stream.pos=i,a}getName(t,i=this.defaultLanguage||nu){let r=this.name&&this.name.records[t];return r&&(r[i]||r[this.defaultLanguage]||r[nu]||r.en||r[Object.keys(r)[0]])||null}get postscriptName(){return this.getName("postscriptName")}get fullName(){return this.getName("fullName")}get familyName(){return this.getName("fontFamily")}get subfamilyName(){return this.getName("fontSubfamily")}get copyright(){return this.getName("copyright")}get version(){return this.getName("version")}get ascent(){return this.hhea.ascent}get descent(){return this.hhea.descent}get lineGap(){return this.hhea.lineGap}get underlinePosition(){return this.post.underlinePosition}get underlineThickness(){return this.post.underlineThickness}get italicAngle(){return this.post.italicAngle}get capHeight(){let t=this["OS/2"];return t?t.capHeight:this.ascent}get xHeight(){let t=this["OS/2"];return t?t.xHeight:0}get numGlyphs(){return this.maxp.numGlyphs}get unitsPerEm(){return this.head.unitsPerEm}get bbox(){return Object.freeze(new Wr(this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax))}get _cmapProcessor(){return new tf(this.cmap)}get characterSet(){return this._cmapProcessor.getCharacterSet()}hasGlyphForCodePoint(t){return!!this._cmapProcessor.lookup(t)}glyphForCodePoint(t){return this.getGlyph(this._cmapProcessor.lookup(t),[t])}glyphsForString(t){let i=[],r=t.length,a=0,s=-1,n=-1;for(;a<=r;){let o=0,u=0;if(a<r){if(o=t.charCodeAt(a++),55296<=o&&o<=56319&&a<r){let l=t.charCodeAt(a);56320<=l&&l<=57343&&(a++,o=((o&1023)<<10)+(l&1023)+65536)}u=65024<=o&&o<=65039||917760<=o&&o<=917999?1:0}else a++;n===0&&u===1?i.push(this.getGlyph(this._cmapProcessor.lookup(s,o),[s,o])):n===0&&u===0&&i.push(this.glyphForCodePoint(s)),s=o,n=u}return i}get _layoutEngine(){return new cF(this)}layout(t,i,r,a,s){return this._layoutEngine.layout(t,i,r,a,s)}stringsForGlyph(t){return this._layoutEngine.stringsForGlyph(t)}get availableFeatures(){return this._layoutEngine.getAvailableFeatures()}getAvailableFeatures(t,i){return this._layoutEngine.getAvailableFeatures(t,i)}_getBaseGlyph(t,i=[]){return this._glyphs[t]||(this.directory.tables.glyf?this._glyphs[t]=new Vu(t,i,this):(this.directory.tables["CFF "]||this.directory.tables.CFF2)&&(this._glyphs[t]=new AF(t,i,this))),this._glyphs[t]||null}getGlyph(t,i=[]){return this._glyphs[t]||(this.directory.tables.sbix?this._glyphs[t]=new DF(t,i,this):this.directory.tables.COLR&&this.directory.tables.CPAL?this._glyphs[t]=new _F(t,i,this):this._getBaseGlyph(t,i)),this._glyphs[t]||null}createSubset(){return this.directory.tables["CFF "]?new jF(this):new UF(this)}get variationAxes(){let t={};if(!this.fvar)return t;for(let i of this.fvar.axis)t[i.axisTag.trim()]={name:i.name.en,min:i.minValue,default:i.defaultValue,max:i.maxValue};return t}get namedVariations(){let t={};if(!this.fvar)return t;for(let i of this.fvar.instance){let r={};for(let a=0;a<this.fvar.axis.length;a++){let s=this.fvar.axis[a];r[s.axisTag.trim()]=i.coord[a]}t[i.name.en]=r}return t}getVariation(t){if(!(this.directory.tables.fvar&&(this.directory.tables.gvar&&this.directory.tables.glyf||this.directory.tables.CFF2)))throw new Error("Variations require a font with the fvar, gvar and glyf, or CFF2 tables.");if(typeof t=="string"&&(t=this.namedVariations[t]),typeof t!="object")throw new Error("Variation settings must be either a variation name or settings object.");let i=this.fvar.axis.map((s,n)=>{let o=s.axisTag.trim();return o in t?Math.max(s.minValue,Math.min(s.maxValue,t[o])):s.defaultValue}),r=new $t(this.stream.buffer);r.pos=this._directoryPos;let a=new B3(r,i);return a._tables=this._tables,a}get _variationProcessor(){if(!this.fvar)return null;let t=this.variationCoords;return!t&&!this.CFF2?null:(t||(t=this.fvar.axis.map(i=>i.defaultValue)),new PF(this,t))}getFont(t){return this.getVariation(t)}constructor(t,i=null){ui(this,"type","TTF"),this.defaultLanguage=null,this.stream=t,this.variationCoords=i,this._directoryPos=this.stream.pos,this._tables={},this._glyphs={},this._decodeDirectory();for(let r in this.directory.tables){let a=this.directory.tables[r];gu[r]&&a.length>0&&Object.defineProperty(this,r,{get:this._getTable.bind(this,a)})}}};Ut([jt],ci.prototype,"bbox",null),Ut([jt],ci.prototype,"_cmapProcessor",null),Ut([jt],ci.prototype,"characterSet",null),Ut([jt],ci.prototype,"_layoutEngine",null),Ut([jt],ci.prototype,"variationAxes",null),Ut([jt],ci.prototype,"namedVariations",null),Ut([jt],ci.prototype,"_variationProcessor",null);var GF=new T({tag:new nt(4),offset:new N(B,"void",{type:"global"}),compLength:B,length:B,origChecksum:B}),wv=new T({tag:new nt(4),flavor:B,length:B,numTables:d,reserved:new yt(d),totalSfntSize:B,majorVersion:d,minorVersion:d,metaOffset:B,metaLength:B,metaOrigLength:B,privOffset:B,privLength:B,tables:new S(GF,"numTables")});wv.process=function(){let e={};for(let t of this.tables)e[t.tag]=t;this.tables=e};var WF=wv,YF=class extends ci{static probe(e){return mu.decode(e.slice(0,4))==="wOFF"}_decodeDirectory(){this.directory=WF.decode(this.stream,{_startOffset:0})}_getTableStream(e){let t=this.directory.tables[e];if(t)if(this.stream.pos=t.offset,t.compLength<t.length){this.stream.pos+=2;let i=new Uint8Array(t.length),r=(0,wD.default)(this.stream.readBuffer(t.compLength-2),i);return new $t(r)}else return this.stream;return null}constructor(...e){super(...e),ui(this,"type","WOFF")}},KF=class extends Vu{_decode(){return this._font._transformedGlyphs[this.id]}_getCBox(){return this.path.bbox}constructor(...e){super(...e),ui(this,"type","WOFF2")}},Cv={decode(e){let t=0,i=[0,1,2,3,4];for(let r=0;r<i.length;r++){let a=e.readUInt8();if(t&3758096384)throw new Error("Overflow");if(t=t<<7|a&127,!(a&128))return t}throw new Error("Bad base 128 number")}},XF=["cmap","head","hhea","hmtx","maxp","name","OS/2","post","cvt ","fpgm","glyf","loca","prep","CFF ","VORG","EBDT","EBLC","gasp","hdmx","kern","LTSH","PCLT","VDMX","vhea","vmtx","BASE","GDEF","GPOS","GSUB","EBSC","JSTF","MATH","CBDT","CBLC","COLR","CPAL","SVG ","sbix","acnt","avar","bdat","bloc","bsln","cvar","fdsc","feat","fmtx","fvar","gvar","hsty","just","lcar","mort","morx","opbd","prop","trak","Zapf","Silf","Glat","Gloc","Feat","Sill"],HF=new T({flags:oe,customTag:new iu(new nt(4),e=>(e.flags&63)===63),tag:e=>e.customTag||XF[e.flags&63],length:Cv,transformVersion:e=>e.flags>>>6&3,transformed:e=>e.tag==="glyf"||e.tag==="loca"?e.transformVersion===0:e.transformVersion!==0,transformLength:new iu(Cv,e=>e.transformed)}),xv=new T({tag:new nt(4),flavor:B,length:B,numTables:d,reserved:new yt(d),totalSfntSize:B,totalCompressedSize:B,majorVersion:d,minorVersion:d,metaOffset:B,metaLength:B,metaOrigLength:B,privOffset:B,privLength:B,tables:new S(HF,"numTables")});xv.process=function(){let e={};for(let t=0;t<this.tables.length;t++){let i=this.tables[t];e[i.tag]=i}return this.tables=e};var JF=xv,qF=class extends ci{static probe(e){return mu.decode(e.slice(0,4))==="wOF2"}_decodeDirectory(){this.directory=JF.decode(this.stream),this._dataPos=this.stream.pos}_decompress(){if(!this._decompressed){this.stream.pos=this._dataPos;let e=this.stream.readBuffer(this.directory.totalCompressedSize),t=0;for(let r in this.directory.tables){let a=this.directory.tables[r];a.offset=t,t+=a.transformLength!=null?a.transformLength:a.length}let i=(0,CD.default)(e,t);if(!i)throw new Error("Error decoding compressed data in WOFF2");this.stream=new $t(i),this._decompressed=!0}}_decodeTable(e){return this._decompress(),super._decodeTable(e)}_getBaseGlyph(e,t=[]){if(!this._glyphs[e])return this.directory.tables.glyf&&this.directory.tables.glyf.transformed?(this._transformedGlyphs||this._transformGlyfTable(),this._glyphs[e]=new KF(e,t,this)):super._getBaseGlyph(e,t)}_transformGlyfTable(){this._decompress(),this.stream.pos=this.directory.tables.glyf.offset;let e=QF.decode(this.stream),t=[];for(let r=0;r<e.numGlyphs;r++){let a={},s=e.nContours.readInt16BE();if(a.numberOfContours=s,s>0){let n=[],o=0;for(let u=0;u<s;u++){let l=ff(e.nPoints);o+=l,n.push(o)}a.points=aI(e.flags,e.glyphs,o);for(let u=0;u<s;u++)a.points[n[u]-1].endContour=!0;var i=ff(e.glyphs)}else if(s<0&&Vu.prototype._decodeComposite.call({_font:this},a,e.composites))var i=ff(e.glyphs);t.push(a)}this._transformedGlyphs=t}constructor(...e){super(...e),ui(this,"type","WOFF2")}},dr=class{decode(e,t){return new $t(this._buf.decode(e,t))}constructor(e){this.length=e,this._buf=new Wi(e)}},QF=new T({version:B,numGlyphs:d,indexFormat:d,nContourStreamSize:B,nPointsStreamSize:B,flagStreamSize:B,glyphStreamSize:B,compositeStreamSize:B,bboxStreamSize:B,instructionStreamSize:B,nContours:new dr("nContourStreamSize"),nPoints:new dr("nPointsStreamSize"),flags:new dr("flagStreamSize"),glyphs:new dr("glyphStreamSize"),composites:new dr("compositeStreamSize"),bboxes:new dr("bboxStreamSize"),instructions:new dr("instructionStreamSize")}),eI=253,tI=254,iI=255,Ev=253;function ff(e){let t=e.readUInt8();return t===eI?e.readUInt16BE():t===iI?e.readUInt8()+Ev:t===tI?e.readUInt8()+Ev*2:t}function Ji(e,t){return e&1?t:-t}function aI(e,t,i){let r,a=r=0,s=[];for(let u=0;u<i;u++){let l=0,c=0,f=e.readUInt8(),h=!(f>>7);if(f&=127,f<10)l=0,c=Ji(f,((f&14)<<7)+t.readUInt8());else if(f<20)l=Ji(f,((f-10&14)<<7)+t.readUInt8()),c=0;else if(f<84){var n=f-20,o=t.readUInt8();l=Ji(f,1+(n&48)+(o>>4)),c=Ji(f>>1,1+((n&12)<<2)+(o&15))}else if(f<120){var n=f-84;l=Ji(f,1+(n/12<<8)+t.readUInt8()),c=Ji(f>>1,1+(n%12>>2<<8)+t.readUInt8())}else if(f<124){var o=t.readUInt8();let p=t.readUInt8();l=Ji(f,(o<<4)+(p>>4)),c=Ji(f>>1,((p&15)<<8)+t.readUInt8())}else l=Ji(f,t.readUInt16BE()),c=Ji(f>>1,t.readUInt16BE());a+=l,r+=c,s.push(new da(h,!1,a,r))}return s}var rI=new Ye(B,{65536:{numFonts:B,offsets:new S(B,"numFonts")},131072:{numFonts:B,offsets:new S(B,"numFonts"),dsigTag:B,dsigLength:B,dsigOffset:B}}),sI=class{static probe(e){return mu.decode(e.slice(0,4))==="ttcf"}getFont(e){for(let t of this.header.offsets){let i=new $t(this.stream.buffer);i.pos=t;let r=new ci(i);if(r.postscriptName===e||r.postscriptName instanceof Uint8Array&&e instanceof Uint8Array&&r.postscriptName.every((a,s)=>e[s]===a))return r}return null}get fonts(){let e=[];for(let t of this.header.offsets){let i=new $t(this.stream.buffer);i.pos=t,e.push(new ci(i))}return e}constructor(e){if(ui(this,"type","TTC"),this.stream=e,e.readString(4)!=="ttcf")throw new Error("Not a TrueType collection");this.header=rI.decode(e)}},nI=new nt(oe);new T({len:B,buf:new Wi("len")});var oI=new T({id:d,nameOffset:K,attr:oe,dataOffset:Ia,handle:B}),uI=new T({name:new nt(4),maxTypeIndex:d,refList:new N(d,new S(oI,e=>e.maxTypeIndex+1),{type:"parent"})}),lI=new T({length:d,types:new S(uI,e=>e.length+1)}),cI=new T({reserved:new yt(oe,24),typeList:new N(d,lI),nameListOffset:new N(d,"void")}),Av=new T({dataOffset:B,map:new N(B,cI),dataLength:B,mapLength:B}),fI=class{static probe(e){let t=new $t(e);try{var i=Av.decode(t)}catch{return!1}for(let r of i.map.typeList.types)if(r.name==="sfnt")return!0;return!1}getFont(e){if(!this.sfnt)return null;for(let t of this.sfnt.refList){let i=this.header.dataOffset+t.dataOffset+4,r=new $t(this.stream.buffer.slice(i)),a=new ci(r);if(a.postscriptName===e||a.postscriptName instanceof Uint8Array&&e instanceof Uint8Array&&a.postscriptName.every((s,n)=>e[n]===s))return a}return null}get fonts(){let e=[];for(let t of this.sfnt.refList){let i=this.header.dataOffset+t.dataOffset+4,r=new $t(this.stream.buffer.slice(i));e.push(new ci(r))}return e}constructor(e){ui(this,"type","DFont"),this.stream=e,this.header=Av.decode(this.stream);for(let t of this.header.map.typeList.types){for(let i of t.refList)i.nameOffset>=0?(this.stream.pos=i.nameOffset+this.header.map.nameListOffset,i.name=nI.decode(this.stream)):i.name=null;t.name==="sfnt"&&(this.sfnt=t)}}};Lr(ci),Lr(YF),Lr(qF),Lr(sI),Lr(fI);function zu(e){if(e==null)return"400";if(typeof e=="number")return String(e);const t=String(e).toLowerCase().trim(),i={thin:"100",hairline:"100",extralight:"200",ultralight:"200",light:"300",normal:"400",regular:"400",medium:"500",semibold:"600",demibold:"600",bold:"700",extrabold:"800",ultrabold:"800",black:"900",heavy:"900"};if(i[t])return i[t];const r=parseInt(String(e),10);return!isNaN(r)&&r>=100&&r<=900?String(r):(console.warn(`Invalid font weight "${e}", defaulting to 400`),"400")}var rn=class mt{constructor(t){xt(this,"hb"),xt(this,"faces",new Map),xt(this,"fonts",new Map),xt(this,"blobs",new Map),xt(this,"fontkitFonts",new Map),xt(this,"fontkitBaseFonts",new Map),xt(this,"colorEmojiFonts",new Set),xt(this,"colorEmojiFontBytes",new Map),xt(this,"registeredCanvasFonts",new Set),xt(this,"wasmBaseURL"),xt(this,"initPromise"),xt(this,"emojiFallbackDesc"),this.wasmBaseURL=t}static setFallbackLoader(t){mt.fallbackLoader=t}static async getSharedInstance(t){if(mt.sharedInitPromise){const i=await mt.sharedInitPromise;return mt.refCount++,i}if(mt.sharedInstance)return mt.refCount++,mt.sharedInstance;mt.sharedInitPromise=(async()=>{const i=new mt(t);return await i.init(),mt.sharedInstance=i,mt.refCount=1,i})();try{return await mt.sharedInitPromise}finally{mt.sharedInitPromise=null}}static getRefCount(){return mt.refCount}static hasSharedInstance(){return mt.sharedInstance!==null}release(){if(this!==mt.sharedInstance){this.destroy();return}mt.refCount--,mt.refCount<=0&&(this.destroy(),mt.sharedInstance=null,mt.refCount=0)}static resetSharedInstance(){mt.sharedInstance&&(mt.sharedInstance.destroy(),mt.sharedInstance=null),mt.refCount=0,mt.sharedInitPromise=null}setEmojiFallback(t){this.emojiFallbackDesc=t}isColorEmojiFont(t){return this.colorEmojiFonts.has(t)}getColorEmojiFontBytes(t){return this.colorEmojiFontBytes.get(t)}getColorEmojiFontFamilies(){return Array.from(this.colorEmojiFonts)}detectColorEmojiFont(t){try{if(t.directory&&t.directory.tables){const i=t.directory.tables;if(i.CBDT||i.CBLC||i.sbix||i.COLR&&i.CPAL||i.SVG)return!0}if(t.availableTables){const i=t.availableTables;if(i.includes("CBDT")||i.includes("CBLC")||i.includes("sbix")||i.includes("COLR")&&i.includes("CPAL")||i.includes("SVG"))return!0}if(t._tables){const i=Object.keys(t._tables);if(i.includes("CBDT")||i.includes("CBLC")||i.includes("sbix")||i.includes("COLR")&&i.includes("CPAL")||i.includes("SVG"))return!0}return!1}catch{return!1}}async init(){if(this.initPromise){await this.initPromise;return}if(!this.hb){this.initPromise=this._doInit();try{await this.initPromise}catch(t){throw new Error(`Failed to initialize FontRegistry: ${t instanceof Error?t.message:String(t)}`)}}}async _doInit(){try{this.hb=await Hk("https://shotstack-ingest-api-dev-sources.s3.ap-southeast-2.amazonaws.com/euo5r93oyr/zzz01k9h-yycyx-2x2y6-qx9bj-7n567b/source.wasm")}catch(t){throw this.initPromise=void 0,t}}async getHB(){if(!this.hb)try{await this.init()}catch(t){throw new Error(`Failed to get HarfBuzz instance: ${t instanceof Error?t.message:String(t)}`)}return this.hb}key(t){const i=zu(t.weight);return`${t.family}__${i}`}hasRegisteredFace(t){return this.faces.has(this.key(t))}async registerFromBytes(t,i){try{this.hb||await this.init();const r=this.key(i);if(this.fonts.has(r))return;const a=this.hb.createBlob(t),s=this.hb.createFace(a,0),n=this.hb.createFont(s),o=s.upem||1e3;n.setScale(o,o);const u=zu(i.weight),l=parseInt(u,10);if(l!==400&&typeof n.setVariations=="function")try{n.setVariations(`wght=${l}`)}catch{}this.blobs.set(r,a),this.faces.set(r,s),this.fonts.set(r,n);try{const c=typeof Buffer<"u"?Buffer.from(t):new Uint8Array(t),f=qy(c),h=i.family;if(this.fontkitBaseFonts.has(h)||this.fontkitBaseFonts.set(h,f),this.detectColorEmojiFont(f)&&(this.colorEmojiFonts.add(i.family),this.colorEmojiFontBytes.has(i.family)||this.colorEmojiFontBytes.set(i.family,t.slice(0))),f.variationAxes&&Object.keys(f.variationAxes).length>0){const p=f.getVariation({wght:l});this.fontkitFonts.set(r,p)}else this.fontkitFonts.set(r,f)}catch(c){console.warn(`⚠️ Fontkit failed for ${i.family}:`,c)}await this.registerWithCanvas(i.family,t)}catch(r){throw new Error(`Failed to register font "${i.family}": ${r instanceof Error?r.message:String(r)}`)}}async tryFallbackInstall(t){const i=mt.fallbackLoader;if(!i)return!1;try{const r=zu(t.weight),a=await i({family:t.family,weight:r});return a?(await this.registerFromBytes(a,{family:t.family,weight:r}),!0):!1}catch{return!1}}async getFont(t){try{this.hb||await this.init();const i=this.key(t);let r=this.fonts.get(i);if(r||(r=await this.tryFallbackInstall(t)?this.fonts.get(i):void 0),r||(r=await this.tryDeriveFromExistingFont(t)),!r)throw new Error(`Font not registered for ${i}`);return r}catch(i){throw i instanceof Error&&i.message.includes("Font not registered")?i:new Error(`Failed to get font "${t.family}": ${i instanceof Error?i.message:String(i)}`)}}async tryDeriveFromExistingFont(t){const i=t.family,r=zu(t.weight),a=parseInt(r,10);let s;for(const[h,g]of this.blobs)if(h.startsWith(`${i}__`)){s=g;break}const n=this.fontkitBaseFonts.get(i);if(!s||!n)return;if(!(n.variationAxes&&n.variationAxes.wght!==void 0)){console.warn(`Font ${i} is not a variable font, cannot derive weight ${r}`);return}const u=this.key(t),l=this.hb.createFace(s,0),c=this.hb.createFont(l),f=l.upem||1e3;if(c.setScale(f,f),typeof c.setVariations=="function")try{c.setVariations(`wght=${a}`)}catch{}this.faces.set(u,l),this.fonts.set(u,c);try{const h=n.getVariation({wght:a});this.fontkitFonts.set(u,h)}catch{this.fontkitFonts.set(u,n),console.warn(`⚠️ Could not apply weight variation, using base font for ${i}`)}return c}async getFace(t){try{this.hb||await this.init();const i=this.key(t);let r=this.faces.get(i);return r||(r=await this.tryFallbackInstall(t)?this.faces.get(i):void 0),r||(await this.tryDeriveFromExistingFont(t),r=this.faces.get(i)),r}catch(i){throw new Error(`Failed to get face for "${t.family}": ${i instanceof Error?i.message:String(i)}`)}}async getUnitsPerEm(t){try{return(await this.getFace(t))?.upem||1e3}catch(i){throw new Error(`Failed to get units per em for "${t.family}": ${i instanceof Error?i.message:String(i)}`)}}async glyphPath(t,i){const r=this.key(t);try{const a=this.fontkitFonts.get(r);if(a){const o=a.getGlyph(i);if(o&&o.path){const u=o.path.toSVG();return u&&u!==""?u:"M 0 0"}}const n=(await this.getFont(t)).glyphToPath(i);return n&&n!==""?n:"M 0 0"}catch(a){throw new Error(`Failed to get glyph path for glyph ${i} in font "${t.family}": ${a instanceof Error?a.message:String(a)}`)}}async registerWithCanvas(t,i){if(!this.registeredCanvasFonts.has(t)&&!(typeof window<"u"))try{const a={GlobalFonts:void 0}.GlobalFonts;a&&a.register}catch{}}destroy(){try{for(const[,t]of this.fonts)try{t.destroy()}catch(i){console.error(`Error destroying font: ${i instanceof Error?i.message:String(i)}`)}for(const[,t]of this.faces)try{t.destroy()}catch(i){console.error(`Error destroying face: ${i instanceof Error?i.message:String(i)}`)}for(const[,t]of this.blobs)try{t.destroy()}catch(i){console.error(`Error destroying blob: ${i instanceof Error?i.message:String(i)}`)}this.fonts.clear(),this.faces.clear(),this.blobs.clear(),this.fontkitFonts.clear(),this.fontkitBaseFonts.clear(),this.colorEmojiFonts.clear(),this.colorEmojiFontBytes.clear(),this.registeredCanvasFonts.clear(),this.hb=void 0,this.initPromise=void 0}catch(t){console.error(`Error during FontRegistry cleanup: ${t instanceof Error?t.message:String(t)}`)}}};xt(rn,"sharedInstance",null),xt(rn,"refCount",0),xt(rn,"sharedInitPromise",null),xt(rn,"fallbackLoader");var kv=rn;function dI(){var e=function(t){var i={R:"13k,1a,2,3,3,2+1j,ch+16,a+1,5+2,2+n,5,a,4,6+16,4+3,h+1b,4mo,179q,2+9,2+11,2i9+7y,2+68,4,3+4,5+13,4+3,2+4k,3+29,8+cf,1t+7z,w+17,3+3m,1t+3z,16o1+5r,8+30,8+mc,29+1r,29+4v,75+73",EN:"1c+9,3d+1,6,187+9,513,4+5,7+9,sf+j,175h+9,qw+q,161f+1d,4xt+a,25i+9",ES:"17,2,6dp+1,f+1,av,16vr,mx+1,4o,2",ET:"z+2,3h+3,b+1,ym,3e+1,2o,p4+1,8,6u,7c,g6,1wc,1n9+4,30+1b,2n,6d,qhx+1,h0m,a+1,49+2,63+1,4+1,6bb+3,12jj",AN:"16o+5,2j+9,2+1,35,ed,1ff2+9,87+u",CS:"18,2+1,b,2u,12k,55v,l,17v0,2,3,53,2+1,b",B:"a,3,f+2,2v,690",S:"9,2,k",WS:"c,k,4f4,1vk+a,u,1j,335",ON:"x+1,4+4,h+5,r+5,r+3,z,5+3,2+1,2+1,5,2+2,3+4,o,w,ci+1,8+d,3+d,6+8,2+g,39+1,9,6+1,2,33,b8,3+1,3c+1,7+1,5r,b,7h+3,sa+5,2,3i+6,jg+3,ur+9,2v,ij+1,9g+9,7+a,8m,4+1,49+x,14u,2+2,c+2,e+2,e+2,e+1,i+n,e+e,2+p,u+2,e+2,36+1,2+3,2+1,b,2+2,6+5,2,2,2,h+1,5+4,6+3,3+f,16+2,5+3l,3+81,1y+p,2+40,q+a,m+13,2r+ch,2+9e,75+hf,3+v,2+2w,6e+5,f+6,75+2a,1a+p,2+2g,d+5x,r+b,6+3,4+o,g,6+1,6+2,2k+1,4,2j,5h+z,1m+1,1e+f,t+2,1f+e,d+3,4o+3,2s+1,w,535+1r,h3l+1i,93+2,2s,b+1,3l+x,2v,4g+3,21+3,kz+1,g5v+1,5a,j+9,n+v,2,3,2+8,2+1,3+2,2,3,46+1,4+4,h+5,r+5,r+a,3h+2,4+6,b+4,78,1r+24,4+c,4,1hb,ey+6,103+j,16j+c,1ux+7,5+g,fsh,jdq+1t,4,57+2e,p1,1m,1m,1m,1m,4kt+1,7j+17,5+2r,d+e,3+e,2+e,2+10,m+4,w,1n+5,1q,4z+5,4b+rb,9+c,4+c,4+37,d+2g,8+b,l+b,5+1j,9+9,7+13,9+t,3+1,27+3c,2+29,2+3q,d+d,3+4,4+2,6+6,a+o,8+6,a+2,e+6,16+42,2+1i",BN:"0+8,6+d,2s+5,2+p,e,4m9,1kt+2,2b+5,5+5,17q9+v,7k,6p+8,6+1,119d+3,440+7,96s+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+75,6p+2rz,1ben+1,1ekf+1,1ekf+1",NSM:"lc+33,7o+6,7c+18,2,2+1,2+1,2,21+a,1d+k,h,2u+6,3+5,3+1,2+3,10,v+q,2k+a,1n+8,a,p+3,2+8,2+2,2+4,18+2,3c+e,2+v,1k,2,5+7,5,4+6,b+1,u,1n,5+3,9,l+1,r,3+1,1m,5+1,5+1,3+2,4,v+1,4,c+1,1m,5+4,2+1,5,l+1,n+5,2,1n,3,2+3,9,8+1,c+1,v,1q,d,1f,4,1m+2,6+2,2+3,8+1,c+1,u,1n,g+1,l+1,t+1,1m+1,5+3,9,l+1,u,21,8+2,2,2j,3+6,d+7,2r,3+8,c+5,23+1,s,2,2,1k+d,2+4,2+1,6+a,2+z,a,2v+3,2+5,2+1,3+1,q+1,5+2,h+3,e,3+1,7,g,jk+2,qb+2,u+2,u+1,v+1,1t+1,2+6,9,3+a,a,1a+2,3c+1,z,3b+2,5+1,a,7+2,64+1,3,1n,2+6,2,2,3+7,7+9,3,1d+g,1s+3,1d,2+4,2,6,15+8,d+1,x+3,3+1,2+2,1l,2+1,4,2+2,1n+7,3+1,49+2,2+c,2+6,5,7,4+1,5j+1l,2+4,k1+w,2db+2,3y,2p+v,ff+3,30+1,n9x+3,2+9,x+1,29+1,7l,4,5,q+1,6,48+1,r+h,e,13+7,q+a,1b+2,1d,3+3,3+1,14,1w+5,3+1,3+1,d,9,1c,1g,2+2,3+1,6+1,2,17+1,9,6n,3,5,fn5,ki+f,h+f,r2,6b,46+4,1af+2,2+1,6+3,15+2,5,4m+1,fy+3,as+1,4a+a,4x,1j+e,1l+2,1e+3,3+1,1y+2,11+4,2+7,1r,d+1,1h+8,b+3,3,2o+2,3,2+1,7,4h,4+7,m+1,1m+1,4,12+6,4+4,5g+7,3+2,2,o,2d+5,2,5+1,2+1,6n+3,7+1,2+1,s+1,2e+7,3,2+1,2z,2,3+5,2,2u+2,3+3,2+4,78+8,2+1,75+1,2,5,41+3,3+1,5,x+5,3+1,15+5,3+3,9,a+5,3+2,1b+c,2+1,bb+6,2+5,2d+l,3+6,2+1,2+1,3f+5,4,2+1,2+6,2,21+1,4,2,9o+1,f0c+4,1o+6,t5,1s+3,2a,f5l+1,43t+2,i+7,3+6,v+3,45+2,1j0+1i,5+1d,9,f,n+4,2+e,11t+6,2+g,3+6,2+1,2+4,7a+6,c6+3,15t+6,32+6,gzhy+6n",AL:"16w,3,2,e+1b,z+2,2+2s,g+1,8+1,b+m,2+t,s+2i,c+e,4h+f,1d+1e,1bwe+dp,3+3z,x+c,2+1,35+3y,2rm+z,5+7,b+5,dt+l,c+u,17nl+27,1t+27,4x+6n,3+d",LRO:"6ct",RLO:"6cu",LRE:"6cq",RLE:"6cr",PDF:"6cs",LRI:"6ee",RLI:"6ef",FSI:"6eg",PDI:"6eh"},r={},a={};r.L=1,a[1]="L",Object.keys(i).forEach(function(W,ee){r[W]=1<<ee+1,a[r[W]]=W}),Object.freeze(r);var s=r.LRI|r.RLI|r.FSI,n=r.L|r.R|r.AL,o=r.B|r.S|r.WS|r.ON|r.FSI|r.LRI|r.RLI|r.PDI,u=r.BN|r.RLE|r.LRE|r.RLO|r.LRO|r.PDF,l=r.S|r.WS|r.B|s|r.PDI|u,c=null;function f(){if(!c){c=new Map;var W=function(pe){if(i.hasOwnProperty(pe)){var q=0;i[pe].split(",").forEach(function(Me){var xe=Me.split("+"),ke=xe[0],me=xe[1];ke=parseInt(ke,36),me=me?parseInt(me,36):0,c.set(q+=ke,r[pe]);for(var Je=0;Je<me;Je++)c.set(++q,r[pe])})}};for(var ee in i)W(ee)}}function h(W){return f(),c.get(W.codePointAt(0))||r.L}function g(W){return a[h(W)]}var p={pairs:"14>1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",canonical:"6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"};function v(W,ee){var pe=36,q=0,Me=new Map,xe=ee&&new Map,ke;return W.split(",").forEach(function me(Je){if(Je.indexOf("+")!==-1)for(var it=+Je;it--;)me(ke);else{ke=Je;var fe=Je.split(">"),_t=fe[0],Gt=fe[1];_t=String.fromCodePoint(q+=parseInt(_t,pe)),Gt=String.fromCodePoint(q+=parseInt(Gt,pe)),Me.set(_t,Gt),ee&&xe.set(Gt,_t)}}),{map:Me,reverseMap:xe}}var k,C,P;function b(){if(!k){var W=v(p.pairs,!0),ee=W.map,pe=W.reverseMap;k=ee,C=pe,P=v(p.canonical,!1).map}}function x(W){return b(),k.get(W)||null}function D(W){return b(),C.get(W)||null}function w(W){return b(),P.get(W)||null}var R=r.L,j=r.R,$=r.EN,z=r.ES,ie=r.ET,O=r.AN,H=r.CS,X=r.B,we=r.S,de=r.ON,ye=r.BN,U=r.NSM,Q=r.AL,se=r.LRO,Ee=r.RLO,Fe=r.LRE,Re=r.RLE,et=r.PDF,tt=r.LRI,Ke=r.RLI,Ot=r.FSI,qe=r.PDI;function L(W,ee){for(var pe=125,q=new Uint32Array(W.length),Me=0;Me<W.length;Me++)q[Me]=h(W[Me]);var xe=new Map;function ke(hi,Mi){var gi=q[hi];q[hi]=Mi,xe.set(gi,xe.get(gi)-1),gi&o&&xe.set(o,xe.get(o)-1),xe.set(Mi,(xe.get(Mi)||0)+1),Mi&o&&xe.set(o,(xe.get(o)||0)+1)}for(var me=new Uint8Array(W.length),Je=new Map,it=[],fe=null,_t=0;_t<W.length;_t++)fe||it.push(fe={start:_t,end:W.length-1,level:ee==="rtl"?1:ee==="ltr"?0:x3(_t,!1)}),q[_t]&X&&(fe.end=_t,fe=null);for(var Gt=Re|Fe|Ee|se|s|qe|et|X,ft=function(hi){return hi+(hi&1?1:2)},wi=function(hi){return hi+(hi&1?2:1)},Bt=0;Bt<it.length;Bt++){fe=it[Bt];var Ge=[{_level:fe.level,_override:0,_isolate:0}],Ze=void 0,Kt=0,ri=0,Lt=0;xe.clear();for(var bt=fe.start;bt<=fe.end;bt++){var At=q[bt];if(Ze=Ge[Ge.length-1],xe.set(At,(xe.get(At)||0)+1),At&o&&xe.set(o,(xe.get(o)||0)+1),At&Gt)if(At&(Re|Fe)){me[bt]=Ze._level;var mr=(At===Re?wi:ft)(Ze._level);mr<=pe&&!Kt&&!ri?Ge.push({_level:mr,_override:0,_isolate:0}):Kt||ri++}else if(At&(Ee|se)){me[bt]=Ze._level;var ya=(At===Ee?wi:ft)(Ze._level);ya<=pe&&!Kt&&!ri?Ge.push({_level:ya,_override:At&Ee?j:R,_isolate:0}):Kt||ri++}else if(At&s){At&Ot&&(At=x3(bt+1,!0)===1?Ke:tt),me[bt]=Ze._level,Ze._override&&ke(bt,Ze._override);var ba=(At===Ke?wi:ft)(Ze._level);ba<=pe&&Kt===0&&ri===0?(Lt++,Ge.push({_level:ba,_override:0,_isolate:1,_isolInitIndex:bt})):Kt++}else if(At&qe){if(Kt>0)Kt--;else if(Lt>0){for(ri=0;!Ge[Ge.length-1]._isolate;)Ge.pop();var $a=Ge[Ge.length-1]._isolInitIndex;$a!=null&&(Je.set($a,bt),Je.set(bt,$a)),Ge.pop(),Lt--}Ze=Ge[Ge.length-1],me[bt]=Ze._level,Ze._override&&ke(bt,Ze._override)}else At&et?(Kt===0&&(ri>0?ri--:!Ze._isolate&&Ge.length>1&&(Ge.pop(),Ze=Ge[Ge.length-1])),me[bt]=Ze._level):At&X&&(me[bt]=fe.level);else me[bt]=Ze._level,Ze._override&&At!==ye&&ke(bt,Ze._override)}for(var Bi=[],si=null,Ci=fe.start;Ci<=fe.end;Ci++){var Xt=q[Ci];if(!(Xt&u)){var va=me[Ci],yr=Xt&s,_=Xt===qe;si&&va===si._level?(si._end=Ci,si._endsWithIsolInit=yr):Bi.push(si={_start:Ci,_end:Ci,_level:va,_startsWithPDI:_,_endsWithIsolInit:yr})}}for(var ce=[],Ue=0;Ue<Bi.length;Ue++){var at=Bi[Ue];if(!at._startsWithPDI||at._startsWithPDI&&!Je.has(at._start)){for(var Xe=[si=at],zt=void 0;si&&si._endsWithIsolInit&&(zt=Je.get(si._end))!=null;)for(var xi=Ue+1;xi<Bi.length;xi++)if(Bi[xi]._start===zt){Xe.push(si=Bi[xi]);break}for(var Oi=[],br=0;br<Xe.length;br++)for(var gn=Xe[br],Ua=gn._start;Ua<=gn._end;Ua++)Oi.push(Ua);for(var vr=me[Oi[0]],qr=fe.level,ja=Oi[0]-1;ja>=0;ja--)if(!(q[ja]&u)){qr=me[ja];break}var wr=Oi[Oi.length-1],Ht=me[wr],Jt=fe.level;if(!(q[wr]&s)){for(var di=wr+1;di<=fe.end;di++)if(!(q[di]&u)){Jt=me[di];break}}ce.push({_seqIndices:Oi,_sosType:Math.max(qr,vr)%2?j:R,_eosType:Math.max(Jt,Ht)%2?j:R})}}for(var wa=0;wa<ce.length;wa++){var ea=ce[wa],Ce=ea._seqIndices,Ca=ea._sosType,Hu=ea._eosType,Fi=me[Ce[0]]&1?j:R;if(xe.get(U))for(var Cr=0;Cr<Ce.length;Cr++){var pn=Ce[Cr];if(q[pn]&U){for(var mn=Ca,Qr=Cr-1;Qr>=0;Qr--)if(!(q[Ce[Qr]]&u)){mn=q[Ce[Qr]];break}ke(pn,mn&(s|qe)?de:mn)}}if(xe.get($))for(var xr=0;xr<Ce.length;xr++){var es=Ce[xr];if(q[es]&$)for(var xa=xr-1;xa>=-1;xa--){var o3=xa===-1?Ca:q[Ce[xa]];if(o3&n){o3===Q&&ke(es,O);break}}}if(xe.get(Q))for(var Nf=0;Nf<Ce.length;Nf++){var u3=Ce[Nf];q[u3]&Q&&ke(u3,j)}if(xe.get(z)||xe.get(H))for(var yn=1;yn<Ce.length-1;yn++){var Bf=Ce[yn];if(q[Bf]&(z|H)){for(var ts=0,Ff=0,If=yn-1;If>=0&&(ts=q[Ce[If]],!!(ts&u));If--);for(var Vf=yn+1;Vf<Ce.length&&(Ff=q[Ce[Vf]],!!(Ff&u));Vf++);ts===Ff&&(q[Bf]===z?ts===$:ts&($|O))&&ke(Bf,ts)}}if(xe.get($))for(var ta=0;ta<Ce.length;ta++){var Ez=Ce[ta];if(q[Ez]&$){for(var Ju=ta-1;Ju>=0&&q[Ce[Ju]]&(ie|u);Ju--)ke(Ce[Ju],$);for(ta++;ta<Ce.length&&q[Ce[ta]]&(ie|u|$);ta++)q[Ce[ta]]!==$&&ke(Ce[ta],$)}}if(xe.get(ie)||xe.get(z)||xe.get(H))for(var bn=0;bn<Ce.length;bn++){var l3=Ce[bn];if(q[l3]&(ie|z|H)){ke(l3,de);for(var qu=bn-1;qu>=0&&q[Ce[qu]]&u;qu--)ke(Ce[qu],de);for(var Qu=bn+1;Qu<Ce.length&&q[Ce[Qu]]&u;Qu++)ke(Ce[Qu],de)}}if(xe.get($))for(var zf=0,c3=Ca;zf<Ce.length;zf++){var f3=Ce[zf],Pf=q[f3];Pf&$?c3===R&&ke(f3,R):Pf&n&&(c3=Pf)}if(xe.get(o)){var vn=j|$|O,d3=vn|R,el=[];{for(var is=[],as=0;as<Ce.length;as++)if(q[Ce[as]]&o){var wn=W[Ce[as]],h3=void 0;if(x(wn)!==null)if(is.length<63)is.push({char:wn,seqIndex:as});else break;else if((h3=D(wn))!==null)for(var Cn=is.length-1;Cn>=0;Cn--){var Tf=is[Cn].char;if(Tf===h3||Tf===D(w(wn))||x(w(Tf))===wn){el.push([is[Cn].seqIndex,as]),is.length=Cn;break}}}el.sort(function(hi,Mi){return hi[0]-Mi[0]})}for(var Of=0;Of<el.length;Of++){for(var g3=el[Of],tl=g3[0],Rf=g3[1],p3=!1,Ri=0,Mf=tl+1;Mf<Rf;Mf++){var m3=Ce[Mf];if(q[m3]&d3){p3=!0;var y3=q[m3]&vn?j:R;if(y3===Fi){Ri=y3;break}}}if(p3&&!Ri){Ri=Ca;for(var Zf=tl-1;Zf>=0;Zf--){var b3=Ce[Zf];if(q[b3]&d3){var v3=q[b3]&vn?j:R;v3!==Fi?Ri=v3:Ri=Fi;break}}}if(Ri){if(q[Ce[tl]]=q[Ce[Rf]]=Ri,Ri!==Fi){for(var xn=tl+1;xn<Ce.length;xn++)if(!(q[Ce[xn]]&u)){h(W[Ce[xn]])&U&&(q[Ce[xn]]=Ri);break}}if(Ri!==Fi){for(var En=Rf+1;En<Ce.length;En++)if(!(q[Ce[En]]&u)){h(W[Ce[En]])&U&&(q[Ce[En]]=Ri);break}}}}for(var Ga=0;Ga<Ce.length;Ga++)if(q[Ce[Ga]]&o){for(var w3=Ga,Lf=Ga,$f=Ca,An=Ga-1;An>=0;An--)if(q[Ce[An]]&u)w3=An;else{$f=q[Ce[An]]&vn?j:R;break}for(var C3=Hu,kn=Ga+1;kn<Ce.length;kn++)if(q[Ce[kn]]&(o|u))Lf=kn;else{C3=q[Ce[kn]]&vn?j:R;break}for(var Uf=w3;Uf<=Lf;Uf++)q[Ce[Uf]]=$f===C3?$f:Fi;Ga=Lf}}}for(var Ei=fe.start;Ei<=fe.end;Ei++){var Az=me[Ei],il=q[Ei];if(Az&1?il&(R|$|O)&&me[Ei]++:il&j?me[Ei]++:il&(O|$)&&(me[Ei]+=2),il&u&&(me[Ei]=Ei===0?fe.level:me[Ei-1]),Ei===fe.end||h(W[Ei])&(we|X))for(var al=Ei;al>=0&&h(W[al])&l;al--)me[al]=fe.level}}return{levels:me,paragraphs:it};function x3(hi,Mi){for(var gi=hi;gi<W.length;gi++){var Wa=q[gi];if(Wa&(j|Q))return 1;if(Wa&(X|R)||Mi&&Wa===qe)return 0;if(Wa&s){var E3=kz(gi);gi=E3===-1?W.length:E3}}return 0}function kz(hi){for(var Mi=1,gi=hi+1;gi<W.length;gi++){var Wa=q[gi];if(Wa&X)break;if(Wa&qe){if(--Mi===0)return gi}else Wa&s&&Mi++}return-1}}var M="14>1,j>2,t>2,u>2,1a>g,2v3>1,1>1,1ge>1,1wd>1,b>1,1j>1,f>1,ai>3,-2>3,+1,8>1k0,-1jq>1y7,-1y6>1hf,-1he>1h6,-1h5>1ha,-1h8>1qi,-1pu>1,6>3u,-3s>7,6>1,1>1,f>1,1>1,+2,3>1,1>1,+13,4>1,1>1,6>1eo,-1ee>1,3>1mg,-1me>1mk,-1mj>1mi,-1mg>1mi,-1md>1,1>1,+2,1>10k,-103>1,1>1,4>1,5>1,1>1,+10,3>1,1>8,-7>8,+1,-6>7,+1,a>1,1>1,u>1,u6>1,1>1,+5,26>1,1>1,2>1,2>2,8>1,7>1,4>1,1>1,+5,b8>1,1>1,+3,1>3,-2>1,2>1,1>1,+2,c>1,3>1,1>1,+2,h>1,3>1,a>1,1>1,2>1,3>1,1>1,d>1,f>1,3>1,1a>1,1>1,6>1,7>1,13>1,k>1,1>1,+19,4>1,1>1,+2,2>1,1>1,+18,m>1,a>1,1>1,lk>1,1>1,4>1,2>1,f>1,3>1,1>1,+3,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,6>1,4j>1,j>2,t>2,u>2,2>1,+1",J;function Z(){if(!J){var W=v(M,!0),ee=W.map,pe=W.reverseMap;pe.forEach(function(q,Me){ee.set(Me,q)}),J=ee}}function he(W){return Z(),J.get(W)||null}function be(W,ee,pe,q){var Me=W.length;pe=Math.max(0,pe==null?0:+pe),q=Math.min(Me-1,q==null?Me-1:+q);for(var xe=new Map,ke=pe;ke<=q;ke++)if(ee[ke]&1){var me=he(W[ke]);me!==null&&xe.set(ke,me)}return xe}function ge(W,ee,pe,q){var Me=W.length;pe=Math.max(0,pe==null?0:+pe),q=Math.min(Me-1,q==null?Me-1:+q);var xe=[];return ee.paragraphs.forEach(function(ke){var me=Math.max(pe,ke.start),Je=Math.min(q,ke.end);if(me<Je){for(var it=ee.levels.slice(me,Je+1),fe=Je;fe>=me&&h(W[fe])&l;fe--)it[fe]=ke.level;for(var _t=ke.level,Gt=1/0,ft=0;ft<it.length;ft++){var wi=it[ft];wi>_t&&(_t=wi),wi<Gt&&(Gt=wi|1)}for(var Bt=_t;Bt>=Gt;Bt--)for(var Ge=0;Ge<it.length;Ge++)if(it[Ge]>=Bt){for(var Ze=Ge;Ge+1<it.length&&it[Ge+1]>=Bt;)Ge++;Ge>Ze&&xe.push([Ze+me,Ge+me])}}}),xe}function ve(W,ee,pe,q){var Me=_e(W,ee,pe,q),xe=[].concat(W);return Me.forEach(function(ke,me){xe[me]=(ee.levels[ke]&1?he(W[ke]):null)||W[ke]}),xe.join("")}function _e(W,ee,pe,q){for(var Me=ge(W,ee,pe,q),xe=[],ke=0;ke<W.length;ke++)xe[ke]=ke;return Me.forEach(function(me){for(var Je=me[0],it=me[1],fe=xe.slice(Je,it+1),_t=fe.length;_t--;)xe[it-_t]=fe[_t]}),xe}return t.closingToOpeningBracket=D,t.getBidiCharType=h,t.getBidiCharTypeName=g,t.getCanonicalBracket=w,t.getEmbeddingLevels=L,t.getMirroredCharacter=he,t.getMirroredCharactersMap=be,t.getReorderSegments=ge,t.getReorderedIndices=_e,t.getReorderedString=ve,t.openingToClosingBracket=x,Object.defineProperty(t,"__esModule",{value:!0}),t}({});return e}var hI=dI,gI=/[--ۿ܀-ݏݐ-ݿހ-߀-߿ࠀ-ࡀ-ࡠ-ࢠ-ࣿיִ-ﭏﭐ-﷿ﹰ-𐴀-𐹠-𞠀-𞤀-𞥟--𞸀-]/u;function Dv(e){return gI.test(e)}function _v(e,t,i){return t<0||t>=e.length?e:t===0?"":e.slice(0,t)}function Sv(e){const t=e.codePointAt(0);return t?t>=127744&&t<=129535||t>=9728&&t<=9983||t>=9984&&t<=10175||t>=65024&&t<=65039||t>=128512&&t<=128591||t>=128640&&t<=128767||t>=129280&&t<=129535||t>=129648&&t<=129791:!1}function pI(e){if(e.length<=1)return e;const t=e.slice(),i=t.map(n=>n.level),r=Math.max(...i),a=Math.min(...i),s=a%2===1?a:a+1;for(let n=r;n>=s;n--){let o=0;for(;o<t.length;)if(i[t.indexOf(t[o])]>=n){let u=o;for(;u+1<t.length&&t[u+1].level>=n;)u++;if(o<u){let l=o,c=u;for(;l<c;){const f=t[l];t[l]=t[c],t[c]=f,l++,c--}}o=u+1}else o++}return t}var mI=class{constructor(e){this.fonts=e}transformText(e,t){switch(t){case"uppercase":return e.toUpperCase();case"lowercase":return e.toLowerCase();case"capitalize":return e.replace(/\b\w/g,i=>i.toUpperCase());default:return e}}async shapeFull(e,t,i){try{const r=await this.fonts.getHB(),a=r.createBuffer();try{a.addText(e),a.guessSegmentProperties(),i&&a.setDirection(i);const s=await this.fonts.getFont(t),o=(await this.fonts.getFace(t))?.upem||1e3;return s.setScale(o,o),r.shape(s,a),a.json()}finally{try{a.destroy()}catch(s){console.error(`Error destroying HarfBuzz buffer: ${s instanceof Error?s.message:String(s)}`)}}}catch(r){throw new Error(`Failed to shape text with font "${t.family}": ${r instanceof Error?r.message:String(r)}`)}}splitIntoBidiRuns(e,t,i,r){const a=[];if(e.length===0)return a;let s=0,n=t[0],o=r?Sv(e[0]):!1;for(let u=1;u<=e.length;u++){const l=u===e.length,c=l?-1:t[u],f=!l&&r?Sv(String.fromCodePoint(e.codePointAt(u)??0)):!1;if(l||c!==n||r&&f!==o){const h=e.slice(s,u),g=o&&r?r:i;a.push({text:h,startIndex:s,endIndex:u,level:n,font:g}),l||(s=u,n=c,o=f)}}return a}async shapeWithBidi(e,t,i){const r=Dv(e),a=/[a-zA-Z0-9]/.test(e);if(!(r&&a)&&!i){const h=r?"rtl":void 0;return this.shapeFull(e,t,h)}const n=hI(),{levels:o}=n.getEmbeddingLevels(e),u=this.splitIntoBidiRuns(e,o,t,i),l=[];for(const h of u){const g=h.level%2===1?"rtl":"ltr",p=await this.shapeFull(h.text,h.font,g);for(const v of p)v.cl+=h.startIndex,h.font!==t&&(v.fontDesc=h.font);l.push({glyphs:p,startIndex:h.startIndex,endIndex:h.endIndex,level:h.level})}const c=pI(l),f=[];for(const h of c)f.push(...h.glyphs);return f}async layout(e){try{const{textTransform:t,desc:i,fontSize:r,letterSpacing:a,width:s,emojiFallback:n}=e,o=this.transformText(e.text,t);if(!o||o.length===0)return[];let u;try{u=await this.shapeWithBidi(o,i,n)}catch(b){throw new Error(`Text shaping failed: ${b instanceof Error?b.message:String(b)}`)}let l;try{l=(await this.fonts.getFace(i))?.upem||1e3}catch(b){throw new Error(`Failed to get font metrics: ${b instanceof Error?b.message:String(b)}`)}const c=r/l,f=u.map(b=>{const x=b.cl;let D;if(x>=0&&x<o.length){const w=o.codePointAt(x);w!==void 0&&(D=String.fromCodePoint(w))}return{id:b.g,xAdvance:b.ax*c+a,xOffset:b.dx*c,yOffset:-b.dy*c,cluster:b.cl,char:D,fontDesc:b.fontDesc}}),h=[];let g=[],p=0;const v=new Set;for(let b=0;b<o.length;b++)o[b]===" "&&v.add(b);let k=-1;for(let b=0;b<f.length;b++){const x=f[b],D=x.xAdvance;if(x.char===`
|
|
264
264
|
`){h.push({glyphs:g,width:p,y:0}),g=[],p=0,k=b;continue}if(p+D>s&&g.length>0){if(k>-1){const w=k-(b-g.length)+1,R=g.splice(w),j=g.reduce(($,z)=>$+z.xAdvance,0);h.push({glyphs:g,width:j,y:0}),g=R,p=R.reduce(($,z)=>$+z.xAdvance,0)}else h.push({glyphs:g,width:p,y:0}),g=[],p=0;k=-1}g.push(x),p+=D,v.has(x.cluster)&&(k=b)}g.length>0&&h.push({glyphs:g,width:p,y:0});const C=Dv(o),P=e.lineHeight*r;for(let b=0;b<h.length;b++)h[b].y=(b+1)*P,h[b].isRTL=C;return h}catch(t){throw t instanceof Error?t:new Error(`Layout failed: ${String(t)}`)}}};function yI(e,t){return e.type==="linear"?{kind:"linear",angle:e.angle,stops:e.stops,opacity:t}:{kind:"radial",stops:e.stops,opacity:t}}function bI(e,t){const i=Math.max(1,Math.round(t.fontSize*.05));let r=t.baselineY+Math.round(t.fontSize*.1);return e==="line-through"&&(r=t.baselineY-Math.round(t.fontSize*.3)),{x1:t.xStart,x2:t.xStart+t.lineWidth,y:r,width:i}}function vI(e){return e==null?{top:0,right:0,bottom:0,left:0}:typeof e=="number"?{top:e,right:e,bottom:e,left:e}:e}function wI(e,t){return!t||e==="center"?e:e==="left"?"right":e==="right"?"left":e}async function CI(e){const t=[],i=vI(e.padding),r=e.border?.width??0;if(t.push({op:"BeginFrame",width:e.canvas.width,height:e.canvas.height,pixelRatio:e.canvas.pixelRatio,clear:!0,bg:void 0}),e.lines.length===0)return t;const a=Math.max(1,await e.getUnitsPerEm()),s=e.font.size/a,n=e.lines.length,o=e.font.size*e.style.lineHeight;let u;switch(e.align.vertical){case"top":u=e.font.size;break;case"bottom":u=e.textRect.height-(n-1)*o;break;case"middle":default:const P=e.font.size*.35;u=(e.textRect.height-(n-1)*o)/2+P;break}u+=r+i.top;const l=e.style.gradient?yI(e.style.gradient,1):{kind:"solid",color:e.font.color,opacity:e.font.opacity},c=e.style.gradient?e.style.gradient.stops[e.style.gradient.stops.length-1]?.color??e.font.color:e.font.color,f=[],h=[];let g=1/0,p=1/0,v=-1/0,k=-1/0;for(const C of e.lines){let P;switch(wI(e.align.horizontal,C.isRTL)){case"left":P=0;break;case"right":P=e.textRect.width-C.width;break;case"center":default:P=(e.textRect.width-C.width)/2;break}P+=r+i.left;let x=P;const D=e.lines.indexOf(C),w=u+D*o;if(e.font.background){const R=e.font.size*.15,j=e.font.size*.12,$=e.font.size*.92+j*2,z=w-e.font.size*.78-j;h.push({op:"Rectangle",x:P-R,y:z,width:C.width+R*2,height:$,fill:{kind:"solid",color:e.font.background,opacity:1}})}for(const R of C.glyphs){const j=x+R.xOffset,$=w+R.yOffset,z=R.fontDesc?.family;if((R.isColorEmoji||z&&e.isColorEmojiFont&&e.isColorEmojiFont(z))&&R.char){f.push({op:"DrawColorEmoji",char:R.char,x:j,y:$,fontSize:e.font.size,fontFamily:z||"NotoColorEmoji"}),x+=R.xAdvance;continue}const O=await e.glyphPathProvider(R.id,R.fontDesc);if(!O||O==="M 0 0"){x+=R.xAdvance;continue}const H=EI(O),X=j+s*H.x,we=j+s*(H.x+H.w),de=$-s*(H.y+H.h),ye=$-s*H.y;X<g&&(g=X),de<p&&(p=de),we>v&&(v=we),ye>k&&(k=ye),e.shadow&&e.shadow.blur>0&&f.push({isShadow:!0,op:"FillPath",path:O,x:j+e.shadow.offsetX,y:$+e.shadow.offsetY,scale:s,fill:{kind:"solid",color:e.shadow.color,opacity:e.shadow.opacity}}),e.stroke&&e.stroke.width>0&&f.push({op:"StrokePath",path:O,x:j,y:$,scale:s,width:e.stroke.width,color:e.stroke.color,opacity:e.stroke.opacity}),f.push({op:"FillPath",path:O,x:j,y:$,scale:s,fill:l}),x+=R.xAdvance}if(e.style.textDecoration!=="none"){const R=bI(e.style.textDecoration,{baselineY:w,fontSize:e.font.size,lineWidth:C.width,xStart:P});f.push({op:"DecorationLine",from:{x:R.x1,y:R.y},to:{x:R.x2,y:R.y},width:R.width,color:c,opacity:e.font.opacity})}}if(g!==1/0){const C={x:g,y:p,w:Math.max(1,v-g),h:Math.max(1,k-p)};for(const P of f)P.op==="FillPath"&&!P.isShadow&&(P.gradientBBox=C)}if(e.background||e.border){const C=e.contentRect?.width??e.canvas.width,P=e.contentRect?.height??e.canvas.height,b=e.border?.width??0,x=e.border?.radius??e.background?.borderRadius??0,D=b/2,w=e.canvas.width/2,R=e.canvas.height/2,j=w-C/2,$=R-P/2,z=Math.min(C-b,P-b)/2,ie=Math.min(x,z),O=Math.max(0,ie-D);e.background?.color&&t.push({op:"Rectangle",x:j+b,y:$+b,width:C-b*2,height:P-b*2,fill:{kind:"solid",color:e.background.color,opacity:e.background.opacity},borderRadius:O}),e.border&&e.border.width>0&&t.push({op:"RectangleStroke",x:j+D,y:$+D,width:C-b,height:P-b,stroke:{width:e.border.width,color:e.border.color,opacity:e.border.opacity},borderRadius:ie})}return t.push(...h),t.push(...f),t}function xI(e){return e.match(/[MLCQZ]|-?\d*\.?\d+(?:e[-+]?\d+)?/gi)??[]}function EI(e){const t=xI(e);let i=0,r=1/0,a=1/0,s=-1/0,n=-1/0;const o=(u,l)=>{u<r&&(r=u),l<a&&(a=l),u>s&&(s=u),l>n&&(n=l)};for(;i<t.length;)switch(t[i++]){case"M":case"L":{const l=parseFloat(t[i++]),c=parseFloat(t[i++]);o(l,c);break}case"C":{const l=parseFloat(t[i++]),c=parseFloat(t[i++]),f=parseFloat(t[i++]),h=parseFloat(t[i++]),g=parseFloat(t[i++]),p=parseFloat(t[i++]);o(l,c),o(f,h),o(g,p);break}case"Q":{const l=parseFloat(t[i++]),c=parseFloat(t[i++]),f=parseFloat(t[i++]),h=parseFloat(t[i++]);o(l,c),o(f,h);break}}return r===1/0?{x:0,y:0,w:0,h:0}:{x:r,y:a,w:s-r,h:n-a}}var df=.999;function AI(e,t,i){if(!i.anim||!i.anim.preset)return e;const{preset:r}=i.anim,a=t.reduce((u,l)=>u+l.glyphs.length,0);let s=Math.max(.3,a/(30*i.anim.speed));i.clipDuration&&!i.anim.duration&&(s=Math.min(s,i.clipDuration*.9));const n=i.anim.duration??s,o=Math.max(0,Math.min(1,i.t/n));switch(r){case"typewriter":return DI(e,t,o,i.anim.style,i.fontSize,i.t);case"fadeIn":return NI(e,t,o,i.anim.style,i.fontSize,n);case"slideIn":return BI(e,t,o,i.anim.direction??"left",i.fontSize,i.anim.style,n);case"shift":return SI(e,t,o,i.anim.direction??"left",i.fontSize,i.anim.style,n);case"ascend":return _I(e,t,o,i.anim.direction??"up",i.fontSize,n);case"movingLetters":return FI(e,i.t,i.anim.direction??"up",i.fontSize);default:return e}}var hr=e=>e.op==="FillPath"&&e.isShadow===!0,Pu=e=>e.op==="FillPath"&&!e.isShadow;function La(e){return e.length>0&&e[0].isRTL===!0}function kI(e){for(const t of e)if(t.op==="FillPath"){const i=t.fill;if(i?.kind==="solid")return i.color;if((i?.kind==="linear"||i?.kind==="radial")&&Array.isArray(i.stops)&&i.stops.length)return i.stops[i.stops.length-1].color||"#000000"}return"#000000"}function DI(e,t,i,r,a,s,n){if(r==="word"){const u=sn(t),l=u.length,c=Math.floor(i*l);if(c===0)return e.filter(p=>p.op==="BeginFrame"||p.op==="Rectangle"||p.op==="RectangleStroke");let f=0;for(let p=0;p<Math.min(c,u.length);p++)f+=u[p].glyphCount;const h=La(t)?Nv(e,f):Bv(e,f),g=i>=df?h:h.filter(p=>p.op!=="DecorationLine");return i<1&&f>0?Fv(g,f,a,s,La(t)):g}else{const u=t.reduce((h,g)=>h+g.glyphs.length,0),l=Math.floor(i*u);if(l===0)return e.filter(h=>h.op==="BeginFrame"||h.op==="Rectangle"||h.op==="RectangleStroke");const c=La(t)?Nv(e,l):Bv(e,l),f=i>=df?c:c.filter(h=>h.op!=="DecorationLine");return i<1&&l>0?Fv(f,l,a,s,La(t)):f}}function _I(e,t,i,r,a,s){const n=sn(t),o=n.length;if(o===0)return e;const u=[];let l=0;for(const c of e)if((c.op==="BeginFrame"||c.op==="Rectangle"||c.op==="RectangleStroke")&&u.push(c),c.op==="FillPath"||c.op==="StrokePath")break;for(const c of e)if(c.op==="FillPath"||c.op==="StrokePath"){let f=-1,h=0;for(let g=0;g<n.length;g++){const p=n[g].glyphCount;if(l>=h&&l<h+p){f=g;break}h+=p}if(f>=0){const p=(La(t)?Math.max(0,o-1-f):f)/Math.max(1,o)*(s/s),v=Math.min(1,p+.3);if(i>=v)u.push(c);else if(i>p){const k=(i-p)/Math.max(1e-6,v-p),C=Tu(Math.min(1,k)),P=r==="up"?a*.4:-a*.4,b={...c,y:c.y+P*(1-C)};c.op==="FillPath"?b.fill.kind==="solid"?b.fill={...b.fill,opacity:b.fill.opacity*C}:b.fill={...b.fill,opacity:(b.fill.opacity??1)*C}:b.opacity=b.opacity*C,u.push(b)}}Pu(c)&&l++}else c.op==="DecorationLine"&&i>=df&&u.push(c);return u}function SI(e,t,i,r,a,s,n){const o=s==="word",l={left:{x:a*.6,y:0},right:{x:-a*.6,y:0},up:{x:0,y:a*.6},down:{x:0,y:-a*.6}}[r],c=o?sn(t):[],f=t.reduce((b,x)=>b+x.glyphs.length,0),h=o?c.length:f;if(h===0)return e;const g=[];for(const b of e)if((b.op==="BeginFrame"||b.op==="Rectangle"||b.op==="RectangleStroke")&&g.push(b),b.op==="FillPath"||b.op==="StrokePath")break;const p=.3,k=n*.7/Math.max(1,h-1),C=b=>{const x=b*k,D=x/n,w=Math.min(1,(x+p)/n);return{startF:D,endF:w}};let P=0;for(const b of e){if(b.op!=="FillPath"&&b.op!=="StrokePath"){b.op==="DecorationLine"&&i>.8&&g.push(b);continue}let x;if(!o)x=P;else{let j=-1,$=0;for(let z=0;z<c.length;z++){const ie=c[z].glyphCount;if(P>=$&&P<$+ie){j=z;break}$+=ie}x=Math.max(0,j)}const D=La(t)?Math.max(0,h-1-x):x,{startF:w,endF:R}=C(D);if(i<=w){const j={...b,x:b.x+l.x,y:b.y+l.y};b.op==="FillPath"?j.fill.kind==="solid"?j.fill={...j.fill,opacity:0}:j.fill={...j.fill,opacity:0}:j.opacity=0,g.push(j)}else if(i>=R)g.push(b);else{const j=(i-w)/Math.max(1e-6,R-w),$=Tu(Math.min(1,j)),z=l.x*(1-$),ie=l.y*(1-$),O={...b,x:b.x+z,y:b.y+ie};if(b.op==="FillPath"){const H=O.fill.kind==="solid"?O.fill.opacity:O.fill.opacity??1;O.fill.kind==="solid"?O.fill={...O.fill,opacity:H*$}:O.fill={...O.fill,opacity:H*$}}else O.opacity=O.opacity*$;g.push(O)}Pu(b)&&P++}return g}function NI(e,t,i,r,a,s){const n=r==="word";if(!n&&!(r==="character")){const C=hf(i),P=.95+.05*C;return VI(e,C,P)}const u=n?sn(t):[],l=t.reduce((C,P)=>C+P.glyphs.length,0),c=n?u.length:l;if(c===0)return e;const f=[];for(const C of e)if(C.op==="BeginFrame"){f.push(C);break}const h=.3,p=s*.7/Math.max(1,c-1),v=C=>{const P=C*p,b=P/s,x=Math.min(1,(P+h)/s);return{startF:b,endF:x}};let k=0;for(const C of e){if(C.op!=="FillPath"&&C.op!=="StrokePath"){C.op==="DecorationLine"&&i>.8&&f.push(C);continue}let P;if(!n)P=k;else{let w=-1,R=0;for(let j=0;j<u.length;j++){const $=u[j].glyphCount;if(k>=R&&k<R+$){w=j;break}R+=$}P=Math.max(0,w)}const b=La(t)?Math.max(0,c-1-P):P,{startF:x,endF:D}=v(b);if(i<=x){const w={...C};C.op==="FillPath"?w.fill.kind==="solid"?w.fill={...w.fill,opacity:0}:w.fill={...w.fill,opacity:0}:w.opacity=0,f.push(w)}else if(i>=D)f.push(C);else{const w=(i-x)/Math.max(1e-6,D-x),R=hf(Math.min(1,w)),j={...C};if(C.op==="FillPath"){const $=j.fill.kind==="solid"?j.fill.opacity:j.fill.opacity??1;j.fill.kind==="solid"?j.fill={...j.fill,opacity:$*R}:j.fill={...j.fill,opacity:$*R}}else j.opacity=j.opacity*R;f.push(j)}Pu(C)&&k++}return f}function BI(e,t,i,r,a,s,n){const o=s==="word";if(!o&&!(s==="character")){const x=Tu(i),D=TI(1-x,r,a*2),w=hf(i);return zI(e,D.dx,D.dy,w)}const c={left:{x:a*2,y:0},right:{x:-a*2,y:0},up:{x:0,y:a*2},down:{x:0,y:-a*2}}[r],f=o?sn(t):[],h=t.reduce((x,D)=>x+D.glyphs.length,0),g=o?f.length:h;if(g===0)return e;const p=[];for(const x of e)if(x.op==="BeginFrame"){p.push(x);break}const v=.3,C=n*.7/Math.max(1,g-1),P=x=>{const D=x*C,w=D/n,R=Math.min(1,(D+v)/n);return{startF:w,endF:R}};let b=0;for(const x of e){if(x.op!=="FillPath"&&x.op!=="StrokePath"){x.op==="DecorationLine"&&i>.8&&p.push(x);continue}let D;if(!o)D=b;else{let $=-1,z=0;for(let ie=0;ie<f.length;ie++){const O=f[ie].glyphCount;if(b>=z&&b<z+O){$=ie;break}z+=O}D=Math.max(0,$)}const w=La(t)?Math.max(0,g-1-D):D,{startF:R,endF:j}=P(w);if(i<=R){const $={...x,x:x.x+c.x,y:x.y+c.y};x.op==="FillPath"?$.fill.kind==="solid"?$.fill={...$.fill,opacity:0}:$.fill={...$.fill,opacity:0}:$.opacity=0,p.push($)}else if(i>=j)p.push(x);else{const $=(i-R)/Math.max(1e-6,j-R),z=Tu(Math.min(1,$)),ie=c.x*(1-z),O=c.y*(1-z),H={...x,x:x.x+ie,y:x.y+O};if(x.op==="FillPath"){const X=H.fill.kind==="solid"?H.fill.opacity:H.fill.opacity??1;H.fill.kind==="solid"?H.fill={...H.fill,opacity:X*z}:H.fill={...H.fill,opacity:X*z}}else H.opacity=H.opacity*z;p.push(H)}Pu(x)&&b++}return p}function FI(e,t,i,r){const a=r*.3;return PI(e,i,a,t)}function sn(e){const t=[];let i=0;for(let r=0;r<e.length;r++){const a=e[r],s=II(a);for(const n of s)n.length>0&&t.push({startGlyph:i,glyphCount:n.length,lineIndex:r}),i+=n.length}return t}function II(e){const t=[];let i=[];for(const r of e.glyphs)r.char===" "||r.char===" "||r.char===`
|
|
265
265
|
`?i.length&&(t.push([...i]),i=[]):i.push(r);return i.length&&t.push(i),t}function Nv(e,t){let i=0;for(const o of e)o.op==="FillPath"&&!hr(o)&&i++;const r=Math.max(0,i-t),a=[];let s=0,n=!1;for(const o of e){if(o.op==="BeginFrame"||o.op==="Rectangle"||o.op==="RectangleStroke"){a.push(o);continue}if(o.op==="FillPath"&&!hr(o)){s>=r&&(a.push(o),n=!0),s++;continue}if(o.op==="StrokePath"){s>=r&&a.push(o);continue}if(o.op==="FillPath"&&hr(o)){s>=r&&a.push(o);continue}if(o.op==="DecorationLine"&&n){a.push(o);continue}}return a}function Bv(e,t){const i=[];let r=0,a=!1;for(const s of e){if(s.op==="BeginFrame"||s.op==="Rectangle"||s.op==="RectangleStroke"){i.push(s);continue}if(s.op==="FillPath"&&!hr(s)){r<t&&(i.push(s),a=!0),r++;continue}if(s.op==="StrokePath"){r<t&&i.push(s);continue}if(s.op==="FillPath"&&hr(s)){r<t&&i.push(s);continue}if(s.op==="DecorationLine"&&a){i.push(s);continue}}return i}function Fv(e,t,i,r,a=!1){if(t===0)return e;let s=null,n=null,o=0;for(const l of e)if(l.op==="FillPath"&&!hr(l)&&(o++,o===1&&(n=l),o===t)){s=l;break}const u=a&&n?n:s;if(u&&u.op==="FillPath"){const l=kI(e),c=a&&n?n.x-i*.15:u.x+i*.5,f=u.y,h=Math.max(3,i/15),g={op:"DecorationLine",from:{x:c,y:f-i*.75},to:{x:c,y:f+i*.15},width:h,color:l,opacity:1};return[...e,g]}return e}function VI(e,t,i){let r=0,a=0,s=0;return e.forEach(n=>{n.op==="FillPath"&&(r+=n.x,a+=n.y,s++)}),s>0&&(r/=s,a/=s),e.map(n=>{if(n.op==="FillPath"){const o={...n};if(o.fill.kind==="solid"?o.fill={...o.fill,opacity:o.fill.opacity*t}:o.fill={...o.fill,opacity:(o.fill.opacity??1)*t},i!==1&&s>0){const u=n.x-r,l=n.y-a;o.x=r+u*i,o.y=a+l*i}return o}if(n.op==="StrokePath"){const o={...n,opacity:n.opacity*t};if(i!==1&&s>0){const u=n.x-r,l=n.y-a;o.x=r+u*i,o.y=a+l*i}return o}return n.op==="DecorationLine"?{...n,opacity:n.opacity*t}:n})}function zI(e,t,i,r=1){return e.map(a=>{if(a.op==="FillPath"){const s={...a,x:a.x+t,y:a.y+i};return r<1&&(s.fill.kind==="solid"?s.fill={...s.fill,opacity:s.fill.opacity*r}:s.fill={...s.fill,opacity:(s.fill.opacity??1)*r}),s}return a.op==="StrokePath"?{...a,x:a.x+t,y:a.y+i,opacity:a.opacity*r}:a.op==="DecorationLine"?{...a,from:{x:a.from.x+t,y:a.from.y+i},to:{x:a.to.x+t,y:a.to.y+i},opacity:a.opacity*r}:a})}function PI(e,t,i,r){let a=0;const n=Math.min(1,r/.5);return e.map(o=>{if(o.op==="FillPath"||o.op==="StrokePath"){const u=Math.sin(a/5*Math.PI+r*Math.PI*2),l=t==="left"||t==="right"?u*i*(t==="left"?-1:1):0,c=t==="up"||t==="down"?u*i*(t==="up"?-1:1):0;if(o.op==="FillPath"){hr(o)||a++;const f={...o,x:o.x+l,y:o.y+c};return f.fill.kind==="solid"?f.fill={...f.fill,opacity:f.fill.opacity*n}:f.fill={...f.fill,opacity:(f.fill.opacity??1)*n},f}return{...o,x:o.x+l,y:o.y+c,opacity:o.opacity*n}}return o})}function TI(e,t,i){const r=e*i;switch(t){case"left":return{dx:-r,dy:0};case"right":return{dx:r,dy:0};case"up":return{dx:0,dy:-r};case"down":return{dx:0,dy:r}}}function hf(e){return e*(2-e)}function Tu(e){return 1-Math.pow(1-e,3)}function ii(e,t=1){const i=/^#?([a-f0-9]{6})$/i.exec(e);if(!i)throw new Error(`Invalid color ${e}`);const r=parseInt(i[1],16),a=r>>16&255,s=r>>8&255,n=r&255;return{r:a,g:s,b:n,a:t}}var Iv=.8,Vv=.2;function OI(e){const t=e.getContext("2d");if(!t)throw new Error("2D context unavailable");return{async render(i){const r=RI(i),a=new Map;for(let s=0;s<i.length;s++){const n=i[s];if(n.op==="BeginFrame"){n.pixelRatio;const o=n.width,u=n.height;if("width"in e&&"height"in e&&(e.width=Math.floor(o),e.height=Math.floor(u)),"style"in e&&(e.style.width=`${o}px`,e.style.height=`${u}px`),t.setTransform(1,0,0,1,0,0),t.globalAlpha=1,n.clear&&t.clearRect(0,0,o,u),n.bg&&n.bg.color){const{color:l,opacity:c,radius:f}=n.bg;if(l){const h=ii(l,c);f&&f>0?(t.fillStyle=`rgba(${h.r},${h.g},${h.b},${h.a})`,Ou(t,0,0,o,u,f),t.fill()):(t.fillStyle=`rgba(${h.r},${h.g},${h.b},${h.a})`,t.fillRect(0,0,o,u))}}continue}if(n.op==="FillPath"){const o=n,u=new Path2D(o.path);t.save(),t.translate(o.x,o.y);const l=o.scale??1;t.scale(l,-l);const c=o.gradientBBox??r,f={x:(c.x-o.x)/l,y:-(c.y-o.y)/l,w:c.w/l,h:c.h/l},h=JSON.stringify({fill:o.fill,bbox:f});let g=a.get(h);g||(g=nn(t,o.fill,f),a.set(h,g)),t.fillStyle=g,t.fill(u),t.restore();continue}if(n.op==="StrokePath"){const o=n,u=new Path2D(o.path);t.save(),t.translate(o.x,o.y);const l=o.scale??1;t.scale(l,-l);const c=1/Math.abs(l),f=ii(o.color,o.opacity);t.strokeStyle=`rgba(${f.r},${f.g},${f.b},${f.a})`,t.lineWidth=o.width*c,t.lineJoin="round",t.lineCap="round",t.stroke(u),t.restore();continue}if(n.op==="DecorationLine"){t.save();const o=ii(n.color,n.opacity);t.strokeStyle=`rgba(${o.r},${o.g},${o.b},${o.a})`,t.lineWidth=n.width,t.beginPath(),t.moveTo(n.from.x,n.from.y),t.lineTo(n.to.x,n.to.y),t.stroke(),t.restore();continue}if(n.op==="Rectangle"){t.save();const o=nn(t,n.fill,{x:n.x,y:n.y,w:n.width,h:n.height});t.fillStyle=o,n.borderRadius&&n.borderRadius>0?Ou(t,n.x,n.y,n.width,n.height,n.borderRadius):t.fillRect(n.x,n.y,n.width,n.height),t.restore();continue}if(n.op==="RectangleStroke"){t.save();const o=ii(n.stroke.color,n.stroke.opacity);if(t.strokeStyle=`rgba(${o.r},${o.g},${o.b},${o.a})`,t.lineWidth=n.stroke.width*2,n.borderRadius&&n.borderRadius>0){const u=new Path2D,l=n.x,c=n.y,f=n.width,h=n.height,g=Math.min(f,h)/2,p=Math.min(n.borderRadius,g);u.moveTo(l+p,c),u.arcTo(l+f,c,l+f,c+h,p),u.arcTo(l+f,c+h,l,c+h,p),u.arcTo(l,c+h,l,c,p),u.arcTo(l,c,l+f,c,p),u.closePath(),t.stroke(u)}else t.strokeRect(n.x,n.y,n.width,n.height);t.restore();continue}if(n.op==="DrawColorEmoji"){t.save(),t.font=`${n.fontSize}px "${n.fontFamily}"`,t.textBaseline="alphabetic",t.fillText(n.char,n.x,n.y),t.restore();continue}if(n.op==="Ellipse"){t.save();const o=n.gradientBBox??{x:n.cx-n.rx,y:n.cy-n.ry,w:n.rx*2,h:n.ry*2},u=nn(t,n.fill,o);t.fillStyle=u,t.beginPath();const l=(n.rotation??0)*Math.PI/180;t.ellipse(n.cx,n.cy,n.rx,n.ry,l,0,Math.PI*2),t.fill(),t.restore();continue}if(n.op==="EllipseStroke"){t.save(),gf(t,n.stroke),t.beginPath();const o=(n.rotation??0)*Math.PI/180;t.ellipse(n.cx,n.cy,n.rx,n.ry,o,0,Math.PI*2),t.stroke(),t.restore();continue}if(n.op==="Polygon"){t.save();const o=n.gradientBBox??ZI(n.points),u=nn(t,n.fill,o);t.fillStyle=u,t.beginPath(),Pv(t,n.points,n.closed??!0),t.fill(),t.restore();continue}if(n.op==="PolygonStroke"){t.save(),gf(t,n.stroke),t.beginPath(),Pv(t,n.points,n.closed??!0),t.stroke(),t.restore();continue}if(n.op==="ShapePath"){t.save(),t.translate(n.x,n.y);const o=n.gradientBBox??zv(n.path),u=nn(t,n.fill,o);t.fillStyle=u;const l=new Path2D(n.path);t.fill(l),t.restore();continue}if(n.op==="ShapePathStroke"){t.save(),t.translate(n.x,n.y),gf(t,n.stroke);const o=new Path2D(n.path);t.stroke(o),t.restore();continue}if(n.op==="DrawCaptionBackground"){t.save();const o=ii(n.color,n.opacity);t.fillStyle=`rgba(${o.r},${o.g},${o.b},${o.a})`,Ou(t,n.x,n.y,n.width,n.height,n.borderRadius),t.restore();continue}if(n.op==="DrawCaptionWord"){const o=[n];for(;s+1<i.length;){const u=i[s+1];if(u.op!=="DrawCaptionWord")break;o.push(u),s++}for(const u of o){if(!u.background||_v(u.text,u.visibleCharacters,u.isRTL).length===0)continue;t.save();const c=Math.round(u.x+u.transform.translateX),f=Math.round(u.y+u.transform.translateY);if(t.translate(c,f),u.transform.scale!==1){const D=u.width/2;t.translate(D,0),t.scale(u.transform.scale,u.transform.scale),t.translate(-D,0)}t.globalAlpha=u.transform.opacity,t.font=`${u.fontWeight} ${u.fontSize}px "${u.fontFamily}"`,t.textBaseline="alphabetic",u.letterSpacing&&(t.letterSpacing=`${u.letterSpacing}px`);const h=u.width,g=u.fontSize*Iv,p=u.fontSize*Vv,v=g+p,k=-u.background.padding,C=-g-u.background.padding,P=h+u.background.padding*2,b=v+u.background.padding*2,x=ii(u.background.color,u.background.opacity);t.fillStyle=`rgba(${x.r},${x.g},${x.b},${x.a})`,Ou(t,k,C,P,b,u.background.borderRadius),t.restore()}for(const u of o){const l=_v(u.text,u.visibleCharacters,u.isRTL);if(l.length===0)continue;t.save();const c=Math.round(u.x+u.transform.translateX),f=Math.round(u.y+u.transform.translateY);if(t.translate(c,f),u.transform.scale!==1){const C=u.width/2;t.translate(C,0),t.scale(u.transform.scale,u.transform.scale),t.translate(-C,0)}t.globalAlpha=u.transform.opacity,t.font=`${u.fontWeight} ${u.fontSize}px "${u.fontFamily}"`,t.textBaseline="alphabetic",u.letterSpacing&&(t.letterSpacing=`${u.letterSpacing}px`);const h=t.measureText(l),g=h.width,p=h.actualBoundingBoxAscent??u.fontSize*Iv,v=h.actualBoundingBoxDescent??u.fontSize*Vv,k=p+v;if(u.shadow){const C=ii(u.shadow.color,u.shadow.opacity);t.fillStyle=`rgba(${C.r},${C.g},${C.b},${C.a})`,t.shadowColor=`rgba(${C.r},${C.g},${C.b},${C.a})`,t.shadowOffsetX=u.shadow.offsetX,t.shadowOffsetY=u.shadow.offsetY,t.shadowBlur=u.shadow.blur,t.fillText(l,0,0),t.shadowColor="transparent",t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowBlur=0}if(u.stroke&&u.stroke.width>0){const C=ii(u.stroke.color,u.stroke.opacity);t.strokeStyle=`rgba(${C.r},${C.g},${C.b},${C.a})`,t.lineWidth=u.stroke.width*2,t.lineJoin="round",t.lineCap="round",t.strokeText(l,0,0)}if(u.fillProgress<=0){const C=ii(u.baseColor,u.baseOpacity);t.fillStyle=`rgba(${C.r},${C.g},${C.b},${C.a})`,t.fillText(l,0,0)}else if(u.fillProgress>=1){const C=ii(u.activeColor,u.activeOpacity);t.fillStyle=`rgba(${C.r},${C.g},${C.b},${C.a})`,t.fillText(l,0,0)}else{const C=ii(u.baseColor,u.baseOpacity);t.fillStyle=`rgba(${C.r},${C.g},${C.b},${C.a})`,t.fillText(l,0,0),t.save(),t.beginPath();const P=g*u.fillProgress;if(u.isRTL){const x=g-P;t.rect(x,-p-5,P+5,k+10)}else t.rect(-5,-p-5,P+5,k+10);t.clip();const b=ii(u.activeColor,u.activeOpacity);t.fillStyle=`rgba(${b.r},${b.g},${b.b},${b.a})`,t.fillText(l,0,0),t.restore()}t.restore()}continue}}},getImageData(){return t.getImageData(0,0,e.width,e.height)},toRawRGBA(){return{data:t.getImageData(0,0,e.width,e.height).data,width:e.width,height:e.height}},getCanvas(){return e},getCanvasSize(){return{width:e.width,height:e.height}}}}function Ou(e,t,i,r,a,s){const n=Math.min(r,a)/2,o=Math.min(s,n),u=new Path2D;u.moveTo(t+o,i),u.arcTo(t+r,i,t+r,i+a,o),u.arcTo(t+r,i+a,t,i+a,o),u.arcTo(t,i+a,t,i,o),u.arcTo(t,i,t+r,i,o),u.closePath(),e.fill(u)}function nn(e,t,i){if(t.kind==="solid"){const o=ii(t.color,t.opacity);return`rgba(${o.r},${o.g},${o.b},${o.a})`}const r=i.x+i.w/2,a=i.y+i.h/2,s=Math.max(i.w,i.h)/2,n=o=>{const u=t.kind==="linear"||t.kind==="radial"?t.opacity:1,l=t.kind==="linear"||t.kind==="radial"?t.stops:[];for(const c of l){const f=ii(c.color,u);o.addColorStop(c.offset,`rgba(${f.r},${f.g},${f.b},${f.a})`)}return o};if(t.kind==="linear"){const o=t.angle*Math.PI/180,u=r+Math.cos(o+Math.PI)*s,l=a+Math.sin(o+Math.PI)*s,c=r+Math.cos(o)*s,f=a+Math.sin(o)*s;return n(e.createLinearGradient(u,l,c,f))}else return n(e.createRadialGradient(r,a,0,r,a,s))}function RI(e){let t=1/0,i=1/0,r=-1/0,a=-1/0;for(const s of e){if(s.op!=="FillPath")continue;const n=s;if(n.isShadow)continue;const o=zv(n.path),u=n.scale??1,l=n.x+u*o.x,c=n.x+u*(o.x+o.w),f=n.y-u*(o.y+o.h),h=n.y-u*o.y;l<t&&(t=l),f<i&&(i=f),c>r&&(r=c),h>a&&(a=h)}return t===1/0?{x:0,y:0,w:1,h:1}:{x:t,y:i,w:Math.max(1,r-t),h:Math.max(1,a-i)}}function zv(e){const t=MI(e);let i=0,r=1/0,a=1/0,s=-1/0,n=-1/0;const o=(u,l)=>{u<r&&(r=u),l<a&&(a=l),u>s&&(s=u),l>n&&(n=l)};for(;i<t.length;)switch(t[i++]){case"M":case"L":{const l=parseFloat(t[i++]),c=parseFloat(t[i++]);o(l,c);break}case"C":{const l=parseFloat(t[i++]),c=parseFloat(t[i++]),f=parseFloat(t[i++]),h=parseFloat(t[i++]),g=parseFloat(t[i++]),p=parseFloat(t[i++]);o(l,c),o(f,h),o(g,p);break}case"Q":{const l=parseFloat(t[i++]),c=parseFloat(t[i++]),f=parseFloat(t[i++]),h=parseFloat(t[i++]);o(l,c),o(f,h);break}}return r===1/0?{x:0,y:0,w:0,h:0}:{x:r,y:a,w:s-r,h:n-a}}function MI(e){return e.match(/[MLCQZ]|-?\d*\.?\d+(?:e[-+]?\d+)?/gi)??[]}function gf(e,t){const i=ii(t.color,t.opacity);e.strokeStyle=`rgba(${i.r},${i.g},${i.b},${i.a})`,e.lineWidth=t.width,e.lineCap=t.lineCap??"butt",e.lineJoin=t.lineJoin??"miter",t.dashArray&&t.dashArray.length>0&&e.setLineDash(t.dashArray)}function ZI(e){if(e.length===0)return{x:0,y:0,w:0,h:0};let t=e[0].x,i=e[0].y,r=e[0].x,a=e[0].y;for(let s=1;s<e.length;s++){const n=e[s];n.x<t&&(t=n.x),n.y<i&&(i=n.y),n.x>r&&(r=n.x),n.y>a&&(a=n.y)}return{x:t,y:i,w:r-t,h:a-i}}function Pv(e,t,i){if(t.length!==0){e.moveTo(t[0].x,t[0].y);for(let r=1;r<t.length;r++)e.lineTo(t[r].x,t[r].y);i&&e.closePath()}}async function Ru(e){try{const t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch ${e}: ${t.status} ${t.statusText}`);try{return await t.arrayBuffer()}catch(i){throw new Error(`Failed to read response body as ArrayBuffer from ${e}: ${i instanceof Error?i.message:String(i)}`)}}catch(t){throw t instanceof Error?t.message.includes("Failed to fetch")||t.message.includes("Failed to read")?t:new Error(`Failed to fetch ${e}: ${t.message}`):new Error(`Failed to fetch ${e}: ${String(t)}`)}}function bi(e,t){return e===void 0?t:typeof e=="string"?parseFloat(e):e}var gr=null,on=!1,Tv="https://unpkg.com/@resvg/resvg-wasm@2.6.2/index_bg.wasm";async function pf(e){try{const t=await fetch(e);if(t.ok){const i=await t.arrayBuffer(),r=new Uint8Array(i);if(r.length>=4&&r[0]===0&&r[1]===97&&r[2]===115&&r[3]===109)return i;console.error(`Invalid WASM magic number from URL: ${e}`)}else console.error(`Failed to fetch resvg WASM from URL: ${e}, status: ${t.status}`);return}catch(t){console.error(`Error fetching resvg WASM from ${e}:`,t);return}}async function Ov(e){try{if(e){const t=e.endsWith(".wasm")?e:e.endsWith("/")?`${e}resvg.wasm`:`${e}/resvg.wasm`,i=await pf(t);if(i)return i}return}catch(t){console.error("Error in loadResvgWasmWeb:",t);return}}async function LI(e){if(gr&&on)return gr;if(gr=await Promise.resolve().then(()=>n3),!on){let i=await Ov(e);if(i||(i=await pf(Tv)),!i)throw new Error("Failed to load resvg WASM from any source");const r=await WebAssembly.compile(i);await gr.initWasm(r),on=!0}return gr}async function $I(e){if(on)return;gr=await Promise.resolve().then(()=>n3);let i;if(e instanceof ArrayBuffer?i=e:(i=await Ov(e),i||(i=await pf(Tv))),!i)throw new Error("Failed to load resvg WASM from any source");const r=await WebAssembly.compile(i);await gr.initWasm(r),on=!0}async function UI(e,t={}){const{Resvg:i}=await LI(),r={};t.background&&(r.background=t.background),t.fitTo?r.fitTo=t.fitTo:t.width?r.fitTo={mode:"width",value:t.width}:t.height&&(r.fitTo={mode:"height",value:t.height});const a=new i(e,r);try{const s=a.render();try{return{png:s.asPng(),width:s.width,height:s.height}}finally{s.free()}}finally{a.free()}}function jI(e,t,i){if(!e.shape)throw new Error("Shape is required for shape mode");const r=bi(e.width,t),a=bi(e.height,i),s=WI(e.shape),n=aV(s),o=r/2,u=a/2,l=n.x+n.w/2,c=n.y+n.h/2;let f=o-l,h=u-c;e.transform&&(f+=bi(e.transform.x,0),h+=bi(e.transform.y,0));const g=[];if(e.shadow){const v=bi(e.shadow.offsetX,4),k=bi(e.shadow.offsetY,4),C=e.shadow.color??"#000000",P=bi(e.shadow.opacity,.5);g.push(`<path d="${s}" transform="translate(${f+v}, ${h+k})" fill="${C}" fill-opacity="${P}"/>`)}const p=[`d="${s}"`,`transform="translate(${f}, ${h})"`];if(e.fill){const v=`fill-${Date.now()}`,k=GI(e.fill,v);k.defs&&g.unshift(k.defs),p.push(`fill="${k.fill}"`),e.fill.opacity!==void 0&&e.fill.opacity!==1&&p.push(`fill-opacity="${e.fill.opacity}"`)}else p.push('fill="none"');return e.stroke&&e.stroke.width&&bi(e.stroke.width,0)>0&&(p.push(`stroke="${e.stroke.color??"#000000"}"`),p.push(`stroke-width="${e.stroke.width}"`),e.stroke.opacity!==void 0&&e.stroke.opacity!==1&&p.push(`stroke-opacity="${e.stroke.opacity}"`),e.stroke.dashArray&&e.stroke.dashArray.length>0&&p.push(`stroke-dasharray="${e.stroke.dashArray.join(" ")}"`),e.stroke.lineCap&&p.push(`stroke-linecap="${e.stroke.lineCap}"`),e.stroke.lineJoin&&p.push(`stroke-linejoin="${e.stroke.lineJoin}"`)),e.opacity!==void 0&&e.opacity!==1&&p.push(`opacity="${e.opacity}"`),g.push(`<path ${p.join(" ")}/>`),`<svg xmlns="http://www.w3.org/2000/svg" width="${r}" height="${a}" viewBox="0 0 ${r} ${a}">${g.join("")}</svg>`}function GI(e,t,i){if(e.type==="solid")return{fill:e.color};if(e.type==="linear"){const a=bi(e.angle,0)*Math.PI/180,s=50-Math.cos(a)*50,n=50-Math.sin(a)*50,o=50+Math.cos(a)*50,u=50+Math.sin(a)*50,l=e.stops.map(f=>`<stop offset="${bi(f.offset,0)*100}%" stop-color="${f.color}"/>`).join(""),c=`<defs><linearGradient id="${t}" x1="${s}%" y1="${n}%" x2="${o}%" y2="${u}%">${l}</linearGradient></defs>`;return{fill:`url(#${t})`,defs:c}}if(e.type==="radial"){const r=e.stops.map(s=>`<stop offset="${bi(s.offset,0)*100}%" stop-color="${s.color}"/>`).join(""),a=`<defs><radialGradient id="${t}" cx="50%" cy="50%" r="50%">${r}</radialGradient></defs>`;return{fill:`url(#${t})`,defs:a}}return{fill:"#000000"}}function WI(e){const t=e.type;switch(t){case"rectangle":{const i=e;return YI(i.width,i.height,i.cornerRadius??0)}case"circle":return Rv(e.radius);case"ellipse":{const i=e;return XI(i.radiusX,i.radiusY)}case"line":{const i=e;return HI(i.length,i.thickness??2)}case"polygon":{const i=e;return JI(i.sides,i.radius)}case"star":{const i=e;return qI(i.points,i.outerRadius,i.innerRadius)}case"arrow":{const i=e;return QI(i.length,i.headWidth??30,i.headLength??25,i.shaftWidth??10)}case"heart":return eV(e.size);case"cross":{const i=e;return tV(i.width,i.height,i.thickness)}case"ring":{const i=e;return iV(i.outerRadius,i.innerRadius)}case"path":return e.d;default:throw new Error(`Unknown shape type: ${t}`)}}var Mu=.5522847498307936;function YI(e,t,i){const r=-e/2,a=-t/2,s=Math.min(i,e/2,t/2);return s===0?`M ${r} ${a} L ${r+e} ${a} L ${r+e} ${a+t} L ${r} ${a+t} Z`:[`M ${r+s} ${a}`,`L ${r+e-s} ${a}`,`Q ${r+e} ${a} ${r+e} ${a+s}`,`L ${r+e} ${a+t-s}`,`Q ${r+e} ${a+t} ${r+e-s} ${a+t}`,`L ${r+s} ${a+t}`,`Q ${r} ${a+t} ${r} ${a+t-s}`,`L ${r} ${a+s}`,`Q ${r} ${a} ${r+s} ${a}`,"Z"].join(" ")}function Rv(e){const t=e*Mu;return[`M ${e} 0`,`C ${e} ${t} ${t} ${e} 0 ${e}`,`C ${-t} ${e} ${-e} ${t} ${-e} 0`,`C ${-e} ${-t} ${-t} ${-e} 0 ${-e}`,`C ${t} ${-e} ${e} ${-t} ${e} 0`,"Z"].join(" ")}function KI(e){const t=e*Mu;return[`M ${e} 0`,`C ${e} ${-t} ${t} ${-e} 0 ${-e}`,`C ${-t} ${-e} ${-e} ${-t} ${-e} 0`,`C ${-e} ${t} ${-t} ${e} 0 ${e}`,`C ${t} ${e} ${e} ${t} ${e} 0`,"Z"].join(" ")}function XI(e,t){const i=e*Mu,r=t*Mu;return[`M ${e} 0`,`C ${e} ${r} ${i} ${t} 0 ${t}`,`C ${-i} ${t} ${-e} ${r} ${-e} 0`,`C ${-e} ${-r} ${-i} ${-t} 0 ${-t}`,`C ${i} ${-t} ${e} ${-r} ${e} 0`,"Z"].join(" ")}function HI(e,t){const i=e/2,r=t/2;return`M ${-i} ${-r} L ${i} ${-r} L ${i} ${r} L ${-i} ${r} Z`}function JI(e,t){const i=2*Math.PI/e,r=-Math.PI/2,a=[];for(let s=0;s<e;s++){const n=r+s*i,o=Math.cos(n)*t,u=Math.sin(n)*t;a.push(s===0?`M ${o} ${u}`:`L ${o} ${u}`)}return a.push("Z"),a.join(" ")}function qI(e,t,i){const r=Math.PI/e,a=-Math.PI/2,s=[];for(let n=0;n<e*2;n++){const o=a+n*r,u=n%2===0?t:i,l=Math.cos(o)*u,c=Math.sin(o)*u;s.push(n===0?`M ${l} ${c}`:`L ${l} ${c}`)}return s.push("Z"),s.join(" ")}function QI(e,t,i,r){const a=r/2,s=t/2,n=e-i,o=-e/2;return[`M ${o} ${-a}`,`L ${o+n} ${-a}`,`L ${o+n} ${-s}`,`L ${o+e} 0`,`L ${o+n} ${s}`,`L ${o+n} ${a}`,`L ${o} ${a}`,"Z"].join(" ")}function eV(e){const t=e/32;return["M 0 6","C -0.5 -3 -12 -3 -12 6","C -12 12 0 18 0 24","C 0 18 12 12 12 6","C 12 -3 0.5 -3 0 6","Z"].map(r=>r.replace(/-?\d+(\.\d+)?/g,a=>String(parseFloat(a)*t))).join(" ")}function tV(e,t,i){const r=e/2,a=t/2,s=i/2;return[`M ${-s} ${-a}`,`L ${s} ${-a}`,`L ${s} ${-s}`,`L ${r} ${-s}`,`L ${r} ${s}`,`L ${s} ${s}`,`L ${s} ${a}`,`L ${-s} ${a}`,`L ${-s} ${s}`,`L ${-r} ${s}`,`L ${-r} ${-s}`,`L ${-s} ${-s}`,"Z"].join(" ")}function iV(e,t){const i=Rv(e),r=KI(t);return`${i} ${r}`}function aV(e){const t=/-?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g,i=[];let r;for(;(r=t.exec(e))!==null;){const g=parseFloat(r[0]);!isNaN(g)&&isFinite(g)&&i.push(g)}if(i.length<2)return{x:0,y:0,w:0,h:0};let a=1/0,s=1/0,n=-1/0,o=-1/0,u=0,l=0;const c=e.match(/[MmLlHhVvCcSsQqTtAaZz]/g)||[];let f=0,h=0;for(;f<c.length;){switch(c[f]){case"M":case"L":case"T":h+1<i.length&&(u=i[h++],l=i[h++],a=Math.min(a,u),n=Math.max(n,u),s=Math.min(s,l),o=Math.max(o,l));break;case"m":case"l":case"t":h+1<i.length&&(u+=i[h++],l+=i[h++],a=Math.min(a,u),n=Math.max(n,u),s=Math.min(s,l),o=Math.max(o,l));break;case"H":h<i.length&&(u=i[h++],a=Math.min(a,u),n=Math.max(n,u));break;case"h":h<i.length&&(u+=i[h++],a=Math.min(a,u),n=Math.max(n,u));break;case"V":h<i.length&&(l=i[h++],s=Math.min(s,l),o=Math.max(o,l));break;case"v":h<i.length&&(l+=i[h++],s=Math.min(s,l),o=Math.max(o,l));break;case"C":if(h+5<i.length)for(let p=0;p<3;p++){const v=i[h++],k=i[h++];a=Math.min(a,v),n=Math.max(n,v),s=Math.min(s,k),o=Math.max(o,k),p===2&&(u=v,l=k)}break;case"c":if(h+5<i.length)for(let p=0;p<3;p++){const v=u+i[h++],k=l+i[h++];a=Math.min(a,v),n=Math.max(n,v),s=Math.min(s,k),o=Math.max(o,k),p===2&&(u=v,l=k)}break;case"S":case"Q":if(h+3<i.length)for(let p=0;p<2;p++){const v=i[h++],k=i[h++];a=Math.min(a,v),n=Math.max(n,v),s=Math.min(s,k),o=Math.max(o,k),p===1&&(u=v,l=k)}break;case"s":case"q":if(h+3<i.length)for(let p=0;p<2;p++){const v=u+i[h++],k=l+i[h++];a=Math.min(a,v),n=Math.max(n,v),s=Math.min(s,k),o=Math.max(o,k),p===1&&(u=v,l=k)}break;case"A":h+6<i.length&&(h+=5,u=i[h++],l=i[h++],a=Math.min(a,u),n=Math.max(n,u),s=Math.min(s,l),o=Math.max(o,l));break;case"a":h+6<i.length&&(h+=5,u+=i[h++],l+=i[h++],a=Math.min(a,u),n=Math.max(n,u),s=Math.min(s,l),o=Math.max(o,l));break}f++}return a===1/0?{x:0,y:0,w:0,h:0}:{x:a,y:s,w:n-a,h:o-s}}async function rV(e,t={}){const i=t.defaultWidth??1920,r=t.defaultHeight??1080;let a,s,n;if(e.src){a=e.src;const o=sV(a);s=o.width||i,n=o.height||r}else if(e.shape)s=bi(e.width,i),n=bi(e.height,r),a=jI(e,s,n);else throw new Error("Either 'src' or 'shape' must be provided");return UI(a,{width:s,height:n,background:t.background})}function sV(e){const t=e.match(/width\s*=\s*["']?(\d+(?:\.\d+)?)/i),i=e.match(/height\s*=\s*["']?(\d+(?:\.\d+)?)/i);let r=t?parseFloat(t[1]):0,a=i?parseFloat(i[1]):0;if(!r||!a){const s=e.match(/viewBox\s*=\s*["']([^"']+)["']/i);if(s){const n=s[1].trim().split(/[\s,]+/).map(parseFloat);n.length===4&&(r=r||n[2],a=a||n[3])}}return{width:r,height:a}}var mf=typeof process=="object"&&process?process:{},nV=(e,t,i,r)=>{typeof mf.emitWarning=="function"?mf.emitWarning(e,t,i,r):console.error(`[${i}] ${t}: ${e}`)},Mv=globalThis.AbortController,Zv=globalThis.AbortSignal;if(typeof Mv>"u"){Zv=class{constructor(){xt(this,"onabort"),xt(this,"_onabort",[]),xt(this,"reason"),xt(this,"aborted",!1)}addEventListener(i,r){this._onabort.push(r)}},Mv=class{constructor(){xt(this,"signal",new Zv),t()}abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let r of this.signal._onabort)r(i);this.signal.onabort?.(i)}}};let e=mf.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,nV("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var oV=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),uV=e=>oV(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?lV:null:null,lV=class extends Array{constructor(e){super(e),this.fill(0)}},pr,un;pr=class{constructor(e,t){if(xt(this,"heap"),xt(this,"length"),!K7(pr,un))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0}static create(e){let t=uV(e);if(!t)return[];vh(pr,un,!0);let i=new pr(e,t);return vh(pr,un,!1),i}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},un=new WeakMap,X7(pr,un,!1);var Lv="https://fonts.gstatic.com/s/opensans/v44/mem8YaGs126MiZpBA-U1UpcaXcl0Aw.ttf";kv.setFallbackLoader(async e=>{const t=(e.family??"Open Sans").toLowerCase(),i=`${e.weight??"400"}`;if(t==="open sans"&&i==="400")return Ru(Lv)});async function cV(e={}){const t=e.width??Rt.DEFAULTS.width,i=e.height??Rt.DEFAULTS.height,r=e.pixelRatio??Rt.DEFAULTS.pixelRatio,a="https://shotstack-ingest-api-dev-sources.s3.ap-southeast-2.amazonaws.com/euo5r93oyr/zzz01k9h-yycyx-2x2y6-qx9bj-7n567b/source.wasm";let s;try{s=await kv.getSharedInstance(a)}catch(p){throw new Error(`Failed to initialize font registry: ${p instanceof Error?p.message:String(p)}`)}const n=new mI(s),o=new Map,u=new Map,l=p=>`${p??"400"}`,c=(p,v)=>`${p}__${l(v)}`,f=async(p,v)=>{const k={family:v.family,weight:l(v.weight)},C=`${p}|${c(k.family,k.weight)}`,P=u.get(C);if(P)return P;const b=(async()=>{if(s.hasRegisteredFace(k))return;const x=await Ru(p);await s.registerFromBytes(x,k)})();return u.set(C,b),b},h=async p=>{const v={family:p.family,weight:l(p.weight)},k=`${p.src}|${c(v.family,v.weight)}`,C=o.get(k);if(C)return C;const P=(async()=>{if(s.hasRegisteredFace(v))return;const b=await Ru(p.src);await s.registerFromBytes(b,v)})();return o.set(k,P),P};async function g(p){try{if(p.customFonts)for(const P of p.customFonts)try{await h(P)}catch(b){throw new Error(`Failed to load custom font "${P.family}" from ${P.src}: ${b instanceof Error?b.message:String(b)}`)}const v=p.font??{family:"Open Sans",weight:"400",size:48,color:"#000000",opacity:1},k={family:v.family,weight:`${v.weight}`};return await(async()=>{try{await s.getFace(k)}catch{if((v.family||"Open Sans").toLowerCase()==="open sans"&&`${v.weight}`=="400"){if(!s.hasRegisteredFace({family:"Open Sans",weight:"400"})){const b=await Ru(Lv);await s.registerFromBytes(b,{family:"Open Sans",weight:"400"})}}else throw new Error(`Font not registered for ${k.family}__${k.weight}`)}})(),v}catch(v){throw v instanceof Error?v:new Error(`Failed to ensure fonts: ${String(v)}`)}}return{validate(p){const v=Lk.safeParse(p);if(!v.success){const k=v.error.issues.map(C=>C.message).join(". ");throw new Error(`Validation failed: ${k}`)}return{value:v.data}},async registerFontFromUrl(p,v){try{await f(p,v)}catch(k){throw new Error(`Failed to register font "${v.family}" from URL ${p}: ${k instanceof Error?k.message:String(k)}`)}},async registerFontFromFile(p,v){try{let k;if(typeof p=="string"){await f(p,v);return}else try{k=await p.arrayBuffer()}catch(P){throw new Error(`Failed to read Blob as ArrayBuffer: ${P instanceof Error?P.message:String(P)}`)}const C={family:v.family,weight:l(v.weight)};if(s.hasRegisteredFace(C))return;await s.registerFromBytes(k,C)}catch(k){throw k instanceof Error?k:new Error(`Failed to register font "${v.family}" from ${typeof p=="string"?p:"Blob"}: ${String(k)}`)}},async renderFrame(p,v,k){try{const C=await g(p),P={family:C.family,weight:`${C.weight}`};let b;try{let H;const X=s.getColorEmojiFontFamilies();if(X.length>0)H={family:X[0],weight:"400"};else{const de={family:"NotoEmoji",weight:"400"};try{await s.getFace(de),H=de}catch{}}const we=p.padding?typeof p.padding=="number"?{top:p.padding,right:p.padding,bottom:p.padding,left:p.padding}:p.padding:{top:0,right:0,bottom:0,left:0};b=await n.layout({text:p.text,width:(p.width??t)-we.left-we.right,letterSpacing:p.style?.letterSpacing??0,fontSize:C.size,lineHeight:p.style?.lineHeight??1.2,desc:P,textTransform:p.style?.textTransform??"none",emojiFallback:H})}catch(H){throw new Error(`Failed to layout text: ${H instanceof Error?H.message:String(H)}`)}const x=p.padding?typeof p.padding=="number"?{top:p.padding,right:p.padding,bottom:p.padding,left:p.padding}:p.padding:{top:0,right:0,bottom:0,left:0},D=p.border?.width??0,w=(p.width??t)+D*2,R=(p.height??i)+D*2,j=r,$={x:0,y:0,width:(p.width??t)-x.left-x.right,height:(p.height??i)-x.top-x.bottom},z=p.width??t,ie=p.height??i;let O;try{O=await CI({canvas:{width:w,height:R,pixelRatio:j},textRect:$,lines:b,contentRect:{width:z,height:ie},font:{family:C.family,size:C.size,weight:`${C.weight}`,color:C.color,opacity:C.opacity,background:C.background},style:{lineHeight:p.style?.lineHeight??1.2,textDecoration:p.style?.textDecoration??"none",gradient:p.style?.gradient},stroke:p.stroke,shadow:p.shadow,align:{horizontal:p.align?.horizontal??"center",vertical:p.align?.vertical??"middle"},background:p.background?{color:p.background.color,opacity:p.background.opacity,borderRadius:typeof p.background.borderRadius=="number"?p.background.borderRadius:Number(p.background.borderRadius)||0}:void 0,border:p.border,padding:p.padding,glyphPathProvider:(H,X)=>s.glyphPath(X||P,H),getUnitsPerEm:H=>s.getUnitsPerEm(H||P),isColorEmojiFont:H=>s.isColorEmojiFont(H)})}catch(H){throw new Error(`Failed to build draw operations: ${H instanceof Error?H.message:String(H)}`)}try{return AI(O,b,{t:v,fontSize:C.size,clipDuration:k,anim:p.animation?{preset:p.animation.preset,speed:p.animation.speed,duration:p.animation.duration,style:p.animation.style,direction:p.animation.direction}:void 0})}catch(H){throw new Error(`Failed to apply animation: ${H instanceof Error?H.message:String(H)}`)}}catch(C){throw C instanceof Error?C:new Error(`Failed to render frame at time ${v}s: ${String(C)}`)}},createRenderer(p){try{return OI(p)}catch(v){throw new Error(`Failed to create renderer: ${v instanceof Error?v.message:String(v)}`)}},destroy(){try{s.release()}catch(p){console.error(`Error during cleanup: ${p instanceof Error?p.message:String(p)}`)}}}}const $v=e=>{const i=(e.split("/").pop()||"").replace(/\.(ttf|otf|woff|woff2)$/i,""),r=i.replace(/-(Bold|Light|Regular|Italic|Medium|SemiBold|Black|Thin|ExtraLight|ExtraBold|Heavy)$/i,"");return{full:i,base:r}},fV=e=>e.includes("fonts.gstatic.com");class qi extends qt{static PREVIEW_FPS=60;static fontCapabilityCache=new Map;textEngine=null;renderer=null;canvas=null;texture=null;sprite=null;lastRenderedTime=-1;cachedFrames=new Map;isRendering=!1;pendingRenderTime=null;validatedAsset=null;fontSupportsBold=!1;loadComplete=!1;fontRegistrationCache=new Map;static getFontSourceCacheKey(t){return t.split("#",1)[0].split("?",1)[0]}constructor(t,i){const{fit:r,...a}=i;super(t,a,kt.RichText)}resolveFontWeight(t,i){const r=t.font?.weight;return typeof r=="string"?parseInt(r,10)||i:typeof r=="number"?r:i}buildCanvasPayload(t,i){const r=this.clipConfiguration.width||this.edit.size.width,a=this.clipConfiguration.height||this.edit.size.height,s=t.font?.family,{baseFontFamily:n,fontWeight:o}=i??(s?Vi(s):{baseFontFamily:s,fontWeight:400}),u=this.resolveFontWeight(t,o),l=this.edit.getTimelineFonts(),c=s?l.find(p=>{const{full:v,base:k}=$v(p.src),C=s.toLowerCase();return v.toLowerCase()===C||k.toLowerCase()===C}):void 0;let f;if(c&&s)f=[{src:c.src,family:n||s,weight:u.toString()}];else if(s){const p=this.edit.getFontMetadata(),v=(n||s).toLowerCase(),C=l.filter(P=>!fV(P.src)).find(P=>p.get(P.src)?.baseFamilyName.toLowerCase()===v);C&&(f=[{src:C.src,family:n||s,weight:u.toString()}])}const g=f||s&&Nn(s)?n||s:void 0;return{...t,width:r,height:a,font:t.font?{...t.font,family:g||"Roboto",weight:u}:void 0,stroke:t.font?.stroke,...f&&{customFonts:f}}}async registerFont(t,i,r){if(!this.textEngine)return!1;const a=qi.getFontSourceCacheKey(r.path),s=`${r.type}:${a}|${t}|${i}`,n=this.fontRegistrationCache.get(s);if(n)return n;const o=(async()=>{try{const u={family:t,weight:i.toString()};return r.type==="url"?await this.textEngine.registerFontFromUrl(r.path,u):await this.textEngine.registerFontFromFile(r.path,u),!0}catch{return!1}})();return this.fontRegistrationCache.set(s,o),o}createFontCapabilityCheckPromise(t){return(async()=>{try{const i=await fetch(t);if(!i.ok)throw new Error(`Failed to fetch font: ${i.status}`);const r=await i.arrayBuffer();return!!sl.parse(r).tables.fvar?.axes?.find(n=>n.tag==="wght")}catch(i){return console.warn("Failed to check font capabilities:",i),!1}})()}async prepareFontForAsset(t,i){const r=await this.ensureFontRegistered(t);if(!r)return;const a=qi.getFontSourceCacheKey(r),s=qi.fontCapabilityCache.get(a),n=s??this.createFontCapabilityCheckPromise(r);s||qi.fontCapabilityCache.set(a,n),this.fontSupportsBold=await n,i&&this.edit.getInternalEvents().emit(Ft.FontCapabilitiesChanged,{supportsBold:this.fontSupportsBold})}supportsBold(){return this.fontSupportsBold}resolveFont(t){const{baseFontFamily:i,fontWeight:r}=Vi(t),a=this.edit.getFontUrlByFamilyAndWeight(i,r);if(a)return{url:a,baseFontFamily:i,fontWeight:r};const o=(this.edit.getEdit()?.timeline?.fonts||[]).find(l=>{const{full:c,base:f}=$v(l.src),h=t.toLowerCase();return c.toLowerCase()===h||f.toLowerCase()===h});if(o)return{url:o.src,baseFontFamily:i,fontWeight:r};const u=Nn(t);return u?{url:u,baseFontFamily:i,fontWeight:r}:null}reconfigureAfterRestore(){super.reconfigureAfterRestore(),this.reconfigure(this.clipConfiguration.asset)}async reconfigure(t){try{await this.prepareFontForAsset(t,!0);for(const i of this.cachedFrames.values())i.destroy();if(this.cachedFrames.clear(),this.lastRenderedTime=-1,this.textEngine){const i=this.buildCanvasPayload(t),{value:r}=this.textEngine.validate(i);this.validatedAsset=r}this.textEngine&&this.renderer&&this.renderFrameSafe(this.getPlaybackTime())}catch{}}async ensureFontRegistered(t){if(!this.textEngine)return null;const i=t.font?.family;if(!i)return null;const r=this.resolveFont(i);if(!r)return null;const a=this.resolveFontWeight(t,r.fontWeight);return await this.registerFont(r.baseFontFamily,a,{type:"url",path:r.url}),r.url}async load(){await super.load();const t=this.clipConfiguration.asset;try{if(!rh.safeParse(t).success){this.createFallbackText(t);return}const r=t.font?.family,a=r?Vi(r):void 0,s=this.buildCanvasPayload(t,a);this.textEngine=await cV({width:s.width,height:s.height,fps:qi.PREVIEW_FPS});const{value:n}=this.textEngine.validate(s);this.validatedAsset=n,this.canvas=document.createElement("canvas"),this.canvas.width=s.width,this.canvas.height=s.height,this.renderer=this.textEngine.createRenderer(this.canvas),await this.prepareFontForAsset(t,!1),await this.renderFrame(0),this.configureKeyframes(),this.loadComplete=!0}catch{this.cleanupResources(),this.createFallbackText(t)}}cleanupResources(){if(this.textEngine){try{this.textEngine.destroy()}catch(t){console.warn("Error destroying text engine:",t)}this.textEngine=null}this.renderer=null,this.canvas=null,this.validatedAsset=null}async renderFrame(t){if(!this.textEngine||!this.renderer||!this.canvas||!this.validatedAsset)return;const i=Math.floor(t*qi.PREVIEW_FPS);if(this.cachedFrames.has(i)){const r=this.cachedFrames.get(i);this.sprite&&this.sprite.texture!==r&&(this.sprite.texture=r),this.lastRenderedTime=t;return}try{const r=this.getLength(),a=await this.textEngine.renderFrame(this.validatedAsset,t,r),s=this.canvas.getContext("2d");s&&s.clearRect(0,0,this.canvas.width,this.canvas.height),await this.renderer.render(a);const n=ue.Texture.from(this.canvas);this.sprite?(this.texture&&!this.cachedFrames.has(i)&&this.texture.destroy(),this.sprite.texture=n):(this.sprite=new ue.Sprite(n),this.contentContainer.addChild(this.sprite)),this.texture=n,this.cachedFrames.size<150&&this.cachedFrames.set(i,n),this.lastRenderedTime=t}catch(r){console.error("Failed to render rich text frame:",r)}}createFallbackText(t){const i=this.edit.getEdit(),r=this.clipConfiguration.width||i?.output?.size?.width||this.edit.size.width,a=this.clipConfiguration.height||i?.output?.size?.height||this.edit.size.height,s=new ue.TextStyle({fontFamily:t.font?.family||"Arial",fontSize:t.font?.size||48,fill:t.font?.color||"#ffffff",align:t.align?.horizontal||"center",wordWrap:!0,wordWrapWidth:r}),n=new ue.Text(t.text,s);switch(t.align?.horizontal){case"left":n.anchor.set(0,.5),n.x=0;break;case"right":n.anchor.set(1,.5),n.x=r;break;default:n.anchor.set(.5,.5),n.x=r/2}switch(t.align?.vertical){case"top":n.anchor.set(n.anchor.x,0),n.y=0;break;case"bottom":n.anchor.set(n.anchor.x,1),n.y=a;break;default:n.anchor.set(n.anchor.x,.5),n.y=a/2}this.contentContainer.addChild(n),this.configureKeyframes()}renderFrameSafe(t){if(this.isRendering){this.pendingRenderTime=t;const i=Math.floor(t*qi.PREVIEW_FPS),r=this.cachedFrames.get(i);r&&this.sprite&&this.sprite.texture!==r&&(this.sprite.texture=r);return}this.isRendering=!0,this.pendingRenderTime=null,this.renderFrame(t).catch(i=>console.error("Failed to render rich text frame:",i)).finally(()=>{if(this.isRendering=!1,this.pendingRenderTime!==null&&this.pendingRenderTime!==t){const i=this.pendingRenderTime;this.pendingRenderTime=null,this.renderFrameSafe(i)}})}update(t,i){if(super.update(t,i),i===Jr.SEEK_ELAPSED_MARKER&&(this.isRendering=!1,this.pendingRenderTime=null,this.lastRenderedTime=-1),!!this.isActive()&&this.loadComplete&&this.textEngine&&this.renderer&&!this.isRendering){const r=this.getPlaybackTime(),a=1/60;Math.abs(r-this.lastRenderedTime)>a&&this.renderFrameSafe(r)}}dispose(){super.dispose(),this.loadComplete=!1;for(const t of this.cachedFrames.values())t.destroy();this.cachedFrames.clear(),this.texture&&!this.cachedFrames.has(Math.floor(this.lastRenderedTime*qi.PREVIEW_FPS))&&this.texture.destroy(),this.texture=null,this.sprite&&(this.sprite.destroy(),this.sprite=null),this.canvas&&(this.canvas=null),this.textEngine&&(this.textEngine.destroy(),this.textEngine=null),this.renderer=null,this.validatedAsset=null}getSize(){const t=this.edit.getEdit();return{width:this.clipConfiguration.width||t?.output?.size?.width||this.edit.size.width,height:this.clipConfiguration.height||t?.output?.size?.height||this.edit.size.height}}getContentSize(){return{width:this.clipConfiguration.width||this.canvas?.width||this.edit.size.width,height:this.clipConfiguration.height||this.canvas?.height||this.edit.size.height}}getFitScale(){return 1}getContainerScale(){const t=this.getScale();return{x:t,y:t}}supportsEdgeResize(){return!0}onDimensionsChanged(){if(!this.textEngine||!this.renderer||!this.canvas)return;const t=this.clipConfiguration.asset,{width:i,height:r}=this.getSize();this.canvas.width=i,this.canvas.height=r;for(const n of this.cachedFrames.values())n.destroy();this.cachedFrames.clear(),this.lastRenderedTime=-1;const a=this.buildCanvasPayload(t),{value:s}=this.textEngine.validate(a);this.validatedAsset=s,this.renderFrameSafe(this.getPlaybackTime())}updateTextContent(t){const i=this.clipConfiguration.asset;if(i.text=t,this.textEngine){const r=this.buildCanvasPayload(i),{value:a}=this.textEngine.validate(r);this.validatedAsset=a}for(const r of this.cachedFrames.values())r.destroy();this.cachedFrames.clear(),this.lastRenderedTime=-1,this.textEngine&&this.renderer&&this.renderFrameSafe(this.getPlaybackTime())}getCacheSize(){return this.cachedFrames.size}}class dV extends qt{shape;shapeBackground;constructor(t,i){super(t,i,kt.Shape),this.shape=null,this.shapeBackground=null}async load(){await super.load();const t=this.clipConfiguration.asset,i=new ue.Graphics,r=t.width??this.edit.size.width,a=t.height??this.edit.size.height;i.fillStyle={color:"transparent"},i.rect(0,0,r,a),i.fill();const s=new ue.Graphics;switch(t.shape){case"rectangle":{const n=t.rectangle,o=r/2-n.width/2,u=a/2-n.height/2;s.rect(o,u,n.width,n.height);break}case"circle":{const n=t.circle,o=r/2,u=a/2;s.circle(o,u,n.radius);break}case"line":{const n=t.line,o=r/2-n.length/2,u=a/2-n.thickness/2;s.rect(o,u,n.length,n.thickness);break}default:console.warn("Unsupported shape asset type.");break}if(s.fillStyle={color:t.fill?.color??"#ffffff",alpha:t.fill?.opacity??1},s.fill(),t.stroke){const n=new ss({thickness:t.stroke.width,color:t.stroke.color});s.filters=[n]}this.shapeBackground=i,this.shape=s,this.contentContainer.addChild(i),i.addChild(s),this.configureKeyframes()}update(t,i){super.update(t,i)}dispose(){super.dispose(),this.shape?.destroy(),this.shape=null,this.shapeBackground?.destroy(),this.shapeBackground=null}getSize(){const t=this.clipConfiguration.asset;return{width:t.width??this.edit.size.width,height:t.height??this.edit.size.height}}getFitScale(){return 1}}const hV="https://unpkg.com/@resvg/resvg-wasm@2.6.2/index_bg.wasm";class ha extends qt{static resvgInitialized=!1;static resvgInitPromise=null;texture=null;sprite=null;renderedWidth=0;renderedHeight=0;pendingRender=null;constructor(t,i){super(t,i,kt.Svg)}static async initializeResvg(){if(!ha.resvgInitialized){if(ha.resvgInitPromise){await ha.resvgInitPromise;return}ha.resvgInitPromise=(async()=>{const i=await(await fetch(hV)).arrayBuffer();await $I(i),ha.resvgInitialized=!0})(),await ha.resvgInitPromise}}async load(){await super.load();let t=this.clipConfiguration.asset;if(t.src){const i=this.edit.resolveMergeFields(t.src);i!==t.src&&(t={...t,src:i})}try{if(!c7.safeParse(t).success){this.createFallbackGraphic();return}await ha.initializeResvg(),await this.doRender(),this.configureKeyframes()}catch(i){console.error("Failed to render SVG asset:",i),this.createFallbackGraphic()}}async reloadAsset(){await this.rerenderAtCurrentDimensions()}createFallbackGraphic(){const t=this.clipConfiguration.width||this.edit.size.width,i=this.clipConfiguration.height||this.edit.size.height,r=Xf(t,i);this.renderedWidth=t,this.renderedHeight=i,this.contentContainer.addChild(r),this.configureKeyframes()}update(t,i){super.update(t,i)}dispose(){super.dispose(),this.pendingRender=null,this.sprite&&(this.sprite.destroy(),this.sprite=null),this.texture&&(this.texture.destroy(!0),this.texture=null)}getSize(){return this.clipConfiguration.width&&this.clipConfiguration.height?{width:this.clipConfiguration.width,height:this.clipConfiguration.height}:{width:this.renderedWidth||this.edit.size.width,height:this.renderedHeight||this.edit.size.height}}getContentSize(){return{width:this.renderedWidth||this.edit.size.width,height:this.renderedHeight||this.edit.size.height}}getFitScale(){return 1}supportsEdgeResize(){return!0}onDimensionsChanged(){this.rerenderAtCurrentDimensions()}async rerenderAtCurrentDimensions(){this.pendingRender&&await this.pendingRender,this.sprite&&(this.contentContainer.removeChild(this.sprite),this.sprite.destroy(),this.sprite=null),this.texture&&(this.texture.destroy(!0),this.texture=null),this.pendingRender=this.doRender(),await this.pendingRender,this.pendingRender=null}async doRender(){const t=this.clipConfiguration.asset,i=this.clipConfiguration.width||this.edit.size.width,r=this.clipConfiguration.height||this.edit.size.height,a=await rV(t,{defaultWidth:i,defaultHeight:r});this.renderedWidth=a.width,this.renderedHeight=a.height;const s=new Blob([a.png],{type:"image/png"}),n=URL.createObjectURL(s),o=new Image;o.src=n,await new Promise((u,l)=>{o.onload=()=>u(),o.onerror=()=>l(new Error("Failed to load SVG image"))}),URL.revokeObjectURL(n),this.texture=ue.Texture.from(o),this.sprite=new ue.Sprite(this.texture),this.contentContainer.addChild(this.sprite),this.clipConfiguration.width&&this.clipConfiguration.height&&this.applyFixedDimensions()}}class ln{static DEFAULT_BLINK_INTERVAL_MS=500;static DEFAULT_CURSOR_WIDTH_PX=2;static DEFAULT_CURSOR_COLOR=16777215;cursor=null;parent;textElement;clipConfig;textPosition=0;pixelX=0;pixelY=0;currentLine=0;isBlinking=!1;blinkInterval=null;blinkIntervalMs=500;width=2;color=16777215;isVisible=!0;constructor(t,i,r,a){this.parent=t,this.textElement=i,this.clipConfig=r,this.width=a?.width??ln.DEFAULT_CURSOR_WIDTH_PX,this.color=a?.color??ln.DEFAULT_CURSOR_COLOR,this.blinkIntervalMs=a?.blinkInterval??ln.DEFAULT_BLINK_INTERVAL_MS,this.textPosition=0,this.isBlinking=!1,this.isVisible=!0,this.blinkInterval=null,this.createCursor()}updatePosition(t){if(!this.cursor||!this.textElement){console.warn("TextCursor: Cannot update position, cursor not initialized");return}this.textPosition=this.validateTextPosition(t),this.calculateAndApplyPixelPosition()}setPosition(t,i){if(!this.cursor){console.warn("TextCursor: Cannot set position, cursor not initialized");return}this.pixelX=t,this.pixelY=i,this.updateGraphicsPosition()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}setVisible(t){this.isVisible=t,this.cursor&&!this.isBlinking&&(this.cursor.visible=t)}startBlinking(){if(!this.cursor){console.warn("TextCursor: Cannot start blinking, cursor not initialized");return}this.isBlinking||this.startBlinkingAnimation()}stopBlinking(){this.stopBlinkingAnimation()}setBlinkInterval(t){this.blinkIntervalMs=t,this.isBlinking&&(this.stopBlinking(),this.startBlinking())}dispose(){if(this.stopBlinkingAnimation(),this.cursor&&this.parent)try{this.parent.removeChild(this.cursor)}catch(t){console.warn("TextCursor: Error removing cursor from parent:",t)}if(this.cursor)try{this.cursor.destroy()}catch(t){console.warn("TextCursor: Error destroying cursor graphics:",t)}finally{this.cursor=null}this.textPosition=0,this.pixelX=0,this.pixelY=0,this.currentLine=0,this.isVisible=!0}createCursor(){if(!this.textElement)return;this.cursor=new ue.Graphics,this.cursor.fillStyle={color:this.color};const t=this.textElement.style.fontSize;this.cursor.rect(0,0,this.width,t),this.cursor.fill(),this.parent.addChild(this.cursor),this.cursor.visible=this.isVisible}validateTextPosition(t){return this.textElement?Math.max(0,Math.min(t,this.textElement.text.length)):0}calculateAndApplyPixelPosition(){this.calculatePixelPositionFromText(),this.updateGraphicsPosition()}calculatePixelPositionFromText(){if(!this.textElement)return;const{text:t}=this.textElement,i=this.textElement.style,r=t.substring(0,this.textPosition),a=r.match(/\n/g);this.currentLine=a?a.length:0;const s=t.split(`
|
|
266
266
|
`),n=this.currentLine<s.length?s[this.currentLine]:"",o=r.lastIndexOf(`
|